From b23115e1337c9dbb19f947f1556c427f576d6b55 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Tue, 30 Aug 2022 00:03:30 -0700 Subject: [PATCH] Swap Out, Swap In and Cancelled Swap Tables Swap Out, Swap In and Cancelled Swap Tables --- backend/controllers/cln/peerswap.js | 6 +- frontend/253.256a01ccdc95a5d7.js | 1 - ...6d5bf0dd5da.js => 258.525782ba4bbc257e.js} | 2 +- frontend/515.73bff63b24de0558.js | 1 + frontend/515.da134be35cc26574.js | 1 - frontend/706.911e43a7ac305c95.js | 1 + frontend/index.html | 2 +- frontend/main.31d6322513f9b4d7.js | 1 + frontend/main.b852398d8716a19c.js | 1 - ...fb0dea2.js => runtime.4b216667d6a60356.js} | 2 +- server/controllers/cln/peerswap.ts | 6 +- src/app/cln/cln.module.ts | 8 +- src/app/cln/cln.routing.ts | 14 +- .../peerswap/peerswap.component.ts | 3 +- .../swap-in-modal.component.html | 69 +++--- .../swap-in-modal/swap-in-modal.component.ts | 2 +- .../swap-out-modal.component.html | 69 +++--- .../swap-out-modal.component.ts | 2 +- .../swap-peers/swap-peers.component.html | 10 +- .../swap-peers/swap-peers.component.scss | 8 - .../swap-peers/swap-peers.component.ts | 16 +- .../swaps-cancelled.component.html | 1 - .../swaps-cancelled.component.scss | 0 .../swaps-cancelled.component.spec.ts | 39 --- .../swaps-cancelled.component.ts | 27 --- .../peerswap/swaps-in/swaps-in.component.html | 1 - .../peerswap/swaps-in/swaps-in.component.scss | 0 .../swaps-in/swaps-in.component.spec.ts | 39 --- .../peerswap/swaps-in/swaps-in.component.ts | 27 --- .../swaps-list/swaps-list.component.html | 100 ++++++++ .../swaps-list/swaps-list.component.scss | 12 + .../swaps-list/swaps-list.component.spec.ts | 55 +++++ .../swaps-list/swaps-list.component.ts | 225 ++++++++++++++++++ .../swaps-out/swaps-out.component.html | 1 - .../swaps-out/swaps-out.component.scss | 0 .../swaps-out/swaps-out.component.spec.ts | 39 --- .../peerswap/swaps-out/swaps-out.component.ts | 27 --- .../channel-open-table.component.spec.ts | 5 +- src/app/cln/store/cln.actions.ts | 10 +- src/app/cln/store/cln.effects.ts | 70 +++++- src/app/cln/store/cln.reducers.ts | 48 +++- src/app/cln/store/cln.selector.ts | 3 +- src/app/cln/store/cln.state.ts | 2 + src/app/eclair/ecl.routing.ts | 2 +- .../channel-open-table.component.spec.ts | 3 +- src/app/lnd/lnd.routing.ts | 2 +- .../channel-open-table.component.spec.ts | 3 +- .../invoice-information.component.html | 2 +- .../lightning-invoices.component.html | 2 +- .../invoice-lookup.component.html | 2 +- .../side-navigation.component.ts | 10 +- .../peerswap-service-settings.component.html | 2 +- src/app/shared/models/clnModels.ts | 1 + src/app/shared/pipes/app.pipe.ts | 11 + .../shared/services/consts-enums-functions.ts | 21 +- src/app/shared/shared.module.ts | 6 +- src/app/shared/test-helpers/mock-services.ts | 14 -- 57 files changed, 649 insertions(+), 388 deletions(-) delete mode 100644 frontend/253.256a01ccdc95a5d7.js rename frontend/{924.e98936d5bf0dd5da.js => 258.525782ba4bbc257e.js} (81%) create mode 100644 frontend/515.73bff63b24de0558.js delete mode 100644 frontend/515.da134be35cc26574.js create mode 100644 frontend/706.911e43a7ac305c95.js create mode 100644 frontend/main.31d6322513f9b4d7.js delete mode 100644 frontend/main.b852398d8716a19c.js rename frontend/{runtime.6449ae8affb0dea2.js => runtime.4b216667d6a60356.js} (62%) delete mode 100755 src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.html delete mode 100755 src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.scss delete mode 100755 src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.spec.ts delete mode 100755 src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.ts delete mode 100755 src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.html delete mode 100755 src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.scss delete mode 100755 src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.spec.ts delete mode 100755 src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.ts create mode 100755 src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.html create mode 100755 src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.scss create mode 100755 src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.spec.ts create mode 100755 src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.ts delete mode 100755 src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.html delete mode 100755 src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.scss delete mode 100755 src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.spec.ts delete mode 100755 src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.ts diff --git a/backend/controllers/cln/peerswap.js b/backend/controllers/cln/peerswap.js index 7f1a221e..9de543a8 100644 --- a/backend/controllers/cln/peerswap.js +++ b/backend/controllers/cln/peerswap.js @@ -95,17 +95,17 @@ export const listSwapPeers = (req, res, next) => { }); }; export const allowSwapRequests = (req, res, next) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Allowing/Denying Swap Requests..' }); + logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Allowing/Not Allowing Swap Requests..' }); options = common.getOptions(req); if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } options.url = req.session.selectedNode.ln_server_url + '/v1/peerswap/allowSwapRequests' + req.params.isAllowed; request(options).then((body) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Swap Request Allowed/Denied', data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Swap Request Allowed/Not Allowed', data: body }); res.status(200).json(body); }).catch((errRes) => { - const err = common.handleError(errRes, 'Peerswap', 'Allow/Deny Swap Request Error', req.session.selectedNode); + const err = common.handleError(errRes, 'Peerswap', 'Allow/Not Allow Swap Request Error', req.session.selectedNode); return res.status(err.statusCode).json({ message: err.message, error: err.error }); }); }; diff --git a/frontend/253.256a01ccdc95a5d7.js b/frontend/253.256a01ccdc95a5d7.js deleted file mode 100644 index 3c0081ee..00000000 --- a/frontend/253.256a01ccdc95a5d7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[253],{253:(ui,Nr,Ut)=>{"use strict";Ut.r(Nr),Ut.d(Nr,{CLNModule:()=>eh});var Bt=Ut(9808),Vt=Ut(1402),Ln=Ut(8878),A=Ut(5e3),ft=Ut(7093),T=Ut(5899);function I(r,m){1&r&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class r{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof Vt.OD:this.loading=!0;break;case o instanceof Vt.m2:case o instanceof Vt.gk:case o instanceof Vt.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,I,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",o.loading))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,T.pW,Vt.lC],styles:[""],data:{animation:[Ln.g]}}),r})();var c=Ut(7579),i=Ut(2722),s=Ut(1365),l=Ut(534),h=Ut(801),a=Ut(7731),B=Ut(9828),E=Ut(5043),u=Ut(5620),C=Ut(62),e=Ut(9444),f=Ut(3954),g=Ut(9224),w=Ut(7423),Q=Ut(2181),p=Ut(5245),Y=Ut(3322);const y=function(r){return{backgroundColor:r}};function d(r,m){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,y,"#"+(null==t.information?null:t.information.color)))}}function v(r,m){if(1&r&&(A.TgZ(0,"div")(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA()()),2&r){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,y,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function D(r,m){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t)}}let R=(()=>{class r{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain||"")+" "+this.commonService.titleCase(t.network||""))}))}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[A.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div")(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,d,1,3,"span",3),A.qZA()(),A.YNc(7,v,7,6,"div",4),A.TgZ(8,"div")(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA()(),A.TgZ(13,"div")(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,D,2,1,"span",5),A.qZA()()),2&t&&(A.xp6(5),A.hij(" ",null==o.information?null:o.information.alias," "),A.xp6(1),A.Q6J("ngIf",!o.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",o.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),A.xp6(4),A.Q6J("ngForOf",o.chains))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,Bt.PC,Y.Zl,Bt.sg],pipes:[Bt.gd],styles:[""]}),r})();function S(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div")(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div")(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div")(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA()()()),2&r){const t=A.oxw();A.xp6(5),A.hij("",A.lcZ(6,5,t.balances.lightning)," Sats"),A.xp6(2),A.s9C("value",t.balances.lightning/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(13,7,t.balances.onchain)," Sats"),A.xp6(2),A.s9C("value",t.balances.onchain/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(20,9,t.balances.total)," Sats")}}function F(r,m){if(1&r&&(A.TgZ(0,"div",6)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let z=(()=>{class r{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,S,21,11,"div",0),A.YNc(1,F,3,1,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,T.pW],pipes:[Bt.JJ],styles:[""]}),r})();var P=Ut(7322),eA=Ut(7238),sA=Ut(4834),q=Ut(8129);const BA=function(){return["../connections/channels/open"]},pA=function(r){return{filter:r}};function lA(r,m){if(1&r&&(A.TgZ(0,"div",19)(1,"a",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(23,BA))("state",A.VKq(24,pA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,11,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(6),A.hij("",A.xi3(9,15,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",o.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,18,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,20,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function cA(r,m){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,lA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function gA(r,m){if(1&r&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,cA,2,1,"div",16),A.qZA()()),2&r){const t=A.oxw(),o=A.MAs(2);A.xp6(8),A.hij("",A.xi3(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",t.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),A.xp6(5),A.hij("",A.xi3(18,12,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),A.xp6(4),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",o)}}function xA(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA()()}}function FA(r,m){if(1&r&&(A.TgZ(0,"div",28)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let _=(()=>{class r{constructor(t){this.router=t,this.faBalanceScale=h.DL8,this.faDumbbell=h.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,gA,24,15,"div",0),A.YNc(1,xA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,FA,3,1,"ng-template",null,2,A.W1O)),2&t){const U=A.MAs(4);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.Wh,ft.yH,P.bx,e.BN,eA.gM,T.pW,sA.d,q.$V,Bt.sg,Vt.yS,w.lW],pipes:[Bt.JJ,Bt.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function MA(r,m){if(1&r&&(A.TgZ(0,"div")(1,"h4",4),A._uU(2,"Transactions"),A.qZA(),A.TgZ(3,"div",5),A._uU(4),A.ALo(5,"number"),A.qZA()()),2&r){const t=A.oxw(2);A.xp6(4),A.Oqu(A.lcZ(5,1,null==t.fees?null:t.fees.totalTxCount))}}function uA(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA()()(),A.TgZ(8,"div",6),A.YNc(9,MA,6,3,"div",7),A.qZA()()),2&r){const t=A.oxw();A.xp6(6),A.hij("",A.lcZ(7,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),A.xp6(3),A.Q6J("ngIf",null==t.fees?null:t.fees.totalTxCount)}}function dA(r,m){if(1&r&&(A.TgZ(0,"div",8)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let SA=(()=>{class r{constructor(){this.totalFees=[{name:"Total",value:0}]}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,uA,10,4,"div",0),A.YNc(1,dA,3,1,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh],pipes:[Bt.JJ],styles:[""]}),r})();function bA(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA()(),A.TgZ(9,"div")(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA()(),A.TgZ(16,"div")(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA()()(),A.TgZ(23,"div",3)(24,"div")(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA()(),A.TgZ(30,"div")(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA()(),A.TgZ(36,"div")(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(7),A.Oqu(A.lcZ(8,6,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(15,8,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(22,10,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),A.xp6(7),A.hij("",A.lcZ(29,12,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(35,14,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(41,16,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats")}}function XA(r,m){if(1&r&&(A.TgZ(0,"div",9)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let X=(()=>{class r{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,bA,42,18,"div",0),A.YNc(1,XA,3,1,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh],pipes:[Bt.JJ],styles:[""]}),r})();function O(r,m){if(1&r&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function $(r,m){if(1&r&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function W(r,m){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,o=A.oxw(3);A.s9C("value",o.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/o.totalLiquidity*100:0)}}function hA(r,m){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,o=A.oxw(3);A.s9C("value",o.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/o.totalLiquidity*100:0)}}const vA=function(){return["../connections/channels/open"]},nA=function(r){return{filter:r}};function EA(r,m){if(1&r&&(A.TgZ(0,"div",14)(1,"a",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,O,5,4,"mat-hint",17),A.YNc(6,$,5,4,"mat-hint",17),A.qZA(),A.YNc(7,W,1,1,"mat-progress-bar",18),A.YNc(8,hA,1,1,"mat-progress-bar",18),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(14,vA))("state",A.VKq(15,nA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,10,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(3),A.Q6J("ngIf","In"===o.direction),A.xp6(1),A.Q6J("ngIf","Out"===o.direction),A.xp6(1),A.Q6J("ngIf","In"===o.direction),A.xp6(1),A.Q6J("ngIf","Out"===o.direction)}}function GA(r,m){if(1&r&&(A.TgZ(0,"div",12),A.YNc(1,EA,9,17,"div",13),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const et=function(r,m,t){return{"mb-4":r,"mb-2":m,"mb-1":t}};function st(r,m){if(1&r&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,GA,2,1,"div",11),A.qZA()()),2&r){const t=A.oxw(),o=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,et,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(5),A.hij("",A.xi3(6,4,t.totalLiquidity,"1.0-0")," Sats"),A.xp6(6),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",o)}}function TA(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).goToChannels()}),A._uU(1,"Open Channel"),A.qZA()}}function at(r,m){if(1&r&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,TA,2,0,"button",23),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function It(r,m){if(1&r&&(A.TgZ(0,"div",25)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let mt=(()=>{class r{constructor(t,o){this.router=t,this.commonService=o,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,st,12,11,"div",0),A.YNc(1,at,3,1,"ng-template",null,1,A.W1O),A.YNc(3,It,3,1,"ng-template",null,2,A.W1O)),2&t){const U=A.MAs(4);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.Wh,ft.yH,Bt.mk,Y.oO,P.bx,T.pW,sA.d,q.$V,Bt.sg,Vt.yS,eA.gM,w.lW],pipes:[Bt.JJ,Bt.OU],styles:[""]}),r})();var Et=Ut(3251),OA=Ut(9300),WA=Ut(6087),nt=Ut(4847),DA=Ut(2075),dt=Ut(8966),wt=Ut(429),Tt=Ut(6642),JA=Ut(3075),H=Ut(7531),k=Ut(3390),b=Ut(6534),QA=Ut(4107),wA=Ut(508),RA=Ut(2368);function rA(r,m){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function gt(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function Yt(r,m){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,gt,2,1,"span",30),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let j=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.dialogRef=t,this.data=o,this.store=U,this.decimalPipe=CA,this.commonService=it,this.actions=Dt,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.timeUnitEnum=a.Qk,this.timeUnits=a.LO,this.selTimeUnit=a.Qk.SECS,this.invoiceError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let o=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&this.expiry&&(o=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,wt.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:o,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-invoices"]],decls:39,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,o){if(1&t){const U=A.EpF();A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Invoice"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(it){return o.description=it}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(it){return o.invoiceValue=it})("keyup",function(){return o.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(it){return o.expiry=it}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA()(),A.TgZ(25,"mat-form-field",17)(26,"mat-select",18),A.NdJ("selectionChange",function(it){return o.onTimeUnitChange(it)}),A.YNc(27,rA,3,4,"mat-option",19),A.qZA()()(),A.TgZ(28,"div",20)(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(it){return o.private=it}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA()(),A.YNc(33,Yt,3,2,"div",23),A.TgZ(34,"div",24)(35,"button",25),A.NdJ("click",function(){return o.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(U);const it=A.MAs(10);return o.onAddInvoice(it)}),A._uU(38,"Create Invoice"),A.qZA()()()()()()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",o.description),A.xp6(3),A.Q6J("ngModel",o.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(o.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",o.expiry)("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,o.selTimeUnit)," "),A.xp6(3),A.Q6J("value",o.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",o.timeUnits),A.xp6(2),A.Q6J("ngModel",o.private),A.xp6(4),A.Q6J("ngIf",""!==o.invoiceError))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,k.h,JA.JJ,JA.On,JA.wV,JA.qQ,b.q,P.R9,P.bx,QA.gD,Bt.sg,wA.ey,RA.Rr,p.Hw,eA.gM,Bt.O5,e.BN],pipes:[Bt.rS],styles:[""]}),r})();var qA=Ut(5566),kA=Ut(7861),yA=Ut(3093);function KA(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().description=U}),A.qZA()(),A.TgZ(4,"mat-form-field",8)(5,"input",9),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().invoiceValue=U})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA()(),A.TgZ(10,"div",11)(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const U=A.MAs(1);return A.oxw().onAddInvoice(U)}),A._uU(14,"Create Invoice"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.description),A.xp6(2),A.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(t.invoiceValueHint)}}function lt(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",14)(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA()()}}function bt(r,m){1&r&&A._UZ(0,"mat-progress-bar",46)}function xt(r,m){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const Lt=function(r){return{"mr-0":r}};function Xt(r,m){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function Ge(r,m){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function oe(r,m){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function ne(r,m){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Xt,1,3,"span",49),A.YNc(2,Ge,1,3,"span",50),A.YNc(3,oe,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Q6J("ngIf","paid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","unpaid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","expired"===(null==t?null:t.status)),A.xp6(1),A.hij(" ",A.xi3(5,4,1e3*(null==t?null:t.expires_at),"dd/MMM/y HH:mm")," ")}}function Fe(r,m){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function He(r,m){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function be(r,m){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function yn(r,m){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function xn(r,m){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const ae=function(r){return{"max-width":r}};function an(r,m){if(1&r&&(A.TgZ(0,"td",48)(1,"div",55)(2,"span",56),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ae,o.screenSize===o.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function Ne(r,m){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function on(r,m){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"),"")}}function An(r,m){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Hn(r,m){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_received)/1e3,(null==t?null:t.msatoshi_received)<1e3?"1.0-4":"1.0-0"),"")}}function Jn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",59)(1,"div",60)(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const kt=function(r){return{"px-3":r}};function Gt(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",63)(1,"div",64)(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(CA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(CA)}),A._uU(7,"Refresh"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,kt,t.screenSize!==t.screenSizeEnum.XS))}}function $t(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function le(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function vn(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function pn(r,m){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,$t,2,0,"p",67),A.YNc(2,le,2,0,"p",67),A.YNc(3,vn,2,1,"p",67),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Tn=function(r){return{"display-none":r}};function Zn(r,m){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Tn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function fr(r,m){1&r&&A._UZ(0,"tr",69)}function Sn(r,m){1&r&&A._UZ(0,"tr",70)}const ZA=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},YA=function(){return["no_invoice"]};function tt(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",17)(1,"div",18)(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA()(),A.TgZ(6,"mat-form-field",22)(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().selFilter=U}),A.qZA()()(),A.TgZ(8,"div",24),A.YNc(9,bt,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,xt,2,0,"th",29),A.YNc(14,ne,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Fe,2,0,"th",29),A.YNc(17,He,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,be,2,0,"th",29),A.YNc(20,yn,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,xn,2,0,"th",29),A.YNc(23,an,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,Ne,2,0,"th",35),A.YNc(26,on,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,An,2,0,"th",35),A.YNc(29,Hn,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Jn,6,0,"th",38),A.YNc(32,Gt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,pn,4,3,"td",41),A.BQk(),A.YNc(35,Zn,1,3,"tr",42),A.YNc(36,fr,1,0,"tr",43),A.YNc(37,Sn,1,0,"tr",44),A.qZA()(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.invoices)("ngClass",A.VKq(12,ZA,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,YA)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let UA=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht){this.logger=t,this.store=o,this.decimalPipe=U,this.commonService=CA,this.rtlEffects=it,this.datePipe=Dt,this.actions=Ht,this.calledFrom="transactions",this.faHistory=h.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","type","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","type","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=t.listInvoices.invoices||[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,OA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:j}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const o=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,wt.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:o,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,kA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,wt.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at:t.expires_at,paid_at:t.paid_at,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:qA.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){var t;(null===(t=this.selNode)||void 0===t?void 0:t.fiatConversion)&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:o=>{this.invoiceValueHint="= "+this.decimalPipe.transform(o.OTHER,a.Xz.OTHER)+" "+o.symbol},error:o=>{this.invoiceValueHint="Conversion Error: "+o}}))}onRefreshInvoice(t){this.store.dispatch((0,wt.n7)({payload:t.label}))}updateInvoicesData(t){var o;this.invoiceJSONArr=null===(o=this.invoiceJSONArr)||void 0===o?void 0:o.map(U=>U.label===t.label?t:U)}loadInvoicesTable(t){this.invoices=new DA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(o,U)=>{var CA,it;return((null===(CA=this.datePipe.transform(new Date(1e3*(o.paid_at||0)),"dd/MMM/YYYY HH:mm"))||void 0===CA?void 0:CA.toLowerCase())+(null===(it=this.datePipe.transform(new Date(1e3*(o.expires_at||0)),"dd/MMM/YYYY HH:mm"))||void 0===it?void 0:it.toLowerCase())+(o.bolt12?"bolt12":o.bolt11?"bolt11":"keysend")+JSON.stringify(o).toLowerCase()).includes(U)},this.invoices.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(yA.V),A.Y36(Bt.uU),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,KA,15,5,"form",1),A.YNc(2,lt,5,0,"div",2),A.YNc(3,tt,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,JA.wV,JA.qQ,b.q,P.R9,P.bx,w.lW,e.BN,q.$V,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,eA.gM,Bt.PC,Y.Zl,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var PA=Ut(5698),LA=Ut(8104),HA=Ut(9814),$A=Ut(7446);const zA=["sendPaymentForm"],ot=["paymentAmt"],VA=["offerAmt"],Mt=["paymentReq"],Nt=["offerReq"];function Pt(r,m){if(1&r&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&r){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function Kt(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().paymentType=U})("change",function(){return A.CHM(t),A.oxw().onPaymentTypeChange()}),A.TgZ(1,"mat-radio-button",19),A._uU(2,"Invoice"),A.qZA(),A.TgZ(3,"mat-radio-button",20),A._uU(4,"Keysend"),A.qZA(),A.YNc(5,Pt,2,1,"mat-radio-button",21),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngModel",t.paymentType),A.xp6(1),A.s9C("value",t.paymentTypes.INVOICE),A.xp6(2),A.s9C("value",t.paymentTypes.KEYSEND),A.xp6(2),A.Q6J("ngIf",t.selNode.enableOffers)}}function qt(r,m){1&r&&A.GkF(0)}function ie(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function Ct(r,m){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,ie,2,1,"span",25),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function Rt(r,m){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Wt(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Ot(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Be(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function _t(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",29,30),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw(2).paymentAmount=U})("change",function(U){return A.CHM(t),A.oxw(2).onAmountChange(U)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount invoice, enter amount to be paid."),A.qZA(),A.YNc(5,Be,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function he(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",26,27),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().onPaymentRequestEntry(U)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Rt,2,1,"mat-hint",25),A.YNc(4,Wt,2,0,"mat-error",25),A.YNc(5,Ot,2,1,"mat-error",25),A.qZA(),A.YNc(6,_t,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),o=A.oxw();A.xp6(1),A.Q6J("ngModel",o.paymentRequest),A.xp6(2),A.Q6J("ngIf",o.paymentRequest&&""!==o.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!o.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",o.zeroAmtInvoice)}}function ue(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ye(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function Je(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",31),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().pubkey=U}),A.qZA(),A.YNc(2,ue,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1)(4,"input",32,33),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().keysendAmount=U}),A.qZA(),A.YNc(6,ye,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.pubkey),A.xp6(1),A.Q6J("ngIf",!t.pubkey),A.xp6(2),A.Q6J("ngModel",t.keysendAmount),A.xp6(2),A.Q6J("ngIf",!t.keysendAmount)}}function Ue(r,m){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Ye(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function Pe(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function nn(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function Fn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",40,41),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw(2).offerAmount=U})("change",function(U){return A.CHM(t),A.oxw(2).onAmountChange(U)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount offer, enter amount to be paid."),A.qZA(),A.YNc(5,nn,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function ln(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42)(1,"input",43),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw(2).offerTitle=U}),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function mn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",34,35),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().onPaymentRequestEntry(U)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ue,2,1,"mat-hint",25),A.YNc(4,Ye,2,0,"mat-error",25),A.YNc(5,Pe,2,1,"mat-error",25),A.qZA(),A.YNc(6,Fn,6,2,"mat-form-field",28),A.TgZ(7,"div",36)(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().flgSaveToDB=U}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA()(),A.YNc(12,ln,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),o=A.oxw();A.xp6(1),A.Q6J("ngModel",o.offerRequest),A.xp6(2),A.Q6J("ngIf",o.offerRequest&&""!==o.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!o.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",o.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",o.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",o.flgSaveToDB||""!==o.offerTitle)}}let Yn=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht,ze){this.dialogRef=t,this.data=o,this.store=U,this.logger=CA,this.commonService=it,this.decimalPipe=Dt,this.actions=Ht,this.dataService=ze,this.faExclamationTriangle=h.eHv,this.paymentTypes=a.IX,this.paymentType=a.IX.INVOICE,this.selNode={},this.offerDecoded={},this.offerRequest="",this.offerDecodedHint="",this.offerDescription="",this.offerVendor="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.feeLimitTypes=a.Vc,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}set payReq(t){t&&(this.paymentReq=t)}set offrReq(t){t&&(this.offerReq=t)}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case a.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case a.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case a.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.isCompatibleVersion=this.commonService.isVersionCompatible(t.version,"0.9.0")&&this.commonService.isVersionCompatible(t.api_version,"0.4.0")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SEND_PAYMENT_STATUS_CLN||t.type===a.AB.SET_OFFER_INVOICE_CLN)).subscribe(t=>{t.type===a.AB.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),t.type===a.AB.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===a.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===a.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===a.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case a.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case a.IX.INVOICE:if(!this.paymentRequest||this.zeroAmtInvoice&&(0===this.paymentAmount||!this.paymentAmount))return this.paymentReq.control.markAsTouched(),this.paymentAmt.control.markAsTouched(),!0;this.paymentDecoded.created_at?this.sendPayment():(this.resetInvoiceDetails(),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{"bolt12 offer"===t.type&&t.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=t,this.setPaymentDecodedDetails())}));break;case a.IX.OFFER:if(!this.offerRequest||this.zeroAmtOffer&&(0===this.offerAmount||!this.offerAmount))return this.offerReq.control.markAsTouched(),this.offerAmt.control.markAsTouched(),!0;this.offerDecoded.offer_id?this.sendPayment():(this.resetOfferDetails(),this.dataService.decodePayment(this.offerRequest,!0).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{"bolt11 invoice"===t.type&&t.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=t,this.setOfferDecodedDetails())}))}}keysendPayment(){this.keysendAmount&&this.store.dispatch((0,wt.oV)({payload:{uiMessage:a.m6.SEND_KEYSEND,paymentType:a.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===a.IX.INVOICE?this.store.dispatch((0,wt.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===a.IX.OFFER&&(this.offerInvoice?this.offerAmount&&this.store.dispatch((0,wt.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.OFFER,invoice:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,vendor:this.offerVendor,description:this.offerDescription,fromDialog:!0}})):this.store.dispatch((0,wt.eM)(this.zeroAmtOffer&&this.offerAmount?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}})))}onPaymentRequestEntry(t){this.paymentType===a.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===a.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,i.R)(this.unSubs[6])).subscribe(o=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===o.type&&o.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=o,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===o.type&&o.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=o,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHint="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(t){this.paymentType===a.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===a.IX.OFFER&&(delete this.offerDecoded.amount,delete this.offerDecoded.amount_msat,this.offerDecoded.amount=1e3*+t.target.value,this.offerDecoded.amount_msat=t.target.value+"msat")}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHint="",this.offerDecodedHint="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.description||"",this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.offerDecodedHint="Zero Amount Offer | Description: "+this.offerDecoded.description):(this.zeroAmtOffer=!1,this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+this.offerDecoded.amount_msat.slice(0,-4):null,this.offerAmount=this.offerDecoded.amount?this.offerDecoded.amount/1e3:0,this.offerDescription=this.offerDecoded.description||"",this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[7])).subscribe({next:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Description: "+this.offerDecoded.description},error:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description+". Unable to convert currency."}}):this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description)}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[8])).subscribe({next:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description)}resetData(){switch(this.paymentType){case a.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case a.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.resetInvoiceDetails();break;case a.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(C.v),A.Y36(Bt.JJ),A.Y36(Tt.eX),A.Y36(LA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,o){if(1&t&&(A.Gf(zA,5),A.Gf(ot,5),A.Gf(VA,5),A.Gf(Mt,5),A.Gf(Nt,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first),A.iGM(U=A.CRH())&&(o.paymentAmt=U.first),A.iGM(U=A.CRH())&&(o.offerAmt=U.first),A.iGM(U=A.CRH())&&(o.payReq=U.first),A.iGM(U=A.CRH())&&(o.offrReq=U.first)}},decls:25,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","10","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],["sendPaymentForm","ngForm"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["autoFocus","","matInput","","placeholder","Payment Request","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","4","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","5","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"],["autoFocus","","matInput","","placeholder","Offer Request","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["offerReq","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModel","ngModelChange"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amountoffer","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["offerAmt","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Title to Save","tabindex","7",3,"ngModel","ngModelChange"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Send Payment"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Kt,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return o.onSendPayment()})("reset",function(){return o.resetData()}),A.YNc(12,qt,1,0,"ng-container",10),A.YNc(13,Ct,3,2,"div",11),A.TgZ(14,"div",12)(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA()()()()()(),A.YNc(19,he,7,5,"ng-template",null,15,A.W1O),A.YNc(21,Je,7,4,"ng-template",null,16,A.W1O),A.YNc(23,mn,13,7,"ng-template",null,17,A.W1O)),2&t){const U=A.MAs(20),CA=A.MAs(22),it=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",o.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",o.paymentType===o.paymentTypes.KEYSEND?CA:o.paymentType===o.paymentTypes.OFFER?it:U),A.xp6(1),A.Q6J("ngIf",""!==o.paymentError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,Bt.O5,HA.VQ,JA.JJ,JA.On,HA.U0,JA._Y,JA.JL,JA.F,Bt.tP,e.BN,P.KE,H.Nt,JA.Fj,k.h,JA.Q7,P.bx,P.TO,$A.oG,p.Hw,eA.gM],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();var tn=Ut(4947);const En=["sendPaymentForm"];function un(r,m){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function $n(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Ur(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().onPaymentRequestEntry(U)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,un,2,1,"mat-hint",9),A.YNc(6,$n,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10)(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.paymentRequest),A.xp6(2),A.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!t.paymentRequest)}}function Pr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",13)(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA()()}}function or(r,m){1&r&&A._UZ(0,"mat-progress-bar",50)}function Nn(r,m){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const Un=function(r){return{"mr-0":r}};function IA(r,m){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function J(r,m){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function N(r,m){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,IA,1,3,"span",53),A.YNc(2,J,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*(null==t?null:t.created_at),"dd/MMM/y HH:mm")," ")}}function Z(r,m){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function K(r,m){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function fA(r,m){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const mA=function(r){return{"max-width":r}};function At(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",57)(2,"span",58),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,mA,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function rt(r,m){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function ht(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function Qt(r,m){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function vt(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Ft(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",61)(1,"div",62)(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function St(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",65)(1,"button",66),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(CA)}),A._uU(2,"View Info"),A.qZA()()}}function jt(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Zt(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Ee(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Ce(r,m){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,jt,2,0,"p",9),A.YNc(2,Zt,2,0,"p",9),A.YNc(3,Ee,2,1,"p",9),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function me(r,m){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function sn(r,m){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function pe(r,m){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function We(r,m){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function Qn(r,m){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,pe,1,3,"span",69),A.YNc(2,We,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*t.created_at,"dd/MMM/y HH:mm")," ")}}function Ze(r,m){if(1&r&&(A.ynx(0),A.YNc(1,Qn,5,6,"span",73),A.BQk()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function dn(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A.YNc(2,me,1,3,"span",69),A.YNc(3,sn,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Ze,2,1,"ng-container",9),A.qZA()),2&r){const t=m.$implicit;A.xp6(2),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" Total Attempts: ",null==t?null:t.total_parts," "),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Xn(r,m){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Ar(r,m){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Xn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Pn(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Ar,2,1,"span",9),A.qZA()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Jr(r,m){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" Part ID ",t.id?t.id:0," ")}}function jn(r,m){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Jr,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function sr(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",76)(2,"span",58),A._uU(3),A.qZA()(),A.YNc(4,jn,2,1,"span",9),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,mA,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Ir(r,m){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function tr(r,m){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Ir,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function hr(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,tr,2,1,"span",9),A.qZA()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function Or(r,m){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function qn(r,m){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Or,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function kr(r,m){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,qn,2,1,"span",9),A.qZA()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function vr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",60)(1,"button",82),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(CA)}),A._uU(2),A.qZA()()}if(2&r){const t=m.$implicit;A.xp6(2),A.hij("View ",t.id?t.id:0,"")}}function jr(r,m){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,vr,3,1,"div",81),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Kr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",79)(1,"span",60)(2,"button",80),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return CA.is_expanded=!CA.is_expanded}),A._uU(3),A.qZA()(),A.YNc(4,jr,2,1,"div",9),A.qZA()}if(2&r){const t=m.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function fi(r,m){1&r&&A._UZ(0,"tr",83)}const Vr=function(r){return{"display-none":r}};function lr(r,m){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Vr,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Wr(r,m){1&r&&A._UZ(0,"tr",85)}function _n(r,m){1&r&&A._UZ(0,"tr",83)}const Ji=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Oi=function(){return["no_payment"]};function go(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",14)(1,"div",15)(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA()(),A.TgZ(6,"mat-form-field",19)(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().selFilter=U}),A.qZA()()(),A.TgZ(8,"div",21)(9,"div",22),A.YNc(10,or,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,Nn,2,0,"th",27),A.YNc(15,N,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,Z,2,0,"th",27),A.YNc(18,K,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,fA,2,0,"th",27),A.YNc(21,At,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,rt,2,0,"th",32),A.YNc(24,ht,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,Qt,2,0,"th",32),A.YNc(27,vt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,Ft,6,0,"th",35),A.YNc(30,St,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,Ce,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,dn,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,Pn,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,sr,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,hr,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,kr,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,Kr,5,2,"td",45),A.BQk(),A.YNc(45,fi,1,0,"tr",46),A.YNc(46,lr,1,3,"tr",47),A.YNc(47,Wr,1,0,"tr",48),A.YNc(48,_n,1,0,"tr",46),A.qZA()()(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(3),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.payments)("ngClass",A.VKq(15,Ji,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,Oi)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ca=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht,ze,$e){this.logger=t,this.commonService=o,this.store=U,this.rtlEffects=CA,this.clnEffects=it,this.decimalPipe=Dt,this.titleCasePipe=Ht,this.datePipe=ze,this.dataService=$e,this.calledFrom="transactions",this.faHistory=h.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","type","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","type","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,o){return o.is_group||!1}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()})}sendPayment(){var t;this.newlyAddedPayment=(null===(t=this.paymentDecoded)||void 0===t?void 0:t.payment_hash)||"",this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,PA.q)(1)).subscribe(U=>{U&&(this.store.dispatch((0,wt.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:40,type:a.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:a.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,PA.q)(1)).subscribe(CA=>{CA&&(this.paymentDecoded.msatoshi=CA[0].inputValue,this.store.dispatch((0,wt.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*CA[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(o=>{var U;this.paymentDecoded=o,this.paymentDecoded.msatoshi?(null===(U=this.selNode)||void 0===U?void 0:U.fiatConversion)?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:CA=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+CA.symbol+this.decimalPipe.transform(CA.OTHER?CA.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:CA=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,kA.qR)({payload:{data:{component:Yn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const o=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:a.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:a.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:a.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:a.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:a.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&(null==o||o.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}])),t.bolt12&&""!==t.bolt12&&(null==o||o.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}])),t.memo&&""!==t.memo&&(null==o||o.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}])),t.hasOwnProperty("partid")?null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:a.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:a.Gi.STRING}]):null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Payment Information",message:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new DA.by(t?[...t]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.payments.filterPredicate=(o,U)=>{var CA;return((o.created_at?null===(CA=this.datePipe.transform(new Date(1e3*o.created_at),"dd/MMM/YYYY HH:mm"))||void 0===CA?void 0:CA.toLowerCase():"")+(o.bolt12?"bolt12":o.bolt11?"bolt11":"keysend")+JSON.stringify(o).toLowerCase()).includes(U)},this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),o=null==t?void 0:t.reduce((U,CA)=>CA.mpps?U.concat(CA.mpps):(delete CA.is_group,delete CA.is_expanded,delete CA.total_parts,U.concat(CA)),[]);this.commonService.downloadFile(o,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(yA.V),A.Y36(tn.J),A.Y36(Bt.JJ),A.Y36(Bt.rS),A.Y36(Bt.uU),A.Y36(LA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,o){if(1&t&&(A.Gf(En,5),A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first),A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupType"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","mpp-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ur,12,3,"form",1),A.YNc(2,Pr,3,0,"div",2),A.YNc(3,go,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,JA.Q7,q.$V,JA.JJ,JA.On,P.bx,P.TO,w.lW,e.BN,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,eA.gM,Bt.PC,Y.Zl,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,Bt.sg,DA.nj,DA.Gk,DA.Ke,DA.Q2,DA.as,DA.XQ,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),r})();function Bo(r,m){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&r){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function uo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const CA=A.CHM(t).index,it=A.oxw().$implicit;return A.oxw(2).onNavigateTo(it.links[CA])}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t)}}function fo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&r){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function ho(r,m){1&r&&A._UZ(0,"mat-progress-bar",28)}function Eo(r,m){if(1&r&&A._UZ(0,"rtl-cln-node-info",29),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function ga(r,m){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function wo(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-capacity-info",31),2&r){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function Ba(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-info",32),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function ua(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",33),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Co(r,m){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const fa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Qo(r,m){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA()(),A.TgZ(8,"div"),A.YNc(9,Bo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,uo,2,1,"button",15),A.YNc(13,fo,2,1,"button",16),A.qZA()()()(),A.TgZ(14,"mat-card-content",17),A.YNc(15,ho,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,Eo,1,2,"rtl-cln-node-info",20),A.YNc(18,ga,1,2,"rtl-cln-balances-info",21),A.YNc(19,wo,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,Ba,1,2,"rtl-cln-fee-info",23),A.YNc(21,ua,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,Co,2,0,"h3",25),A.qZA()()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(5),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions),A.xp6(1),A.Q6J("ngIf","capacity"===t.id),A.xp6(1),A.s9C("fxFlex","capacity"===t.id?90:70),A.Q6J("ngClass",A.VKq(16,fa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","capacity"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","status")}}function Mo(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA()(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,Qo,23,18,"mat-grid-tile",7),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),A.xp6(2),A.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.xp6(1),A.Q6J("rowHeight",t.operatorCardHeight),A.xp6(1),A.Q6J("ngForOf",t.operatorCards)}}function po(r,m){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&r){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function mo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const CA=A.CHM(t).index,it=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(it.links[CA])}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t)}}function Io(r,m){if(1&r&&(A.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA()(),A.TgZ(6,"div"),A.YNc(7,po,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,mo,2,1,"button",15),A.qZA()()()()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions)}}function vo(r,m){1&r&&A._UZ(0,"mat-progress-bar",28)}function Do(r,m){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function yo(r,m){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function ha(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function xo(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function Fo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const CA=A.CHM(t).index,it=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(it.links[CA])}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t)}}function Yo(r,m){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()(),A.TgZ(3,"mat-menu",13,53),A.YNc(5,Fo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),o=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",o.goToOptions)}}function To(r,m){1&r&&(A.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),A._UZ(3,"rtl-cln-lightning-invoices-table",48),A.qZA(),A.TgZ(4,"mat-tab",49),A._UZ(5,"rtl-cln-lightning-payments",50),A.qZA(),A.TgZ(6,"mat-tab",51),A.YNc(7,Yo,6,2,"ng-template",52),A.qZA()()()),2&r&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function er(r,m){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Er=function(r){return{"p-0":r}};function hi(r,m){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),A.YNc(2,Io,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,vo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Do,1,1,"rtl-cln-node-info",39),A.YNc(7,yo,1,2,"rtl-cln-balances-info",21),A.YNc(8,ha,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,xo,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,To,8,3,"span",41),A.YNc(11,er,2,0,"h3",25),A.qZA()()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Er,"transactions"===t.id)),A.xp6(1),A.Q6J("ngIf","transactions"!==t.id),A.xp6(1),A.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),A.Q6J("ngClass",A.VKq(15,fa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","inboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","outboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","transactions")}}function So(r,m){if(1&r&&(A.TgZ(0,"div",34),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA()(),A.TgZ(4,"mat-grid-list",35),A.YNc(5,hi,12,17,"mat-grid-tile",7),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faSmile),A.xp6(2),A.hij("Welcome ",t.information.alias,"! Your node is up and running."),A.xp6(1),A.Q6J("rowHeight",t.merchantCardHeight),A.xp6(1),A.Q6J("ngForOf",t.merchantCards)}}let No=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.store=o,this.commonService=U,this.router=CA,this.faSmile=l.ctA,this.faFrown=l.KfU,this.faAngleDoubleDown=h.Sbq,this.faAngleDoubleUp=h.Vfw,this.faChartPie=h.OS1,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.userPersonaEnum=a.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.activeChannels=[],this.channelsStatus={active:{},pending:{},inactive:{}},this.activeChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBalance=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.errorMessages[5]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusFHistory=t.apisCallStatus[1],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]=this.apiCallStatusNodeInfo.message?"object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message:""),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]=this.apiCallStatusFHistory.message?"object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message:""),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]=this.apiCallStatusFees.message?"object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message:""),this.fees=t.fees,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{var o,U;this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]=this.apiCallStatusChannels.message?"object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message:""),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=t.activeChannels,this.activeChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels,"balancedness")))||[],this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.activeChannels)||void 0===o?void 0:o.filter(CA=>!!CA.msatoshi_to_them&&CA.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(U=this.activeChannels)||void 0===U?void 0:U.filter(CA=>!!CA.msatoshi_to_us&&CA.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(CA=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil((CA.msatoshi_to_them||0)/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor((CA.msatoshi_to_us||0)/1e3)}),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3]),(0,s.M)(this.store.select(B.Wj))).subscribe(([t,o])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]=this.apiCallStatusBalance.message?"object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message:""),this.errorMessages[3]="",this.apiCallStatusLRBal=o.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]=this.apiCallStatusLRBal.message?"object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message:""),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance||0,this.balances.lightning=o.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const U=o.localRemoteBalance.localBalance?+o.localRemoteBalance.localBalance:0,CA=o.localRemoteBalance.remoteBalance?+o.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:U,remoteBalance:CA,balancedness:+(1-Math.abs((U-CA)/(U+CA))).toFixed(3)},this.channelsStatus.active.capacity=o.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=o.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=o.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(o)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,o)=>{const U=(t.msatoshi_to_us?+t.msatoshi_to_us:0)+(t.msatoshi_to_them?+t.msatoshi_to_them:0),CA=(o.msatoshi_to_them?+o.msatoshi_to_them:0)+(o.msatoshi_to_them?+o.msatoshi_to_them:0);return U>CA?-1:U{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,o){if(1&t&&(A.YNc(0,Mo,7,4,"div",0),A.YNc(1,So,6,4,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",(null==o.selNode?null:o.selNode.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.Wh,e.BN,f.Il,Bt.sg,f.DX,ft.yH,g.a8,g.dk,g.n5,w.lW,Q.p6,p.Hw,Q.VK,Q.OP,g.dn,Bt.mk,Y.oO,T.pW,Bt.RF,Bt.n9,R,z,_,SA,X,Bt.ED,mt,Et.SP,Et.uX,UA,ca,Et.uD],styles:[""]}),r})();var Ea=Ut(9841),Uo=Ut(8012),wa=Ut(8377),Rr=Ut(7261),cr=Ut(1125),Dr=Ut(5615);const Po=["form"],Ro=["formSweepAll"],Lo=["stepper"];function zo(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function bo(r,m){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Go(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function Ho(r,m){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function Jo(r,m){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Oo(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function ko(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39)(1,"input",40,41),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw(2).customFeeRate=U}),A.qZA(),A.YNc(3,Oo,2,0,"mat-error",14),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function jo(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ca(r,m){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function Ko(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",23)(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"div",22)(7,"div",43)(8,"mat-form-field",44)(9,"mat-select",45),A.NdJ("selectionChange",function(U){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(U)})("valueChange",function(U){return A.CHM(t),A.oxw(2).selUTXOs=U}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ca,3,4,"mat-option",21),A.qZA()(),A.TgZ(14,"div",46)(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw(2).flgUseAllBalance=U})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(16," Use selected UTXOs balance "),A.qZA(),A.TgZ(17,"mat-icon",48),A._uU(18,"info_outline"),A.qZA()()()()()()}if(2&r){const t=A.oxw(2);A.xp6(5),A.Oqu(t.advancedTitle),A.xp6(4),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Vo(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Wo(r,m){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Vo,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const Qa=function(r,m){return{"mr-6":r,"mr-2":m}};function Zo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11)(3,"input",12,13),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().transaction.address=U}),A.qZA(),A.YNc(5,zo,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15)(7,"input",16,17),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().transaction.satoshis=U}),A.qZA(),A.YNc(9,bo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Go,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19)(14,"mat-select",20),A.NdJ("selectionChange",function(U){return A.CHM(t),A.oxw().onAmountUnitChange(U)}),A.YNc(15,Ho,2,2,"mat-option",21),A.qZA()(),A.TgZ(16,"div",22)(17,"div",23)(18,"div",24)(19,"mat-form-field",25)(20,"mat-select",26),A.NdJ("valueChange",function(U){return A.CHM(t),A.oxw().selFeeRate=U})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,Jo,2,2,"mat-option",21),A.qZA()(),A.YNc(22,ko,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28)(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().flgMinConf=U})("change",function(){A.CHM(t);const U=A.oxw();return U.flgMinConf?U.selFeeRate=null:U.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30)(26,"input",31,32),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().minConfValue=U}),A.qZA(),A.YNc(28,jo,2,0,"mat-error",14),A.qZA()()(),A.YNc(29,Ko,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Wo,3,2,"div",34),A.TgZ(32,"div",35)(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA()()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.transaction.address),A.xp6(2),A.Q6J("ngIf",!t.transaction.address),A.xp6(2),A.Q6J("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),A.xp6(2),A.Q6J("ngIf",t.flgUseAllBalance),A.xp6(2),A.hij(" ",t.selAmountUnit," "),A.xp6(1),A.Q6J("ngIf",!t.transaction.satoshis),A.xp6(2),A.Q6J("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),A.xp6(1),A.Q6J("ngForOf",t.amountUnits),A.xp6(4),A.Q6J("fxFlex","customperkb"!==t.selFeeRate||t.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",t.selFeeRate)("disabled",t.flgMinConf),A.xp6(1),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngModel",t.flgMinConf)("ngClass",A.WLB(28,Qa,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",t.minConfValue)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),A.xp6(2),A.Q6J("ngIf",t.flgMinConf&&!t.minConfValue),A.xp6(1),A.Q6J("ngIf",t.isCompatibleVersion),A.xp6(2),A.Q6J("ngIf",""!==t.sendFundError)}}function Xo(r,m){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function qo(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function _o(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55)(1,"form",73),A.YNc(2,Xo,1,1,"ng-template",67),A.TgZ(3,"div",0)(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,qo,2,0,"mat-error",14),A.qZA()(),A.TgZ(7,"div",75)(8,"button",76),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.passwordFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function $o(r,m){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function As(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function ts(r,m){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function es(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function ce(r,m){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,es,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.customFeeRate.value)}}function ns(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ei(r,m){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function wi(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Lr(r,m){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,wi,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function wr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",51)(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(U){return A.CHM(t),A.oxw().stepSelectionChanged(U)}),A.YNc(3,_o,10,4,"mat-step",54),A.TgZ(4,"mat-step",55)(5,"form",56),A.YNc(6,$o,1,1,"ng-template",57),A.TgZ(7,"div",22)(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,As,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",59)(12,"div",24)(13,"mat-form-field",25)(14,"mat-select",60),A.YNc(15,ts,2,2,"mat-option",21),A.qZA()(),A.YNc(16,ce,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",61),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",62),A.YNc(21,ns,2,0,"mat-error",14),A.qZA()()()(),A.TgZ(22,"div",63)(23,"button",64),A._uU(24,"Next"),A.qZA()()()(),A.TgZ(25,"mat-step",65)(26,"form",66),A.YNc(27,Ei,1,1,"ng-template",67),A.TgZ(28,"div",51)(29,"div",68),A._UZ(30,"fa-icon",69),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA()(),A.YNc(33,Lr,3,2,"div",34),A.TgZ(34,"div",63)(35,"button",70),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA()()()()()(),A.TgZ(37,"div",71)(38,"button",72),A._uU(39),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("ngIf",!t.appConfig.sso.rtlSSO),A.xp6(1),A.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.sendFundFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),A.xp6(3),A.Q6J("fxFlex","customperkb"!==t.sendFundFormGroup.controls.selFeeRate.value||t.sendFundFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(20,Qa,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.minConfValue.value),A.xp6(4),A.Q6J("stepControl",t.confirmFormGroup),A.xp6(1),A.Q6J("formGroup",t.confirmFormGroup),A.xp6(4),A.Q6J("icon",t.faExclamationTriangle),A.xp6(3),A.Q6J("ngIf",""!==t.sendFundError),A.xp6(5),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(t.flgValidated?"Close":"Cancel")}}let Ci=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht,ze,$e,ee){this.dialogRef=t,this.data=o,this.logger=U,this.store=CA,this.commonService=it,this.decimalPipe=Dt,this.actions=Ht,this.formBuilder=ze,this.rtlEffects=$e,this.snackBar=ee,this.faExclamationTriangle=h.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=a._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=a.uA,this.selAmountUnit=a.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=a.Xz,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[JA.kI.required]],password:["",[JA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",JA.kI.required],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(this.sendFundFormGroup.controls.selFeeRate.disable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.reset(),this.sendFundFormGroup.controls.minConfValue.enable(),this.sendFundFormGroup.controls.minConfValue.setValidators([JA.kI.required]),this.sendFundFormGroup.controls.minConfValue.setValue(null)):(this.sendFundFormGroup.controls.selFeeRate.enable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.setValue(null),this.sendFundFormGroup.controls.minConfValue.disable(),this.sendFundFormGroup.controls.minConfValue.setValidators(null),this.sendFundFormGroup.controls.minConfValue.setErrors(null))}),this.sendFundFormGroup.controls.selFeeRate.valueChanges.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.sendFundFormGroup.controls.flgMinConf.value?null:[JA.kI.required])}),(0,Ea.a)([this.store.select(wa.dT),this.store.select(wa.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,o])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=o}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.information=t,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{var o;this.utxos=this.commonService.sortAscByKey(null===(o=t.utxos)||void 0===o?void 0:o.filter(U=>"confirmed"===U.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(t=>{t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,kA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,kA.QO)({payload:Uo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,PA.q)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>{var o;return null===(o=this.transaction.utxos)||void 0===o?void 0:o.push(t.txid+":"+t.output)})),this.sweepAll){if(!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.minConfValue.value||this.sendFundFormGroup.controls.minConfValue.value<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis="all",this.transaction.address=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feeRate,this.transaction.minconf=this.sendFundFormGroup.controls.flgMinConf.value?this.sendFundFormGroup.controls.minConfValue.value:null):(delete this.transaction.minconf,this.transaction.feeRate="customperkb"===this.sendFundFormGroup.controls.selFeeRate.value&&!this.sendFundFormGroup.controls.flgMinConf.value&&this.sendFundFormGroup.controls.customFeeRate.value?1e3*this.sendFundFormGroup.controls.customFeeRate.value+"perkb":this.sendFundFormGroup.controls.selFeeRate.value),delete this.transaction.utxos,this.store.dispatch((0,wt.Wi)({payload:this.transaction}))}else{if(this.transaction.minconf=this.flgMinConf?this.minConfValue:null,this.transaction.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,!this.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==a.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit,a.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[a.NT.SATS],this.selAmountUnit=a.NT.SATS,this.store.dispatch((0,wt.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,wt.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=a.uA[0]}stepSelectionChanged(t){var o;switch(this.sendFundError="",t.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.minConfValue.value:this.sendFundFormGroup.controls.selFeeRate.value?" | Fee Rate: "+(null===(o=this.feeRateTypes.find(U=>U.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value))||void 0===o?void 0:o.feeRateType):"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=null===(o=this.selUTXOs)||void 0===o?void 0:o.reduce((U,CA)=>U+(CA.value||0),0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=a.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const o=this,U=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let CA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,U,CA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:it=>{var Dt;this.selAmountUnit=t.value,o.transaction.satoshis=null===(Dt=o.decimalPipe.transform(it[CA],o.currencyUnitFormats[CA]))||void 0===Dt?void 0:Dt.replace(/,/g,"")},error:it=>{o.transaction.satoshis=null,this.amountError="Conversion Error: "+it,this.selAmountUnit=U,CA=U}})}onAdvancedPanelToggle(t){this.advancedTitle=t&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Bt.JJ),A.Y36(Tt.eX),A.Y36(JA.qu),A.Y36(yA.V),A.Y36(Rr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,o){if(1&t&&(A.Gf(Po,7),A.Gf(Ro,5),A.Gf(Lo,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first),A.iGM(U=A.CRH())&&(o.formSweepAll=U.first),A.iGM(U=A.CRH())&&(o.stepper=U.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","48","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["tabindex","9","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","default","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","default",3,"click"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Zo,37,31,"form",7),A.qZA()()(),A.YNc(10,wr,40,23,"ng-template",null,8,A.W1O)),2&t){const U=A.MAs(11);A.xp6(5),A.Oqu(o.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!o.sweepAll)("ngIfElse",U)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,Bt.O5,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,k.h,JA.Q7,JA.JJ,JA.On,P.TO,b.q,P.bx,P.R9,QA.gD,Bt.sg,wA.ey,JA.wV,JA.qQ,$A.oG,Bt.mk,Y.oO,cr.ib,cr.yz,cr.yK,QA.$L,RA.Rr,p.Hw,eA.gM,e.BN,Dr.Vq,Dr.C0,JA.sg,Dr.VY,JA.u,Dr.Ic],pipes:[Bt.JJ],styles:[""]}),r})();var ki=Ut(1203),ji=Ut(7544);function rs(r,m){1&r&&A._UZ(0,"mat-progress-bar",27)}function zr(r,m){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function br(r,m){1&r&&(A.TgZ(0,"span",36)(1,"mat-icon",37),A._uU(2,"warning"),A.qZA()())}function Ki(r,m){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,br,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const o=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",o)}}function Vi(r,m){1&r&&A._UZ(0,"span",38)}function Wi(r,m){if(1&r&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&r){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const is=function(r){return{"max-width":r}};function da(r,m){if(1&r&&(A.TgZ(0,"td",29)(1,"span",30),A.YNc(2,Ki,2,2,"span",31),A.YNc(3,Vi,1,0,"span",32),A.YNc(4,Wi,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,is,o.screenSize===o.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",o.numDustUTXOs>0&&!o.isDustUTXO),A.xp6(1),A.Q6J("ngIf","confirmed"===t.status),A.xp6(1),A.Q6J("ngIf","confirmed"!==t.status),A.xp6(2),A.Oqu(t.txid)}}function as(r,m){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function os(r,m){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function ss(r,m){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function ls(r,m){if(1&r&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function cs(r,m){if(1&r&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function Ma(r,m){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,ls,3,3,"span",42),A.YNc(2,cs,3,3,"span",43),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function gs(r,m){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function Bs(r,m){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function yr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function zt(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",49)(1,"button",50),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw().onUTXOClick(it,U)}),A._uU(2,"View Info"),A.qZA()()}}function Qi(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function di(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function xr(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function pa(r,m){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,Qi,2,0,"p",31),A.YNc(2,di,2,0,"p",31),A.YNc(3,xr,2,1,"p",31),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Mi=function(r){return{"display-none":r}};function us(r,m){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Mi,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function ma(r,m){1&r&&A._UZ(0,"tr",53)}function fs(r,m){1&r&&A._UZ(0,"tr",54)}function Zr(r,m){1&r&&A._UZ(0,"mat-icon",37)}const pi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},hs=function(){return["no_utxo"]};let Ia=(()=>{class r{constructor(t,o,U){this.logger=t,this.commonService=o,this.store=U,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.logger.info(t)})}ngAfterViewInit(){this.utxos&&this.utxos.length>0&&this.sort&&this.paginator&&this.loadUTXOsTable(this.utxos)}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t,o){const U=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:a.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status||""),title:"Status",width:50,type:a.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:a.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"UTXO Information",message:U}}}))}loadUTXOsTable(t){this.listUTXOs=new DA.by([...t]),this.listUTXOs.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(o,U)=>JSON.stringify(o).toLowerCase().includes(U),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("UTXOs")}]),A.TTD],decls:33,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[4,"ngIf"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()(),A.TgZ(5,"div",5)(6,"div",6),A.YNc(7,rs,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,zr,2,0,"th",11),A.YNc(12,da,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,as,2,0,"th",14),A.YNc(15,os,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,ss,2,0,"th",14),A.YNc(18,Ma,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,gs,2,0,"th",14),A.YNc(21,Bs,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,yr,6,0,"th",18),A.YNc(24,zt,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,pa,4,3,"td",21),A.BQk(),A.YNc(27,us,1,3,"tr",22),A.YNc(28,ma,1,0,"tr",23),A.YNc(29,fs,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA()()(),A.YNc(31,Zr,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(3),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.listUTXOs)("ngClass",A.VKq(11,pi,""!==o.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,hs)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,Bt.O5,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,eA.gM,p.Hw,QA.gD,QA.$L,wA.ey,w.lW,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.rS,Bt.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function va(r,m){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function Da(r,m){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let Es=(()=>{class r{constructor(t,o){this.logger=t,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.vpe,this.utxos=[],this.numUtxos=0,this.dustUtxos=[],this.numDustUtxos=0,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.store.select(B.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{var o;t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=null===(o=t.utxos)||void 0===o?void 0:o.filter(U=>+(U.value||0)<1e3),this.numDustUtxos=this.dustUtxos.length),t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box","my-2"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["xLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["fxLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(CA){return o.onSelectedIndexChanged(CA)}),A.TgZ(2,"mat-tab"),A.YNc(3,va,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Da,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",o.selectedTableIndex),A.xp6(3),A.Q6J("utxos",o.utxos)("numDustUTXOs",o.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",o.dustUtxos)("numDustUTXOs",o.numDustUtxos)("isDustUTXO",!0))},directives:[ft.xw,ft.yH,ft.Wh,Et.SP,Et.uX,Et.uD,ji.k,Ia],styles:[""]}),r})();const ws=function(r,m){return[r,m]};function Xr(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=null==CA?null:CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.Q6J("active",o.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,ws,null==t?null:t.link,null==o.selectedTable?null:o.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let Cs=(()=>{class r{constructor(t,o,U){this.store=t,this.router=o,this.activatedRoute=U,this.selNode={},this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link,this.selectedTable=this.tables.find(CA=>CA.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.balance.totalBalance||0},{title:"Confirmed",dataValue:o.balance.confBalance||0},{title:"Unconfirmed",dataValue:o.balance.unconfBalance||0}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:Ci}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(o=>o.id===t)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(Vt.F0),A.Y36(Vt.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),A.YNc(16,Xr,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10)(20,"rtl-cln-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(CA){return o.onSelectedTableIndexChanged(CA)}),A.qZA()()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",o.links),A.xp6(4),A.Q6J("selectedTableIndex",null==o.selectedTable?null:o.selectedTable.id))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,ki.D,Et.BU,Bt.sg,Et.Nj,Vt.rH,ft.yH,Vt.lC,Es],styles:[""]}),r})();function Qs(r,m){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function ds(r,m){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let ya=(()=>{class r{constructor(t,o,U){this.store=t,this.logger=o,this.router=U,this.activePeers=0,this.activeChannels=0,this.faUsers=h.FVb,this.faChartPie=h.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(t=>t instanceof Vt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(o=>o.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance||0},{title:"Unconfirmed",dataValue:t.balance.unconfBalance||0}]})}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(CA){return o.activeLink=CA})("selectedTabChange",function(CA){return o.onSelectedTabChange(CA)}),A.TgZ(16,"mat-tab"),A.YNc(17,Qs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,ds,2,1,"ng-template",8),A.qZA()(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faUsers),A.xp6(6),A.Q6J("selectedIndex",o.activeLink))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,ki.D,Et.SP,Et.uX,Et.uD,ji.k,ft.yH,Vt.lC],styles:[""]}),r})();function Ms(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ps=(()=>{class r{constructor(t,o,U){this.logger=t,this.store=o,this.router=U,this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,this.currencyUnits=[],this.routerUrl="",this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.selNode={},this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link,this.routerUrl=o.urlAfterRedirects}}),this.store.select(B.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(o=>{if(this.selNode=o,this.selNode&&this.selNode.enableOffers){this.store.dispatch((0,wt.yl)()),this.store.dispatch((0,wt.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const U=this.links.find(CA=>this.router.url.includes(CA.link));this.activeLink=U?U.link:this.links[0].link}}),this.store.select(B.Wj).pipe((0,i.R)(this.unSubs[2]),(0,s.M)(this.store.select(B.lw))).subscribe(([o,U])=>{this.currencyUnits=(null==U?void 0:U.currencyUnits)||[],this.balances=U&&U.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA()(),A.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),A.YNc(16,Ms,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,ki.D,Et.BU,Bt.sg,Et.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),r})();function ms(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Is=(()=>{class r{constructor(t){this.router=t,this.faMapSigns=h.SuH,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"routingpeers",name:"Routing Peers"},{link:"failedtransactions",name:"Failed Transactions"},{link:"localfail",name:"Local Failed Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing"]],decls:13,vars:2,consts:[["fxLayout","column",1,"mb-2"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA()(),A.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),A.YNc(10,ms,2,3,"div",9),A.qZA()(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA()()()()()),2&t&&(A.xp6(2),A.Q6J("icon",o.faMapSigns),A.xp6(8),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,ft.yH,g.a8,g.dn,Et.BU,Bt.sg,Et.Nj,Vt.rH,Vt.lC],styles:[""]}),r})();var qr=Ut(6895);function xa(r,m){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t)}}function vs(r,m){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function Ds(r,m){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function ys(r,m){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function xs(r,m){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Fs(r,m){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Rn(r,m){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Ys(r,m){1&r&&(A.TgZ(0,"th",29)(1,"span",30),A._uU(2,"Actions"),A.qZA()())}function Ts(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",31)(1,"span",30)(2,"button",32),A.NdJ("copied",function(U){return A.CHM(t),A.oxw(2).onCopyNodeURI(U)}),A._uU(3,"Copy Node URI"),A.qZA()()()}if(2&r){const t=m.$implicit,o=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==o.lookupResult?null:o.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function Ss(r,m){1&r&&A._UZ(0,"tr",33)}function Ns(r,m){1&r&&A._UZ(0,"tr",34)}const Us=function(r){return{"background-color":r}};function Ps(r,m){if(1&r&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA()()(),A.TgZ(10,"div",8)(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA()()(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA()(),A.TgZ(23,"div",8)(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,xa,2,1,"span",11),A.qZA()(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12)(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14)(32,"table",15,16),A.ynx(34,17),A.YNc(35,vs,2,0,"th",18),A.YNc(36,Ds,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,ys,2,0,"th",18),A.YNc(39,xs,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,Fs,2,0,"th",18),A.YNc(42,Rn,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Ys,3,0,"th",23),A.YNc(45,Ts,4,1,"td",24),A.BQk(),A.YNc(46,Ss,1,0,"tr",25),A.YNc(47,Ns,1,0,"tr",26),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(null==t.lookupResult?null:t.lookupResult.alias),A.xp6(1),A.Q6J("ngStyle",A.VKq(15,Us,"#"+(null==t.lookupResult?null:t.lookupResult.color))),A.xp6(1),A.Oqu(null!=t.lookupResult&&t.lookupResult.color?"#"+(null==t.lookupResult?null:t.lookupResult.color):""),A.xp6(5),A.Oqu(null==t.lookupResult?null:t.lookupResult.nodeid),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.xi3(22,12,1e3*(null==t.lookupResult?null:t.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.xp6(5),A.Q6J("ngForOf",t.featureDescriptions),A.xp6(1),A.Q6J("inset",!0),A.xp6(5),A.Q6J("dataSource",t.addresses),A.xp6(14),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}let Rs=(()=>{class r{constructor(t,o){this.logger=t,this.snackBar=o,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new DA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,o)=>t[o]&&isNaN(t[o])?t[o].toLocaleLowerCase():t[o]?+t[o]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(o=>{t&(1<{class r{constructor(t){this.store=t,this.lookupResult=[],this.node1_match=!1,this.node2_match=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.store.select(B.ey).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.id&&(this.node2_match=!0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,o){1&t&&A.YNc(0,Zi,204,91,"div",0),2&t&&A.Q6J("ngIf",o.lookupResult)},directives:[Bt.O5,ft.xw,sA.d,ft.Wh,ft.yH],pipes:[Bt.JJ,Bt.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),r})();const Qr=["form"];function Xi(r,m){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("value",t.id)("checked",o.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function bs(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function mi(r,m){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-node-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function Ii(r,m){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,mi,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),o=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",o)}}function vi(r,m){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-channel-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function xe(r,m){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,vi,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),o=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",o)}}function Gs(r,m){1&r&&(A.TgZ(0,"span",24)(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA()())}function dr(r,m){if(1&r&&(A.TgZ(0,"div",18)(1,"div",19)(2,"span",20),A._uU(3),A.qZA()(),A.TgZ(4,"div",21),A.YNc(5,Ii,2,2,"span",22),A.YNc(6,xe,2,2,"span",22),A.YNc(7,Gs,3,0,"span",23),A.qZA()()),2&r){const t=A.oxw();A.xp6(3),A.hij("",t.lookupFields[t.selectedFieldId].name," Details"),A.xp6(1),A.Q6J("ngSwitch",t.selectedFieldId),A.xp6(1),A.Q6J("ngSwitchCase",0),A.xp6(1),A.Q6J("ngSwitchCase",1)}}function Hs(r,m){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Js=function(r){return{"mt-1":!0,"mt-2":r}};let Os=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.commonService=o,this.store=U,this.actions=CA,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=h.wn1,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{if(t.type===a.AB.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof t.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(t.payload[0]));break;case 1:this.channelLookupValue="object"!=typeof t.payload[0]?[]:JSON.parse(JSON.stringify(t.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"Lookup"===t.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.selectedFieldId){case 0:this.store.dispatch((0,wt.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,wt.$A)({payload:{uiMessage:a.m6.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,o){if(1&t&&A.Gf(Qr,7),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first)}},decls:20,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(CA){return o.selectedFieldId=CA})("change",function(CA){return o.onSelectChange(CA)}),A.YNc(7,Xi,2,3,"mat-radio-button",7),A.qZA()(),A.TgZ(8,"mat-form-field",8)(9,"input",9,10),A.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(CA){return o.lookupKey=CA}),A.qZA(),A.YNc(11,bs,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12)(13,"button",13),A.NdJ("click",function(){return o.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return o.onLookup()}),A._uU(16,"Lookup"),A.qZA()()(),A.YNc(17,dr,8,4,"div",15),A.qZA()()(),A.YNc(18,Hs,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",o.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",o.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Js,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),A.xp6(2),A.Q6J("ngIf",!o.lookupKey),A.xp6(6),A.Q6J("ngIf",o.flgSetLookupValue))},directives:[ft.xw,ft.yH,ft.Wh,g.dn,JA._Y,JA.JL,JA.F,HA.VQ,JA.JJ,JA.On,Bt.sg,HA.U0,P.KE,Bt.mk,Y.oO,H.Nt,JA.Fj,JA.Q7,Bt.O5,P.TO,w.lW,Bt.RF,Bt.n9,Rs,Xe,Bt.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),r})();var Mr=(()=>{return(r=Mr||(Mr={})).KB="KB",r.KW="KW",Mr;var r})();function gr(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div")(27,"h4",4),A._uU(28," Delayed To Us "),A.TgZ(29,"mat-icon",9),A._uU(30,"info_outline"),A.qZA()(),A.TgZ(31,"div",6),A._uU(32),A.ALo(33,"number"),A.qZA()()(),A.TgZ(34,"div",3)(35,"div")(36,"h4",4),A._uU(37," Minimum Acceptable "),A.TgZ(38,"mat-icon",10),A._uU(39,"info_outline"),A.qZA()(),A.TgZ(40,"div",6),A._uU(41),A.ALo(42,"number"),A.qZA()(),A.TgZ(43,"div")(44,"h4",4),A._uU(45," Maximum Acceptable "),A.TgZ(46,"mat-icon",11),A._uU(47,"info_outline"),A.qZA()(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA()(),A.TgZ(51,"div")(52,"h4",4),A._uU(53," HTLC Resolution "),A.TgZ(54,"mat-icon",12),A._uU(55,"info_outline"),A.qZA()(),A.TgZ(56,"div",6),A._uU(57),A.ALo(58,"number"),A.qZA()(),A.TgZ(59,"div")(60,"h4",4),A._uU(61," Penalty "),A.TgZ(62,"mat-icon",13),A._uU(63,"info_outline"),A.qZA()(),A.TgZ(64,"div",6),A._uU(65),A.ALo(66,"number"),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(8),A.Oqu(A.lcZ(17,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(8),A.Oqu(A.lcZ(25,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(8),A.Oqu(A.lcZ(33,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(9),A.Oqu(A.lcZ(42,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(8),A.Oqu(A.lcZ(50,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(8),A.Oqu(A.lcZ(58,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(8),A.Oqu(A.lcZ(66,22,null==t.perkbw?null:t.perkbw.penalty))}}function Ya(r,m){if(1&r&&(A.TgZ(0,"div",14)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Gr=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Mr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Mr.KW&&(this.perkbw=this.feeRates.perkw)}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Default feerate for fundchannel and withdraw","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Feerate to aim for in cooperative shutdown. Note that since mutual close is a negotiation, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for commitment_transaction in a live channel which we originally funded","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close funds to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The smallest feerate that you can use, usually the minimum relayed feerate of the backend","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close HTLC outputs to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate to start at when penalizing a cheat attempt","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,gr,67,24,"div",0),A.YNc(1,Ya,3,1,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,p.Hw,eA.gM],pipes:[Bt.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Ta(r,m){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening Channel "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div",9),A._UZ(27,"h4",4)(28,"div",6),A.qZA()(),A.TgZ(29,"div",3)(30,"div")(31,"h4",4),A._uU(32," HTLC Timeout "),A.TgZ(33,"mat-icon",10),A._uU(34,"info_outline"),A.qZA()(),A.TgZ(35,"div",6),A._uU(36),A.ALo(37,"number"),A.qZA()(),A.TgZ(38,"div")(39,"h4",4),A._uU(40," HTLC Success "),A.TgZ(41,"mat-icon",11),A._uU(42,"info_outline"),A.qZA()(),A.TgZ(43,"div",6),A._uU(44),A.ALo(45,"number"),A.qZA()(),A.TgZ(46,"div",9),A._UZ(47,"h4",4)(48,"div",6),A.qZA(),A.TgZ(49,"div",9),A._UZ(50,"h4",4)(51,"div",6),A.qZA()()()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(8),A.Oqu(A.lcZ(17,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(8),A.Oqu(A.lcZ(25,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(12),A.Oqu(A.lcZ(37,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(8),A.Oqu(A.lcZ(45,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ks(r,m){if(1&r&&(A.TgZ(0,"div",12)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Di=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Estimated cost of typical channel open","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Estimated cost of typical channel close","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical unilateral close (without HTLCs)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxFlex","12"],["matTooltip","Estimated cost of typical HTLC timeout transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical HTLC fulfillment transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,Ta,52,15,"div",0),A.YNc(1,ks,3,1,"ng-template",null,1,A.W1O)),2&t){const U=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",U)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,p.Hw,eA.gM],pipes:[Bt.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function yi(r,m){1&r&&A._UZ(0,"mat-progress-bar",19)}function Fr(r,m){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function js(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function xi(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function _r(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Ks(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Vs(r,m){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const Sa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Na(r,m){if(1&r&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,yi,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Fr,1,2,"rtl-cln-node-info",14),A.YNc(13,js,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,xi,1,2,"rtl-cln-fee-info",16),A.YNc(15,_r,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Ks,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Vs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,Sa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function Ws(r,m){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Na,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function Zs(r,m){1&r&&A._UZ(0,"mat-progress-bar",19)}function Xs(r,m){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function qs(r,m){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function _s(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function $s(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function A0(r,m){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function t0(r,m){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function e0(r,m){if(1&r&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,Zs,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Xs,1,2,"rtl-cln-node-info",14),A.YNc(13,qs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,_s,1,2,"rtl-cln-fee-info",16),A.YNc(15,$s,1,3,"rtl-cln-fee-rates",17),A.YNc(16,A0,1,3,"rtl-cln-fee-rates",17),A.YNc(17,t0,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,Sa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function n0(r,m){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,e0,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let r0=(()=>{class r{constructor(t,o,U){this.logger=t,this.commonService=o,this.store=U,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.faLink=h.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=a.cu,this.userPersonaEnum=a.ol,this.errorMessages=["","","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFees=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}])}ngOnInit(){this.store.select(B.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1]),(0,s.M)(this.store.select(B.Wj))).subscribe(([t,o])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=o.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message?this.apiCallStatusLRBal.message:""),this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.channelsStatus.active.capacity=o.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=o.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=o.localRemoteBalance.inactiveBalance||0}),this.store.select(B.JG).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=t.fees}),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message?this.apiCallStatusFHistory.message:""),t.forwardingHistory&&t.forwardingHistory.listForwards&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(B.zm).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message?this.apiCallStatusPerKB.message:""),this.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(B.hx).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===a.Bn.ERROR&&(this.errorMessages[6]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message?this.apiCallStatusPerKW.message:""),this.feeRatesPerKW=t.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-network-info"]],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","100px",4,"ngIf"],["cols","6","rowHeight","100px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","feeRateStyle","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],[1,"h-100",3,"feeRates","feeRateStyle","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ws,2,1,"mat-grid-list",1),A.YNc(2,n0,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",o.selNode.userPersona===o.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",o.selNode.userPersona===o.userPersonaEnum.MERCHANT))},directives:[ft.xw,ft.Wh,Bt.O5,f.Il,Bt.sg,f.DX,ft.yH,e.BN,g.a8,g.dn,Bt.mk,Y.oO,T.pW,Bt.RF,Bt.n9,R,X,SA,Gr,Di],styles:[""]}),r})();function Fi(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let qi=(()=>{class r{constructor(t){this.router=t,this.faUserCheck=h.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Fi,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faUserCheck),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,Et.BU,Bt.sg,Et.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),r})();var Yi=Ut(9122);function Ua(r,m){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let i0=(()=>{class r{constructor(t,o){this.store=t,this.clnEffects=o,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,wt._E)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,PA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Yi.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(tn.J))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),A.NdJ("ngModelChange",function(CA){return o.selectedAddressType=CA}),A.YNc(4,Ua,2,2,"mat-option",4),A.qZA()(),A.TgZ(5,"div",5)(6,"button",6),A.NdJ("click",function(){return o.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA()()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",o.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",o.addressTypes))},directives:[ft.xw,ft.Wh,P.KE,ft.yH,QA.gD,JA.JJ,JA.On,Bt.sg,wA.ey,w.lW],styles:[""]}),r})(),$r=(()=>{class r{constructor(t,o){this.store=t,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.activatedRoute.data.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:this.sweepAll,component:Ci}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(Vt.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.openSendFundsModal()}),A._uU(3),A.qZA()()()),2&t&&(A.xp6(3),A.Oqu(o.sweepAll?"Sweep All":"Send Funds"))},directives:[ft.xw,ft.yH,ft.Wh,w.lW],styles:[""]}),r})();var zn=Ut(8675),nr=Ut(4004),Ti=Ut(1079),Hr=Ut(9843);const _i=["form"];function a0(r,m){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function Ai(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Pa(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function o0(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,a0,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,Ai,2,0,"mat-error",17),A.YNc(7,Pa,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),o=A.oxw();A.xp6(1),A.Q6J("formControl",o.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",o.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,o.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.notfound)}}function s0(r,m){1&r&&A.GkF(0)}function l0(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function c0(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function g0(r,m){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function B0(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function u0(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43)(1,"input",44,45),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().customFeeRate=U}),A.qZA(),A.YNc(3,B0,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function f0(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function h0(r,m){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function E0(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",22)(1,"mat-form-field",46)(2,"mat-select",47),A.NdJ("selectionChange",function(U){return A.CHM(t),A.oxw().onUTXOSelectionChange(U)})("valueChange",function(U){return A.CHM(t),A.oxw().selUTXOs=U}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,h0,3,4,"mat-option",26),A.qZA()(),A.TgZ(7,"div",28)(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().flgUseAllBalance=U})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(9," Use selected UTXOs balance "),A.qZA(),A.TgZ(10,"mat-icon",49),A._uU(11,"info_outline"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function w0(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function C0(r,m){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,w0,2,1,"span",17),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function Q0(r,m){if(1&r&&(A.TgZ(0,"mat-expansion-panel",53)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",54),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",55),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",56),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",57),A.TgZ(15,"div",0)(16,"div",58)(17,"h4",55),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",59),A._uU(20),A.qZA()(),A.TgZ(21,"div",58)(22,"h4",55),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",59),A._uU(25),A.qZA()()()()()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),A.xp6(7),A.Oqu(t.peer.id),A.xp6(7),A.Oqu(null==t.peer?null:t.peer.netaddr),A.xp6(5),A.Oqu(t.peer.connected?"True":"False")}}function Si(r,m){if(1&r&&A.YNc(0,Q0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const Ie=function(r,m){return{"mr-6":r,"mr-2":m}};let re=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.dialogRef=t,this.data=o,this.store=U,this.actions=CA,this.decimalPipe=it,this.commonService=Dt,this.selectedPeer=new JA.NI,this.faExclamationTriangle=h.eHv,this.isCompatibleVersion=!1,this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.isCompatibleVersion=!1,this.information={},this.totalBalance=0,this.utxos=[],this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(U=>U.type===a.AB.UPDATE_API_CALL_STATUS_CLN||U.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(U=>{U.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&U.payload.status===a.Bn.ERROR&&"SaveNewChannel"===U.payload.action&&(this.channelConnectionError=U.payload.message),U.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",o="";this.sortedPeers=this.peers.sort((U,CA)=>(t=U.alias?U.alias.toLowerCase():U.id?U.id.toLowerCase():"",o=CA.alias?CA.alias.toLowerCase():U.id?U.id.toLowerCase():"",to?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,zn.O)(""),(0,nr.U)(U=>"string"==typeof U?U:U.alias?U.alias:U.id),(0,nr.U)(U=>U?this.filterPeers(U):this.sortedPeers.slice()))}filterPeers(t){var o;return null===(o=this.sortedPeers)||void 0===o?void 0:o.filter(U=>{var CA;return 0===(null===(CA=U.alias)||void 0===CA?void 0:CA.toLowerCase().indexOf(t?t.toLowerCase():""))})}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){var t;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const o=null===(t=this.peers)||void 0===t?void 0:t.filter(U=>{var CA,it;return(null===(CA=U.alias)||void 0===CA?void 0:CA.length)===this.selectedPeer.value.length&&0===(null===(it=U.alias)||void 0===it?void 0:it.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===o.length&&o[0].id&&(this.selectedPubkey=o[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){var o;t&&(this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length)?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+(this.customFeeRate?this.customFeeRate+" (Sats/vByte)":null===(o=this.feeRateTypes.find(U=>U.feeRateId===this.selFeeRate))||void 0===o?void 0:o.feeRateType)),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options"}onUTXOSelectionChange(t){var o;this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=null===(o=this.selUTXOs)||void 0===o?void 0:o.reduce((U,CA)=>U+(CA.value||0),0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;const t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};t.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(o=>t.utxos.push(o.txid+":"+o.output))),this.store.dispatch((0,wt.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Tt.eX),A.Y36(Bt.JJ),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,o){if(1&t&&A.Gf(_i,7),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first)}},decls:56,vars:34,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","54","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","42","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","54","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["tabindex","7","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","before",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.NdJ("submit",function(){return o.onOpenChannel()})("reset",function(){return o.resetData()}),A.TgZ(11,"div",9),A.YNc(12,o0,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,s0,1,0,"ng-container",11),A.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),A.NdJ("ngModelChange",function(CA){return o.fundingAmount=CA}),A.qZA(),A.TgZ(19,"mat-hint"),A._uU(20),A.ALo(21,"number"),A.qZA(),A.TgZ(22,"span",16),A._uU(23," Sats "),A.qZA(),A.YNc(24,l0,2,0,"mat-error",17),A.YNc(25,c0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18)(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(CA){return o.isPrivate=CA}),A._uU(28,"Private Channel"),A.qZA()()(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0)})("opened",function(){return o.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),A._uU(33),A.qZA()()(),A.TgZ(34,"div",21)(35,"div",22)(36,"div",23)(37,"mat-form-field",24)(38,"mat-select",25),A.NdJ("valueChange",function(CA){return o.selFeeRate=CA})("selectionChange",function(){return o.customFeeRate=null}),A.YNc(39,g0,2,2,"mat-option",26),A.qZA()(),A.YNc(40,u0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28)(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(CA){return o.flgMinConf=CA})("change",function(){return o.flgMinConf?o.selFeeRate=null:o.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30)(44,"input",31,32),A.NdJ("ngModelChange",function(CA){return o.minConfValue=CA}),A.qZA(),A.YNc(46,f0,2,0,"mat-error",17),A.qZA()()(),A.YNc(47,E0,12,8,"div",33),A.qZA()()(),A.YNc(48,C0,3,2,"div",34),A.TgZ(49,"div",35)(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA()()()()()(),A.YNc(54,Si,1,1,"ng-template",null,38,A.W1O)),2&t){const U=A.MAs(18),CA=A.MAs(55);A.xp6(5),A.Oqu(o.alertTitle),A.xp6(7),A.Q6J("ngIf",!o.peer&&o.peers&&o.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",CA),A.xp6(4),A.Q6J("ngModel",o.fundingAmount)("step",1e3)("min",1)("max",o.totalBalance)("disabled",o.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,o.totalBalance-(o.fundingAmount?o.fundingAmount:0)),"",o.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==U.errors?null:U.errors.required)||!o.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==U.errors?null:U.errors.max),A.xp6(2),A.Q6J("ngModel",o.isPrivate),A.xp6(6),A.Oqu(o.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==o.selFeeRate||o.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",o.selFeeRate)("disabled",o.flgMinConf),A.xp6(1),A.Q6J("ngForOf",o.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===o.selFeeRate&&!o.flgMinConf),A.xp6(2),A.Q6J("ngModel",o.flgMinConf)("ngClass",A.WLB(31,Ie,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM,o.screenSize===o.screenSizeEnum.MD||o.screenSize===o.screenSizeEnum.LG||o.screenSize===o.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",o.minConfValue)("step",1)("min",0)("required",o.flgMinConf)("disabled",!o.flgMinConf),A.xp6(2),A.Q6J("ngIf",o.flgMinConf&&!o.minConfValue),A.xp6(1),A.Q6J("ngIf",o.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,JA._Y,JA.JL,JA.F,Bt.O5,P.KE,H.Nt,JA.Fj,Ti.ZL,JA.Q7,JA.JJ,JA.oH,Ti.XC,Bt.sg,wA.ey,P.TO,Bt.tP,JA.wV,JA.qQ,JA.Fd,b.q,Hr.F,JA.On,P.bx,P.R9,RA.Rr,cr.ib,cr.yz,cr.yK,QA.gD,$A.oG,Bt.mk,Y.oO,QA.$L,p.Hw,eA.gM,e.BN,k.h,sA.d],pipes:[Bt.Ov,Bt.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function d0(r,m){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function Ra(r,m){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let ti=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.store=o,this.commonService=U,this.router=CA,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(t=>t instanceof Vt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(o=>o.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(B.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{var o;this.utxos=this.commonService.sortAscByKey(null===(o=t.utxos)||void 0===o?void 0:o.filter(U=>"confirmed"===U.status),"value")}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.openChannels=t.activeChannels.length||0,this.pendingChannels=t.pendingChannels.length+t.inactiveChannels.length||0,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:re}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channels-tables"]],decls:12,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(CA){return o.activeLink=CA})("selectedTabChange",function(CA){return o.onSelectedTabChange(CA)}),A.TgZ(6,"mat-tab"),A.YNc(7,d0,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Ra,2,1,"ng-template",5),A.qZA()(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",o.activeLink))},directives:[ft.xw,ft.yH,ft.Wh,w.lW,Et.SP,Et.uX,Et.uD,ji.k,Vt.lC],styles:[""]}),r})();function La(r,m){if(1&r&&(A.TgZ(0,"div")(1,"div",9)(2,"div",1)(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA()()(),A._UZ(7,"mat-divider",13),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function M0(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function p0(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function za(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(U){return A.CHM(t),A.oxw().onCopyChanID(U)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function m0(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw().onClose()}),A._uU(1,"OK"),A.qZA()}}const wn=function(r){return{"xs-scroll-y":r}},$i=function(r,m){return{"mt-2":r,"mt-1":m}};let Aa=(()=>{class r{constructor(t,o,U,CA,it){this.dialogRef=t,this.data=o,this.logger=U,this.commonService=CA,this.snackBar=it,this.faReceipt=h.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(E.mQ),A.Y36(C.v),A.Y36(Rr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-information"]],decls:94,vars:40,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA()(),A.TgZ(7,"button",6),A.NdJ("click",function(){return o.onClose()}),A._uU(8,"X"),A.qZA()(),A.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",10)(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA()()(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA()()(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA()()(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9)(38,"div",14)(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA()(),A.TgZ(44,"div",14)(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA()(),A.TgZ(50,"div",14)(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA()(),A.TgZ(56,"div",14)(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA()()(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9)(63,"div",14)(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA()(),A.TgZ(69,"div",14)(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA()(),A.TgZ(75,"div",14)(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA()(),A.TgZ(80,"div",14)(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA()()(),A._UZ(85,"mat-divider",13),A.YNc(86,La,8,2,"div",16),A.TgZ(87,"div",17)(88,"button",18),A.NdJ("click",function(){return o.onShowAdvanced()}),A.YNc(89,M0,2,0,"p",19),A.YNc(90,p0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,za,2,1,"button",21),A.YNc(93,m0,2,0,"button",22),A.qZA()()()()()),2&t){const U=A.MAs(91);A.xp6(4),A.Q6J("icon",o.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,wn,o.screenSize===o.screenSizeEnum.XS)),A.xp6(7),A.Oqu(o.channel.short_channel_id),A.xp6(5),A.Oqu(o.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(o.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(o.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,o.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,o.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,o.channel.msatoshi_total)),A.xp6(6),A.Oqu(o.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,o.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,o.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(o.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(o.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",o.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,$i,!o.showAdvanced,o.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!o.showAdvanced)("ngIfElse",U),A.xp6(3),A.Q6J("ngIf",o.showCopy),A.xp6(1),A.Q6J("ngIf",!o.showCopy)}},directives:[ft.xw,ft.Wh,ft.yH,g.dk,e.BN,w.lW,g.dn,Bt.mk,Y.oO,sA.d,Bt.O5,k.h,qr.y],pipes:[Bt.JJ],styles:[""]}),r})();function Ni(r,m){1&r&&A._UZ(0,"mat-progress-bar",33)}function I0(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Yr(r,m){if(1&r&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function rr(r,m){if(1&r&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const ir=function(r){return{"max-width":r}};function Br(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36),A.YNc(2,Yr,2,1,"span",37),A.YNc(3,rr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,ir,o.screenSize===o.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(1),A.Q6J("ngIf",t.private),A.xp6(1),A.Q6J("ngIf",!t.private),A.xp6(2),A.Oqu(null==t?null:t.short_channel_id)}}function v0(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function D0(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36)(2,"span",39),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ir,o.screenSize===o.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function y0(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function Ui(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function x0(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function ba(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function F0(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function Y0(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function Me(r,m){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function Ga(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function T0(r,m){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function S0(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function Ha(r,m){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function N0(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function U0(r,m){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function P0(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Ja(r,m){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Pi(r,m){if(1&r&&(A.TgZ(0,"td",46)(1,"div",47)(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA()(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&r){const t=m.$implicit;A.xp6(3),A.Oqu(A.lcZ(4,2,t.balancedness||0)),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function Oa(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA()()()()}}function R0(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",54)(1,"div",55)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw().onChannelClick(it,U)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(CA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(CA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onChannelClose(CA)}),A._uU(11,"Close Channel"),A.qZA()()()()}}function L0(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function z0(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function b0(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function G0(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function H0(r,m){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,L0,2,0,"p",58),A.YNc(2,z0,2,0,"p",58),A.YNc(3,b0,2,0,"p",58),A.YNc(4,G0,2,1,"p",58),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const J0=function(r){return{"display-none":r}};function Ri(r,m){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,J0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function O0(r,m){1&r&&A._UZ(0,"tr",60)}function ta(r,m){1&r&&A._UZ(0,"tr",61)}const ka=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},k0=function(){return["no_peer"]};let ei=(()=>{class r{constructor(t,o,U,CA,it,Dt){var Ht,ze,$e,ee,Ve,mr,kn,Bi;this.logger=t,this.store=o,this.rtlEffects=U,this.clnEffects=CA,this.commonService=it,this.router=Dt,this.faEye=h.Mdf,this.faEyeSlash=h.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"]),this.selFilter=(null===(ee=null===($e=null===(ze=null===(Ht=this.router)||void 0===Ht?void 0:Ht.getCurrentNavigation())||void 0===ze?void 0:ze.extras)||void 0===$e?void 0:$e.state)||void 0===ee?void 0:ee.filter)?null===(Bi=null===(kn=null===(mr=null===(Ve=this.router)||void 0===Ve?void 0:Ve.getCurrentNavigation())||void 0===mr?void 0:mr.extras)||void 0===kn?void 0:kn.state)||void 0===Bi?void 0:Bi.filter:""}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=t.activeChannels,this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,wt.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id||"",showError:!0}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(o=>{if(0===o.length)return!1;let U={};U=o[0].source!==this.information.id?o[0]:o[1];const CA=[[{key:"base_fee_millisatoshi",value:U.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:U.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:U.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],it="Remote policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id);setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:it,message:CA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(U=>{U&&this.store.dispatch((0,wt.pW)({payload:{baseFeeMsat:U[0].inputValue,feeRate:U[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,wt.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(o=>{this.myChanPolicy=o.length>0&&o[0].source===this.information.id?{fee_base_msat:o[0].base_fee_millisatoshi,fee_rate_milli_msat:o[0].fee_per_millionth}:o.length>1&&o[1].source===this.information.id?{fee_base_msat:o[1].base_fee_millisatoshi,fee_rate_milli_msat:o[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const U="Update fee policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),CA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:CA,titleMessage:U,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48,hintFunction:this.percentHintFunction}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(o=>{o&&this.store.dispatch((0,wt.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,wt.BL)({payload:{id:t.id||"",channelId:t.channel_id||"",force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Aa}}}))}loadChannelsTable(t){t.sort((o,U)=>o.active===U.active?0:U.active?1:-1),this.channels=new DA.by([...t]),this.channels.filterPredicate=(o,U)=>((o.connected?"connected":"disconnected")+(o.channel_id?o.channel_id.toLowerCase():"")+(o.short_channel_id?o.short_channel_id.toLowerCase():"")+(o.id?o.id.toLowerCase():"")+(o.alias?o.alias.toLowerCase():"")+(o.private?"private":"public")+(o.state?o.state.toLowerCase():"")+(o.funding_txid?o.funding_txid.toLowerCase():"")+(o.msatoshi_to_us?o.msatoshi_to_us:"")+(o.msatoshi_total?o.msatoshi_total:"")+(o.their_channel_reserve_satoshis?o.their_channel_reserve_satoshis:"")+(o.our_channel_reserve_satoshis?o.our_channel_reserve_satoshis:"")+(o.spendable_msatoshi?o.spendable_msatoshi:"")).includes(U),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(tn.J),A.Y36(C.v),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Channels")}])],decls:48,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()(),A.YNc(5,Ni,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,I0,2,0,"th",10),A.YNc(11,Br,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,v0,2,0,"th",10),A.YNc(14,D0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,y0,2,0,"th",10),A.YNc(17,Ui,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,x0,2,0,"th",10),A.YNc(20,ba,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,F0,2,0,"th",10),A.YNc(23,Y0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,Me,2,0,"th",17),A.YNc(26,Ga,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,T0,2,0,"th",17),A.YNc(29,S0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,Ha,2,0,"th",17),A.YNc(32,N0,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,U0,2,0,"th",17),A.YNc(35,P0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Ja,2,0,"th",22),A.YNc(38,Pi,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Oa,8,0,"th",25),A.YNc(41,R0,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,H0,5,4,"td",28),A.BQk(),A.YNc(44,Ri,1,3,"tr",29),A.YNc(45,O0,1,0,"tr",30),A.YNc(46,ta,1,0,"tr",31),A.qZA()(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(1),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",o.channels)("ngClass",A.VKq(11,ka,""!==o.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,k0)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,Bt.O5,T.pW,q.$V,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,eA.gM,e.BN,P.bx,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),r})();const Cn=["outputIdx"];function Li(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function ja(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function j0(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function K0(r,m){if(1&r&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let V0=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.actions=t,this.dialogRef=o,this.data=U,this.store=CA,this.logger=it,this.snackBar=Dt,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=h.kZ_,this.faInfoCircle=h.sqG,this.faExclamationTriangle=h.eHv,this.bumpFeeError="",this.unSubs=[new c.x,new c.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.bumpFeeChannel=this.data.channel}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,wt._E)({payload:a._t[0]})),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,PA.q)(1)).subscribe(t=>{this.store.dispatch((0,wt.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:(1e3*+(this.fees||0)).toString(),utxos:[this.bumpFeeChannel.funding_txid+":"+(this.outputIndex||"").toString()]}}))}),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,PA.q)(1)).subscribe(t=>{this.store.dispatch((0,kA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN),(0,i.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===a.Bn.ERROR&&("SetChannelTransaction"===t.payload.action||"GenerateNewAddress"===t.payload.action)&&(this.logger.error(t.payload.message),this.bumpFeeError=t.payload.message)})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Tt.eX),A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Rr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,o){if(1&t&&A.Gf(Cn,5),2&t){let U;A.iGM(U=A.CRH())&&(o.payReq=U.first)}},decls:47,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","49"],["autoFocus","","matInput","","placeholder","Output Index","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Bump Fee"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(CA){return o.onCopyID(CA)}),A.qZA()(),A.TgZ(14,"div",11)(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA()()(),A.TgZ(31,"div",16)(32,"mat-form-field",17)(33,"input",18,19),A.NdJ("ngModelChange",function(CA){return o.outputIndex=CA}),A.qZA(),A.YNc(35,Li,2,0,"mat-error",20),A.YNc(36,ja,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17)(38,"input",21,22),A.NdJ("ngModelChange",function(CA){return o.fees=CA}),A.qZA(),A.YNc(40,j0,2,0,"mat-error",20),A.qZA()(),A.YNc(41,K0,4,2,"div",23),A.qZA()(),A.TgZ(42,"div",24)(43,"button",25),A.NdJ("click",function(){return o.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return o.onBumpFee()}),A._uU(46),A.qZA()()()()()()),2&t){const U=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==o.bumpFeeChannel?null:o.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",o.faCopy)("payload",null==o.bumpFeeChannel?null:o.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",o.faInfoCircle),A.xp6(17),A.Q6J("ngModel",o.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==U.errors?null:U.errors.required),A.xp6(1),A.Q6J("ngIf",null==U.errors?null:U.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",o.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!o.fees),A.xp6(1),A.Q6J("ngIf",""!==o.bumpFeeError),A.xp6(5),A.Oqu(""!==o.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,JA._Y,JA.JL,JA.F,e.BN,P.R9,qr.y,eA.gM,P.KE,H.Nt,JA.wV,JA.qQ,JA.Fj,b.q,k.h,JA.Q7,JA.JJ,JA.On,Bt.O5,P.TO],styles:[""]}),r})();function W0(r,m){1&r&&A._UZ(0,"mat-progress-bar",30)}function Z0(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function X0(r,m){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function q0(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function _0(r,m){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function Ka(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function $0(r,m){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Al(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function tl(r,m){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function ur(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const el=function(r){return{"max-width":r}};function zi(r,m){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,el,o.screenSize===o.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",o.CLNChannelPendingState[null==t?null:t.state]," ")}}function nl(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function rl(r,m){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function il(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Va(r,m){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function al(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function ol(r,m){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function sl(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",36)(1,"div",37)(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function ll(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onChannelClose(U)}),A._uU(1,"Close Channel"),A.qZA()}}function Wa(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onBumpFee(U)}),A._uU(1,"Bump Fee"),A.qZA()}}function cl(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",40)(1,"div",37)(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw().onChannelClick(it,U)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,ll,2,0,"mat-option",42),A.YNc(7,Wa,2,0,"mat-option",42),A.qZA()()()}if(2&r){const t=m.$implicit,o=A.oxw();A.xp6(6),A.Q6J("ngIf",o.isCompatibleVersion&&("CHANNELD_SHUTTING_DOWN"===t.state||"CLOSINGD_SIGEXCHANGE"===t.state||!t.connected&&"CHANNELD_NORMAL"===t.state)),A.xp6(1),A.Q6J("ngIf","CHANNELD_AWAITING_LOCKIN"===t.state)}}function Za(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Xa(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function qa(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function gl(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Bl(r,m){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,Za,2,0,"p",44),A.YNc(2,Xa,2,0,"p",44),A.YNc(3,qa,2,0,"p",44),A.YNc(4,gl,2,1,"p",44),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ul=function(r){return{"display-none":r}};function fl(r,m){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ul,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function hl(r,m){1&r&&A._UZ(0,"tr",46)}function _a(r,m){1&r&&A._UZ(0,"tr",47)}const El=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},wl=function(){return["no_peer"]};let Cl=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.store=o,this.rtlEffects=U,this.commonService=CA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.CLNChannelPendingState=a.Zs,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select(B.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((o,U)=>this.CLNChannelPendingState[o.state||""]>=this.CLNChannelPendingState[U.state||""]?1:-1),this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onBumpFee(t){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,component:V0}}}))}onChannelClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Aa}}}))}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(o=>{o&&this.store.dispatch((0,wt.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((o,U)=>o.active===U.active?0:U.active?1:-1),this.channels=new DA.by([...t]),this.channels.filterPredicate=(o,U)=>((o.connected?"connected":"disconnected")+(o.channel_id?o.channel_id.toLowerCase():"")+(o.short_channel_id?o.short_channel_id.toLowerCase():"")+(o.id?o.id.toLowerCase():"")+(o.alias?o.alias.toLowerCase():"")+(o.private?"private":"public")+(o.state&&this.CLNChannelPendingState[o.state]?this.CLNChannelPendingState[o.state].toLowerCase():"")+(o.funding_txid?o.funding_txid.toLowerCase():"")+(o.msatoshi_to_us?o.msatoshi_to_us:"")+(o.msatoshi_total?o.msatoshi_total:"")+(o.their_channel_reserve_satoshis?o.their_channel_reserve_satoshis:"")+(o.our_channel_reserve_satoshis?o.our_channel_reserve_satoshis:"")+(o.spendable_msatoshi?o.spendable_msatoshi:"")).includes(U),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,U)=>"state"===U?this.CLNChannelPendingState[o.state]:o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Channels")}])],decls:42,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()(),A.YNc(5,W0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,Z0,2,0,"th",10),A.YNc(11,X0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,q0,2,0,"th",10),A.YNc(14,_0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,Ka,2,0,"th",10),A.YNc(17,$0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Al,2,0,"th",10),A.YNc(20,tl,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,ur,2,0,"th",10),A.YNc(23,zi,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,nl,2,0,"th",18),A.YNc(26,rl,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,il,2,0,"th",18),A.YNc(29,Va,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,al,2,0,"th",18),A.YNc(32,ol,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,sl,6,0,"th",22),A.YNc(35,cl,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,Bl,5,4,"td",25),A.BQk(),A.YNc(38,fl,1,3,"tr",26),A.YNc(39,hl,1,0,"tr",27),A.YNc(40,_a,1,0,"tr",28),A.qZA()(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(1),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",o.channels)("ngClass",A.VKq(11,El,""!==o.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,wl)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,Bt.O5,T.pW,q.$V,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();const Ql=["peersForm"],dl=["stepper"];function Ml(r,m){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function $a(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function Ao(r,m){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function pl(r,m){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function ml(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Il(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function cn(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Tr(r,m){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function vl(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function to(r,m){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,vl,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.channelFormGroup.controls.selFeeRate.value&&!t.channelFormGroup.controls.flgMinConf.value&&!t.channelFormGroup.controls.customFeeRate.value)}}function Dl(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function yl(r,m){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const eo=function(r,m){return{"mr-6":r,"mr-2":m}};let xl=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht){this.dialogRef=t,this.data=o,this.store=U,this.formBuilder=CA,this.actions=it,this.logger=Dt,this.commonService=Ht,this.faExclamationTriangle=h.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=a.vn,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[JA.kI.required]],peerAddress:[this.peerAddress,[JA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[JA.kI.required,JA.kI.min(1),JA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[JA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(this.channelFormGroup.controls.selFeeRate.setValue(null),this.channelFormGroup.controls.selFeeRate.disable(),this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.minConfValue.reset(),this.channelFormGroup.controls.minConfValue.enable(),this.channelFormGroup.controls.minConfValue.setValidators([JA.kI.required])):(this.channelFormGroup.controls.selFeeRate.enable(),this.channelFormGroup.controls.minConfValue.setValue(null),this.channelFormGroup.controls.minConfValue.disable(),this.channelFormGroup.controls.minConfValue.setValidators(null))}),this.channelFormGroup.controls.selFeeRate.valueChanges.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.channelFormGroup.controls.flgMinConf.value?null:[JA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.NEWLY_ADDED_PEER_CLN||t.type===a.AB.FETCH_CHANNELS_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.NEWLY_ADDED_PEER_CLN&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close(),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,wt.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var t;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,wt.YX)({payload:{peerId:null===(t=this.newlyAddedPeer)||void 0===t?void 0:t.id,satoshis:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:"customperkb"===this.channelFormGroup.controls.selFeeRate.value&&!this.channelFormGroup.controls.flgMinConf.value&&this.channelFormGroup.controls.customFeeRate.value?1e3*this.channelFormGroup.controls.customFeeRate.value+"perkb":this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){var o,U,CA,it,Dt;switch(t.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.alias)?this.newlyAddedPeer.alias:null===(U=this.newlyAddedPeer)||void 0===U?void 0:U.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(CA=this.newlyAddedPeer)||void 0===CA?void 0:CA.alias)?null===(it=this.newlyAddedPeer)||void 0===it?void 0:it.alias:null===(Dt=this.newlyAddedPeer)||void 0===Dt?void 0:Dt.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}t.selectedIndex{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(JA.qu),A.Y36(Tt.eX),A.Y36(E.mQ),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,o){if(1&t&&(A.Gf(Ql,5),A.Gf(dl,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first),A.iGM(U=A.CRH())&&(o.stepper=U.first)}},decls:57,vars:30,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup","ngSubmit"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","35","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["mat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(CA){return o.stepSelectionChanged(CA)}),A.TgZ(12,"mat-step",10)(13,"form",11),A.YNc(14,Ml,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,$a,2,0,"mat-error",14),A.qZA(),A.YNc(18,Ao,4,2,"div",15),A.TgZ(19,"div",16)(20,"button",17),A.NdJ("click",function(){return o.onConnectPeer()}),A._uU(21),A.qZA()()()(),A.TgZ(22,"mat-step",10)(23,"form",18),A.NdJ("ngSubmit",function(){return o.onOpenChannel()}),A.YNc(24,pl,1,1,"ng-template",19),A.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,ml,2,0,"mat-error",14),A.YNc(34,Il,2,0,"mat-error",14),A.YNc(35,cn,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25)(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA()()(),A.TgZ(39,"div",27)(40,"div",28)(41,"mat-form-field",29)(42,"mat-select",30),A.YNc(43,Tr,2,2,"mat-option",31),A.qZA()(),A.YNc(44,to,3,3,"mat-form-field",32),A.qZA(),A.TgZ(45,"div",33),A._UZ(46,"mat-checkbox",34),A.TgZ(47,"mat-form-field",35),A._UZ(48,"input",36),A.YNc(49,Dl,2,0,"mat-error",14),A.qZA()()()(),A.YNc(50,yl,4,2,"div",15),A.TgZ(51,"div",16)(52,"button",37),A._uU(53),A.qZA()()()()(),A.TgZ(54,"div",38)(55,"button",39),A._uU(56),A.qZA()()()()()()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",o.peerFormGroup)("editable",o.flgEditable),A.xp6(1),A.Q6J("formGroup",o.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==o.peerConnectionError),A.xp6(3),A.Oqu(""!==o.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",o.channelFormGroup)("editable",o.flgEditable),A.xp6(1),A.Q6J("formGroup",o.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==o.channelFormGroup.controls.selFeeRate.value||o.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",o.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===o.channelFormGroup.controls.selFeeRate.value&&!o.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,eo,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM,o.screenSize===o.screenSizeEnum.MD||o.screenSize===o.screenSizeEnum.LG||o.screenSize===o.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",o.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",o.channelFormGroup.controls.flgMinConf.value&&!o.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==o.channelConnectionError),A.xp6(3),A.Oqu(""!==o.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=o.newlyAddedPeer&&o.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,Dr.Vq,Dr.C0,JA._Y,JA.JL,JA.sg,Dr.VY,P.KE,H.Nt,JA.Fj,k.h,JA.JJ,JA.u,JA.Q7,Bt.O5,P.TO,e.BN,JA.wV,P.bx,P.R9,RA.Rr,QA.gD,Bt.sg,wA.ey,JA.qQ,b.q,$A.oG,Bt.mk,Y.oO,dt.ZT],styles:[""]}),r})();function Fl(r,m){1&r&&A._UZ(0,"mat-progress-bar",32)}function no(r,m){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const ro=function(r){return{"mr-0":r}};function Sr(r,m){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ro,t.screenSize===t.screenSizeEnum.XS))}}function Yl(r,m){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ro,t.screenSize===t.screenSizeEnum.XS))}}const ea=function(r){return{"max-width":r}};function Tl(r,m){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,Sr,1,3,"span",35),A.YNc(2,Yl,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(4,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.Q6J("ngIf",null==t?null:t.connected),A.xp6(1),A.Q6J("ngIf",!(null!=t&&t.connected)),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function Sl(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function io(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function na(r,m){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function ar(r,m){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function Nl(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,ar,3,0,"span",42),A.qZA()),2&r){const t=m.$implicit,o=m.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!o)}}function Ul(r,m){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,Nl,3,2,"span",41),A.qZA()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Pl(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",43)(1,"div",44)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Rl(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onPeerDetach(U)}),A._uU(1,"Disconnect"),A.qZA()}}function kl(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onConnectPeer(U)}),A._uU(1,"Reconnect"),A.qZA()}}function Ll(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",47)(1,"div",48)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw().onPeerClick(it,U)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(CA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Rl,2,0,"mat-option",49),A.YNc(9,kl,2,0,"mat-option",49),A.qZA()()()}if(2&r){const t=m.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function zl(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function bl(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Gl(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ao(r,m){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,zl,2,0,"p",42),A.YNc(2,bl,2,0,"p",42),A.YNc(3,Gl,2,1,"p",42),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Hl=function(r){return{"display-none":r}};function tA(r,m){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Hl,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function G(r,m){1&r&&A._UZ(0,"tr",52)}function V(r,m){1&r&&A._UZ(0,"tr",53)}const M=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},x=function(){return["no_peer"]};let L=(()=>{class r{constructor(t,o,U,CA,it){this.logger=t,this.store=o,this.rtlEffects=U,this.actions=CA,this.commonService=it,this.faUsers=h.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(B.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(B.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=t.peers||[],this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.SET_PEERS_CLN)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(t){this.store.dispatch((0,kA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:xl}}}))}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:re}}}))}onPeerDetach(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(U=>{U&&this.store.dispatch((0,wt.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new DA.by([...t]),this.peers.sortingDataAccessor=(o,U)=>{if("netaddr"===U){if(o.netaddr&&o.netaddr[0]){const CA=o.netaddr[0].toString().split(".");return CA[0]?+CA[0]:o.netaddr[0]}return""}return o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(o,U)=>JSON.stringify(o).toLowerCase().includes(U),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(Tt.eX),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Peers")}])],decls:36,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30","fxFlex.gt-xs","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),A.NdJ("click",function(){return o.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA()(),A.TgZ(5,"div",4)(6,"div",5)(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA()(),A.TgZ(11,"mat-form-field",9)(12,"div",10)(13,"input",11),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()()(),A.TgZ(14,"div",12),A.YNc(15,Fl,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,no,2,0,"th",17),A.YNc(20,Tl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,Sl,2,0,"th",20),A.YNc(23,io,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,na,2,0,"th",17),A.YNc(26,Ul,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Pl,6,0,"th",24),A.YNc(29,Ll,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,ao,4,3,"td",27),A.BQk(),A.YNc(32,tA,1,3,"tr",28),A.YNc(33,G,1,0,"tr",29),A.YNc(34,V,1,0,"tr",30),A.qZA()(),A._UZ(35,"mat-paginator",31),A.qZA()()),2&t&&(A.xp6(8),A.Q6J("icon",o.faUsers),A.xp6(5),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.peers)("ngClass",A.VKq(12,M,""!==o.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,x)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,JA._Y,JA.JL,JA.F,w.lW,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,Bt.O5,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,eA.gM,Bt.sg,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const AA=["queryRoutesForm"];function aA(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function iA(r,m){1&r&&A._UZ(0,"mat-progress-bar",38)}function NA(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function jA(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function ct(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function _A(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function ut(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function pt(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function yt(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function Jt(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function te(r,m){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function Ae(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function se(r,m){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function fe(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Qe(r,m){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function de(r,m){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function Oe(r,m){1&r&&(A.TgZ(0,"th",45)(1,"span",42),A._uU(2,"Actions"),A.qZA()())}function gn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",46),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw().onHopClick(it,U)}),A._uU(2,"View Info"),A.qZA()()}}function ke(r,m){1&r&&A._UZ(0,"tr",47)}function ge(r,m){1&r&&A._UZ(0,"tr",48)}const Bn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let qe=(()=>{class r{constructor(t,o,U){this.store=t,this.clnEffects=o,this.commonService=U,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=h.FpQ,this.faExclamationTriangle=h.eHv,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clnEffects.setQueryRoutesCL.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new DA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new DA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,wt.WO)({payload:{destPubkey:this.destinationPubkey,amount:1e3*this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:a.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:a.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:a.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:a.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:a.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:a.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(tn.J),A.Y36(C.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(AA,7)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.form=U.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,o){if(1&t){const U=A.EpF();A.TgZ(0,"div",0)(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(U),A.MAs(2).form.valid&&o.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA()(),A.TgZ(7,"mat-form-field",5)(8,"input",6,7),A.NdJ("ngModelChange",function(it){return o.destinationPubkey=it}),A.qZA(),A.YNc(10,aA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(it){return o.amount=it}),A.qZA(),A.YNc(13,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11)(15,"button",12),A.NdJ("click",function(){return o.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA()()(),A.TgZ(19,"div",14)(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA()()(),A.TgZ(24,"div",18),A.YNc(25,iA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,NA,2,0,"th",23),A.YNc(30,jA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,ct,2,0,"th",23),A.YNc(33,_A,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,ut,2,0,"th",23),A.YNc(36,pt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,yt,2,0,"th",23),A.YNc(39,Jt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,te,2,0,"th",29),A.YNc(42,Ae,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,se,2,0,"th",29),A.YNc(45,fe,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,Qe,2,0,"th",32),A.YNc(48,de,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,Oe,3,0,"th",35),A.YNc(51,gn,3,0,"td",33),A.BQk(),A.YNc(52,ke,1,0,"tr",36),A.YNc(53,ge,1,0,"tr",37),A.qZA()()()}2&t&&(A.xp6(4),A.Q6J("icon",o.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",o.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!o.destinationPubkey),A.xp6(2),A.Q6J("ngModel",o.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!o.amount),A.xp6(8),A.Q6J("icon",o.faRoute),A.xp6(4),A.Q6J("ngIf",!0===o.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",o.qrHops)("ngClass",A.VKq(14,Bn,"error"===o.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns))},directives:[ft.xw,ft.yH,JA._Y,JA.JL,JA.F,ft.Wh,e.BN,P.KE,H.Nt,JA.Fj,JA.Q7,JA.JJ,JA.On,Bt.O5,P.TO,JA.wV,JA.qQ,b.q,w.lW,q.$V,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,DA.as,DA.XQ,DA.nj,DA.Gk],pipes:[Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function je(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let we=(()=>{class r{constructor(t,o,U){this.dataService=t,this.snackBar=o,this.logger=U,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new c.x,new c.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(LA.D),A.Y36(Rr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(CA){return o.message=CA})("keyup",function(){return o.onMessageChange()}),A.qZA(),A.YNc(5,je,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6)(7,"button",7),A.NdJ("click",function(){return o.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return o.onSign()}),A._uU(10,"Sign"),A.qZA()(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10)(13,"p"),A._uU(14,"Generated Signature"),A.qZA()(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12)(18,"button",13),A.NdJ("copied",function(CA){return o.onCopyField(CA)}),A._uU(19,"Copy Signature"),A.qZA()()()()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.message),A.xp6(1),A.Q6J("ngIf",!o.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(o.signature),A.xp6(2),A.Q6J("payload",o.signature))},directives:[ft.xw,ft.yH,ft.Wh,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,k.h,JA.Q7,JA.JJ,JA.On,Bt.O5,P.TO,w.lW,sA.d,qr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function en(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function Re(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Te(r,m){1&r&&(A.TgZ(0,"p",13)(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function rn(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function bn(r,m){if(1&r&&(A.TgZ(0,"div",20)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function fn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",21)(1,"button",22),A.NdJ("copied",function(U){return A.CHM(t),A.oxw(2).onCopyField(U)}),A._uU(2,"Copy Pubkey"),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function In(r,m){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,rn,2,0,"p",5),A.qZA(),A.YNc(4,bn,3,1,"div",18),A.YNc(5,fn,3,1,"div",19),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(2),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified)}}let On=(()=>{class r{constructor(t,o,U){this.dataService=t,this.snackBar=o,this.logger=U,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new c.x,new c.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(LA.D),A.Y36(Rr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(CA){return o.message=CA})("keyup",function(){return o.onChange()}),A.qZA(),A.YNc(5,en,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3)(7,"input",6,7),A.NdJ("ngModelChange",function(CA){return o.signature=CA})("keyup",function(){return o.onChange()}),A.qZA(),A.YNc(9,Re,2,0,"mat-error",5),A.qZA(),A.YNc(10,Te,4,0,"p",8),A.TgZ(11,"div",9)(12,"button",10),A.NdJ("click",function(){return o.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return o.onVerify()}),A._uU(15,"Verify"),A.qZA()(),A.YNc(16,In,6,4,"div",12),A.qZA()()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.message),A.xp6(1),A.Q6J("ngIf",!o.message),A.xp6(2),A.Q6J("ngModel",o.signature),A.xp6(2),A.Q6J("ngIf",!o.signature),A.xp6(1),A.Q6J("ngIf",o.showVerifyStatus&&!o.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",o.showVerifyStatus&&o.verifyRes.verified))},directives:[ft.xw,ft.yH,ft.Wh,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,k.h,JA.Q7,JA.JJ,JA.On,Bt.O5,P.TO,p.Hw,w.lW,sA.d,qr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Kn(r,m){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Dn(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8)(3,"input",9),A.NdJ("ngModelChange",function(U){return A.CHM(t),A.oxw().filterValue=U})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function Mn(r,m){1&r&&A._UZ(0,"mat-progress-bar",33)}function Vn(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function Wn(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function ve(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function Le(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Se(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function _e(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function Ke(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function hn(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function ra(r,m){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function Gn(r,m){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function ia(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function aa(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Jl(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Ol(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function bi(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function ni(r,m){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function oa(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Gi(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(U){const it=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(it,U)}),A._uU(2,"View Info"),A.qZA()()}}function Hi(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function ri(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function ii(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ai(r,m){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,Hi,2,0,"p",45),A.YNc(2,ri,2,0,"p",45),A.YNc(3,ii,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const oi=function(r){return{"display-none":r}};function si(r,m){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,oi,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function li(r,m){1&r&&A._UZ(0,"tr",47)}function ci(r,m){1&r&&A._UZ(0,"tr",48)}const gi=function(){return["no_event"]};function pr(r,m){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,Mn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Vn,2,0,"th",15),A.YNc(6,Wn,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,ve,2,0,"th",15),A.YNc(9,Le,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Se,2,0,"th",15),A.YNc(12,_e,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Ke,2,0,"th",15),A.YNc(15,hn,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,ra,2,0,"th",15),A.YNc(18,Gn,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,ia,2,0,"th",22),A.YNc(21,aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,Jl,2,0,"th",22),A.YNc(24,Ol,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,bi,2,0,"th",22),A.YNc(27,ni,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,oa,6,0,"th",26),A.YNc(30,Gi,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,ai,4,3,"td",29),A.BQk(),A.YNc(33,si,1,3,"tr",30),A.YNc(34,li,1,0,"tr",31),A.YNc(35,ci,1,0,"tr",32),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.forwardingHistoryEvents),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(6,gi)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function oo(r,m){if(1&r&&A._UZ(0,"mat-paginator",49),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let sa=(()=>{class r{constructor(t,o,U,CA,it){this.logger=t,this.commonService=o,this.store=U,this.datePipe=CA,this.router=it,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.totalForwardedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.pipe((0,PA.q)(1)).subscribe(t=>{var o;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(o=t.cln.forwardingHistory.listForwards)||void 0===o?void 0:o.length)&&this.store.dispatch((0,wt.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData.length<=0&&t.forwardingHistory.listForwards&&(this.totalForwardedTransactions=t.forwardingHistory.totalForwards||0,this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:a.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:a.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:a.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new DA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.forwardingHistoryEvents.filterPredicate=(o,U)=>{var CA,it;return((o.received_time?(null===(CA=this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm"))||void 0===CA?void 0:CA.toLowerCase())+" ":"")+(o.resolved_time?(null===(it=this.datePipe.transform(new Date(1e3*o.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===it?void 0:it.toLowerCase())+" ":"")+(o.in_channel?o.in_channel.toLowerCase()+" ":"")+(o.out_channel?o.out_channel.toLowerCase()+" ":"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase()+" ":"")+(o.out_channel_alias?o.out_channel_alias.toLowerCase()+" ":"")+(o.in_msatoshi?o.in_msatoshi/1e3+" ":"")+(o.out_msatoshi?o.out_msatoshi/1e3+" ":"")+(o.fee?o.fee+" ":"")).includes(U)},this.forwardingHistoryEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Kn,2,1,"div",1),A.YNc(2,Dn,4,1,"div",2),A.YNc(3,pr,36,7,"div",3),A.YNc(4,oo,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,T.pW,DA.BZ,nt.YE,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,QA.gD,QA.$L,wA.ey,w.lW,DA.mD,DA.yh,DA.Ke,DA.Q2,Bt.mk,Y.oO,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function so(r,m){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function lo(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",6)(1,"div",7),A._UZ(2,"fa-icon",8),A.TgZ(3,"span"),A._uU(4,"Maximum 1,000 failed transactions only."),A.qZA()(),A.TgZ(5,"div",9),A._UZ(6,"div",10),A.TgZ(7,"mat-form-field",11)(8,"input",12),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().selFilter=U}),A.qZA()()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.faExclamationTriangle),A.xp6(6),A.Q6J("ngModel",t.selFilter)}}function la(r,m){1&r&&A._UZ(0,"mat-progress-bar",35)}function $l(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Received Time"),A.qZA())}function Ac(r,m){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function tc(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Resolved Time"),A.qZA())}function ec(r,m){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function nc(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"In Channel"),A.qZA())}function rc(r,m){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function ic(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Out Channel"),A.qZA())}function ac(r,m){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function oc(r,m){1&r&&(A.TgZ(0,"th",38),A._uU(1,"Amount In (Sats)"),A.qZA())}function sc(r,m){if(1&r&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function lc(r,m){1&r&&(A.TgZ(0,"th",38),A._uU(1,"Amount Out (Sats)"),A.qZA())}function cc(r,m){if(1&r&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function gc(r,m){1&r&&(A.TgZ(0,"th",38),A._uU(1,"Fee (mSats)"),A.qZA())}function Bc(r,m){if(1&r&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function uc(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",43),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function fc(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",45),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(CA)}),A._uU(2,"View Info"),A.qZA()()}}function hc(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function Ec(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function wc(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Cc(r,m){if(1&r&&(A.TgZ(0,"td",46),A.YNc(1,hc,2,0,"p",47),A.YNc(2,Ec,2,0,"p",47),A.YNc(3,wc,2,1,"p",47),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Qc=function(r){return{"display-none":r}};function dc(r,m){if(1&r&&A._UZ(0,"tr",48),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Qc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function Mc(r,m){1&r&&A._UZ(0,"tr",49)}function pc(r,m){1&r&&A._UZ(0,"tr",50)}const mc=function(){return["no_event"]};function Ic(r,m){if(1&r&&(A.TgZ(0,"div",13),A.YNc(1,la,1,0,"mat-progress-bar",14),A.TgZ(2,"table",15,16),A.ynx(4,17),A.YNc(5,$l,2,0,"th",18),A.YNc(6,Ac,3,4,"td",19),A.BQk(),A.ynx(7,20),A.YNc(8,tc,2,0,"th",18),A.YNc(9,ec,3,4,"td",19),A.BQk(),A.ynx(10,21),A.YNc(11,nc,2,0,"th",18),A.YNc(12,rc,2,1,"td",19),A.BQk(),A.ynx(13,22),A.YNc(14,ic,2,0,"th",18),A.YNc(15,ac,2,1,"td",19),A.BQk(),A.ynx(16,23),A.YNc(17,oc,2,0,"th",24),A.YNc(18,sc,4,4,"td",19),A.BQk(),A.ynx(19,25),A.YNc(20,lc,2,0,"th",24),A.YNc(21,cc,4,4,"td",19),A.BQk(),A.ynx(22,26),A.YNc(23,gc,2,0,"th",24),A.YNc(24,Bc,4,4,"td",19),A.BQk(),A.ynx(25,27),A.YNc(26,uc,6,0,"th",28),A.YNc(27,fc,3,0,"td",29),A.BQk(),A.ynx(28,30),A.YNc(29,Cc,4,3,"td",31),A.BQk(),A.YNc(30,dc,1,3,"tr",32),A.YNc(31,Mc,1,0,"tr",33),A.YNc(32,pc,1,0,"tr",34),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedForwardingEvents),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(6,mc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function vc(r,m){if(1&r&&A._UZ(0,"mat-paginator",51),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Dc=(()=>{class r{constructor(t,o,U,CA,it){this.logger=t,this.commonService=o,this.store=U,this.datePipe=CA,this.router=it,this.faExclamationTriangle=h.eHv,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.totalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","out_channel","in_msatoshi","out_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,wt.u0)({payload:{status:a.OO.FAILED}})),this.store.select(B.xQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalFailedTransactions=t.failedForwardingHistory.totalForwards||0,this.failedEvents=t.failedForwardingHistory.listForwards||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(t){const o=[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel_alias",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:33,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Amount Out (mSats)",width:33,type:a.Gi.NUMBER},{key:"fee",value:t.fee,title:"Fee (mSats)",width:34,type:a.Gi.NUMBER}]];t.payment_hash&&(null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}])),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Failed Event Information",message:o}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new DA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.failedForwardingEvents.filterPredicate=(o,U)=>{var CA;const it=(o.received_time?this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(o.resolved_time?null===(CA=this.datePipe.transform(new Date(1e3*o.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===CA?void 0:CA.toLowerCase():"")+(o.payment_hash?o.payment_hash.toLowerCase():"")+(o.in_channel?o.in_channel.toLowerCase():"")+(o.out_channel?o.out_channel.toLowerCase():"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase():"")+(o.out_channel_alias?o.out_channel_alias.toLowerCase():"")+(o.in_msatoshi?o.in_msatoshi/1e3:"")+(o.out_msatoshi?o.out_msatoshi/1e3:"")+(o.fee?o.fee:"");return(null==it?void 0:it.includes(U))||!1},this.failedForwardingEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.failedForwardingEvents)}onDownloadCSV(){this.failedForwardingEvents&&this.failedForwardingEvents.data&&this.failedForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedForwardingEvents.data,"Failed-transactions")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,so,2,1,"div",1),A.YNc(2,lo,9,2,"div",2),A.YNc(3,Ic,33,7,"div",3),A.YNc(4,vc,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,T.pW,DA.BZ,nt.YE,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,QA.gD,QA.$L,wA.ey,w.lW,DA.mD,DA.yh,DA.Ke,DA.Q2,Bt.mk,Y.oO,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const yc=["tableIn"],xc=["tableOut"],Fc=["paginatorIn"],Yc=["paginatorOut"];function Tc(r,m){if(1&r&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Sc(r,m){1&r&&A._UZ(0,"mat-progress-bar",36)}function Nc(r,m){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const co=function(r){return{"max-width":r}};function Uc(r,m){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Pc(r,m){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Rc(r,m){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Lc(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function zc(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function bc(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Gc(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function Hc(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Jc(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function Oc(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function kc(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function jc(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Kc(r,m){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,Oc,2,0,"p",43),A.YNc(2,kc,2,0,"p",43),A.YNc(3,jc,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const jl=function(r){return{"display-none":r}};function Vc(r,m){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,jl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Wc(r,m){1&r&&A._UZ(0,"tr",45)}function Zc(r,m){1&r&&A._UZ(0,"tr",46)}function Xc(r,m){1&r&&A._UZ(0,"mat-progress-bar",36)}function qc(r,m){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function _c(r,m){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function $c(r,m){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Ag(r,m){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function tg(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function eg(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function ng(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function rg(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function ig(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function ag(r,m){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function og(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function sg(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function lg(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function cg(r,m){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,og,2,0,"p",43),A.YNc(2,sg,2,0,"p",43),A.YNc(3,lg,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function gg(r,m){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,jl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Bg(r,m){1&r&&A._UZ(0,"tr",45)}function ug(r,m){1&r&&A._UZ(0,"tr",46)}const fg=function(r,m){return{"mt-2":r,"mt-1":m}},hg=function(){return["no_incoming_event"]},Eg=function(r){return{"mt-2":r}},wg=function(){return["no_outgoing_event"]};function Cg(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8)(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().filterIn=U}),A.qZA()()(),A.TgZ(7,"div",10),A.YNc(8,Sc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,Nc,2,0,"th",15),A.YNc(13,Uc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Pc,2,0,"th",15),A.YNc(16,Rc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Lc,2,0,"th",19),A.YNc(19,zc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,bc,2,0,"th",19),A.YNc(22,Gc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Hc,2,0,"th",19),A.YNc(25,Jc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Kc,4,3,"td",24),A.BQk(),A.YNc(28,Vc,1,3,"tr",25),A.YNc(29,Wc,1,0,"tr",26),A.YNc(30,Zc,1,0,"tr",27),A.qZA()(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30)(34,"div",6)(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8)(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().filterOut=U}),A.qZA()()(),A.TgZ(39,"div",31),A.YNc(40,Xc,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,qc,2,0,"th",15),A.YNc(45,_c,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,$c,2,0,"th",15),A.YNc(48,Ag,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,tg,2,0,"th",19),A.YNc(51,eg,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,ng,2,0,"th",19),A.YNc(54,rg,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,ig,2,0,"th",19),A.YNc(57,ag,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,cg,4,3,"td",24),A.BQk(),A.YNc(60,gg,1,3,"tr",25),A.YNc(61,Bg,1,0,"tr",26),A.YNc(62,ug,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,fg,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),A.xp6(4),A.Q6J("ngModel",t.filterIn),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersIncoming),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(25,hg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),A.xp6(3),A.Q6J("ngClass",A.VKq(26,Eg,t.screenSize!==t.screenSizeEnum.LG)),A.xp6(4),A.Q6J("ngModel",t.filterOut),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersOutgoing),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(28,wg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Qg=(()=>{class r{constructor(t,o,U){this.logger=t,this.commonService=o,this.store=U,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_amount","total_fee"]):(this.flgSticky=!0,this.displayedColumns=["channel_id","alias","events","total_amount","total_fee"])}ngOnInit(){this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}loadRoutingPeersTable(t){if(t.length>0){const o=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new DA.by(o[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(U,CA)=>JSON.stringify(U).toLowerCase().includes(CA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new DA.by(o[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(U,CA)=>JSON.stringify(U).toLowerCase().includes(CA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new DA.by([]),this.RoutingPeersOutgoing=new DA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const o=[],U=[];return t.forEach(CA=>{const it=null==o?void 0:o.find(Ht=>Ht.channel_id===CA.in_channel),Dt=null==U?void 0:U.find(Ht=>Ht.channel_id===CA.out_channel);it?(it.events++,it.total_amount=+it.total_amount+ +(CA.in_msatoshi||0),it.total_fee=(CA.in_msatoshi||0)-(CA.out_msatoshi||0)+ +it.total_fee):o.push({channel_id:CA.in_channel,alias:CA.in_channel_alias,events:1,total_amount:CA.in_msatoshi,total_fee:(CA.in_msatoshi||0)-(CA.out_msatoshi||0)}),Dt?(Dt.events++,Dt.total_amount=+Dt.total_amount+ +(CA.out_msatoshi||0),Dt.total_fee=(CA.in_msatoshi||0)-(CA.out_msatoshi||0)+ +Dt.total_fee):U.push({channel_id:CA.out_channel,alias:CA.out_channel_alias,events:1,total_amount:CA.out_msatoshi,total_fee:(CA.in_msatoshi||0)-(CA.out_msatoshi||0)})}),[this.commonService.sortDescByKey(o,"total_fee"),this.commonService.sortDescByKey(U,"total_fee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(yc,5,nt.YE),A.Gf(xc,5,nt.YE),A.Gf(Fc,5),A.Gf(Yc,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sortIn=U.first),A.iGM(U=A.CRH())&&(o.sortOut=U.first),A.iGM(U=A.CRH())&&(o.paginatorIn=U.first),A.iGM(U=A.CRH())&&(o.paginatorOut=U.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Peers")}]),A.TTD],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","total_fee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Tc,2,1,"div",1),A.YNc(2,Cg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,Bt.mk,Y.oO,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,T.pW,DA.BZ,nt.YE,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function dg(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Mg=(()=>{class r{constructor(t){this.router=t,this.faChartBar=h.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,dg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartBar),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,Et.BU,Bt.sg,Et.Nj,Vt.rH,Vt.lC],styles:[""]}),r})();var Kl=Ut(7772),Vl=Ut(7671),Wl=Ut(1210);function pg(r,m){1&r&&(A.TgZ(0,"div",14),A._UZ(1,"mat-progress-bar",15),A.TgZ(2,"p"),A._uU(3,"Getting Forwarding History..."),A.qZA()())}function mg(r,m){if(1&r&&(A.TgZ(0,"div",16),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Ig(r,m){if(1&r&&(A.TgZ(0,"div",17),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.totalFeeMsat),A.xp6(1),A.AsE("",A.xi3(2,3,t.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.lcZ(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function vg(r,m){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function Dg(r,m){if(1&r&&(A.TgZ(0,"span")(1,"span",20),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",20),A._uU(5),A.ALo(6,"number"),A.qZA()()),2&r){const t=m.model,o=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(o.selReportBy===o.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(o.selReportBy===o.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function yg(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(U){return A.CHM(t),A.oxw().onChartBarSelected(U)})("mouseup",function(U){return A.CHM(t),A.oxw().onChartMouseUp(U)}),A.YNc(1,Dg,7,7,"ng-template",null,19,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function xg(r,m){if(1&r&&A._UZ(0,"rtl-cln-forwarding-history",21),2&r){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let Fg=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.commonService=o,this.store=U,this.dataService=CA,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=a.Xr,this.selReportBy=a.Xr.FEES,this.totalFeeMsat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.pipe((0,PA.q)(1)).subscribe(t=>{var o;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(o=t.cln.forwardingHistory.listForwards)||void 0===o?void 0:o.length)&&this.store.dispatch((0,wt.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(B.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.forwardingHistory.status===a.OO.SETTLED&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR?this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:"":this.apiCallStatus.status===a.Bn.COMPLETED&&(this.events=t.forwardingHistory.listForwards||[],this.filterForwardingEvents(this.startDate,this.endDate)),this.logger.info(t))}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(t,o){const U=Math.round(t.getTime()/1e3),CA=Math.round(o.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(it=>{it.received_time&&it.received_time>=U&&it.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===a.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){var o,U;const CA=Math.round(t.getTime()/1e3),it=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let Dt=0;Dt<12;Dt++)it.push({name:a.gg[Dt].name,value:0,extra:{totalEvents:0}});null===(o=this.filteredEventsBySelectedPeriod)||void 0===o||o.map(Dt=>{const Ht=Dt.received_time?new Date(1e3*+Dt.received_time).getMonth():12;return it[Ht].value=Dt.fee?it[Ht].value+ +Dt.fee/1e3:it[Ht].value,it[Ht].extra.totalEvents=it[Ht].extra.totalEvents+1,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let Dt=0;Dt{const Ht=Dt.received_time?Math.floor((+Dt.received_time-CA)/this.secondsInADay):0;return it[Ht].value=Dt.fee?it[Ht].value+ +Dt.fee/1e3:it[Ht].value,it[Ht].extra.totalEvents=it[Ht].extra.totalEvents+1,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return it}prepareEventsReport(t){var o,U;const CA=Math.round(t.getTime()/1e3),it=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let Dt=0;Dt<12;Dt++)it.push({name:a.gg[Dt].name,value:0,extra:{totalFees:0}});null===(o=this.filteredEventsBySelectedPeriod)||void 0===o||o.map(Dt=>{const Ht=Dt.received_time?new Date(1e3*+Dt.received_time).getMonth():12;return it[Ht].value=it[Ht].value+1,it[Ht].extra.totalFees=Dt.fee?it[Ht].extra.totalFees+ +Dt.fee/1e3:it[Ht].extra.totalFees,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let Dt=0;Dt{const Ht=Dt.received_time?Math.floor((+Dt.received_time-CA)/this.secondsInADay):0;return it[Ht].value=it[Ht].value+1,it[Ht].extra.totalFees=Dt.fee?it[Ht].extra.totalFees+ +Dt.fee/1e3:it[Ht].extra.totalFees,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return it}onSelectionChange(t){const o=t.selDate.getMonth(),U=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(U,0,1,0,0,0),this.endDate=new Date(U,11,31,23,59,59)):(this.startDate=new Date(U,o,1,0,0,0),this.endDate=new Date(U,o,this.getMonthDays(o,U),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,o){return 1===t&&o%4==0?a.gg[t].days+1:a.gg[t].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(LA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,o){1&t&&A.NdJ("mouseup",function(CA){return o.onChartMouseUp(CA)})},decls:19,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1 error-border",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["mode","indeterminate"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1","error-border"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(CA){return o.onSelectionChange(CA)}),A.qZA(),A.TgZ(2,"div",2)(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(CA){return o.selReportBy=CA})("change",function(){return o.onSelReportByChange()}),A.TgZ(4,"span",4),A._uU(5,"Report By: "),A.qZA(),A.TgZ(6,"mat-radio-button",5),A._uU(7,"Fees"),A.qZA(),A.TgZ(8,"mat-radio-button",6),A._uU(9,"Events"),A.qZA()()(),A.TgZ(10,"div",7),A.YNc(11,pg,4,0,"div",8),A.YNc(12,mg,2,1,"div",9),A.YNc(13,Ig,4,8,"div",10),A.YNc(14,vg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,yg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,xg,1,2,"rtl-cln-forwarding-history",13),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",o.selReportBy),A.xp6(3),A.s9C("value",o.reportBy.FEES),A.xp6(2),A.s9C("value",o.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.COMPLETED&&o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.COMPLETED&&(o.routingReportData.length<=0||o.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",o.filteredEventsBySelectedPeriod&&o.filteredEventsBySelectedPeriod.length>0))},directives:[ft.xw,ft.Wh,ft.yH,Vl.D,HA.VQ,JA.JJ,JA.On,HA.U0,Bt.O5,T.pW,Wl.K$,sa],pipes:[Bt.JJ],styles:[""],data:{animation:[Kl.J]}}),r})();var Yg=Ut(165);function Tg(r,m){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Paid ",A.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Sg(r,m){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Received ",A.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Ng(r,m){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,Tg,4,7,"div",9),A.YNc(2,Sg,4,7,"div",9),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.transactionsReportSummary),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function Ug(r,m){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Pg(r,m){if(1&r&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=m.model;A.xp6(1),A.HOy("",t.name,": ",A.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",A.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function Rg(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(U){return A.CHM(t),A.oxw().onChartBarSelected(U)})("mouseup",function(U){return A.CHM(t),A.oxw().onChartMouseUp(U)}),A.YNc(1,Pg,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Lg(r,m){if(1&r&&A._UZ(0,"rtl-transactions-report-table",15),2&r){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let zg=(()=>{class r{constructor(t,o,U){this.logger=t,this.commonService=o,this.store=U,this.scrollRanges=a.op,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.PP).pipe((0,i.R)(this.unSubs[0]),(0,s.M)(this.store.select(B.gc))).subscribe(([t,o])=>{this.payments=t.payments,this.invoices=o.listInvoices.invoices||[],this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===a.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,o){var U,CA;const it=Math.round(t.getTime()/1e3),Dt=Math.round(o.getTime()/1e3),Ht=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const ze=null===(U=this.payments)||void 0===U?void 0:U.filter(ee=>"complete"===ee.status&&ee.created_at&&ee.created_at>=it&&ee.created_at"paid"===ee.status&&ee.paid_at&&ee.paid_at>=it&&ee.paid_at{const Ve=new Date(1e3*(ee.created_at||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(ee.msatoshi_sent||0),Ht[Ve].series[0].value=Ht[Ve].series[0].value+(ee.msatoshi_sent||0)/1e3,Ht[Ve].series[0].extra.total=Ht[Ve].series[0].extra.total+1,this.transactionsReportSummary}),null==$e||$e.map(ee=>{const Ve=new Date(1e3*+(ee.paid_at||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(ee.msatoshi_received||0),Ht[Ve].series[1].value=Ht[Ve].series[1].value+(ee.msatoshi_received||0)/1e3,Ht[Ve].series[1].extra.total=Ht[Ve].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let ee=0;ee{const Ve=Math.floor((+(ee.created_at||0)-it)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(ee.msatoshi_sent||0),Ht[Ve].series[0].value=Ht[Ve].series[0].value+(ee.msatoshi_sent||0)/1e3,Ht[Ve].series[0].extra.total=Ht[Ve].series[0].extra.total+1,this.transactionsReportSummary}),null==$e||$e.map(ee=>{const Ve=Math.floor((+(ee.paid_at||0)-it)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(ee.msatoshi_received||0),Ht[Ve].series[1].value=Ht[Ve].series[1].value+(ee.msatoshi_received||0)/1e3,Ht[Ve].series[1].extra.total=Ht[Ve].series[1].extra.total+1,this.transactionsReportSummary})}return Ht}prepareTableData(){var t;return null===(t=this.transactionsReportData)||void 0===t?void 0:t.reduce((o,U)=>U.series[0].extra.total>0||U.series[1].extra.total>0?o.concat({date:U.date,amount_paid:U.series[0].value,num_payments:U.series[0].extra.total,amount_received:U.series[1].value,num_invoices:U.series[1].extra.total}):o,[])}onSelectionChange(t){const o=t.selDate.getMonth(),U=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(U,0,1,0,0,0),this.endDate=new Date(U,11,31,23,59,59)):(this.startDate=new Date(U,o,1,0,0,0),this.endDate=new Date(U,o,this.getMonthDays(o,U),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,o){return 1===t&&o%4==0?a.gg[t].days+1:a.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,o){1&t&&A.NdJ("mouseup",function(CA){return o.onChartMouseUp(CA)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(CA){return o.onSelectionChange(CA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,Ng,3,3,"div",3),A.YNc(4,Ug,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Rg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Lg,1,3,"rtl-transactions-report-table",7),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",o.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0))},directives:[ft.xw,ft.Wh,ft.yH,Vl.D,Bt.O5,Wl.H5,Yg.g],pipes:[Bt.JJ],styles:[""],data:{animation:[Kl.J]}}),r})();var De=Ut(1643),bg=Ut(9442);function Gg(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeLink=CA.link}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Hg=(()=>{class r{constructor(t){this.router=t,this.faSearch=h.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeLink=U?U.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Gg,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faSearch),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,Et.BU,Bt.sg,Et.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),r})();var Jg=Ut(4641),Og=Ut(8493);function kg(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function jg(r,m){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,kg,2,1,"span",23),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let Kg=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.dialogRef=t,this.data=o,this.store=U,this.decimalPipe=CA,this.commonService=it,this.actions=Dt,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=a.IV,this.offerError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,wt.dh)({payload:{amount:this.offerValue?this.offerValue+"sats":"any",description:this.description,vendor:this.vendor}}))}resetData(){this.description="",this.vendor=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode&&this.selNode.fiatConversion&&this.offerValue&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-offer"]],decls:28,vars:8,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addOfferForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","1","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","offerValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","58","fxLayoutAlign","start end"],["matInput","","placeholder","Vendor","tabindex","3","name","vendor",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","5",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Offer"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(CA){return o.description=CA}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(CA){return o.offerValue=CA})("keyup",function(){return o.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(CA){return o.vendor=CA}),A.qZA()()(),A.YNc(22,jg,3,2,"div",17),A.TgZ(23,"div",18)(24,"button",19),A.NdJ("click",function(){return o.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return o.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA()()()()()()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",o.description),A.xp6(3),A.Q6J("ngModel",o.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(o.offerValueHint),A.xp6(2),A.Q6J("ngModel",o.vendor),A.xp6(1),A.Q6J("ngIf",""!==o.offerError))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.Fj,k.h,JA.JJ,JA.On,JA.wV,JA.qQ,b.q,P.R9,P.bx,Bt.O5,e.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var Zl=Ut(1462);function Vg(r,m){1&r&&A._UZ(0,"mat-progress-bar",28)}function Wg(r,m){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Xl=function(r){return{"mr-0":r}};function Zg(r,m){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xl,t.screenSize===t.screenSizeEnum.XS))}}function Xg(r,m){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xl,t.screenSize===t.screenSizeEnum.XS))}}const qg=function(r){return{"max-width":r}};function _g(r,m){if(1&r&&(A.TgZ(0,"td",30)(1,"div",31)(2,"span",32),A.YNc(3,Zg,1,3,"span",33),A.YNc(4,Xg,1,3,"span",34),A._uU(5),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,qg,o.screenSize===o.screenSizeEnum.XS?"25rem":"45rem")),A.xp6(2),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",!t.active),A.xp6(1),A.hij(" ",t.offer_id," ")}}function $g(r,m){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function AB(r,m){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function tB(r,m){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function eB(r,m){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function nB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function rB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onDisableOffer(U)}),A._uU(1,"Disable Offer"),A.qZA()}}function iB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const U=A.oxw().$implicit;return A.oxw().onPrintOffer(U)}),A._uU(1,"Export QR code"),A.qZA()}}const aB=function(r){return{"px-3":r}};function oB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",41)(1,"div",42)(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onOfferClick(CA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,rB,2,0,"mat-option",44),A.YNc(7,iB,2,0,"mat-option",44),A.qZA()()()}if(2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngClass",A.VKq(3,aB,o.screenSize!==o.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function sB(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function lB(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function cB(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function gB(r,m){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,sB,2,0,"p",46),A.YNc(2,lB,2,0,"p",46),A.YNc(3,cB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const BB=function(r){return{"display-none":r}};function uB(r,m){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,BB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function fB(r,m){1&r&&A._UZ(0,"tr",48)}function hB(r,m){1&r&&A._UZ(0,"tr",49)}const EB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},wB=function(){return["no_offer"]};let CB=(()=>{class r{constructor(t,o,U,CA,it,Dt,Ht){this.logger=t,this.store=o,this.commonService=U,this.rtlEffects=CA,this.dataService=it,this.decimalPipe=Dt,this.datePipe=Ht,this.faHistory=h.qO$,this.selNode={},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","used","actions"]):(this.flgSticky=!0,this.displayedColumns=["offer_id","single_use","used","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offerJSONArr=t.offers||[],this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Kg}}}))}onOfferClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{used:t.used,single_use:t.single_use,active:t.active,offer_id:t.offer_id,bolt12:t.bolt12,bolt12_unsigned:t.bolt12_unsigned},newlyAdded:!1,component:Zl.k}}}))}onDisableOffer(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,wt.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,PA.q)(1)).subscribe(o=>{o.offer_id&&!o.amount_msat?(o.amount_msat="0msat",o.amount=0):o.amount=o.amount?+o.amount:o.amount_msat?+o.amount_msat.slice(0,-4):null;const U={pageSize:"A5",pageOrientation:"portrait",pageMargins:[10,50,10,50],background:{svg:'\n \n \n \n \n \n ',width:249,height:333,absolutePosition:{x:84,y:160}},header:{text:o.vendor||o.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:o.description?o.description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:(null==o?void 0:o.amount_msat)&&0!==(null==o?void 0:o.amount)?this.decimalPipe.transform((o.amount||0)/1e3)+" SATS":"Open amount",fontSize:20,bold:!1,color:"white",alignment:"center",absolutePosition:{x:0,y:430}},{text:"SCAN TO PAY",fontSize:22,bold:!0,color:"white",alignment:"center",absolutePosition:{x:0,y:455}}],footer:{svg:'\n \n \n \n \n ',alignment:"center"}};Jg.createPdf(U,null,null,Og.I.vfs).download("Offer-"+(o&&o.description?o.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new DA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(o,U)=>(("active"===U||"inactive"===U||"used"===U||"unused"===U||"single"===U||"multiple"===U)&&(U=" "+U),((o.active?" active":" inactive")+(o.used?" used":" unused")+(o.single_use?" single":" multiple")+JSON.stringify(o).toLowerCase()).includes(U)),this.offers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(yA.V),A.Y36(LA.D),A.Y36(Bt.JJ),A.Y36(Bt.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Offers")}])],decls:34,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["class","dot green","matTooltip","Active","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Inactive","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA()(),A.TgZ(4,"div",3)(5,"div",4)(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA()(),A.TgZ(10,"mat-form-field",8)(11,"input",9),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()(),A.TgZ(12,"div",10),A.YNc(13,Vg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Wg,2,0,"th",15),A.YNc(18,_g,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,$g,2,0,"th",15),A.YNc(21,AB,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,tB,2,0,"th",15),A.YNc(24,eB,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,nB,6,0,"th",20),A.YNc(27,oB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,gB,4,3,"td",23),A.BQk(),A.YNc(30,uB,1,3,"tr",24),A.YNc(31,fB,1,0,"tr",25),A.YNc(32,hB,1,0,"tr",26),A.qZA()(),A._UZ(33,"mat-paginator",27),A.qZA()()),2&t&&(A.xp6(7),A.Q6J("icon",o.faHistory),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.offers)("ngClass",A.VKq(12,EB,""!==o.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,wB)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,w.lW,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,Bt.O5,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,eA.gM,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function QB(r,m){1&r&&A._UZ(0,"mat-progress-bar",30)}function dB(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function MB(r,m){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function pB(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const ql=function(r){return{"max-width":r}};function mB(r,m){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ql,o.screenSize===o.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function IB(r,m){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function vB(r,m){if(1&r&&(A.TgZ(0,"td",36)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function DB(r,m){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function yB(r,m){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ql,o.screenSize===o.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function xB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const FB=function(r){return{"px-3":r}};function YB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"div",43)(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(CA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(CA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(CA)}),A._uU(9,"Delete Bookmark"),A.qZA()()()()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,FB,t.screenSize!==t.screenSizeEnum.XS))}}function TB(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function SB(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function NB(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function UB(r,m){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,TB,2,0,"p",46),A.YNc(2,SB,2,0,"p",46),A.YNc(3,NB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const PB=function(r){return{"display-none":r}};function RB(r,m){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,PB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function LB(r,m){1&r&&A._UZ(0,"tr",48)}function zB(r,m){1&r&&A._UZ(0,"tr",49)}const bB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},GB=function(){return["no_offer"]};let HB=(()=>{class r{constructor(t,o,U,CA){this.logger=t,this.store=o,this.commonService=U,this.rtlEffects=CA,this.faHistory=h.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"]):(this.flgSticky=!0,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"])}ngOnInit(){this.store.select(B.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offersBookmarksJSONArr=t.offersBookmarks||[],this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:Zl.k}}}))}onDeleteBookmark(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(o=>{o&&this.store.dispatch((0,wt._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,kA.qR)({payload:{data:{paymentType:a.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Yn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new DA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(o,U)=>JSON.stringify(o).toLowerCase().includes(U),this.offersBookmarks.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(yA.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Offer Bookmarks")}])],decls:35,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","amountmSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2)(3,"div",3)(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA()(),A.TgZ(8,"mat-form-field",7)(9,"input",8),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()(),A.TgZ(10,"div",9),A.YNc(11,QB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,dB,2,0,"th",14),A.YNc(16,MB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,pB,2,0,"th",14),A.YNc(19,mB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,IB,2,0,"th",18),A.YNc(22,vB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,DB,2,0,"th",14),A.YNc(25,yB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,xB,6,0,"th",22),A.YNc(28,YB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,UB,4,3,"td",25),A.BQk(),A.YNc(31,RB,1,3,"tr",26),A.YNc(32,LB,1,0,"tr",27),A.YNc(33,zB,1,0,"tr",28),A.qZA()(),A._UZ(34,"mat-paginator",29),A.qZA()()),2&t&&(A.xp6(5),A.Q6J("icon",o.faHistory),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.offersBookmarks)("ngClass",A.VKq(12,bB,""!==o.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,GB)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,Bt.O5,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function JB(r,m){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function OB(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",6)(1,"div",7),A._UZ(2,"fa-icon",8),A.TgZ(3,"span"),A._uU(4,"Maximum 1,000 local failed transactions only."),A.qZA()(),A.TgZ(5,"div",9),A._UZ(6,"div",10),A.TgZ(7,"mat-form-field",11)(8,"input",12),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(U){return A.CHM(t),A.oxw().selFilter=U}),A.qZA()()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.faExclamationTriangle),A.xp6(6),A.Q6J("ngModel",t.selFilter)}}function kB(r,m){1&r&&A._UZ(0,"mat-progress-bar",34)}function jB(r,m){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Received Time"),A.qZA())}function KB(r,m){if(1&r&&(A.TgZ(0,"td",36),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function VB(r,m){1&r&&(A.TgZ(0,"th",35),A._uU(1,"In Channel"),A.qZA())}function WB(r,m){if(1&r&&(A.TgZ(0,"td",36),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function ZB(r,m){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Amount In (Sats)"),A.qZA())}function XB(r,m){if(1&r&&(A.TgZ(0,"td",36)(1,"span",38),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function qB(r,m){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fail Reason"),A.qZA())}function _B(r,m){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=m.$implicit,o=A.oxw(2);A.xp6(1),A.Oqu(o.CLNFailReason[null==t?null:t.failreason])}}function $B(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",41)(1,"div",42)(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",44),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Au(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",45)(1,"button",46),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(CA)}),A._uU(2,"View Info"),A.qZA()()}}function tu(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function eu(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function nu(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ru(r,m){if(1&r&&(A.TgZ(0,"td",47),A.YNc(1,tu,2,0,"p",48),A.YNc(2,eu,2,0,"p",48),A.YNc(3,nu,2,1,"p",48),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const iu=function(r){return{"display-none":r}};function au(r,m){if(1&r&&A._UZ(0,"tr",49),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,iu,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function ou(r,m){1&r&&A._UZ(0,"tr",50)}function su(r,m){1&r&&A._UZ(0,"tr",51)}const lu=function(){return["no_event"]};function cu(r,m){if(1&r&&(A.TgZ(0,"div",13),A.YNc(1,kB,1,0,"mat-progress-bar",14),A.TgZ(2,"table",15,16),A.ynx(4,17),A.YNc(5,jB,2,0,"th",18),A.YNc(6,KB,3,4,"td",19),A.BQk(),A.ynx(7,20),A.YNc(8,VB,2,0,"th",18),A.YNc(9,WB,2,1,"td",19),A.BQk(),A.ynx(10,21),A.YNc(11,ZB,2,0,"th",22),A.YNc(12,XB,4,4,"td",19),A.BQk(),A.ynx(13,23),A.YNc(14,qB,2,0,"th",24),A.YNc(15,_B,2,1,"td",25),A.BQk(),A.ynx(16,26),A.YNc(17,$B,6,0,"th",27),A.YNc(18,Au,3,0,"td",28),A.BQk(),A.ynx(19,29),A.YNc(20,ru,4,3,"td",30),A.BQk(),A.YNc(21,au,1,3,"tr",31),A.YNc(22,ou,1,0,"tr",32),A.YNc(23,su,1,0,"tr",33),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedLocalForwardingEvents),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(6,lu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function gu(r,m){if(1&r&&A._UZ(0,"mat-paginator",52),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Bu=(()=>{class r{constructor(t,o,U,CA,it){this.logger=t,this.commonService=o,this.store=U,this.datePipe=CA,this.router=it,this.faExclamationTriangle=h.eHv,this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.totalLocalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","in_channel","in_msatoshi","failreason","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,wt.u0)({payload:{status:a.OO.LOCAL_FAILED}})),this.store.select(B.lK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalLocalFailedTransactions=t.localFailedForwardingHistory.totalForwards||0,this.failedLocalEvents=t.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents)}onFailedLocalEventClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:100,type:a.Gi.NUMBER}],[{key:"failreason",value:t.failreason?this.CLNFailReason[t.failreason]:"",title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new DA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(o,U)=>{var CA;const it=(o.received_time?null===(CA=this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm"))||void 0===CA?void 0:CA.toLowerCase():"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase():"")+(o.failreason&&this.CLNFailReason[o.failreason]?this.CLNFailReason[o.failreason].toLowerCase():"")+(o.in_msatoshi?o.in_msatoshi/1e3:"");return(null==it?void 0:it.includes(U))||!1},this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(o,U)=>"failreason"===U?o.failreason?this.CLNFailReason[o.failreason]:"":o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.failedLocalForwardingEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.failedLocalForwardingEvents)}onDownloadCSV(){this.failedLocalForwardingEvents&&this.failedLocalForwardingEvents.data&&this.failedLocalForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedLocalForwardingEvents.data,"Local-failed-transactions")}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Local failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","failreason"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,JB,2,1,"div",1),A.YNc(2,OB,9,2,"div",2),A.YNc(3,cu,24,7,"div",3),A.YNc(4,gu,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,T.pW,DA.BZ,nt.YE,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,QA.gD,QA.$L,wA.ey,w.lW,DA.mD,DA.yh,DA.Ke,DA.Q2,Bt.mk,Y.oO,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const uu=["form"];function fu(r,m){1&r&&A.GkF(0)}function hu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function Eu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function wu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function Cu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20,000 Sats. It's required to cover the channel force close fee, if needed."),A.qZA())}function Qu(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Local amount must be less than or equal to ",t.totalBalance,".")}}function du(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function Mu(r,m){if(1&r&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",28),A.YNc(2,du,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function pu(r,m){1&r&&(A.TgZ(0,"th",48),A._uU(1,"Type"),A.qZA())}function mu(r,m){if(1&r&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Iu(r,m){1&r&&(A.TgZ(0,"th",48),A._uU(1,"Address"),A.qZA())}function vu(r,m){if(1&r&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Du(r,m){1&r&&(A.TgZ(0,"th",48),A._uU(1,"Port"),A.qZA())}function yu(r,m){if(1&r&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function xu(r,m){1&r&&A._UZ(0,"tr",50)}function Fu(r,m){1&r&&A._UZ(0,"tr",51)}function Yu(r,m){if(1&r&&(A.TgZ(0,"mat-expansion-panel",30)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",31),A._uU(6),A.qZA()()(),A.TgZ(7,"div",7)(8,"div",0)(9,"div",1)(10,"h4",32),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",33),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",34),A.TgZ(15,"div",0)(16,"div",1)(17,"h4",32),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",35),A._uU(20),A.ALo(21,"date"),A.qZA()()(),A._UZ(22,"mat-divider",34),A.TgZ(23,"div",36)(24,"h4",37),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",38)(27,"table",39,40),A.ynx(29,41),A.YNc(30,pu,2,0,"th",42),A.YNc(31,mu,2,1,"td",43),A.BQk(),A.ynx(32,44),A.YNc(33,Iu,2,0,"th",42),A.YNc(34,vu,2,1,"td",43),A.BQk(),A.ynx(35,45),A.YNc(36,Du,2,0,"th",42),A.YNc(37,yu,2,1,"td",43),A.BQk(),A.YNc(38,xu,1,0,"tr",46),A.YNc(39,Fu,1,0,"tr",47),A.qZA()()()()()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.node?null:t.node.alias)||(null==t.node?null:t.node.nodeid)),A.xp6(7),A.Oqu(t.node.nodeid),A.xp6(7),A.Oqu(A.xi3(21,6,1e3*t.node.last_timestamp,"dd/MMM/y HH:mm")),A.xp6(7),A.Q6J("dataSource",t.node.addresses),A.xp6(11),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Tu(r,m){if(1&r&&A.YNc(0,Yu,40,9,"mat-expansion-panel",29),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let Su=(()=>{class r{constructor(t,o,U,CA){this.dialogRef=t,this.data=o,this.actions=U,this.store=CA,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.node={},this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new c.x,new c.x]}ngOnInit(){var t,o,U,CA,it;this.alertTitle=this.data.alertTitle||"",this.totalBalance=(null===(t=this.data.message)||void 0===t?void 0:t.balance)||0,this.node=(null===(o=this.data.message)||void 0===o?void 0:o.node)||{},this.requestedAmount=(null===(U=this.data.message)||void 0===U?void 0:U.requestedAmount)||0,this.feeRate=(null===(CA=this.data.message)||void 0===CA?void 0:CA.feeRate)||0,this.localAmount=(null===(it=this.data.message)||void 0===it?void 0:it.localAmount)||0,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(Dt=>Dt.type===a.AB.UPDATE_API_CALL_STATUS_CLN||Dt.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(Dt=>{Dt.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&Dt.payload.status===a.Bn.ERROR&&"SaveNewChannel"===Dt.payload.action&&(this.channelConnectionError=Dt.payload.message),Dt.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){var t,o,U;this.form.resetForm(),this.form.controls.ramount.setValue(null===(t=this.data.message)||void 0===t?void 0:t.requestedAmount),this.form.controls.feerate.setValue(null===(o=this.data.message)||void 0===o?void 0:o.feeRate),this.form.controls.lamount.setValue(null===(U=this.data.message)||void 0===U?void 0:U.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){var t,o,U;this.node.channelOpeningFee=+((null===(t=this.node.option_will_fund)||void 0===t?void 0:t.lease_fee_base_msat)||0)/1e3+this.requestedAmount*+((null===(o=this.node.option_will_fund)||void 0===o?void 0:o.lease_fee_basis)||0)/1e4+ +((null===(U=this.node.option_will_fund)||void 0===U?void 0:U.funding_weight)||0)/4*this.feeRate}onOpenChannel(){if(!this.node||!this.node.option_will_fund||!this.requestedAmount||!this.feeRate||!this.localAmount||this.localAmount<2e4)return!0;const t={peerId:this.node.nodeid||"",satoshis:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease,announce:!0};this.store.dispatch((0,wt.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(Tt.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,o){if(1&t&&A.Gf(uu,7),2&t){let U;A.iGM(U=A.CRH())&&(o.form=U.first)}},decls:48,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["form","ngForm"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","placeholder","Requested Amount","type","number","tabindex","1","required","","name","ramount",3,"ngModel","step","min","ngModelChange","keyup"],["ramount","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["matSuffix",""],["matInput","","placeholder","Local Amount","type","number","tabindex","3","required","","name","lamount",3,"ngModel","step","min","max","ngModelChange"],["lamount","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-4"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","4",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","tabindex","5",3,"click"],["nodeDetailsExpansionBlock",""],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel mt-1 mb-2","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","mt-1","mb-2"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"font-bold-500","mb-1"],[1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.YNc(11,fu,1,0,"ng-container",9),A.TgZ(12,"div",10)(13,"mat-form-field",11)(14,"input",12,13),A.NdJ("ngModelChange",function(CA){return o.requestedAmount=CA})("keyup",function(){return o.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,hu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11)(20,"input",16,17),A.NdJ("ngModelChange",function(CA){return o.feeRate=CA})("keyup",function(){return o.calculateFee()}),A.qZA(),A.TgZ(22,"span",18),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,Eu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11)(26,"input",19,20),A.NdJ("ngModelChange",function(CA){return o.localAmount=CA}),A.qZA(),A.TgZ(28,"mat-hint"),A._uU(29),A.ALo(30,"number"),A.qZA(),A.TgZ(31,"span",14),A._uU(32," Sats "),A.qZA(),A.YNc(33,wu,2,0,"mat-error",15),A.YNc(34,Cu,2,0,"mat-error",15),A.YNc(35,Qu,2,1,"mat-error",15),A.qZA()(),A.TgZ(36,"div",21)(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA()(),A.YNc(40,Mu,3,2,"div",22),A.TgZ(41,"div",23)(42,"button",24),A.NdJ("click",function(){return o.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",25),A.NdJ("click",function(){return o.onOpenChannel()}),A._uU(45,"Execute"),A.qZA()()()()()(),A.YNc(46,Tu,1,1,"ng-template",null,26,A.W1O)),2&t){const U=A.MAs(15),CA=A.MAs(21),it=A.MAs(27),Dt=A.MAs(47);A.xp6(5),A.Oqu(o.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",Dt),A.xp6(3),A.Q6J("ngModel",o.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==U.errors?null:U.errors.required),A.xp6(2),A.Q6J("ngModel",o.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==CA.errors?null:CA.errors.required),A.xp6(2),A.Q6J("ngModel",o.localAmount)("step",1e4)("min",2e4)("max",o.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,o.totalBalance-(o.localAmount?o.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==it.errors?null:it.errors.required),A.xp6(1),A.Q6J("ngIf",null==it.errors?null:it.errors.min),A.xp6(1),A.Q6J("ngIf",null==it.errors?null:it.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,o.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,JA._Y,JA.JL,JA.F,Bt.tP,P.KE,H.Nt,JA.wV,JA.qQ,JA.Fj,b.q,k.h,JA.Q7,JA.JJ,JA.On,P.R9,Bt.O5,P.TO,JA.Fd,Hr.F,P.bx,e.BN,cr.ib,cr.yz,cr.yK,sA.d,DA.BZ,nt.YE,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,DA.as,DA.XQ,DA.nj,DA.Gk],pipes:[Bt.JJ,Bt.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();var _l=Ut(6688);function Nu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function Uu(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Pu(r,m){1&r&&A._UZ(0,"mat-progress-bar",44)}function Ru(r,m){1&r&&(A.TgZ(0,"th",45),A._uU(1," Alias "),A.qZA())}function Lu(r,m){if(1&r&&(A.TgZ(0,"mat-chip",49),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.hij(" ","tor"===t?"Tor":"ipv"===t?"Clearnet":t," ")}}const zu=function(r){return{"max-width":r}};function bu(r,m){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.TgZ(2,"mat-chip-list",47),A.YNc(3,Lu,2,1,"mat-chip",48),A.qZA()()),2&r){const t=m.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(3,zu,o.screenSize===o.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias," "),A.xp6(2),A.Q6J("ngForOf",t.address_types)}}function Gu(r,m){1&r&&(A.TgZ(0,"th",50),A._uU(1," Capacity/Channels "),A.qZA())}function Hu(r,m){if(1&r&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t?null:t.nodeCapacity)/1e8,"1.0-2")," BTC / ",A.xi3(3,5,null==t?null:t.channelCount,"1.0-0")," ")}}function Ju(r,m){1&r&&(A.TgZ(0,"th",50),A._uU(1," Lease Fee "),A.qZA())}function Ou(r,m){if(1&r&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function ku(r,m){1&r&&(A.TgZ(0,"th",50),A._uU(1," Routing Fee "),A.qZA())}function ju(r,m){if(1&r&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,1e3*(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function Ku(r,m){1&r&&(A.TgZ(0,"th",52),A._uU(1," Channel Opening Fee "),A.qZA())}function Vu(r,m){if(1&r&&(A.TgZ(0,"td",51)(1,"span",53),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Wu(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",54)(1,"div",55)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",57),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Zu(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",58)(1,"div",59)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",57),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(CA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",57),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(CA)}),A._uU(7,"Open Channel"),A.qZA(),A.TgZ(8,"mat-option",57),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(CA,"LN")}),A._uU(9,"View on Lnrouter"),A.qZA(),A.TgZ(10,"mat-option",57),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(CA,"AM")}),A._uU(11,"View on Amboss"),A.qZA()()()()}}function Xu(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function qu(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function _u(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function $u(r,m){if(1&r&&(A.TgZ(0,"td",60),A.YNc(1,Xu,2,0,"p",15),A.YNc(2,qu,2,0,"p",15),A.YNc(3,_u,2,1,"p",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Af=function(r){return{"display-none":r}};function tf(r,m){if(1&r&&A._UZ(0,"tr",61),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Af,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function ef(r,m){1&r&&A._UZ(0,"tr",62)}function nf(r,m){1&r&&A._UZ(0,"tr",63)}const rf=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},af=function(){return["no_lqNode"]};let of=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.logger=t,this.store=o,this.dataService=U,this.commonService=CA,this.rtlEffects=it,this.decimalPipe=Dt,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,this.faUsers=h.FVb,this.totalBalance=0,this.channelAmount=1e5,this.channelOpeningFeeRate=10,this.nodeCapacity=5e5,this.channelCount=5,this.liquidityNodesData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus={status:a.Bn.INITIATED},this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need on the channel opened to your node \n 2. Channel opening fee rate - Rate in Sats/vByte that you are willing to pay to open the channel to you",this.nodesTooltipMsg="These nodes are advertising their liquidity offering on the network.\nYou should pay attention to the following aspects to evaluate each node offer: \n- The total bitcoin deployed on the node, the more the better\n",this.nodesTooltipMsg=this.nodesTooltipMsg+"- The number of channels open on the node, the more the better\n- The channel open fee which the node will charge from you\n- The routing fee which the node will charge on the payments, the lesser the better\n- The reliability of the node, ideally uptime. Refer to the information being provided by the node explorers",this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","channelOpeningFee","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"])}ngOnInit(){(0,Ea.a)([this.store.select(B.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,o])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t),o&&!o.length&&(o=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(o)),this.apiCallStatus.status=a.Bn.COMPLETED,o.forEach(U=>{var CA;U.address_types=Array.from(new Set(null===(CA=U.addresses)||void 0===CA?void 0:CA.reduce((Dt,Ht)=>{var ze,$e,ee;return((null===(ze=Ht.type)||void 0===ze?void 0:ze.includes("ipv"))||(null===($e=Ht.type)||void 0===$e?void 0:$e.includes("tor")))&&Dt.push(null===(ee=Ht.type)||void 0===ee?void 0:ee.substring(0,3)),Dt},[])))}),this.liquidityNodesData=o.filter(U=>U.nodeid!==this.information.id),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:t=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(t)),this.apiCallStatus.status=a.Bn.ERROR,this.errorMessage=JSON.stringify(t)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(t=>{t.option_will_fund&&(t.channelOpeningFee=+(t.option_will_fund.lease_fee_base_msat||0)/1e3+this.channelAmount*+(t.option_will_fund.lease_fee_basis||0)/1e4+ +(t.option_will_fund.funding_weight||0)/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}applyFilter(){this.liquidityNodes.filter=this.selFilter.trim().toLowerCase()}loadLiqNodesTable(t){this.liquidityNodes=new DA.by([...t]),this.liquidityNodes.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.liquidityNodes.sort=this.sort,this.liquidityNodes.paginator=this.paginator,this.sort&&this.sort.sort({id:"channelOpeningFee",start:"asc",disableClear:!0}),this.liquidityNodes.filterPredicate=(o,U)=>{var CA,it,Dt,Ht,ze,$e,ee,Ve;return((o.alias?o.alias.toLocaleLowerCase():"")+(o.channelOpeningFee?o.channelOpeningFee+" Sats":"")+((null===(CA=o.option_will_fund)||void 0===CA?void 0:CA.lease_fee_base_msat)?(null===(it=o.option_will_fund)||void 0===it?void 0:it.lease_fee_base_msat)/1e3+" Sats":"")+((null===(Dt=o.option_will_fund)||void 0===Dt?void 0:Dt.lease_fee_basis)?this.decimalPipe.transform((null===(Ht=o.option_will_fund)||void 0===Ht?void 0:Ht.lease_fee_basis)/100,"1.2-2")+"%":"")+((null===(ze=o.option_will_fund)||void 0===ze?void 0:ze.channel_fee_max_base_msat)?(null===($e=o.option_will_fund)||void 0===$e?void 0:$e.channel_fee_max_base_msat)/1e3+" Sats":"")+((null===(ee=o.option_will_fund)||void 0===ee?void 0:ee.channel_fee_max_proportional_thousandths)?1e3*(null===(Ve=o.option_will_fund)||void 0===Ve?void 0:Ve.channel_fee_max_proportional_thousandths)+" ppm":"")+(o.address_types?o.address_types.reduce((kn,Bi)=>kn+("tor"===Bi?" tor":"ipv"===Bi?" clearnet":" "+Bi.toLowerCase()),""):"")).includes(U)},this.applyFilter()}viewLeaseOn(t,o){"LN"===o?window.open("https://lnrouter.app/node/"+t.nodeid,"_blank"):"AM"===o&&window.open("https://amboss.space/node/"+t.nodeid,"_blank")}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{node:t,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channelOpeningFeeRate,localAmount:2e4},component:Su}}}))}onViewLeaseInfo(t){var o,U,CA,it,Dt,Ht,ze;const $e=null===(o=t.addresses)||void 0===o?void 0:o.reduce((mr,kn)=>(kn.address&&kn.address.length>40&&(kn.address=kn.address.substring(0,39)+"..."),mr.concat(JSON.stringify(kn).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]),ee=[];if(t.features&&""!==t.features.trim()){const mr=parseInt(t.features,16);a.Df.forEach(kn=>{mr&(1<{mr&&this.onOpenChannel(t)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.nodeCapacity=0,this.channelCount=0}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(LA.D),A.Y36(C.v),A.Y36(yA.V),A.Y36(Bt.JJ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:62,vars:22,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],[1,"padding-gap-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["formAsk","ngForm"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start start",1,"page-sub-title-container","mt-1"],["fxFlex","30"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxFlex","34"],["autoFocus","","matInput","","placeholder","Channel Amount (Sats)","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Channel Opening Fee Rate (Sats/vByte)","name","channelOpeningFeeRate","type","number","step","10","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","padding-gap-x","mt-2"],["fxFlex","30","fxFlex.gt-xs","70"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","fxLayout","row","fxLayoutAlign","start center",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacityChannels"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","leaseFee"],["matColumnDef","routingFee"],["matColumnDef","channelOpeningFee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","","fxLayout","row","fxLayoutAlign","start center",3,"ngStyle"],["aria-label","Address Types",1,"ml-half"],["color","primary","selected","",4,"ngFor","ngForOf"],["color","primary","selected",""],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Liquidity Ads"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"form",6,7)(10,"div",8),A._UZ(11,"fa-icon",9),A.TgZ(12,"span"),A._uU(13,"Ads should be supplemented with additional research of the nodes, before buying liquidity."),A.qZA()(),A.TgZ(14,"div",10)(15,"div",11)(16,"span",2),A._uU(17," Liquidity Ask "),A.TgZ(18,"mat-icon",12),A._uU(19,"info_outline"),A.qZA()()(),A.TgZ(20,"mat-form-field",13)(21,"input",14),A.NdJ("ngModelChange",function(CA){return o.channelAmount=CA})("keyup",function(){return o.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,Nu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13)(24,"input",16),A.NdJ("ngModelChange",function(CA){return o.channelOpeningFeeRate=CA})("keyup",function(){return o.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,Uu,2,0,"mat-error",15),A.qZA()()(),A.TgZ(26,"div",17)(27,"div",18),A._UZ(28,"fa-icon",1),A.TgZ(29,"span",2),A._uU(30,"Liquidity Providing Peers"),A.qZA()(),A.TgZ(31,"mat-form-field",11)(32,"div",19)(33,"input",20),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()()(),A.TgZ(34,"div",21),A.YNc(35,Pu,1,0,"mat-progress-bar",22),A.TgZ(36,"table",23,24),A.ynx(38,25),A.YNc(39,Ru,2,0,"th",26),A.YNc(40,bu,4,5,"td",27),A.BQk(),A.ynx(41,28),A.YNc(42,Gu,2,0,"th",29),A.YNc(43,Hu,4,8,"td",30),A.BQk(),A.ynx(44,31),A.YNc(45,Ju,2,0,"th",29),A.YNc(46,Ou,4,8,"td",30),A.BQk(),A.ynx(47,32),A.YNc(48,ku,2,0,"th",29),A.YNc(49,ju,4,8,"td",30),A.BQk(),A.ynx(50,33),A.YNc(51,Ku,2,0,"th",34),A.YNc(52,Vu,4,4,"td",30),A.BQk(),A.ynx(53,35),A.YNc(54,Wu,6,0,"th",36),A.YNc(55,Zu,12,0,"td",37),A.BQk(),A.ynx(56,38),A.YNc(57,$u,4,3,"td",39),A.BQk(),A.YNc(58,tf,1,3,"tr",40),A.YNc(59,ef,1,0,"tr",41),A.YNc(60,nf,1,0,"tr",42),A.qZA()(),A._UZ(61,"mat-paginator",43),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faBullhorn),A.xp6(10),A.Q6J("icon",o.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",o.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",o.channelAmount),A.xp6(1),A.Q6J("ngIf",!o.channelAmount),A.xp6(2),A.Q6J("ngModel",o.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!o.channelOpeningFeeRate),A.xp6(3),A.Q6J("icon",o.faUsers),A.xp6(5),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.liquidityNodes)("ngClass",A.VKq(19,rf,""!==o.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(21,af)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,ft.yH,JA._Y,JA.JL,JA.F,p.Hw,eA.gM,P.KE,H.Nt,JA.wV,JA.Fj,k.h,JA.Q7,JA.JJ,JA.On,Bt.O5,P.TO,q.$V,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,_l.qn,Bt.sg,_l.HS,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),sf=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(t,o){1&t&&A._UZ(0,"router-outlet")},directives:[Vt.lC],styles:[""]}),r})();function lf(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().activeTab=CA}),A._uU(1),A.qZA()}if(2&r){const t=m.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeTab.link===t.link),A.xp6(1),A.Oqu(t.name)}}let cf=(()=>{class r{constructor(t){this.router=t,this.faHandshake=h.yOe,this.links=[{link:"peers",name:"Peers"},{link:"psout",name:"Swap Out"},{link:"psin",name:"Swap In"},{link:"pscancelled",name:"Swap Cancelled"}],this.activeTab=this.links[0],this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=t||this.links[0],this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const U=this.links.find(CA=>o.urlAfterRedirects.includes(CA.link));this.activeTab=U||this.links[0]}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-peerswap"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Peerswap"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,lf,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faHandshake),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,Et.BU,Bt.sg,Et.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),r})();function gf(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Bf(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.sPeer.local_balance,".")}}function uf(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.swapOutError)}}function ff(r,m){if(1&r&&(A.TgZ(0,"div",20),A._UZ(1,"fa-icon",21),A.YNc(2,uf,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.swapOutError)}}let hf=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.dialogRef=t,this.data=o,this.store=U,this.decimalPipe=CA,this.commonService=it,this.actions=Dt,this.faExclamationTriangle=h.eHv,this.selNode={},this.sPeer=null,this.swapAmountHint="",this.swapOutError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.actions.pipe((0,i.R)(this.unSubs[1]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapout"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.swapOutError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onExecuteSwapout(){var t;if(this.swapOutError="",!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,wt.p7)({payload:{amountSats:this.swapAmount,shortChannelId:null===(t=this.sPeer)||void 0===t?void 0:t.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapOutError=""}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.swapAmountHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.swapAmountHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-swap-out-modal"]],decls:33,vars:14,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","5","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapOutForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["matInput","","autoFocus","","placeholder","Amount","type","number","tabindex","2","name","swapAmt","required","",3,"ngModel","step","min","max","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","4",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Initiate a Swapout"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),A._uU(12),A.qZA(),A.TgZ(13,"mat-form-field",10),A._UZ(14,"input",11),A.qZA(),A.TgZ(15,"mat-form-field",1)(16,"input",12,13),A.NdJ("ngModelChange",function(CA){return o.swapAmount=CA})("keyup",function(){return o.onAmountChange()}),A.qZA(),A.TgZ(18,"span",14),A._uU(19," Sats "),A.qZA(),A.YNc(20,gf,2,0,"mat-error",15),A.YNc(21,Bf,2,1,"mat-error",15),A.TgZ(22,"mat-hint"),A._uU(23),A.ALo(24,"number"),A._UZ(25,"br"),A._uU(26),A.qZA()(),A.YNc(27,ff,3,2,"div",16),A.TgZ(28,"div",17)(29,"button",18),A.NdJ("click",function(){return o.resetData()}),A._uU(30,"Clear Field"),A.qZA(),A.TgZ(31,"button",19),A.NdJ("click",function(){return o.onExecuteSwapout()}),A._uU(32,"Execute"),A.qZA()()()()()()),2&t){const U=A.MAs(17);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.hij("Swapout with ",null==o.sPeer?null:o.sPeer.alias,""),A.xp6(2),A.Q6J("value",o.sPeer.short_channel_id),A.xp6(2),A.Q6J("ngModel",o.swapAmount)("step",100)("min",1)("max",o.sPeer.local_balance),A.xp6(4),A.Q6J("ngIf",null==U.errors?null:U.errors.required),A.xp6(1),A.Q6J("ngIf",null==U.errors?null:U.errors.max),A.xp6(2),A.hij("Remaining Local: ",A.lcZ(24,12,o.sPeer.local_balance-(o.swapAmount?o.swapAmount:0)),""),A.xp6(3),A.Oqu(o.swapAmountHint),A.xp6(1),A.Q6J("ngIf",""!==o.swapOutError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.wV,JA.qQ,JA.Fd,JA.Fj,b.q,Hr.F,k.h,JA.Q7,JA.JJ,JA.On,P.R9,Bt.O5,P.TO,P.bx,e.BN],pipes:[Bt.JJ],styles:[""]}),r})();function Ef(r,m){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function wf(r,m){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.sPeer.remote_balance,".")}}function Cf(r,m){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.swapInError)}}function Qf(r,m){if(1&r&&(A.TgZ(0,"div",20),A._UZ(1,"fa-icon",21),A.YNc(2,Cf,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.swapInError)}}let df=(()=>{class r{constructor(t,o,U,CA,it,Dt){this.dialogRef=t,this.data=o,this.store=U,this.decimalPipe=CA,this.commonService=it,this.actions=Dt,this.faExclamationTriangle=h.eHv,this.selNode={},this.sPeer=null,this.swapAmountHint="",this.swapInError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(B.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.actions.pipe((0,i.R)(this.unSubs[1]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapin"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.swapInError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onExecuteSwapin(){var t;if(this.swapInError="",!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,wt.pc)({payload:{amountSats:this.swapAmount,shortChannelId:null===(t=this.sPeer)||void 0===t?void 0:t.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapInError=""}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.swapAmountHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.swapAmountHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-swap-in-modal"]],decls:33,vars:14,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","5","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapInForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["matInput","","autoFocus","","placeholder","Amount","type","number","tabindex","2","name","swapAmt","required","",3,"ngModel","step","min","max","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","4",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Initiate a Swapin"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),A._uU(12),A.qZA(),A.TgZ(13,"mat-form-field",10),A._UZ(14,"input",11),A.qZA(),A.TgZ(15,"mat-form-field",1)(16,"input",12,13),A.NdJ("ngModelChange",function(CA){return o.swapAmount=CA})("keyup",function(){return o.onAmountChange()}),A.qZA(),A.TgZ(18,"span",14),A._uU(19," Sats "),A.qZA(),A.YNc(20,Ef,2,0,"mat-error",15),A.YNc(21,wf,2,1,"mat-error",15),A.TgZ(22,"mat-hint"),A._uU(23),A.ALo(24,"number"),A._UZ(25,"br"),A._uU(26),A.qZA()(),A.YNc(27,Qf,3,2,"div",16),A.TgZ(28,"div",17)(29,"button",18),A.NdJ("click",function(){return o.resetData()}),A._uU(30,"Clear Field"),A.qZA(),A.TgZ(31,"button",19),A.NdJ("click",function(){return o.onExecuteSwapin()}),A._uU(32,"Execute"),A.qZA()()()()()()),2&t){const U=A.MAs(17);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.hij("Swapin with ",null==o.sPeer?null:o.sPeer.alias,""),A.xp6(2),A.Q6J("value",o.sPeer.short_channel_id),A.xp6(2),A.Q6J("ngModel",o.swapAmount)("step",100)("min",1)("max",o.sPeer.remote_balance),A.xp6(4),A.Q6J("ngIf",null==U.errors?null:U.errors.required),A.xp6(1),A.Q6J("ngIf",null==U.errors?null:U.errors.max),A.xp6(2),A.hij("Remaining Local: ",A.lcZ(24,12,o.sPeer.remote_balance-(o.swapAmount?o.swapAmount:0)),""),A.xp6(3),A.Oqu(o.swapAmountHint),A.xp6(1),A.Q6J("ngIf",""!==o.swapInError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,JA._Y,JA.JL,JA.F,P.KE,H.Nt,JA.wV,JA.qQ,JA.Fd,JA.Fj,b.q,Hr.F,k.h,JA.Q7,JA.JJ,JA.On,P.R9,Bt.O5,P.TO,P.bx,e.BN],pipes:[Bt.JJ],styles:[""]}),r})();function Mf(r,m){1&r&&A._UZ(0,"mat-progress-bar",31)}function pf(r,m){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Short Channel ID"),A.qZA())}function mf(r,m){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.short_channel_id)}}function If(r,m){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Node Alias"),A.qZA())}function vf(r,m){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function Df(r,m){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Node ID"),A.qZA())}const yf=function(r){return{"max-width":r}};function xf(r,m){if(1&r&&(A.TgZ(0,"td",33)(1,"span",34)(2,"span",35),A._uU(3),A.qZA()()()),2&r){const t=m.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,yf,o.screenSize===o.screenSizeEnum.XS?"10rem":"25rem")),A.xp6(2),A.Oqu(null==t?null:t.nodeid)}}function Ff(r,m){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Swaps Allowed"),A.qZA())}function Yf(r,m){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=m.$implicit;A.xp6(1),A.Oqu(null!=t&&t.swaps_allowed?"Allowed":"Denied")}}function Tf(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Local Balance (Sats)"),A.qZA())}function Sf(r,m){if(1&r&&(A.TgZ(0,"td",33)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.local_balance))}}function Nf(r,m){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Remote Balance (Sats)"),A.qZA())}function Uf(r,m){if(1&r&&(A.TgZ(0,"td",33)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=m.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.remote_balance))}}function Pf(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const Rf=function(r){return{"px-3":r}};function Lf(r,m){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"div",43)(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onSwapPeerClick(CA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onSwapOut(CA)}),A._uU(7,"Swap Out"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const CA=A.CHM(t).$implicit;return A.oxw().onSwapIn(CA)}),A._uU(9,"Swap In"),A.qZA()()()()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Rf,t.screenSize!==t.screenSizeEnum.XS))}}function zf(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1," No peer available for swap."),A.qZA())}function bf(r,m){1&r&&(A.TgZ(0,"p"),A._uU(1," Getting peers for swap..."),A.qZA())}function Gf(r,m){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.hij(" ",t.errorMessage,"")}}function Hf(r,m){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,zf,2,0,"p",46),A.YNc(2,bf,2,0,"p",46),A.YNc(3,Gf,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Jf=function(r){return{"display-none":r}};function Of(r,m){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Jf,(null==t.swapPeers?null:t.swapPeers.data)&&(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)>0))}}function kf(r,m){1&r&&A._UZ(0,"tr",48)}function jf(r,m){1&r&&A._UZ(0,"tr",49)}function Kf(r,m){if(1&r&&A._UZ(0,"mat-paginator",50),2&r){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}const Vf=function(r){return{"error-border":r}},Wf=function(){return["no_swap_peer"]};let Zf=(()=>{class r{constructor(t,o,U,CA,it){this.logger=t,this.commonService=o,this.store=U,this.datePipe=CA,this.router=it,this.faPeopleGroup=h.iOm,this.displayedColumns=[],this.totalSwapPeers=0,this.peersData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","short_channel_id","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","swaps_allowed","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","nodeid","swaps_allowed","local_balance","remote_balance","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,wt.$2)()),this.store.select(B.Ho).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalSwapPeers=t.totalSwapPeers,this.peersData=t.swapPeers||[],this.peersData.length>0&&this.sort&&this.paginator&&this.loadSwapPeersTable(this.peersData),this.logger.info(t)})}onSwapPeerClick(t){var o,U,CA,it,Dt,Ht,ze,$e,ee;this.logger.warn(t);const Ve=[[{key:"nodeid",value:t.nodeid,title:"Node Id",width:100,type:a.Gi.STRING}],[{key:"alias",value:t.alias,title:"Alias",width:50,type:a.Gi.STRING},{key:"short_channel_id",value:t.short_channel_id,title:"Short Channel ID",width:50,type:a.Gi.STRING}],[{key:"local_balance",value:t.local_balance,title:"Local Balance (Sats)",width:50,type:a.Gi.NUMBER},{key:"remote_balance",value:t.remote_balance,title:"Remote Balance (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"total_fee_paid",value:t.total_fee_paid,title:"Total Fee Paid (Sats)",width:40,type:a.Gi.NUMBER},{key:"swaps_allowed",value:t.swaps_allowed?"Allowed":"Denied",title:"Swaps Allowed",width:30,type:a.Gi.STRING},{key:"total_channels",value:null===(o=t.channels)||void 0===o?void 0:o.length,title:"Channels Opened",width:30,type:a.Gi.NUMBER}],[{key:"sent_total_swaps_out",value:null===(U=t.sent)||void 0===U?void 0:U.total_swaps_out,title:"Swap Out Sent",width:25,type:a.Gi.NUMBER},{key:"sent_total_swaps_in",value:null===(CA=t.sent)||void 0===CA?void 0:CA.total_swaps_in,title:"Swap In Sent",width:25,type:a.Gi.NUMBER},{key:"sent_total_sats_swapped_out",value:null===(it=t.sent)||void 0===it?void 0:it.total_sats_swapped_out,title:"Swapped Out Sent (Sats)",width:25,type:a.Gi.NUMBER},{key:"sent_total_sats_swapped_in",value:null===(Dt=t.sent)||void 0===Dt?void 0:Dt.total_sats_swapped_in,title:"Swapped In Sent (Sats)",width:25,type:a.Gi.NUMBER}],[{key:"received_total_swaps_out",value:null===(Ht=t.received)||void 0===Ht?void 0:Ht.total_swaps_out,title:"Swap Out Received",width:25,type:a.Gi.NUMBER},{key:"received_total_swaps_in",value:null===(ze=t.received)||void 0===ze?void 0:ze.total_swaps_in,title:"Swap In Received",width:25,type:a.Gi.NUMBER},{key:"received_total_sats_swapped_out",value:null===($e=t.received)||void 0===$e?void 0:$e.total_sats_swapped_out,title:"Swapped Out Received(Sats)",width:25,type:a.Gi.NUMBER},{key:"received_total_sats_swapped_in",value:null===(ee=t.received)||void 0===ee?void 0:ee.total_sats_swapped_in,title:"Swapped In Received (Sats)",width:25,type:a.Gi.NUMBER}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Swap Peer Information",message:Ve}}}))}onSwapOut(t){this.store.dispatch((0,kA.qR)({payload:{data:{swapPeer:t,component:hf}}}))}onSwapIn(t){this.store.dispatch((0,kA.qR)({payload:{data:{swapPeer:t,component:df}}}))}loadSwapPeersTable(t){this.swapPeers=new DA.by([...t]),this.swapPeers.sort=this.sort,this.swapPeers.sortingDataAccessor=(o,U)=>o[U]&&isNaN(o[U])?o[U].toLocaleLowerCase():o[U]?+o[U]:null,this.swapPeers.filterPredicate=(o,U)=>{const CA=(o.nodeid?o.nodeid:"")+(o.alias?o.alias.toLowerCase():"")+(o.swaps_allowed?"allowed":"denied")+(o.short_channel_id?o.short_channel_id:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"");return(null==CA?void 0:CA.includes(U))||!1},this.swapPeers.paginator=this.paginator,this.applyFilter(),this.logger.info(this.swapPeers)}onDownloadCSV(){this.swapPeers&&this.swapPeers.data&&this.swapPeers.data.length>0&&this.commonService.downloadFile(this.swapPeers.data,"Swap Peers")}applyFilter(){this.swapPeers.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-peerswap-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(nt.YE,5),A.Gf(WA.NW,5)),2&t){let U;A.iGM(U=A.CRH())&&(o.sort=U.first),A.iGM(U=A.CRH())&&(o.paginator=U.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Peers")}])],decls:41,vars:14,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxFlex","100",1,"page-sub-title-container","padding-gap-large","pb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","nodeid"],["matColumnDef","swaps_allowed"],["matColumnDef","local_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_swap_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2),A._UZ(3,"fa-icon",3),A.TgZ(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.TgZ(8,"mat-form-field",7)(9,"input",8),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(CA){return o.selFilter=CA}),A.qZA()()()(),A.TgZ(10,"div",9),A.YNc(11,Mf,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,pf,2,0,"th",14),A.YNc(16,mf,2,1,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,If,2,0,"th",14),A.YNc(19,vf,2,1,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,Df,2,0,"th",14),A.YNc(22,xf,4,4,"td",15),A.BQk(),A.ynx(23,18),A.YNc(24,Ff,2,0,"th",14),A.YNc(25,Yf,2,1,"td",15),A.BQk(),A.ynx(26,19),A.YNc(27,Tf,2,0,"th",20),A.YNc(28,Sf,4,3,"td",15),A.BQk(),A.ynx(29,21),A.YNc(30,Nf,2,0,"th",20),A.YNc(31,Uf,4,3,"td",15),A.BQk(),A.ynx(32,22),A.YNc(33,Pf,6,0,"th",23),A.YNc(34,Lf,10,3,"td",24),A.BQk(),A.ynx(35,25),A.YNc(36,Hf,4,3,"td",26),A.BQk(),A.YNc(37,Of,1,3,"tr",27),A.YNc(38,kf,1,0,"tr",28),A.YNc(39,jf,1,0,"tr",29),A.qZA()(),A.YNc(40,Kf,1,3,"mat-paginator",30),A.qZA()),2&t&&(A.xp6(3),A.Q6J("icon",o.faPeopleGroup),A.xp6(2),A.hij("Number of peers enabled with Peerswap: ",o.totalSwapPeers,""),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.swapPeers)("ngClass",A.VKq(11,Vf,""!==o.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(13,Wf)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,ft.yH,e.BN,P.KE,H.Nt,JA.Fj,JA.JJ,JA.On,q.$V,Bt.O5,T.pW,DA.BZ,nt.YE,Bt.mk,Y.oO,DA.w1,DA.fO,DA.ge,nt.nU,DA.Dz,DA.ev,Bt.PC,Y.Zl,QA.gD,QA.$L,wA.ey,DA.mD,DA.yh,DA.Ke,DA.Q2,DA.as,DA.XQ,DA.nj,DA.Gk,WA.NW],pipes:[Bt.JJ],styles:[".mat-column-nodeid[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-nodeid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),Xf=(()=>{class r{constructor(t){this.logger=t,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.logger.info("Peerswap Out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-peerswap-cancelled"]],decls:2,vars:0,template:function(t,o){1&t&&(A.TgZ(0,"h1"),A._uU(1,"Peerswaps Cancelled"),A.qZA())},styles:[""]}),r})(),qf=(()=>{class r{constructor(t){this.logger=t,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.logger.info("Peerswap Out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-peer-swaps-in"]],decls:2,vars:0,template:function(t,o){1&t&&(A.TgZ(0,"h1"),A._uU(1,"Peerswaps In"),A.qZA())},styles:[""]}),r})();const Ah=Vt.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:No,canActivate:[De.eQ]},{path:"onchain",component:Cs,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:i0,canActivate:[De.eQ]},{path:"send/:selTab",component:$r,data:{sweepAll:!1},canActivate:[De.eQ]},{path:"sweep/:selTab",component:$r,data:{sweepAll:!0},canActivate:[De.eQ]}]},{path:"connections",component:ya,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:ti,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:ei,canActivate:[De.eQ]},{path:"pending",component:Cl,canActivate:[De.eQ]}]},{path:"peers",component:L,data:{sweepAll:!1},canActivate:[De.eQ]}]},{path:"liquidityads",component:of,canActivate:[De.eQ]},{path:"transactions",component:ps,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:ca,canActivate:[De.eQ]},{path:"invoices",component:UA,canActivate:[De.eQ]},{path:"offers",component:CB,canActivate:[De.eQ]},{path:"offrBookmarks",component:HB,canActivate:[De.eQ]}]},{path:"messages",component:qi,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:we,canActivate:[De.eQ]},{path:"verify",component:On,canActivate:[De.eQ]}]},{path:"routing",component:Is,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:sa,canActivate:[De.eQ]},{path:"failedtransactions",component:Dc,canActivate:[De.eQ]},{path:"localfail",component:Bu,canActivate:[De.eQ]},{path:"routingpeers",component:Qg,canActivate:[De.eQ]}]},{path:"reports",component:Mg,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Fg,canActivate:[De.eQ]},{path:"transactions",component:zg,canActivate:[De.eQ]}]},{path:"graph",component:Hg,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Os,canActivate:[De.eQ]},{path:"queryroutes",component:qe,canActivate:[De.eQ]}]},{path:"services",component:sf,canActivate:[De.eQ],children:[{path:"peerswap",component:cf,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"peers"},{path:"peers",component:Zf,canActivate:[De.eQ]},{path:"psout",component:(()=>{class r{constructor(t){this.logger=t,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.logger.info("Peerswap Out")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-peer-swaps-out"]],decls:2,vars:0,template:function(t,o){1&t&&(A.TgZ(0,"h1"),A._uU(1,"Peerswaps Out"),A.qZA())},styles:[""]}),r})(),canActivate:[De.eQ]},{path:"psin",component:qf,canActivate:[De.eQ]},{path:"pscancelled",component:Xf,canActivate:[De.eQ]}]}]},{path:"rates",component:r0,canActivate:[De.eQ]},{path:"**",component:bg.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var th=Ut(8750);let eh=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[De.eQ],imports:[[Bt.ez,th.m,Ah]]}),r})()},4641:function(ui,Nr,Ut){var Bt=Ut(7757);"undefined"!=typeof self&&self,ui.exports=function(){var Vt={9282:function(T,I,n){"use strict";var c=n(4155);function i($){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(hA){return typeof hA}:function(hA){return hA&&"function"==typeof Symbol&&hA.constructor===Symbol&&hA!==Symbol.prototype?"symbol":typeof hA})($)}var v,D,h=n(2136).codes,a=h.ERR_AMBIGUOUS_ARGUMENT,B=h.ERR_INVALID_ARG_TYPE,E=h.ERR_INVALID_ARG_VALUE,u=h.ERR_INVALID_RETURN_VALUE,C=h.ERR_MISSING_ARGS,e=n(5961),g=n(9539).inspect,w=n(9539).types,Q=w.isPromise,p=w.isRegExp,Y=Object.assign?Object.assign:n(8091).assign,y=Object.is?Object.is:n(609);function z(){var $=n(9158);v=$.isDeepEqual,D=$.isDeepStrictEqual}var q=!1,BA=T.exports=xA,pA={};function lA($){throw $.message instanceof Error?$.message:new e($)}function gA($,W,hA,vA){if(!hA){var nA=!1;if(0===W)nA=!0,vA="No value argument passed to `assert.ok()`";else if(vA instanceof Error)throw vA;var EA=new e({actual:hA,expected:!0,message:vA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function xA(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];gA.apply(void 0,[xA,W.length].concat(W))}BA.fail=function cA($,W,hA,vA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===q&&(q=!0,(c.emitWarning?c.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===EA&&(vA="!=")),hA instanceof Error)throw hA;var st={actual:$,expected:W,operator:void 0===vA?"fail":vA,stackStartFn:nA||cA};void 0!==hA&&(st.message=hA);var TA=new e(st);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},BA.AssertionError=e,BA.ok=xA,BA.equal=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");W!=hA&&lA({actual:W,expected:hA,message:vA,operator:"==",stackStartFn:$})},BA.notEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");W==hA&&lA({actual:W,expected:hA,message:vA,operator:"!=",stackStartFn:$})},BA.deepEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)||lA({actual:W,expected:hA,message:vA,operator:"deepEqual",stackStartFn:$})},BA.notDeepEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)&&lA({actual:W,expected:hA,message:vA,operator:"notDeepEqual",stackStartFn:$})},BA.deepStrictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D(W,hA)||lA({actual:W,expected:hA,message:vA,operator:"deepStrictEqual",stackStartFn:$})},BA.notDeepStrictEqual=function FA($,W,hA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D($,W)&&lA({actual:$,expected:W,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},BA.strictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");y(W,hA)||lA({actual:W,expected:hA,message:vA,operator:"strictEqual",stackStartFn:$})},BA.notStrictEqual=function $(W,hA,vA){if(arguments.length<2)throw new C("actual","expected");y(W,hA)&&lA({actual:W,expected:hA,message:vA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,hA,vA){var nA=this;(function s($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")})(this,$),hA.forEach(function(EA){EA in W&&(nA[EA]=void 0!==vA&&"string"==typeof vA[EA]&&p(W[EA])&&W[EA].test(vA[EA])?vA[EA]:W[EA])})};function MA($,W,hA,vA,nA,EA){if(!(hA in $)||!D($[hA],W[hA])){if(!vA){var GA=new _($,nA),et=new _(W,nA,$),st=new e({actual:GA,expected:et,operator:"deepStrictEqual",stackStartFn:EA});throw st.actual=$,st.expected=W,st.operator=EA.name,st}lA({actual:$,expected:W,message:vA,operator:EA.name,stackStartFn:EA})}}function uA($,W,hA,vA){if("function"!=typeof W){if(p(W))return W.test($);if(2===arguments.length)throw new B("expected",["Function","RegExp"],W);if("object"!==i($)||null===$){var nA=new e({actual:$,expected:W,message:hA,operator:"deepStrictEqual",stackStartFn:vA});throw nA.operator=vA.name,nA}var EA=Object.keys(W);if(W instanceof Error)EA.push("name","message");else if(0===EA.length)throw new E("error",W,"may not be an empty object");return void 0===v&&z(),EA.forEach(function(GA){"string"==typeof $[GA]&&p(W[GA])&&W[GA].test($[GA])||MA($,W,GA,hA,EA,vA)}),!0}return void 0!==W.prototype&&$ instanceof W||!Error.isPrototypeOf(W)&&!0===W.call({},$)}function dA($){if("function"!=typeof $)throw new B("fn","Function",$);try{$()}catch(W){return W}return pA}function SA($){return Q($)||null!==$&&"object"===i($)&&"function"==typeof $.then&&"function"==typeof $.catch}function bA($){return Promise.resolve().then(function(){var W;if("function"==typeof $){if(!SA(W=$()))throw new u("instance of Promise","promiseFn",W)}else{if(!SA($))throw new B("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return pA}).catch(function(hA){return hA})})}function XA($,W,hA,vA){if("string"==typeof hA){if(4===arguments.length)throw new B("error",["Object","Error","Function","RegExp"],hA);if("object"===i(W)&&null!==W){if(W.message===hA)throw new a("error/message",'The error message "'.concat(W.message,'" is identical to the message.'))}else if(W===hA)throw new a("error/message",'The error "'.concat(W,'" is identical to the message.'));vA=hA,hA=void 0}else if(null!=hA&&"object"!==i(hA)&&"function"!=typeof hA)throw new B("error",["Object","Error","Function","RegExp"],hA);if(W===pA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=vA?": ".concat(vA):".",lA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(W,hA,vA,$))throw W}function X($,W,hA,vA){if(W!==pA){if("string"==typeof hA&&(vA=hA,hA=void 0),!hA||uA(W,hA)){var nA=vA?": ".concat(vA):".";lA({actual:W,expected:hA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(nA,"\n")+'Actual message: "'.concat(W&&W.message,'"'),stackStartFn:$})}throw W}}function O(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];gA.apply(void 0,[O,W.length].concat(W))}BA.throws=function $(W){for(var hA=arguments.length,vA=new Array(hA>1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nAcA.length)&&(xA=cA.length),cA.substring(xA-gA.length,xA)===gA}var S="",F="",z="",P="",eA={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function q(cA){var gA=Object.keys(cA),xA=Object.create(Object.getPrototypeOf(cA));return gA.forEach(function(FA){xA[FA]=cA[FA]}),Object.defineProperty(xA,"message",{value:cA.message}),xA}function BA(cA){return y(cA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function pA(cA,gA,xA){var FA="",_="",MA=0,uA="",dA=!1,SA=BA(cA),bA=SA.split("\n"),XA=BA(gA).split("\n"),X=0,O="";if("strictEqual"===xA&&"object"===p(cA)&&"object"===p(gA)&&null!==cA&&null!==gA&&(xA="strictEqualObject"),1===bA.length&&1===XA.length&&bA[0]!==XA[0]){var $=bA[0].length+XA[0].length;if($<=10){if(!("object"===p(cA)&&null!==cA||"object"===p(gA)&&null!==gA||0===cA&&0===gA))return"".concat(eA[xA],"\n\n")+"".concat(bA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==xA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;bA[0][X]===XA[0][X];)X++;X>2&&(O="\n ".concat(function R(cA,gA){if(gA=Math.floor(gA),0==cA.length||0==gA)return"";var xA=cA.length*gA;for(gA=Math.floor(Math.log(gA)/Math.log(2));gA;)cA+=cA,gA--;return cA+cA.substring(0,xA-cA.length)}(" ",X),"^"),X=0)}}for(var hA=bA[bA.length-1],vA=XA[XA.length-1];hA===vA&&(X++<2?uA="\n ".concat(hA).concat(uA):FA=hA,bA.pop(),XA.pop(),0!==bA.length&&0!==XA.length);)hA=bA[bA.length-1],vA=XA[XA.length-1];var nA=Math.max(bA.length,XA.length);if(0===nA){var EA=SA.split("\n");if(EA.length>30)for(EA[26]="".concat(S,"...").concat(P);EA.length>27;)EA.pop();return"".concat(eA.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}X>3&&(uA="\n".concat(S,"...").concat(P).concat(uA),dA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,et=eA[xA]+"\n".concat(F,"+ actual").concat(P," ").concat(z,"- expected").concat(P),st=" ".concat(S,"...").concat(P," Lines skipped");for(X=0;X1&&X>2&&(TA>4?(_+="\n".concat(S,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(XA[X-2]),GA++),_+="\n ".concat(XA[X-1]),GA++),MA=X,FA+="\n".concat(z,"-").concat(P," ").concat(XA[X]),GA++;else if(XA.length1&&X>2&&(TA>4?(_+="\n".concat(S,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(bA[X-2]),GA++),_+="\n ".concat(bA[X-1]),GA++),MA=X,_+="\n".concat(F,"+").concat(P," ").concat(bA[X]),GA++;else{var at=XA[X],It=bA[X],mt=It!==at&&(!D(It,",")||It.slice(0,-1)!==at);mt&&D(at,",")&&at.slice(0,-1)===It&&(mt=!1,It+=","),mt?(TA>1&&X>2&&(TA>4?(_+="\n".concat(S,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(bA[X-2]),GA++),_+="\n ".concat(bA[X-1]),GA++),MA=X,_+="\n".concat(F,"+").concat(P," ").concat(It),FA+="\n".concat(z,"-").concat(P," ").concat(at),GA+=2):(_+=FA,FA="",(1===TA||0===X)&&(_+="\n ".concat(It),GA++))}if(GA>20&&X30)for(X[26]="".concat(S,"...").concat(P);X.length>27;)X.pop();FA=B(this,1===X.length?Q(gA).call(this,"".concat(XA," ").concat(X[0])):Q(gA).call(this,"".concat(XA,"\n\n").concat(X.join("\n"),"\n")))}else{var O=BA(dA),$="",W=eA[MA];"notDeepEqual"===MA||"notEqual"===MA?(O="".concat(eA[MA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(BA(SA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===MA||"equal"===MA?O="".concat(W,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(MA," ").concat($)),FA=B(this,Q(gA).call(this,"".concat(O).concat($)))}return Error.stackTraceLimit=bA,FA.generatedMessage=!_,Object.defineProperty(E(FA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),FA.code="ERR_ASSERTION",FA.actual=dA,FA.expected=SA,FA.operator=MA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",B(FA)}return function u(cA,gA){if("function"!=typeof gA&&null!==gA)throw new TypeError("Super expression must either be null or a function");cA.prototype=Object.create(gA&&gA.prototype,{constructor:{value:cA,writable:!0,configurable:!0}}),gA&&w(cA,gA)}(gA,cA),function a(cA,gA,xA){return gA&&h(cA.prototype,gA),xA&&h(cA,xA),cA}(gA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(FA,_){return y(this,function i(cA){for(var gA=1;gA2?"one of ".concat(Y," ").concat(p.slice(0,y-1).join(", "),", or ")+p[y-1]:2===y?"one of ".concat(Y," ").concat(p[0]," or ").concat(p[1]):"of ".concat(Y," ").concat(p[0])}return"of ".concat(Y," ").concat(String(p))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(p,Y,y){var d,v;if(void 0===u&&(u=n(9282)),u("string"==typeof p,"'name' must be a string"),"string"==typeof Y&&function g(p,Y,y){return p.substr(!y||y<0?0:+y,Y.length)===Y}(Y,"not ")?(d="must not be",Y=Y.replace(/^not /,"")):d="must be",function w(p,Y,y){return(void 0===y||y>p.length)&&(y=p.length),p.substring(y-Y.length,y)===Y}(p," argument"))v="The ".concat(p," ").concat(d," ").concat(f(Y,"type"));else{var D=function Q(p,Y,y){return"number"!=typeof y&&(y=0),!(y+Y.length>p.length)&&-1!==p.indexOf(Y,y)}(p,".")?"property":"argument";v='The "'.concat(p,'" ').concat(D," ").concat(d," ").concat(f(Y,"type"))}return v+". Received type ".concat(c(y))},TypeError),e("ERR_INVALID_ARG_VALUE",function(p,Y){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var d=C.inspect(Y);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(y,". Received ").concat(d)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(p,Y,y){var d;return d=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(c(y)),"Expected ".concat(p,' to be returned from the "').concat(Y,'"')+" function but got ".concat(d,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var p=arguments.length,Y=new Array(p),y=0;y0,"At least one arg needs to be specified");var d="The ",v=Y.length;switch(Y=Y.map(function(D){return'"'.concat(D,'"')}),v){case 1:d+="".concat(Y[0]," argument");break;case 2:d+="".concat(Y[0]," and ").concat(Y[1]," arguments");break;default:d+=Y.slice(0,v-1).join(", "),d+=", and ".concat(Y[v-1]," arguments")}return"".concat(d," must be specified")},TypeError),T.exports.codes=E},9158:function(T,I,n){"use strict";function c(OA,WA){return function l(OA){if(Array.isArray(OA))return OA}(OA)||function s(OA,WA){var nt=[],DA=!0,dt=!1,wt=void 0;try{for(var JA,Tt=OA[Symbol.iterator]();!(DA=(JA=Tt.next()).done)&&(nt.push(JA.value),!WA||nt.length!==WA);DA=!0);}catch(H){dt=!0,wt=H}finally{try{!DA&&null!=Tt.return&&Tt.return()}finally{if(dt)throw wt}}return nt}(OA,WA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(OA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(nt){return typeof nt}:function(nt){return nt&&"function"==typeof Symbol&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt})(OA)}var a=void 0!==/a/g.flags,B=function(WA){var nt=[];return WA.forEach(function(DA){return nt.push(DA)}),nt},E=function(WA){var nt=[];return WA.forEach(function(DA,dt){return nt.push([dt,DA])}),nt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(OA){return OA.call.bind(OA)}var g=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),p=n(9539).types,Y=p.isAnyArrayBuffer,y=p.isArrayBufferView,d=p.isDate,v=p.isMap,D=p.isRegExp,R=p.isSet,S=p.isNativeError,F=p.isBoxedPrimitive,z=p.isNumberObject,P=p.isStringObject,eA=p.isBooleanObject,sA=p.isBigIntObject,q=p.isSymbolObject,BA=p.isFloat32Array,pA=p.isFloat64Array;function lA(OA){if(0===OA.length||OA.length>10)return!0;for(var WA=0;WA57)return!0}return 10===OA.length&&OA>=Math.pow(2,32)}function cA(OA){return Object.keys(OA).filter(lA).concat(C(OA).filter(Object.prototype.propertyIsEnumerable.bind(OA)))}function gA(OA,WA){if(OA===WA)return 0;for(var nt=OA.length,DA=WA.length,dt=0,wt=Math.min(nt,DA);dt=E.length?{done:!0}:{done:!1,value:E[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(E,u){(null==u||u>E.length)&&(u=E.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},f.flush=function(){if(this.bufferOffset>0)return this.push(c.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},f.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},f.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(c.from(w,Q));case"utf16be":for(var p=c.from(w,"utf16le"),Y=0,y=p.length-1;Y>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},f.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},f.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},f.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},f.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},f.toArray=function(){for(var w=[],Q=0,p=this.length;Q>1),(f=a.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+H+'" is invalid for option "size"');var k=new Uint8Array(H);return Object.setPrototypeOf(k,f.prototype),k}function f(H,k,b){if("number"==typeof H){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return p(H)}return g(H,k,b)}function g(H,k,b){if("string"==typeof H)return function Y(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var b=0|F(H,k),QA=e(b),wA=QA.write(H,k);return wA!==b&&(QA=QA.slice(0,wA)),QA}(H,k);if(ArrayBuffer.isView(H))return function d(H){if(DA(H,Uint8Array)){var k=new Uint8Array(H);return v(k.buffer,k.byteOffset,k.byteLength)}return y(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(DA(H,ArrayBuffer)||H&&DA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(DA(H,SharedArrayBuffer)||H&&DA(H.buffer,SharedArrayBuffer)))return v(H,k,b);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var QA=H.valueOf&&H.valueOf();if(null!=QA&&QA!==H)return f.from(QA,k,b);var wA=function D(H){if(f.isBuffer(H)){var k=0|R(H.length),b=e(k);return 0===b.length||H.copy(b,0,0,k),b}return void 0!==H.length?"number"!=typeof H.length||dt(H.length)?e(0):y(H):"Buffer"===H.type&&Array.isArray(H.data)?y(H.data):void 0}(H);if(wA)return wA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return f.from(H[Symbol.toPrimitive]("string"),k,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function w(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function p(H){return w(H),e(H<0?0:0|R(H))}function y(H){for(var k=H.length<0?0:0|R(H.length),b=e(k),QA=0;QA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|H}function F(H,k){if(f.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||DA(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var b=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===b)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return mt(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*b;case"hex":return b>>>1;case"base64":return WA(H).length;default:if(wA)return QA?-1:mt(H).length;k=(""+k).toLowerCase(),wA=!0}}function z(H,k,b){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===b||b>this.length)&&(b=this.length),b<=0)||(b>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return dA(this,k,b);case"utf8":case"utf-8":return xA(this,k,b);case"ascii":return MA(this,k,b);case"latin1":case"binary":return uA(this,k,b);case"base64":return gA(this,k,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SA(this,k,b);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function P(H,k,b){var QA=H[k];H[k]=H[b],H[b]=QA}function eA(H,k,b,QA,wA){if(0===H.length)return-1;if("string"==typeof b?(QA=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),dt(b=+b)&&(b=wA?0:H.length-1),b<0&&(b=H.length+b),b>=H.length){if(wA)return-1;b=H.length-1}else if(b<0){if(!wA)return-1;b=0}if("string"==typeof k&&(k=f.from(k,QA)),f.isBuffer(k))return 0===k.length?-1:sA(H,k,b,QA,wA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(H,k,b):Uint8Array.prototype.lastIndexOf.call(H,k,b):sA(H,[k],b,QA,wA);throw new TypeError("val must be string, number or Buffer")}function sA(H,k,b,QA,wA){var j,RA=1,rA=H.length,gt=k.length;if(void 0!==QA&&("ucs2"===(QA=String(QA).toLowerCase())||"ucs-2"===QA||"utf16le"===QA||"utf-16le"===QA)){if(H.length<2||k.length<2)return-1;RA=2,rA/=2,gt/=2,b/=2}function Yt(KA,lt){return 1===RA?KA[lt]:KA.readUInt16BE(lt*RA)}if(wA){var qA=-1;for(j=b;jrA&&(b=rA-gt),j=b;j>=0;j--){for(var kA=!0,yA=0;yAwA&&(QA=wA):QA=wA;var rA,RA=k.length;for(QA>RA/2&&(QA=RA/2),rA=0;rA>8,RA.push(b%256),RA.push(QA);return RA}(k,H.length-b),H,b,QA)}function gA(H,k,b){return a.fromByteArray(0===k&&b===H.length?H:H.slice(k,b))}function xA(H,k,b){b=Math.min(H.length,b);for(var QA=[],wA=k;wA239?4:RA>223?3:RA>191?2:1;if(wA+gt<=b){var Yt=void 0,j=void 0,qA=void 0,kA=void 0;switch(gt){case 1:RA<128&&(rA=RA);break;case 2:128==(192&(Yt=H[wA+1]))&&(kA=(31&RA)<<6|63&Yt)>127&&(rA=kA);break;case 3:j=H[wA+2],128==(192&(Yt=H[wA+1]))&&128==(192&j)&&(kA=(15&RA)<<12|(63&Yt)<<6|63&j)>2047&&(kA<55296||kA>57343)&&(rA=kA);break;case 4:j=H[wA+2],qA=H[wA+3],128==(192&(Yt=H[wA+1]))&&128==(192&j)&&128==(192&qA)&&(kA=(15&RA)<<18|(63&Yt)<<12|(63&j)<<6|63&qA)>65535&&kA<1114112&&(rA=kA)}}null===rA?(rA=65533,gt=1):rA>65535&&(QA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),QA.push(rA),wA+=gt}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var b="",QA=0;QAwA.length?(f.isBuffer(rA)||(rA=f.from(rA)),rA.copy(wA,RA)):Uint8Array.prototype.set.call(wA,rA,RA);else{if(!f.isBuffer(rA))throw new TypeError('"list" argument must be an Array of Buffers');rA.copy(wA,RA)}RA+=rA.length}return wA},f.byteLength=F,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;bb&&(k+=" ... "),""},E&&(f.prototype[E]=f.prototype.inspect),f.prototype.compare=function(k,b,QA,wA,RA){if(DA(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===b&&(b=0),void 0===QA&&(QA=k?k.length:0),void 0===wA&&(wA=0),void 0===RA&&(RA=this.length),b<0||QA>k.length||wA<0||RA>this.length)throw new RangeError("out of range index");if(wA>=RA&&b>=QA)return 0;if(wA>=RA)return-1;if(b>=QA)return 1;if(this===k)return 0;for(var rA=(RA>>>=0)-(wA>>>=0),gt=(QA>>>=0)-(b>>>=0),Yt=Math.min(rA,gt),j=this.slice(wA,RA),qA=k.slice(b,QA),kA=0;kA>>=0,isFinite(QA)?(QA>>>=0,void 0===wA&&(wA="utf8")):(wA=QA,QA=void 0)}var RA=this.length-b;if((void 0===QA||QA>RA)&&(QA=RA),k.length>0&&(QA<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var rA=!1;;)switch(wA){case"hex":return q(this,k,b,QA);case"utf8":case"utf-8":return BA(this,k,b,QA);case"ascii":case"latin1":case"binary":return pA(this,k,b,QA);case"base64":return lA(this,k,b,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cA(this,k,b,QA);default:if(rA)throw new TypeError("Unknown encoding: "+wA);wA=(""+wA).toLowerCase(),rA=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function MA(H,k,b){var QA="";b=Math.min(H.length,b);for(var wA=k;wAQA)&&(b=QA);for(var wA="",RA=k;RAb)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,b,QA,wA,RA){if(!f.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>wA||kH.length)throw new RangeError("Index out of range")}function X(H,k,b,QA,wA){et(k,QA,wA,H,b,7);var RA=Number(k&BigInt(4294967295));H[b++]=RA,H[b++]=RA>>=8,H[b++]=RA>>=8,H[b++]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[b++]=rA,H[b++]=rA>>=8,H[b++]=rA>>=8,H[b++]=rA>>=8,b}function O(H,k,b,QA,wA){et(k,QA,wA,H,b,7);var RA=Number(k&BigInt(4294967295));H[b+7]=RA,H[b+6]=RA>>=8,H[b+5]=RA>>=8,H[b+4]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[b+3]=rA,H[b+2]=rA>>=8,H[b+1]=rA>>=8,H[b]=rA>>=8,b+8}function $(H,k,b,QA,wA,RA){if(b+QA>H.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function W(H,k,b,QA,wA){return k=+k,b>>>=0,wA||$(H,0,b,4),B.write(H,k,b,QA,23,4),b+4}function hA(H,k,b,QA,wA){return k=+k,b>>>=0,wA||$(H,0,b,8),B.write(H,k,b,QA,52,8),b+8}f.prototype.slice=function(k,b){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(b=void 0===b?QA:~~b)<0?(b+=QA)<0&&(b=0):b>QA&&(b=QA),b>>=0,b>>>=0,QA||bA(k,b,this.length);for(var wA=this[k],RA=1,rA=0;++rA>>=0,b>>>=0,QA||bA(k,b,this.length);for(var wA=this[k+--b],RA=1;b>0&&(RA*=256);)wA+=this[k+--b]*RA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(k,b){return k>>>=0,b||bA(k,1,this.length),this[k]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(k,b){return k>>>=0,b||bA(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(k,b){return k>>>=0,b||bA(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(k,b){return k>>>=0,b||bA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(k,b){return k>>>=0,b||bA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readBigUInt64LE=Tt(function(k){st(k>>>=0,"offset");var b=this[k],QA=this[k+7];(void 0===b||void 0===QA)&&TA(k,this.length-8);var wA=b+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,24),RA=this[++k]+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+QA*Math.pow(2,24);return BigInt(wA)+(BigInt(RA)<>>=0,"offset");var b=this[k],QA=this[k+7];(void 0===b||void 0===QA)&&TA(k,this.length-8);var wA=b*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k],RA=this[++k]*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+QA;return(BigInt(wA)<>>=0,b>>>=0,QA||bA(k,b,this.length);for(var wA=this[k],RA=1,rA=0;++rA=(RA*=128)&&(wA-=Math.pow(2,8*b)),wA},f.prototype.readIntBE=function(k,b,QA){k>>>=0,b>>>=0,QA||bA(k,b,this.length);for(var wA=b,RA=1,rA=this[k+--wA];wA>0&&(RA*=256);)rA+=this[k+--wA]*RA;return rA>=(RA*=128)&&(rA-=Math.pow(2,8*b)),rA},f.prototype.readInt8=function(k,b){return k>>>=0,b||bA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,b){k>>>=0,b||bA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt16BE=function(k,b){k>>>=0,b||bA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt32LE=function(k,b){return k>>>=0,b||bA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,b){return k>>>=0,b||bA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readBigInt64LE=Tt(function(k){st(k>>>=0,"offset");var b=this[k],QA=this[k+7];(void 0===b||void 0===QA)&&TA(k,this.length-8);var wA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(QA<<24);return(BigInt(wA)<>>=0,"offset");var b=this[k],QA=this[k+7];(void 0===b||void 0===QA)&&TA(k,this.length-8);var wA=(b<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(wA)<>>=0,b||bA(k,4,this.length),B.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,b){return k>>>=0,b||bA(k,4,this.length),B.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,b){return k>>>=0,b||bA(k,8,this.length),B.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,b){return k>>>=0,b||bA(k,8,this.length),B.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,b,QA,wA){k=+k,b>>>=0,QA>>>=0,wA||XA(this,k,b,QA,Math.pow(2,8*QA)-1,0);var rA=1,gt=0;for(this[b]=255&k;++gt>>=0,QA>>>=0,wA||XA(this,k,b,QA,Math.pow(2,8*QA)-1,0);var rA=QA-1,gt=1;for(this[b+rA]=255&k;--rA>=0&&(gt*=256);)this[b+rA]=k/gt&255;return b+QA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,1,255,0),this[b]=255&k,b+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,2,65535,0),this[b]=255&k,this[b+1]=k>>>8,b+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,2,65535,0),this[b]=k>>>8,this[b+1]=255&k,b+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,4,4294967295,0),this[b+3]=k>>>24,this[b+2]=k>>>16,this[b+1]=k>>>8,this[b]=255&k,b+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,4,4294967295,0),this[b]=k>>>24,this[b+1]=k>>>16,this[b+2]=k>>>8,this[b+3]=255&k,b+4},f.prototype.writeBigUInt64LE=Tt(function(k,b){return void 0===b&&(b=0),X(this,k,b,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=Tt(function(k,b){return void 0===b&&(b=0),O(this,k,b,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,b,QA,wA){if(k=+k,b>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,b,QA,RA-1,-RA)}var rA=0,gt=1,Yt=0;for(this[b]=255&k;++rA>0)-Yt&255;return b+QA},f.prototype.writeIntBE=function(k,b,QA,wA){if(k=+k,b>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,b,QA,RA-1,-RA)}var rA=QA-1,gt=1,Yt=0;for(this[b+rA]=255&k;--rA>=0&&(gt*=256);)k<0&&0===Yt&&0!==this[b+rA+1]&&(Yt=1),this[b+rA]=(k/gt>>0)-Yt&255;return b+QA},f.prototype.writeInt8=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,1,127,-128),k<0&&(k=255+k+1),this[b]=255&k,b+1},f.prototype.writeInt16LE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,2,32767,-32768),this[b]=255&k,this[b+1]=k>>>8,b+2},f.prototype.writeInt16BE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,2,32767,-32768),this[b]=k>>>8,this[b+1]=255&k,b+2},f.prototype.writeInt32LE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,4,2147483647,-2147483648),this[b]=255&k,this[b+1]=k>>>8,this[b+2]=k>>>16,this[b+3]=k>>>24,b+4},f.prototype.writeInt32BE=function(k,b,QA){return k=+k,b>>>=0,QA||XA(this,k,b,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[b]=k>>>24,this[b+1]=k>>>16,this[b+2]=k>>>8,this[b+3]=255&k,b+4},f.prototype.writeBigInt64LE=Tt(function(k,b){return void 0===b&&(b=0),X(this,k,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=Tt(function(k,b){return void 0===b&&(b=0),O(this,k,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,b,QA){return W(this,k,b,!0,QA)},f.prototype.writeFloatBE=function(k,b,QA){return W(this,k,b,!1,QA)},f.prototype.writeDoubleLE=function(k,b,QA){return hA(this,k,b,!0,QA)},f.prototype.writeDoubleBE=function(k,b,QA){return hA(this,k,b,!1,QA)},f.prototype.copy=function(k,b,QA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!wA&&0!==wA&&(wA=this.length),b>=k.length&&(b=k.length),b||(b=0),wA>0&&wA=this.length)throw new RangeError("Index out of range");if(wA<0)throw new RangeError("sourceEnd out of bounds");wA>this.length&&(wA=this.length),k.length-b>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(rA=b;rA=QA+4;b-=3)k="_"+H.slice(b-3,b)+k;return""+H.slice(0,b)+k}function et(H,k,b,QA,wA,RA){if(H>b||H3?0===k||k===BigInt(0)?">= 0"+rA+" and < 2"+rA+" ** "+8*(RA+1)+rA:">= -(2"+rA+" ** "+(8*(RA+1)-1)+rA+") and < 2 ** "+(8*(RA+1)-1)+rA:">= "+k+rA+" and <= "+b+rA,new vA.ERR_OUT_OF_RANGE("value",gt,H)}!function GA(H,k,b){st(k,"offset"),(void 0===H[k]||void 0===H[k+b])&&TA(k,H.length-(b+1))}(QA,wA,RA)}function st(H,k){if("number"!=typeof H)throw new vA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,b){throw Math.floor(H)!==H?(st(H,b),new vA.ERR_OUT_OF_RANGE(b||"offset","an integer",H)):k<0?new vA.ERR_BUFFER_OUT_OF_BOUNDS:new vA.ERR_OUT_OF_RANGE(b||"offset",">= "+(b?1:0)+" and <= "+k,H)}nA("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?H+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),nA("ERR_INVALID_ARG_TYPE",function(H,k){return'The "'+H+'" argument must be of type number. Received type '+typeof k},TypeError),nA("ERR_OUT_OF_RANGE",function(H,k,b){var QA='The value of "'+H+'" is out of range.',wA=b;return Number.isInteger(b)&&Math.abs(b)>Math.pow(2,32)?wA=EA(String(b)):"bigint"==typeof b&&(wA=String(b),(b>Math.pow(BigInt(2),BigInt(32))||b<-Math.pow(BigInt(2),BigInt(32)))&&(wA=EA(wA)),wA+="n"),QA+" It must be "+k+". Received "+wA},RangeError);var at=/[^+/0-9A-Za-z-_]/g;function mt(H,k){k=k||1/0;for(var b,QA=H.length,wA=null,RA=[],rA=0;rA55295&&b<57344){if(!wA){if(b>56319){(k-=3)>-1&&RA.push(239,191,189);continue}if(rA+1===QA){(k-=3)>-1&&RA.push(239,191,189);continue}wA=b;continue}if(b<56320){(k-=3)>-1&&RA.push(239,191,189),wA=b;continue}b=65536+(wA-55296<<10|b-56320)}else wA&&(k-=3)>-1&&RA.push(239,191,189);if(wA=null,b<128){if((k-=1)<0)break;RA.push(b)}else if(b<2048){if((k-=2)<0)break;RA.push(b>>6|192,63&b|128)}else if(b<65536){if((k-=3)<0)break;RA.push(b>>12|224,b>>6&63|128,63&b|128)}else{if(!(b<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;RA.push(b>>18|240,b>>12&63|128,b>>6&63|128,63&b|128)}}return RA}function WA(H){return a.toByteArray(function It(H){if((H=(H=H.split("=")[0]).trim().replace(at,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function nt(H,k,b,QA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+b]=H[wA];return wA}function DA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function dt(H){return H!=H}var wt=function(){for(var H="0123456789abcdef",k=new Array(256),b=0;b<16;++b)for(var QA=16*b,wA=0;wA<16;++wA)k[QA+wA]=H[b]+H[wA];return k}();function Tt(H){return"undefined"==typeof BigInt?JA:H}function JA(){throw new Error("BigInt not supported")}},477:function(T,I,n){"use strict";n(7803),n(1539),T.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(T,I,n){"use strict";var BA,pA,lA,c=n(477),i=n(9781),s=n(7854),l=n(614),h=n(111),a=n(2597),B=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),g=n(9518),w=n(7674),Q=n(5112),p=n(9711),Y=s.Int8Array,y=Y&&Y.prototype,d=s.Uint8ClampedArray,v=d&&d.prototype,D=Y&&g(Y),R=y&&g(y),S=Object.prototype,F=s.TypeError,z=Q("toStringTag"),P=p("TYPED_ARRAY_TAG"),eA=p("TYPED_ARRAY_CONSTRUCTOR"),sA=c&&!!w&&"Opera"!==B(s.opera),q=!1,cA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},gA={BigInt64Array:8,BigUint64Array:8},FA=function(bA){if(!h(bA))return!1;var XA=B(bA);return a(cA,XA)||a(gA,XA)};for(BA in cA)(lA=(pA=s[BA])&&pA.prototype)?u(lA,eA,pA):sA=!1;for(BA in gA)(lA=(pA=s[BA])&&pA.prototype)&&u(lA,eA,pA);if((!sA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},sA))for(BA in cA)s[BA]&&w(s[BA],D);if((!sA||!R||R===S)&&(R=D.prototype,sA))for(BA in cA)s[BA]&&w(s[BA].prototype,R);if(sA&&g(v)!==R&&w(v,R),i&&!a(R,z))for(BA in q=!0,e(R,z,{get:function(){return h(this)?this[P]:void 0}}),cA)s[BA]&&u(s[BA],P,BA);T.exports={NATIVE_ARRAY_BUFFER_VIEWS:sA,TYPED_ARRAY_CONSTRUCTOR:eA,TYPED_ARRAY_TAG:q&&P,aTypedArray:function(bA){if(FA(bA))return bA;throw F("Target is not a typed array")},aTypedArrayConstructor:function(bA){if(l(bA)&&(!w||f(D,bA)))return bA;throw F(E(bA)+" is not a typed array constructor")},exportTypedArrayMethod:function(bA,XA,X){if(i){if(X)for(var O in cA){var $=s[O];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(W){}}(!R[bA]||X)&&C(R,bA,X?XA:sA&&y[bA]||XA)}},exportTypedArrayStaticMethod:function(bA,XA,X){var O,$;if(i){if(w){if(X)for(O in cA)if(($=s[O])&&a($,bA))try{delete $[bA]}catch(W){}if(D[bA]&&!X)return;try{return C(D,bA,X?XA:sA&&D[bA]||XA)}catch(W){}}for(O in cA)($=s[O])&&(!$[bA]||X)&&C($,bA,XA)}},isView:function(bA){if(!h(bA))return!1;var XA=B(bA);return"DataView"===XA||a(cA,XA)||a(gA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:R}},2091:function(T,I,n){"use strict";n(8309);var c=n(7854),i=n(1702),s=n(9781),l=n(477),h=n(6530),a=n(8880),B=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),g=n(1179),w=n(9518),Q=n(7674),p=n(8006).f,Y=n(3070).f,y=n(1285),d=n(206),v=n(8003),D=n(9909),R=h.PROPER,S=h.CONFIGURABLE,F=D.get,z=D.set,P="ArrayBuffer",eA="DataView",sA="prototype",BA="Wrong index",pA=c[P],lA=pA,cA=lA&&lA[sA],gA=c[eA],xA=gA&&gA[sA],FA=Object.prototype,_=c.Array,MA=c.RangeError,uA=i(y),dA=i([].reverse),SA=g.pack,bA=g.unpack,XA=function(Et){return[255&Et]},X=function(Et){return[255&Et,Et>>8&255]},O=function(Et){return[255&Et,Et>>8&255,Et>>16&255,Et>>24&255]},$=function(Et){return Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0]},W=function(Et){return SA(Et,23,4)},hA=function(Et){return SA(Et,52,8)},vA=function(Et,OA){Y(Et[sA],OA,{get:function(){return F(this)[OA]}})},nA=function(Et,OA,WA,nt){var DA=f(WA),dt=F(Et);if(DA+OA>dt.byteLength)throw MA(BA);var wt=F(dt.buffer).bytes,Tt=DA+dt.byteOffset,JA=d(wt,Tt,Tt+OA);return nt?JA:dA(JA)},EA=function(Et,OA,WA,nt,DA,dt){var wt=f(WA),Tt=F(Et);if(wt+OA>Tt.byteLength)throw MA(BA);for(var JA=F(Tt.buffer).bytes,H=wt+Tt.byteOffset,k=nt(+DA),b=0;bst;)(TA=et[st++])in lA||a(lA,TA,pA[TA]);cA.constructor=lA}Q&&w(xA)!==FA&&Q(xA,FA);var at=new gA(new lA(2)),It=i(xA.setInt8);at.setInt8(0,2147483648),at.setInt8(1,2147483649),(at.getInt8(0)||!at.getInt8(1))&&B(xA,{setInt8:function(Et,OA){It(this,Et,OA<<24>>24)},setUint8:function(Et,OA){It(this,Et,OA<<24>>24)}},{unsafe:!0})}else cA=(lA=function(Et){u(this,cA);var OA=f(Et);z(this,{bytes:uA(_(OA),0),byteLength:OA}),s||(this.byteLength=OA)})[sA],xA=(gA=function(Et,OA,WA){u(this,xA),u(Et,cA);var nt=F(Et).byteLength,DA=C(OA);if(DA<0||DA>nt)throw MA("Wrong offset");if(DA+(WA=void 0===WA?nt-DA:e(WA))>nt)throw MA("Wrong length");z(this,{buffer:Et,byteLength:WA,byteOffset:DA}),s||(this.buffer=Et,this.byteLength=WA,this.byteOffset=DA)})[sA],s&&(vA(lA,"byteLength"),vA(gA,"buffer"),vA(gA,"byteLength"),vA(gA,"byteOffset")),B(xA,{getInt8:function(Et){return nA(this,1,Et)[0]<<24>>24},getUint8:function(Et){return nA(this,1,Et)[0]},getInt16:function(Et){var OA=nA(this,2,Et,arguments.length>1?arguments[1]:void 0);return(OA[1]<<8|OA[0])<<16>>16},getUint16:function(Et){var OA=nA(this,2,Et,arguments.length>1?arguments[1]:void 0);return OA[1]<<8|OA[0]},getInt32:function(Et){return $(nA(this,4,Et,arguments.length>1?arguments[1]:void 0))},getUint32:function(Et){return $(nA(this,4,Et,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Et){return bA(nA(this,4,Et,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Et){return bA(nA(this,8,Et,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Et,OA){EA(this,1,Et,XA,OA)},setUint8:function(Et,OA){EA(this,1,Et,XA,OA)},setInt16:function(Et,OA){EA(this,2,Et,X,OA,arguments.length>2?arguments[2]:void 0)},setUint16:function(Et,OA){EA(this,2,Et,X,OA,arguments.length>2?arguments[2]:void 0)},setInt32:function(Et,OA){EA(this,4,Et,O,OA,arguments.length>2?arguments[2]:void 0)},setUint32:function(Et,OA){EA(this,4,Et,O,OA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Et,OA){EA(this,4,Et,W,OA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Et,OA){EA(this,8,Et,hA,OA,arguments.length>2?arguments[2]:void 0)}});v(lA,P),v(gA,eA),T.exports={ArrayBuffer:lA,DataView:gA}},7803:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(2091),l=n(6340),h="ArrayBuffer",a=s[h];c({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),l(h)},194:function(T,I,n){"use strict";T.exports=function(c){return function(){var i=c,l=i.lib.BlockCipher,h=i.algo,a=[],B=[],E=[],u=[],C=[],e=[],f=[],g=[],w=[],Q=[];!function(){for(var y=[],d=0;d<256;d++)y[d]=d<128?d<<1:d<<1^283;var v=0,D=0;for(d=0;d<256;d++){var R=D^D<<1^D<<2^D<<3^D<<4;a[v]=R=R>>>8^255&R^99,B[R]=v;var P,S=y[v],F=y[S],z=y[F];E[v]=(P=257*y[R]^16843008*R)<<24|P>>>8,u[v]=P<<16|P>>>16,C[v]=P<<8|P>>>24,e[v]=P,f[R]=(P=16843009*z^65537*F^257*S^16843008*v)<<24|P>>>8,g[R]=P<<16|P>>>16,w[R]=P<<8|P>>>24,Q[R]=P,v?(v=S^y[y[y[z^S]]],D^=y[y[D]]):v=D=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],Y=h.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,D=v.words,R=v.sigBytes/4,F=4*((this._nRounds=R+6)+1),z=this._keySchedule=[],P=0;P6&&P%R==4&&(d=a[d>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d]):(d=a[(d=d<<8|d>>>24)>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d],d^=p[P/R|0]<<24),z[P]=z[P-R]^d);for(var eA=this._invKeySchedule=[],sA=0;sA>>24]]^g[a[d>>>16&255]]^w[a[d>>>8&255]]^Q[a[255&d]]}}},encryptBlock:function(d,v){this._doCryptBlock(d,v,this._keySchedule,E,u,C,e,a)},decryptBlock:function(d,v){var D=d[v+1];d[v+1]=d[v+3],d[v+3]=D,this._doCryptBlock(d,v,this._invKeySchedule,f,g,w,Q,B),D=d[v+1],d[v+1]=d[v+3],d[v+3]=D},_doCryptBlock:function(d,v,D,R,S,F,z,P){for(var eA=this._nRounds,sA=d[v]^D[0],q=d[v+1]^D[1],BA=d[v+2]^D[2],pA=d[v+3]^D[3],lA=4,cA=1;cA>>24]^S[q>>>16&255]^F[BA>>>8&255]^z[255&pA]^D[lA++],xA=R[q>>>24]^S[BA>>>16&255]^F[pA>>>8&255]^z[255&sA]^D[lA++],FA=R[BA>>>24]^S[pA>>>16&255]^F[sA>>>8&255]^z[255&q]^D[lA++],_=R[pA>>>24]^S[sA>>>16&255]^F[q>>>8&255]^z[255&BA]^D[lA++];sA=gA,q=xA,BA=FA,pA=_}gA=(P[sA>>>24]<<24|P[q>>>16&255]<<16|P[BA>>>8&255]<<8|P[255&pA])^D[lA++],xA=(P[q>>>24]<<24|P[BA>>>16&255]<<16|P[pA>>>8&255]<<8|P[255&sA])^D[lA++],FA=(P[BA>>>24]<<24|P[pA>>>16&255]<<16|P[sA>>>8&255]<<8|P[255&q])^D[lA++],_=(P[pA>>>24]<<24|P[sA>>>16&255]<<16|P[q>>>8&255]<<8|P[255&BA])^D[lA++],d[v]=gA,d[v+1]=xA,d[v+2]=FA,d[v+3]=_},keySize:8});i.AES=l._createHelper(Y)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(T,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),T.exports=function(c){var s,l,h,a,B,C,f,g,Q,p,Y,d,D,S,F,P,eA;c.lib.Cipher||(a=(l=(s=c).lib).WordArray,C=s.enc.Base64,f=s.algo.EvpKDF,g=l.Cipher=(B=l.BufferedBlockAlgorithm).extend({cfg:(h=l.Base).extend(),createEncryptor:function(q,BA){return this.create(this._ENC_XFORM_MODE,q,BA)},createDecryptor:function(q,BA){return this.create(this._DEC_XFORM_MODE,q,BA)},init:function(q,BA,pA){this.cfg=this.cfg.extend(pA),this._xformMode=q,this._key=BA,this.reset()},reset:function(){B.reset.call(this),this._doReset()},process:function(q){return this._append(q),this._process()},finalize:function(q){return q&&this._append(q),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function sA(q){return"string"==typeof q?eA:F}return function(q){return{encrypt:function(pA,lA,cA){return sA(lA).encrypt(q,pA,lA,cA)},decrypt:function(pA,lA,cA){return sA(lA).decrypt(q,pA,lA,cA)}}}}()}),l.StreamCipher=g.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=s.mode={},p=l.BlockCipherMode=h.extend({createEncryptor:function(q,BA){return this.Encryptor.create(q,BA)},createDecryptor:function(q,BA){return this.Decryptor.create(q,BA)},init:function(q,BA){this._cipher=q,this._iv=BA}}),Y=Q.CBC=function(){var sA=p.extend();function q(BA,pA,lA){var cA,gA=this._iv;gA?(cA=gA,this._iv=undefined):cA=this._prevBlock;for(var xA=0;xA>>2]}},l.BlockCipher=g.extend({cfg:g.cfg.extend({mode:Y,padding:d}),reset:function(){var q;g.reset.call(this);var BA=this.cfg,pA=BA.iv,lA=BA.mode;this._xformMode==this._ENC_XFORM_MODE?q=lA.createEncryptor:(q=lA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==q?this._mode.init(this,pA&&pA.words):(this._mode=q.call(lA,this,pA&&pA.words),this._mode.__creator=q)},_doProcessBlock:function(q,BA){this._mode.processBlock(q,BA)},_doFinalize:function(){var q,BA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(BA.pad(this._data,this.blockSize),q=this._process(!0)):(q=this._process(!0),BA.unpad(q)),q},blockSize:4}),D=l.CipherParams=h.extend({init:function(q){this.mixIn(q)},toString:function(q){return(q||this.formatter).stringify(this)}}),S=(s.format={}).OpenSSL={stringify:function(q){var pA=q.ciphertext,lA=q.salt;return(lA?a.create([1398893684,1701076831]).concat(lA).concat(pA):pA).toString(C)},parse:function(q){var BA,pA=C.parse(q),lA=pA.words;return 1398893684==lA[0]&&1701076831==lA[1]&&(BA=a.create(lA.slice(2,4)),lA.splice(0,4),pA.sigBytes-=16),D.create({ciphertext:pA,salt:BA})}},F=l.SerializableCipher=h.extend({cfg:h.extend({format:S}),encrypt:function(q,BA,pA,lA){lA=this.cfg.extend(lA);var cA=q.createEncryptor(pA,lA),gA=cA.finalize(BA),xA=cA.cfg;return D.create({ciphertext:gA,key:pA,iv:xA.iv,algorithm:q,mode:xA.mode,padding:xA.padding,blockSize:q.blockSize,formatter:lA.format})},decrypt:function(q,BA,pA,lA){return lA=this.cfg.extend(lA),BA=this._parse(BA,lA.format),q.createDecryptor(pA,lA).finalize(BA.ciphertext)},_parse:function(q,BA){return"string"==typeof q?BA.parse(q,this):q}}),P=(s.kdf={}).OpenSSL={execute:function(q,BA,pA,lA){lA||(lA=a.random(8));var cA=f.create({keySize:BA+pA}).compute(q,lA),gA=a.create(cA.words.slice(BA),4*pA);return cA.sigBytes=4*BA,D.create({key:cA,iv:gA,salt:lA})}},eA=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:P}),encrypt:function(q,BA,pA,lA){var cA=(lA=this.cfg.extend(lA)).kdf.execute(pA,q.keySize,q.ivSize);lA.iv=cA.iv;var gA=F.encrypt.call(this,q,BA,cA.key,lA);return gA.mixIn(cA),gA},decrypt:function(q,BA,pA,lA){lA=this.cfg.extend(lA),BA=this._parse(BA,lA.format);var cA=lA.kdf.execute(pA,q.keySize,q.ivSize,BA.salt);return lA.iv=cA.iv,F.decrypt.call(this,q,BA,cA.key,lA)}}))}(n(757),n(3839))},757:function(T,I,n){"use strict";var i;n(5743),n(6992),n(1539),n(9135),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9714),n(7042),n(9600),n(2222),n(561),i=function(){var c=c||function(i,s){var l;if("undefined"!=typeof window&&window.crypto&&(l=window.crypto),"undefined"!=typeof self&&self.crypto&&(l=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(l=globalThis.crypto),!l&&"undefined"!=typeof window&&window.msCrypto&&(l=window.msCrypto),!l&&void 0!==n.g&&n.g.crypto&&(l=n.g.crypto),!l)try{l=n(2480)}catch(y){}var h=function(){if(l){if("function"==typeof l.getRandomValues)try{return l.getRandomValues(new Uint32Array(1))[0]}catch(d){}if("function"==typeof l.randomBytes)try{return l.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(d){var v;return y.prototype=d,v=new y,y.prototype=null,v}}(),B={},E=B.lib={},u=E.Base={extend:function(d){var v=a(this);return d&&v.mixIn(d),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var v in d)d.hasOwnProperty(v)&&(this[v]=d[v]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},C=E.WordArray=u.extend({init:function(d,v){d=this.words=d||[],this.sigBytes=null!=v?v:4*d.length},toString:function(d){return(d||f).stringify(this)},concat:function(d){var v=this.words,D=d.words,R=this.sigBytes,S=d.sigBytes;if(this.clamp(),R%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(R+F)%4*8;else for(var P=0;P>>2]=D[P>>>2];return this.sigBytes+=S,this},clamp:function(){var d=this.words,v=this.sigBytes;d[v>>>2]&=4294967295<<32-v%4*8,d.length=i.ceil(v/4)},clone:function(){var d=u.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var v=[],D=0;D>>2]>>>24-S%4*8&255;R.push((F>>>4).toString(16)),R.push((15&F).toString(16))}return R.join("")},parse:function(d){for(var v=d.length,D=[],R=0;R>>3]|=parseInt(d.substr(R,2),16)<<24-R%8*4;return new C.init(D,v/2)}},g=e.Latin1={stringify:function(d){for(var v=d.words,D=d.sigBytes,R=[],S=0;S>>2]>>>24-S%4*8&255));return R.join("")},parse:function(d){for(var v=d.length,D=[],R=0;R>>2]|=(255&d.charCodeAt(R))<<24-R%4*8;return new C.init(D,v)}},w=e.Utf8={stringify:function(d){try{return decodeURIComponent(escape(g.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return g.parse(unescape(encodeURIComponent(d)))}},Q=E.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(d){"string"==typeof d&&(d=w.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var v,D=this._data,R=D.words,S=D.sigBytes,F=this.blockSize,P=S/(4*F),eA=(P=d?i.ceil(P):i.max((0|P)-this._minBufferSize,0))*F,sA=i.min(4*eA,S);if(eA){for(var q=0;q>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,d=0;d<4&&w+.75*d>>6*(3-d)&63));var v=f.charAt(64);if(v)for(;g.length%4;)g.push(v);return g.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,C,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64;var l}(n(757))},7590:function(T,I,n){"use strict";n(9600),T.exports=function(c){return l=c.lib.WordArray,c.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,f=u.sigBytes,g=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,v=0;v<4&&Q+.75*v>>6*(3-v)&63));var D=g.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,f=C?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var w=0;w>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,e,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(T,I,n){"use strict";n(9600),T.exports=function(c){return function(){var l=c.lib.WordArray,h=c.enc;function B(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535));return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=u.charCodeAt(f)<<16-f%2*16;return l.create(e,2*C)}},h.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=B(u.charCodeAt(f)<<16-f%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(T,I,n){"use strict";n(2222),T.exports=function(c){return h=(s=(i=c).lib).WordArray,E=(a=i.algo).EvpKDF=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var f,g=this.cfg,w=g.hasher.create(),Q=h.create(),p=Q.words,Y=g.keySize,y=g.iterations;p.lengthg&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),p=w.words,Y=Q.words,y=0;y>>2]|=B[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},T.exports=i(n(757))},3440:function(T,I,n){"use strict";T.exports=function(c){return function(i){var s=c,l=s.lib,h=l.WordArray,a=l.Hasher,B=s.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=B.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,p){for(var Y=0;Y<16;Y++){var y=p+Y,d=Q[y];Q[y]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var v=this._hash.words,D=Q[p+0],R=Q[p+1],S=Q[p+2],F=Q[p+3],z=Q[p+4],P=Q[p+5],eA=Q[p+6],sA=Q[p+7],q=Q[p+8],BA=Q[p+9],pA=Q[p+10],lA=Q[p+11],cA=Q[p+12],gA=Q[p+13],xA=Q[p+14],FA=Q[p+15],_=v[0],MA=v[1],uA=v[2],dA=v[3];_=C(_,MA,uA,dA,D,7,E[0]),dA=C(dA,_,MA,uA,R,12,E[1]),uA=C(uA,dA,_,MA,S,17,E[2]),MA=C(MA,uA,dA,_,F,22,E[3]),_=C(_,MA,uA,dA,z,7,E[4]),dA=C(dA,_,MA,uA,P,12,E[5]),uA=C(uA,dA,_,MA,eA,17,E[6]),MA=C(MA,uA,dA,_,sA,22,E[7]),_=C(_,MA,uA,dA,q,7,E[8]),dA=C(dA,_,MA,uA,BA,12,E[9]),uA=C(uA,dA,_,MA,pA,17,E[10]),MA=C(MA,uA,dA,_,lA,22,E[11]),_=C(_,MA,uA,dA,cA,7,E[12]),dA=C(dA,_,MA,uA,gA,12,E[13]),uA=C(uA,dA,_,MA,xA,17,E[14]),_=e(_,MA=C(MA,uA,dA,_,FA,22,E[15]),uA,dA,R,5,E[16]),dA=e(dA,_,MA,uA,eA,9,E[17]),uA=e(uA,dA,_,MA,lA,14,E[18]),MA=e(MA,uA,dA,_,D,20,E[19]),_=e(_,MA,uA,dA,P,5,E[20]),dA=e(dA,_,MA,uA,pA,9,E[21]),uA=e(uA,dA,_,MA,FA,14,E[22]),MA=e(MA,uA,dA,_,z,20,E[23]),_=e(_,MA,uA,dA,BA,5,E[24]),dA=e(dA,_,MA,uA,xA,9,E[25]),uA=e(uA,dA,_,MA,F,14,E[26]),MA=e(MA,uA,dA,_,q,20,E[27]),_=e(_,MA,uA,dA,gA,5,E[28]),dA=e(dA,_,MA,uA,S,9,E[29]),uA=e(uA,dA,_,MA,sA,14,E[30]),_=f(_,MA=e(MA,uA,dA,_,cA,20,E[31]),uA,dA,P,4,E[32]),dA=f(dA,_,MA,uA,q,11,E[33]),uA=f(uA,dA,_,MA,lA,16,E[34]),MA=f(MA,uA,dA,_,xA,23,E[35]),_=f(_,MA,uA,dA,R,4,E[36]),dA=f(dA,_,MA,uA,z,11,E[37]),uA=f(uA,dA,_,MA,sA,16,E[38]),MA=f(MA,uA,dA,_,pA,23,E[39]),_=f(_,MA,uA,dA,gA,4,E[40]),dA=f(dA,_,MA,uA,D,11,E[41]),uA=f(uA,dA,_,MA,F,16,E[42]),MA=f(MA,uA,dA,_,eA,23,E[43]),_=f(_,MA,uA,dA,BA,4,E[44]),dA=f(dA,_,MA,uA,cA,11,E[45]),uA=f(uA,dA,_,MA,FA,16,E[46]),_=g(_,MA=f(MA,uA,dA,_,S,23,E[47]),uA,dA,D,6,E[48]),dA=g(dA,_,MA,uA,sA,10,E[49]),uA=g(uA,dA,_,MA,xA,15,E[50]),MA=g(MA,uA,dA,_,P,21,E[51]),_=g(_,MA,uA,dA,cA,6,E[52]),dA=g(dA,_,MA,uA,F,10,E[53]),uA=g(uA,dA,_,MA,pA,15,E[54]),MA=g(MA,uA,dA,_,R,21,E[55]),_=g(_,MA,uA,dA,q,6,E[56]),dA=g(dA,_,MA,uA,FA,10,E[57]),uA=g(uA,dA,_,MA,eA,15,E[58]),MA=g(MA,uA,dA,_,gA,21,E[59]),_=g(_,MA,uA,dA,z,6,E[60]),dA=g(dA,_,MA,uA,lA,10,E[61]),uA=g(uA,dA,_,MA,S,15,E[62]),MA=g(MA,uA,dA,_,BA,21,E[63]),v[0]=v[0]+_|0,v[1]=v[1]+MA|0,v[2]=v[2]+uA|0,v[3]=v[3]+dA|0},_doFinalize:function(){var Q=this._data,p=Q.words,Y=8*this._nDataBytes,y=8*Q.sigBytes;p[y>>>5]|=128<<24-y%32;var d=i.floor(Y/4294967296),v=Y;p[15+(y+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p[14+(y+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),Q.sigBytes=4*(p.length+1),this._process();for(var D=this._hash,R=D.words,S=0;S<4;S++){var F=R[S];R[S]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return D},clone:function(){var Q=a.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,p,Y,y,d,v){var D=w+(Q&p|~Q&Y)+y+v;return(D<>>32-d)+Q}function e(w,Q,p,Y,y,d,v){var D=w+(Q&Y|p&~Y)+y+v;return(D<>>32-d)+Q}function f(w,Q,p,Y,y,d,v){var D=w+(Q^p^Y)+y+v;return(D<>>32-d)+Q}function g(w,Q,p,Y,y,d,v){var D=w+(p^(Q|~Y))+y+v;return(D<>>32-d)+Q}s.MD5=a._createHelper(u),s.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(T,I,n){"use strict";n(7042),T.exports=function(c){return c.mode.CFB=function(){var i=c.lib.BlockCipherMode.extend();function s(l,h,a,B){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,B.encryptBlock(E,0);for(var C=0;C>24&255)){var B=a>>16&255,E=a>>8&255,u=255&a;255===B?(B=0,255===E?(E=0,255===u?u=0:++u):++E):++B,a=0,a+=B<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(B,E){var u=this._cipher,C=u.blockSize,e=this._iv,f=this._counter;e&&(f=this._counter=e.slice(0),this._iv=void 0),function l(a){return 0===(a[0]=s(a[0]))&&(a[1]=s(a[1])),a}(f);var g=f.slice(0);u.encryptBlock(g,0);for(var w=0;w>>2]|=B<<24-E%4*8,s.sigBytes+=B},unpad:function(s){s.sigBytes-=255&s.words[s.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(T,I,n){"use strict";n(2222),T.exports=function(c){return c.pad.Iso10126={pad:function(s,l){var h=4*l,a=h-s.sigBytes%h;s.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(s){s.sigBytes-=255&s.words[s.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(T,I,n){"use strict";n(2222),T.exports=function(c){return c.pad.Iso97971={pad:function(s,l){s.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(s,l)},unpad:function(s){c.pad.ZeroPadding.unpad(s),s.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(T,I,n){"use strict";T.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(T,I,n){"use strict";T.exports=function(c){return c.pad.ZeroPadding={pad:function(s,l){var h=4*l;s.clamp(),s.sigBytes+=h-(s.sigBytes%h||h)},unpad:function(s){var l=s.words,h=s.sigBytes-1;for(h=s.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){s.sigBytes=h+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(T,I,n){"use strict";n(2222),T.exports=function(c){return h=(s=(i=c).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var g=this.cfg,w=E.create(g.hasher,e),Q=h.create(),p=h.create([1]),Y=Q.words,y=p.words,d=g.keySize,v=g.iterations;Y.length>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],Q=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];this._b=0;for(var p=0;p<4;p++)C.call(this);for(p=0;p<8;p++)Q[p]^=w[p+4&7];if(g){var Y=g.words,y=Y[0],d=Y[1],v=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),R=v>>>16|4294901760&D,S=D<<16|65535&v;for(Q[0]^=v,Q[1]^=R,Q[2]^=D,Q[3]^=S,Q[4]^=v,Q[5]^=R,Q[6]^=D,Q[7]^=S,p=0;p<4;p++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,p=w>>>16;E[g]=((Q*Q>>>17)+Q*p>>>15)+p*p^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.RabbitLegacy=l._createHelper(u)}(),c.RabbitLegacy}(n(757),n(7508),n(3440),n(3839),n(1582))},5323:function(T,I,n){"use strict";T.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,a=[],B=[],E=[],u=i.algo.Rabbit=l.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,w=0;w<4;w++)f[w]=16711935&(f[w]<<8|f[w]>>>24)|4278255360&(f[w]<<24|f[w]>>>8);var Q=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)p[w]^=Q[w+4&7];if(g){var Y=g.words,y=Y[0],d=Y[1],v=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),R=v>>>16|4294901760&D,S=D<<16|65535&v;for(p[0]^=v,p[1]^=R,p[2]^=D,p[3]^=S,p[4]^=v,p[5]^=R,p[6]^=D,p[7]^=S,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)B[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,p=w>>>16;E[g]=((Q*Q>>>17)+Q*p>>>15)+p*p^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.Rabbit=l._createHelper(u)}(),c.Rabbit}(n(757),n(7508),n(3440),n(3839),n(1582))},4640:function(T,I,n){"use strict";n(1539),n(8674),T.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,h=i.algo,a=h.RC4=l.extend({_doReset:function(){for(var C=this._key,e=C.words,f=C.sigBytes,g=this._S=[],w=0;w<256;w++)g[w]=w;w=0;for(var Q=0;w<256;w++){var p=w%f,y=g[w];g[w]=g[Q=(Q+g[w]+(e[p>>>2]>>>24-p%4*8&255))%256],g[Q]=y}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=B.call(this)},keySize:8,ivSize:0});function B(){for(var u=this._S,C=this._i,e=this._j,f=0,g=0;g<4;g++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,f|=u[(u[C]+u[e])%256]<<24-8*g}return this._i=C,this._j=e,f}i.RC4=l._createHelper(a);var E=h.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)B.call(this)}});i.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(T,I,n){"use strict";T.exports=function(c){return function(i){var s=c,l=s.lib,h=l.WordArray,a=l.Hasher,B=s.algo,E=h.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=h.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=h.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),e=h.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=h.create([0,1518500249,1859775393,2400959708,2840853838]),g=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=B.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(R,S){for(var F=0;F<16;F++){var z=S+F,P=R[z];R[z]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}var gA,xA,FA,_,MA,uA,dA,SA,bA,XA,X,eA=this._hash.words,sA=f.words,q=g.words,BA=E.words,pA=u.words,lA=C.words,cA=e.words;for(uA=gA=eA[0],dA=xA=eA[1],SA=FA=eA[2],bA=_=eA[3],XA=MA=eA[4],F=0;F<80;F+=1)X=gA+R[S+BA[F]]|0,X+=F<16?Q(xA,FA,_)+sA[0]:F<32?p(xA,FA,_)+sA[1]:F<48?Y(xA,FA,_)+sA[2]:F<64?y(xA,FA,_)+sA[3]:d(xA,FA,_)+sA[4],X=(X=v(X|=0,lA[F]))+MA|0,gA=MA,MA=_,_=v(FA,10),FA=xA,xA=X,X=uA+R[S+pA[F]]|0,X+=F<16?d(dA,SA,bA)+q[0]:F<32?y(dA,SA,bA)+q[1]:F<48?Y(dA,SA,bA)+q[2]:F<64?p(dA,SA,bA)+q[3]:Q(dA,SA,bA)+q[4],X=(X=v(X|=0,cA[F]))+XA|0,uA=XA,XA=bA,bA=v(SA,10),SA=dA,dA=X;X=eA[1]+FA+bA|0,eA[1]=eA[2]+_+XA|0,eA[2]=eA[3]+MA+uA|0,eA[3]=eA[4]+gA+dA|0,eA[4]=eA[0]+xA+SA|0,eA[0]=X},_doFinalize:function(){var R=this._data,S=R.words,F=8*this._nDataBytes,z=8*R.sigBytes;S[z>>>5]|=128<<24-z%32,S[14+(z+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),R.sigBytes=4*(S.length+1),this._process();for(var P=this._hash,eA=P.words,sA=0;sA<5;sA++){var q=eA[sA];eA[sA]=16711935&(q<<8|q>>>24)|4278255360&(q<<24|q>>>8)}return P},clone:function(){var R=a.clone.call(this);return R._hash=this._hash.clone(),R}});function Q(D,R,S){return D^R^S}function p(D,R,S){return D&R|~D&S}function Y(D,R,S){return(D|~R)^S}function y(D,R,S){return D&S|R&~S}function d(D,R,S){return D^(R|~S)}function v(D,R){return D<>>32-R}s.RIPEMD160=a._createHelper(w),s.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(T,I,n){"use strict";T.exports=function(c){return l=(s=(i=c).lib).WordArray,B=[],E=i.algo.SHA1=(h=s.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,g=f[0],w=f[1],Q=f[2],p=f[3],Y=f[4],y=0;y<80;y++){if(y<16)B[y]=0|C[e+y];else{var d=B[y-3]^B[y-8]^B[y-14]^B[y-16];B[y]=d<<1|d>>>31}var v=(g<<5|g>>>27)+Y+B[y];v+=y<20?1518500249+(w&Q|~w&p):y<40?1859775393+(w^Q^p):y<60?(w&Q|w&p|Q&p)-1894007588:(w^Q^p)-899497514,Y=p,p=Q,Q=w<<30|w>>>2,w=g,g=v}f[0]=f[0]+g|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+p|0,f[4]=f[4]+Y|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,g=8*C.sigBytes;return e[g>>>5]|=128<<24-g%32,e[14+(g+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(g+64>>>9<<4)]=f,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=h.clone.call(this);return C._hash=this._hash.clone(),C}}),i.SHA1=h._createHelper(E),i.HmacSHA1=h._createHmacHelper(E),c.SHA1;var i,s,l,h,B,E}(n(757))},6876:function(T,I,n){"use strict";T.exports=function(c){return l=(i=c).lib.WordArray,B=(h=i.algo).SHA224=(a=h.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}}),i.SHA224=a._createHelper(B),i.HmacSHA224=a._createHmacHelper(B),c.SHA224;var i,l,h,a,B}(n(757),n(8921))},8921:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(i){var s=c,l=s.lib,h=l.WordArray,a=l.Hasher,B=s.algo,E=[],u=[];!function(){function f(p){for(var Y=i.sqrt(p),y=2;y<=Y;y++)if(!(p%y))return!1;return!0}function g(p){return 4294967296*(p-(0|p))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=g(i.pow(w,.5))),u[Q]=g(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=B.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(g,w){for(var Q=this._hash.words,p=Q[0],Y=Q[1],y=Q[2],d=Q[3],v=Q[4],D=Q[5],R=Q[6],S=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|g[w+F];else{var z=C[F-15],eA=C[F-2];C[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+C[F-7]+((eA<<15|eA>>>17)^(eA<<13|eA>>>19)^eA>>>10)+C[F-16]}var BA=p&Y^p&y^Y&y,cA=S+((v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25))+(v&D^~v&R)+u[F]+C[F];S=R,R=D,D=v,v=d+cA|0,d=y,y=Y,Y=p,p=cA+(((p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22))+BA)|0}Q[0]=Q[0]+p|0,Q[1]=Q[1]+Y|0,Q[2]=Q[2]+y|0,Q[3]=Q[3]+d|0,Q[4]=Q[4]+v|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+R|0,Q[7]=Q[7]+S|0},_doFinalize:function(){var g=this._data,w=g.words,Q=8*this._nDataBytes,p=8*g.sigBytes;return w[p>>>5]|=128<<24-p%32,w[14+(p+64>>>9<<4)]=i.floor(Q/4294967296),w[15+(p+64>>>9<<4)]=Q,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=a._createHelper(e),s.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(i){var s=c,l=s.lib,h=l.WordArray,a=l.Hasher,E=s.x64.Word,u=s.algo,C=[],e=[],f=[];!function(){for(var Q=1,p=0,Y=0;Y<24;Y++){C[Q+5*p]=(Y+1)*(Y+2)/2%64;var d=(2*Q+3*p)%5;Q=p%5,p=d}for(Q=0;Q<5;Q++)for(p=0;p<5;p++)e[Q+5*p]=p+(2*Q+3*p)%5*5;for(var v=1,D=0;D<24;D++){for(var R=0,S=0,F=0;F<7;F++){if(1&v){var z=(1<>>24)|4278255360&(D<<24|D>>>8),(S=y[v]).high^=R=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),S.low^=D}for(var F=0;F<24;F++){for(var z=0;z<5;z++){for(var P=0,eA=0,sA=0;sA<5;sA++)P^=(S=y[z+5*sA]).high,eA^=S.low;var q=g[z];q.high=P,q.low=eA}for(z=0;z<5;z++){var BA=g[(z+4)%5],pA=g[(z+1)%5],lA=pA.high,cA=pA.low;for(P=BA.high^(lA<<1|cA>>>31),eA=BA.low^(cA<<1|lA>>>31),sA=0;sA<5;sA++)(S=y[z+5*sA]).high^=P,S.low^=eA}for(var gA=1;gA<25;gA++){var xA=(S=y[gA]).high,FA=S.low,_=C[gA];_<32?(P=xA<<_|FA>>>32-_,eA=FA<<_|xA>>>32-_):(P=FA<<_-32|xA>>>64-_,eA=xA<<_-32|FA>>>64-_);var MA=g[e[gA]];MA.high=P,MA.low=eA}var uA=g[0],dA=y[0];for(uA.high=dA.high,uA.low=dA.low,z=0;z<5;z++)for(sA=0;sA<5;sA++){var SA=g[gA=z+5*sA],bA=g[(z+1)%5+5*sA],XA=g[(z+2)%5+5*sA];(S=y[gA]).high=SA.high^~bA.high&XA.high,S.low=SA.low^~bA.low&XA.low}var S,X=f[F];(S=y[0]).high^=X.high,S.low^=X.low}},_doFinalize:function(){var p=this._data,Y=p.words,d=8*p.sigBytes,v=32*this.blockSize;Y[d>>>5]|=1<<24-d%32,Y[(i.ceil((d+1)/v)*v>>>5)-1]|=128,p.sigBytes=4*Y.length,this._process();for(var D=this._state,R=this.cfg.outputLength/8,S=R/8,F=[],z=0;z>>24)|4278255360&(eA<<24|eA>>>8),F.push(sA=16711935&(sA<<8|sA>>>24)|4278255360&(sA<<24|sA>>>8)),F.push(eA)}return new h.init(F,R)},clone:function(){for(var p=a.clone.call(this),Y=p._state=this._state.slice(0),y=0;y<25;y++)Y[y]=Y[y].clone();return p}});s.SHA3=a._createHelper(w),s.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(T,I,n){"use strict";T.exports=function(c){return l=(s=(i=c).x64).Word,h=s.WordArray,E=(a=i.algo).SHA384=(B=a.SHA512).extend({_doReset:function(){this._hash=new h.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var C=B._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=B._createHelper(E),i.HmacSHA384=B._createHmacHelper(E),c.SHA384;var i,s,l,h,a,B,E}(n(757),n(2601),n(7991))},7991:function(T,I,n){"use strict";var i;i=function(c){return function(){var i=c,l=i.lib.Hasher,h=i.x64,a=h.Word,B=h.WordArray,E=i.algo;function u(){return a.create.apply(a,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var g=0;g<80;g++)e[g]=u()}();var f=E.SHA512=l.extend({_doReset:function(){this._hash=new B.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var p=this._hash.words,Y=p[0],y=p[1],d=p[2],v=p[3],D=p[4],R=p[5],S=p[6],F=p[7],z=Y.high,P=Y.low,eA=y.high,sA=y.low,q=d.high,BA=d.low,pA=v.high,lA=v.low,cA=D.high,gA=D.low,xA=R.high,FA=R.low,_=S.high,MA=S.low,uA=F.high,dA=F.low,SA=z,bA=P,XA=eA,X=sA,O=q,$=BA,W=pA,hA=lA,vA=cA,nA=gA,EA=xA,GA=FA,et=_,st=MA,TA=uA,at=dA,It=0;It<80;It++){var mt,Et,OA=e[It];if(It<16)Et=OA.high=0|w[Q+2*It],mt=OA.low=0|w[Q+2*It+1];else{var WA=e[It-15],nt=WA.high,DA=WA.low,wt=(DA>>>1|nt<<31)^(DA>>>8|nt<<24)^(DA>>>7|nt<<25),Tt=e[It-2],JA=Tt.high,H=Tt.low,b=(H>>>19|JA<<13)^(H<<3|JA>>>29)^(H>>>6|JA<<26),QA=e[It-7],rA=e[It-16],Yt=rA.low;OA.high=Et=(Et=(Et=((nt>>>1|DA<<31)^(nt>>>8|DA<<24)^nt>>>7)+QA.high+((mt=wt+QA.low)>>>0>>0?1:0))+((JA>>>19|H<<13)^(JA<<3|H>>>29)^JA>>>6)+((mt+=b)>>>0>>0?1:0))+rA.high+((mt+=Yt)>>>0>>0?1:0),OA.low=mt}var oe,j=vA&EA^~vA&et,qA=nA&GA^~nA&st,kA=SA&XA^SA&O^XA&O,lt=(bA>>>28|SA<<4)^(bA<<30|SA>>>2)^(bA<<25|SA>>>7),Lt=C[It],Ge=Lt.low,ne=TA+((vA>>>14|nA<<18)^(vA>>>18|nA<<14)^(vA<<23|nA>>>9))+((oe=at+((nA>>>14|vA<<18)^(nA>>>18|vA<<14)^(nA<<23|vA>>>9)))>>>0>>0?1:0),Fe=lt+(bA&X^bA&$^X&$);TA=et,at=st,et=EA,st=GA,EA=vA,GA=nA,vA=W+(ne=(ne=(ne=ne+j+((oe+=qA)>>>0>>0?1:0))+Lt.high+((oe+=Ge)>>>0>>0?1:0))+Et+((oe+=mt)>>>0>>0?1:0))+((nA=hA+oe|0)>>>0>>0?1:0)|0,W=O,hA=$,O=XA,$=X,XA=SA,X=bA,SA=ne+(((SA>>>28|bA<<4)^(SA<<30|bA>>>2)^(SA<<25|bA>>>7))+kA+(Fe>>>0>>0?1:0))+((bA=oe+Fe|0)>>>0>>0?1:0)|0}P=Y.low=P+bA,Y.high=z+SA+(P>>>0>>0?1:0),sA=y.low=sA+X,y.high=eA+XA+(sA>>>0>>0?1:0),BA=d.low=BA+$,d.high=q+O+(BA>>>0<$>>>0?1:0),lA=v.low=lA+hA,v.high=pA+W+(lA>>>0>>0?1:0),gA=D.low=gA+nA,D.high=cA+vA+(gA>>>0>>0?1:0),FA=R.low=FA+GA,R.high=xA+EA+(FA>>>0>>0?1:0),MA=S.low=MA+st,S.high=_+et+(MA>>>0>>0?1:0),dA=F.low=dA+at,F.high=uA+TA+(dA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,p=8*this._nDataBytes,Y=8*w.sigBytes;return Q[Y>>>5]|=128<<24-Y%32,Q[30+(Y+128>>>10<<5)]=Math.floor(p/4294967296),Q[31+(Y+128>>>10<<5)]=p,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});i.SHA512=l._createHelper(f),i.HmacSHA512=l._createHmacHelper(f)}(),c.SHA512},T.exports=i(n(757),n(2601))},8437:function(T,I,n){"use strict";n(7042),T.exports=function(c){return function(){var i=c,s=i.lib,l=s.WordArray,h=s.BlockCipher,a=i.algo,B=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],E=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],e=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=h.extend({_doReset:function(){for(var y=this._key.words,d=[],v=0;v<56;v++){var D=B[v]-1;d[v]=y[D>>>5]>>>31-D%32&1}for(var R=this._subKeys=[],S=0;S<16;S++){var F=R[S]=[],z=u[S];for(v=0;v<24;v++)F[v/6|0]|=d[(E[v]-1+z)%28]<<31-v%6,F[4+(v/6|0)]|=d[28+(E[v+24]-1+z)%28]<<31-v%6;for(F[0]=F[0]<<1|F[0]>>>31,v=1;v<7;v++)F[v]=F[v]>>>4*(v-1)+3;F[7]=F[7]<<5|F[7]>>>27}var P=this._invSubKeys=[];for(v=0;v<16;v++)P[v]=R[15-v]},encryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._subKeys)},decryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._invSubKeys)},_doCryptBlock:function(Y,y,d){this._lBlock=Y[y],this._rBlock=Y[y+1],g.call(this,4,252645135),g.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),g.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=d[v],R=this._lBlock,S=this._rBlock,F=0,z=0;z<8;z++)F|=C[z][((S^D[z])&e[z])>>>0];this._lBlock=S,this._rBlock=R^F}var P=this._lBlock;this._lBlock=this._rBlock,this._rBlock=P,g.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),Y[y]=this._lBlock,Y[y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function g(p,Y){var y=(this._lBlock>>>p^this._rBlock)&Y;this._rBlock^=y,this._lBlock^=y<>>p^this._lBlock)&Y;this._lBlock^=y,this._rBlock^=y<192.");var d=y.slice(0,2),v=y.length<4?y.slice(0,2):y.slice(2,4),D=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=f.createEncryptor(l.create(d)),this._des2=f.createEncryptor(l.create(v)),this._des3=f.createEncryptor(l.create(D))},encryptBlock:function(Y,y){this._des1.encryptBlock(Y,y),this._des2.decryptBlock(Y,y),this._des3.encryptBlock(Y,y)},decryptBlock:function(Y,y){this._des3.decryptBlock(Y,y),this._des2.encryptBlock(Y,y),this._des1.decryptBlock(Y,y)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=h._createHelper(Q)}(),c.TripleDES}(n(757),n(7508),n(3440),n(3839),n(1582))},2601:function(T,I,n){"use strict";n(7042),T.exports=function(c){return h=(l=c.lib).Base,a=l.WordArray,(B=c.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),B.WordArray=h.extend({init:function(e,f){e=this.words=e||[],this.sigBytes=null!=f?f:8*e.length},toX32:function(){for(var e=this.words,f=e.length,g=[],w=0;w=B.length?{done:!0}:{done:!1,value:B[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(B,E){(null==E||E>B.length)&&(E=B.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,p,f.tags[Y]];case 13:w=f.stateTable[1][d],Q=null;case 15:0!==w&&null==Q&&(Q=y),f.accepting[w]&&(p=y),0===w&&(w=1);case 18:y++,D.next=5;break;case 21:if(!(null!=Q&&null!=p&&p>=Q)){D.next=24;break}return D.next=24,[Q,p,f.tags[w]];case 24:case"end":return D.stop()}},g)}),e},E.apply=function(C,e){for(var g,f=c(this.match(C));!(g=f()).done;)for(var d,w=g.value,Q=w[0],p=w[1],y=c(w[2]);!(d=y()).done;){var v=d.value;"function"==typeof e[v]&&e[v](Q,p,C.slice(Q,p+1))}},B}()},8478:function(T,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var i=n(3857),s=n(2635);T.exports=function(){function l(a){var B;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(B=0;B<4;B++)u+=String.fromCharCode(this.data[this.pos++]);switch(u){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(E);break;case"IDAT":for(B=0;B0)for(B=0;Bthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(B,E){return i.readFile(B,function(u,C){return new l(C).decode(function(f){return E(f)})})},l.load=function(B){return new l(i.readFileSync(B))};var h=l.prototype;return h.read=function(B){for(var E=new Array(B),u=0;u=2147483648)throw new RangeError('The value "'+B+'" is invalid for option "size"');var C=s(B);return E&&0!==E.length?"string"==typeof u?C.fill(E,u):C.fill(E):C.fill(0),C}),!l.kStringMaxLength)try{l.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch(B){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),T.exports=l},3361:function(T,I,n){"use strict";function c(g,w){var Q=Object.keys(g);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(g);w&&(p=p.filter(function(Y){return Object.getOwnPropertyDescriptor(g,Y).enumerable})),Q.push.apply(Q,p)}return Q}function s(g,w,Q){return w in g?Object.defineProperty(g,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):g[w]=Q,g}function h(g,w){for(var Q=0;Q0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(Q){var p={data:Q,next:this.head};0===this.length&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var p=this.head,Y=""+p.data;p=p.next;)Y+=Q+p.data;return Y}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var p=E.allocUnsafe(Q>>>0),Y=this.head,y=0;Y;)f(Y.data,p,y),y+=Y.data.length,Y=Y.next;return p}},{key:"consume",value:function(Q,p){var Y;return Qd.length?d.length:Q;if(y+=v===d.length?d:d.slice(0,Q),0==(Q-=v)){v===d.length?(++Y,this.head=p.next?p.next:this.tail=null):(this.head=p,p.data=d.slice(v));break}++Y}return this.length-=Y,y}},{key:"_getBuffer",value:function(Q){var p=E.allocUnsafe(Q),Y=this.head,y=1;for(Y.data.copy(p),Q-=Y.data.length;Y=Y.next;){var d=Y.data,v=Q>d.length?d.length:Q;if(d.copy(p,p.length-Q,0,v),0==(Q-=v)){v===d.length?(++y,this.head=Y.next?Y.next:this.tail=null):(this.head=Y,Y.data=d.slice(v));break}++y}return this.length-=y,p}},{key:e,value:function(Q,p){return C(this,function i(g){for(var w=1;wIA.length)&&(J=IA.length);for(var N=0,Z=new Array(J);N=IA.length?{done:!0}:{done:!1,value:IA[Z++]}},e:function(ht){throw ht},f:K}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var At,fA=!0,mA=!1;return{s:function(){N=IA[Symbol.iterator]()},n:function(){var ht=N.next();return fA=ht.done,ht},e:function(ht){mA=!0,At=ht},f:function(){try{!fA&&null!=N.return&&N.return()}finally{if(mA)throw At}}}}var FA=function(){function IA(){f(this,IA)}return w(IA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),_=function(){function IA(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,IA),this._items={},this.limits="boolean"!=typeof J.limits||J.limits}return w(IA,[{key:"add",value:function(N,Z){return this._items[N]=Z}},{key:"get",value:function(N){return this._items[N]}},{key:"toString",value:function(){var N=this,Z=Object.keys(this._items).sort(function(Qt,vt){return N._compareKeys(Qt,vt)}),K=["<<"];if(this.limits&&Z.length>1){var mA=Z[Z.length-1];K.push(" /Limits ".concat(bA.convert([this._dataForKey(Z[0]),this._dataForKey(mA)])))}K.push(" /".concat(this._keysName()," ["));var rt,At=xA(Z);try{for(At.s();!(rt=At.n()).done;){var ht=rt.value;K.push(" ".concat(bA.convert(this._dataForKey(ht))," ").concat(bA.convert(this._items[ht])))}}catch(Qt){At.e(Qt)}finally{At.f()}return K.push("]"),K.push(">>"),K.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),MA=function(J,N){return(Array(N+1).join("0")+J).slice(-N)},uA=/[\n\r\t\b\f()\\]/g,dA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},SA=function(J){var N=J.length;if(1&N)throw new Error("Buffer length must be even");for(var Z=0,K=N-1;Z1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof N)return"/".concat(N);if(N instanceof String){for(var K=N,fA=!1,mA=0,At=K.length;mA127){fA=!0;break}var rt;return rt=fA?SA(i.from("\ufeff".concat(K),"utf16le")):i.from(K.valueOf(),"ascii"),K=(K=Z?Z(rt).toString("binary"):rt.toString("binary")).replace(uA,function(jt){return dA[jt]}),"(".concat(K,")")}if(i.isBuffer(N))return"<".concat(N.toString("hex"),">");if(N instanceof FA||N instanceof _)return N.toString();if(N instanceof Date){var ht="D:".concat(MA(N.getUTCFullYear(),4))+MA(N.getUTCMonth()+1,2)+MA(N.getUTCDate(),2)+MA(N.getUTCHours(),2)+MA(N.getUTCMinutes(),2)+MA(N.getUTCSeconds(),2)+"Z";return Z&&(ht=(ht=Z(i.from(ht,"ascii")).toString("binary")).replace(uA,function(jt){return dA[jt]})),"(".concat(ht,")")}if(Array.isArray(N)){var Qt=N.map(function(jt){return IA.convert(jt,Z)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(N)){var vt=["<<"];for(var Ft in N){var St=N[Ft];vt.push("/".concat(Ft," ").concat(IA.convert(St,Z)))}return vt.push(">>"),vt.join("\n")}return"number"==typeof N?IA.number(N):"".concat(N)}},{key:"number",value:function(N){if(N>-1e21&&N<1e21)return Math.round(1e6*N)/1e6;throw new Error("unsupported number: ".concat(N))}}]),IA}(),XA=function(IA){y(N,IA);var J=F(N);function N(Z,K){var fA,mA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,N),(fA=J.call(this)).document=Z,fA.id=K,fA.data=mA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(N,[{key:"write",value:function(K){if(i.isBuffer(K)||(K=i.from(K+"\n","binary")),this.uncompressedLength+=K.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(K),this.data.Length+=K.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(K){return K&&this.write(K),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var K=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=i.concat(this.buffer),this.compress&&(this.buffer=l.default.deflateSync(this.buffer)),K&&(this.buffer=K(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(bA.convert(this.data,K)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),N}(FA),X={top:72,left:72,bottom:72,right:72},O={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},$=function(){function IA(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,IA),this.document=J,this.size=N.size||"letter",this.layout=N.layout||"portrait",this.margins="number"==typeof N.margin?{top:N.margin,left:N.margin,bottom:N.margin,right:N.margin}:N.margins||X;var Z=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=Z["portrait"===this.layout?0:1],this.height=Z["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources}),this.markings=[]}return w(IA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(N){return this.content.write(N)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var N=this.resources.data;return null!=N.Font?N.Font:N.Font={}}},{key:"xobjects",get:function(){var N=this.resources.data;return null!=N.XObject?N.XObject:N.XObject={}}},{key:"ext_gstates",get:function(){var N=this.resources.data;return null!=N.ExtGState?N.ExtGState:N.ExtGState={}}},{key:"patterns",get:function(){var N=this.resources.data;return null!=N.Pattern?N.Pattern:N.Pattern={}}},{key:"colorSpaces",get:function(){var N=this.resources.data;return N.ColorSpace||(N.ColorSpace={})}},{key:"annotations",get:function(){var N=this.dictionary.data;return null!=N.Annots?N.Annots:N.Annots=[]}},{key:"structParentTreeKey",get:function(){var N=this.dictionary.data;return null!=N.StructParents?N.StructParents:N.StructParents=this.document.createStructParentTreeNextKey()}}]),IA}(),W=function(IA){y(N,IA);var J=F(N);function N(){return f(this,N),J.apply(this,arguments)}return w(N,[{key:"_compareKeys",value:function(K,fA){return K.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(K){return new String(K)}}]),N}(_);function hA(IA,J){if(IA=J[fA]&&IA<=J[fA+1])return!0;IA>J[fA+1]?N=K+1:Z=K-1}return!1}var vA=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],nA=function(J){return hA(J,vA)},EA=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],et=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],TA=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],at=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],It=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],mt=function(J){return hA(J,et)||hA(J,It)||hA(J,TA)||hA(J,at)},Et=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],OA=function(J){return hA(J,Et)},WA=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],nt=function(J){return hA(J,WA)},DA=function(J){return hA(J,et)},dt=function(J){return hA(J,EA)},wt=function(J){return J.codePointAt(0)},Tt=function(J){return J[0]},JA=function(J){return J[J.length-1]};function H(IA){for(var J=[],N=IA.length,Z=0;Z=55296&&K<=56319&&N>Z+1){var fA=IA.charCodeAt(Z+1);if(fA>=56320&&fA<=57343){J.push(1024*(K-55296)+fA-56320+65536),Z+=1;continue}}J.push(K)}return J}function k(IA){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof IA)throw new TypeError("Expected string.");if(0===IA.length)return"";var N=H(IA).map(function(vt){return DA(vt)?32:vt}).filter(function(vt){return!dt(vt)}),Z=String.fromCodePoint.apply(null,N).normalize("NFKC"),K=H(Z);if(K.some(mt))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==J.allowUnassigned&&K.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var At=K.some(OA),rt=K.some(nt);if(At&&rt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var ht=OA(wt(Tt(Z))),Qt=OA(wt(JA(Z)));if(At&&(!ht||!Qt))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return Z}var b=function(){function IA(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,IA),!N.ownerPassword&&!N.userPassword)throw new Error("None of owner password and user password is defined.");this.document=J,this._setupEncryption(N)}return w(IA,null,[{key:"generateFileID",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z="".concat(N.CreationDate.getTime(),"\n");for(var K in N)!N.hasOwnProperty(K)||(Z+="".concat(K,": ").concat(N[K].valueOf(),"\n"));return Xt(h.default.MD5(Z))}},{key:"generateRandomWordArray",value:function(N){return h.default.lib.WordArray.random(N)}},{key:"create",value:function(N){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Z.ownerPassword||Z.userPassword?new IA(N,Z):null}}]),w(IA,[{key:"_setupEncryption",value:function(N){switch(N.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}var Z={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,Z,N);break;case 5:this._setupEncryptionV5(Z,N)}this.dictionary=this.document.ref(Z)}},{key:"_setupEncryptionV1V2V4",value:function(N,Z,K){var fA,mA;switch(N){case 1:fA=2,this.keyBits=40,mA=function QA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-64;return IA.printing&&(J|=4),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),J}(K.permissions);break;case 2:fA=3,this.keyBits=128,mA=wA(K.permissions);break;case 4:fA=4,this.keyBits=128,mA=wA(K.permissions)}var Qt,At=bt(K.userPassword),rt=K.ownerPassword?bt(K.ownerPassword):At,ht=function gt(IA,J,N,Z){for(var K=Z,fA=IA>=3?51:1,mA=0;mA=3?20:1;for(var ht=0;ht=3?51:1,rt=0;rt=2&&(Z.Length=this.keyBits),4===N&&(Z.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},Z.StmF="StdCF",Z.StrF="StdCF"),Z.R=fA,Z.O=Xt(ht),Z.U=Xt(Qt),Z.P=mA}},{key:"_setupEncryptionV5",value:function(N,Z){this.keyBits=256;var K=wA(Z.permissions),fA=xt(Z.userPassword),mA=Z.ownerPassword?xt(Z.ownerPassword):fA;this.encryptionKey=function KA(IA){return IA(32)}(IA.generateRandomWordArray);var At=function j(IA,J){var N=J(8),Z=J(8);return h.default.SHA256(IA.clone().concat(N)).concat(N).concat(Z)}(fA,IA.generateRandomWordArray),ht=function qA(IA,J,N){var Z=h.default.SHA256(IA.clone().concat(J)),K={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(N,Z,K).ciphertext}(fA,h.default.lib.WordArray.create(At.words.slice(10,12),8),this.encryptionKey),Qt=function kA(IA,J,N){var Z=N(8),K=N(8);return h.default.SHA256(IA.clone().concat(Z).concat(J)).concat(Z).concat(K)}(mA,At,IA.generateRandomWordArray),Ft=function yA(IA,J,N,Z){var K=h.default.SHA256(IA.clone().concat(J).concat(N)),fA={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(Z,K,fA).ciphertext}(mA,h.default.lib.WordArray.create(Qt.words.slice(10,12),8),At,this.encryptionKey),St=function lt(IA,J,N){var Z=h.default.lib.WordArray.create([Lt(IA),4294967295,1415668834],12).concat(N(4));return h.default.AES.encrypt(Z,J,{mode:h.default.mode.ECB,padding:h.default.pad.NoPadding}).ciphertext}(K,this.encryptionKey,IA.generateRandomWordArray);N.V=5,N.Length=this.keyBits,N.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},N.StmF="StdCF",N.StrF="StdCF",N.R=5,N.O=Xt(Qt),N.OE=Xt(Ft),N.U=Xt(At),N.UE=Xt(ht),N.P=K,N.Perms=Xt(St)}},{key:"getEncryptFn",value:function(N,Z){var K,mA;if(this.version<5&&(K=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&N)<<24|(65280&N)<<8|N>>8&65280|255&Z,(65280&Z)<<16],5))),1===this.version||2===this.version){var fA=h.default.MD5(K);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(ht){return Xt(h.default.RC4.encrypt(h.default.lib.WordArray.create(ht),fA).ciphertext)}}mA=4===this.version?h.default.MD5(K.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var At=IA.generateRandomWordArray(16),rt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:At};return function(ht){return Xt(At.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(ht),mA,rt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),IA}();function wA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-3904;return"lowResolution"===IA.printing&&(J|=4),"highResolution"===IA.printing&&(J|=2052),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),IA.fillingForms&&(J|=256),IA.contentAccessibility&&(J|=512),IA.documentAssembly&&(J|=1024),J}function bt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=i.alloc(32),N=IA.length,Z=0;Z255)throw new Error("Password contains one or more invalid characters.");J[Z]=K,Z++}for(;Z<32;)J[Z]=Ge[Z-N],Z++;return h.default.lib.WordArray.create(J)}function xt(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";IA=unescape(encodeURIComponent(k(IA)));for(var J=Math.min(127,IA.length),N=i.alloc(J),Z=0;Z>8&65280|IA>>24&255}function Xt(IA){for(var J=[],N=0;N>8*(3-N%4)&255);return i.from(J)}var kt,Gt,$t,le,vn,pn,Ge=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],oe=bA.number,ne=function(){function IA(J){f(this,IA),this.doc=J,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(IA,[{key:"stop",value:function(N,Z,K){if(null==K&&(K=1),Z=this.doc._normalizeColor(Z),0===this.stops.length)if(3===Z.length)this._colorSpace="DeviceRGB";else if(4===Z.length)this._colorSpace="DeviceCMYK";else{if(1!==Z.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==Z.length||"DeviceCMYK"===this._colorSpace&&4!==Z.length||"DeviceGray"===this._colorSpace&&1!==Z.length)throw new Error("All gradient stops must use the same color space");return K=Math.max(0,Math.min(1,K)),this.stops.push([N,Z,K]),this}},{key:"setTransform",value:function(N,Z,K,fA,mA,At){return this.transform=[N,Z,K,fA,mA,At],this}},{key:"embed",value:function(N){var Z,K=this.stops.length;if(0!==K){this.embedded=!0,this.matrix=N;var fA=this.stops[K-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var mA=[],At=[],rt=[],ht=0;ht>16,N>>8&255,255&N]}else Jn[J]&&(J=Jn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(Z){return Z/255}):4===J.length&&(J=J.map(function(Z){return Z/100})),J):null},_setColor:function(J,N){return J instanceof an?(J.apply(N),!0):Array.isArray(J)&&J[0]instanceof An?(J[0].apply(N,J[1]),!0):this._setColorCore(J,N)},_setColorCore:function(J,N){if(!(J=this._normalizeColor(J)))return!1;var Z=N?"SCN":"scn",K=this._getColorSpace(J);return this._setColorSpace(K,N),J=J.join(" "),this.addContent("".concat(J," ").concat(Z)),!0},_setColorSpace:function(J,N){var Z=N?"CS":"cs";return this.addContent("/".concat(J," ").concat(Z))},_getColorSpace:function(J){return 4===J.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(J,N){return this._setColor(J,!1)&&this.fillOpacity(N),this._fillColor=[J,N],this},strokeColor:function(J,N){return this._setColor(J,!0)&&this.strokeOpacity(N),this},opacity:function(J){return this._doOpacity(J,J),this},fillOpacity:function(J){return this._doOpacity(J,null),this},strokeOpacity:function(J){return this._doOpacity(null,J),this},_doOpacity:function(J,N){var Z,K;if(null!=J||null!=N){null!=J&&(J=Math.max(0,Math.min(1,J))),null!=N&&(N=Math.max(0,Math.min(1,N)));var fA="".concat(J,"_").concat(N);if(this._opacityRegistry[fA]){var mA=z(this._opacityRegistry[fA],2);Z=mA[0],K=mA[1]}else{Z={Type:"ExtGState"},null!=J&&(Z.ca=J),null!=N&&(Z.CA=N),(Z=this.ref(Z)).end();var At=++this._opacityCount;K="Gs".concat(At),this._opacityRegistry[fA]=[Z,K]}return this.page.ext_gstates[K]=Z,this.addContent("/".concat(K," gs"))}},linearGradient:function(J,N,Z,K){return new Ne(this,J,N,Z,K)},radialGradient:function(J,N,Z,K,fA,mA){return new on(this,J,N,Z,K,fA,mA)},pattern:function(J,N,Z,K){return new An(this,J,N,Z,K)}},Jn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};kt=Gt=$t=le=vn=pn=0;var Tn={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},Sn={M:function(J,N){return $t=le=null,vn=kt=N[0],pn=Gt=N[1],J.moveTo(kt,Gt)},m:function(J,N){return $t=le=null,vn=kt+=N[0],pn=Gt+=N[1],J.moveTo(kt,Gt)},C:function(J,N){return kt=N[4],Gt=N[5],$t=N[2],le=N[3],J.bezierCurveTo.apply(J,P(N))},c:function(J,N){return J.bezierCurveTo(N[0]+kt,N[1]+Gt,N[2]+kt,N[3]+Gt,N[4]+kt,N[5]+Gt),$t=kt+N[2],le=Gt+N[3],kt+=N[4],Gt+=N[5]},S:function(J,N){return null===$t&&($t=kt,le=Gt),J.bezierCurveTo(kt-($t-kt),Gt-(le-Gt),N[0],N[1],N[2],N[3]),$t=N[0],le=N[1],kt=N[2],Gt=N[3]},s:function(J,N){return null===$t&&($t=kt,le=Gt),J.bezierCurveTo(kt-($t-kt),Gt-(le-Gt),kt+N[0],Gt+N[1],kt+N[2],Gt+N[3]),$t=kt+N[0],le=Gt+N[1],kt+=N[2],Gt+=N[3]},Q:function(J,N){return $t=N[0],le=N[1],J.quadraticCurveTo(N[0],N[1],kt=N[2],Gt=N[3])},q:function(J,N){return J.quadraticCurveTo(N[0]+kt,N[1]+Gt,N[2]+kt,N[3]+Gt),$t=kt+N[0],le=Gt+N[1],kt+=N[2],Gt+=N[3]},T:function(J,N){return null===$t?($t=kt,le=Gt):($t=kt-($t-kt),le=Gt-(le-Gt)),J.quadraticCurveTo($t,le,N[0],N[1]),$t=kt-($t-kt),le=Gt-(le-Gt),kt=N[0],Gt=N[1]},t:function(J,N){return null===$t?($t=kt,le=Gt):($t=kt-($t-kt),le=Gt-(le-Gt)),J.quadraticCurveTo($t,le,kt+N[0],Gt+N[1]),kt+=N[0],Gt+=N[1]},A:function(J,N){return ZA(J,kt,Gt,N),kt=N[5],Gt=N[6]},a:function(J,N){return N[5]+=kt,N[6]+=Gt,ZA(J,kt,Gt,N),kt=N[5],Gt=N[6]},L:function(J,N){return $t=le=null,J.lineTo(kt=N[0],Gt=N[1])},l:function(J,N){return $t=le=null,J.lineTo(kt+=N[0],Gt+=N[1])},H:function(J,N){return $t=le=null,J.lineTo(kt=N[0],Gt)},h:function(J,N){return $t=le=null,J.lineTo(kt+=N[0],Gt)},V:function(J,N){return $t=le=null,J.lineTo(kt,Gt=N[0])},v:function(J,N){return $t=le=null,J.lineTo(kt,Gt+=N[0])},Z:function(J){return J.closePath(),kt=vn,Gt=pn},z:function(J){return J.closePath(),kt=vn,Gt=pn}},ZA=function(J,N,Z,K){var Zt,fA=z(K,7),jt=xA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],N,Z));try{for(jt.s();!(Zt=jt.n()).done;){var Ce=tt.apply(void 0,P(Zt.value));J.bezierCurveTo.apply(J,P(Ce))}}catch(me){jt.e(me)}finally{jt.f()}},YA=function(J,N,Z,K,fA,mA,At,rt,ht){var Qt=At*(Math.PI/180),vt=Math.sin(Qt),Ft=Math.cos(Qt);Z=Math.abs(Z),K=Math.abs(K);var St=($t=Ft*(rt-J)*.5+vt*(ht-N)*.5)*$t/(Z*Z)+(le=Ft*(ht-N)*.5-vt*(rt-J)*.5)*le/(K*K);St>1&&(Z*=St=Math.sqrt(St),K*=St);var jt=Ft/Z,Zt=vt/Z,Ee=-vt/K,Ce=Ft/K,me=jt*rt+Zt*ht,sn=Ee*rt+Ce*ht,pe=jt*J+Zt*N,We=Ee*J+Ce*N,Ze=1/((pe-me)*(pe-me)+(We-sn)*(We-sn))-.25;Ze<0&&(Ze=0);var dn=Math.sqrt(Ze);mA===fA&&(dn=-dn);var Xn=.5*(me+pe)-dn*(We-sn),Ar=.5*(sn+We)+dn*(pe-me),Pn=Math.atan2(sn-Ar,me-Xn),jn=Math.atan2(We-Ar,pe-Xn)-Pn;jn<0&&1===mA?jn+=2*Math.PI:jn>0&&0===mA&&(jn-=2*Math.PI);for(var sr=Math.ceil(Math.abs(jn/(.5*Math.PI+.001))),Ir=[],tr=0;tr0&&(K[K.length]=+fA),Z[Z.length]={cmd:N,args:K},K=[],fA="",mA=!1),N=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&mA){if(0===fA.length)continue;K.length===At?(Z[Z.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA,mA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(mA=!0)}}catch(vt){rt.e(vt)}finally{rt.f()}return fA.length>0&&(K.length===At?(Z[Z.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA),Z[Z.length]={cmd:N,args:K},Z}(Z);!function(J,N){kt=Gt=$t=le=vn=pn=0;for(var Z=0;Z1&&void 0!==arguments[1]?arguments[1]:{},Z=J;if(Array.isArray(J)||(J=[J,N.space||J]),!J.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(Z),", ").concat(JSON.stringify(N),") invalid, lengths must be numeric and greater than zero"));return J=J.map(PA).join(" "),this.addContent("[".concat(J,"] ").concat(PA(N.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(J,N){return this.addContent("".concat(PA(J)," ").concat(PA(N)," m"))},lineTo:function(J,N){return this.addContent("".concat(PA(J)," ").concat(PA(N)," l"))},bezierCurveTo:function(J,N,Z,K,fA,mA){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(Z)," ").concat(PA(K)," ").concat(PA(fA)," ").concat(PA(mA)," c"))},quadraticCurveTo:function(J,N,Z,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(Z)," ").concat(PA(K)," v"))},rect:function(J,N,Z,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(Z)," ").concat(PA(K)," re"))},roundedRect:function(J,N,Z,K,fA){null==fA&&(fA=0);var mA=(fA=Math.min(fA,.5*Z,.5*K))*(1-LA);return this.moveTo(J+fA,N),this.lineTo(J+Z-fA,N),this.bezierCurveTo(J+Z-mA,N,J+Z,N+mA,J+Z,N+fA),this.lineTo(J+Z,N+K-fA),this.bezierCurveTo(J+Z,N+K-mA,J+Z-mA,N+K,J+Z-fA,N+K),this.lineTo(J+fA,N+K),this.bezierCurveTo(J+mA,N+K,J,N+K-mA,J,N+K-fA),this.lineTo(J,N+fA),this.bezierCurveTo(J,N+mA,J+mA,N,J+fA,N),this.closePath()},ellipse:function(J,N,Z,K){null==K&&(K=Z);var fA=Z*LA,mA=K*LA,At=(J-=Z)+2*Z,rt=(N-=K)+2*K,ht=J+Z,Qt=N+K;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-mA,ht-fA,N,ht,N),this.bezierCurveTo(ht+fA,N,At,Qt-mA,At,Qt),this.bezierCurveTo(At,Qt+mA,ht+fA,rt,ht,rt),this.bezierCurveTo(ht-fA,rt,J,Qt+mA,J,Qt),this.closePath()},circle:function(J,N,Z){return this.ellipse(J,N,Z)},arc:function(J,N,Z,K,fA,mA){null==mA&&(mA=!1);var At=2*Math.PI,rt=.5*Math.PI,ht=fA-K;Math.abs(ht)>At?ht=At:0!==ht&&mA!==ht<0&&(ht=(mA?-1:1)*At+ht);var vt=Math.ceil(Math.abs(ht)/rt),Ft=ht/vt,St=Ft/rt*LA*Z,jt=K,Zt=-Math.sin(jt)*St,Ee=Math.cos(jt)*St,Ce=J+Math.cos(jt)*Z,me=N+Math.sin(jt)*Z;this.moveTo(Ce,me);for(var sn=0;sn1&&void 0!==arguments[1]?arguments[1]:{},K=J*Math.PI/180,fA=Math.cos(K),mA=Math.sin(K),At=Z=0;if(null!=N.origin){var rt=z(N.origin,2),Qt=(At=rt[0])*mA+(Z=rt[1])*fA;At-=At*fA-Z*mA,Z-=Qt}return this.transform(fA,mA,-mA,fA,At,Z)},scale:function(J,N){var K,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==N&&(N=J),"object"==typeof N&&(Z=N,N=J);var fA=K=0;if(null!=Z.origin){var mA=z(Z.origin,2);fA=mA[0],K=mA[1],fA-=J*fA,K-=N*K}return this.transform(J,0,0,N,fA,K)}},$A={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},zA=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/),ot=function(){function IA(J){f(this,IA),this.contents=J,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var N=0;N<=255;N++)this.charWidths[N]=this.glyphWidths[zA[N]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(Z){return+Z}),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}return w(IA,null,[{key:"open",value:function(N){return new IA(e.readFileSync(N,"utf8"))}}]),w(IA,[{key:"parse",value:function(){var K,N="",Z=xA(this.contents.split("\n"));try{for(Z.s();!(K=Z.n()).done;){var mA,At,fA=K.value;if(mA=fA.match(/^Start(\w+)/))N=mA[1];else if(mA=fA.match(/^End(\w+)/))N="";else switch(N){case"FontMetrics":var rt=(mA=fA.match(/(^\w+)\s+(.*)/))[1],ht=mA[2];(At=this.attributes[rt])?(Array.isArray(At)||(At=this.attributes[rt]=[At]),At.push(ht)):this.attributes[rt]=ht;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Qt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Qt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(mA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[mA[1]+"\0"+mA[2]]=parseInt(mA[3]))}}}catch(vt){Z.e(vt)}finally{Z.f()}}},{key:"encodeText",value:function(N){for(var Z=[],K=0,fA=N.length;K>8,rt=0;this.font.post.isFixedPitch&&(rt|=1),1<=At&&At<=7&&(rt|=2),rt|=4,10===At&&(rt|=8),this.font.head.macStyle.italic&&(rt|=64);var Qt=[1,2,3,4,5,6].map(function(Zt){return String.fromCharCode((K.id.charCodeAt(Zt)||73)+17)}).join("")+"+"+this.font.postscriptName,vt=this.font.bbox,Ft=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:rt,FontBBox:[vt.minX*this.scale,vt.minY*this.scale,vt.maxX*this.scale,vt.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});fA?Ft.data.FontFile3=mA:Ft.data.FontFile2=mA,Ft.end();var St={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:Ft,W:[0,this.widths]};fA||(St.Subtype="CIDFontType2",St.CIDToGIDMap="Identity");var jt=this.document.ref(St);return jt.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[jt],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var At,K=this.document.ref(),fA=[],mA=xA(this.unicode);try{for(mA.s();!(At=mA.n()).done;){var vt,ht=[],Qt=xA(At.value);try{for(Qt.s();!(vt=Qt.n()).done;){var Ft=vt.value;Ft>65535&&(ht.push(Pt((Ft-=65536)>>>10&1023|55296)),Ft=56320|1023&Ft),ht.push(Pt(Ft))}}catch(St){Qt.e(St)}finally{Qt.f()}fA.push("<".concat(ht.join(" "),">"))}}catch(St){mA.e(St)}finally{mA.f()}return K.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n1 beginbfrange\n<0000> <".concat(Pt(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),K}}]),N}(VA),qt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(N,Z,K,fA){var mA;if("string"==typeof Z){if(Nt.isStandardFont(Z))return new Nt(N,Z,fA);Z=e.readFileSync(Z)}if(i.isBuffer(Z)?mA=a.default.create(Z,K):Z instanceof Uint8Array?mA=a.default.create(i.from(Z),K):Z instanceof ArrayBuffer&&(mA=a.default.create(i.from(new Uint8Array(Z)),K)),null==mA)throw new Error("Not a supported font format or standard PDF font.");return new Kt(N,mA,fA)}}]),IA}(),ie={initFonts:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},J&&this.font(J)},font:function(J,N,Z){var K,fA;if("number"==typeof N&&(Z=N,N=null),"string"==typeof J&&this._registeredFonts[J]){K=J;var mA=this._registeredFonts[J];J=mA.src,N=mA.family}else"string"!=typeof(K=N||J)&&(K=null);if(null!=Z&&this.fontSize(Z),fA=this._fontFamilies[K])return this._font=fA,this;var At="F".concat(++this._fontCount);return this._font=qt.open(this,J,N,At),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(K&&(this._fontFamilies[K]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(J){return this._fontSize=J,this},currentLineHeight:function(J){return null==J&&(J=!1),this._font.lineHeight(this._fontSize,J)},registerFont:function(J,N,Z){return this._registeredFonts[J]={src:N,family:Z},this}},Ct=function(IA){y(N,IA);var J=F(N);function N(Z,K){var fA;return f(this,N),(fA=J.call(this)).document=Z,fA.indent=K.indent||0,fA.characterSpacing=K.characterSpacing||0,fA.wordSpacing=0===K.wordSpacing,fA.columns=K.columns||1,fA.columnGap=null!=K.columnGap?K.columnGap:18,fA.lineWidth=(K.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=K.ellipsis,fA.continuedX=0,fA.features=K.features,null!=K.height?(fA.height=K.height,fA.maxY=fA.startY+K.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(mA){var At=fA.continuedX||fA.indent;return fA.document.x+=At,fA.lineWidth-=At,fA.once("line",function(){if(fA.document.x-=At,fA.lineWidth+=At,mA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!mA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(mA){var At=mA.align;return"justify"===At&&(mA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=mA.paragraphGap||0,mA.align=At,fA.lastLine=!1})}),fA}return w(N,[{key:"wordWidth",value:function(K){return this.document.widthOfString(K,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(K,fA){for(var mA,At=new E.default(K),rt=null,ht=Object.create(null);mA=At.nextBreak();){var Qt,vt=K.slice((null!=rt?rt.position:void 0)||0,mA.position),Ft=null!=ht[vt]?ht[vt]:ht[vt]=this.wordWidth(vt);if(Ft>this.lineWidth+this.continuedX)for(var St=rt,jt={};vt.length;){var Zt,Ee;Ft>this.spaceLeft?(Zt=Math.ceil(this.spaceLeft/(Ft/vt.length)),Ee=(Ft=this.wordWidth(vt.slice(0,Zt)))<=this.spaceLeft&&Ztthis.spaceLeft&&Zt>0;Ce||Ee;)Ce?Ce=(Ft=this.wordWidth(vt.slice(0,--Zt)))>this.spaceLeft&&Zt>0:(Ce=(Ft=this.wordWidth(vt.slice(0,++Zt)))>this.spaceLeft&&Zt>0,Ee=Ft<=this.spaceLeft&&Ztthis.maxY||At>this.maxY)&&this.nextSection();var rt="",ht=0,Qt=0,vt=0,Ft=this.document.y,St=function(){return fA.textWidth=ht+mA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=mA.lineWidth,Ft=mA.document.y,mA.emit("line",rt,fA,mA),vt++};return this.emit("sectionStart",fA,this),this.eachWord(K,function(jt,Zt,Ee,Ce){if((null==Ce||Ce.required)&&(mA.emit("firstLine",fA,mA),mA.spaceLeft=mA.lineWidth),Zt<=mA.spaceLeft&&(rt+=jt,ht+=Zt,Qt++),Ee.required||Zt>mA.spaceLeft){var me=mA.document.currentLineHeight(!0);if(null!=mA.height&&mA.ellipsis&&mA.document.y+2*me>mA.maxY&&mA.column>=mA.columns){for(!0===mA.ellipsis&&(mA.ellipsis="\u2026"),rt=rt.replace(/\s+$/,""),ht=mA.wordWidth(rt+mA.ellipsis);rt&&ht>mA.lineWidth;)rt=rt.slice(0,-1).replace(/\s+$/,""),ht=mA.wordWidth(rt+mA.ellipsis);ht<=mA.lineWidth&&(rt+=mA.ellipsis),ht=mA.wordWidth(rt)}return Ee.required&&(Zt>mA.spaceLeft&&(St(),rt=jt,ht=Zt,Qt=1),mA.emit("lastLine",fA,mA)),St(),mA.document.y+me>mA.maxY&&!mA.nextSection()?(Qt=0,rt="",!1):Ee.required?(mA.spaceLeft=mA.lineWidth,rt="",ht=0,Qt=0):(mA.spaceLeft=mA.lineWidth-Zt,rt=jt,ht=Zt,Qt=1)}return mA.spaceLeft-=Zt}),Qt>0&&(this.emit("lastLine",fA,this),St()),this.emit("sectionEnd",fA,this),!0===fA.continued?(vt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=Ft):this.document.x=this.startX}},{key:"nextSection",value:function(K){if(this.emit("sectionEnd",K,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,P(this.document._fillColor)),this.emit("pageBreak",K,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",K,this);return this.emit("sectionStart",K,this),!0}}]),N}(B.EventEmitter),Rt=bA.number,Wt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(J){return this._lineGap=J,this},moveDown:function(J){return null==J&&(J=1),this.y+=this.currentLineHeight(!0)*J+this._lineGap,this},moveUp:function(J){return null==J&&(J=1),this.y-=this.currentLineHeight(!0)*J+this._lineGap,this},_text:function(J,N,Z,K,fA){var mA=this;K=this._initOptions(N,Z,K),J=null==J?"":"".concat(J),K.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var At=function(){K.structParent&&K.structParent.add(mA.struct(K.structType||"P",[mA.markStructureContent(K.structType||"P")]))};if(K.width){var rt=this._wrapper;rt||((rt=new Ct(this,K)).on("line",fA),rt.on("firstLine",At)),this._wrapper=K.continued?rt:null,this._textOptions=K.continued?K:null,rt.wrap(J,K)}else{var Qt,ht=xA(J.split("\n"));try{for(ht.s();!(Qt=ht.n()).done;){var vt=Qt.value;At(),fA(vt,K)}}catch(Ft){ht.e(Ft)}finally{ht.f()}}return this},text:function(J,N,Z,K){return this._text(J,N,Z,K,this._line)},widthOfString:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(J,this._fontSize,N.features)+(N.characterSpacing||0)*(J.length-1)},heightOfString:function(J,N){var Z=this,K=this.x,fA=this.y;(N=this._initOptions(N)).height=1/0;var mA=N.lineGap||this._lineGap||0;this._text(J,this.x,this.y,N,function(){return Z.y+=Z.currentLineHeight(!0)+mA});var At=this.y-fA;return this.x=K,this.y=fA,At},list:function(J,N,Z,K,fA){var mA=this,At=(K=this._initOptions(N,Z,K)).listType||"bullet",rt=Math.round(this._font.ascender/1e3*this._fontSize),ht=rt/2,Qt=K.bulletRadius||rt/3,vt=K.textIndent||("bullet"===At?5*Qt:2*rt),Ft=K.bulletIndent||("bullet"===At?8*Qt:2*rt),St=1,jt=[],Zt=[],Ee=[];!function pe(We){for(var Qn=1,Ze=0;Ze0&&void 0!==arguments[0]?arguments[0]:{},N=arguments.length>1?arguments[1]:void 0,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(Z=J,J=null);var K=Object.assign({},Z);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===K[fA]&&(K[fA]=this._textOptions[fA]);return null!=J&&(this.x=J),null!=N&&(this.y=N),!1!==K.lineBreak&&(null==K.width&&(K.width=this.page.width-this.x-this.page.margins.right),K.width=Math.max(K.width,0)),K.columns||(K.columns=0),null==K.columnGap&&(K.columnGap=18),K},_line:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Z=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,N);var K=N.lineGap||this._lineGap||0;return Z?this.y+=this.currentLineHeight(!0)+K:this.x+=this.widthOfString(J)},_fragment:function(J,N,Z,K){var mA,At,rt,ht,Qt,vt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var St=K.wordSpacing||0,jt=K.characterSpacing||0;if(K.width)switch(K.align||"left"){case"right":Qt=this.widthOfString(J.replace(/\s+$/,""),K),N+=K.lineWidth-Qt;break;case"center":N+=K.lineWidth/2-K.textWidth/2;break;case"justify":vt=J.trim().split(/\s+/),Qt=this.widthOfString(J.replace(/\s+/g,""),K);var Zt=this.widthOfString(" ")+jt;St=Math.max(0,(K.lineWidth-Qt)/Math.max(1,vt.length-1)-Zt)}if("number"==typeof K.baseline)mA=-K.baseline;else{switch(K.baseline){case"svg-middle":mA=.5*this._font.xHeight;break;case"middle":case"svg-central":mA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":mA=this._font.descender;break;case"alphabetic":mA=0;break;case"mathematical":mA=.5*this._font.ascender;break;case"hanging":mA=.8*this._font.ascender;break;default:mA=this._font.ascender}mA=mA/1e3*this._fontSize}var We,Ee=K.textWidth+St*(K.wordCount-1)+jt*(J.length-1);if(null!=K.link&&this.link(N,Z,Ee,this.currentLineHeight(),K.link),null!=K.goTo&&this.goTo(N,Z,Ee,this.currentLineHeight(),K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,Z,null),K.underline){this.save(),K.stroke||this.strokeColor.apply(this,P(this._fillColor||[]));var Ce=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ce);var me=Z+this.currentLineHeight()-Ce;this.moveTo(N,me),this.lineTo(N+Ee,me),this.stroke(),this.restore()}if(K.strike){this.save(),K.stroke||this.strokeColor.apply(this,P(this._fillColor||[]));var sn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(sn);var pe=Z+this.currentLineHeight()/2;this.moveTo(N,pe),this.lineTo(N+Ee,pe),this.stroke(),this.restore()}this.save(),K.oblique&&(We="number"==typeof K.oblique?-Math.tan(K.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,N,Z),this.transform(1,0,We,1,-We*mA,0),this.transform(1,0,0,1,-N,-Z)),this.transform(1,0,0,-1,0,this.page.height),Z=this.page.height-Z-mA,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 ".concat(Rt(N)," ").concat(Rt(Z)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Rt(this._fontSize)," Tf"));var Qn=K.fill&&K.stroke?2:K.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),jt&&this.addContent("".concat(Rt(jt)," Tc")),St){vt=J.trim().split(/\s+/),St+=this.widthOfString(" ")+jt,St*=1e3/this._fontSize,At=[],ht=[];var dn,Ze=xA(vt);try{for(Ze.s();!(dn=Ze.n()).done;){var Pn=z(this._font.encode(dn.value,K.features),2),jn=Pn[1];At=At.concat(Pn[0]),ht=ht.concat(jn);var sr={},Ir=ht[ht.length-1];for(var tr in Ir)sr[tr]=Ir[tr];sr.xAdvance+=St,ht[ht.length-1]=sr}}catch(Wr){Ze.e(Wr)}finally{Ze.f()}}else{var qn=z(this._font.encode(J,K.features),2);At=qn[0],ht=qn[1]}var kr=this._fontSize/1e3,vr=[],jr=0,Kr=!1,fi=function(_n){if(jr<_n){var Ji=At.slice(jr,_n).join(""),Oi=ht[_n-1].xAdvance-ht[_n-1].advanceWidth;vr.push("<".concat(Ji,"> ").concat(Rt(-Oi)))}return jr=_n},Vr=function(_n){if(fi(_n),vr.length>0)return fA.addContent("[".concat(vr.join(" "),"] TJ")),vr.length=0};for(rt=0;rt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof N&&(K=N,N=null),N=null!=(Qt=null!=N?N:K.x)?Qt:this.x,Z=null!=(vt=null!=Z?Z:K.y)?vt:this.y,"string"==typeof J&&(rt=this._imageRegistry[J]),rt||(rt=J.width&&J.height?J:this.openImage(J)),rt.obj||rt.embed(this),null==this.page.xobjects[rt.label]&&(this.page.xobjects[rt.label]=rt.obj);var Ft=K.width||rt.width,St=K.height||rt.height;if(K.width&&!K.height){var jt=Ft/rt.width;Ft=rt.width*jt,St=rt.height*jt}else if(K.height&&!K.width){var Zt=St/rt.height;Ft=rt.width*Zt,St=rt.height*Zt}else if(K.scale)Ft=rt.width*K.scale,St=rt.height*K.scale;else if(K.fit){var Ee=z(K.fit,2);(ht=rt.width/rt.height)>(At=Ee[0])/(fA=Ee[1])?(Ft=At,St=At/ht):(St=fA,Ft=fA*ht)}else if(K.cover){var Ce=z(K.cover,2);(ht=rt.width/rt.height)>(At=Ce[0])/(fA=Ce[1])?(St=fA,Ft=fA*ht):(Ft=At,St=At/ht)}return(K.fit||K.cover)&&("center"===K.align?N=N+At/2-Ft/2:"right"===K.align&&(N=N+At-Ft),"center"===K.valign?Z=Z+fA/2-St/2:"bottom"===K.valign&&(Z=Z+fA-St)),null!=K.link&&this.link(N,Z,Ft,St,K.link),null!=K.goTo&&this.goTo(N,Z,Ft,St,K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,Z,null),this.y===Z&&(this.y+=St),this.save(),this.transform(Ft,0,0,-St,N,Z+St),this.addContent("/".concat(rt.label," Do")),this.restore(),this},openImage:function(J){var N;return"string"==typeof J&&(N=this._imageRegistry[J]),N||(N=ue.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=N)),N}},Je={annotate:function(J,N,Z,K,fA){for(var mA in fA.Type="Annot",fA.Rect=this._convertRect(J,N,Z,K),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var At=fA[mA];fA[mA[0].toUpperCase()+mA.slice(1)]=At}var rt=this.ref(fA);return this.page.annotations.push(rt),rt.end(),this},note:function(J,N,Z,K,fA){var mA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return mA.Subtype="Text",mA.Contents=new String(fA),mA.Name="Comment",null==mA.color&&(mA.color=[243,223,92]),this.annotate(J,N,Z,K,mA)},goTo:function(J,N,Z,K,fA){var mA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return mA.Subtype="Link",mA.A=this.ref({S:"GoTo",D:new String(fA)}),mA.A.end(),this.annotate(J,N,Z,K,mA)},link:function(J,N,Z,K,fA){var mA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(mA.Subtype="Link","number"==typeof fA){var At=this._root.data.Pages.data;if(!(fA>=0&&fA4&&void 0!==arguments[4]?arguments[4]:{},At=z(this._convertRect(J,N,Z,K),4),rt=At[0],ht=At[1],Qt=At[2],vt=At[3];return fA.QuadPoints=[rt,vt,Qt,vt,rt,ht,Qt,ht],fA.Contents=new String,this.annotate(J,N,Z,K,fA)},highlight:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(J,N,Z,K,fA)},underline:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,N,Z,K,fA)},strike:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,N,Z,K,fA)},lineAnnotation:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[J,this.page.height-N,Z,this.page.height-K],this.annotate(J,N,Z,K,fA)},rectAnnotation:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,N,Z,K,fA)},ellipseAnnotation:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,N,Z,K,fA)},textAnnotation:function(J,N,Z,K,fA){var mA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return mA.Subtype="FreeText",mA.Contents=new String(fA),mA.DA=new String,this.annotate(J,N,Z,K,mA)},fileAnnotation:function(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},At=this.file(fA.src,Object.assign({hidden:!0},fA));return mA.Subtype="FileAttachment",mA.FS=At,mA.Contents?mA.Contents=new String(mA.Contents):At.data.Desc&&(mA.Contents=At.data.Desc),this.annotate(J,N,Z,K,mA)},_convertRect:function(J,N,Z,K){var fA=N;N+=K;var mA=J+Z,At=z(this._ctm,6),rt=At[0],ht=At[1],Qt=At[2],vt=At[3],Ft=At[4],St=At[5];return[J=rt*J+Qt*N+Ft,N=ht*J+vt*N+St,mA=rt*mA+Qt*fA+Ft,fA=ht*mA+vt*fA+St]}},Ue=function(){function IA(J,N,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,IA),this.document=J,this.options=fA,this.outlineData={},null!==K&&(this.outlineData.Dest=[K.dictionary,"Fit"]),null!==N&&(this.outlineData.Parent=N),null!==Z&&(this.outlineData.Title=new String(Z)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(IA,[{key:"addItem",value:function(N){var K=new IA(this.document,this.dictionary,N,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(K),K}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var Z=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=Z.dictionary;for(var K=0,fA=this.children.length;K0&&(mA.outlineData.Prev=this.children[K-1].dictionary),K0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Pe=function(){function IA(J,N){f(this,IA),this.refs=[{pageRef:J,mcid:N}]}return w(IA,[{key:"push",value:function(N){var Z=this;N.refs.forEach(function(K){return Z.refs.push(K)})}}]),IA}(),nn=function(){function IA(J,N){var Z=this,K=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,IA),this.document=J,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=J.ref({S:N});var mA=this.dictionary.data;(Array.isArray(K)||this._isValidChild(K))&&(fA=K,K={}),void 0!==K.title&&(mA.T=new String(K.title)),void 0!==K.lang&&(mA.Lang=new String(K.lang)),void 0!==K.alt&&(mA.Alt=new String(K.alt)),void 0!==K.expanded&&(mA.E=new String(K.expanded)),void 0!==K.actual&&(mA.ActualText=new String(K.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(At){return Z.add(At)}),this.end())}return w(IA,[{key:"add",value:function(N){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(N))throw new Error("Invalid structure element child");return N instanceof IA&&(N.setParent(this.dictionary),this._attached&&N.setAttached()),N instanceof Pe&&this._addContentToParentTree(N),"function"==typeof N&&this._attached&&(N=this._contentForClosure(N)),this._children.push(N),this}},{key:"_addContentToParentTree",value:function(N){var Z=this;N.refs.forEach(function(K){var fA=K.pageRef,mA=K.mcid;Z.document.getStructParentTree().get(fA.data.StructParents)[mA]=Z.dictionary})}},{key:"setParent",value:function(N){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=N,this._flush()}},{key:"setAttached",value:function(){var N=this;this._attached||(this._children.forEach(function(Z,K){Z instanceof IA&&Z.setAttached(),"function"==typeof Z&&(N._children[K]=N._contentForClosure(Z))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(N){return N instanceof IA}).forEach(function(N){return N.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(N){return N instanceof IA||N instanceof Pe||"function"==typeof N}},{key:"_contentForClosure",value:function(N){var Z=this.document.markStructureContent(this.dictionary.data.S);return N(),this.document.endMarkedContent(),this._addContentToParentTree(Z),Z}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(N){return"function"!=typeof N&&(!(N instanceof IA)||N._isFlushable())})}},{key:"_flush",value:function(){var N=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(Z){return N._flushChild(Z)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(N){var Z=this;N instanceof IA&&this.dictionary.data.K.push(N.dictionary),N instanceof Pe&&N.refs.forEach(function(K){var fA=K.pageRef,mA=K.mcid;Z.dictionary.data.Pg||(Z.dictionary.data.Pg=fA),Z.dictionary.data.K.push(Z.dictionary.data.Pg===fA?mA:{Type:"MCR",Pg:fA,MCID:mA})})}}]),IA}(),Fn=function(IA){y(N,IA);var J=F(N);function N(){return f(this,N),J.apply(this,arguments)}return w(N,[{key:"_compareKeys",value:function(K,fA){return parseInt(K)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(K){return parseInt(K)}}]),N}(_),ln={initMarkings:function(J){this.structChildren=[],J.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===J||N&&N.mcid){var Z=0;for(this.page.markings.forEach(function(fA){(Z||fA.structContent||"Artifact"===fA.tag)&&Z++});Z--;)this.endMarkedContent()}if(!N)return this.page.markings.push({tag:J}),this.addContent("/".concat(J," BMC")),this;this.page.markings.push({tag:J,options:N});var K={};return void 0!==N.mcid&&(K.MCID=N.mcid),"Artifact"===J&&("string"==typeof N.type&&(K.Type=N.type),Array.isArray(N.bbox)&&(K.BBox=[N.bbox[0],this.page.height-N.bbox[3],N.bbox[2],this.page.height-N.bbox[1]]),Array.isArray(N.attached)&&N.attached.every(function(fA){return"string"==typeof fA})&&(K.Attached=N.attached)),"Span"===J&&(N.lang&&(K.Lang=new String(N.lang)),N.alt&&(K.Alt=new String(N.alt)),N.expanded&&(K.E=new String(N.expanded)),N.actual&&(K.ActualText=new String(N.actual))),this.addContent("/".concat(J," ").concat(bA.convert(K)," BDC")),this},markStructureContent:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Z=this.getStructParentTree().get(this.page.structParentTreeKey),K=Z.length;Z.push(null),this.markContent(J,Y(Y({},N),{},{mcid:K}));var fA=new Pe(this.page.dictionary,K);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(J){return new nn(this,J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(J){var N=this.getStructTreeRoot();return J.setParent(N),J.setAttached(),this.structChildren.push(J),N.data.K||(N.data.K=[]),N.data.K.push(J.dictionary),this},initPageMarkings:function(J){var N=this;J.forEach(function(Z){if(Z.structContent){var K=Z.structContent,fA=N.markStructureContent(Z.tag,Z.options);K.push(fA),N.page.markings.slice(-1)[0].structContent=K}else N.markContent(Z.tag,Z.options)})},endPageMarkings:function(J){var N=J.markings;return N.forEach(function(){return J.write("EMC")}),J.markings=[],N},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Fn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var J=this.getStructTreeRoot(),N=J.data.ParentTreeNextKey++;return J.data.ParentTree.add(N,[]),N},endMarkings:function(){var J=this._root.data.StructTreeRoot;J&&(J.end(),this.structChildren.forEach(function(N){return N.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},mn={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},Yn={left:0,center:1,right:2},tn={value:"V",defaultValue:"DV"},En={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},un_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},un_percent={nDec:0,sepComma:!1},$n={initForm:function(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();var J={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};J.DR.Font[this._font.id]=this._font.ref();var N=this.ref(J);return this._root.data.AcroForm=N,this},endAcroForm:function(){var J=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var N=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(Z){N[Z]=J._acroform.fonts[Z]}),this._root.data.AcroForm.data.Fields.forEach(function(Z){J._endChild(Z)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var N=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(Z){N._endChild(Z)}),J.end()),this},formField:function(J){var Z=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),K=this.ref(Z);return this._addToParent(K),K},formAnnotation:function(J,N,Z,K,fA,mA){var rt=this._fieldDict(J,N,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return rt.Subtype="Widget",void 0===rt.F&&(rt.F=4),this.annotate(Z,K,fA,mA,rt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,N,Z,K,fA){return this.formAnnotation(J,"text",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,N,Z,K,fA){return this.formAnnotation(J,"pushButton",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,N,Z,K,fA){return this.formAnnotation(J,"combo",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,N,Z,K,fA){return this.formAnnotation(J,"list",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,N,Z,K,fA){return this.formAnnotation(J,"radioButton",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,N,Z,K,fA){return this.formAnnotation(J,"checkbox",N,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(J){var N=J.data.Parent;return N?(N.data.Kids||(N.data.Kids=[]),N.data.Kids.push(J)):this._root.data.AcroForm.data.Fields.push(J),this},_fieldDict:function(J,N){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var K=Object.assign({},Z);return null!==N&&(K=this._resolveType(N,Z)),K=this._resolveFlags(K),K=this._resolveJustify(K),K=this._resolveFont(K),K=this._resolveStrings(K),K=this._resolveColors(K),(K=this._resolveFormat(K)).T=new String(J),K.parent&&(K.Parent=K.parent,delete K.parent),K},_resolveType:function(J,N){if("text"===J)N.FT="Tx";else if("pushButton"===J)N.FT="Btn",N.pushButton=!0;else if("radioButton"===J)N.FT="Btn",N.radioButton=!0;else if("checkbox"===J)N.FT="Btn";else if("combo"===J)N.FT="Ch",N.combo=!0;else{if("list"!==J)throw new Error("Invalid form annotation type '".concat(J,"'"));N.FT="Ch"}return N},_resolveFormat:function(J){var N=J.format;if(N&&N.type){var Z,K,fA="";if(void 0!==En[N.type])Z="AFSpecial_Keystroke",K="AFSpecial_Format",fA=En[N.type];else{var mA=N.type.charAt(0).toUpperCase()+N.type.slice(1);if(Z="AF".concat(mA,"_Keystroke"),K="AF".concat(mA,"_Format"),"date"===N.type)Z+="Ex",fA=String(N.param);else if("time"===N.type)fA=String(N.param);else if("number"===N.type){var At=Object.assign({},un_number,N);fA=String([String(At.nDec),At.sepComma?"0":"1",'"'+At.negStyle+'"',"null",'"'+At.currency+'"',String(At.currencyPrepend)].join(","))}else if("percent"===N.type){var rt=Object.assign({},un_percent,N);fA=String([String(rt.nDec),rt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(Z,"(").concat(fA,");"))},J.AA.F={S:"JavaScript",JS:new String("".concat(K,"(").concat(fA,");"))}}return delete J.format,J},_resolveColors:function(J){var N=this._normalizeColor(J.backgroundColor);return N&&(J.MK||(J.MK={}),J.MK.BG=N),(N=this._normalizeColor(J.borderColor))&&(J.MK||(J.MK={}),J.MK.BC=N),delete J.backgroundColor,delete J.borderColor,J},_resolveFlags:function(J){var N=0;return Object.keys(J).forEach(function(Z){mn[Z]&&(N|=mn[Z],delete J[Z])}),0!==N&&(J.Ff=J.Ff?J.Ff:0,J.Ff|=N),J},_resolveJustify:function(J){var N=0;return void 0!==J.align&&("number"==typeof Yn[J.align]&&(N=Yn[J.align]),delete J.align),0!==N&&(J.Q=N),J},_resolveFont:function(J){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){J.DR={Font:{}};var N=J.fontSize||0;J.DR.Font[this._font.id]=this._font.ref(),J.DA=new String("/".concat(this._font.id," ").concat(N," Tf 0 g"))}return J},_resolveStrings:function(J){var N=[];function Z(K){if(Array.isArray(K))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};N.name=N.name||J;var K,Z={Type:"EmbeddedFile",Params:{}};if(!J)throw new Error("No src specified");if(i.isBuffer(J))K=J;else if(J instanceof ArrayBuffer)K=i.from(new Uint8Array(J));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(J))fA[1]&&(Z.Subtype=fA[1].replace("/","#2F")),K=i.from(fA[2],"base64");else{if(!(K=e.readFileSync(J)))throw new Error("Could not read contents of file at filepath ".concat(J));var mA=e.statSync(J),rt=mA.ctime;Z.Params.CreationDate=mA.birthtime,Z.Params.ModDate=rt}}N.creationDate instanceof Date&&(Z.Params.CreationDate=N.creationDate),N.modifiedDate instanceof Date&&(Z.Params.ModDate=N.modifiedDate),N.type&&(Z.Subtype=N.type.replace("/","#2F"));var Qt,ht=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(K)));Z.Params.CheckSum=new String(ht),Z.Params.Size=K.byteLength,this._fileRegistry||(this._fileRegistry={});var vt=this._fileRegistry[N.name];vt&&Pr(Z,vt)?Qt=vt.ref:((Qt=this.ref(Z)).end(K),this._fileRegistry[N.name]=Y(Y({},Z),{},{ref:Qt}));var Ft={Type:"Filespec",F:new String(N.name),EF:{F:Qt},UF:new String(N.name)};N.description&&(Ft.Desc=new String(N.description));var St=this.ref(Ft);return St.end(),N.hidden||this.addNamedEmbeddedFile(N.name,St),St}};function Pr(IA,J){return IA.Subtype===J.Subtype&&IA.Params.CheckSum.toString()===J.Params.CheckSum.toString()&&IA.Params.Size===J.Params.Size&&IA.Params.CreationDate===J.Params.CreationDate&&IA.Params.ModDate===J.Params.ModDate}var or=function(IA){y(N,IA);var J=F(N);function N(){var Z,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,N),(Z=J.call(this,K)).options=K,K.pdfVersion){case"1.4":Z.version=1.4;break;case"1.5":Z.version=1.5;break;case"1.6":Z.version=1.6;break;case"1.7":case"1.7ext3":Z.version=1.7;break;default:Z.version=1.3}Z.compress=null==Z.options.compress||Z.options.compress,Z._pageBuffer=[],Z._pageBufferStart=0,Z._offsets=[],Z._waiting=0,Z._ended=!1,Z._offset=0;var fA=Z.ref({Type:"Pages",Count:0,Kids:[]}),mA=Z.ref({Dests:new W});if(Z._root=Z.ref({Type:"Catalog",Pages:fA,Names:mA}),Z.options.lang&&(Z._root.data.Lang=new String(Z.options.lang)),Z.page=null,Z.initColor(),Z.initVector(),Z.initFonts(K.font),Z.initText(),Z.initImages(),Z.initOutline(),Z.initMarkings(K),Z.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},Z.options.info)for(var At in Z.options.info)Z.info[At]=Z.options.info[At];return Z.options.displayTitle&&(Z._root.data.ViewerPreferences=Z.ref({DisplayDocTitle:!0})),Z._id=b.generateFileID(Z.info),Z._security=b.create(R(Z),K),Z._write("%PDF-".concat(Z.version)),Z._write("%\xff\xff\xff\xff"),!1!==Z.options.autoFirstPage&&Z.addPage(),Z}return w(N,[{key:"addPage",value:function(K){null==K&&(K=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,K),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}},{key:"continueOnNewPage",value:function(K){var fA=this.endPageMarkings(this.page);return this.addPage(K),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(K){var fA;if(!(fA=this._pageBuffer[K-this._pageBufferStart]))throw new Error("switchToPage(".concat(K,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var K=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=K.length;var mA,fA=xA(K);try{for(fA.s();!(mA=fA.n()).done;){var At=mA.value;this.endPageMarkings(At),At.end()}}catch(rt){fA.e(rt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(K){for(var fA=arguments.length,mA=new Array(fA>1?fA-1:0),At=1;At>z&q]},getCombiningClass:function(vA){var nA=d.get(vA);return y.combiningClasses[nA>>P&BA]},getScript:function(vA){var nA=d.get(vA);return y.scripts[nA>>eA&pA]},getEastAsianWidth:function(vA){var nA=d.get(vA);return y.eaw[nA>>10&lA]},getNumericValue:function(vA){var nA=d.get(vA),EA=1023&nA;if(0===EA)return null;if(EA<=50)return EA-1;if(EA<480)return((EA>>4)-12)/(1+(15&EA));if(EA<768){nA=(EA>>5)-14;for(var st=2+(31&EA);st>0;)nA*=10,st--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:dA,isPunctuation:SA,isLowerCase:bA,isUpperCase:XA,isTitleCase:X,isWhiteSpace:O,isBaseForm:$,isMark:W});I.default=Q},4781:function(T,I,n){"use strict";n(7042),n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=n(311),s=n(1753).swap32LE;T.exports=function(){function D(S){var F="function"==typeof S.readUInt32BE&&"function"==typeof S.slice;if(F||S instanceof Uint8Array){var z;if(F)this.highStart=S.readUInt32LE(0),this.errorValue=S.readUInt32LE(4),z=S.readUInt32LE(8),S=S.slice(12);else{var P=new DataView(S.buffer);this.highStart=P.getUint32(0,!0),this.errorValue=P.getUint32(4,!0),z=P.getUint32(8,!0),S=S.subarray(12)}S=c(S,new Uint8Array(z)),S=c(S,new Uint8Array(z)),s(S),this.data=new Uint32Array(S.buffer)}else{var eA=S;this.data=eA.data,this.highStart=eA.highStart,this.errorValue=eA.errorValue}}return D.prototype.get=function(F){return F<0||F>1114111?this.errorValue:F<55296||F>56319&&F<=65535?this.data[(this.data[F>>5]<<2)+(31&F)]:F<=65535?this.data[(this.data[2048+(F-55296>>5)]<<2)+(31&F)]:F>11)]+(F>>5&63)]<<2)+(31&F)]:this.data[this.data.length-4]},D}()},1753:function(T,I,n){"use strict";n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=function(a,B,E){var u=a[B];a[B]=a[E],a[E]=u};T.exports={swap32LE:function(a){c&&function(a){for(var B=a.length,E=0;E/)){for(;ot=$A();)VA.childNodes.push(ot),ot.parentNode=VA,VA.textContent+=3===ot.nodeType||4===ot.nodeType?ot.nodeValue:ot.textContent;return(zA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(zA[1]===VA.nodeName||(ae('parseXml: tag not matching, opening "'+VA.nodeName+'" & closing "'+zA[1]+'"'),LA=!0),VA):(ae('parseXml: tag not matching, opening "'+VA.nodeName+'" & not closing'),LA=!0,VA)}if(tt.match(/^\/>/))return VA;ae('parseXml: tag could not be parsed "'+VA.nodeName+'"'),LA=!0}else{if(zA=tt.match(/^/))return new YA(null,8,zA,LA);if(zA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,zA,LA);if(zA=tt.match(/^/))return new YA(null,10,zA,LA);if(zA=tt.match(/^/,!0))return new YA("#cdata-section",4,zA[1],LA);if(zA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,q(zA[1]),LA)}};PA=HA();)1!==PA.nodeType||UA?(1===PA.nodeType||3===PA.nodeType&&""!==PA.nodeValue.trim())&&ae("parseXml: data after document end has been discarded"):UA=PA;return tt.matchAll()&&ae("parseXml: parsing error"),UA}function q(ZA){return ZA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,tt,UA,PA){return tt?String.fromCharCode(parseInt(tt,10)):UA?String.fromCharCode(parseInt(UA,16)):PA&&C[PA]?String.fromCharCode(C[PA]):YA})}function BA(ZA){var YA,tt;return ZA=(ZA||"").trim(),(YA=E[ZA])?tt=[YA.slice(),1]:(YA=ZA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[4]=parseFloat(YA[4]),YA[1]<256&&YA[2]<256&&YA[3]<256&&YA[4]<=1&&(tt=[YA.slice(1,4),YA[4]])):(YA=ZA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=ZA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(YA[1]=2.55*parseFloat(YA[1]),YA[2]=2.55*parseFloat(YA[2]),YA[3]=2.55*parseFloat(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=ZA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?tt=[[parseInt(YA[1],16),parseInt(YA[2],16),parseInt(YA[3],16)],1]:(YA=ZA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(tt=[[17*parseInt(YA[1],16),17*parseInt(YA[2],16),17*parseInt(YA[3],16)],1]),on?on(tt,ZA):tt}function pA(ZA,YA,tt){var UA=ZA[0].slice(),PA=ZA[1]*YA;if(tt){for(var LA=0;LA=0;YA--)ZA=lA(Jn[YA].savedMatrix,ZA);return ZA}function xA(){return(new WA).M(0,0).L(s.page.width,0).L(s.page.width,s.page.height).L(0,s.page.height).transform(FA(gA())).getBoundingBox()}function FA(ZA){var YA=ZA[0]*ZA[3]-ZA[1]*ZA[2];return[ZA[3]/YA,-ZA[1]/YA,-ZA[2]/YA,ZA[0]/YA,(ZA[2]*ZA[5]-ZA[3]*ZA[4])/YA,(ZA[1]*ZA[4]-ZA[0]*ZA[5])/YA]}function _(ZA){var YA=bA(ZA[0]),tt=bA(ZA[1]),UA=bA(ZA[2]),PA=bA(ZA[3]),LA=bA(ZA[4]),HA=bA(ZA[5]);if(SA(YA*PA-tt*UA,0))return[YA,tt,UA,PA,LA,HA]}function MA(ZA){var YA=ZA[2]||0,tt=ZA[1]||0,UA=ZA[0]||0;if(dA(YA,0)&&dA(tt,0))return[];if(dA(YA,0))return[-UA/tt];var PA=tt*tt-4*YA*UA;return SA(PA,0)&&PA>0?[(-tt+Math.sqrt(PA))/(2*YA),(-tt-Math.sqrt(PA))/(2*YA)]:dA(PA,0)?[-tt/(2*YA)]:[]}function uA(ZA,YA){return(YA[0]||0)+(YA[1]||0)*ZA+(YA[2]||0)*ZA*ZA+(YA[3]||0)*ZA*ZA*ZA}function dA(ZA,YA){return Math.abs(ZA-YA)<1e-10}function SA(ZA,YA){return Math.abs(ZA-YA)>=1e-10}function bA(ZA){return ZA>-1e21&&ZA<1e21?Math.round(1e6*ZA)/1e6:0}function X(ZA){for(var UA,YA=new mt((ZA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var PA=UA[1],LA=[],HA=new mt(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)LA.push(Number($A)),HA.matchSeparator();if("matrix"===PA&&6===LA.length)tt=lA(tt,[LA[0],LA[1],LA[2],LA[3],LA[4],LA[5]]);else if("translate"===PA&&2===LA.length)tt=lA(tt,[1,0,0,1,LA[0],LA[1]]);else if("translate"===PA&&1===LA.length)tt=lA(tt,[1,0,0,1,LA[0],0]);else if("scale"===PA&&2===LA.length)tt=lA(tt,[LA[0],0,0,LA[1],0,0]);else if("scale"===PA&&1===LA.length)tt=lA(tt,[LA[0],0,0,LA[0],0,0]);else if("rotate"===PA&&3===LA.length){var zA=LA[0]*Math.PI/180;tt=lA(tt,[1,0,0,1,LA[1],LA[2]],[Math.cos(zA),Math.sin(zA),-Math.sin(zA),Math.cos(zA),0,0],[1,0,0,1,-LA[1],-LA[2]])}else if("rotate"===PA&&1===LA.length){var ot=LA[0]*Math.PI/180;tt=lA(tt,[Math.cos(ot),Math.sin(ot),-Math.sin(ot),Math.cos(ot),0,0])}else if("skewX"===PA&&1===LA.length){var VA=LA[0]*Math.PI/180;tt=lA(tt,[1,0,Math.tan(VA),1,0,0])}else{if("skewY"!==PA||1!==LA.length)return;var Mt=LA[0]*Math.PI/180;tt=lA(tt,[1,Math.tan(Mt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function O(ZA,YA,tt,UA,PA,LA){var HA=(ZA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=HA[1]||HA[4]||"meet",VA=YA/UA,Mt=tt/PA,Nt={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(LA||0),Pt={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(LA||0);return"slice"===$A?Mt=VA=Math.max(VA,Mt):"meet"===$A&&(Mt=VA=Math.min(VA,Mt)),[VA,0,0,Mt,Nt*(YA-UA*VA),Pt*(tt-PA*Mt)]}function $(ZA){var YA=Object.create(null);ZA=(ZA||"").trim().split(/;/);for(var tt=0;tthe&&(Ot=he,he=Be,Be=Ot),_t>ue&&(Ot=ue,ue=_t,_t=Ot);for(var ye=MA(Nt),Je=0;Je=0&&ye[Je]<=1){var Ue=uA(ye[Je],VA);Uehe&&(he=Ue)}for(var Ye=MA(Pt),Pe=0;Pe=0&&Ye[Pe]<=1){var nn=uA(Ye[Pe],Mt);nn<_t&&(_t=nn),nn>ue&&(ue=nn)}return[Be,_t,he,ue]},this.getPointAtLength=function(Ot){if(dA(Ot,0))return this.startPoint;if(dA(Ot,this.totalLength))return this.endPoint;if(!(Ot<0||Ot>this.totalLength))for(var Be=1;Be<=ot;Be++){var _t=Kt[Be-1],he=Kt[Be];if(_t<=Ot&&Ot<=he){var ue=(Be-(he-Ot)/(he-_t))/ot,ye=uA(ue,VA),Je=uA(ue,Mt),Ue=uA(ue,Nt),Ye=uA(ue,Pt);return[ye,Je,Math.atan2(Ye,Ue)]}}}},OA=function(YA,tt,UA,PA){this.totalLength=Math.sqrt((UA-YA)*(UA-YA)+(PA-tt)*(PA-tt)),this.startPoint=[YA,tt,Math.atan2(PA-tt,UA-YA)],this.endPoint=[UA,PA,Math.atan2(PA-tt,UA-YA)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){var HA=LA/this.totalLength||0;return[this.startPoint[0]+HA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+HA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},WA=function ZA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var LA,HA,$A,YA=0,tt=0,UA=0,PA=0;this.move=function(zA,ot){return YA=UA=zA,tt=PA=ot,null},this.line=function(zA,ot){var VA=new OA(UA,PA,zA,ot);return UA=zA,PA=ot,VA},this.curve=function(zA,ot,VA,Mt,Nt,Pt){var Kt=new Et(UA,PA,zA,ot,VA,Mt,Nt,Pt);return UA=Nt,PA=Pt,Kt},this.close=function(){var zA=new OA(UA,PA,YA,tt);return UA=YA,PA=tt,zA},this.addCommand=function(zA){this.pathCommands.push(zA);var ot=this[zA[0]].apply(this,zA.slice(3));ot&&(ot.hasStart=zA[1],ot.hasEnd=zA[2],this.startPoint=this.startPoint||ot.startPoint,this.endPoint=ot.endPoint,this.pathSegments.push(ot),this.totalLength+=ot.totalLength)},this.M=function(zA,ot){return this.addCommand(["move",!0,!0,zA,ot]),LA="M",this},this.m=function(zA,ot){return this.M(UA+zA,PA+ot)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),LA="Z",this},this.L=function(zA,ot){return this.addCommand(["line",!0,!0,zA,ot]),LA="L",this},this.l=function(zA,ot){return this.L(UA+zA,PA+ot)},this.H=function(zA){return this.L(zA,PA)},this.h=function(zA){return this.L(UA+zA,PA)},this.V=function(zA){return this.L(UA,zA)},this.v=function(zA){return this.L(UA,PA+zA)},this.C=function(zA,ot,VA,Mt,Nt,Pt){return this.addCommand(["curve",!0,!0,zA,ot,VA,Mt,Nt,Pt]),LA="C",HA=VA,$A=Mt,this},this.c=function(zA,ot,VA,Mt,Nt,Pt){return this.C(UA+zA,PA+ot,UA+VA,PA+Mt,UA+Nt,PA+Pt)},this.S=function(zA,ot,VA,Mt){return this.C(UA+("C"===LA?UA-HA:0),PA+("C"===LA?PA-$A:0),zA,ot,VA,Mt)},this.s=function(zA,ot,VA,Mt){return this.C(UA+("C"===LA?UA-HA:0),PA+("C"===LA?PA-$A:0),UA+zA,PA+ot,UA+VA,PA+Mt)},this.Q=function(zA,ot,VA,Mt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(zA-UA),PA+2/3*(ot-PA),VA+2/3*(zA-VA),Mt+2/3*(ot-Mt),VA,Mt]),LA="Q",HA=zA,$A=ot,this},this.q=function(zA,ot,VA,Mt){return this.Q(UA+zA,PA+ot,UA+VA,PA+Mt)},this.T=function(zA,ot){return this.Q(UA+("Q"===LA?UA-HA:0),PA+("Q"===LA?PA-$A:0),zA,ot)},this.t=function(zA,ot){return this.Q(UA+("Q"===LA?UA-HA:0),PA+("Q"===LA?PA-$A:0),UA+zA,PA+ot)},this.A=function(zA,ot,VA,Mt,Nt,Pt,Kt){if(dA(zA,0)||dA(ot,0))this.addCommand(["line",!0,!0,Pt,Kt]);else{VA*=Math.PI/180,zA=Math.abs(zA),ot=Math.abs(ot),Mt=1*!!Mt,Nt=1*!!Nt;var qt=Math.cos(VA)*(UA-Pt)/2+Math.sin(VA)*(PA-Kt)/2,ie=Math.cos(VA)*(PA-Kt)/2-Math.sin(VA)*(UA-Pt)/2,Ct=qt*qt/(zA*zA)+ie*ie/(ot*ot);Ct>1&&(zA*=Math.sqrt(Ct),ot*=Math.sqrt(Ct));var Rt=Math.sqrt(Math.max(0,zA*zA*ot*ot-zA*zA*ie*ie-ot*ot*qt*qt)/(zA*zA*ie*ie+ot*ot*qt*qt)),Wt=(Mt===Nt?-1:1)*Rt*zA*ie/ot,Ot=(Mt===Nt?1:-1)*Rt*ot*qt/zA,Be=Math.cos(VA)*Wt-Math.sin(VA)*Ot+(UA+Pt)/2,_t=Math.sin(VA)*Wt+Math.cos(VA)*Ot+(PA+Kt)/2,he=Math.atan2((ie-Ot)/ot,(qt-Wt)/zA),ue=Math.atan2((-ie-Ot)/ot,(-qt-Wt)/zA);0===Nt&&ue-he>0?ue-=2*Math.PI:1===Nt&&ue-he<0&&(ue+=2*Math.PI);for(var ye=Math.ceil(Math.abs(ue-he)/(Math.PI/Hn)),Je=0;JezA[2]&&(zA[2]=Mt[2]),Mt[1]zA[3]&&(zA[3]=Mt[3]);return zA[0]===1/0&&(zA[0]=0),zA[1]===1/0&&(zA[1]=0),zA[2]===-1/0&&(zA[2]=0),zA[3]===-1/0&&(zA[3]=0),zA},this.getPointAtLength=function(zA){if(zA>=0&&zA<=this.totalLength){for(var ot,VA=0;VAPA.selector.specificity||(YA[LA]=PA.css[LA],tt[LA]=PA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(LA){if("function"==typeof YA.getAttribute)return YA.getAttribute(LA)},this.resolveUrl=function(LA){var HA=(LA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],zA=HA[2]||HA[4]||HA[6]||HA[8];if(zA){if(!$A){var ot=l.getElementById(zA);if(ot)return-1===this.stack.indexOf(ot)?ot:void ae('SVGtoPDF: loop of circular references for id "'+zA+'"')}if(An){var VA=kt[$A];if(!VA){(function XA(ZA){return"object"==typeof ZA&&null!==ZA&&"number"==typeof ZA.length})(VA=An($A))||(VA=[VA]);for(var Mt=0;Mt=0&&$A[3]>=0?$A:HA},this.getPercent=function(LA,HA){var $A=this.attr(LA),zA=new mt(($A||"").trim()),Mt=zA.matchNumber();return!Mt||(zA.match("%")&&(Mt*=.01),zA.matchAll())?HA:Math.max(0,Math.min(1,Mt))},this.chooseValue=function(LA){for(var HA=0;HA=0&&(zA=VA);break;case"stroke-miterlimit":null!=(VA=parseFloat($A))&&VA>=1&&(zA=VA);break;case"word-spacing":case"letter-spacing":zA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(zA=this.computeLength($A,this.getViewport()))&&zA<0)for(var ie=this.get("stroke-dasharray"),Ct=0;Ct0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,zA,ot){var VA="userSpaceOnUse"!==this.attr("patternUnits"),Mt="objectBoundingBox"===this.attr("patternContentUnits"),Nt=this.getLength("x",VA?1:this.getParentVWidth(),0),Pt=this.getLength("y",VA?1:this.getParentVHeight(),0),Kt=this.getLength("width",VA?1:this.getParentVWidth(),0),qt=this.getLength("height",VA?1:this.getParentVHeight(),0);Mt&&!VA?(Nt=(Nt-HA[0])/(HA[2]-HA[0])||0,Pt=(Pt-HA[1])/(HA[3]-HA[1])||0,Kt=Kt/(HA[2]-HA[0])||0,qt=qt/(HA[3]-HA[1])||0):!Mt&&VA&&(Nt=HA[0]+Nt*(HA[2]-HA[0]),Pt=HA[1]+Pt*(HA[3]-HA[1]),Kt*=HA[2]-HA[0],qt*=HA[3]-HA[1]);var ie=this.getViewbox("viewBox",[0,0,Kt,qt]),Rt=lA(O((this.attr("preserveAspectRatio")||"").trim(),Kt,qt,ie[2],ie[3],0),[1,0,0,1,-ie[0],-ie[1]]),Wt=X(this.attr("patternTransform"));if(Mt&&(Wt=lA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],Wt)),(Wt=_(Wt=lA(Wt,[1,0,0,1,Nt,Pt])))&&(Rt=_(Rt))&&(Kt=bA(Kt))&&(qt=bA(qt))){var Ot=w([0,0,Kt,qt]);return s.transform.apply(s,Rt),this.drawChildren(zA,ot),Q(Ot),[y(Ot,Kt,qt,Wt),$A]}return UA?[UA[0],UA[1]*$A]:void 0},this.getVWidth=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("width",HA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,$A,0])[2]},this.getVHeight=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("height",HA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,$A])[3]}},RA=function ZA(YA,tt,UA){nt.call(this,YA,tt),this.allowedChildren=["stop"],this.ref=function(){var HA=this.getUrl("href")||this.getUrl("xlink:href");if(HA&&HA.nodeName===YA.nodeName)return new ZA(HA,tt,UA)}.call(this);var PA=this.attr;this.attr=function(HA){var $A=PA.call(this,HA);return null!=$A||"href"===HA||"xlink:href"===HA?$A:this.ref?this.ref.attr(HA):null};var LA=this.getChildren;this.getChildren=function(){var HA=LA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,zA,ot){var VA=this.getChildren();if(0!==VA.length){if(1===VA.length){var Mt=VA[0],Nt=Mt.get("stop-color");return"none"===Nt?void 0:pA(Nt,Mt.get("stop-opacity")*$A,ot)}var ie,Ct,Rt,Wt,Ot,Be,Pt="userSpaceOnUse"!==this.attr("gradientUnits"),Kt=X(this.attr("gradientTransform")),qt=this.attr("spreadMethod"),_t=0,he=0,ue=1;if(Pt&&(Kt=lA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],Kt)),Kt=_(Kt)){if("linearGradient"===this.name)Ct=this.getLength("x1",Pt?1:this.getVWidth(),0),Rt=this.getLength("x2",Pt?1:this.getVWidth(),Pt?1:this.getVWidth()),Wt=this.getLength("y1",Pt?1:this.getVHeight(),0),Ot=this.getLength("y2",Pt?1:this.getVHeight(),0);else{Rt=this.getLength("cx",Pt?1:this.getVWidth(),Pt?.5:.5*this.getVWidth()),Ot=this.getLength("cy",Pt?1:this.getVHeight(),Pt?.5:.5*this.getVHeight()),Be=this.getLength("r",Pt?1:this.getViewport(),Pt?.5:.5*this.getViewport()),Ct=this.getLength("fx",Pt?1:this.getVWidth(),Rt),Wt=this.getLength("fy",Pt?1:this.getVHeight(),Ot),Be<0&&ae("SvgElemGradient: negative r value");var ye=Math.sqrt(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2)),Je=1;ye>Be&&(Ct=Rt+(Ct-Rt)*(Je=Be/ye),Wt=Ot+(Wt-Ot)*Je),Be=Math.max(Be,ye*Je*1.000001)}if("reflect"===qt||"repeat"===qt){var Ue=FA(Kt),Ye=cA([HA[0],HA[1]],Ue),Pe=cA([HA[2],HA[1]],Ue),nn=cA([HA[2],HA[3]],Ue),Fn=cA([HA[0],HA[3]],Ue);"linearGradient"===this.name?(_t=Math.max((Ye[0]-Rt)*(Rt-Ct)+(Ye[1]-Ot)*(Ot-Wt),(Pe[0]-Rt)*(Rt-Ct)+(Pe[1]-Ot)*(Ot-Wt),(nn[0]-Rt)*(Rt-Ct)+(nn[1]-Ot)*(Ot-Wt),(Fn[0]-Rt)*(Rt-Ct)+(Fn[1]-Ot)*(Ot-Wt))/(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2)),he=Math.max((Ye[0]-Ct)*(Ct-Rt)+(Ye[1]-Wt)*(Wt-Ot),(Pe[0]-Ct)*(Ct-Rt)+(Pe[1]-Wt)*(Wt-Ot),(nn[0]-Ct)*(Ct-Rt)+(nn[1]-Wt)*(Wt-Ot),(Fn[0]-Ct)*(Ct-Rt)+(Fn[1]-Wt)*(Wt-Ot))/(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2))):_t=Math.sqrt(Math.max(Math.pow(Ye[0]-Rt,2)+Math.pow(Ye[1]-Ot,2),Math.pow(Pe[0]-Rt,2)+Math.pow(Pe[1]-Ot,2),Math.pow(nn[0]-Rt,2)+Math.pow(nn[1]-Ot,2),Math.pow(Fn[0]-Rt,2)+Math.pow(Fn[1]-Ot,2)))/Be-1,_t=Math.ceil(_t+.5),ue=(he=Math.ceil(he+.5))+1+_t}ie="linearGradient"===this.name?s.linearGradient(Ct-he*(Rt-Ct),Wt-he*(Ot-Wt),Rt+_t*(Rt-Ct),Ot+_t*(Ot-Wt)):s.radialGradient(Ct,Wt,0,Rt,Ot,Be+_t*Be);for(var ln=0;ln0&&ie.stop((ln+0)/ue,un[0],un[1]),ie.stop((ln+mn)/(_t+he+1),un[0],un[1]),tn===VA.length-1&&mn<1&&ie.stop((ln+1)/ue,un[0],un[1])}return ie.setTransform.apply(ie,Kt),[ie,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){DA.call(this,YA,tt),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(UA,PA){if("hidden"!==this.get("visibility")&&this.shape){if(s.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),z(u.white),s.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(xA()));var $A=this.shape.getSubPaths(),zA=this.getFill(UA,PA),ot=this.getStroke(UA,PA),VA=this.get("stroke-width"),Mt=this.get("stroke-linecap");if(zA||ot){if(zA&&z(zA),ot){for(var Nt=0;Nt<$A.length;Nt++)if(dA($A[Nt].totalLength,0)&&("square"===Mt||"round"===Mt)&&VA>0&&$A[Nt].startPoint&&$A[Nt].startPoint.length>1){var Pt=$A[Nt].startPoint[0],Kt=$A[Nt].startPoint[1];z(ot),"square"===Mt?s.rect(Pt-.5*VA,Kt-.5*VA,VA,VA):"round"===Mt&&s.circle(Pt,Kt,.5*VA),s.fill()}var qt=this.get("stroke-dasharray"),ie=this.get("stroke-dashoffset");if(SA(this.dashScale,1)){for(var Ct=0;Ct0&&$A[Rt].insertInDocument();zA&&ot?s.fillAndStroke(this.get("fill-rule")):zA?s.fill(this.get("fill-rule")):ot&&s.stroke()}var Wt=this.get("marker-start"),Ot=this.get("marker-mid"),Be=this.get("marker-end");if("none"!==Wt||"none"!==Ot||"none"!==Be){var _t=this.shape.getMarkers();if("none"!==Wt&&new lt(Wt,null).drawMarker(!1,PA,_t[0],VA),"none"!==Ot)for(var ue=1;ue<_t.length-1;ue++)new lt(Ot,null).drawMarker(!1,PA,_t[ue],VA);"none"!==Be&&new lt(Be,null).drawMarker(!1,PA,_t[_t.length-1],VA)}HA&&(Q(HA),p(HA))}s.restore()}}},gt=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x",this.getVWidth(),0),PA=this.getLength("y",this.getVHeight(),0),LA=this.getLength("width",this.getVWidth(),0),HA=this.getLength("height",this.getVHeight(),0),$A=this.getLength("rx",this.getVWidth()),zA=this.getLength("ry",this.getVHeight());void 0===$A&&void 0===zA?$A=zA=0:void 0===$A&&void 0!==zA?$A=zA:void 0!==$A&&void 0===zA&&(zA=$A),LA>0&&HA>0?$A&&zA?($A=Math.min($A,.5*LA),zA=Math.min(zA,.5*HA),this.shape=(new WA).M(UA+$A,PA).L(UA+LA-$A,PA).A($A,zA,0,0,1,UA+LA,PA+zA).L(UA+LA,PA+HA-zA).A($A,zA,0,0,1,UA+LA-$A,PA+HA).L(UA+$A,PA+HA).A($A,zA,0,0,1,UA,PA+HA-zA).L(UA,PA+zA).A($A,zA,0,0,1,UA+$A,PA).Z()):this.shape=(new WA).M(UA,PA).L(UA+LA,PA).L(UA+LA,PA+HA).L(UA,PA+HA).Z():this.shape=new WA},Yt=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),LA=this.getLength("r",this.getViewport(),0);this.shape=LA>0?(new WA).M(UA+LA,PA).A(LA,LA,0,0,1,UA-LA,PA).A(LA,LA,0,0,1,UA+LA,PA).Z():new WA},j=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),LA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=LA>0&&HA>0?(new WA).M(UA+LA,PA).A(LA,HA,0,0,1,UA-LA,PA).A(LA,HA,0,0,1,UA+LA,PA).Z():new WA},qA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),PA=this.getLength("y1",this.getVHeight(),0),LA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new WA).M(UA,PA).L(LA,HA)},kA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getNumberList("points");this.shape=new WA;for(var PA=0;PA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},lt=function(YA,tt){dt.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),PA=this.getLength("markerHeight",this.getParentVHeight(),3),LA=this.getViewbox("viewBox",[0,0,UA,PA]);this.getVWidth=function(){return LA[2]},this.getVHeight=function(){return LA[3]},this.drawMarker=function(HA,$A,zA,ot){s.save();var VA=this.attr("orient"),Mt=this.attr("markerUnits"),Nt="auto"===VA?zA[2]:(parseFloat(VA)||0)*Math.PI/180,Pt="userSpaceOnUse"===Mt?1:ot;s.transform(Math.cos(Nt)*Pt,Math.sin(Nt)*Pt,-Math.sin(Nt)*Pt,Math.cos(Nt)*Pt,zA[0],zA[1]);var Ct,Kt=this.getLength("refX",this.getVWidth(),0),qt=this.getLength("refY",this.getVHeight(),0),ie=O(this.attr("preserveAspectRatio"),UA,PA,LA[2],LA[3],.5);"hidden"===this.get("overflow")&&s.rect(ie[0]*(LA[0]+LA[2]/2-Kt)-UA/2,ie[3]*(LA[1]+LA[3]/2-qt)-PA/2,UA,PA).clip(),s.transform.apply(s,ie),s.translate(-Kt,-qt),this.get("opacity")<1&&!HA&&(Ct=w(xA())),this.drawChildren(HA,$A),Ct&&(Q(Ct),s.fillOpacity(this.get("opacity")),p(Ct)),s.restore()}},bt=function(YA,tt){dt.call(this,YA,tt),this.useMask=function(UA){var PA=w(xA());s.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&s.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),s.restore(),Q(PA),Y(PA,!0)}},xt=function(YA,tt){dt.call(this,YA,tt),this.useMask=function(UA){var LA,HA,$A,zA,PA=w(xA());s.save(),"userSpaceOnUse"===this.attr("maskUnits")?(LA=this.getLength("x",this.getVWidth(),-.1*(UA[2]-UA[0])+UA[0]),HA=this.getLength("y",this.getVHeight(),-.1*(UA[3]-UA[1])+UA[1]),$A=this.getLength("width",this.getVWidth(),1.2*(UA[2]-UA[0])),zA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(LA=this.getLength("x",this.getVWidth(),-.1)*(UA[2]-UA[0])+UA[0],HA=this.getLength("y",this.getVHeight(),-.1)*(UA[3]-UA[1])+UA[1],$A=this.getLength("width",this.getVWidth(),1.2)*(UA[2]-UA[0]),zA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),s.rect(LA,HA,$A,zA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&s.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),s.restore(),Q(PA),Y(PA,!0)}},Lt=function(YA,tt){DA.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new WA,PA=0;PA Tj")}s.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+et(this._font.font,this._font.size)),UA,PA)},this.decorate=function(UA,PA,LA,HA){var $A=this.getFill(LA,HA),zA=this.getStroke(LA,HA);$A&&z($A),zA&&(P(zA),s.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")).dash(this.get("stroke-dasharray"),{phase:this.get("stroke-dashoffset")}));for(var ot=0,VA=this._pos;ot0?HA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((LA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===LA.nodeName){var $A=new KA(LA,this);this.pathObject=$A.shape.clone().transform($A.get("transform")),this.pathLength=this.chooseValue($A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},ne=function(YA,tt){Lt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var zA,ot,PA="",LA=YA.textContent,HA=[],$A=[],VA=0,Mt=0;function Nt(){if($A.length)for(var Ct=$A[$A.length-1],Ot={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[zA+ot]*(Ct.x+Ct.width-$A[0].x)||0,Be=0;Be<$A.length;Be++)$A[Be].x-=Ot;$A=[]}function qt(Ct){var Rt=Ct.pathObject,Wt=Ct.pathLength,Ot=Ct.pathScale;if(Rt)for(var Be=Ct.getLength("startOffset",Wt,0),_t=0;_tWt||he<0)Ct._pos[_t].hidden=!0;else{var ue=Rt.getPointAtLength(he*Ot);SA(Ot,1)&&(Ct._pos[_t].scale*=Ot,Ct._pos[_t].width*=Ot),Ct._pos[_t].x=ue[0]-.5*Ct._pos[_t].width*Math.cos(ue[2])-Ct._pos[_t].y*Math.sin(ue[2]),Ct._pos[_t].y=ue[1]-.5*Ct._pos[_t].width*Math.sin(ue[2])+Ct._pos[_t].y*Math.cos(ue[2]),Ct._pos[_t].rotate=ue[2]+Ct._pos[_t].rotate,Ct._pos[_t].continuous=!1}}else for(var ye=0;ye0&&ue<1/0)for(var ye=0;ye=2)for(var Je=(Rt-(he-_t))/(Ct.length-1),Ue=0;Ue0?p-4:p;for(D=0;D>16&255,y[d++]=w>>8&255,y[d++]=255&w;return 2===Y&&(w=c[g.charCodeAt(D)]<<2|c[g.charCodeAt(D+1)]>>4,y[d++]=255&w),1===Y&&(w=c[g.charCodeAt(D)]<<10|c[g.charCodeAt(D+1)]<<4|c[g.charCodeAt(D+2)]>>2,y[d++]=w>>8&255,y[d++]=255&w),y},I.fromByteArray=function f(g){for(var w,Q=g.length,p=Q%3,Y=[],y=16383,d=0,v=Q-p;dv?v:d+y));return 1===p?Y.push(n[(w=g[Q-1])>>2]+n[w<<4&63]+"=="):2===p&&Y.push(n[(w=(g[Q-2]<<8)+g[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),Y.join("")};for(var n=[],c=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=s.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=g.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(g){return n[g>>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]}function e(g,w,Q){for(var Y=[],y=w;y0},s.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var l=this.buf_ptr_,h=this.input_.read(this.buf_,l,I);if(h<0)throw new Error("Unexpected end of input");if(h=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},s.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&i[l];return this.bit_pos_+=l,h},T.exports=s},7080:function(T,I){I.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),I.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},6450:function(T,I,n){var i=n(6154).g,s=n(6154).j,l=n(4181),h=n(5139),a=n(966).h,B=n(966).g,E=n(7080),u=n(8435),C=n(2973),v=1080,R=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),F=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),z=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),P=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function eA($){var W;return 0===$.readBits(1)?16:(W=$.readBits(3))>0?17+W:(W=$.readBits(3))>0?8+W:17}function sA($){if($.readBits(1)){var W=$.readBits(3);return 0===W?1:$.readBits(W)+(1<1&&0===EA)throw new Error("Invalid size byte");W.meta_block_length|=EA<<8*nA}}else for(nA=0;nA4&&0===GA)throw new Error("Invalid size nibble");W.meta_block_length|=GA<<4*nA}return++W.meta_block_length,!W.input_end&&!W.is_metadata&&(W.is_uncompressed=$.readBits(1)),W}function pA($,W,hA){var nA;return hA.fillBitWindow(),(nA=$[W+=hA.val_>>>hA.bit_pos_&255].bits-8)>0&&(hA.bit_pos_+=8,W+=$[W].value,W+=hA.val_>>>hA.bit_pos_&(1<>=1,++TA;for(et=0;et0;++et){var dt,nt=R[et],DA=0;vA.fillBitWindow(),vA.bit_pos_+=WA[DA+=vA.val_>>>vA.bit_pos_&15].bits,mt[nt]=dt=WA[DA].value,0!==dt&&(Et-=32>>dt,++OA)}if(1!==OA&&0!==Et)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function lA($,W,hA,vA){for(var nA=0,EA=8,GA=0,et=0,st=32768,TA=[],at=0;at<32;at++)TA.push(new a(0,0));for(B(TA,0,5,$,18);nA0;){var mt,It=0;if(vA.readMoreInput(),vA.fillBitWindow(),vA.bit_pos_+=TA[It+=vA.val_>>>vA.bit_pos_&31].bits,(mt=255&TA[It].value)<16)GA=0,hA[nA++]=mt,0!==mt&&(EA=mt,st-=32768>>mt);else{var OA,WA,Et=mt-14,nt=0;if(16===mt&&(nt=EA),et!==nt&&(GA=0,et=nt),OA=GA,GA>0&&(GA-=2,GA<<=Et),nA+(WA=(GA+=vA.readBits(Et)+3)-OA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var DA=0;DA>>5]),this.htrees=new Uint32Array(W)}function uA($,W){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;W.readMoreInput();var et=hA.num_htrees=sA(W)+1,st=hA.context_map=new Uint8Array($);if(et<=1)return hA;for(W.readBits(1)&&(nA=W.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");st[GA]=0,++GA}else st[GA]=TA-nA,++GA}return W.readBits(1)&&function _($,W){var vA,hA=new Uint8Array(256);for(vA=0;vA<256;++vA)hA[vA]=vA;for(vA=0;vA=$&&(at-=$),vA[hA]=at,nA[et+(1&EA[st])]=at,++EA[st]}function SA($,W,hA,vA,nA,EA){var TA,GA=nA+1,et=hA&nA,st=EA.pos_&l.IBUF_MASK;if(W<8||EA.bit_pos_+(W<<3)0;)EA.readMoreInput(),vA[et++]=EA.readBits(8),et===GA&&($.write(vA,GA),et=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)vA[et]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++et,--W;if(st+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var at=l.IBUF_MASK+1-st,It=0;It=GA)for($.write(vA,GA),et-=GA,It=0;It=GA;){if(EA.input_.read(vA,et,TA=GA-et)W.buffer.length){var ae=new Uint8Array(vA+H);ae.set(W.buffer),W.buffer=ae}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(bA(wt);H>0;--H)wt.readMoreInput(),wt.readBits(8);else if(0!==H){if(k){wt.bit_pos_=wt.bit_pos_+7&-8,SA(W,H,vA,at,TA,wt),vA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=sA(wt)+1,wA[hA]>=2&&(cA(wA[hA]+2,DA,hA*v,wt),cA(26,dt,hA*v,wt),b[hA]=gA(dt,hA*v,wt),rA[hA]=1);for(wt.readMoreInput(),j=(1<<(gt=wt.readBits(2)))-1,qA=(Yt=16+(wt.readBits(4)<0;){var on,An,Hn,Jn,kt,Gt,$t,le,pn,Tn,Zn,fr;for(wt.readMoreInput(),0===b[1]&&(dA(wA[1],DA,1,QA,RA,rA,wt),b[1]=gA(dt,v,wt),yn=nt[1].htrees[QA[1]]),--b[1],(An=(on=pA(nt[1].codes,yn,wt))>>6)>=2?(An-=2,$t=-1):$t=0,Jn=u.kCopyRangeLut[An]+(7&on),kt=u.kInsertLengthPrefixCode[Hn=u.kInsertRangeLut[An]+(on>>3&7)].offset+wt.readBits(u.kInsertLengthPrefixCode[Hn].nbits),Gt=u.kCopyLengthPrefixCode[Jn].offset+wt.readBits(u.kCopyLengthPrefixCode[Jn].nbits),OA=at[vA-1&TA],WA=at[vA-2&TA],pn=0;pn4?3:Gt-2))]],wt))>=Yt&&(fr=($t-=Yt)&j,$t=Yt+((Sn=(2+(1&($t>>=gt))<<(Zn=1+($t>>1)))-4)+wt.readBits(Zn)<(et=vA=h.minDictionaryWordLength&&Gt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+vA+" distance: "+le+" len: "+Gt+" bytes left: "+H);var Sn=h.offsetsByLength[Gt],ZA=le-et-1,YA=h.sizeBitsByLength[Gt],PA=ZA>>YA;if(Sn+=(ZA&(1<=It){W.write(at,st);for(var HA=0;HA0&&(mt[3&Et]=le,++Et),Gt>H)throw new Error("Invalid backward reference. pos: "+vA+" distance: "+le+" len: "+Gt+" bytes left: "+H);for(pn=0;pn>=1;return(h&B-1)+B}function s(h,a,B,E,u){do{h[a+(E-=B)]=new n(u.bits,u.value)}while(E>0)}function l(h,a,B){for(var E=1<0;--R[f])s(h,a+w,Q,d,new n(255&f,65535&D[g++])),w=i(w,f);for(Y=v-1,p=-1,f=B+1,Q=2;f<=c;++f,Q<<=1)for(;R[f]>0;--R[f])(w&Y)!==p&&(a+=d,v+=d=1<<(y=l(R,f,B)),h[C+(p=w&Y)]=new n(y+B&255,a-C-p&65535)),s(h,a+(w>>B),Q,d,new n(f-B&255,65535&D[g++])),w=i(w,f);return v}},8435:function(T,I){function n(c,i){this.offset=c,this.nbits=i}I.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],I.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],I.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],I.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],I.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},6154:function(T,I){function n(i){this.buffer=i,this.pos=0}function c(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,s,l){this.pos+l>this.buffer.length&&(l=this.buffer.length-this.pos);for(var h=0;hthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(i.subarray(0,s),this.pos),this.pos+=s,s},I.j=c},2973:function(T,I,n){var c=n(5139),f=10,g=11;function S(P,eA,sA){this.prefix=new Uint8Array(P.length),this.transform=eA,this.suffix=new Uint8Array(sA.length);for(var q=0;q'),new S("",0,"\n"),new S("",3,""),new S("",0,"]"),new S("",0," for "),new S("",14,""),new S("",2,""),new S("",0," a "),new S("",0," that "),new S(" ",f,""),new S("",0,". "),new S(".",0,""),new S(" ",0,", "),new S("",15,""),new S("",0," with "),new S("",0,"'"),new S("",0," from "),new S("",0," by "),new S("",16,""),new S("",17,""),new S(" the ",0,""),new S("",4,""),new S("",0,". The "),new S("",g,""),new S("",0," on "),new S("",0," as "),new S("",0," is "),new S("",7,""),new S("",1,"ing "),new S("",0,"\n\t"),new S("",0,":"),new S(" ",0,". "),new S("",0,"ed "),new S("",20,""),new S("",18,""),new S("",6,""),new S("",0,"("),new S("",f,", "),new S("",8,""),new S("",0," at "),new S("",0,"ly "),new S(" the ",0," of "),new S("",5,""),new S("",9,""),new S(" ",f,", "),new S("",f,'"'),new S(".",0,"("),new S("",g," "),new S("",f,'">'),new S("",0,'="'),new S(" ",0,"."),new S(".com/",0,""),new S(" the ",0," of the "),new S("",f,"'"),new S("",0,". This "),new S("",0,","),new S(".",0," "),new S("",f,"("),new S("",f,"."),new S("",0," not "),new S(" ",0,'="'),new S("",0,"er "),new S(" ",g," "),new S("",0,"al "),new S(" ",g,""),new S("",0,"='"),new S("",g,'"'),new S("",f,". "),new S(" ",0,"("),new S("",0,"ful "),new S(" ",f,". "),new S("",0,"ive "),new S("",0,"less "),new S("",g,"'"),new S("",0,"est "),new S(" ",f,"."),new S("",g,'">'),new S(" ",0,"='"),new S("",f,","),new S("",0,"ize "),new S("",g,"."),new S("\xc2\xa0",0,""),new S(" ",0,","),new S("",f,'="'),new S("",g,'="'),new S("",0,"ous "),new S("",g,", "),new S("",f,"='"),new S(" ",f,","),new S(" ",g,'="'),new S(" ",g,", "),new S("",g,","),new S("",g,"("),new S("",g,". "),new S(" ",g,"."),new S("",g,"='"),new S(" ",g,". "),new S(" ",f,'="'),new S(" ",g,"='"),new S(" ",f,"='")];function z(P,eA){return P[eA]<192?(P[eA]>=97&&P[eA]<=122&&(P[eA]^=32),1):P[eA]<224?(P[eA+1]^=32,2):(P[eA+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(P,eA,sA,q,BA){var _,pA=F[BA].prefix,lA=F[BA].suffix,cA=F[BA].transform,gA=cA<12?0:cA-11,xA=0,FA=eA;gA>q&&(gA=q);for(var MA=0;MA0;){var uA=z(P,_);_+=uA,q-=uA}for(var dA=0;dAI.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,s(this.init_done,"close before init"),s(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?h.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&a.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(f,g,w,Q,p,Y,y){return this._write(!0,f,g,w,Q,p,Y,y)},e.prototype.writeSync=function(f,g,w,Q,p,Y,y){return this._write(!1,f,g,w,Q,p,Y,y)},e.prototype._write=function(f,g,w,Q,p,Y,y,d){if(s.equal(arguments.length,8),s(this.init_done,"write before init"),s(this.mode!==I.NONE,"already finalized"),s.equal(!1,this.write_in_progress,"write already in progress"),s.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,s.equal(!1,void 0===g,"must provide flush value"),this.write_in_progress=!0,g!==I.Z_NO_FLUSH&&g!==I.Z_PARTIAL_FLUSH&&g!==I.Z_SYNC_FLUSH&&g!==I.Z_FULL_FLUSH&&g!==I.Z_FINISH&&g!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=c.alloc(0),p=0,Q=0),this.strm.avail_in=p,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=d,this.strm.output=Y,this.strm.next_out=y,this.flush=g,!f)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return i.nextTick(function(){v._process(),v._after()}),this},e.prototype._afterSync=function(){var f=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,f]},e.prototype._process=function(){var f=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflate(this.strm,this.flush);break;case I.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===f)break;if(31!==this.strm.input[f]){this.mode=I.INFLATE;break}if(this.gzip_id_bytes_read=1,f++,1===this.strm.avail_in)break;case 1:if(null===f)break;139===this.strm.input[f]?(this.gzip_id_bytes_read=2,this.mode=I.GUNZIP):this.mode=I.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===I.Z_DATA_ERROR&&(this.err=I.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===I.GUNZIP&&this.err===I.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,f),this.pending_close&&this.close()}},e.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(f,g,w,Q,p){s(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),s(f>=8&&f<=15,"invalid windowBits"),s(g>=-1&&g<=9,"invalid compression level"),s(w>=1&&w<=9,"invalid memlevel"),s(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,f,w,Q,p),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(f,g,w,Q,p){switch(this.level=f,this.windowBits=g,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new l,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflateInit2(this.strm,this.level,I.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:case I.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=p,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=h.deflateSetDictionary(this.strm,this.dictionary)}this.err!==I.Z_OK&&this._error("Failed to set dictionary")}},e.prototype._reset=function(){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:case I.GZIP:this.err=h.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==I.Z_OK&&this._error("Failed to reset stream")},I.Zlib=e},2635:function(T,I,n){"use strict";var c=n(4155),i=n(8823).Buffer,s=n(2830).Transform,l=n(4505),h=n(9539),a=n(9282).ok,B=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";l.Z_MIN_WINDOWBITS=8,l.Z_MAX_WINDOWBITS=15,l.Z_DEFAULT_WINDOWBITS=15,l.Z_MIN_CHUNK=64,l.Z_MAX_CHUNK=1/0,l.Z_DEFAULT_CHUNK=16384,l.Z_MIN_MEMLEVEL=1,l.Z_MAX_MEMLEVEL=9,l.Z_DEFAULT_MEMLEVEL=8,l.Z_MIN_LEVEL=-1,l.Z_MAX_LEVEL=9,l.Z_DEFAULT_LEVEL=l.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(l),C=0;C=B?MA=new RangeError(E):_=i.concat(lA,cA),lA=[],q.close(),pA(MA,_)}q.on("error",function xA(_){q.removeListener("end",FA),q.removeListener("readable",gA),pA(_)}),q.on("end",FA),q.end(BA),gA()}function Y(q,BA){if("string"==typeof BA&&(BA=i.from(BA)),!i.isBuffer(BA))throw new TypeError("Not a string or buffer");return q._processChunk(BA,q._finishFlushFlag)}function y(q){if(!(this instanceof y))return new y(q);P.call(this,q,l.DEFLATE)}function d(q){if(!(this instanceof d))return new d(q);P.call(this,q,l.INFLATE)}function v(q){if(!(this instanceof v))return new v(q);P.call(this,q,l.GZIP)}function D(q){if(!(this instanceof D))return new D(q);P.call(this,q,l.GUNZIP)}function R(q){if(!(this instanceof R))return new R(q);P.call(this,q,l.DEFLATERAW)}function S(q){if(!(this instanceof S))return new S(q);P.call(this,q,l.INFLATERAW)}function F(q){if(!(this instanceof F))return new F(q);P.call(this,q,l.UNZIP)}function z(q){return q===l.Z_NO_FLUSH||q===l.Z_PARTIAL_FLUSH||q===l.Z_SYNC_FLUSH||q===l.Z_FULL_FLUSH||q===l.Z_FINISH||q===l.Z_BLOCK}function P(q,BA){var pA=this;if(this._opts=q=q||{},this._chunkSize=q.chunkSize||I.Z_DEFAULT_CHUNK,s.call(this,q),q.flush&&!z(q.flush))throw new Error("Invalid flush flag: "+q.flush);if(q.finishFlush&&!z(q.finishFlush))throw new Error("Invalid flush flag: "+q.finishFlush);if(this._flushFlag=q.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==q.finishFlush?q.finishFlush:l.Z_FINISH,q.chunkSize&&(q.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+q.chunkSize);if(q.windowBits&&(q.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+q.windowBits);if(q.level&&(q.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+q.level);if(q.memLevel&&(q.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+q.memLevel);if(q.strategy&&q.strategy!=I.Z_FILTERED&&q.strategy!=I.Z_HUFFMAN_ONLY&&q.strategy!=I.Z_RLE&&q.strategy!=I.Z_FIXED&&q.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+q.strategy);if(q.dictionary&&!i.isBuffer(q.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(BA);var lA=this;this._hadError=!1,this._handle.onerror=function(xA,FA){eA(lA),lA._hadError=!0;var _=new Error(xA);_.errno=FA,_.code=I.codes[FA],lA.emit("error",_)};var cA=I.Z_DEFAULT_COMPRESSION;"number"==typeof q.level&&(cA=q.level);var gA=I.Z_DEFAULT_STRATEGY;"number"==typeof q.strategy&&(gA=q.strategy),this._handle.init(q.windowBits||I.Z_DEFAULT_WINDOWBITS,cA,q.memLevel||I.Z_DEFAULT_MEMLEVEL,gA,q.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=cA,this._strategy=gA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!pA._handle},configurable:!0,enumerable:!0})}function eA(q,BA){BA&&c.nextTick(BA),q._handle&&(q._handle.close(),q._handle=null)}function sA(q){q.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=y,I.Inflate=d,I.Gzip=v,I.Gunzip=D,I.DeflateRaw=R,I.InflateRaw=S,I.Unzip=F,I.createDeflate=function(q){return new y(q)},I.createInflate=function(q){return new d(q)},I.createDeflateRaw=function(q){return new R(q)},I.createInflateRaw=function(q){return new S(q)},I.createGzip=function(q){return new v(q)},I.createGunzip=function(q){return new D(q)},I.createUnzip=function(q){return new F(q)},I.deflate=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new y(BA),q,pA)},I.deflateSync=function(q,BA){return Y(new y(BA),q)},I.gzip=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new v(BA),q,pA)},I.gzipSync=function(q,BA){return Y(new v(BA),q)},I.deflateRaw=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new R(BA),q,pA)},I.deflateRawSync=function(q,BA){return Y(new R(BA),q)},I.unzip=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new F(BA),q,pA)},I.unzipSync=function(q,BA){return Y(new F(BA),q)},I.inflate=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new d(BA),q,pA)},I.inflateSync=function(q,BA){return Y(new d(BA),q)},I.gunzip=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new D(BA),q,pA)},I.gunzipSync=function(q,BA){return Y(new D(BA),q)},I.inflateRaw=function(q,BA,pA){return"function"==typeof BA&&(pA=BA,BA={}),p(new S(BA),q,pA)},I.inflateRawSync=function(q,BA){return Y(new S(BA),q)},h.inherits(P,s),P.prototype.params=function(q,BA,pA){if(qI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+q);if(BA!=I.Z_FILTERED&&BA!=I.Z_HUFFMAN_ONLY&&BA!=I.Z_RLE&&BA!=I.Z_FIXED&&BA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+BA);if(this._level!==q||this._strategy!==BA){var lA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(lA._handle,"zlib binding closed"),lA._handle.params(q,BA),lA._hadError||(lA._level=q,lA._strategy=BA,pA&&pA())})}else c.nextTick(pA)},P.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},P.prototype._flush=function(q){this._transform(i.alloc(0),"",q)},P.prototype.flush=function(q,BA){var pA=this,lA=this._writableState;("function"==typeof q||void 0===q&&!BA)&&(BA=q,q=l.Z_FULL_FLUSH),lA.ended?BA&&c.nextTick(BA):lA.ending?BA&&this.once("end",BA):lA.needDrain?BA&&this.once("drain",function(){return pA.flush(q,BA)}):(this._flushFlag=q,this.write(i.alloc(0),"",BA))},P.prototype.close=function(q){eA(this,q),c.nextTick(sA,this)},P.prototype._transform=function(q,BA,pA){var lA,cA=this._writableState,xA=(cA.ending||cA.ended)&&(!q||cA.length===q.length);return null===q||i.isBuffer(q)?this._handle?(xA?lA=this._finishFlushFlag:(lA=this._flushFlag,q.length>=cA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(q,lA,pA)):pA(new Error("zlib binding closed")):pA(new Error("invalid input"))},P.prototype._processChunk=function(q,BA,pA){var lA=q&&q.length,cA=this._chunkSize-this._offset,gA=0,xA=this,FA="function"==typeof pA;if(!FA){var uA,_=[],MA=0;this.on("error",function(X){uA=X}),a(this._handle,"zlib binding closed");do{var dA=this._handle.writeSync(BA,q,gA,lA,this._buffer,this._offset,cA)}while(!this._hadError&&XA(dA[0],dA[1]));if(this._hadError)throw uA;if(MA>=B)throw eA(this),new RangeError(E);var SA=i.concat(_,MA);return eA(this),SA}a(this._handle,"zlib binding closed");var bA=this._handle.write(BA,q,gA,lA,this._buffer,this._offset,cA);function XA(X,O){if(this&&(this.buffer=null,this.callback=null),!xA._hadError){var $=cA-O;if(a($>=0,"have should not go down"),$>0){var W=xA._buffer.slice(xA._offset,xA._offset+$);xA._offset+=$,FA?xA.push(W):(_.push(W),MA+=W.length)}if((0===O||xA._offset>=xA._chunkSize)&&(cA=xA._chunkSize,xA._offset=0,xA._buffer=i.allocUnsafe(xA._chunkSize)),0===O){if(gA+=lA-X,lA=X,!FA)return!0;var hA=xA._handle.write(BA,q,gA,lA,xA._buffer,xA._offset,xA._chunkSize);return hA.callback=XA,void(hA.buffer=q)}if(!FA)return!1;pA()}}bA.buffer=q,bA.callback=XA},h.inherits(y,P),h.inherits(d,P),h.inherits(v,P),h.inherits(D,P),h.inherits(R,P),h.inherits(S,P),h.inherits(F,P)},1924:function(T,I,n){"use strict";var c=n(210),i=n(5559),s=i(c("String.prototype.indexOf"));T.exports=function(h,a){var B=c(h,!!a);return"function"==typeof B&&s(h,".prototype.")>-1?i(B):B}},5559:function(T,I,n){"use strict";var c=n(8612),i=n(210),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||c.call(l,s),a=i("%Object.getOwnPropertyDescriptor%",!0),B=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(B)try{B({},"a",{value:1})}catch(C){B=null}T.exports=function(e){var f=h(c,l,arguments);return a&&B&&a(f,"length").configurable&&B(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(c,s,arguments)};B?B(T.exports,"apply",{value:u}):T.exports.apply=u},6313:function(T,I,n){var c=n(8823).Buffer,i=function(){"use strict";function s(u,C,e,f){"object"==typeof C&&(e=C.depth,f=C.prototype,C=C.circular);var w=[],Q=[],p=void 0!==c;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function Y(y,d){if(null===y)return null;if(0==d)return y;var v,D;if("object"!=typeof y)return y;if(s.__isArray(y))v=[];else if(s.__isRegExp(y))v=new RegExp(y.source,E(y)),y.lastIndex&&(v.lastIndex=y.lastIndex);else if(s.__isDate(y))v=new Date(y.getTime());else{if(p&&c.isBuffer(y))return v=c.allocUnsafe?c.allocUnsafe(y.length):new c(y.length),y.copy(v),v;void 0===f?(D=Object.getPrototypeOf(y),v=Object.create(D)):(v=Object.create(f),D=f)}if(C){var R=w.indexOf(y);if(-1!=R)return Q[R];w.push(y),Q.push(v)}for(var S in y){var F;D&&(F=Object.getOwnPropertyDescriptor(D,S)),(!F||null!=F.set)&&(v[S]=Y(y[S],d-1))}return v}(u,e)}function l(u){return Object.prototype.toString.call(u)}function E(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return s.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},s.__objToStr=l,s.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===l(u)},s.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},s.__isRegExp=function B(u){return"object"==typeof u&&"[object RegExp]"===l(u)},s.__getRegExpFlags=E,s}();T.exports&&(T.exports=i)},4667:function(T,I,n){n(2479);var c=n(857);T.exports=c.Object.values},7633:function(T,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);T.exports=c.Promise},3867:function(T,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),T.exports=c},9662:function(T,I,n){var c=n(7854),i=n(614),s=n(6330),l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(s(h)+" is not a function")}},9483:function(T,I,n){var c=n(7854),i=n(4411),s=n(6330),l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(s(h)+" is not a constructor")}},6077:function(T,I,n){var c=n(7854),i=n(614),s=c.String,l=c.TypeError;T.exports=function(h){if("object"==typeof h||i(h))return h;throw l("Can't set "+s(h)+" as a prototype")}},1223:function(T,I,n){var c=n(5112),i=n(30),s=n(3070),l=c("unscopables"),h=Array.prototype;null==h[l]&&s.f(h,l,{configurable:!0,value:i(null)}),T.exports=function(a){h[l][a]=!0}},1530:function(T,I,n){"use strict";var c=n(8710).charAt;T.exports=function(i,s,l){return s+(l?c(i,s).length:1)}},5787:function(T,I,n){var c=n(7854),i=n(7976),s=c.TypeError;T.exports=function(l,h){if(i(h,l))return l;throw s("Incorrect invocation")}},9670:function(T,I,n){var c=n(7854),i=n(111),s=c.String,l=c.TypeError;T.exports=function(h){if(i(h))return h;throw l(s(h)+" is not an object")}},1048:function(T,I,n){"use strict";var c=n(7908),i=n(1400),s=n(6244),l=Math.min;T.exports=[].copyWithin||function(a,B){var E=c(this),u=s(E),C=i(a,u),e=i(B,u),f=arguments.length>2?arguments[2]:void 0,g=l((void 0===f?u:i(f,u))-e,u-C),w=1;for(e0;)e in E?E[C]=E[e]:delete E[C],C+=w,e+=w;return E}},1285:function(T,I,n){"use strict";var c=n(7908),i=n(1400),s=n(6244);T.exports=function(h){for(var a=c(this),B=s(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,B),C=E>2?arguments[2]:void 0,e=void 0===C?B:i(C,B);e>u;)a[u++]=h;return a}},8533:function(T,I,n){"use strict";var c=n(2092).forEach,s=n(9341)("forEach");T.exports=s?[].forEach:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(T){T.exports=function(I,n){for(var c=0,i=n.length,s=new I(i);i>c;)s[c]=n[c++];return s}},8457:function(T,I,n){"use strict";var c=n(7854),i=n(9974),s=n(6916),l=n(7908),h=n(3411),a=n(7659),B=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;T.exports=function(w){var Q=l(w),p=B(this),Y=arguments.length,y=Y>1?arguments[1]:void 0,d=void 0!==y;d&&(y=i(y,Y>2?arguments[2]:void 0));var R,S,F,z,P,eA,v=e(Q),D=0;if(!v||this==f&&a(v))for(R=E(Q),S=p?new this(R):f(R);R>D;D++)eA=d?y(Q[D],D):Q[D],u(S,D,eA);else for(P=(z=C(Q,v)).next,S=p?new this:[];!(F=s(P,z)).done;D++)eA=d?h(z,y,[F.value,D],!0):F.value,u(S,D,eA);return S.length=D,S}},1318:function(T,I,n){var c=n(5656),i=n(1400),s=n(6244),l=function(h){return function(a,B,E){var f,u=c(a),C=s(u),e=i(E,C);if(h&&B!=B){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===B)return h||e||0;return!h&&-1}};T.exports={includes:l(!0),indexOf:l(!1)}},2092:function(T,I,n){var c=n(9974),i=n(1702),s=n(8361),l=n(7908),h=n(6244),a=n(5417),B=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,g=4==u,w=6==u,Q=7==u,p=5==u||w;return function(Y,y,d,v){for(var sA,q,D=l(Y),R=s(D),S=c(y,d),F=h(R),z=0,P=v||a,eA=C?P(Y,F):e||Q?P(Y,0):void 0;F>z;z++)if((p||z in R)&&(q=S(sA=R[z],z,D),u))if(C)eA[z]=q;else if(q)switch(u){case 3:return!0;case 5:return sA;case 6:return z;case 2:B(eA,sA)}else switch(u){case 4:return!1;case 7:B(eA,sA)}return w?-1:f||g?g:eA}};T.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)}},6583:function(T,I,n){"use strict";var c=n(2104),i=n(5656),s=n(9303),l=n(6244),h=n(9341),a=Math.min,B=[].lastIndexOf,E=!!B&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");T.exports=E||!u?function(f){if(E)return c(B,this,arguments)||0;var g=i(this),w=l(g),Q=w-1;for(arguments.length>1&&(Q=a(Q,s(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in g&&g[Q]===f)return Q||0;return-1}:B},1194:function(T,I,n){var c=n(7293),i=n(5112),s=n(7392),l=i("species");T.exports=function(h){return s>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(T,I,n){"use strict";var c=n(7293);T.exports=function(i,s){var l=[][i];return!!l&&c(function(){l.call(null,s||function(){throw 1},1)})}},3671:function(T,I,n){var c=n(7854),i=n(9662),s=n(7908),l=n(8361),h=n(6244),a=c.TypeError,B=function(E){return function(u,C,e,f){i(C);var g=s(u),w=l(g),Q=h(g),p=E?Q-1:0,Y=E?-1:1;if(e<2)for(;;){if(p in w){f=w[p],p+=Y;break}if(p+=Y,E?p<0:Q<=p)throw a("Reduce of empty array with no initial value")}for(;E?p>=0:Q>p;p+=Y)p in w&&(f=C(f,w[p],p,g));return f}};T.exports={left:B(!1),right:B(!0)}},206:function(T,I,n){var c=n(1702);T.exports=c([].slice)},4362:function(T,I,n){var c=n(206),i=Math.floor,s=function(a,B){var E=a.length,u=i(E/2);return E<8?l(a,B):h(a,s(c(a,0,u),B),s(c(a,u),B),B)},l=function(a,B){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,B,E,u){for(var C=B.length,e=E.length,f=0,g=0;f1?arguments[1]:void 0);eA=eA?eA.next:z.first;)for(P(eA.value,eA.key,this);eA&&eA.removed;)eA=eA.previous},has:function(F){return!!R(this,F)}}),s(d,p?{get:function(F){var z=R(this,F);return z&&z.value},set:function(F,z){return D(this,0===F?0:F,z)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&c(d,"size",{get:function(){return v(this).size}}),y},setStrong:function(w,Q,p){var Y=Q+" Iterator",y=g(Q),d=g(Y);B(w,Q,function(v,D){f(this,{type:Y,target:v,state:y(v),kind:D,last:void 0})},function(){for(var v=d(this),D=v.kind,R=v.last;R&&R.removed;)R=R.previous;return v.target&&(v.last=R=R?R.next:v.state.first)?"keys"==D?{value:R.key,done:!1}:"values"==D?{value:R.value,done:!1}:{value:[R.key,R.value],done:!1}:(v.target=void 0,{value:void 0,done:!0})},p?"entries":"values",!p,!0),E(Q)}}},7710:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(1702),l=n(4705),h=n(1320),a=n(2423),B=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),g=n(8003),w=n(9587);T.exports=function(Q,p,Y){var y=-1!==Q.indexOf("Map"),d=-1!==Q.indexOf("Weak"),v=y?"set":"add",D=i[Q],R=D&&D.prototype,S=D,F={},z=function(lA){var cA=s(R[lA]);h(R,lA,"add"==lA?function(xA){return cA(this,0===xA?0:xA),this}:"delete"==lA?function(gA){return!(d&&!C(gA))&&cA(this,0===gA?0:gA)}:"get"==lA?function(xA){return d&&!C(xA)?void 0:cA(this,0===xA?0:xA)}:"has"==lA?function(xA){return!(d&&!C(xA))&&cA(this,0===xA?0:xA)}:function(xA,FA){return cA(this,0===xA?0:xA,FA),this})};if(l(Q,!u(D)||!(d||R.forEach&&!e(function(){(new D).entries().next()}))))S=Y.getConstructor(p,Q,y,v),a.enable();else if(l(Q,!0)){var eA=new S,sA=eA[v](d?{}:-0,1)!=eA,q=e(function(){eA.has(1)}),BA=f(function(lA){new D(lA)}),pA=!d&&e(function(){for(var lA=new D,cA=5;cA--;)lA[v](cA,cA);return!lA.has(-0)});BA||((S=p(function(lA,cA){E(lA,R);var gA=w(new D,lA,S);return null!=cA&&B(cA,gA[v],{that:gA,AS_ENTRIES:y}),gA})).prototype=R,R.constructor=S),(q||pA)&&(z("delete"),z("has"),y&&z("get")),(pA||sA)&&z(v),d&&R.clear&&delete R.clear}return F[Q]=S,c({global:!0,forced:S!=D},F),g(S,Q),d||Y.setStrong(S,Q,y),S}},9920:function(T,I,n){var c=n(2597),i=n(3887),s=n(1236),l=n(3070);T.exports=function(h,a){for(var B=i(a),E=l.f,u=s.f,C=0;C"+C+""}},4994:function(T,I,n){"use strict";var c=n(3383).IteratorPrototype,i=n(30),s=n(9114),l=n(8003),h=n(7497),a=function(){return this};T.exports=function(B,E,u){var C=E+" Iterator";return B.prototype=i(c,{next:s(1,u)}),l(B,C,!1,!0),h[C]=a,B}},8880:function(T,I,n){var c=n(9781),i=n(3070),s=n(9114);T.exports=c?function(l,h,a){return i.f(l,h,s(1,a))}:function(l,h,a){return l[h]=a,l}},9114:function(T){T.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(T,I,n){"use strict";var c=n(4948),i=n(3070),s=n(9114);T.exports=function(l,h,a){var B=c(h);B in l?i.f(l,B,s(0,a)):l[B]=a}},8709:function(T,I,n){"use strict";var c=n(7854),i=n(9670),s=n(2140),l=c.TypeError;T.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw l("Incorrect hint");return s(this,h)}},654:function(T,I,n){"use strict";var c=n(2109),i=n(6916),s=n(1913),l=n(6530),h=n(614),a=n(4994),B=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),g=n(7497),w=n(3383),Q=l.PROPER,p=l.CONFIGURABLE,Y=w.IteratorPrototype,y=w.BUGGY_SAFARI_ITERATORS,d=f("iterator"),v="keys",D="values",R="entries",S=function(){return this};T.exports=function(F,z,P,eA,sA,q,BA){a(P,z,eA);var MA,uA,dA,pA=function(SA){if(SA===sA&&FA)return FA;if(!y&&SA in gA)return gA[SA];switch(SA){case v:case D:case R:return function(){return new P(this,SA)}}return function(){return new P(this)}},lA=z+" Iterator",cA=!1,gA=F.prototype,xA=gA[d]||gA["@@iterator"]||sA&&gA[sA],FA=!y&&xA||pA(sA),_="Array"==z&&gA.entries||xA;if(_&&(MA=B(_.call(new F)))!==Object.prototype&&MA.next&&(!s&&B(MA)!==Y&&(E?E(MA,Y):h(MA[d])||e(MA,d,S)),u(MA,lA,!0,!0),s&&(g[lA]=S)),Q&&sA==D&&xA&&xA.name!==D&&(!s&&p?C(gA,"name",D):(cA=!0,FA=function(){return i(xA,this)})),sA)if(uA={values:pA(D),keys:q?FA:pA(v),entries:pA(R)},BA)for(dA in uA)(y||cA||!(dA in gA))&&e(gA,dA,uA[dA]);else c({target:z,proto:!0,forced:y||cA},uA);return(!s||BA)&&gA[d]!==FA&&e(gA,d,FA,{name:sA}),g[z]=FA,uA}},7235:function(T,I,n){var c=n(857),i=n(2597),s=n(6061),l=n(3070).f;T.exports=function(h){var a=c.Symbol||(c.Symbol={});i(a,h)||l(a,h,{value:s.f(h)})}},9781:function(T,I,n){var c=n(7293);T.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(T,I,n){var c=n(7854),i=n(111),s=c.document,l=i(s)&&i(s.createElement);T.exports=function(h){return l?s.createElement(h):{}}},8324:function(T){T.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(T,I,n){var i=n(317)("span").classList,s=i&&i.constructor&&i.constructor.prototype;T.exports=s===Object.prototype?void 0:s},8886:function(T,I,n){var i=n(8113).match(/firefox\/(\d+)/i);T.exports=!!i&&+i[1]},7871:function(T){T.exports="object"==typeof window},256:function(T,I,n){var c=n(8113);T.exports=/MSIE|Trident/.test(c)},1528:function(T,I,n){var c=n(8113),i=n(7854);T.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==i.Pebble},6833:function(T,I,n){var c=n(8113);T.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(T,I,n){var c=n(4326),i=n(7854);T.exports="process"==c(i.process)},1036:function(T,I,n){var c=n(8113);T.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(T,I,n){var c=n(5005);T.exports=c("navigator","userAgent")||""},7392:function(T,I,n){var B,E,c=n(7854),i=n(8113),s=c.process,l=c.Deno,h=s&&s.versions||l&&l.version,a=h&&h.v8;a&&(E=(B=a.split("."))[0]>0&&B[0]<4?1:+(B[0]+B[1])),!E&&i&&(!(B=i.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=i.match(/Chrome\/(\d+)/))&&(E=+B[1]),T.exports=E},8008:function(T,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);T.exports=!!i&&+i[1]},748:function(T){T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(T,I,n){var c=n(7293),i=n(9114);T.exports=!c(function(){var s=Error("a");return!("stack"in s)||(Object.defineProperty(s,"stack",i(1,7)),7!==s.stack)})},2109:function(T,I,n){var c=n(7854),i=n(1236).f,s=n(8880),l=n(1320),h=n(3505),a=n(9920),B=n(4705);T.exports=function(E,u){var w,Q,p,Y,y,C=E.target,e=E.global,f=E.stat;if(w=e?c:f?c[C]||h(C,{}):(c[C]||{}).prototype)for(Q in u){if(Y=u[Q],p=E.noTargetGet?(y=i(w,Q))&&y.value:w[Q],!B(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==p){if(typeof Y==typeof p)continue;a(Y,p)}(E.sham||p&&p.sham)&&s(Y,"sham",!0),l(w,Q,Y,E)}}},7293:function(T){T.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(T,I,n){"use strict";n(4916);var c=n(1702),i=n(1320),s=n(2261),l=n(7293),h=n(5112),a=n(8880),B=h("species"),E=RegExp.prototype;T.exports=function(u,C,e,f){var g=h(u),w=!l(function(){var y={};return y[g]=function(){return 7},7!=""[u](y)}),Q=w&&!l(function(){var y=!1,d=/a/;return"split"===u&&((d={}).constructor={},d.constructor[B]=function(){return d},d.flags="",d[g]=/./[g]),d.exec=function(){return y=!0,null},d[g](""),!y});if(!w||!Q||e){var p=c(/./[g]),Y=C(g,""[u],function(y,d,v,D,R){var S=c(y),F=d.exec;return F===s||F===E.exec?w&&!R?{done:!0,value:p(d,v,D)}:{done:!0,value:S(v,d,D)}:{done:!1}});i(String.prototype,u,Y[0]),i(E,g,Y[1])}f&&a(E[g],"sham",!0)}},6677:function(T,I,n){var c=n(7293);T.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(T){var I=Function.prototype,n=I.apply,i=I.call;T.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(T,I,n){var c=n(1702),i=n(9662),s=c(c.bind);T.exports=function(l,h){return i(l),void 0===h?l:s?s(l,h):function(){return l.apply(h,arguments)}}},7065:function(T,I,n){"use strict";var c=n(7854),i=n(1702),s=n(9662),l=n(111),h=n(2597),a=n(206),B=c.Function,E=i([].concat),u=i([].join),C={},e=function(f,g,w){if(!h(C,g)){for(var Q=[],p=0;p]*>)/g,E=/\$([$&'`]|\d{1,2})/g;T.exports=function(u,C,e,f,g,w){var Q=e+u.length,p=f.length,Y=E;return void 0!==g&&(g=i(g),Y=B),h(w,Y,function(y,d){var v;switch(l(d,0)){case"$":return"$";case"&":return u;case"`":return a(C,0,e);case"'":return a(C,Q);case"<":v=g[a(d,1,-1)];break;default:var D=+d;if(0===D)return y;if(D>p){var R=s(D/10);return 0===R?y:R<=p?void 0===f[R-1]?l(d,1):f[R-1]+l(d,1):y}v=f[D-1]}return void 0===v?"":v})}},7854:function(T,I,n){var c=function(i){return i&&i.Math==Math&&i};T.exports=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(T,I,n){var c=n(1702),i=n(7908),s=c({}.hasOwnProperty);T.exports=Object.hasOwn||function(h,a){return s(i(h),a)}},3501:function(T){T.exports={}},842:function(T,I,n){var c=n(7854);T.exports=function(i,s){var l=c.console;l&&l.error&&(1==arguments.length?l.error(i):l.error(i,s))}},490:function(T,I,n){var c=n(5005);T.exports=c("document","documentElement")},4664:function(T,I,n){var c=n(9781),i=n(7293),s=n(317);T.exports=!c&&!i(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1179:function(T,I,n){var i=n(7854).Array,s=Math.abs,l=Math.pow,h=Math.floor,a=Math.log,B=Math.LN2;T.exports={pack:function(C,e,f){var v,D,R,g=i(f),w=8*f-e-1,Q=(1<>1,Y=23===e?l(2,-24)-l(2,-77):0,y=C<0||0===C&&1/C<0?1:0,d=0;for((C=s(C))!=C||C===1/0?(D=C!=C?1:0,v=Q):(v=h(a(C)/B),C*(R=l(2,-v))<1&&(v--,R*=2),(C+=v+p>=1?Y/R:Y*l(2,1-p))*R>=2&&(v++,R/=2),v+p>=Q?(D=0,v=Q):v+p>=1?(D=(C*R-1)*l(2,e),v+=p):(D=C*l(2,p-1)*l(2,e),v=0));e>=8;g[d++]=255&D,D/=256,e-=8);for(v=v<0;g[d++]=255&v,v/=256,w-=8);return g[--d]|=128*y,g},unpack:function(C,e){var v,f=C.length,g=8*f-e-1,w=(1<>1,p=g-7,Y=f-1,y=C[Y--],d=127&y;for(y>>=7;p>0;d=256*d+C[Y],Y--,p-=8);for(v=d&(1<<-p)-1,d>>=-p,p+=e;p>0;v=256*v+C[Y],Y--,p-=8);if(0===d)d=1-Q;else{if(d===w)return v?NaN:y?-1/0:1/0;v+=l(2,e),d-=Q}return(y?-1:1)*v*l(2,d-e)}}},8361:function(T,I,n){var c=n(7854),i=n(1702),s=n(7293),l=n(4326),h=c.Object,a=i("".split);T.exports=s(function(){return!h("z").propertyIsEnumerable(0)})?function(B){return"String"==l(B)?a(B,""):h(B)}:h},9587:function(T,I,n){var c=n(614),i=n(111),s=n(7674);T.exports=function(l,h,a){var B,E;return s&&c(B=h.constructor)&&B!==a&&i(E=B.prototype)&&E!==a.prototype&&s(l,E),l}},2788:function(T,I,n){var c=n(1702),i=n(614),s=n(5465),l=c(Function.toString);i(s.inspectSource)||(s.inspectSource=function(h){return l(h)}),T.exports=s.inspectSource},8340:function(T,I,n){var c=n(111),i=n(8880);T.exports=function(s,l){c(l)&&"cause"in l&&i(s,"cause",l.cause)}},2423:function(T,I,n){var c=n(2109),i=n(1702),s=n(3501),l=n(111),h=n(2597),a=n(3070).f,B=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),g=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+g++,weakData:{}}})},v=T.exports={enable:function(){v.enable=function(){},e=!0;var D=B.f,R=i([].splice),S={};S[f]=1,D(S).length&&(B.f=function(F){for(var z=D(F),P=0,eA=z.length;Pz;z++)if((eA=pA(Q[z]))&&E(w,eA))return eA;return new g(!1)}S=u(Q,F)}for(sA=S.next;!(q=s(sA,S)).done;){try{eA=pA(q.value)}catch(lA){e(S,"throw",lA)}if("object"==typeof eA&&eA&&E(w,eA))return eA}return new g(!1)}},9212:function(T,I,n){var c=n(6916),i=n(9670),s=n(8173);T.exports=function(l,h,a){var B,E;i(l);try{if(!(B=s(l,"return"))){if("throw"===h)throw a;return a}B=c(B,l)}catch(u){E=!0,B=u}if("throw"===h)throw a;if(E)throw B;return i(B),a}},3383:function(T,I,n){"use strict";var C,e,f,c=n(7293),i=n(614),s=n(30),l=n(9518),h=n(1320),a=n(5112),B=n(1913),E=a("iterator"),u=!1;[].keys&&("next"in(f=[].keys())?(e=l(l(f)))!==Object.prototype&&(C=e):u=!0),null==C||c(function(){var w={};return C[E].call(w)!==w})?C={}:B&&(C=s(C)),i(C[E])||h(C,E,function(){return this}),T.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(T){T.exports={}},6244:function(T,I,n){var c=n(7466);T.exports=function(i){return c(i.length)}},5948:function(T,I,n){var Q,p,Y,y,d,v,D,R,c=n(7854),i=n(9974),s=n(1236).f,l=n(261).set,h=n(6833),a=n(1528),B=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,g=s(c,"queueMicrotask"),w=g&&g.value;w||(Q=function(){var S,F;for(E&&(S=e.domain)&&S.exit();p;){F=p.fn,p=p.next;try{F()}catch(z){throw p?y():Y=void 0,z}}Y=void 0,S&&S.enter()},h||E||B||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,R=i(D.then,D),y=function(){R(Q)}):E?y=function(){e.nextTick(Q)}:(l=i(l,c),y=function(){l(Q)}):(d=!0,v=C.createTextNode(""),new u(Q).observe(v,{characterData:!0}),y=function(){v.data=d=!d})),T.exports=w||function(S){var F={fn:S,next:void 0};Y&&(Y.next=F),p||(p=F,y()),Y=F}},3366:function(T,I,n){var c=n(7854);T.exports=c.Promise},133:function(T,I,n){var c=n(7392),i=n(7293);T.exports=!!Object.getOwnPropertySymbols&&!i(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(T,I,n){var c=n(7854),i=n(614),s=n(2788),l=c.WeakMap;T.exports=i(l)&&/native code/.test(s(l))},8523:function(T,I,n){"use strict";var c=n(9662),i=function(s){var l,h;this.promise=new s(function(a,B){if(void 0!==l||void 0!==h)throw TypeError("Bad Promise constructor");l=a,h=B}),this.resolve=c(l),this.reject=c(h)};T.exports.f=function(s){return new i(s)}},6277:function(T,I,n){var c=n(1340);T.exports=function(i,s){return void 0===i?arguments.length<2?"":s:c(i)}},3929:function(T,I,n){var c=n(7854),i=n(7850),s=c.TypeError;T.exports=function(l){if(i(l))throw s("The method doesn't accept regular expressions");return l}},7023:function(T,I,n){var i=n(7854).isFinite;T.exports=Number.isFinite||function(l){return"number"==typeof l&&i(l)}},1574:function(T,I,n){"use strict";var c=n(9781),i=n(1702),s=n(6916),l=n(7293),h=n(1956),a=n(5181),B=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);T.exports=!C||l(function(){if(c&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},w={},Q=Symbol(),p="abcdefghijklmnopqrst";return g[Q]=7,p.split("").forEach(function(Y){w[Y]=Y}),7!=C({},g)[Q]||h(C({},w)).join("")!=p})?function(w,Q){for(var p=E(w),Y=arguments.length,y=1,d=a.f,v=B.f;Y>y;)for(var z,D=u(arguments[y++]),R=d?f(h(D),d(D)):h(D),S=R.length,F=0;S>F;)z=R[F++],(!c||s(v,D,z))&&(p[z]=D[z]);return p}:C},30:function(T,I,n){var Y,c=n(9670),i=n(6048),s=n(748),l=n(3501),h=n(490),a=n(317),B=n(6200),C="prototype",e="script",f=B("IE_PROTO"),g=function(){},w=function(d){return"<"+e+">"+d+""},Q=function(d){d.write(w("")),d.close();var v=d.parentWindow.Object;return d=null,v},y=function(){try{Y=new ActiveXObject("htmlfile")}catch(v){}y="undefined"!=typeof document?document.domain&&Y?Q(Y):function(){var D,d=a("iframe");return d.style.display="none",h.appendChild(d),d.src=String("javascript:"),(D=d.contentWindow.document).open(),D.write(w("document.F=Object")),D.close(),D.F}():Q(Y);for(var d=s.length;d--;)delete y[C][s[d]];return y()};l[f]=!0,T.exports=Object.create||function(v,D){var R;return null!==v?(g[C]=c(v),R=new g,g[C]=null,R[f]=v):R=y(),void 0===D?R:i(R,D)}},6048:function(T,I,n){var c=n(9781),i=n(3070),s=n(9670),l=n(5656),h=n(1956);T.exports=c?Object.defineProperties:function(B,E){s(B);for(var g,u=l(E),C=h(E),e=C.length,f=0;e>f;)i.f(B,g=C[f++],u[g]);return B}},3070:function(T,I,n){var c=n(7854),i=n(9781),s=n(4664),l=n(9670),h=n(4948),a=c.TypeError,B=Object.defineProperty;I.f=i?B:function(u,C,e){if(l(u),C=h(C),l(e),s)try{return B(u,C,e)}catch(f){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(T,I,n){var c=n(9781),i=n(6916),s=n(5296),l=n(9114),h=n(5656),a=n(4948),B=n(2597),E=n(4664),u=Object.getOwnPropertyDescriptor;I.f=c?u:function(e,f){if(e=h(e),f=a(f),E)try{return u(e,f)}catch(g){}if(B(e,f))return l(!i(s.f,e,f),e[f])}},1156:function(T,I,n){var c=n(4326),i=n(5656),s=n(8006).f,l=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];T.exports.f=function(E){return h&&"Window"==c(E)?function(B){try{return s(B)}catch(E){return l(h)}}(E):s(i(E))}},8006:function(T,I,n){var c=n(6324),s=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return c(h,s)}},5181:function(T,I){I.f=Object.getOwnPropertySymbols},9518:function(T,I,n){var c=n(7854),i=n(2597),s=n(614),l=n(7908),h=n(6200),a=n(8544),B=h("IE_PROTO"),E=c.Object,u=E.prototype;T.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(i(e,B))return e[B];var f=e.constructor;return s(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(T,I,n){var c=n(1702);T.exports=c({}.isPrototypeOf)},6324:function(T,I,n){var c=n(1702),i=n(2597),s=n(5656),l=n(1318).indexOf,h=n(3501),a=c([].push);T.exports=function(B,E){var f,u=s(B),C=0,e=[];for(f in u)!i(h,f)&&i(u,f)&&a(e,f);for(;E.length>C;)i(u,f=E[C++])&&(~l(e,f)||a(e,f));return e}},1956:function(T,I,n){var c=n(6324),i=n(748);T.exports=Object.keys||function(l){return c(l,i)}},5296:function(T,I){"use strict";var n={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,i=c&&!n.call({1:2},1);I.f=i?function(l){var h=c(this,l);return!!h&&h.enumerable}:n},7674:function(T,I,n){var c=n(1702),i=n(9670),s=n(6077);T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,l=!1,h={};try{(a=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),l=h instanceof Array}catch(B){}return function(E,u){return i(E),s(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(T,I,n){var c=n(9781),i=n(1702),s=n(1956),l=n(5656),a=i(n(5296).f),B=i([].push),E=function(u){return function(C){for(var p,e=l(C),f=s(e),g=f.length,w=0,Q=[];g>w;)p=f[w++],(!c||a(e,p))&&B(Q,u?[p,e[p]]:e[p]);return Q}};T.exports={entries:E(!0),values:E(!1)}},288:function(T,I,n){"use strict";var c=n(1694),i=n(648);T.exports=c?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(T,I,n){var c=n(7854),i=n(6916),s=n(614),l=n(111),h=c.TypeError;T.exports=function(a,B){var E,u;if("string"===B&&s(E=a.toString)&&!l(u=i(E,a))||s(E=a.valueOf)&&!l(u=i(E,a))||"string"!==B&&s(E=a.toString)&&!l(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(T,I,n){var c=n(5005),i=n(1702),s=n(8006),l=n(5181),h=n(9670),a=i([].concat);T.exports=c("Reflect","ownKeys")||function(E){var u=s.f(h(E)),C=l.f;return C?a(u,C(E)):u}},857:function(T,I,n){var c=n(7854);T.exports=c},2534:function(T){T.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(T,I,n){var c=n(9670),i=n(111),s=n(8523);T.exports=function(l,h){if(c(l),i(h)&&h.constructor===l)return h;var a=s.f(l);return(0,a.resolve)(h),a.promise}},2248:function(T,I,n){var c=n(1320);T.exports=function(i,s,l){for(var h in s)c(i,h,s[h],l);return i}},1320:function(T,I,n){var c=n(7854),i=n(614),s=n(2597),l=n(8880),h=n(3505),a=n(2788),B=n(9909),E=n(6530).CONFIGURABLE,u=B.get,C=B.enforce,e=String(String).split("String");(T.exports=function(f,g,w,Q){var v,p=!!Q&&!!Q.unsafe,Y=!!Q&&!!Q.enumerable,y=!!Q&&!!Q.noTargetGet,d=Q&&void 0!==Q.name?Q.name:g;i(w)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(w,"name")||E&&w.name!==d)&&l(w,"name",d),(v=C(w)).source||(v.source=e.join("string"==typeof d?d:""))),f!==c?(p?!y&&f[g]&&(Y=!0):delete f[g],Y?f[g]=w:l(f,g,w)):Y?f[g]=w:h(g,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(T,I,n){var c=n(7854),i=n(6916),s=n(9670),l=n(614),h=n(4326),a=n(2261),B=c.TypeError;T.exports=function(E,u){var C=E.exec;if(l(C)){var e=i(C,E,u);return null!==e&&s(e),e}if("RegExp"===h(E))return i(a,E,u);throw B("RegExp#exec called on incompatible receiver")}},2261:function(T,I,n){"use strict";var R,S,c=n(6916),i=n(1702),s=n(1340),l=n(7066),h=n(2999),a=n(2309),B=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,w=i("".charAt),Q=i("".indexOf),p=i("".replace),Y=i("".slice),y=(S=/b*/g,c(f,R=/a/,"a"),c(f,S,"a"),0!==R.lastIndex||0!==S.lastIndex),d=h.UNSUPPORTED_Y||h.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(y||v||d||u||C)&&(g=function(S){var sA,q,BA,pA,lA,cA,gA,F=this,z=E(F),P=s(S),eA=z.raw;if(eA)return eA.lastIndex=F.lastIndex,sA=c(g,eA,P),F.lastIndex=eA.lastIndex,sA;var xA=z.groups,FA=d&&F.sticky,_=c(l,F),MA=F.source,uA=0,dA=P;if(FA&&(_=p(_,"y",""),-1===Q(_,"g")&&(_+="g"),dA=Y(P,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(P,F.lastIndex-1))&&(MA="(?: "+MA+")",dA=" "+dA,uA++),q=new RegExp("^(?:"+MA+")",_)),v&&(q=new RegExp("^"+MA+"$(?!\\s)",_)),y&&(BA=F.lastIndex),pA=c(f,FA?q:F,dA),FA?pA?(pA.input=Y(pA.input,uA),pA[0]=Y(pA[0],uA),pA.index=F.lastIndex,F.lastIndex+=pA[0].length):F.lastIndex=0:y&&pA&&(F.lastIndex=F.global?pA.index+pA[0].length:BA),v&&pA&&pA.length>1&&c(e,pA[0],q,function(){for(lA=1;lAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$c")})},4488:function(T,I,n){var i=n(7854).TypeError;T.exports=function(s){if(null==s)throw i("Can't call method on "+s);return s}},3505:function(T,I,n){var c=n(7854),i=Object.defineProperty;T.exports=function(s,l){try{i(c,s,{value:l,configurable:!0,writable:!0})}catch(h){c[s]=l}return l}},6340:function(T,I,n){"use strict";var c=n(5005),i=n(3070),s=n(5112),l=n(9781),h=s("species");T.exports=function(a){var B=c(a);l&&B&&!B[h]&&(0,i.f)(B,h,{configurable:!0,get:function(){return this}})}},8003:function(T,I,n){var c=n(3070).f,i=n(2597),l=n(5112)("toStringTag");T.exports=function(h,a,B){h&&!i(h=B?h:h.prototype,l)&&c(h,l,{configurable:!0,value:a})}},6200:function(T,I,n){var c=n(2309),i=n(9711),s=c("keys");T.exports=function(l){return s[l]||(s[l]=i(l))}},5465:function(T,I,n){var c=n(7854),i=n(3505),s="__core-js_shared__",l=c[s]||i(s,{});T.exports=l},2309:function(T,I,n){var c=n(1913),i=n(5465);(T.exports=function(s,l){return i[s]||(i[s]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(T,I,n){var c=n(9670),i=n(9483),l=n(5112)("species");T.exports=function(h,a){var E,B=c(h).constructor;return void 0===B||null==(E=c(B)[l])?a:i(E)}},3429:function(T,I,n){var c=n(7293);T.exports=function(i){return c(function(){var s=""[i]('"');return s!==s.toLowerCase()||s.split('"').length>3})}},8710:function(T,I,n){var c=n(1702),i=n(9303),s=n(1340),l=n(4488),h=c("".charAt),a=c("".charCodeAt),B=c("".slice),E=function(u){return function(C,e){var Q,p,f=s(l(C)),g=i(e),w=f.length;return g<0||g>=w?u?"":void 0:(Q=a(f,g))<55296||Q>56319||g+1===w||(p=a(f,g+1))<56320||p>57343?u?h(f,g):Q:u?B(f,g,g+2):p-56320+(Q-55296<<10)+65536}};T.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(T,I,n){"use strict";var c=n(7854),i=n(9303),s=n(1340),l=n(4488),h=c.RangeError;T.exports=function(B){var E=s(l(this)),u="",C=i(B);if(C<0||C==1/0)throw h("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(E+=E))1&C&&(u+=E);return u}},6091:function(T,I,n){var c=n(6530).PROPER,i=n(7293),s=n(1361);T.exports=function(h){return i(function(){return!!s[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||c&&s[h].name!==h})}},3111:function(T,I,n){var c=n(1702),i=n(4488),s=n(1340),l=n(1361),h=c("".replace),a="["+l+"]",B=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=s(i(e));return 1&C&&(f=h(f,B,"")),2&C&&(f=h(f,E,"")),f}};T.exports={start:u(1),end:u(2),trim:u(3)}},261:function(T,I,n){var R,S,F,z,c=n(7854),i=n(2104),s=n(9974),l=n(614),h=n(2597),a=n(7293),B=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,g=c.clearImmediate,w=c.process,Q=c.Dispatch,p=c.Function,Y=c.MessageChannel,y=c.String,d=0,v={},D="onreadystatechange";try{R=c.location}catch(BA){}var P=function(BA){if(h(v,BA)){var pA=v[BA];delete v[BA],pA()}},eA=function(BA){return function(){P(BA)}},sA=function(BA){P(BA.data)},q=function(BA){c.postMessage(y(BA),R.protocol+"//"+R.host)};(!f||!g)&&(f=function(pA){var lA=E(arguments,1);return v[++d]=function(){i(l(pA)?pA:p(pA),void 0,lA)},S(d),d},g=function(pA){delete v[pA]},e?S=function(BA){w.nextTick(eA(BA))}:Q&&Q.now?S=function(BA){Q.now(eA(BA))}:Y&&!C?(z=(F=new Y).port2,F.port1.onmessage=sA,S=s(z.postMessage,z)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&R&&"file:"!==R.protocol&&!a(q)?(S=q,c.addEventListener("message",sA,!1)):S=D in u("script")?function(BA){B.appendChild(u("script"))[D]=function(){B.removeChild(this),P(BA)}}:function(BA){setTimeout(eA(BA),0)}),T.exports={set:f,clear:g}},863:function(T,I,n){var c=n(1702);T.exports=c(1..valueOf)},1400:function(T,I,n){var c=n(9303),i=Math.max,s=Math.min;T.exports=function(l,h){var a=c(l);return a<0?i(a+h,0):s(a,h)}},7067:function(T,I,n){var c=n(7854),i=n(9303),s=n(7466),l=c.RangeError;T.exports=function(h){if(void 0===h)return 0;var a=i(h),B=s(a);if(a!==B)throw l("Wrong length or index");return B}},5656:function(T,I,n){var c=n(8361),i=n(4488);T.exports=function(s){return c(i(s))}},9303:function(T){var I=Math.ceil,n=Math.floor;T.exports=function(c){var i=+c;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(T,I,n){var c=n(9303),i=Math.min;T.exports=function(s){return s>0?i(c(s),9007199254740991):0}},7908:function(T,I,n){var c=n(7854),i=n(4488),s=c.Object;T.exports=function(l){return s(i(l))}},4590:function(T,I,n){var c=n(7854),i=n(3002),s=c.RangeError;T.exports=function(l,h){var a=i(l);if(a%h)throw s("Wrong offset");return a}},3002:function(T,I,n){var c=n(7854),i=n(9303),s=c.RangeError;T.exports=function(l){var h=i(l);if(h<0)throw s("The argument can't be less than 0");return h}},7593:function(T,I,n){var c=n(7854),i=n(6916),s=n(111),l=n(2190),h=n(8173),a=n(2140),B=n(5112),E=c.TypeError,u=B("toPrimitive");T.exports=function(C,e){if(!s(C)||l(C))return C;var g,f=h(C,u);if(f){if(void 0===e&&(e="default"),g=i(f,C,e),!s(g)||l(g))return g;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(T,I,n){var c=n(7593),i=n(2190);T.exports=function(s){var l=c(s,"string");return i(l)?l:l+""}},1694:function(T,I,n){var s={};s[n(5112)("toStringTag")]="z",T.exports="[object z]"===String(s)},1340:function(T,I,n){var c=n(7854),i=n(648),s=c.String;T.exports=function(l){if("Symbol"===i(l))throw TypeError("Cannot convert a Symbol value to a string");return s(l)}},6330:function(T,I,n){var i=n(7854).String;T.exports=function(s){try{return i(s)}catch(l){return"Object"}}},9843:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(6916),l=n(9781),h=n(3832),a=n(2094),B=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),g=n(7067),w=n(4590),Q=n(4948),p=n(2597),Y=n(648),y=n(111),d=n(2190),v=n(30),D=n(7976),R=n(7674),S=n(8006).f,F=n(7321),z=n(2092).forEach,P=n(6340),eA=n(3070),sA=n(1236),q=n(9909),BA=n(9587),pA=q.get,lA=q.set,cA=eA.f,gA=sA.f,xA=Math.round,FA=i.RangeError,_=B.ArrayBuffer,MA=_.prototype,uA=B.DataView,dA=a.NATIVE_ARRAY_BUFFER_VIEWS,SA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,X=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,W="BYTES_PER_ELEMENT",hA="Wrong length",vA=function(TA,at){O(TA);for(var It=0,mt=at.length,Et=new TA(mt);mt>It;)Et[It]=at[It++];return Et},nA=function(TA,at){cA(TA,at,{get:function(){return pA(this)[at]}})},EA=function(TA){var at;return D(MA,TA)||"ArrayBuffer"==(at=Y(TA))||"SharedArrayBuffer"==at},GA=function(TA,at){return $(TA)&&!d(at)&&at in TA&&e(+at)&&at>=0},et=function(at,It){return It=Q(It),GA(at,It)?u(2,at[It]):gA(at,It)},st=function(at,It,mt){return It=Q(It),!(GA(at,It)&&y(mt)&&p(mt,"value"))||p(mt,"get")||p(mt,"set")||mt.configurable||p(mt,"writable")&&!mt.writable||p(mt,"enumerable")&&!mt.enumerable?cA(at,It,mt):(at[It]=mt.value,at)};l?(dA||(sA.f=et,eA.f=st,nA(X,"buffer"),nA(X,"byteOffset"),nA(X,"byteLength"),nA(X,"length")),c({target:"Object",stat:!0,forced:!dA},{getOwnPropertyDescriptor:et,defineProperty:st}),T.exports=function(TA,at,It){var mt=TA.match(/\d+$/)[0]/8,Et=TA+(It?"Clamped":"")+"Array",OA="get"+TA,WA="set"+TA,nt=i[Et],DA=nt,dt=DA&&DA.prototype,wt={},H=function(k,b){cA(k,b,{get:function(){return function(k,b){var QA=pA(k);return QA.view[OA](b*mt+QA.byteOffset,!0)}(this,b)},set:function(QA){return function(k,b,QA){var wA=pA(k);It&&(QA=(QA=xA(QA))<0?0:QA>255?255:255&QA),wA.view[WA](b*mt+wA.byteOffset,QA,!0)}(this,b,QA)},enumerable:!0})};dA?h&&(DA=at(function(k,b,QA,wA){return E(k,dt),BA(y(b)?EA(b)?void 0!==wA?new nt(b,w(QA,mt),wA):void 0!==QA?new nt(b,w(QA,mt)):new nt(b):$(b)?vA(DA,b):s(F,DA,b):new nt(g(b)),k,DA)}),R&&R(DA,XA),z(S(nt),function(k){k in DA||C(DA,k,nt[k])}),DA.prototype=dt):(DA=at(function(k,b,QA,wA){E(k,dt);var gt,Yt,j,RA=0,rA=0;if(y(b)){if(!EA(b))return $(b)?vA(DA,b):s(F,DA,b);gt=b,rA=w(QA,mt);var qA=b.byteLength;if(void 0===wA){if(qA%mt||(Yt=qA-rA)<0)throw FA(hA)}else if((Yt=f(wA)*mt)+rA>qA)throw FA(hA);j=Yt/mt}else j=g(b),gt=new _(Yt=j*mt);for(lA(k,{buffer:gt,byteOffset:rA,byteLength:Yt,length:j,view:new uA(gt)});RA1?arguments[1]:void 0,p=void 0!==Q,Y=B(g);if(Y&&!E(Y))for(S=(R=a(g,Y)).next,g=[];!(D=i(S,R)).done;)g.push(D.value);for(p&&w>2&&(Q=c(Q,arguments[2])),d=h(g),v=new(u(f))(d),y=0;d>y;y++)v[y]=p?Q(g[y],y):g[y];return v}},6304:function(T,I,n){var c=n(2094),i=n(6707),s=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;T.exports=function(h){return l(i(h,h[s]))}},9711:function(T,I,n){var c=n(1702),i=0,s=Math.random(),l=c(1..toString);T.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+l(++i+s,36)}},3307:function(T,I,n){var c=n(133);T.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(T,I,n){var c=n(5112);I.f=c},5112:function(T,I,n){var c=n(7854),i=n(2309),s=n(2597),l=n(9711),h=n(133),a=n(3307),B=i("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;T.exports=function(e){if(!s(B,e)||!h&&"string"!=typeof B[e]){var f="Symbol."+e;B[e]=h&&s(E,e)?E[e]:a&&u?u(f):C(f)}return B[e]}},1361:function(T){T.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},9170:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(7976),l=n(9518),h=n(7674),a=n(9920),B=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),g=n(6277),w=n(2914),Q=i.Error,p=[].push,Y=function(v,D){var R=s(y,this)?this:B(y),S=arguments.length>2?arguments[2]:void 0;h&&(R=h(new Q(void 0),l(R))),E(R,"message",g(D,"")),w&&E(R,"stack",C(R.stack,1)),e(R,S);var F=[];return f(v,p,{that:F}),E(R,"errors",F),R};h?h(Y,Q):a(Y,Q);var y=Y.prototype=B(Q.prototype,{constructor:u(1,Y),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:Y})},2222:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(7293),l=n(3157),h=n(111),a=n(7908),B=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),g=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",p=i.TypeError,Y=f>=51||!s(function(){var D=[];return D[g]=!1,D.concat()[0]!==D}),y=C("concat"),d=function(D){if(!h(D))return!1;var R=D[g];return void 0!==R?!!R:l(D)};c({target:"Array",proto:!0,forced:!Y||!y},{concat:function(R){var P,eA,sA,q,BA,S=a(this),F=u(S,0),z=0;for(P=-1,sA=arguments.length;Pw)throw p(Q);for(eA=0;eA=w)throw p(Q);E(F,z++,BA)}return F.length=z,F}})},545:function(T,I,n){var c=n(2109),i=n(1048),s=n(1223);c({target:"Array",proto:!0},{copyWithin:i}),s("copyWithin")},3290:function(T,I,n){var c=n(2109),i=n(1285),s=n(1223);c({target:"Array",proto:!0},{fill:i}),s("fill")},7327:function(T,I,n){"use strict";var c=n(2109),i=n(2092).filter;c({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},1038:function(T,I,n){var c=n(2109),i=n(8457);c({target:"Array",stat:!0,forced:!n(7072)(function(h){Array.from(h)})},{from:i})},6699:function(T,I,n){"use strict";var c=n(2109),i=n(1318).includes,s=n(1223);c({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),s("includes")},6992:function(T,I,n){"use strict";var c=n(5656),i=n(1223),s=n(7497),l=n(9909),h=n(654),a="Array Iterator",B=l.set,E=l.getterFor(a);T.exports=h(Array,"Array",function(u,C){B(this,{type:a,target:c(u),index:0,kind:C})},function(){var u=E(this),C=u.target,e=u.kind,f=u.index++;return!C||f>=C.length?(u.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:f,done:!1}:"values"==e?{value:C[f],done:!1}:{value:[f,C[f]],done:!1}},"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},9600:function(T,I,n){"use strict";var c=n(2109),i=n(1702),s=n(8361),l=n(5656),h=n(9341),a=i([].join),B=s!=Object,E=h("join",",");c({target:"Array",proto:!0,forced:B||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(T,I,n){"use strict";var c=n(2109),i=n(2092).map;c({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},7042:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(3157),l=n(4411),h=n(111),a=n(1400),B=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),g=e("slice"),w=C("species"),Q=i.Array,p=Math.max;c({target:"Array",proto:!0,forced:!g},{slice:function(y,d){var F,z,P,v=E(this),D=B(v),R=a(y,D),S=a(void 0===d?D:d,D);if(s(v)&&((l(F=v.constructor)&&(F===Q||s(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(v,R,S);for(z=new(void 0===F?Q:F)(p(S-R,0)),P=0;R3)){if(e)return!0;if(g)return g<603;var F,z,P,eA,S="";for(F=65;F<76;F++){switch(z=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:P=3;break;case 68:case 71:P=4;break;default:P=2}for(eA=0;eA<47;eA++)w.push({k:z+eA,v:P})}for(w.sort(function(sA,q){return q.v-sA.v}),eA=0;eAa(z)?1:-1}}(F)),sA=P.length,q=0;qw)throw e(Q);for(z=B(d,F),P=0;Pv-F+S;P--)delete d[P-1]}else if(S>F)for(P=v-F;P>D;P--)sA=P+S-1,(eA=P+F-1)in d?d[sA]=d[eA]:delete d[sA];for(P=0;P2)if(BA=p(BA),43===(pA=R(BA,0))||45===pA){if(88===(lA=R(BA,2))||120===lA)return NaN}else if(48===pA){switch(R(BA,1)){case 66:case 98:cA=2,gA=49;break;case 79:case 111:cA=8,gA=55;break;default:return+BA}for(FA=(xA=D(BA,2)).length,_=0;_gA)return NaN;return parseInt(xA,cA)}return+BA};if(l(Y,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var sA,z=function(BA){var pA=arguments.length<1?0:y(S(BA)),lA=this;return E(d,lA)&&e(function(){Q(lA)})?B(Object(pA),lA,z):pA},P=c?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),eA=0;P.length>eA;eA++)a(y,sA=P[eA])&&!a(z,sA)&&w(z,sA,g(y,sA));z.prototype=d,d.constructor=z,h(i,Y,z)}},3299:function(T,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(T,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(T,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(1702),l=n(9303),h=n(863),a=n(8415),B=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=s(a),f=s("".slice),g=s(1..toFixed),w=function(v,D,R){return 0===D?R:D%2==1?w(v,D-1,R*v):w(v*v,D/2,R)},p=function(v,D,R){for(var S=-1,F=R;++S<6;)v[S]=(F+=D*v[S])%1e7,F=C(F/1e7)},Y=function(v,D){for(var R=6,S=0;--R>=0;)v[R]=C((S+=v[R])/D),S=S%D*1e7},y=function(v){for(var D=6,R="";--D>=0;)if(""!==R||0===D||0!==v[D]){var S=u(v[D]);R=""===R?S:R+e("0",7-S.length)+S}return R};c({target:"Number",proto:!0,forced:B(function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)})||!B(function(){g({})})},{toFixed:function(D){var eA,sA,q,BA,R=h(this),S=l(D),F=[0,0,0,0,0,0],z="",P="0";if(S<0||S>20)throw E("Incorrect fraction digits");if(R!=R)return"NaN";if(R<=-1e21||R>=1e21)return u(R);if(R<0&&(z="-",R=-R),R>1e-21)if(sA=(eA=function(v){for(var D=0,R=v;R>=4096;)D+=12,R/=4096;for(;R>=2;)D+=1,R/=2;return D}(R*w(2,69,1))-69)<0?R*w(2,-eA,1):R/w(2,eA,1),sA*=4503599627370496,(eA=52-eA)>0){for(p(F,0,sA),q=S;q>=7;)p(F,1e7,0),q-=7;for(p(F,w(10,q,1),0),q=eA-1;q>=23;)Y(F,8388608),q-=23;Y(F,1<0?z+((BA=P.length)<=S?"0."+e("0",S-BA)+P:f(P,0,BA-S)+"."+f(P,BA-S)):z+P}})},9601:function(T,I,n){var c=n(2109),i=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(T,I,n){var c=n(2109),i=n(6677),s=n(7293),l=n(111),h=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:s(function(){a(1)}),sham:!i},{freeze:function(u){return a&&l(u)?a(h(u)):u}})},5003:function(T,I,n){var c=n(2109),i=n(7293),s=n(5656),l=n(1236).f,h=n(9781),a=i(function(){l(1)});c({target:"Object",stat:!0,forced:!h||a,sham:!h},{getOwnPropertyDescriptor:function(u,C){return l(s(u),C)}})},9337:function(T,I,n){var c=n(2109),i=n(9781),s=n(3887),l=n(5656),h=n(1236),a=n(6135);c({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(E){for(var w,Q,u=l(E),C=h.f,e=s(u),f={},g=0;e.length>g;)void 0!==(Q=C(u,w=e[g++]))&&a(f,w,Q);return f}})},489:function(T,I,n){var c=n(2109),i=n(7293),s=n(7908),l=n(9518),h=n(8544);c({target:"Object",stat:!0,forced:i(function(){l(1)}),sham:!h},{getPrototypeOf:function(E){return l(s(E))}})},7941:function(T,I,n){var c=n(2109),i=n(7908),s=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){s(1)})},{keys:function(B){return s(i(B))}})},1539:function(T,I,n){var c=n(1694),i=n(1320),s=n(288);c||i(Object.prototype,"toString",s,{unsafe:!0})},2479:function(T,I,n){var c=n(2109),i=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return i(l)}})},7922:function(T,I,n){"use strict";var c=n(2109),i=n(6916),s=n(9662),l=n(8523),h=n(2534),a=n(408);c({target:"Promise",stat:!0},{allSettled:function(E){var u=this,C=l.f(u),e=C.resolve,f=C.reject,g=h(function(){var w=s(u.resolve),Q=[],p=0,Y=1;a(E,function(y){var d=p++,v=!1;Y++,i(w,u,y).then(function(D){v||(v=!0,Q[d]={status:"fulfilled",value:D},--Y||e(Q))},function(D){v||(v=!0,Q[d]={status:"rejected",reason:D},--Y||e(Q))})}),--Y||e(Q)});return g.error&&f(g.value),C.promise}})},4668:function(T,I,n){"use strict";var c=n(2109),i=n(9662),s=n(5005),l=n(6916),h=n(8523),a=n(2534),B=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=s("AggregateError"),g=h.f(e),w=g.resolve,Q=g.reject,p=a(function(){var Y=i(e.resolve),y=[],d=0,v=1,D=!1;B(C,function(R){var S=d++,F=!1;v++,l(Y,e,R).then(function(z){F||D||(D=!0,w(z))},function(z){F||D||(F=!0,y[S]=z,--v||Q(new f(y,E)))})}),--v||Q(new f(y,E))});return p.error&&Q(p.value),g.promise}})},7727:function(T,I,n){"use strict";var c=n(2109),i=n(1913),s=n(3366),l=n(7293),h=n(5005),a=n(614),B=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!s&&l(function(){s.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var g=B(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(g,f()).then(function(){return Q})}:f,w?function(Q){return E(g,f()).then(function(){throw Q})}:f)}}),!i&&a(s)){var e=h("Promise").prototype.finally;s.prototype.finally!==e&&u(s.prototype,"finally",e,{unsafe:!0})}},8674:function(T,I,n){"use strict";var TA,at,It,mt,c=n(2109),i=n(1913),s=n(7854),l=n(5005),h=n(6916),a=n(3366),B=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),g=n(614),w=n(111),Q=n(5787),p=n(2788),Y=n(408),y=n(7072),d=n(6707),v=n(261).set,D=n(5948),R=n(9478),S=n(842),F=n(8523),z=n(2534),P=n(9909),eA=n(4705),sA=n(5112),q=n(7871),BA=n(5268),pA=n(7392),lA=sA("species"),cA="Promise",gA=P.get,xA=P.set,FA=P.getterFor(cA),_=a&&a.prototype,MA=a,uA=_,dA=s.TypeError,SA=s.document,bA=s.process,XA=F.f,X=XA,O=!!(SA&&SA.createEvent&&s.dispatchEvent),$=g(s.PromiseRejectionEvent),W="unhandledrejection",st=!1,Et=eA(cA,function(){var b=p(MA),QA=b!==String(MA);if(!QA&&66===pA||i&&!uA.finally)return!0;if(pA>=51&&/native code/.test(b))return!1;var wA=new MA(function(gt){gt(1)}),RA=function(gt){gt(function(){},function(){})};return(wA.constructor={})[lA]=RA,!(st=wA.then(function(){})instanceof RA)||!QA&&q&&!$}),OA=Et||!y(function(b){MA.all(b).catch(function(){})}),WA=function(b){var QA;return!(!w(b)||!g(QA=b.then))&&QA},nt=function(b,QA){if(!b.notified){b.notified=!0;var wA=b.reactions;D(function(){for(var RA=b.value,rA=1==b.state,gt=0;wA.length>gt;){var KA,lt,bt,Yt=wA[gt++],j=rA?Yt.ok:Yt.fail,qA=Yt.resolve,kA=Yt.reject,yA=Yt.domain;try{j?(rA||(2===b.rejection&&Tt(b),b.rejection=1),!0===j?KA=RA:(yA&&yA.enter(),KA=j(RA),yA&&(yA.exit(),bt=!0)),KA===Yt.promise?kA(dA("Promise-chain cycle")):(lt=WA(KA))?h(lt,KA,qA,kA):qA(KA)):kA(RA)}catch(xt){yA&&!bt&&yA.exit(),kA(xt)}}b.reactions=[],b.notified=!1,QA&&!b.rejection&&dt(b)})}},DA=function(b,QA,wA){var RA,rA;O?((RA=SA.createEvent("Event")).promise=QA,RA.reason=wA,RA.initEvent(b,!1,!0),s.dispatchEvent(RA)):RA={promise:QA,reason:wA},!$&&(rA=s["on"+b])?rA(RA):b===W&&S("Unhandled promise rejection",wA)},dt=function(b){h(v,s,function(){var rA,QA=b.facade,wA=b.value;if(wt(b)&&(rA=z(function(){BA?bA.emit("unhandledRejection",wA,QA):DA(W,QA,wA)}),b.rejection=BA||wt(b)?2:1,rA.error))throw rA.value})},wt=function(b){return 1!==b.rejection&&!b.parent},Tt=function(b){h(v,s,function(){var QA=b.facade;BA?bA.emit("rejectionHandled",QA):DA("rejectionhandled",QA,b.value)})},JA=function(b,QA,wA){return function(RA){b(QA,RA,wA)}},H=function(b,QA,wA){b.done||(b.done=!0,wA&&(b=wA),b.value=QA,b.state=2,nt(b,!0))},k=function(b,QA,wA){if(!b.done){b.done=!0,wA&&(b=wA);try{if(b.facade===QA)throw dA("Promise can't be resolved itself");var RA=WA(QA);RA?D(function(){var rA={done:!1};try{h(RA,QA,JA(k,rA,b),JA(H,rA,b))}catch(gt){H(rA,gt,b)}}):(b.value=QA,b.state=1,nt(b,!1))}catch(rA){H({done:!1},rA,b)}}};if(Et&&(MA=function(QA){Q(this,uA),f(QA),h(TA,this);var wA=gA(this);try{QA(JA(k,wA),JA(H,wA))}catch(RA){H(wA,RA)}},(TA=function(QA){xA(this,{type:cA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=MA.prototype,{then:function(QA,wA){var RA=FA(this),rA=RA.reactions,gt=XA(d(this,MA));return gt.ok=!g(QA)||QA,gt.fail=g(wA)&&wA,gt.domain=BA?bA.domain:void 0,RA.parent=!0,rA[rA.length]=gt,0!=RA.state&&nt(RA,!1),gt.promise},catch:function(b){return this.then(void 0,b)}}),at=function(){var b=new TA,QA=gA(b);this.promise=b,this.resolve=JA(k,QA),this.reject=JA(H,QA)},F.f=XA=function(b){return b===MA||b===It?new at(b):X(b)},!i&&g(a)&&_!==Object.prototype)){mt=_.then,st||(B(_,"then",function(QA,wA){var RA=this;return new MA(function(rA,gt){h(mt,RA,rA,gt)}).then(QA,wA)},{unsafe:!0}),B(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(b){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:Et},{Promise:MA}),C(MA,cA,!1,!0),e(cA),It=l(cA),c({target:cA,stat:!0,forced:Et},{reject:function(QA){var wA=XA(this);return h(wA.reject,void 0,QA),wA.promise}}),c({target:cA,stat:!0,forced:i||Et},{resolve:function(QA){return R(i&&this===It?MA:this,QA)}}),c({target:cA,stat:!0,forced:OA},{all:function(QA){var wA=this,RA=XA(wA),rA=RA.resolve,gt=RA.reject,Yt=z(function(){var j=f(wA.resolve),qA=[],kA=0,yA=1;Y(QA,function(KA){var lt=kA++,bt=!1;yA++,h(j,wA,KA).then(function(xt){bt||(bt=!0,qA[lt]=xt,--yA||rA(qA))},gt)}),--yA||rA(qA)});return Yt.error&>(Yt.value),RA.promise},race:function(QA){var wA=this,RA=XA(wA),rA=RA.reject,gt=z(function(){var Yt=f(wA.resolve);Y(QA,function(j){h(Yt,wA,j).then(RA.resolve,rA)})});return gt.error&&rA(gt.value),RA.promise}})},2419:function(T,I,n){var c=n(2109),i=n(5005),s=n(2104),l=n(7065),h=n(9483),a=n(9670),B=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,g=u(function(){function p(){}return!(C(function(){},[],p)instanceof p)}),w=!u(function(){C(function(){})}),Q=g||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(Y,y){h(Y),a(y);var d=arguments.length<3?Y:h(arguments[2]);if(w&&!g)return C(Y,y,d);if(Y==d){switch(y.length){case 0:return new Y;case 1:return new Y(y[0]);case 2:return new Y(y[0],y[1]);case 3:return new Y(y[0],y[1],y[2]);case 4:return new Y(y[0],y[1],y[2],y[3])}var v=[null];return s(f,v,y),new(s(l,Y,v))}var D=d.prototype,R=E(B(D)?D:e),S=s(Y,R,y);return B(S)?S:R}})},4916:function(T,I,n){"use strict";var c=n(2109),i=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(T,I,n){var c=n(9781),i=n(3070),s=n(7066),l=n(7293),h=RegExp.prototype;c&&l(function(){return"sy"!==Object.getOwnPropertyDescriptor(h,"flags").get.call({dotAll:!0,sticky:!0})})&&i.f(h,"flags",{configurable:!0,get:s})},9714:function(T,I,n){"use strict";var c=n(1702),i=n(6530).PROPER,s=n(1320),l=n(9670),h=n(7976),a=n(1340),B=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(E);(B(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&s(RegExp.prototype,u,function(){var p=l(this),Y=a(p.source),y=p.flags;return"/"+Y+"/"+a(void 0===y&&h(C,p)&&!("flags"in C)?f(p):y)},{unsafe:!0})},189:function(T,I,n){"use strict";n(7710)("Set",function(s){return function(){return s(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(T,I,n){"use strict";var c=n(2109),i=n(8710).codeAt;c({target:"String",proto:!0},{codePointAt:function(l){return i(this,l)}})},4953:function(T,I,n){var c=n(2109),i=n(7854),s=n(1702),l=n(1400),h=i.RangeError,a=String.fromCharCode,B=String.fromCodePoint,E=s([].join);c({target:"String",stat:!0,forced:!!B&&1!=B.length},{fromCodePoint:function(e){for(var Q,f=[],g=arguments.length,w=0;g>w;){if(Q=+arguments[w++],l(Q,1114111)!==Q)throw h(Q+" is not a valid code point");f[w]=Q<65536?a(Q):a(55296+((Q-=65536)>>10),Q%1024+56320)}return E(f,"")}})},2023:function(T,I,n){"use strict";var c=n(2109),i=n(1702),s=n(3929),l=n(4488),h=n(1340),a=n(4964),B=i("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~B(h(l(this)),h(s(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(T,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return i(this,"i","","")}})},8783:function(T,I,n){"use strict";var c=n(8710).charAt,i=n(1340),s=n(9909),l=n(654),h="String Iterator",a=s.set,B=s.getterFor(h);l(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=B(this),C=u.string,e=u.index;return e>=C.length?{value:void 0,done:!0}:(f=c(C,e),u.index+=f.length,{value:f,done:!1})})},9254:function(T,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("link")},{link:function(h){return i(this,"a","href",h)}})},6373:function(T,I,n){"use strict";var c=n(2109),i=n(7854),s=n(6916),l=n(1702),h=n(4994),a=n(4488),B=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),g=n(7066),w=n(8173),Q=n(1320),p=n(7293),Y=n(5112),y=n(6707),d=n(1530),v=n(7651),D=n(9909),R=n(1913),S=Y("matchAll"),F="RegExp String",z=F+" Iterator",P=D.set,eA=D.getterFor(z),sA=RegExp.prototype,q=i.TypeError,BA=l(g),pA=l("".indexOf),lA=l("".matchAll),cA=!!lA&&!p(function(){lA("a",/./)}),gA=h(function(_,MA,uA,dA){P(this,{type:z,regexp:_,string:MA,global:uA,unicode:dA,done:!1})},F,function(){var _=eA(this);if(_.done)return{value:void 0,done:!0};var MA=_.regexp,uA=_.string,dA=v(MA,uA);return null===dA?{value:void 0,done:_.done=!0}:_.global?(""===E(dA[0])&&(MA.lastIndex=d(uA,B(MA.lastIndex),_.unicode)),{value:dA,done:!1}):(_.done=!0,{value:dA,done:!1})}),xA=function(FA){var uA,dA,SA,bA,XA,X,_=u(this),MA=E(FA);return uA=y(_,RegExp),void 0===(dA=_.flags)&&e(sA,_)&&!("flags"in sA)&&(dA=BA(_)),SA=void 0===dA?"":E(dA),bA=new uA(uA===RegExp?_.source:_,SA),XA=!!~pA(SA,"g"),X=!!~pA(SA,"u"),bA.lastIndex=B(_.lastIndex),new gA(bA,MA,XA,X)};c({target:"String",proto:!0,forced:cA},{matchAll:function(_){var uA,dA,SA,bA,MA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in sA?_.flags:BA(_))),!~pA(uA,"g")))throw q("`.matchAll` does not allow non-global regexes");if(cA)return lA(MA,_);if(void 0===(SA=w(_,S))&&R&&"RegExp"==C(_)&&(SA=xA),SA)return s(SA,_,MA)}else if(cA)return lA(MA,_);return dA=E(MA),bA=new RegExp(_,"g"),R?s(xA,bA,dA):bA[S](dA)}}),R||S in sA||Q(sA,S,xA)},4723:function(T,I,n){"use strict";var c=n(6916),i=n(7007),s=n(9670),l=n(7466),h=n(1340),a=n(4488),B=n(8173),E=n(1530),u=n(7651);i("match",function(C,e,f){return[function(w){var Q=a(this),p=null==w?void 0:B(w,C);return p?c(p,w,Q):new RegExp(w)[C](h(Q))},function(g){var w=s(this),Q=h(g),p=f(e,w,Q);if(p.done)return p.value;if(!w.global)return u(w,Q);var Y=w.unicode;w.lastIndex=0;for(var v,y=[],d=0;null!==(v=u(w,Q));){var D=h(v[0]);y[d]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),Y)),d++}return 0===d?null:y}]})},2481:function(T,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(T,I,n){"use strict";var c=n(2104),i=n(6916),s=n(1702),l=n(7007),h=n(7293),a=n(9670),B=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),g=n(8173),w=n(647),Q=n(7651),Y=n(5112)("replace"),y=Math.max,d=Math.min,v=s([].concat),D=s([].push),R=s("".indexOf),S=s("".slice),F=function(sA){return void 0===sA?sA:String(sA)},z="$0"==="a".replace(/./,"$0"),P=!!/./[Y]&&""===/./[Y]("a","$0");l("replace",function(sA,q,BA){var pA=P?"$":"$0";return[function(cA,gA){var xA=e(this),FA=null==cA?void 0:g(cA,Y);return FA?i(FA,cA,xA,gA):i(q,C(xA),cA,gA)},function(lA,cA){var gA=a(this),xA=C(lA);if("string"==typeof cA&&-1===R(cA,pA)&&-1===R(cA,"$<")){var FA=BA(q,gA,xA,cA);if(FA.done)return FA.value}var _=B(cA);_||(cA=C(cA));var MA=gA.global;if(MA){var uA=gA.unicode;gA.lastIndex=0}for(var dA=[];;){var SA=Q(gA,xA);if(null===SA||(D(dA,SA),!MA))break;""===C(SA[0])&&(gA.lastIndex=f(xA,u(gA.lastIndex),uA))}for(var XA="",X=0,O=0;O=X&&(XA+=S(xA,X,W)+GA,X=W+$.length)}return XA+S(xA,X)}]},!!h(function(){var sA=/./;return sA.exec=function(){var q=[];return q.groups={a:"7"},q},"7"!=="".replace(sA,"$")})||!z||P)},3123:function(T,I,n){"use strict";var c=n(2104),i=n(6916),s=n(1702),l=n(7007),h=n(7850),a=n(9670),B=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),g=n(206),w=n(7651),Q=n(2261),p=n(2999),Y=n(7293),y=p.UNSUPPORTED_Y,d=4294967295,v=Math.min,D=[].push,R=s(/./.exec),S=s(D),F=s("".slice),z=!Y(function(){var P=/(?:)/,eA=P.exec;P.exec=function(){return eA.apply(this,arguments)};var sA="ab".split(P);return 2!==sA.length||"a"!==sA[0]||"b"!==sA[1]});l("split",function(P,eA,sA){var q;return q="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(BA,pA){var lA=e(B(this)),cA=void 0===pA?d:pA>>>0;if(0===cA)return[];if(void 0===BA)return[lA];if(!h(BA))return i(eA,lA,BA,cA);for(var MA,uA,dA,gA=[],FA=0,_=new RegExp(BA.source,(BA.ignoreCase?"i":"")+(BA.multiline?"m":"")+(BA.unicode?"u":"")+(BA.sticky?"y":"")+"g");(MA=i(Q,_,lA))&&!((uA=_.lastIndex)>FA&&(S(gA,F(lA,FA,MA.index)),MA.length>1&&MA.index=cA));)_.lastIndex===MA.index&&_.lastIndex++;return FA===lA.length?(dA||!R(_,""))&&S(gA,""):S(gA,F(lA,FA)),gA.length>cA?g(gA,0,cA):gA}:"0".split(void 0,0).length?function(BA,pA){return void 0===BA&&0===pA?[]:i(eA,this,BA,pA)}:eA,[function(pA,lA){var cA=B(this),gA=null==pA?void 0:f(pA,P);return gA?i(gA,pA,cA,lA):i(q,e(cA),pA,lA)},function(BA,pA){var lA=a(this),cA=e(BA),gA=sA(q,lA,cA,pA,q!==eA);if(gA.done)return gA.value;var xA=E(lA,RegExp),FA=lA.unicode,MA=new xA(y?"^(?:"+lA.source+")":lA,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(y?"g":"y")),uA=void 0===pA?d:pA>>>0;if(0===uA)return[];if(0===cA.length)return null===w(MA,cA)?[cA]:[];for(var dA=0,SA=0,bA=[];SA2?arguments[2]:void 0)})},8927:function(T,I,n){"use strict";var c=n(2094),i=n(2092).every,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(T,I,n){"use strict";var c=n(2094),i=n(6916),s=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(B){var E=arguments.length;return i(s,l(this),B,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(T,I,n){"use strict";var c=n(2094),i=n(2092).filter,s=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(B){var E=i(l(this),B,arguments.length>1?arguments[1]:void 0);return s(this,E)})},7174:function(T,I,n){"use strict";var c=n(2094),i=n(2092).findIndex,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(T,I,n){"use strict";var c=n(2094),i=n(2092).find,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(T,I,n){n(9843)("Float32",function(i){return function(l,h,a){return i(this,l,h,a)}})},6495:function(T,I,n){n(9843)("Float64",function(i){return function(l,h,a){return i(this,l,h,a)}})},2846:function(T,I,n){"use strict";var c=n(2094),i=n(2092).forEach,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){i(s(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(T,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(T,I,n){"use strict";var c=n(2094),i=n(1318).includes,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(T,I,n){"use strict";var c=n(2094),i=n(1318).indexOf,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(T,I,n){n(9843)("Int16",function(i){return function(l,h,a){return i(this,l,h,a)}})},5125:function(T,I,n){n(9843)("Int32",function(i){return function(l,h,a){return i(this,l,h,a)}})},7145:function(T,I,n){n(9843)("Int8",function(i){return function(l,h,a){return i(this,l,h,a)}})},6319:function(T,I,n){"use strict";var c=n(7854),i=n(1702),s=n(6530).PROPER,l=n(2094),h=n(6992),B=n(5112)("iterator"),E=c.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=l.aTypedArray,g=l.exportTypedArrayMethod,w=E&&E.prototype[B],Q=!!w&&"values"===w.name,p=function(){return u(f(this))};g("entries",function(){return e(f(this))}),g("keys",function(){return C(f(this))}),g("values",p,s&&!Q),g(B,p,s&&!Q)},8867:function(T,I,n){"use strict";var c=n(2094),i=n(1702),s=c.aTypedArray,l=c.exportTypedArrayMethod,h=i([].join);l("join",function(B){return h(s(this),B)})},7789:function(T,I,n){"use strict";var c=n(2094),i=n(2104),s=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(B){var E=arguments.length;return i(s,l(this),E>1?[B,arguments[1]]:[B])})},3739:function(T,I,n){"use strict";var c=n(2094),i=n(2092).map,s=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(B){return i(l(this),B,arguments.length>1?arguments[1]:void 0,function(E,u){return new(s(E))(u)})})},4483:function(T,I,n){"use strict";var c=n(2094),i=n(3671).right,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var B=arguments.length;return i(s(this),a,B,B>1?arguments[1]:void 0)})},9368:function(T,I,n){"use strict";var c=n(2094),i=n(3671).left,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var B=arguments.length;return i(s(this),a,B,B>1?arguments[1]:void 0)})},2056:function(T,I,n){"use strict";var c=n(2094),i=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,B=i(a).length,E=l(B/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),p=s(Q),Y=0;if(p+g>w)throw B("Wrong length");for(;Yg;)Q[g]=e[g++];return Q},s(function(){new Int8Array(1).slice()}))},7462:function(T,I,n){"use strict";var c=n(2094),i=n(2092).some,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return i(s(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(T,I,n){"use strict";var c=n(7854),i=n(1702),s=n(7293),l=n(9662),h=n(4362),a=n(2094),B=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,f=a.aTypedArray,g=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&i(w.prototype.sort),p=!(!Q||s(function(){Q(new w(2),null)})&&s(function(){Q(new w(2),{})})),Y=!!Q&&!s(function(){if(u)return u<74;if(B)return B<67;if(E)return!0;if(C)return C<602;var D,R,d=new w(516),v=e(516);for(D=0;D<516;D++)R=D%4,d[D]=515-D,v[D]=D-2*R+3;for(Q(d,function(S,F){return(S/4|0)-(F/4|0)}),D=0;D<516;D++)if(d[D]!==v[D])return!0});g("sort",function(v){return void 0!==v&&l(v),Y?Q(this,v):h(f(this),(d=v,function(v,D){return void 0!==d?+d(v,D)||0:D!=D?-1:v!=v?1:0===v&&0===D?1/v>0&&1/D<0?1:-1:v>D}));var d},!Y||p)},5021:function(T,I,n){"use strict";var c=n(2094),i=n(7466),s=n(1400),l=n(6304),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=s(E,e);return new(l(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:s(u,e))-f))})},2974:function(T,I,n){"use strict";var c=n(7854),i=n(2104),s=n(2094),l=n(7293),h=n(206),a=c.Int8Array,B=s.aTypedArray,E=s.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(B(this)):B(this),h(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(T,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,i=n(7293),s=n(7854),l=n(1702),h=s.Uint8Array,a=h&&h.prototype||{},B=[].toString,E=l([].join);i(function(){B.call({})})&&(B=function(){return E(this)}),c("toString",B,a.toString!=B)},8255:function(T,I,n){n(9843)("Uint16",function(i){return function(l,h,a){return i(this,l,h,a)}})},9135:function(T,I,n){n(9843)("Uint32",function(i){return function(l,h,a){return i(this,l,h,a)}})},2472:function(T,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}})},9743:function(T,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}},!0)},8628:function(T,I,n){n(9170)},5743:function(T,I,n){n(5837)},7314:function(T,I,n){n(7922)},6290:function(T,I,n){n(4668)},7479:function(T,I,n){"use strict";var c=n(2109),i=n(8523),s=n(2534);c({target:"Promise",stat:!0},{try:function(l){var h=i.f(this),a=s(l);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(T,I,n){n(6373)},4747:function(T,I,n){var c=n(7854),i=n(8324),s=n(8509),l=n(8533),h=n(8880),a=function(E){if(E&&E.forEach!==l)try{h(E,"forEach",l)}catch(u){E.forEach=l}};for(var B in i)i[B]&&a(c[B]&&c[B].prototype);a(s)},3948:function(T,I,n){var c=n(7854),i=n(8324),s=n(8509),l=n(6992),h=n(8880),a=n(5112),B=a("iterator"),E=a("toStringTag"),u=l.values,C=function(f,g){if(f){if(f[B]!==u)try{h(f,B,u)}catch(Q){f[B]=u}if(f[E]||h(f,E,g),i[g])for(var w in l)if(f[w]!==l[w])try{h(f,w,l[w])}catch(Q){f[w]=l[w]}}};for(var e in i)C(c[e]&&c[e].prototype,e);C(s,"DOMTokenList")},3753:function(T,I,n){"use strict";var c=n(2109),i=n(6916);c({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},1150:function(T,I,n){var c=n(7633);n(3948),T.exports=c},251:function(T,I,n){var c=n(2215),i=n(2584),s=n(609),l=n(8420),h=n(2847),a=n(8923),B=Date.prototype.getTime;function E(f,g,w){var Q=w||{};return!!(Q.strict?s(f,g):f===g)||(!f||!g||"object"!=typeof f&&"object"!=typeof g?Q.strict?s(f,g):f==g:function e(f,g,w){var Q,p;if(typeof f!=typeof g||u(f)||u(g)||f.prototype!==g.prototype||i(f)!==i(g))return!1;var Y=l(f),y=l(g);if(Y!==y)return!1;if(Y||y)return f.source===g.source&&h(f)===h(g);if(a(f)&&a(g))return B.call(f)===B.call(g);var d=C(f),v=C(g);if(d!==v)return!1;if(d||v){if(f.length!==g.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=R[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[p=D[Q]],g[p],w))return!1;return!0}(f,g,Q))}function u(f){return null==f}function C(f){return!(!f||"object"!=typeof f||"number"!=typeof f.length||"function"!=typeof f.copy||"function"!=typeof f.slice||f.length>0&&"number"!=typeof f[0])}T.exports=E},4289:function(T,I,n){"use strict";var c=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,l=Array.prototype.concat,h=Object.defineProperty,E=h&&function(){var e={};try{for(var f in h(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(g){return!1}}(),u=function(e,f,g,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:g,writable:!0}):e[f]=g)},C=function(e,f){var g=arguments.length>2?arguments[2]:{},w=c(f);i&&(w=l.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&z.length>S&&!z.warned){z.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=d,P.type=v,P.count=z.length,function i(d){console&&console.warn&&console.warn(d)}(P)}return d}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(d,v,D){var R={fired:!1,wrapFn:void 0,target:d,type:v,listener:D},S=u.bind(R);return S.listener=D,R.wrapFn=S,S}function e(d,v,D){var R=d._events;if(void 0===R)return[];var S=R[v];return void 0===S?[]:"function"==typeof S?D?[S.listener||S]:[S]:D?function Q(d){for(var v=new Array(d.length),D=0;D0&&(z=D[0]),z instanceof Error)throw z;var P=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw P.context=z,P}var eA=F[v];if(void 0===eA)return!1;if("function"==typeof eA)n(eA,this,D);else{var sA=eA.length,q=g(eA,sA);for(R=0;R=0;z--)if(R[z]===D||R[z].listener===D){P=R[z].listener,F=z;break}if(F<0)return this;0===F?R.shift():function w(d,v){for(;v+1=0;S--)this.removeListener(v,D[S]);return this},l.prototype.listeners=function(v){return e(this,v,!0)},l.prototype.rawListeners=function(v){return e(this,v,!1)},l.listenerCount=function(d,v){return"function"==typeof d.listenerCount?d.listenerCount(v):f.call(d,v)},l.prototype.listenerCount=f,l.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}},2536:function(T,I,n){var c=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=c),T.exports=c},7672:function(T,I,n){"use strict";T.exports=function(){if("object"==typeof globalThis)return globalThis;var c;try{c=this||new Function("return this")()}catch(i){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return c}()},9804:function(T){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;T.exports=function(i,s,l){if("[object Function]"!==n.call(s))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof sA)throw new l('"allowMissing" argument must be a boolean');var q=F(eA),BA=q.length>0?q[0]:"",pA=z("%"+BA+"%",sA),lA=pA.name,cA=pA.value,gA=!1,xA=pA.alias;xA&&(BA=xA[0],d(q,y([0,1],xA)));for(var FA=1,_=!0;FA=q.length){var SA=a(cA,MA);cA=(_=!!SA)&&"get"in SA&&!("originalValue"in SA.get)?SA.get:cA[MA]}else _=Y(cA,MA),cA=cA[MA];_&&!gA&&(g[lA]=cA)}}return cA}},1405:function(T,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,i=n(5419);T.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(T){"use strict";T.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},c=Symbol("test"),i=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(c in n[c]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var l=Object.getOwnPropertySymbols(n);if(1!==l.length||l[0]!==c||!Object.prototype.propertyIsEnumerable.call(n,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(n,c);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},6410:function(T,I,n){"use strict";var c=n(5419);T.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(T,I,n){"use strict";var c=n(8612);T.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(T,I,n){"use strict";var c=n(7103).Buffer;I._dbcs=u;for(var i=-1,l=-10,h=-1e3,a=new Array(256),E=0;E<256;E++)a[E]=i;function u(g,w){if(this.encodingName=g.encodingName,!g)throw new Error("DBCS codec is called without the data.");if(!g.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=g.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var p=0;ph)throw new Error("gb18030 decode tables conflict at byte 2");for(var R=this.decodeTables[h-v[D]],S=129;S<=254;S++){if(R[S]===i)R[S]=h-y;else{if(R[S]===h-y)continue;if(R[S]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-R[S]],z=48;z<=57;z++)F[z]===i&&(F[z]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var P={};if(g.encodeSkipVals)for(p=0;pw)return-1;for(var Q=0,p=g.length;Q>1);g[Y]<=w?Q=Y:p=Y}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(g){for(var w=[];g>0;g>>>=8)w.push(255&g);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],p=w.length-1;p>0;p--){var Y=Q[w[p]];if(Y==i)Q[w[p]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(Y<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+g.toString(16));Q=this.decodeTables[h-Y]}}return Q},u.prototype._addDecodeChunk=function(g){var w=parseInt(g[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var p=1;p255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+g[0]+": too long"+w)},u.prototype._getEncodeBucket=function(g){var w=g>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(g,w){var Q=this._getEncodeBucket(g),p=255&g;Q[p]<=l?this.encodeTableSeq[l-Q[p]][-1]=w:Q[p]==i&&(Q[p]=w)},u.prototype._setEncodeSequence=function(g,w){var y,Q=g[0],p=this._getEncodeBucket(Q),Y=255&Q;p[Y]<=l?y=this.encodeTableSeq[l-p[Y]]:(y={},p[Y]!==i&&(y[-1]=p[Y]),p[Y]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(y));for(var d=1;d=0)this._setEncodeChar(v,D),Y=!0;else if(v<=h){var R=h-v;y[R]||(this._fillEncodeTable(R,D<<8>>>0,Q)?Y=!0:y[R]=!0)}else v<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-v],D),Y=!0)}return Y},C.prototype.write=function(g){for(var w=c.alloc(g.length*(this.gb18030?4:3)),Q=this.leadSurrogate,p=this.seqObj,Y=-1,y=0,d=0;;){if(-1===Y){if(y==g.length)break;var v=g.charCodeAt(y++)}else v=Y,Y=-1;if(55296<=v&&v<57344)if(v<56320){if(-1===Q){Q=v;continue}Q=v,v=i}else-1!==Q?(v=65536+1024*(Q-55296)+(v-56320),Q=-1):v=i;else-1!==Q&&(Y=v,v=i,Q=-1);var D=i;if(void 0!==p&&v!=i){var R=p[v];if("object"==typeof R){p=R;continue}"number"==typeof R?D=R:null==R&&void 0!==(R=p[-1])&&(D=R,Y=v),p=void 0}else if(v>=0){var S=this.encodeTable[v>>8];if(void 0!==S&&(D=S[255&v]),D<=l){p=this.encodeTableSeq[l-D];continue}if(D==i&&this.gb18030){var F=f(this.gb18030.uChars,v);if(-1!=F){D=this.gb18030.gbChars[F]+(v-this.gb18030.uChars[F]),w[d++]=129+Math.floor(D/12600),D%=12600,w[d++]=48+Math.floor(D/1260),D%=1260,w[d++]=129+Math.floor(D/10),w[d++]=48+(D%=10);continue}}}D===i&&(D=this.defaultCharSingleByte),D<256?w[d++]=D:D<65536?(w[d++]=D>>8,w[d++]=255&D):D<16777216?(w[d++]=D>>16,w[d++]=D>>8&255,w[d++]=255&D):(w[d++]=D>>>24,w[d++]=D>>>16&255,w[d++]=D>>>8&255,w[d++]=255&D)}return this.seqObj=p,this.leadSurrogate=Q,w.slice(0,d)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var g=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?g[w++]=Q:(g[w++]=Q>>8,g[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(g[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),g.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(g){for(var w=c.alloc(2*g.length),Q=this.nodeIdx,p=this.prevBytes,Y=this.prevBytes.length,y=-this.prevBytes.length,v=0,D=0;v=0?g[v]:p[v+Y];if(!((d=this.decodeTables[Q][R])>=0))if(d===i)d=this.defaultCharUnicode.charCodeAt(0),v=y;else if(-2===d){if(v>=3)var S=12600*(g[v-3]-129)+1260*(g[v-2]-48)+10*(g[v-1]-129)+(R-48);else S=12600*(p[v-3+Y]-129)+1260*((v-2>=0?g[v-2]:p[v-2+Y])-48)+10*((v-1>=0?g[v-1]:p[v-1+Y])-129)+(R-48);var F=f(this.gb18030.gbChars,S);d=this.gb18030.uChars[F]+S-this.gb18030.gbChars[F]}else{if(d<=h){Q=h-d;continue}if(!(d<=l))throw new Error("iconv-lite internal error: invalid decoding table value "+d+" at "+Q+"/"+R);for(var z=this.decodeTableSeq[l-d],P=0;P>8;d=z[z.length-1]}if(d>=65536){var eA=55296|(d-=65536)>>10;w[D++]=255&eA,w[D++]=eA>>8,d=56320|1023&d}w[D++]=255&d,w[D++]=d>>8,Q=0,y=v+1}return this.nodeIdx=Q,this.prevBytes=y>=0?Array.prototype.slice.call(g,y):p.slice(y+Y).concat(Array.prototype.slice.call(g)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var g="";this.prevBytes.length>0;){g+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(g+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,g}},5990:function(T,I,n){"use strict";T.exports={shiftjis:{type:"_dbcs",table:function(){return n(7014)},encodeAdd:{"\xa5":92,"\u203e":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(5633)},encodeAdd:{"\xa5":92,"\u203e":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(3336)}},gbk:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))},gb18030:function(){return n(6258)},encodeSkipVals:[128],encodeAdd:{"\u20ac":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(7348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(4284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(4284).concat(n(3480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},6934:function(T,I,n){"use strict";for(var c=[n(1025),n(7688),n(1279),n(758),n(9068),n(3769),n(7018),n(688),n(5990)],i=0;i>>6),C[e++]=128+(63&g)):(C[e++]=224+(g>>>12),C[e++]=128+(g>>>6&63),C[e++]=128+(63&g))}return C.slice(0,e)},B.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,g="",w=0;w0&&(g+=this.defaultCharUnicode,e=0),Q<128?g+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):g+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(g+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):g+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,g},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(T,I,n){"use strict";var c=n(7103).Buffer;function i(h,a){if(!h)throw new Error("SBCS codec is called without the data.");if(!h.chars||128!==h.chars.length&&256!==h.chars.length)throw new Error("Encoding '"+h.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===h.chars.length){for(var B="",E=0;E<128;E++)B+=String.fromCharCode(E);h.chars=B+h.chars}this.decodeBuf=c.from(h.chars,"ucs2");var u=c.alloc(65536,a.defaultCharSingleByte.charCodeAt(0));for(E=0;E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7\u2219\u221a\u2592\u2500\u2502\u253c\u2524\u252c\u251c\u2534\u2510\u250c\u2514\u2518\u03b2\u221e\u03c6\xb1\xbd\xbc\u2248\xab\xbb\ufef7\ufef8\ufffd\ufffd\ufefb\ufefc\ufffd\xa0\xad\ufe82\xa3\xa4\ufe84\ufffd\ufffd\ufe8e\ufe8f\ufe95\ufe99\u060c\ufe9d\ufea1\ufea5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufed1\u061b\ufeb1\ufeb5\ufeb9\u061f\xa2\ufe80\ufe81\ufe83\ufe85\ufeca\ufe8b\ufe8d\ufe91\ufe93\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec1\ufec5\ufecb\ufecf\xa6\xac\xf7\xd7\ufec9\u0640\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufeef\ufef3\ufebd\ufecc\ufece\ufecd\ufee1\ufe7d\u0651\ufee5\ufee9\ufeec\ufef0\ufef2\ufed0\ufed5\ufef5\ufef6\ufedd\ufed9\ufef1\u25a0\ufffd"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xa4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0386\ufffd\xb7\xac\xa6\u2018\u2019\u0388\u2015\u0389\u038a\u03aa\u038c\ufffd\ufffd\u038e\u03ab\xa9\u038f\xb2\xb3\u03ac\xa3\u03ad\u03ae\u03af\u03ca\u0390\u03cc\u03cd\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xbd\u0398\u0399\xab\xbb\u2591\u2592\u2593\u2502\u2524\u039a\u039b\u039c\u039d\u2563\u2551\u2557\u255d\u039e\u039f\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u03a0\u03a1\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b1\u03b2\u03b3\u2518\u250c\u2588\u2584\u03b4\u03b5\u2580\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c2\u03c4\u0384\xad\xb1\u03c5\u03c6\u03c7\xa7\u03c8\u0385\xb0\xa8\u03c9\u03cb\u03b0\u03ce\u25a0\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\u203e\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\u0160\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\u017d\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\u0161\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\u017e\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\ufe88\xd7\xf7\uf8f6\uf8f5\uf8f4\uf8f7\ufe71\x88\u25a0\u2502\u2500\u2510\u250c\u2514\u2518\ufe79\ufe7b\ufe7d\ufe7f\ufe77\ufe8a\ufef0\ufef3\ufef2\ufece\ufecf\ufed0\ufef6\ufef8\ufefa\ufefc\xa0\uf8fa\uf8f9\uf8f8\xa4\uf8fb\ufe8b\ufe91\ufe97\ufe9b\ufe9f\ufea3\u060c\xad\ufea7\ufeb3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufeb7\u061b\ufebb\ufebf\ufeca\u061f\ufecb\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\ufec7\u0639\u063a\ufecc\ufe82\ufe84\ufe8e\ufed3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\ufed7\ufedb\ufedf\uf8fc\ufef5\ufef7\ufef9\ufefb\ufee3\ufee7\ufeec\ufee9\ufffd"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\xad\u040e\u040f\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\xa7\u045e\u045f"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e81\u0e82\u0e84\u0e87\u0e88\u0eaa\u0e8a\u0e8d\u0e94\u0e95\u0e96\u0e97\u0e99\u0e9a\u0e9b\u0e9c\u0e9d\u0e9e\u0e9f\u0ea1\u0ea2\u0ea3\u0ea5\u0ea7\u0eab\u0ead\u0eae\ufffd\ufffd\ufffd\u0eaf\u0eb0\u0eb2\u0eb3\u0eb4\u0eb5\u0eb6\u0eb7\u0eb8\u0eb9\u0ebc\u0eb1\u0ebb\u0ebd\ufffd\ufffd\ufffd\u0ec0\u0ec1\u0ec2\u0ec3\u0ec4\u0ec8\u0ec9\u0eca\u0ecb\u0ecc\u0ecd\u0ec6\ufffd\u0edc\u0edd\u20ad\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0ed0\u0ed1\u0ed2\u0ed3\u0ed4\u0ed5\u0ed6\u0ed7\u0ed8\u0ed9\ufffd\ufffd\xa2\xac\xa6\ufffd"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e48\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\u0e49\u0e4a\u0e4b\u20ac\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20ac\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\u20ac\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u2126\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\ufffd\xa9\u2044\xa4\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\xa2\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\xad\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\u0387\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\ufffd"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u015e\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\u0103\u015f\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\u0162\u0163\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macthai:{type:"_sbcs",chars:"\xab\xbb\u2026\uf88c\uf88f\uf892\uf895\uf898\uf88b\uf88e\uf891\uf894\uf897\u201c\u201d\uf899\ufffd\u2022\uf884\uf889\uf885\uf886\uf887\uf888\uf88a\uf88d\uf890\uf893\uf896\u2018\u2019\ufffd\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufeff\u200b\u2013\u2014\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u2122\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\xae\xa9\ufffd\ufffd\ufffd\ufffd"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\ufffd\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255a\u255b\u255c\u255d\u255e\u255f\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256a\u256b\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u255d\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u045e\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u040e\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8t:{type:"_sbcs",chars:"\u049b\u0493\u201a\u0492\u201e\u2026\u2020\u2021\ufffd\u2030\u04b3\u2039\u04b2\u04b7\u04b6\ufffd\u049a\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\ufffd\u203a\ufffd\ufffd\ufffd\ufffd\ufffd\u04ef\u04ee\u0451\xa4\u04e3\xa6\xa7\ufffd\ufffd\ufffd\xab\xac\xad\xae\ufffd\xb0\xb1\xb2\u0401\ufffd\u04e2\xb6\xb7\ufffd\u2116\ufffd\xbb\ufffd\ufffd\ufffd\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\ufffd\u0587\u0589)(\xbb\xab\u2014.\u055d,-\u058a\u2026\u055c\u055b\u055e\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053a\u056a\u053b\u056b\u053c\u056c\u053d\u056d\u053e\u056e\u053f\u056f\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054a\u057a\u054b\u057b\u054c\u057c\u054d\u057d\u054e\u057e\u054f\u057f\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055a\ufffd"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u049a\u04ba\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\u0459\u203a\u045a\u049b\u04bb\u045f\xa0\u04b0\u04b1\u04d8\xa4\u04e8\xa6\xa7\u0401\xa9\u0492\xab\xac\xad\xae\u04ae\xb0\xb1\u0406\u0456\u04e9\xb5\xb6\xb7\u0451\u2116\u0493\xbb\u04d9\u04a2\u04a3\u04af\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},tcvn:{type:"_sbcs",chars:"\0\xda\u1ee4\x03\u1eea\u1eec\u1eee\x07\b\t\n\v\f\r\x0e\x0f\x10\u1ee8\u1ef0\u1ef2\u1ef6\u1ef8\xdd\u1ef4\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0\u1ea2\xc3\xc1\u1ea0\u1eb6\u1eac\xc8\u1eba\u1ebc\xc9\u1eb8\u1ec6\xcc\u1ec8\u0128\xcd\u1eca\xd2\u1ece\xd5\xd3\u1ecc\u1ed8\u1edc\u1ede\u1ee0\u1eda\u1ee2\xd9\u1ee6\u0168\xa0\u0102\xc2\xca\xd4\u01a0\u01af\u0110\u0103\xe2\xea\xf4\u01a1\u01b0\u0111\u1eb0\u0300\u0309\u0303\u0301\u0323\xe0\u1ea3\xe3\xe1\u1ea1\u1eb2\u1eb1\u1eb3\u1eb5\u1eaf\u1eb4\u1eae\u1ea6\u1ea8\u1eaa\u1ea4\u1ec0\u1eb7\u1ea7\u1ea9\u1eab\u1ea5\u1ead\xe8\u1ec2\u1ebb\u1ebd\xe9\u1eb9\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\xec\u1ec9\u1ec4\u1ebe\u1ed2\u0129\xed\u1ecb\xf2\u1ed4\u1ecf\xf5\xf3\u1ecd\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u1edd\u1edf\u1ee1\u1edb\u1ee3\xf9\u1ed6\u1ee7\u0169\xfa\u1ee5\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\xfd\u1ef5\u1ed0"},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10ef\u10f0\u10f1\u10f2\u10f3\u10f4\u10f5\u10f6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10f1\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10f2\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10f3\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10f4\u10ef\u10f0\u10f5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04ee\u0493\u201e\u2026\u04b6\u04ae\u04b2\u04af\u04a0\u04e2\u04a2\u049a\u04ba\u04b8\u0497\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u04b3\u04b7\u04a1\u04e3\u04a3\u049b\u04bb\u04b9\xa0\u040e\u045e\u0408\u04e8\u0498\u04b0\xa7\u0401\xa9\u04d8\xab\xac\u04ef\xae\u049c\xb0\u04b1\u0406\u0456\u0499\u04e9\xb6\xb7\u0451\u2116\u04d9\xbb\u0458\u04aa\u04ab\u049d\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},viscii:{type:"_sbcs",chars:"\0\x01\u1eb2\x03\x04\u1eb4\u1eaa\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\u1ef6\x15\x16\x17\x18\u1ef8\x1a\x1b\x1c\x1d\u1ef4\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u1ea0\u1eae\u1eb0\u1eb6\u1ea4\u1ea6\u1ea8\u1eac\u1ebc\u1eb8\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1ee2\u1eda\u1edc\u1ede\u1eca\u1ece\u1ecc\u1ec8\u1ee6\u0168\u1ee4\u1ef2\xd5\u1eaf\u1eb1\u1eb7\u1ea5\u1ea7\u1ea9\u1ead\u1ebd\u1eb9\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ed1\u1ed3\u1ed5\u1ed7\u1ee0\u01a0\u1ed9\u1edd\u1edf\u1ecb\u1ef0\u1ee8\u1eea\u1eec\u01a1\u1edb\u01af\xc0\xc1\xc2\xc3\u1ea2\u0102\u1eb3\u1eb5\xc8\xc9\xca\u1eba\xcc\xcd\u0128\u1ef3\u0110\u1ee9\xd2\xd3\xd4\u1ea1\u1ef7\u1eeb\u1eed\xd9\xda\u1ef9\u1ef5\xdd\u1ee1\u01b0\xe0\xe1\xe2\xe3\u1ea3\u0103\u1eef\u1eab\xe8\xe9\xea\u1ebb\xec\xed\u0129\u1ec9\u0111\u1ef1\xf2\xf3\xf4\xf5\u1ecf\u1ecd\u1ee5\xf9\xfa\u0169\u1ee7\xfd\u1ee3\u1eee"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4\u02cb\u02c6\xa8\u02dc\xd9\xdb\u20a4\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7\u0192\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5\u0160\u0161\xda\u0178\xff\xde\xfe\xb7\xb5\xb6\xbe\u2014\xbc\xbd\xaa\xba\xab\u25a0\xbb\xb1\ufffd"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},ascii:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},tis620:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"}}},3769:function(T){"use strict";T.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\u20ac\u25a0\xa0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2514\u2534\u252c\u251c\u2500\u253c\u2563\u2551\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xa7\u2557\u255d\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90\u0651\u0652\xf4\xa4\u0640\xfb\xf9\u0621\u0622\u0623\u0624\xa3\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0636\u0637\u0638\u0639\u063a\u0641\xb5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u2261\u064b\u064c\u064d\u064e\u064f\u0650\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},1279:function(T,I,n){"use strict";var c=n(7103).Buffer;function i(){}function s(){}function l(){this.overflowByte=-1}function h(u,C){this.iconv=C}function a(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function B(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function E(u,C){var e=[],f=0,g=0,w=0;A:for(var Q=0;Q=100)break A}return w>g?"utf-16be":w1114111)&&(f=g),f>=65536){var w=55296|(f-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,f=56320|1023&f}return C[e++]=255&f,C[e++]=f>>8,e}function a(C,e){this.iconv=e}function B(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function E(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var f=[],g=0,w=0,Q=0,p=0,Y=0;A:for(var y=0;y16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&Y++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&p++,f.length=0,++g>=100)break A}return Y-Q>p-w?"utf-32be":Y-Q0){for(;e0&&(p=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",p},I.utf7imap=f,f.prototype.encoder=g,f.prototype.decoder=w,f.prototype.bomAware=!0,g.prototype.write=function(p){for(var Y=this.inBase64,y=this.base64Accum,d=this.base64AccumIdx,v=c.alloc(5*p.length+10),D=0,R=0;R0&&(D+=v.write(y.slice(0,d).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),d=0),v[D++]=C,Y=!1),Y||(v[D++]=S,S===e&&(v[D++]=C))):(Y||(v[D++]=e,Y=!0),Y&&(y[d++]=S>>8,y[d++]=255&S,d==y.length&&(D+=v.write(y.toString("base64").replace(/\//g,","),D),d=0)))}return this.inBase64=Y,this.base64AccumIdx=d,v.slice(0,D)},g.prototype.end=function(){var p=c.alloc(10),Y=0;return this.inBase64&&(this.base64AccumIdx>0&&(Y+=p.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),Y),this.base64AccumIdx=0),p[Y++]=C,this.inBase64=!1),p.slice(0,Y)};var Q=B.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(p){for(var Y="",y=0,d=this.inBase64,v=this.base64Accum,D=0;D0&&(p=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",p}},5395:function(T,I){"use strict";function c(s,l){this.encoder=s,this.addBOM=!0}function i(s,l){this.decoder=s,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(s){return this.addBOM&&(s="\ufeff"+s,this.addBOM=!1),this.encoder.write(s)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(s){var l=this.decoder.write(s);return this.pass||!l||("\ufeff"===l[0]&&(l=l.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),l},i.prototype.end=function(){return this.decoder.end()}},4914:function(T,I,n){"use strict";var l,c=n(7103).Buffer,i=n(5395),s=T.exports;s.encodings=null,s.defaultCharUnicode="\ufffd",s.defaultCharSingleByte="?",s.encode=function(a,B,E){a=""+(a||"");var u=s.getEncoder(B,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},s.decode=function(a,B,E){"string"==typeof a&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=s.getDecoder(B,E),C=u.write(a),e=u.end();return e?C+e:C},s.encodingExists=function(a){try{return s.getCodec(a),!0}catch(B){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={},s.getCodec=function(a){s.encodings||(s.encodings=n(6934));for(var B=s._canonicalizeEncoding(a),E={};;){var u=s._codecDataCache[B];if(u)return u;var C=s.encodings[B];switch(typeof C){case"string":B=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=B),B=C.type;break;case"function":return E.encodingName||(E.encodingName=B),u=new C(E,s),s._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+B+"')")}}},s._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(a,B){var E=s.getCodec(a),u=new E.encoder(B,E);return E.bomAware&&B&&B.addBOM&&(u=new i.PrependBOM(u,B)),u},s.getDecoder=function(a,B){var E=s.getCodec(a),u=new E.decoder(B,E);return E.bomAware&&!(B&&!1===B.stripBOM)&&(u=new i.StripBOM(u,B)),u},s.enableStreamingAPI=function(a){if(!s.supportsStreams){var B=n(8044)(a);s.IconvLiteEncoderStream=B.IconvLiteEncoderStream,s.IconvLiteDecoderStream=B.IconvLiteDecoderStream,s.encodeStream=function(u,C){return new s.IconvLiteEncoderStream(s.getEncoder(u,C),C)},s.decodeStream=function(u,C){return new s.IconvLiteDecoderStream(s.getDecoder(u,C),C)},s.supportsStreams=!0}};try{l=n(5832)}catch(h){}l&&l.Transform?s.enableStreamingAPI(l):s.encodeStream=s.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(T,I,n){"use strict";var c=n(7103).Buffer;T.exports=function(i){var s=i.Transform;function l(a,B){this.conv=a,(B=B||{}).decodeStrings=!1,s.call(this,B)}function h(a,B){this.conv=a,(B=B||{}).encoding=this.encoding="utf8",s.call(this,B)}return(l.prototype=Object.create(s.prototype,{constructor:{value:l}}))._transform=function(a,B,E){if("string"!=typeof a)return E(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u),E()}catch(C){E(C)}},l.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B),a()}catch(E){a(E)}},l.prototype.collect=function(a){var B=[];return this.on("error",a),this.on("data",function(E){B.push(E)}),this.on("end",function(){a(null,c.concat(B))}),this},(h.prototype=Object.create(s.prototype,{constructor:{value:h}}))._transform=function(a,B,E){if(!(c.isBuffer(a)||a instanceof Uint8Array))return E(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u,this.encoding),E()}catch(C){E(C)}},h.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var B="";return this.on("error",a),this.on("data",function(E){B+=E}),this.on("end",function(){a(null,B)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:h}}},645:function(T,I){I.read=function(n,c,i,s,l){var h,a,B=8*l-s-1,E=(1<>1,C=-7,e=i?l-1:0,f=i?-1:1,g=n[c+e];for(e+=f,h=g&(1<<-C)-1,g>>=-C,C+=B;C>0;h=256*h+n[c+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=s;C>0;a=256*a+n[c+e],e+=f,C-=8);if(0===h)h=1-u;else{if(h===E)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,s),h-=u}return(g?-1:1)*a*Math.pow(2,h-s)},I.write=function(n,c,i,s,l,h){var a,B,E,u=8*h-l-1,C=(1<>1,f=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,g=s?0:h-1,w=s?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(B=isNaN(c)?1:0,a=C):(a=Math.floor(Math.log(c)/Math.LN2),c*(E=Math.pow(2,-a))<1&&(a--,E*=2),(c+=a+e>=1?f/E:f*Math.pow(2,1-e))*E>=2&&(a++,E/=2),a+e>=C?(B=0,a=C):a+e>=1?(B=(c*E-1)*Math.pow(2,l),a+=e):(B=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[i+g]=255&B,g+=w,B/=256,l-=8);for(a=a<0;n[i+g]=255&a,g+=w,a/=256,u-=8);n[i+g-w]|=128*Q}},5717:function(T){T.exports="function"==typeof Object.create?function(n,c){c&&(n.super_=c,n.prototype=Object.create(c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,c){if(c){n.super_=c;var i=function(){};i.prototype=c.prototype,n.prototype=new i,n.prototype.constructor=n}}},2584:function(T,I,n){"use strict";var c=n(6410)(),s=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===s(E)},h=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==s(E)&&"[object Function]"===s(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=h,T.exports=a?l:h},8923:function(T,I,n){"use strict";var c=Date.prototype.getDay,s=Object.prototype.toString,h=n(6410)();T.exports=function(B){return"object"==typeof B&&null!==B&&(h?function(B){try{return c.call(B),!0}catch(E){return!1}}(B):"[object Date]"===s.call(B))}},8662:function(T,I,n){"use strict";var B,c=Object.prototype.toString,i=Function.prototype.toString,s=/^\s*(?:function)?\*/,l=n(6410)(),h=Object.getPrototypeOf;T.exports=function(u){if("function"!=typeof u)return!1;if(s.test(i.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!h)return!1;if(void 0===B){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();B=!!e&&h(e)}return h(u)===B}},8611:function(T){"use strict";T.exports=function(n){return n!=n}},360:function(T,I,n){"use strict";var c=n(5559),i=n(4289),s=n(8611),l=n(9415),h=n(6743),a=c(l(),Number);i(a,{getPolyfill:l,implementation:s,shim:h}),T.exports=a},9415:function(T,I,n){"use strict";var c=n(8611);T.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(T,I,n){"use strict";var c=n(4289),i=n(9415);T.exports=function(){var l=i();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(T,I,n){"use strict";var s,l,h,a,c=n(1924),i=n(6410)();if(i){s=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),h={};var B=function(){throw h};a={toString:B,valueOf:B},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=B)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;T.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var g=u(f,"lastIndex");if(!g||!s(g,"value"))return!1;try{l(f,a)}catch(Q){return Q===h}}:function(f){return!(!f||"object"!=typeof f&&"function"!=typeof f)&&"[object RegExp]"===E(f)}},5692:function(T,I,n){"use strict";var c=n(9804),i=n(3083),s=n(1924),l=s("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,B=i(),E=s("Array.prototype.indexOf",!0)||function(Q,p){for(var Y=0;Y-1}return!!e&&function(Q){var p=!1;return c(C,function(Y,y){if(!p)try{p=Y.call(Q)===y}catch(d){}}),p}(Q)}},4244:function(T){"use strict";var I=function(n){return n!=n};T.exports=function(c,i){return 0===c&&0===i?1/c==1/i:!!(c===i||I(c)&&I(i))}},609:function(T,I,n){"use strict";var c=n(4289),i=n(5559),s=n(4244),l=n(5624),h=n(2281),a=i(l(),Object);c(a,{getPolyfill:l,implementation:s,shim:h}),T.exports=a},5624:function(T,I,n){"use strict";var c=n(4244);T.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(T,I,n){"use strict";var c=n(5624),i=n(4289);T.exports=function(){var l=c();return i(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(T,I,n){"use strict";var c;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,l=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),B=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(g){var w=g.constructor;return w&&w.prototype===g},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var g in window)try{if(!C["$"+g]&&i.call(window,g)&&null!==window[g]&&"object"==typeof window[g])try{u(window[g])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,p="[object Function]"===s.call(w),Y=l(w),y=Q&&"[object String]"===s.call(w),d=[];if(!Q&&!p&&!Y)throw new TypeError("Object.keys called on a non-object");var v=B&&p;if(y&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var R=0;R=0&&"[object Function]"===I.call(c.callee)),s}},4236:function(T,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c(l,h){return Object.prototype.hasOwnProperty.call(l,h)}I.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var a=h.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var B in a)c(a,B)&&(l[B]=a[B])}}return l},I.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var i={arraySet:function(l,h,a,B,E){if(h.subarray&&l.subarray)l.set(h.subarray(a,a+B),E);else for(var u=0;u>>16&65535|0,a=0;0!==i;){i-=a=i>2e3?2e3:i;do{h=h+(l=l+c[s++]|0)|0}while(--a);l%=65521,h%=65521}return l|h<<16|0}},1619:function(T){"use strict";T.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:function(T){"use strict";var n=function I(){for(var i,s=[],l=0;l<256;l++){i=l;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;s[l]=i}return s}();T.exports=function c(i,s,l,h){var a=n,B=h+l;i^=-1;for(var E=h;E>>8^a[255&(i^s[E])];return-1^i}},405:function(T,I,n){"use strict";var Tt,c=n(4236),i=n(342),s=n(6069),l=n(2869),h=n(8898),g=-2,xA=258,FA=262,X=666;function nA(j,qA){return j.msg=h[qA],qA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var qA=j.length;--qA>=0;)j[qA]=0}function et(j){var qA=j.state,kA=qA.pending;kA>j.avail_out&&(kA=j.avail_out),0!==kA&&(c.arraySet(j.output,qA.pending_buf,qA.pending_out,kA,j.next_out),j.next_out+=kA,qA.pending_out+=kA,j.total_out+=kA,j.avail_out-=kA,qA.pending-=kA,0===qA.pending&&(qA.pending_out=0))}function st(j,qA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,qA),j.block_start=j.strstart,et(j.strm)}function TA(j,qA){j.pending_buf[j.pending++]=qA}function at(j,qA){j.pending_buf[j.pending++]=qA>>>8&255,j.pending_buf[j.pending++]=255&qA}function It(j,qA,kA,yA){var KA=j.avail_in;return KA>yA&&(KA=yA),0===KA?0:(j.avail_in-=KA,c.arraySet(qA,j.input,j.next_in,KA,kA),1===j.state.wrap?j.adler=s(j.adler,qA,KA,kA):2===j.state.wrap&&(j.adler=l(j.adler,qA,KA,kA)),j.next_in+=KA,j.total_in+=KA,KA)}function mt(j,qA){var KA,lt,kA=j.max_chain_length,yA=j.strstart,bt=j.prev_length,xt=j.nice_match,Lt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Xt=j.window,Ge=j.w_mask,oe=j.prev,ne=j.strstart+xA,Fe=Xt[yA+bt-1],He=Xt[yA+bt];j.prev_length>=j.good_match&&(kA>>=2),xt>j.lookahead&&(xt=j.lookahead);do{if(Xt[(KA=qA)+bt]===He&&Xt[KA+bt-1]===Fe&&Xt[KA]===Xt[yA]&&Xt[++KA]===Xt[yA+1]){yA+=2,KA++;do{}while(Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&yAbt){if(j.match_start=qA,bt=lt,lt>=xt)break;Fe=Xt[yA+bt-1],He=Xt[yA+bt]}}}while((qA=oe[qA&Ge])>Lt&&0!=--kA);return bt<=j.lookahead?bt:j.lookahead}function Et(j){var kA,yA,KA,lt,bt,qA=j.w_size;do{if(lt=j.window_size-j.lookahead-j.strstart,j.strstart>=qA+(qA-FA)){c.arraySet(j.window,j.window,qA,qA,0),j.match_start-=qA,j.strstart-=qA,j.block_start-=qA,kA=yA=j.hash_size;do{KA=j.head[--kA],j.head[kA]=KA>=qA?KA-qA:0}while(--yA);kA=yA=qA;do{KA=j.prev[--kA],j.prev[kA]=KA>=qA?KA-qA:0}while(--yA);lt+=qA}if(0===j.strm.avail_in)break;if(yA=It(j.strm,j.window,j.strstart+j.lookahead,lt),j.lookahead+=yA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[bt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(yA=i._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){j.match_length--;do{j.strstart++,j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<4096)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){KA=j.strstart+j.lookahead-3,yA=i._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;do{++j.strstart<=KA&&(j.ins_h=(j.ins_h<15&&(bt=2,yA-=16),KA<1||KA>9||8!==kA||yA<8||yA>15||qA<0||qA>9||lt<0||lt>4)return nA(j,g);8===yA&&(yA=9);var xt=new H;return j.state=xt,xt.strm=j,xt.wrap=bt,xt.gzhead=null,xt.w_bits=yA,xt.w_size=1<j.pending_buf_size-5&&(kA=j.pending_buf_size-5);;){if(j.lookahead<=1){if(Et(j),0===j.lookahead&&0===qA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var yA=j.block_start+kA;if((0===j.strstart||j.strstart>=yA)&&(j.lookahead=j.strstart-yA,j.strstart=yA,st(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&st(j,!1),1)}),new wt(4,4,8,4,WA),new wt(4,5,16,8,WA),new wt(4,6,32,32,WA),new wt(4,4,16,16,nt),new wt(8,16,32,32,nt),new wt(8,16,128,128,nt),new wt(8,32,128,256,nt),new wt(32,128,258,1024,nt),new wt(32,258,258,4096,nt)],I.deflateInit=function RA(j,qA){return wA(j,qA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=b,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,qA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=qA,0):g},I.deflate=function rA(j,qA){var kA,yA,KA,lt;if(!j||!j.state||qA>5||qA<0)return j?nA(j,g):g;if(yA=j.state,!j.output||!j.input&&0!==j.avail_in||yA.status===X&&4!==qA)return nA(j,0===j.avail_out?-5:g);if(yA.strm=j,kA=yA.last_flush,yA.last_flush=qA,42===yA.status)if(2===yA.wrap)j.adler=0,TA(yA,31),TA(yA,139),TA(yA,8),yA.gzhead?(TA(yA,(yA.gzhead.text?1:0)+(yA.gzhead.hcrc?2:0)+(yA.gzhead.extra?4:0)+(yA.gzhead.name?8:0)+(yA.gzhead.comment?16:0)),TA(yA,255&yA.gzhead.time),TA(yA,yA.gzhead.time>>8&255),TA(yA,yA.gzhead.time>>16&255),TA(yA,yA.gzhead.time>>24&255),TA(yA,9===yA.level?2:yA.strategy>=2||yA.level<2?4:0),TA(yA,255&yA.gzhead.os),yA.gzhead.extra&&yA.gzhead.extra.length&&(TA(yA,255&yA.gzhead.extra.length),TA(yA,yA.gzhead.extra.length>>8&255)),yA.gzhead.hcrc&&(j.adler=l(j.adler,yA.pending_buf,yA.pending,0)),yA.gzindex=0,yA.status=69):(TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,9===yA.level?2:yA.strategy>=2||yA.level<2?4:0),TA(yA,3),yA.status=113);else{var bt=8+(yA.w_bits-8<<4)<<8;bt|=(yA.strategy>=2||yA.level<2?0:yA.level<6?1:6===yA.level?2:3)<<6,0!==yA.strstart&&(bt|=32),bt+=31-bt%31,yA.status=113,at(yA,bt),0!==yA.strstart&&(at(yA,j.adler>>>16),at(yA,65535&j.adler)),j.adler=1}if(69===yA.status)if(yA.gzhead.extra){for(KA=yA.pending;yA.gzindex<(65535&yA.gzhead.extra.length)&&(yA.pending!==yA.pending_buf_size||(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),et(j),KA=yA.pending,yA.pending!==yA.pending_buf_size));)TA(yA,255&yA.gzhead.extra[yA.gzindex]),yA.gzindex++;yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),yA.gzindex===yA.gzhead.extra.length&&(yA.gzindex=0,yA.status=73)}else yA.status=73;if(73===yA.status)if(yA.gzhead.name){KA=yA.pending;do{if(yA.pending===yA.pending_buf_size&&(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),et(j),KA=yA.pending,yA.pending===yA.pending_buf_size)){lt=1;break}lt=yA.gzindexKA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),0===lt&&(yA.gzindex=0,yA.status=91)}else yA.status=91;if(91===yA.status)if(yA.gzhead.comment){KA=yA.pending;do{if(yA.pending===yA.pending_buf_size&&(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),et(j),KA=yA.pending,yA.pending===yA.pending_buf_size)){lt=1;break}lt=yA.gzindexKA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),0===lt&&(yA.status=103)}else yA.status=103;if(103===yA.status&&(yA.gzhead.hcrc?(yA.pending+2>yA.pending_buf_size&&et(j),yA.pending+2<=yA.pending_buf_size&&(TA(yA,255&j.adler),TA(yA,j.adler>>8&255),j.adler=0,yA.status=113)):yA.status=113),0!==yA.pending){if(et(j),0===j.avail_out)return yA.last_flush=-1,0}else if(0===j.avail_in&&EA(qA)<=EA(kA)&&4!==qA)return nA(j,-5);if(yA.status===X&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==yA.lookahead||0!==qA&&yA.status!==X){var Lt=2===yA.strategy?function dt(j,qA){for(var kA;;){if(0===j.lookahead&&(Et(j),0===j.lookahead)){if(0===qA)return 1;break}if(j.match_length=0,kA=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,kA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(yA,qA):3===yA.strategy?function DA(j,qA){for(var kA,yA,KA,lt,bt=j.window;;){if(j.lookahead<=xA){if(Et(j),j.lookahead<=xA&&0===qA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(yA=bt[KA=j.strstart-1])===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]){lt=j.strstart+xA;do{}while(yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&yA===bt[++KA]&&KAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(kA=i._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(kA=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),kA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(yA,qA):Tt[yA.level].func(yA,qA);if((3===Lt||4===Lt)&&(yA.status=X),1===Lt||3===Lt)return 0===j.avail_out&&(yA.last_flush=-1),0;if(2===Lt&&(1===qA?i._tr_align(yA):5!==qA&&(i._tr_stored_block(yA,0,0,!1),3===qA&&(GA(yA.head),0===yA.lookahead&&(yA.strstart=0,yA.block_start=0,yA.insert=0))),et(j),0===j.avail_out))return yA.last_flush=-1,0}return 4!==qA?0:yA.wrap<=0?1:(2===yA.wrap?(TA(yA,255&j.adler),TA(yA,j.adler>>8&255),TA(yA,j.adler>>16&255),TA(yA,j.adler>>24&255),TA(yA,255&j.total_in),TA(yA,j.total_in>>8&255),TA(yA,j.total_in>>16&255),TA(yA,j.total_in>>24&255)):(at(yA,j.adler>>>16),at(yA,65535&j.adler)),et(j),yA.wrap>0&&(yA.wrap=-yA.wrap),0!==yA.pending?0:1)},I.deflateEnd=function gt(j){var qA;return j&&j.state?42!==(qA=j.state.status)&&69!==qA&&73!==qA&&91!==qA&&103!==qA&&113!==qA&&qA!==X?nA(j,g):(j.state=null,113===qA?nA(j,-3):0):g},I.deflateSetDictionary=function Yt(j,qA){var yA,KA,lt,bt,xt,Lt,Xt,Ge,kA=qA.length;if(!j||!j.state||2===(bt=(yA=j.state).wrap)||1===bt&&42!==yA.status||yA.lookahead)return g;for(1===bt&&(j.adler=s(j.adler,qA,kA,0)),yA.wrap=0,kA>=yA.w_size&&(0===bt&&(GA(yA.head),yA.strstart=0,yA.block_start=0,yA.insert=0),Ge=new c.Buf8(yA.w_size),c.arraySet(Ge,qA,kA-yA.w_size,yA.w_size,0),qA=Ge,kA=yA.w_size),xt=j.avail_in,Lt=j.next_in,Xt=j.input,j.avail_in=kA,j.next_in=0,j.input=qA,Et(yA);yA.lookahead>=3;){KA=yA.strstart,lt=yA.lookahead-2;do{yA.ins_h=(yA.ins_h<>>=R=D>>>24,p-=R,0==(R=D>>>16&255))sA[B++]=65535&D;else{if(!(16&R)){if(0==(64&R)){D=Y[(65535&D)+(Q&(1<>>=R,p-=R),p<15&&(Q+=eA[h++]<>>=R=D>>>24,p-=R,!(16&(R=D>>>16&255))){if(0==(64&R)){D=y[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=R,p-=R,F>(R=B-E)){if((R=F-R)>f&&l.sane){i.msg="invalid distance too far back",l.mode=30;break A}if(z=0,P=w,0===g){if(z+=e-R,R2;)sA[B++]=P[z++],sA[B++]=P[z++],sA[B++]=P[z++],S-=3;S&&(sA[B++]=P[z++],S>1&&(sA[B++]=P[z++]))}else{z=B-F;do{sA[B++]=sA[z++],sA[B++]=sA[z++],sA[B++]=sA[z++],S-=3}while(S>2);S&&(sA[B++]=sA[z++],S>1&&(sA[B++]=sA[z++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=S,i.next_out=B,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function It(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mt(wA){var RA;return wA&&wA.state?(wA.total_in=wA.total_out=(RA=wA.state).total=0,wA.msg="",RA.wrap&&(wA.adler=1&RA.wrap),RA.mode=1,RA.last=0,RA.havedict=0,RA.dmax=32768,RA.head=null,RA.hold=0,RA.bits=0,RA.lencode=RA.lendyn=new c.Buf32(852),RA.distcode=RA.distdyn=new c.Buf32(592),RA.sane=1,RA.back=-1,0):Q}function Et(wA){var RA;return wA&&wA.state?((RA=wA.state).wsize=0,RA.whave=0,RA.wnext=0,mt(wA)):Q}function OA(wA,RA){var rA,gt;return!wA||!wA.state||(gt=wA.state,RA<0?(rA=0,RA=-RA):(rA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==gt.window&>.wbits!==RA&&(gt.window=null),gt.wrap=rA,gt.wbits=RA,Et(wA))}function WA(wA,RA){var rA,gt;return wA?(gt=new It,wA.state=gt,gt.window=null,0!==(rA=OA(wA,RA))&&(wA.state=null),rA):Q}var dt,wt,DA=!0;function Tt(wA){if(DA){var RA;for(dt=new c.Buf32(512),wt=new c.Buf32(32),RA=0;RA<144;)wA.lens[RA++]=8;for(;RA<256;)wA.lens[RA++]=9;for(;RA<280;)wA.lens[RA++]=7;for(;RA<288;)wA.lens[RA++]=8;for(h(1,wA.lens,0,288,dt,0,wA.work,{bits:9}),RA=0;RA<32;)wA.lens[RA++]=5;h(2,wA.lens,0,32,wt,0,wA.work,{bits:5}),DA=!1}wA.lencode=dt,wA.lenbits=9,wA.distcode=wt,wA.distbits=5}function JA(wA,RA,rA,gt){var Yt,j=wA.state;return null===j.window&&(j.wsize=1<=j.wsize?(c.arraySet(j.window,RA,rA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Yt=j.wsize-j.wnext)>gt&&(Yt=gt),c.arraySet(j.window,RA,rA-gt,Yt,j.wnext),(gt-=Yt)?(c.arraySet(j.window,RA,rA-gt,gt,0),j.wnext=gt,j.whave=j.wsize):(j.wnext+=Yt,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=s(rA.check,Ne,2,0),KA=0,lt=0,rA.mode=2;break}if(rA.flags=0,rA.head&&(rA.head.done=!1),!(1&rA.wrap)||(((255&KA)<<8)+(KA>>8))%31){wA.msg="incorrect header check",rA.mode=30;break}if(8!=(15&KA)){wA.msg="unknown compression method",rA.mode=30;break}if(lt-=4,ae=8+(15&(KA>>>=4)),0===rA.wbits)rA.wbits=ae;else if(ae>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Ne[0]=255&KA,Ne[1]=KA>>>8&255,rA.check=s(rA.check,Ne,2,0)),KA=0,lt=0,rA.mode=3;case 3:for(;lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>8&255,Ne[2]=KA>>>16&255,Ne[3]=KA>>>24&255,rA.check=s(rA.check,Ne,4,0)),KA=0,lt=0,rA.mode=4;case 4:for(;lt<16;){if(0===kA)break A;kA--,KA+=gt[j++]<>8),512&rA.flags&&(Ne[0]=255&KA,Ne[1]=KA>>>8&255,rA.check=s(rA.check,Ne,2,0)),KA=0,lt=0,rA.mode=5;case 5:if(1024&rA.flags){for(;lt<16;){if(0===kA)break A;kA--,KA+=gt[j++]<>>8&255,rA.check=s(rA.check,Ne,2,0)),KA=0,lt=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Lt=rA.length)>kA&&(Lt=kA),Lt&&(rA.head&&(ae=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),c.arraySet(rA.head.extra,gt,j,Lt,ae)),512&rA.flags&&(rA.check=s(rA.check,gt,Lt,j)),kA-=Lt,j+=Lt,rA.length-=Lt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===kA)break A;Lt=0;do{ae=gt[j+Lt++],rA.head&&ae&&rA.length<65536&&(rA.head.name+=String.fromCharCode(ae))}while(ae&&Lt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=7<,lt-=7<,rA.mode=27;break}for(;lt<3;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(Tt(rA),rA.mode=20,6===RA){KA>>>=2,lt-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}KA>>>=2,lt-=2;break;case 14:for(KA>>>=7<,lt-=7<lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&KA,KA=0,lt=0,rA.mode=15,6===RA)break A;case 15:rA.mode=16;case 16:if(Lt=rA.length){if(Lt>kA&&(Lt=kA),Lt>yA&&(Lt=yA),0===Lt)break A;c.arraySet(Yt,gt,j,Lt,qA),kA-=Lt,j+=Lt,yA-=Lt,qA+=Lt,rA.length-=Lt;break}rA.mode=12;break;case 17:for(;lt<14;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=5)),lt-=5,rA.ncode=4+(15&(KA>>>=5)),KA>>>=4,lt-=4,rA.nlen>286||rA.ndist>30){wA.msg="too many length or distance symbols",rA.mode=30;break}rA.have=0,rA.mode=18;case 18:for(;rA.have>>=3,lt-=3}for(;rA.have<19;)rA.lens[Hn[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,an=h(0,rA.lens,0,19,rA.lencode,0,rA.work,on={bits:rA.lenbits}),rA.lenbits=on.bits,an){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=ne,lt-=ne,rA.lens[rA.have++]=He;else{if(16===He){for(An=ne+2;lt>>=ne,lt-=ne,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}ae=rA.lens[rA.have-1],Lt=3+(3&KA),KA>>>=2,lt-=2}else if(17===He){for(An=ne+3;lt>>=ne)),KA>>>=3,lt-=3}else{for(An=ne+7;lt>>=ne)),KA>>>=7,lt-=7}if(rA.have+Lt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Lt--;)rA.lens[rA.have++]=ae}}if(30===rA.mode)break;if(0===rA.lens[256]){wA.msg="invalid code -- missing end-of-block",rA.mode=30;break}if(rA.lenbits=9,an=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,on={bits:rA.lenbits}),rA.lenbits=on.bits,an){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,an=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,on={bits:rA.distbits}),rA.distbits=on.bits,an){wA.msg="invalid distances set",rA.mode=30;break}if(rA.mode=20,6===RA)break A;case 20:rA.mode=21;case 21:if(kA>=6&&yA>=258){wA.next_out=qA,wA.avail_out=yA,wA.next_in=j,wA.avail_in=kA,rA.hold=KA,rA.bits=lt,l(wA,xt),qA=wA.next_out,Yt=wA.output,yA=wA.avail_out,j=wA.next_in,gt=wA.input,kA=wA.avail_in,KA=rA.hold,lt=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;Fe=(oe=rA.lencode[KA&(1<>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>be)])>>>16&255,He=65535&oe,!(be+(ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=be,lt-=be,rA.back+=be}if(KA>>>=ne,lt-=ne,rA.back+=ne,rA.length=He,0===Fe){rA.mode=26;break}if(32&Fe){rA.back=-1,rA.mode=12;break}if(64&Fe){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&Fe,rA.mode=22;case 22:if(rA.extra){for(An=rA.extra;lt>>=rA.extra,lt-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;Fe=(oe=rA.distcode[KA&(1<>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>be)])>>>16&255,He=65535&oe,!(be+(ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=be,lt-=be,rA.back+=be}if(KA>>>=ne,lt-=ne,rA.back+=ne,64&Fe){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=He,rA.extra=15&Fe,rA.mode=24;case 24:if(rA.extra){for(An=rA.extra;lt>>=rA.extra,lt-=rA.extra,rA.back+=rA.extra}if(rA.offset>rA.dmax){wA.msg="invalid distance too far back",rA.mode=30;break}rA.mode=25;case 25:if(0===yA)break A;if(rA.offset>(Lt=xt-yA)){if((Lt=rA.offset-Lt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Xt=Lt>rA.wnext?rA.wsize-(Lt-=rA.wnext):rA.wnext-Lt,Lt>rA.length&&(Lt=rA.length),Ge=rA.window}else Ge=Yt,Xt=qA-rA.offset,Lt=rA.length;Lt>yA&&(Lt=yA),yA-=Lt,rA.length-=Lt;do{Yt[qA++]=Ge[Xt++]}while(--Lt);0===rA.length&&(rA.mode=21);break;case 26:if(0===yA)break A;Yt[qA++]=rA.length,yA--,rA.mode=21;break;case 27:if(rA.wrap){for(;lt<32;){if(0===kA)break A;kA--,KA|=gt[j++]<=1&&0===dA[z];z--);if(P>z&&(P=z),0===z)return Y[y++]=20971520,Y[y++]=20971520,v.bits=1,0;for(F=1;F0&&(0===g||1!==z))return-1;for(SA[1]=0,R=1;R852||2===g&&BA>592)return 1;for(;;){X=R-sA,d[S]uA?(O=bA[XA+d[S]],$=_[MA+d[S]]):(O=96,$=0),lA=1<>sA)+(cA-=lA)]=X<<24|O<<16|$|0}while(0!==cA);for(lA=1<>=1;if(0!==lA?(pA&=lA-1,pA+=lA):pA=0,S++,0==--dA[R]){if(R===z)break;R=w[Q+d[S]]}if(R>P&&(pA&xA)!==gA){for(0===sA&&(sA=P),FA+=F,q=1<<(eA=R-sA);eA+sA852||2===g&&BA>592)return 1;Y[gA=pA&xA]=P<<24|eA<<16|FA-y|0}}return 0!==pA&&(Y[FA+pA]=4194304|R-sA<<24),v.bits=P,0}},8898:function(T){"use strict";T.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:function(T,I,n){"use strict";var c=n(4236);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var g=256,w=286,Q=30,y=15,z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],eA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BA=new Array(576);a(BA);var pA=new Array(60);a(pA);var lA=new Array(512);a(lA);var cA=new Array(256);a(cA);var gA=new Array(29);a(gA);var _,MA,uA,xA=new Array(Q);function FA(H,k,b,QA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=b,this.elems=QA,this.max_length=wA,this.has_stree=H&&H.length}function dA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function SA(H){return H<256?lA[H]:lA[256+(H>>>7)]}function bA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function XA(H,k,b){H.bi_valid>16-b?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=b-16):(H.bi_buf|=k<>>=1,b<<=1}while(--k>0);return b>>>1}function hA(H,k,b){var RA,rA,QA=new Array(16),wA=0;for(RA=1;RA<=y;RA++)QA[RA]=wA=wA+b[RA-1]<<1;for(rA=0;rA<=k;rA++){var gt=H[2*rA+1];0!==gt&&(H[2*rA]=O(QA[gt]++,gt))}}function nA(H){var k;for(k=0;k8?bA(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function et(H,k,b,QA){var wA=2*k,RA=2*b;return H[wA]>1;rA>=1;rA--)st(H,b,rA);j=RA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],st(H,b,1),gt=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=gt,b[2*j]=b[2*rA]+b[2*gt],H.depth[j]=(H.depth[rA]>=H.depth[gt]?H.depth[rA]:H.depth[gt])+1,b[2*rA+1]=b[2*gt+1]=j,H.heap[1]=j++,st(H,b,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function W(H,k){var j,qA,kA,yA,KA,lt,b=k.dyn_tree,QA=k.max_code,wA=k.stat_desc.static_tree,RA=k.stat_desc.has_stree,rA=k.stat_desc.extra_bits,gt=k.stat_desc.extra_base,Yt=k.stat_desc.max_length,bt=0;for(yA=0;yA<=y;yA++)H.bl_count[yA]=0;for(b[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(yA=b[2*b[2*(qA=H.heap[j])+1]+1]+1)>Yt&&(yA=Yt,bt++),b[2*qA+1]=yA,!(qA>QA)&&(H.bl_count[yA]++,KA=0,qA>=gt&&(KA=rA[qA-gt]),H.opt_len+=(lt=b[2*qA])*(yA+KA),RA&&(H.static_len+=lt*(wA[2*qA+1]+KA)));if(0!==bt){do{for(yA=Yt-1;0===H.bl_count[yA];)yA--;H.bl_count[yA]--,H.bl_count[yA+1]+=2,H.bl_count[Yt]--,bt-=2}while(bt>0);for(yA=Yt;0!==yA;yA--)for(qA=H.bl_count[yA];0!==qA;)!((kA=H.heap[--j])>QA)&&(b[2*kA+1]!==yA&&(H.opt_len+=(yA-b[2*kA+1])*b[2*kA],b[2*kA+1]=yA),qA--)}}(H,k),hA(b,Yt,H.bl_count)}function It(H,k,b){var QA,RA,wA=-1,rA=k[1],gt=0,Yt=7,j=4;for(0===rA&&(Yt=138,j=3),k[2*(b+1)+1]=65535,QA=0;QA<=b;QA++)RA=rA,rA=k[2*(QA+1)+1],!(++gt>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function WA(H){var b,k=4093624447;for(b=0;b<=31;b++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*b])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(b=32;b=3&&0===H.bl_tree[2*sA[k]+1];k--);return H.opt_len+=3*(k+1)+5+5+4,k}(H),(RA=H.static_len+3+7>>>3)<=(wA=H.opt_len+3+7>>>3)&&(wA=RA)):wA=RA=b+5,b+4<=wA&&-1!==k?dt(H,k,b,QA):4===H.strategy||RA===wA?(XA(H,2+(QA?1:0),3),TA(H,BA,pA)):(XA(H,4+(QA?1:0),3),function OA(H,k,b,QA){var wA;for(XA(H,k-257,5),XA(H,b-1,5),XA(H,QA-4,4),wA=0;wA>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&k,H.pending_buf[H.l_buf+H.last_lit]=255&b,H.last_lit++,0===k?H.dyn_ltree[2*b]++:(H.matches++,k--,H.dyn_ltree[2*(cA[b]+g+1)]++,H.dyn_dtree[2*SA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function wt(H){XA(H,2,3),X(H,256,BA),function $(H){16===H.bi_valid?(bA(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(H)}},2292:function(T){"use strict";T.exports=function I(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4155:function(T){var n,c,I=T.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(w){if(n===setTimeout)return setTimeout(w,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(p){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(w){n=i}try{c="function"==typeof clearTimeout?clearTimeout:s}catch(w){c=s}}();var E,a=[],B=!1,u=-1;function C(){!B||!E||(B=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!B){var w=l(C);B=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var p=1;p=0;--xA){var FA=this.tryEntries[xA],_=FA.completion;if("root"===FA.tryLoc)return gA("end");if(FA.tryLoc<=this.prev){var MA=i.call(FA,"catchLoc"),uA=i.call(FA,"finallyLoc");if(MA&&uA){if(this.prev=0;--gA){var xA=this.tryEntries[gA];if(xA.tryLoc<=this.prev&&i.call(xA,"finallyLoc")&&this.prev=0;--cA){var gA=this.tryEntries[cA];if(gA.finallyLoc===lA)return this.complete(gA.completion,gA.afterLoc),sA(gA),Q}},catch:function(lA){for(var cA=this.tryEntries.length-1;cA>=0;--cA){var gA=this.tryEntries[cA];if(gA.tryLoc===lA){var xA=gA.completion;if("throw"===xA.type){var FA=xA.arg;sA(gA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(lA,cA,gA){return this.delegate={iterator:BA(lA),resultName:cA,nextLoc:gA},"next"===this.method&&(this.arg=s),Q}},n}(T.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(T){"use strict";var I=Object,n=TypeError;T.exports=function(){if(null!=this&&this!==I(this))throw new n("RegExp.prototype.flags getter called on non-object");var i="";return this.hasIndices&&(i+="d"),this.global&&(i+="g"),this.ignoreCase&&(i+="i"),this.multiline&&(i+="m"),this.dotAll&&(i+="s"),this.unicode&&(i+="u"),this.sticky&&(i+="y"),i}},2847:function(T,I,n){"use strict";var c=n(4289),i=n(5559),s=n(3697),l=n(1721),h=n(2753),a=i(l());c(a,{getPolyfill:l,implementation:s,shim:h}),T.exports=a},1721:function(T,I,n){"use strict";var c=n(3697),i=n(4289).supportsDescriptors,s=Object.getOwnPropertyDescriptor;T.exports=function(){if(i&&"gim"===/a/gim.flags){var h=s(RegExp.prototype,"flags");if(h&&"function"==typeof h.get&&"boolean"==typeof/a/.dotAll)return h.get}return c}},2753:function(T,I,n){"use strict";var c=n(4289).supportsDescriptors,i=n(1721),s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,B=/a/;T.exports=function(){if(!c||!a)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=i(),C=a(B),e=s(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(T,I,n){var c=n(8823).Buffer;!function(i){i.parser=function(X,O){return new l(X,O)},i.SAXParser=l,i.SAXStream=e,i.createStream=function C(X,O){return new e(X,O)},i.MAX_BUFFER_LENGTH=65536;var E,s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(X,O){if(!(this instanceof l))return new l(X,O);var $=this;(function a(X){for(var O=0,$=s.length;O<$;O++)X[s[O]]=""})($),$.q=$.c="",$.bufferCheckPosition=i.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!X,$.noscript=!(!X&&!$.opt.noscript),$.state=P.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?i.XML_ENTITIES:i.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(p)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),sA($,"onready")}i.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(X){function O(){}return O.prototype=X,new O}),Object.keys||(Object.keys=function(X){var O=[];for(var $ in X)X.hasOwnProperty($)&&O.push($);return O}),l.prototype={end:function(){cA(this)},write:function XA(X){var O=this;if(this.error)throw this.error;if(O.closed)return lA(O,"Cannot write after close. Assign an onready handler.");if(null===X)return cA(O);"object"==typeof X&&(X=X.toString());for(var $=0,W="";W=bA(X,$++),O.c=W,W;)switch(O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++),O.state){case P.BEGIN:if(O.state=P.BEGIN_WHITESPACE,"\ufeff"===W)continue;SA(O,W);continue;case P.BEGIN_WHITESPACE:SA(O,W);continue;case P.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;W&&"<"!==W&&"&"!==W;)(W=bA(X,$++))&&O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++);O.textNode+=X.substring(hA,$-1)}"<"!==W||O.sawRoot&&O.closedRoot&&!O.strict?(!D(W)&&(!O.sawRoot||O.closedRoot)&&gA(O,"Text data outside of root node."),"&"===W?O.state=P.TEXT_ENTITY:O.textNode+=W):(O.state=P.OPEN_WAKA,O.startTagPosition=O.position);continue;case P.SCRIPT:"<"===W?O.state=P.SCRIPT_ENDING:O.script+=W;continue;case P.SCRIPT_ENDING:"/"===W?O.state=P.CLOSE_TAG:(O.script+="<"+W,O.state=P.SCRIPT);continue;case P.OPEN_WAKA:"!"===W?(O.state=P.SGML_DECL,O.sgmlDecl=""):D(W)||(F(Y,W)?(O.state=P.OPEN_TAG,O.tagName=W):"/"===W?(O.state=P.CLOSE_TAG,O.tagName=""):"?"===W?(O.state=P.PROC_INST,O.procInstName=O.procInstBody=""):(gA(O,"Unencoded <"),O.startTagPosition+1"===W?(q(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=P.TEXT):(R(W)&&(O.state=P.SGML_DECL_QUOTED),O.sgmlDecl+=W);continue;case P.SGML_DECL_QUOTED:W===O.q&&(O.state=P.SGML_DECL,O.q=""),O.sgmlDecl+=W;continue;case P.DOCTYPE:">"===W?(O.state=P.TEXT,q(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=W,"["===W?O.state=P.DOCTYPE_DTD:R(W)&&(O.state=P.DOCTYPE_QUOTED,O.q=W));continue;case P.DOCTYPE_QUOTED:O.doctype+=W,W===O.q&&(O.q="",O.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:O.doctype+=W,"]"===W?O.state=P.DOCTYPE:R(W)&&(O.state=P.DOCTYPE_DTD_QUOTED,O.q=W);continue;case P.DOCTYPE_DTD_QUOTED:O.doctype+=W,W===O.q&&(O.state=P.DOCTYPE_DTD,O.q="");continue;case P.COMMENT:"-"===W?O.state=P.COMMENT_ENDING:O.comment+=W;continue;case P.COMMENT_ENDING:"-"===W?(O.state=P.COMMENT_ENDED,O.comment=pA(O.opt,O.comment),O.comment&&q(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+W,O.state=P.COMMENT);continue;case P.COMMENT_ENDED:">"!==W?(gA(O,"Malformed comment"),O.comment+="--"+W,O.state=P.COMMENT):O.state=P.TEXT;continue;case P.CDATA:"]"===W?O.state=P.CDATA_ENDING:O.cdata+=W;continue;case P.CDATA_ENDING:"]"===W?O.state=P.CDATA_ENDING_2:(O.cdata+="]"+W,O.state=P.CDATA);continue;case P.CDATA_ENDING_2:">"===W?(O.cdata&&q(O,"oncdata",O.cdata),q(O,"onclosecdata"),O.cdata="",O.state=P.TEXT):"]"===W?O.cdata+="]":(O.cdata+="]]"+W,O.state=P.CDATA);continue;case P.PROC_INST:"?"===W?O.state=P.PROC_INST_ENDING:D(W)?O.state=P.PROC_INST_BODY:O.procInstName+=W;continue;case P.PROC_INST_BODY:if(!O.procInstBody&&D(W))continue;"?"===W?O.state=P.PROC_INST_ENDING:O.procInstBody+=W;continue;case P.PROC_INST_ENDING:">"===W?(q(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=P.TEXT):(O.procInstBody+="?"+W,O.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:F(y,W)?O.tagName+=W:(xA(O),">"===W?MA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:(D(W)||gA(O,"Invalid character in tag name"),O.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:">"===W?(MA(O,!0),uA(O)):(gA(O,"Forward-slash in opening tag not followed by >"),O.state=P.ATTRIB);continue;case P.ATTRIB:if(D(W))continue;">"===W?MA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:F(Y,W)?(O.attribName=W,O.attribValue="",O.state=P.ATTRIB_NAME):gA(O,"Invalid attribute name");continue;case P.ATTRIB_NAME:"="===W?O.state=P.ATTRIB_VALUE:">"===W?(gA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),MA(O)):D(W)?O.state=P.ATTRIB_NAME_SAW_WHITE:F(y,W)?O.attribName+=W:gA(O,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if("="===W)O.state=P.ATTRIB_VALUE;else{if(D(W))continue;gA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",q(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===W?MA(O):F(Y,W)?(O.attribName=W,O.state=P.ATTRIB_NAME):(gA(O,"Invalid attribute name"),O.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(D(W))continue;R(W)?(O.q=W,O.state=P.ATTRIB_VALUE_QUOTED):(gA(O,"Unquoted attribute value"),O.state=P.ATTRIB_VALUE_UNQUOTED,O.attribValue=W);continue;case P.ATTRIB_VALUE_QUOTED:if(W!==O.q){"&"===W?O.state=P.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=W;continue}_(O),O.q="",O.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:D(W)?O.state=P.ATTRIB:">"===W?MA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:F(Y,W)?(gA(O,"No whitespace between attributes"),O.attribName=W,O.attribValue="",O.state=P.ATTRIB_NAME):gA(O,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!S(W)){"&"===W?O.state=P.ATTRIB_VALUE_ENTITY_U:O.attribValue+=W;continue}_(O),">"===W?MA(O):O.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(O.tagName)">"===W?uA(O):F(y,W)?O.tagName+=W:O.script?(O.script+=""===W?uA(O):gA(O,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case P.TEXT_ENTITY:nA=P.TEXT,EA="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:nA=P.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:nA=P.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===W?(O[EA]+=dA(O),O.entity="",O.state=nA):F(O.entity.length?v:d,W)?O.entity+=W:(gA(O,"Invalid character in entity name"),O[EA]+="&"+O.entity+W,O.entity="",O.state=nA);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&function h(X){for(var O=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,W=0,hA=s.length;WO)switch(s[W]){case"textNode":BA(X);break;case"cdata":q(X,"oncdata",X.cdata),X.cdata="";break;case"script":q(X,"onscript",X.script),X.script="";break;default:lA(X,"Max buffer length exceeded: "+s[W])}$=Math.max($,vA)}X.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+X.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function B(X){BA(X),""!==X.cdata&&(q(X,"oncdata",X.cdata),X.cdata=""),""!==X.script&&(q(X,"onscript",X.script),X.script="")}(this)}};try{E=n(2830).Stream}catch(X){E=function(){}}var u=i.EVENTS.filter(function(X){return"error"!==X&&"end"!==X});function e(X,O){if(!(this instanceof e))return new e(X,O);E.apply(this),this._parser=new l(X,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(W){$.emit("error",W),$._parser.error=null},this._decoder=null,u.forEach(function(W){Object.defineProperty($,"on"+W,{get:function(){return $._parser["on"+W]},set:function(hA){if(!hA)return $.removeAllListeners(W),$._parser["on"+W]=hA,hA;$.on(W,hA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(E.prototype,{constructor:{value:e}})).write=function(X){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(X)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},e.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},e.prototype.on=function(X,O){var $=this;return!$._parser["on"+X]&&-1!==u.indexOf(X)&&($._parser["on"+X]=function(){var W=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,X),$.emit.apply($,W)}),E.prototype.on.call($,X,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",p={xml:w,xmlns:Q},Y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function D(X){return" "===X||"\n"===X||"\r"===X||"\t"===X}function R(X){return'"'===X||"'"===X}function S(X){return">"===X||D(X)}function F(X,O){return X.test(O)}function z(X,O){return!F(X,O)}var X,O,$,P=0;for(var eA in i.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(i.ENTITIES).forEach(function(X){var O=i.ENTITIES[X],$="number"==typeof O?String.fromCharCode(O):O;i.ENTITIES[X]=$}),i.STATE)i.STATE[i.STATE[eA]]=eA;function sA(X,O,$){X[O]&&X[O]($)}function q(X,O,$){X.textNode&&BA(X),sA(X,O,$)}function BA(X){X.textNode=pA(X.opt,X.textNode),X.textNode&&sA(X,"ontext",X.textNode),X.textNode=""}function pA(X,O){return X.trim&&(O=O.trim()),X.normalize&&(O=O.replace(/\s+/g," ")),O}function lA(X,O){return BA(X),X.trackPosition&&(O+="\nLine: "+X.line+"\nColumn: "+X.column+"\nChar: "+X.c),O=new Error(O),X.error=O,sA(X,"onerror",O),X}function cA(X){return X.sawRoot&&!X.closedRoot&&gA(X,"Unclosed root tag"),X.state!==P.BEGIN&&X.state!==P.BEGIN_WHITESPACE&&X.state!==P.TEXT&&lA(X,"Unexpected end"),BA(X),X.c="",X.closed=!0,sA(X,"onend"),l.call(X,X.strict,X.opt),X}function gA(X,O){if("object"!=typeof X||!(X instanceof l))throw new Error("bad call to strictFail");X.strict&&lA(X,O)}function xA(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var O=X.tags[X.tags.length-1]||X,$=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&($.ns=O.ns),X.attribList.length=0,q(X,"onopentagstart",$)}function FA(X,O){var W=X.indexOf(":")<0?["",X]:X.split(":"),hA=W[0],vA=W[1];return O&&"xmlns"===X&&(hA="xmlns",vA=""),{prefix:hA,local:vA}}function _(X){if(X.strict||(X.attribName=X.attribName[X.looseCase]()),-1!==X.attribList.indexOf(X.attribName)||X.tag.attributes.hasOwnProperty(X.attribName))X.attribName=X.attribValue="";else{if(X.opt.xmlns){var O=FA(X.attribName,!0),W=O.local;if("xmlns"===O.prefix)if("xml"===W&&X.attribValue!==w)gA(X,"xml: prefix must be bound to "+w+"\nActual: "+X.attribValue);else if("xmlns"===W&&X.attribValue!==Q)gA(X,"xmlns: prefix must be bound to "+Q+"\nActual: "+X.attribValue);else{var hA=X.tag,vA=X.tags[X.tags.length-1]||X;hA.ns===vA.ns&&(hA.ns=Object.create(vA.ns)),hA.ns[W]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,q(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}}function MA(X,O){if(X.opt.xmlns){var $=X.tag,W=FA(X.tagName);$.prefix=W.prefix,$.local=W.local,$.uri=$.ns[W.prefix]||"",$.prefix&&!$.uri&&(gA(X,"Unbound namespace prefix: "+JSON.stringify(X.tagName)),$.uri=W.prefix),$.ns&&(X.tags[X.tags.length-1]||X).ns!==$.ns&&Object.keys($.ns).forEach(function(Et){q(X,"onopennamespace",{prefix:Et,uri:$.ns[Et]})});for(var vA=0,nA=X.attribList.length;vA",X.tagName="",void(X.state=P.SCRIPT);q(X,"onscript",X.script),X.script=""}var O=X.tags.length,$=X.tagName;X.strict||($=$[X.looseCase]());for(var W=$;O--&&X.tags[O].name!==W;)gA(X,"Unexpected close tag");if(O<0)return gA(X,"Unmatched closing tag: "+X.tagName),X.textNode+="",void(X.state=P.TEXT);X.tagName=$;for(var vA=X.tags.length;vA-- >O;){var nA=X.tag=X.tags.pop();X.tagName=X.tag.name,q(X,"onclosetag",X.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];X.opt.xmlns&&nA.ns!==(X.tags[X.tags.length-1]||X).ns&&Object.keys(nA.ns).forEach(function(st){q(X,"onclosenamespace",{prefix:st,uri:nA.ns[st]})})}0===O&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=P.TEXT}function dA(X){var W,O=X.entity,$=O.toLowerCase(),hA="";return X.ENTITIES[O]?X.ENTITIES[O]:X.ENTITIES[$]?X.ENTITIES[$]:("#"===(O=$).charAt(0)&&("x"===O.charAt(1)?(O=O.slice(2),hA=(W=parseInt(O,16)).toString(16)):(O=O.slice(1),hA=(W=parseInt(O,10)).toString(10))),O=O.replace(/^0+/,""),isNaN(W)||hA.toLowerCase()!==O?(gA(X,"Invalid character entity"),"&"+X.entity+";"):String.fromCodePoint(W))}function SA(X,O){"<"===O?(X.state=P.OPEN_WAKA,X.startTagPosition=X.position):D(O)||(gA(X,"Non-whitespace before first tag."),X.textNode=O,X.state=P.TEXT)}function bA(X,O){var $="";return O1114111||O(st)!==st)throw RangeError("Invalid code point: "+st);st<=65535?hA.push(st):hA.push(55296+((st-=65536)>>10),st%1024+56320),(EA+1===GA||hA.length>W)&&(et+=X.apply(null,hA),hA.length=0)}return et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(T,I,n){T.exports=s;var c=n(7187).EventEmitter;function s(){c.call(this)}n(5717)(s,c),s.Readable=n(6577),s.Writable=n(323),s.Duplex=n(8656),s.Transform=n(4473),s.PassThrough=n(2366),s.finished=n(1086),s.pipeline=n(6472),s.Stream=s,s.prototype.pipe=function(l,h){var a=this;function B(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",B),l.on("drain",E),!l._isStdio&&(!h||!1!==h.end)&&(a.on("end",C),a.on("close",e));var u=!1;function C(){u||(u=!0,l.end())}function e(){u||(u=!0,"function"==typeof l.destroy&&l.destroy())}function f(w){if(g(),0===c.listenerCount(this,"error"))throw w}function g(){a.removeListener("data",B),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),l.removeListener("error",f),a.removeListener("end",g),a.removeListener("close",g),l.removeListener("close",g)}return a.on("error",f),l.on("error",f),a.on("end",g),a.on("close",g),l.on("close",g),l.emit("pipe",a),l}},8106:function(T){"use strict";var n={};function c(a,B,E){E||(E=Error);var C=function(e){function f(g,w,Q){return e.call(this,function u(e,f,g){return"string"==typeof B?B:B(e,f,g)}(g,w,Q))||this}return function I(a,B){a.prototype=Object.create(B.prototype),a.prototype.constructor=a,a.__proto__=B}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,B){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(B," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(B," ").concat(a[0]," or ").concat(a[1]):"of ".concat(B," ").concat(a[0])}return"of ".concat(B," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,B){return'The value "'+B+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,B,E){var u,C;if("string"==typeof B&&function s(a,B,E){return a.substr(!E||E<0?0:+E,B.length)===B}(B,"not ")?(u="must not be",B=B.replace(/^not /,"")):u="must be",function l(a,B,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-B.length,E)===B}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(B,"type"));else{var e=function h(a,B,E){return"number"!=typeof E&&(E=0),!(E+B.length>a.length)&&-1!==a.indexOf(B,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(B,"type"))}return C+". Received type ".concat(typeof E)},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T.exports.q=n},8656:function(T,I,n){"use strict";var c=n(4155),i=Object.keys||function(e){var f=[];for(var g in e)f.push(g);return f};T.exports=E;var s=n(6577),l=n(323);n(5717)(E,s);for(var h=i(l.prototype),a=0;a0)if("string"!=typeof EA&&!TA.objectMode&&Object.getPrototypeOf(EA)!==a.prototype&&(EA=function E(nA){return a.from(nA)}(EA)),et)TA.endEmitted?F(nA,new v):BA(nA,TA,EA,!0);else if(TA.ended)F(nA,new y);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?BA(nA,TA,EA,!1):MA(nA,TA)):BA(nA,TA,EA,!1)}else et||(TA.reading=!1,MA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function cA(nA){return nA>=lA?nA=lA:(nA--,nA|=nA>>>1,nA|=nA>>>2,nA|=nA>>>4,nA|=nA>>>8,nA|=nA>>>16,nA++),nA}(nA)),nA<=EA.length?nA:EA.ended?EA.length:(EA.needReadable=!0,0))}function FA(nA){var EA=nA._readableState;e("emitReadable",EA.needReadable,EA.emittedReadable),EA.needReadable=!1,EA.emittedReadable||(e("emitReadable",EA.flowing),EA.emittedReadable=!0,c.nextTick(_,nA))}function _(nA){var EA=nA._readableState;e("emitReadable_",EA.destroyed,EA.length,EA.ended),!EA.destroyed&&(EA.length||EA.ended)&&(nA.emit("readable"),EA.emittedReadable=!1),EA.needReadable=!EA.flowing&&!EA.ended&&EA.length<=EA.highWaterMark,O(nA)}function MA(nA,EA){EA.readingMore||(EA.readingMore=!0,c.nextTick(uA,nA,EA))}function uA(nA,EA){for(;!EA.reading&&!EA.ended&&(EA.length0,EA.resumeScheduled&&!EA.paused?EA.flowing=!0:nA.listenerCount("data")>0&&nA.resume()}function bA(nA){e("readable nexttick read 0"),nA.read(0)}function X(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),O(nA),EA.flowing&&!EA.reading&&nA.read(0)}function O(nA){var EA=nA._readableState;for(e("flow",EA.flowing);EA.flowing&&null!==nA.read(););}function $(nA,EA){return 0===EA.length?null:(EA.objectMode?GA=EA.buffer.shift():!nA||nA>=EA.length?(GA=EA.decoder?EA.buffer.join(""):1===EA.buffer.length?EA.buffer.first():EA.buffer.concat(EA.length),EA.buffer.clear()):GA=EA.buffer.consume(nA,EA.decoder),GA);var GA}function W(nA){var EA=nA._readableState;e("endReadable",EA.endEmitted),EA.endEmitted||(EA.ended=!0,c.nextTick(hA,EA,nA))}function hA(nA,EA){if(e("endReadableNT",nA.endEmitted,nA.length),!nA.endEmitted&&0===nA.length&&(nA.endEmitted=!0,EA.readable=!1,EA.emit("end"),nA.autoDestroy)){var GA=EA._writableState;(!GA||GA.autoDestroy&&GA.finished)&&EA.destroy()}}function vA(nA,EA){for(var GA=0,et=nA.length;GA=EA.highWaterMark:EA.length>0)||EA.ended))return e("read: emitReadable",EA.length,EA.ended),0===EA.length&&EA.ended?W(this):FA(this),null;if(0===(nA=gA(nA,EA))&&EA.ended)return 0===EA.length&&W(this),null;var st,et=EA.needReadable;return e("need readable",et),(0===EA.length||EA.length-nA0?$(nA,EA):null)?(EA.needReadable=EA.length<=EA.highWaterMark,nA=0):(EA.length-=nA,EA.awaitDrain=0),0===EA.length&&(EA.ended||(EA.needReadable=!0),GA!==nA&&EA.ended&&W(this)),null!==st&&this.emit("data",st),st},sA.prototype._read=function(nA){F(this,new d("_read()"))},sA.prototype.pipe=function(nA,EA){var GA=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=nA;break;case 1:et.pipes=[et.pipes,nA];break;default:et.pipes.push(nA)}et.pipesCount+=1,e("pipe count=%d opts=%j",et.pipesCount,EA);var TA=EA&&!1===EA.end||nA===c.stdout||nA===c.stderr?wt:It;function at(Tt,JA){e("onunpipe"),Tt===GA&&JA&&!1===JA.hasUnpiped&&(JA.hasUnpiped=!0,function OA(){e("cleanup"),nA.removeListener("close",DA),nA.removeListener("finish",dt),nA.removeListener("drain",mt),nA.removeListener("error",nt),nA.removeListener("unpipe",at),GA.removeListener("end",It),GA.removeListener("end",wt),GA.removeListener("data",WA),Et=!0,et.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&mt()}())}function It(){e("onend"),nA.end()}et.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",at);var mt=function dA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&l(nA,"data")&&(GA.flowing=!0,O(nA))}}(GA);nA.on("drain",mt);var Et=!1;function WA(Tt){e("ondata");var JA=nA.write(Tt);e("dest.write",JA),!1===JA&&((1===et.pipesCount&&et.pipes===nA||et.pipesCount>1&&-1!==vA(et.pipes,nA))&&!Et&&(e("false write response, pause",et.awaitDrain),et.awaitDrain++),GA.pause())}function nt(Tt){e("onerror",Tt),wt(),nA.removeListener("error",nt),0===l(nA,"error")&&F(nA,Tt)}function DA(){nA.removeListener("finish",dt),wt()}function dt(){e("onfinish"),nA.removeListener("close",DA),wt()}function wt(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",WA),function P(nA,EA,GA){if("function"==typeof nA.prependListener)return nA.prependListener(EA,GA);nA._events&&nA._events[EA]?Array.isArray(nA._events[EA])?nA._events[EA].unshift(GA):nA._events[EA]=[GA,nA._events[EA]]:nA.on(EA,GA)}(nA,"error",nt),nA.once("close",DA),nA.once("finish",dt),nA.emit("pipe",GA),et.flowing||(e("pipe resume"),GA.resume()),nA},sA.prototype.unpipe=function(nA){var EA=this._readableState,GA={hasUnpiped:!1};if(0===EA.pipesCount)return this;if(1===EA.pipesCount)return nA&&nA!==EA.pipes||(nA||(nA=EA.pipes),EA.pipes=null,EA.pipesCount=0,EA.flowing=!1,nA&&nA.emit("unpipe",this,GA)),this;if(!nA){var et=EA.pipes,st=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==et.flowing&&this.resume()):"readable"===nA&&!et.endEmitted&&!et.readableListening&&(et.readableListening=et.needReadable=!0,et.flowing=!1,et.emittedReadable=!1,e("on readable",et.length,et.reading),et.length?FA(this):et.reading||c.nextTick(bA,this)),GA},sA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(SA,this),GA},sA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(SA,this),EA},sA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function XA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,c.nextTick(X,nA,EA))}(this,nA)),nA.paused=!1,this},sA.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},sA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,et=!1;for(var st in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var at=GA.decoder.end();at&&at.length&&EA.push(at)}EA.push(null)}),nA.on("data",function(at){e("wrapped data"),GA.decoder&&(at=GA.decoder.write(at)),GA.objectMode&&null==at||!(GA.objectMode||at&&at.length)||EA.push(at)||(et=!0,nA.pause())}),nA)void 0===this[st]&&"function"==typeof nA[st]&&(this[st]=function(It){return function(){return nA[It].apply(nA,arguments)}}(st));for(var TA=0;TA-1))throw new R($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(eA.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(eA.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),eA.prototype._write=function(O,$,W){W(new p("_write()"))},eA.prototype._writev=null,eA.prototype.end=function(O,$,W){var hA=this._writableState;return"function"==typeof O?(W=O,O=null,$=null):"function"==typeof $&&(W=$,$=null),null!=O&&this.write(O,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function XA(O,$,W){$.ending=!0,bA(O,$),W&&($.finished?c.nextTick(W):O.once("finish",W)),$.ended=!0,O.writable=!1}(this,hA,W),this},Object.defineProperty(eA.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(eA.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),eA.prototype.destroy=e.destroy,eA.prototype._undestroy=e.undestroy,eA.prototype._destroy=function(O,$){$(O)}},828:function(T,I,n){"use strict";var i,c=n(4155);function s(d,v,D){return v in d?Object.defineProperty(d,v,{value:D,enumerable:!0,configurable:!0,writable:!0}):d[v]=D,d}var l=n(1086),h=Symbol("lastResolve"),a=Symbol("lastReject"),B=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(d,v){return{value:d,done:v}}function g(d){var v=d[h];if(null!==v){var D=d[e].read();null!==D&&(d[u]=null,d[h]=null,d[a]=null,v(f(D,!1)))}}function w(d){c.nextTick(g,d)}var p=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((s(i={get stream(){return this[e]},next:function(){var v=this,D=this[B];if(null!==D)return Promise.reject(D);if(this[E])return Promise.resolve(f(void 0,!0));if(this[e].destroyed)return new Promise(function(z,P){c.nextTick(function(){v[B]?P(v[B]):z(f(void 0,!0))})});var S,R=this[u];if(R)S=new Promise(function Q(d,v){return function(D,R){d.then(function(){v[E]?D(f(void 0,!0)):v[C](D,R)},R)}}(R,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));S=new Promise(this[C])}return this[u]=S,S}},Symbol.asyncIterator,function(){return this}),s(i,"return",function(){var v=this;return new Promise(function(D,R){v[e].destroy(null,function(S){S?R(S):D(f(void 0,!0))})})}),i),p);T.exports=function(v){var D,R=Object.create(Y,(s(D={},e,{value:v,writable:!0}),s(D,h,{value:null,writable:!0}),s(D,a,{value:null,writable:!0}),s(D,B,{value:null,writable:!0}),s(D,E,{value:v._readableState.endEmitted,writable:!0}),s(D,C,{value:function(F,z){var P=R[e].read();P?(R[u]=null,R[h]=null,R[a]=null,F(f(P,!1))):(R[h]=F,R[a]=z)},writable:!0}),D));return R[u]=null,l(v,function(S){if(S&&"ERR_STREAM_PREMATURE_CLOSE"!==S.code){var F=R[a];return null!==F&&(R[u]=null,R[h]=null,R[a]=null,F(S)),void(R[B]=S)}var z=R[h];null!==z&&(R[u]=null,R[h]=null,R[a]=null,z(f(void 0,!0))),R[E]=!0}),v.on("readable",w.bind(null,R)),R}},1029:function(T,I,n){"use strict";var c=n(4155);function s(E,u){a(E,u),l(E)}function l(E){E._writableState&&!E._writableState.emitClose||E._readableState&&!E._readableState.emitClose||E.emit("close")}function a(E,u){E.emit("error",u)}T.exports={destroy:function i(E,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,E)):c.nextTick(a,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(g){!u&&g?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(s,C,g)):c.nextTick(s,C,g):u?(c.nextTick(l,C),u(g)):c.nextTick(l,C)}),this)},undestroy:function h(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function B(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(T,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function s(){}T.exports=function h(a,B,E){if("function"==typeof B)return h(a,null,B);B||(B={}),E=function i(a){var B=!1;return function(){if(!B){B=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(S){Y||(Y=S),S&&y.forEach(u),!D&&(y.forEach(u),p(Y))})});return w.reduce(C)}},94:function(T,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;T.exports={getHighWaterMark:function s(l,h,a,B){var E=function i(l,h,a){return null!=l.highWaterMark?l.highWaterMark:h?l[a]:null}(h,B,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(B?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(T,I,n){T.exports=n(7187).EventEmitter},1818:function(T,I,n){var c,s;void 0!==(s="function"==typeof(c=function(){"use strict";function h(e,f,g){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,g)},w.onerror=function(){console.error("could not download file")},w.send()}function a(e){var f=new XMLHttpRequest;f.open("HEAD",e,!1);try{f.send()}catch(g){}return 200<=f.status&&299>=f.status}function B(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(g){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(f)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,u=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=E.saveAs||("object"!=typeof window||window!==E?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,f,g){var w=E.URL||E.webkitURL,Q=document.createElement("a");Q.download=f=f||e.name||"download",Q.rel="noopener","string"==typeof e?(Q.href=e,Q.origin===location.origin?B(Q):a(Q.href)?h(e,f,g):B(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){B(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){if(f=f||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function l(e,f){return void 0===f?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,g),f);else if(a(e))h(e,f,g);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){B(w)})}}:function(e,f,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,g);var Q="application/octet-stream"===e.type,p=/constructor/i.test(E.HTMLElement)||E.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||Q&&p||u)&&"undefined"!=typeof FileReader){var y=new FileReader;y.onloadend=function(){var D=y.result;D=Y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},y.readAsDataURL(e)}else{var d=E.URL||E.webkitURL,v=d.createObjectURL(e);w?w.location=v:location.href=v,w=null,setTimeout(function(){d.revokeObjectURL(v)},4e4)}});E.saveAs=C.saveAs=C,T.exports=C})?c.apply(I,[]):c)&&(T.exports=s)},2553:function(T,I,n){"use strict";var c=n(1750).Buffer,i=c.isEncoding||function(y){switch((y=""+y)&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function h(y){var d;switch(this.encoding=function l(y){var d=function s(y){if(!y)return"utf8";for(var d;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(d)return;y=(""+y).toLowerCase(),d=!0}}(y);if("string"!=typeof d&&(c.isEncoding===i||!i(y)))throw new Error("Unknown encoding: "+y);return d||y}(y),this.encoding){case"utf16le":this.text=f,this.end=g,d=4;break;case"utf8":this.fillLast=u,d=4;break;case"base64":this.text=w,this.end=Q,d=3;break;default:return this.write=p,void(this.end=Y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(d)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function u(y){var d=this.lastTotal-this.lastNeed,v=function E(y,d,v){if(128!=(192&d[0]))return y.lastNeed=0,"\ufffd";if(y.lastNeed>1&&d.length>1){if(128!=(192&d[1]))return y.lastNeed=1,"\ufffd";if(y.lastNeed>2&&d.length>2&&128!=(192&d[2]))return y.lastNeed=2,"\ufffd"}}(this,y);return void 0!==v?v:this.lastNeed<=y.length?(y.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,d,0,y.length),void(this.lastNeed-=y.length))}function f(y,d){if((y.length-d)%2==0){var v=y.toString("utf16le",d);if(v){var D=v.charCodeAt(v.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",d,y.length-1)}function g(y){var d=y&&y.length?this.write(y):"";return this.lastNeed?d+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):d}function w(y,d){var v=(y.length-d)%3;return 0===v?y.toString("base64",d):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",d,y.length-v))}function Q(y){var d=y&&y.length?this.write(y):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function p(y){return y.toString(this.encoding)}function Y(y){return y&&y.length?this.write(y):""}I.s=h,h.prototype.write=function(y){if(0===y.length)return"";var d,v;if(this.lastNeed){if(void 0===(d=this.fillLast(y)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v=0?(R>0&&(y.lastNeed=R-1),R):--D=0?(R>0&&(y.lastNeed=R-2),R):--D=0?(R>0&&(2===R?R=0:y.lastNeed=R-3),R):0}(this,y,d);if(!this.lastNeed)return y.toString("utf8",d);this.lastTotal=v;var D=y.length-(v-this.lastNeed);return y.copy(this.lastChar,0,D),y.toString("utf8",d,D)},h.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},311:function(T){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(S,F){this.source=S,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var s=new c,l=new c,h=new Uint8Array(30),a=new Uint16Array(30),B=new Uint8Array(30),E=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=new c,e=new Uint8Array(320);function f(S,F,z,P){var eA,sA;for(eA=0;eA>>=1,F}function Y(S,F,z){if(!F)return z;for(;S.bitcount<24;)S.tag|=S.source[S.sourceIndex++]<>>16-F;return S.tag>>>=F,S.bitcount-=F,P+z}function y(S,F){for(;S.bitcount<24;)S.tag|=S.source[S.sourceIndex++]<>>=1,++eA,z+=F.table[eA],P-=F.table[eA]}while(P>=0);return S.tag=sA,S.bitcount-=eA,F.trans[z+P]}function d(S,F,z){var P,eA,sA,q,BA,pA;for(P=Y(S,5,257),eA=Y(S,5,1),sA=Y(S,4,4),q=0;q<19;++q)e[q]=0;for(q=0;q8;)S.sourceIndex--,S.bitcount-=8;if((F=256*(F=S.source[S.sourceIndex+1])+S.source[S.sourceIndex])!==(65535&~(256*S.source[S.sourceIndex+3]+S.source[S.sourceIndex+2])))return-3;for(S.sourceIndex+=4,P=F;P;--P)S.dest[S.destLen++]=S.source[S.sourceIndex++];return S.bitcount=0,0}(function g(S,F){var z;for(z=0;z<7;++z)S.table[z]=0;for(S.table[7]=24,S.table[8]=152,S.table[9]=112,z=0;z<24;++z)S.trans[z]=256+z;for(z=0;z<144;++z)S.trans[24+z]=z;for(z=0;z<8;++z)S.trans[168+z]=280+z;for(z=0;z<112;++z)S.trans[176+z]=144+z;for(z=0;z<5;++z)F.table[z]=0;for(F.table[5]=32,z=0;z<32;++z)F.trans[z]=z})(s,l),f(h,a,4,3),f(B,E,2,1),h[28]=0,a[28]=258,T.exports=function R(S,F){var P,sA,z=new i(S,F);do{switch(P=p(z),Y(z,2,0)){case 0:sA=D(z);break;case 1:sA=v(z,s,l);break;case 2:d(z,z.ltree,z.dtree),sA=v(z,z.ltree,z.dtree);break;default:sA=-3}if(0!==sA)throw new Error("Data error")}while(!P);return z.destLen=tA.length?{done:!0}:{done:!1,value:tA[M++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(tA,G){(null==G||G>tA.length)&&(G=tA.length);for(var V=0,M=new Array(G);V0?iA[0]:"value";if(AA.has(jA))return AA.get(jA);var ct=x.apply(this,iA);return AA.set(jA,ct),ct}return Object.defineProperty(this,G,{value:aA}),aA}}}}D.registerFormat=function(tA){R.push(tA)},D.openSync=function(tA,G){var V=v.readFileSync(tA);return D.create(V,G)},D.open=function(tA,G,V){"function"==typeof G&&(V=G,G=null),v.readFile(tA,function(M,x){if(M)return V(M);try{var L=D.create(x,G)}catch(AA){return V(AA)}return V(null,L)})},D.create=function(tA,G){for(var V=0;V>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(tA){return(tA.length-tA._currentOffset)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(lA,"numRecords")}}),gA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,cA,{type:"parent",lazy:!0})}),xA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(gA,"numSubtables")}),FA=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),_=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),MA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(MA,function(tA){return tA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(tA){return tA.parent.maxp.numGlyphs-tA.parent.hhea.numberOfMetrics})}),dA=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function SA(tA,G,V){return void 0===V&&(V=0),1===tA&&XA[V]?XA[V]:bA[tA][G]}var bA=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],XA={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},X=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],O=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(tA){return SA(tA.platformID,tA.encodingID,tA.languageID)}),{type:"parent",relativeTo:function(G){return G.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(G){return G.stringOffset}})}),W=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),hA=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];W.process=function(tA){for(var M,G={},V=B(this.records);!(M=V()).done;){var x=M.value,L=X[x.platformID][x.languageID];null==L&&null!=this.langTags&&x.languageID>=32768&&(L=this.langTags[x.languageID-32768].tag),null==L&&(L=x.platformID+"-"+x.languageID);var AA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==G[AA]&&(G[AA]={});var aA=G[AA];x.nameID>=256&&(aA=aA[x.nameID]||(aA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof aA[L])&&(aA[L]=x.string)}this.records=G},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var tA=[];for(var G in this.records){var V=this.records[G];"fontFeatures"!==G&&(tA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(G),length:c.byteLength(V.en,"utf16le"),string:V.en}),"postscriptName"===G&&tA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(G),length:V.en.length,string:V.en}))}this.records=tA,this.count=tA.length,this.stringOffset=W.size(this,null,!1)}};var vA=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),nA=vA.versions;nA[3]=nA[4]=nA[2];var EA=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(tA){return tA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),et=new e.Struct({instructions:new e.Array(e.uint8)}),st=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});st.process=function(){if(0===this.version)for(var tA=0;tA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),at=new e.Array(new e.Buffer),It=function(){function tA(V){this.type=V}var G=tA.prototype;return G.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},G.decode=function(M,x){var AA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===AA)return[];var oA,aA=M.readUInt8();if(1===aA)oA=e.uint8;else if(2===aA)oA=e.uint16;else if(3===aA)oA=e.uint24;else{if(4!==aA)throw new Error("Bad offset size in CFFIndex: ".concat(aA," ").concat(M.pos));oA=e.uint32}for(var iA=[],NA=M.pos+(AA+1)*aA-1,jA=oA.decode(M),ct=0;ct>4;if(15===AA)break;x+=Et[AA];var aA=15&L;if(15===aA)break;x+=Et[aA]}return parseFloat(x)}return null},tA.size=function(V){return V.forceLarge&&(V=32768),(0|V)!==V?1+Math.ceil(((""+V).length+1)/2):-107<=V&&V<=107?1:108<=V&&V<=1131||-1131<=V&&V<=-108?2:-32768<=V&&V<=32767?3:5},tA.encode=function(V,M){var x=Number(M);if(M.forceLarge)return V.writeUInt8(29),V.writeInt32BE(x);if((0|x)===x)return-107<=x&&x<=107?V.writeUInt8(x+139):108<=x&&x<=1131?(V.writeUInt8(247+((x-=108)>>8)),V.writeUInt8(255&x)):-1131<=x&&x<=-108?(V.writeUInt8(251+((x=-x-108)>>8)),V.writeUInt8(255&x)):-32768<=x&&x<=32767?(V.writeUInt8(28),V.writeInt16BE(x)):(V.writeUInt8(29),V.writeInt32BE(x));V.writeUInt8(30);for(var L=""+x,AA=0;AAL;)x.pop()},tA}(),null],[19,"Subrs",new DA(new It,{type:"local"}),null]]),JA=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],b=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],RA=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),rA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,RA,{type:"parent"})}),gt=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,RA),count:e.uint16,langSysRecords:new e.Array(rA,"count")}),Yt=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,gt,{type:"parent"})}),j=new e.Array(Yt,e.uint16),qA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),kA=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,qA,{type:"parent"})}),yA=new e.Array(kA,e.uint16),KA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function lt(tA){var G=new e.Struct({lookupType:e.uint16,flags:KA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,tA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(V){return V.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,G),e.uint16)}var bt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),xt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(bt,"rangeCount")}}),Lt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Xt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Lt,"classRangeCount")}}),Ge=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),oe=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),ne=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(tA){return tA.glyphCount-1}),lookupRecords:new e.Array(oe,"lookupCount")}),Fe=new e.Array(new e.Pointer(e.uint16,ne),e.uint16),He=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(tA){return tA.glyphCount-1}),lookupRecords:new e.Array(oe,"lookupCount")}),be=new e.Array(new e.Pointer(e.uint16,He),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,Fe),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),classDef:new e.Pointer(e.uint16,Xt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,be),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,xt),"glyphCount"),lookupRecords:new e.Array(oe,"lookupCount")}}),xn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(tA){return tA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(oe,"lookupCount")}),ae=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),an=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ae),"chainCount")},2:{coverage:new e.Pointer(e.uint16,xt),backtrackClassDef:new e.Pointer(e.uint16,Xt),inputClassDef:new e.Pointer(e.uint16,Xt),lookaheadClassDef:new e.Pointer(e.uint16,Xt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ae),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,xt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,xt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,xt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(oe,"lookupCount")}}),Ne=new e.Fixed(16,"BE",14),on=new e.Struct({startCoord:Ne,peakCoord:Ne,endCoord:Ne}),An=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(on,"axisCount"),"regionCount")}),Hn=new e.Struct({shortDeltas:new e.Array(e.int16,function(tA){return tA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(tA){return tA.parent.regionIndexCount-tA.parent.shortDeltaCount}),deltas:function(G){return G.shortDeltas.concat(G.regionDeltas)}}),Jn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Hn,"itemCount")}),kt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,An),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,Jn),"variationDataCount")}),Gt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Ne,i.filterRangeMaxValue=Ne,i)}),$t=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,Gt),"conditionCount")}),le=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,qA,{type:"parent"})}),vn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(le,"substitutionCount")}),pn=new e.Struct({conditionSet:new e.Pointer(e.uint32,$t,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,vn,{type:"parent"})}),Tn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(pn,"featureVariationRecordCount")}),Zn=function(){function tA(V,M){this.predefinedOps=V,this.type=M}var G=tA.prototype;return G.decode=function(M,x,L){return this.predefinedOps[L[0]]?this.predefinedOps[L[0]]:this.type.decode(M,x,L)},G.size=function(M,x){return this.type.size(M,x)},G.encode=function(M,x,L){var AA=this.predefinedOps.indexOf(x);return-1!==AA?AA:this.type.encode(M,x,L)},tA}(),fr=function(tA){function G(){return tA.call(this,"UInt8")||this}return h(G,tA),G.prototype.decode=function(x){return 127&e.uint8.decode(x)},G}(e.Number),Sn=new e.Struct({first:e.uint16,nLeft:e.uint8}),ZA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new Zn([H,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new DA(new e.VersionedStruct(new fr,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Sn,"nRanges")}}),{lazy:!0})),UA=function(tA){function G(){return tA.apply(this,arguments)||this}return h(G,tA),G.prototype.decode=function(x,L){for(var AA=f.resolveLength(this.length,x,L),aA=0,oA=[];aA=2?null:M=2||this.isCIDFont)return null;var x=this.topDict.charset;if(Array.isArray(x))return x[M];if(0===M)return".notdef";switch(M-=1,x.version){case 0:return this.string(x.glyphs[M]);case 1:case 2:for(var L=0;L>1;if(M=x[aA+1].first))return x[aA].fd;L=aA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},G.privateDictForGlyph=function(M){if(this.topDict.FDSelect){var x=this.fdForGlyph(M);return this.topDict.FDArray[x]?this.topDict.FDArray[x].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},l(tA,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),tA}(),Ct=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Rt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(Ct,"numVertOriginYMetrics")}),Wt=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Ot=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),Be=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),_t=function(){},he=function(){},ye=(new e.VersionedStruct("version",{1:{metrics:Ot,data:_t},2:{metrics:Ot,data:he},5:{data:he},6:{metrics:Wt,data:_t},7:{metrics:Wt,data:he},8:{metrics:Ot,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Be,"numComponents")},9:{metrics:Wt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Be,"numComponents")},17:{metrics:Ot,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:Wt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Je=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Ue=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(tA){return tA.parent.lastGlyphIndex-tA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:Wt},3:{offsetArray:new e.Array(e.uint16,function(tA){return tA.parent.lastGlyphIndex-tA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Je,function(tA){return tA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:Wt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),Ye=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Ue)}),Pe=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(Ye,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:ye,vert:ye,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),nn=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Pe,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(tA){return tA.parent.parent.maxp.numGlyphs+1})}),ln=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,Fn),"numImgTables")}),mn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),Yn=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),tn=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(Yn,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(mn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),En=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),un=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(En,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new e.Pointer(e.uint32,new e.Array(e.uint32,"numPalettes")),offsetPaletteLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPaletteEntries"))}}),$n=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Ge)}}),Ur=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,$n),"baseCoordCount")}),Pr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,$n,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,$n,{type:"parent"})}),or=new e.Struct({minCoord:new e.Pointer(e.uint16,$n),maxCoord:new e.Pointer(e.uint16,$n),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Pr,"featMinMaxCount")}),Nn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,or,{type:"parent"})}),Un=new e.Struct({baseValues:new e.Pointer(e.uint16,Ur),defaultMinMax:new e.Pointer(e.uint16,or),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(Nn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Un,{type:"parent"})}),J=new e.Array(IA,e.uint16),N=new e.Array(new e.String(4),e.uint16),Z=new e.Struct({baseTagList:new e.Pointer(e.uint16,N),baseScriptList:new e.Pointer(e.uint16,J)}),K=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,Z),vertAxis:new e.Pointer(e.uint16,Z)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,kt)}}),fA=new e.Array(e.uint16,e.uint16),mA=new e.Struct({coverage:new e.Pointer(e.uint16,xt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),At=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Ge)}}),rt=new e.Array(new e.Pointer(e.uint16,At),e.uint16),ht=new e.Struct({coverage:new e.Pointer(e.uint16,xt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,rt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,xt),"markSetCount")}),vt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Xt),attachList:new e.Pointer(e.uint16,mA),ligCaretList:new e.Pointer(e.uint16,ht),markAttachClassDef:new e.Pointer(e.uint16,Xt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,kt)}}),Ft=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),St={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),yPlaDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),xAdvDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),yAdvDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}})},jt=function(){function tA(V){void 0===V&&(V="valueFormat"),this.key=V}var G=tA.prototype;return G.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var L={rel:function(){return x._startOffset}},AA=x[this.key];for(var aA in AA)AA[aA]&&(L[aA]=St[aA]);return new e.Struct(L)}},G.size=function(M,x){return this.buildStruct(x).size(M,x)},G.decode=function(M,x){var L=this.buildStruct(x).decode(M,x);return delete L.rel,L},tA}(),Zt=new e.Struct({secondGlyph:e.uint16,value1:new jt("valueFormat1"),value2:new jt("valueFormat2")}),Ee=new e.Array(Zt,e.uint16),Ce=new e.Struct({value1:new jt("valueFormat1"),value2:new jt("valueFormat2")}),me=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,Ge),yDeviceTable:new e.Pointer(e.uint16,Ge)}}),sn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,me,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,me,{type:"parent"})}),pe=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,me,{type:"parent"})}),We=new e.Array(pe,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,me),function(tA){return tA.parent.classCount}),Ze=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,me),function(tA){return tA.parent.parent.classCount}),Xn=new e.Array(dn,e.uint16),Ar=new e.Array(new e.Pointer(e.uint16,Xn),e.uint16),Pn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,value:new jt},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,valueCount:e.uint16,values:new e.LazyArray(new jt,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),valueFormat1:Ft,valueFormat2:Ft,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,Ee),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat1:Ft,valueFormat2:Ft,classDef1:new e.Pointer(e.uint16,Xt),classDef2:new e.Pointer(e.uint16,Xt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ce,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,xt),entryExitCount:e.uint16,entryExitRecords:new e.Array(sn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,xt),baseCoverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,We),baseArray:new e.Pointer(e.uint16,Ze)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,xt),ligatureCoverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,We),ligatureArray:new e.Pointer(e.uint16,Ar)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,xt),mark2Coverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,We),mark2Array:new e.Pointer(e.uint16,Ze)},7:yn,8:an,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Pn)}});Pn.versions[9].extension.type=Pn;var Jr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,yA),lookupList:new e.Pointer(e.uint16,new lt(Pn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Tn)}}),jn=new e.Array(e.uint16,e.uint16),sr=jn,Ir=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(tA){return tA.compCount-1})}),tr=new e.Array(new e.Pointer(e.uint16,Ir),e.uint16),hr=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,xt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,jn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,sr),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,tr),"count")},5:yn,6:an,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,hr)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,xt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,xt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});hr.versions[7].extension.type=hr;var Or=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,yA),lookupList:new e.Pointer(e.uint16,new lt(hr))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Tn)}}),qn=new e.Array(e.uint16,e.uint16),kr=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,qn),shrinkageDisableGSUB:new e.Pointer(e.uint16,qn),shrinkageEnableGPOS:new e.Pointer(e.uint16,qn),shrinkageDisableGPOS:new e.Pointer(e.uint16,qn),shrinkageJstfMax:new e.Pointer(e.uint16,new lt(Pn)),extensionEnableGSUB:new e.Pointer(e.uint16,qn),extensionDisableGSUB:new e.Pointer(e.uint16,qn),extensionEnableGPOS:new e.Pointer(e.uint16,qn),extensionDisableGPOS:new e.Pointer(e.uint16,qn),extensionJstfMax:new e.Pointer(e.uint16,new lt(Pn))}),vr=new e.Array(new e.Pointer(e.uint16,kr),e.uint16),jr=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,vr)}),Kr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,vr),langSysCount:e.uint16,langSysRecords:new e.Array(jr,"langSysCount")}),fi=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Kr,{type:"parent"})}),Vr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(fi,"scriptCount")}),Wr=new e.Struct({entry:new(function(){function tA(V){this._size=V}var G=tA.prototype;return G.decode=function(M,x){switch(this.size(0,x)){case 1:return M.readUInt8();case 2:return M.readUInt16BE();case 3:return M.readUInt24BE();case 4:return M.readUInt32BE()}},G.size=function(M,x){return f.resolveLength(this._size,null,x)},tA}())(function(tA){return 1+((48&tA.parent.entryFormat)>>4)}),outerIndex:function(G){return G.entry>>1+(15&G.parent.entryFormat)},innerIndex:function(G){return G.entry&(1<<1+(15&G.parent.entryFormat))-1}}),_n=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Wr,"mapCount")}),Ji=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,kt),advanceWidthMapping:new e.Pointer(e.uint32,_n),LSBMapping:new e.Pointer(e.uint32,_n),RSBMapping:new e.Pointer(e.uint32,_n)}),Oi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),go=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),ca=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(Oi,"usNumSigs"),signatureBlocks:new e.Array(go,"usNumSigs")}),Bo=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),uo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(Bo,"numRanges")}),fo=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(tA){return tA.parent.parent.maxp.numGlyphs})}),ho=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(fo,"numRecords")}),Eo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),ga=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(G){return G.offsets.length&&Math.max.apply(Math,G.offsets)}}),wo=new e.Struct({off:function(G){return G._startOffset-G.parent.parent._startOffset},len:function(G){return G.parent.rowWidth/2*((G.parent.leftTable.max-G.off)/G.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),Ba=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Eo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,ga,{type:"parent"}),rightTable:new e.Pointer(e.uint16,ga,{type:"parent"}),array:new e.Pointer(e.uint16,wo,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(tA){return tA.leftClassCount*tA.rightClassCount})}}),ua=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:Ba,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:Ba,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})}}),Co=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(ua,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(ua,"nTables")}}),fa=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),Qo=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),Mo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),po=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),mo=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(po,"recs")}),Io=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Mo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(mo,"numRecs")}),vo=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),Do=new e.Struct({advance:e.uint16,bearing:e.int16}),yo=new e.Struct({metrics:new e.LazyArray(Do,function(tA){return tA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(tA){return tA.parent.maxp.numGlyphs-tA.parent.vhea.numberOfMetrics})}),ha=new e.Fixed(16,"BE",14),xo=new e.Struct({fromCoord:ha,toCoord:ha}),Fo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(xo,"pairCount")}),Yo=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(Fo,"axisCount")}),To=function(){function tA(V,M,x){this.type=V,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var G=tA.prototype;return G.getItem=function(M){if(null==this._items[M]){var x=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*M,this._items[M]=this.type.decode(this.stream,this.parent),this.stream.pos=x}return this._items[M]},G.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},tA}(),er=function(tA){function G(M){return tA.call(this,M,0)||this}return h(G,tA),G.prototype.decode=function(x,L){return new To(this.type,x,L)},G}(e.Array),Er=function(G){void 0===G&&(G=e.uint16),G=new(function(){function aA(iA){this.type=iA}var oA=aA.prototype;return oA.decode=function(NA,jA){return this.type.decode(NA,jA=jA.parent.parent)},oA.size=function(NA,jA){return this.type.size(NA,jA=jA.parent.parent)},oA.encode=function(NA,jA,ct){return this.type.encode(NA,jA,ct=ct.parent.parent)},aA}())(G);var M=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),x=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:G}),L=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(G,function(aA){return aA.lastGlyph-aA.firstGlyph+1}),{type:"parent"})}),AA=new e.Struct({glyph:e.uint16,value:G});return new e.VersionedStruct(e.uint16,{0:{values:new er(G)},2:{binarySearchHeader:M,segments:new e.Array(x,function(aA){return aA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(L,function(aA){return aA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(AA,function(aA){return aA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(G,"count")}})};function hi(tA,G){void 0===tA&&(tA={}),void 0===G&&(G=e.uint16);var V=Object.assign({newState:e.uint16,flags:e.uint16},tA),M=new e.Struct(V),x=new er(new e.Array(e.uint16,function(AA){return AA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new Er(G)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new er(M))})}var No=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new Er(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new Er(e.uint16)}}),Ea=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:No}),Uo=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(G){return G.parent.parent.parent.name.records.fontFeatures[G.nameIndex]}}),wa=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(Uo,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameIndex]}}),Rr=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(wa,"featureNameCount")}),cr=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]}}),Dr=new e.Struct({nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(tA){return tA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(tA){return tA.parent.instanceSize-tA._currentOffset>0})}),Po=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(cr,"axisCount"),instance:new e.Array(Dr,"instanceCount")}),Ro=new e.Fixed(16,"BE",14),Lo=function(){function tA(){}return tA.decode=function(V,M){return M.flags?V.readUInt32BE():2*V.readUInt16BE()},tA}(),zo=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(Ro,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(Lo,"void",{relativeTo:function(G){return G.offsetToData},allowNull:!1}),function(tA){return tA.glyphCount+1})}),bo=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function So(tA,G){void 0===tA&&(tA={}),void 0===G&&(G=e.uint16);var V=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),M=Object.assign({newStateOffset:e.uint16,newState:function(oA){return(oA.newStateOffset-(oA.parent.stateArray.base-oA.parent._startOffset))/oA.parent.nClasses},flags:e.uint16},tA),x=new e.Struct(M),L=new er(new e.Array(e.uint8,function(aA){return aA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,V),stateArray:new e.Pointer(e.uint16,L),entryTable:new e.Pointer(e.uint16,new er(x))})}}),Go=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),Ho=new e.Array(Go,e.uint32),Jo=new e.VersionedStruct("actionType",{0:{lowerLimit:e.fixed32,upperLimit:e.fixed32,order:e.uint16,glyphs:new e.Array(e.uint16,e.uint16)},1:{addGlyph:e.uint16},2:{substThreshold:e.fixed32,addGlyph:e.uint16,substGlyph:e.uint16},3:{},4:{variationAxis:e.uint32,minimumLimit:e.fixed32,noStretchValue:e.fixed32,maximumLimit:e.fixed32},5:{flags:e.uint16,glyph:e.uint16}}),Oo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Jo,padding:new e.Reserved(e.uint8,function(tA){return tA.actionLength-tA._currentOffset})}),ko=new e.Array(Oo,e.uint32),jo=new e.Struct({lookupTable:new Er(new e.Pointer(e.uint16,ko))}),Ca=new e.Struct({classTable:new e.Pointer(e.uint16,bo,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,jo,{type:"parent"}),widthDeltaClusters:new Er(new e.Pointer(e.uint16,Ho,{type:"parent",relativeTo:function(G){return G.wdcOffset}}))}),Ko=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,Ca),vertical:new e.Pointer(e.uint16,Ca)}),Vo={action:e.uint16},Wo={markIndex:e.uint16,currentIndex:e.uint16},Qa={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},Zo=new e.Struct({items:new er(new e.Pointer(e.uint32,new Er))}),Xo=new e.VersionedStruct("type",{0:{stateTable:new hi},1:{stateTable:new hi(Wo),substitutionTable:new e.Pointer(e.uint32,Zo)},2:{stateTable:new hi(Vo),ligatureActions:new e.Pointer(e.uint32,new er(e.uint32)),components:new e.Pointer(e.uint32,new er(e.uint16)),ligatureList:new e.Pointer(e.uint32,new er(e.uint16))},4:{lookupTable:new Er},5:{stateTable:new hi(Qa),insertionActions:new e.Pointer(e.uint32,new er(e.uint16))}}),qo=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Xo,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})}),_o=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),$o=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(_o,"nFeatureEntries"),subtables:new e.Array(qo,"nSubtables")}),As=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array($o,"nChains")}),ts=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),es=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new Er(ts)}),ce={};ce.cmap=xA,ce.head=FA,ce.hhea=_,ce.hmtx=uA,ce.maxp=dA,ce.name=W,ce["OS/2"]=vA,ce.post=EA,ce.fpgm=et,ce.loca=st,ce.prep=TA,ce["cvt "]=GA,ce.glyf=at,ce["CFF "]=ie,ce.CFF2=ie,ce.VORG=Rt,ce.EBLC=nn,ce.CBLC=ce.EBLC,ce.sbix=ln,ce.COLR=tn,ce.CPAL=un,ce.BASE=K,ce.GDEF=vt,ce.GPOS=Jr,ce.GSUB=Or,ce.JSTF=Vr,ce.HVAR=Ji,ce.DSIG=ca,ce.gasp=uo,ce.hdmx=ho,ce.kern=Co,ce.LTSH=fa,ce.PCLT=Qo,ce.VDMX=Io,ce.vhea=vo,ce.vmtx=yo,ce.avar=Yo,ce.bsln=Ea,ce.feat=Rr,ce.fvar=Po,ce.gvar=zo,ce.just=Ko,ce.morx=As,ce.opbd=es;var wr,ns=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),Ei=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array(ns,"numTables")});function wi(tA,G){for(var V=0,M=tA.length-1;V<=M;){var x=V+M>>1,L=G(tA[x]);if(L<0)M=x-1;else{if(!(L>0))return x;V=x+1}}return-1}function Lr(tA,G){for(var V=[];tA>1;if(MoA.endCode.get(jA))){var ct=oA.idRangeOffset.get(jA),_A=void 0;if(0===ct)_A=M+oA.idDelta.get(jA);else{var ut=ct/2+(M-oA.startCode.get(jA))-(oA.segCount-jA);0!==(_A=oA.glyphIndexArray.get(ut)||0)&&(_A+=oA.idDelta.get(jA))}return 65535&_A}iA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return oA.glyphIndices.get(M-oA.firstCode)||0;case 12:case 13:for(var pt=0,yt=oA.nGroups-1;pt<=yt;){var Jt=pt+yt>>1,te=oA.groups.get(Jt);if(Mte.endCharCode))return 12===oA.version?te.glyphID+(M-te.startCharCode):te.glyphID;pt=Jt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(oA.version))}},G.getVariationSelector=function(M,x){if(!this.uvs)return 0;var L=this.uvs.varSelectors.toArray(),AA=wi(L,function(oA){return x-oA.varSelector}),aA=L[AA];return-1!==AA&&aA.defaultUVS&&(AA=wi(aA.defaultUVS,function(oA){return MoA.startUnicodeValue+oA.additionalCount?1:0})),-1!==AA&&aA.nonDefaultUVS&&-1!==(AA=wi(aA.nonDefaultUVS,function(oA){return M-oA.unicodeValue}))?aA.nonDefaultUVS[AA].glyphID:0},G.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Lr(0,M.codeMap.length);case 4:for(var x=[],L=M.endCode.toArray(),AA=0;AA=Ae.glyphID&&M<=Ae.glyphID+(Ae.endCharCode-Ae.startCharCode)&&yt.push(Ae.startCharCode+(M-Ae.glyphID))}return yt;case 13:for(var Qe,se=[],fe=B(x.groups.toArray());!(Qe=fe()).done;){var de=Qe.value;M===de.glyphID&&se.push.apply(se,Lr(de.startCharCode,de.endCharCode+1))}return se;default:throw new Error("Unknown cmap format ".concat(x.version))}},tA}()).prototype,"getCharacterSet",[z],Object.getOwnPropertyDescriptor(wr.prototype,"getCharacterSet"),wr.prototype),F(wr.prototype,"codePointsForGlyph",[z],Object.getOwnPropertyDescriptor(wr.prototype,"codePointsForGlyph"),wr.prototype),wr),ji=function(){function tA(V){this.kern=V.kern}var G=tA.prototype;return G.process=function(M,x){for(var L=0;L=0&&(iA=NA.pairs[jA].value);break;case 2:var _A=0;x>=NA.rightTable.firstGlyph&&x=NA.leftTable.firstGlyph&&M=NA.glyphCount||x>=NA.glyphCount)return 0;iA=NA.kernValue[NA.kernIndex[NA.leftClass[M]*NA.rightClassCount+NA.rightClass[x]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(oA.format))}oA.coverage.override?L=iA:L+=iA}}return L},tA}(),rs=function(){function tA(V){this.font=V}var G=tA.prototype;return G.positionGlyphs=function(M,x){for(var L=0,AA=0,aA=0;aA1&&(oA.minX+=(aA.codePoints.length-1)*oA.width/aA.codePoints.length);for(var iA=-x[L].xAdvance,NA=0,jA=this.font.unitsPerEm/16,ct=L+1;ct<=AA;ct++){var _A=M[ct],ut=_A.cbox,pt=x[ct],yt=this.getCombiningClass(_A.codePoints[0]);if("Not_Reordered"!==yt){switch(pt.xOffset=pt.yOffset=0,yt){case"Double_Above":case"Double_Below":pt.xOffset+=oA.minX-ut.width/2-ut.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=oA.minX-ut.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=oA.maxX-ut.width-ut.minX;break;default:pt.xOffset+=oA.minX+(oA.width-ut.width)/2-ut.minX}switch(yt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===yt||"Attached_Below"===yt)&&(oA.minY+=jA),pt.yOffset=-oA.minY-ut.maxY,oA.minY+=ut.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":("Attached_Above"===yt||"Attached_Above_Right"===yt)&&(oA.maxY+=jA),pt.yOffset=oA.maxY-ut.minY,oA.maxY+=ut.height}pt.xAdvance=pt.yAdvance=0,pt.xOffset+=iA,pt.yOffset+=NA}else iA-=pt.xAdvance,NA-=pt.yAdvance}},G.getCombiningClass=function(M){var x=w.getCombiningClass(M);if(3584==(-256&M))if("Not_Reordered"===x)switch(M){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===M)return"Below_Right";switch(x){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return x},tA}(),zr=function(){function tA(V,M,x,L){void 0===V&&(V=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===L&&(L=-1/0),this.minX=V,this.minY=M,this.maxX=x,this.maxY=L}var G=tA.prototype;return G.addPoint=function(M,x){Math.abs(M)!==1/0&&(Mthis.maxX&&(this.maxX=M)),Math.abs(x)!==1/0&&(xthis.maxY&&(this.maxY=x))},G.copy=function(){return new tA(this.minX,this.minY,this.maxX,this.maxY)},l(tA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),tA}(),br={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Ki={};for(var Vi in br){var Wi=br[Vi];if(Array.isArray(Wi))for(var da,is=B(Wi);!(da=is()).done;)Ki[da.value]=Vi;else Ki[Wi]=Vi}var cs={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function Ma(tA){return cs[tA]?"rtl":"ltr"}for(var gs=function(){function tA(G,V,M,x,L){if(this.glyphs=G,this.positions=null,this.script=M,this.language=x||null,this.direction=L||Ma(M),this.features={},Array.isArray(V))for(var aA,AA=B(V);!(aA=AA()).done;)this.features[aA.value]=!0;else"object"==typeof V&&(this.features=V)}return l(tA,[{key:"advanceWidth",get:function(){for(var x,V=0,M=B(this.positions);!(x=M()).done;)V+=x.value.xAdvance;return V}},{key:"advanceHeight",get:function(){for(var x,V=0,M=B(this.positions);!(x=M()).done;)V+=x.value.yAdvance;return V}},{key:"bbox",get:function(){for(var V=new zr,M=0,x=0,L=0;L>1]).firstGlyph)return null;if(MaA.lastGlyph))return 2===this.table.version?aA.value:aA.values[M-aA.firstGlyph];x=AA+1}}return null;case 6:for(var oA=0,iA=this.table.binarySearchHeader.nUnits-1;oA<=iA;){var AA,aA;if(65535===(aA=this.table.segments[AA=oA+iA>>1]).glyph)return null;if(MaA.glyph))return aA.value;oA=AA+1}}return null;case 8:return this.table.values[M-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},G.glyphsForValue=function(M){var x=[];switch(this.table.version){case 2:case 4:for(var AA,L=B(this.table.segments);!(AA=L()).done;){var aA=AA.value;if(2===this.table.version&&aA.value===M)x.push.apply(x,Lr(aA.firstGlyph,aA.lastGlyph+1));else for(var oA=0;oA=-1;){var iA=null,NA=1,jA=!0;aA===M.length||-1===aA?NA=0:65535===(iA=M[aA]).id?NA=2:null==(NA=this.lookupTable.lookup(iA.id))&&(NA=1);var ct=this.stateTable.stateArray.getItem(AA),ut=this.stateTable.entryTable.getItem(ct[NA]);0!==NA&&2!==NA&&(L(iA,ut,aA),jA=!(16384&ut.flags)),AA=ut.newState,jA&&(aA+=oA)}return M},G.traverse=function(M,x,L){if(void 0===x&&(x=0),void 0===L&&(L=new Set),!L.has(x)){L.add(x);for(var AA=this.stateTable,aA=AA.nClasses,iA=AA.entryTable,NA=AA.stateArray.getItem(x),jA=4;jA=0;)65535===M[yt].id&&M.splice(yt,1),yt--;return M},G.processSubtable=function(M,x){if(this.subtable=M,this.glyphs=x,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var L=this.getStateMachine(M),AA=this.getProcessor();return L.process(this.glyphs,!!(4194304&this.subtable.coverage),AA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},G.getStateMachine=function(M){return new ws(M.table.stateTable)},G.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},G.processIndicRearragement=function(M,x,L){32768&x.flags&&(this.firstGlyph=L),8192&x.flags&&(this.lastGlyph=L),function Ys(tA,G,V,M){switch(G){case 0:return tA;case 1:return Rn(tA,[V,1],[M,0]);case 2:return Rn(tA,[V,0],[M,1]);case 3:return Rn(tA,[V,1],[M,1]);case 4:return Rn(tA,[V,2],[M,0]);case 5:return Rn(tA,[V,2],[M,0],!0,!1);case 6:return Rn(tA,[V,0],[M,2]);case 7:return Rn(tA,[V,0],[M,2],!1,!0);case 8:return Rn(tA,[V,1],[M,2]);case 9:return Rn(tA,[V,1],[M,2],!1,!0);case 10:return Rn(tA,[V,2],[M,1]);case 11:return Rn(tA,[V,2],[M,1],!0,!1);case 12:return Rn(tA,[V,2],[M,2]);case 13:return Rn(tA,[V,2],[M,2],!0,!1);case 14:return Rn(tA,[V,2],[M,2],!1,!0);case 15:return Rn(tA,[V,2],[M,2],!0,!0);default:throw new Error("Unknown verb: ".concat(G))}}(this.glyphs,15&x.flags,this.firstGlyph,this.lastGlyph)},G.processContextualSubstitution=function(M,x,L){var AA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var aA=AA.getItem(x.markIndex);(iA=new pi(aA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,NA=AA.getItem(x.currentIndex);(iA=new pi(NA).lookup((M=this.glyphs[L]).id))&&(this.glyphs[L]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=L)},G.processLigature=function(M,x,L){if(32768&x.flags&&this.ligatureStack.push(L),8192&x.flags){for(var AA,aA=this.subtable.table.ligatureActions,oA=this.subtable.table.components,iA=this.subtable.table.ligatureList,NA=x.action,jA=!1,ct=0,_A=[],ut=[];!jA;){var pt,yt=this.ligatureStack.pop();(pt=_A).unshift.apply(pt,this.glyphs[yt].codePoints);var Jt=aA.getItem(NA++);jA=!!(2147483648&Jt);var te=!!(1073741824&Jt),Ae=(1073741823&Jt)<<2>>2;if(ct+=oA.getItem(Ae+=this.glyphs[yt].id),jA||te){var fe=iA.getItem(ct);this.glyphs[yt]=this.font.getGlyph(fe,_A),ut.push(yt),ct=0,_A=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(AA=this.ligatureStack).push.apply(AA,ut)}},G.processNoncontextualSubstitutions=function(M,x,L){var AA=new pi(M.table.lookupTable);for(L=0;L>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(L,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},G.getSupportedFeatures=function(){for(var L,M=[],x=B(this.morx.chains);!(L=x()).done;)for(var oA,aA=B(L.value.features);!(oA=aA()).done;){var iA=oA.value;M.push([iA.featureType,iA.featureSetting])}return M},G.generateInputs=function(M){return this.inputCache||this.generateInputCache(),this.inputCache[M]||[]},G.generateInputCache=function(){this.inputCache={};for(var x,M=B(this.morx.chains);!(x=M()).done;)for(var oA,L=x.value,AA=L.defaultFlags,aA=B(L.subtables);!(oA=aA()).done;){var iA=oA.value;iA.subFeatureFlags&AA&&this.generateInputsForSubtable(iA)}},G.generateInputsForSubtable=function(M){var x=this;if(2===M.type){if(4194304&M.coverage)throw new Error("Reverse subtable, not supported.");this.subtable=M,this.ligatureStack=[];var AA=this.getStateMachine(M),aA=this.getProcessor(),oA=[],iA=[];this.glyphs=[],AA.traverse({enter:function(jA,ct){var _A=x.glyphs;iA.push({glyphs:_A.slice(),ligatureStack:x.ligatureStack.slice()});var ut=x.font.getGlyph(jA);oA.push(ut),_A.push(oA[oA.length-1]),aA(_A[_A.length-1],ct,_A.length-1);for(var pt=0,yt=0,Jt=0;Jt<_A.length&&pt<=1;Jt++)65535!==_A[Jt].id&&(pt++,yt=_A[Jt].id);if(1===pt){var te=oA.map(function(se){return se.id}),Ae=x.inputCache[yt];Ae?Ae.push(te):x.inputCache[yt]=[te]}},exit:function(){var jA=iA.pop();x.glyphs=jA.glyphs,x.ligatureStack=jA.ligatureStack,oA.pop()}})}},tA}()).prototype,"getStateMachine",[z],Object.getOwnPropertyDescriptor(Xr.prototype,"getStateMachine"),Xr.prototype),Xr);function Rn(tA,G,V,M,x){void 0===M&&(M=!1),void 0===x&&(x=!1);var L=tA.splice(V[0]-(V[1]-1),V[1]);x&&L.reverse();var AA=tA.splice.apply(tA,[G[0],G[1]].concat(L));return M&&AA.reverse(),tA.splice.apply(tA,[V[0]-(G[1]-1),0].concat(AA)),tA}var Ts=function(){function tA(V){this.font=V,this.morxProcessor=new Fs(V),this.fallbackPosition=!1}var G=tA.prototype;return G.substitute=function(M){"rtl"===M.direction&&M.glyphs.reverse(),this.morxProcessor.process(M.glyphs,function us(tA){var G={};for(var V in tA){var M;(M=Qi[V])&&(null==G[M[0]]&&(G[M[0]]={}),G[M[0]][M[1]]=tA[V])}return G}(M.features))},G.getAvailableFeatures=function(M,x){return function fs(tA){var G={};if(Array.isArray(tA))for(var V=0;V0&&M.applyFeatures(oA,x,L)}},tA}(),Ns=["rvrn"],Us=["ccmp","locl","rlig","mark","mkmk"],Ps=["frac","numr","dnom"],Rs=["calt","clig","liga","rclt","curs","kern"],Ls={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Cr=function(){function tA(){}return tA.plan=function(V,M,x){this.planPreprocessing(V),this.planFeatures(V),this.planPostprocessing(V,x),V.assignGlobalFeatures(M),this.assignFeatures(V,M)},tA.planPreprocessing=function(V){V.add({global:[].concat(Ns,Ls[V.direction]),local:Ps})},tA.planFeatures=function(V){},tA.planPostprocessing=function(V,M){V.add([].concat(Us,Rs)),V.setFeatureOverrides(M)},tA.assignFeatures=function(V,M){for(var x=0;x0&&w.isDigit(M[AA-1].codePoints[0]);)M[AA-1].features.numr=!0,M[AA-1].features.frac=!0,AA--;for(;aAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},G.next=function(){return this.move(1)},G.prev=function(){return this.move(-1)},G.peek=function(M){void 0===M&&(M=1);var x=this.index,L=this.increment(M);return this.index=x,L},G.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var L=this.index;return this.index=x,L},G.increment=function(M){void 0===M&&(M=1);var x=M<0?-1:1;for(M=Math.abs(M);M--;)this.move(x);return this.glyphs[this.index]},l(tA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),tA}(),Os=["DFLT","dflt","latn"],Mr=function(){function tA(V,M){this.font=V,this.table=M,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=V._variationProcessor?this.findVariationsIndex(V._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var G=tA.prototype;return G.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var L,x=B(M);!(L=x()).done;)for(var oA,AA=L.value,aA=B(this.table.scriptList);!(oA=aA()).done;){var iA=oA.value;if(iA.tag===AA)return iA}return null},G.selectScript=function(M,x,L){var aA,AA=!1;if(!this.script||M!==this.scriptTag){if((aA=this.findScript(M))||(aA=this.findScript(Os)),!aA)return this.scriptTag;this.scriptTag=aA.tag,this.script=aA.script,this.language=null,this.languageTag=null,AA=!0}if((!L||L!==this.direction)&&(this.direction=L||Ma(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,oA=B(this.script.langSysRecords);!(iA=oA()).done;){var NA=iA.value;if(NA.tag===x){this.language=NA.langSys,this.languageTag=NA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),AA=!0}if(AA&&(this.features={},this.language))for(var ct,jA=B(this.language.featureIndexes);!(ct=jA()).done;){var _A=ct.value,ut=this.table.featureList[_A],pt=this.substituteFeatureForVariations(_A);this.features[ut.tag]=pt||ut.feature}return this.scriptTag},G.lookupsForFeatures=function(M,x){void 0===M&&(M=[]);for(var aA,L=[],AA=B(M);!(aA=AA()).done;){var oA=aA.value,iA=this.features[oA];if(iA)for(var jA,NA=B(iA.lookupListIndexes);!(jA=NA()).done;){var ct=jA.value;x&&-1!==x.indexOf(ct)||L.push({feature:oA,index:ct,lookup:this.table.lookupList.get(ct)})}}return L.sort(function(_A,ut){return _A.index-ut.index}),L},G.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var aA,AA=B(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(aA=AA()).done;){var oA=aA.value;if(oA.featureIndex===M)return oA.alternateFeatureTable}return null},G.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var L=x.featureVariationRecords,AA=0;AA=0})},G.getClassID=function(M,x){switch(x.version){case 1:var L=M-x.startGlyph;if(L>=0&&L0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),tA}(),Ya=function(tA){function G(){return tA.apply(this,arguments)||this}return h(G,tA),G.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},G.assignFeatures=function(M,x){for(var L=0,AA=0;AAFr){var ct=Ai(V,AA,M.features);ct.features.tjmo=!0,jA.push(ct)}return tA.splice.apply(tA,[G,1].concat(jA)),G+jA.length-1}function o0(tA,G,V){var oA,iA,NA,jA,M=tA[G],L=$r(tA[G].codePoints[0]),AA=tA[G-1].codePoints[0],aA=$r(AA);if(4===aA&&3===L)oA=AA,jA=M;else{2===L?(iA=tA[G-1],NA=M):(iA=tA[G-2],NA=tA[G-1],jA=M);var ct=iA.codePoints[0],_A=NA.codePoints[0];(function(G){return 4352<=G&&G<=4370})(ct)&&function(G){return 4449<=G&&G<=4469}(_A)&&(oA=Gr+28*(21*(ct-4352)+(_A-4449)))}var ut=jA&&jA.codePoints[0]||Fr;if(null!=oA&&(ut===Fr||function(G){return 1<=G&&G<=4546}(ut))){var pt=oA+(ut-Fr);if(V.hasGlyphForCodePoint(pt)){var yt=2===aA?3:2;return tA.splice(G-yt+1,yt,Ai(V,pt,M.features)),G-yt+1}}return iA&&(iA.features.ljmo=!0),NA&&(NA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===aA?(Pa(tA,G-1,V),G+1):G}function l0(tA,G,V){var M=tA[G];if(0!==V.glyphForCodePoint(tA[G].codePoints[0]).advanceWidth){var AA=function s0(tA){switch($r(tA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(tA[G-1].codePoints[0]);return tA.splice(G,1),tA.splice(G-AA,0,M)}}function c0(tA,G,V){var M=tA[G],x=tA[G].codePoints[0];if(V.hasGlyphForCodePoint(9676)){var L=Ai(V,9676,M.features),AA=0===V.glyphForCodePoint(x).advanceWidth?G:G+1;tA.splice(AA,0,L),G++}return G}var Si={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},Ie_X=1,Ie_N=8,Ie_H=16,Ie_ZWNJ=32,Ie_ZWJ=64,Ie_M=128,Ie_RS=8192,Ie_Repha=32768,Ie_Ra=65536,Ie_CM=1<<17,re={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},d0=2|Ie_Ra|Ie_CM|4|2048|4096,Ra=Ie_ZWJ|Ie_ZWNJ,ti=Ie_H|16384,La={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:re.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:re.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:re.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:re.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:re.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:re.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:re.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:re.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:re.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:re.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:re.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},M0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},p0=Si.decompositions,za=new Q(c("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4GXwLrHJ5bDy4DG8A14LvgZrAZbAF3gns0z18ALgY/B78C94NHwBPgabAE/AX8DbwM5sF/QX0yD5vFcU/wVnAgWAoOAyvAceBE8CGwBpwGzgJfAF8BXwXfAFeC68EmsBlsAXeCreA+8CB4DDwF/gh2gd3gFfAGmKxn2QzYC+wHDgRLweFgJTgWrKrnuq/GcQ04jV6fheN54EJwEbgcXAG+Q8O/j+Mt4DZwB9haz8t9Hz3a8iCN/xiOvwRP0evH6fE68AzOH+Ke2eWYhw3PcGnuxvkr4A3QaGRZB7wFLAEHg2XgiEZ/fHKcp/ceBh/A+cngFPCpRm6vM3E8l8a5gN67GMdvgqsbeX2ap9yI601gM7gN3AG20mfuo8cdOP6GpvdUg9oKxz839GV90RDO2/glxN1B790NXsN1rZll7WYRdw+c70uvTwIHNAfTO0RyL5TDmnnbc3lmRQI9UnM0dD5eovfz4FpJ/BNpXNYWV+N6Lfg0hY97JK1vn+Pur9DoQur2F7m436bHDUK8C5t5/8vruo4+97WmXG+GLmzEiBF+PDwEOowYMWLEiBEjRoxYeBw5BDqIPEfXut9yWN+vVNxfrnnmWqR/PdgENoMt4E5wD9gOHgCPgifBs2BXM99b2o3jP8F/wMRUlrXAHNgHvH0q3895J46HguXgWHAGLctmLv9VuL96qnp7jxgxYsSbCbJvuRZ97/tqxT59VVRtixEjRsThBG7OSt5zzoPT0M+cBc4T5noXOs79TqLHeZrHUeCSqeJ96gacXy2kecNU8V6Hh7yXuQlhtw7B/PO1RTkr52Aj8JNFZjYg3gOKuC/g/v6Ls2wNuAY8urg//PcIb+6RZXuDNeCS6SzbBrJWlh0DLiFHco8ed9IjzzvaWfa9sZzTcf6D9mCcnbg3PlNcH4fzS8F2MDaLdQG4dLZIJxbbaZqv4ri8k58f3+mPs66T6/TTzqDeI0aMGDGiHP5dcR8ce/xxYcWi6vOfr725uRzcjnngXVOD61Hync+9uL+Nmyfej/NHpvL56A5Jeuz7uyfo+pqcPz2Vf1NH0ttJ03pekt8SmuY/EPYy9zzbN319ym/9TL6ZIt9MHCXRdxJtoAkWTRdz472n87D9cTwYLJvuz++I6WIePo/zE8AHp4v8WLyP0nufnM6/+zoDx8+DL08P6r9+urheRtO+jD6/cdrsx3mqu8w+xH4PScKIXa5D2jeCm8Et4DbwI/BjcC/4BXgI/Bb8DuwEu8Bu8Ap4A9RaRZptnO8J9gUHgEPAoWA5OLY1qMO90GEV7q+mYWtxPBWcIYnL4p+DsPNbxfVFOP86uAr8DNc34HgTDb8Vx9sVaRFI/LtagzYjnCqpb908EX87eBA8Bh4Hf2jle/9/wvGFVv787rrZZy8h7qtgDOuFOmiBuXYRvg/O9wMHgXeB97SLspk4sq0OI/q9v13+ek+sh3zYSRp9jrYorw9ll1/GRzR+KotYZSHf8laVP2lvpA/8OGdPMk59hqtXZ+L8nHbxvWwqO65ryu+fT3VZz+l4dET7L0R072ljsMyzTpaJqQxsbL8M9WajY789DO85XMp/Dcp3Qztdn+9qf/a97ZWK8PXc3G+TpC/nv8Mncy7ZvICF302P5O+aNiOtLdTXd+D4Q7DVwfcvWvx9zTEJ/o5iG3R8YAjGNFseha5PGuZKz7b7xxXbOrXMcu5eJSo//rXdH/73Enz6L1q/X+fyIu8wZGtNBmkjkzNZNgP2AvuBg2bysKUzduXn/66JtNeN4PCZvO0/x7Ujdn4VnYOvRJzjZ/I+9sQZeftX2Tc1RPcPz/Tf4/si0g+t5Mq+kfZjZL34Mc5ul3PPnE7TOxvHK2qDaZ+L++db2HyYqMo/qVnb/P8uH8/rmnFxR0k6DCu/rjj/RxT7KGUSWgbd+LMQuEgYB1zsk2qtvJD8v5AhdfdttbEunSxbcJD9Zf7chqp1Hlbe7FK1/aPVTfp7FgtC1yGGiSncFK/DhZvi+epZta0WWjlsfDZMyPRdSPrryqSSKnXx1bkq/Ye9TlRpk7Lrjq1UrfdC9X+MtKqwP6+3a/4pJFUZF0pZZpv91MYjMBaRRXbxpho5zQmUY3F+Pt4o7rvQrBXPdm00TaE24uMadaM2meLSI7iu071t3er3b6ZLi8JEde3qw+6zGv+ycF5kaRBh/m1T/7Yl/mMyTuMwadP4xL9ifjJpNwbvDZRJ8G8vnqV/Wf12aa/kyOdl69+BspTsXzGueE6E+JfZnvmXIfNPW+FfXkjb1YmqPNpnLP3b61fHCj/X5tzGANf2y3yqvC7Jv7btV4TVbdammI9l/g0dS5lNxLrk2j9r8xjjxhBQnygg0lgg/bOrfyct+udJi/Yrk0lFnxC7f+5kRbsNmcexfrubt0X/rGvLqrGSnYv3ZPHEe8r7lvMvUfi2LOu/2dg8LrRtQt2yfcv8r5IU70VkIs6nbebUXf0M/o7Znl39Sdoz+X1oEb5N8ffF67qhPfPP6eoUbxf+GRf/6sRnvaSdmw+Bf1VxmbD+2sa//DU7t/Gv2PfKpKdrBP92Ojk+IvqX16ks/2qxbL8EZnc2HqsgYuqPuzZV+I3RbujbDm+T0PmWCVO/5jqftp1zy+wSA6s0JWtp2z5e1oZV+yMsjB3ZXolsv0Ulrv01v3/iKrF94Qtbt9siCnmeb6fjjf59KnLk1xaEbvtvFnFirGvEOqmycQrbm/IMsXd3P28uh4nM3swXRER717OiX8kc7K2qqyn2p3maFGU/aruP5VCv+PraoTYU8yUmmbDwcYo6pusnM486xdoga4dkPCb1pK7Sfc6ebvkd4qeAtQcd/N63bB3lU3dlUnUf38VyvqCqK7JxlNSd7lydrDlm+/uqHiRvl30Nrp/n9zpkZRjoJ3V1diyP05rIYXHYs+w+D5+WMS8b5gZtKcuX0KT5d/WwtB97VnyvY6rjMukI56HI0rFJPwt8PjT/1OXzSbcMeEmdh294qvKK4rNu7j4n3LNZg8TKXwafv025U+XvKjHsT8Q7/7LGaJt9lAh7Asz3uv0XEX6t0duDoWN/93wmh92XpUHmCKb9GALbG+rZP3AfNbQPKKv/jpF/bP0JXfuW1QYk7dhljcyvk5mw+933Hpo1g26PQ2ZP6zVmTJt47P25jncD9vPwGS+q9QS/V6RaY8j8K8LmvUr9HfYCpH5OWL9lZY+Sv6pesHCJHbtrf9k6etZvf0G1L0ja4cAe1UT/s3zdCe3/Q5/n372wMc97/E1Qh0Tbmfwh3m/V9On72tNnrCF1sJkVe1EyXMdBa7+lHMsk44zMF6St9e2djNnbm8ybpHkq+gbbemMaH0UZmD8obKGrk7r+nt+3bE7o83YZp/vqOKdv6PzJNN6mTJsI/51XR7i2ZrGA5B6zFwnjzxmqPjaGfW3tZNrz1eljq29mOOqeCfF/irRt87PNw0uXSVAvrmOMNT569MptsYaV0sic/wbY13e8hPrb9K2ySUJ0j6G/Lu0U4qpTrR23jMp6m5hU+YTaWCeh9aIsm/rqUHV4bFv42kgnZdfH1PUj1D7DVH9d8khRN1zFRl/+/TW//qxL1uH83+mk3H+SvRtS2TDU90nX2TpM6/1xzZpZtoYdK763dqlz0f6uNeFehcs+H/nbGP77MpX06n/ofpzP+tVmTUvRtVuX/cjS67OE5kRBrxyJ+w/dPo7r+9cO1160e3gqu0S2uW7PjN/L6ns/UfMf10Lai87frJ+3KndAfc8yTf1M3T4s6qm4/yh7/2GSkG8UMw//DvRLgbYZSEOxr0LCWvRdjfh9XGzfqN4NivfZd7rsmFp08zmbssrKJEuTfVMZopdpbuwSrhNv3/N2s+0PDG3KNB6RMrFvJHv6B85HXObAoWsd3zm3i+6uZYytv+5+pohbpo6+tpZJFfmGlrcMf4c8b1Pe2OUIsaXJrinCTfaxtZOt+NYnU3hIfQlN20Z/1+dt7JaqLsbIzycNWZmrlNg2Dc2/LJ1T+T6WrrYSml4Ku7ik7yIx2opJD51vU9UfVRmrqL8u/olZj0PyCLV5irxcdKoi/6rKb8qTrHsnhW9jyZH/nSpeWDzxd9769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=","base64")),m0=new p({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),wn=function(tA){function G(){return tA.apply(this,arguments)||this}return h(G,tA),G.planFeatures=function(M){M.addStage(I0),M.addStage(["locl","ccmp"]),M.addStage(D0),M.addStage("nukt"),M.addStage("akhn"),M.addStage("rphf",!1),M.addStage("rkrf"),M.addStage("pref",!1),M.addStage("blwf",!1),M.addStage("abvf",!1),M.addStage("half",!1),M.addStage("pstf",!1),M.addStage("vatu"),M.addStage("cjct"),M.addStage("cfar",!1),M.addStage(y0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function os(tA){return Ki[tA]}(M.script),M.indicConfig=La[M.unicodeScript]||La.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},G.assignFeatures=function(M,x){for(var L=function(oA){var iA=x[oA].codePoints[0],NA=M0[iA]||p0[iA];if(NA){var jA=NA.map(function(ct){var _A=M.font.glyphForCodePoint(ct);return new gr(M.font,_A.id,[ct],x[oA].features)});x.splice.apply(x,[oA,1].concat(jA))}},AA=x.length-1;AA>=0;AA--)L(AA)},G}(Cr);function $i(tA){return za.get(tA.codePoints[0])>>8}function Aa(tA){return 1<<(255&za.get(tA.codePoints[0]))}S(wn,"zeroMarkWidths","NONE");var Ni=function(G,V,M,x){this.category=G,this.position=V,this.syllableType=M,this.syllable=x};function I0(tA,G){for(var L,V=0,M=0,x=B(m0.match(G.map($i)));!(L=x()).done;){var AA=L.value,aA=AA[0],oA=AA[1],iA=AA[2];if(aA>M){++V;for(var NA=M;NAJt);break;case"First":for(var de=(yt=iA)+1;deqe&&!(Yr(G[je])||Bn&&G[je].shaperInfo.category===Ie_H);je--);if(G[je].shaperInfo.category!==Ie_H&&je>qe){var we=G[qe];G.splice.apply(G,[qe,0].concat(G.splice(qe+1,je-qe))),G[je]=we}break}for(var en=re.Start,Re=iA;ReiA;rn--)if(G[rn-1].shaperInfo.position!==re.Pre_M){Te.position=G[rn-1].shaperInfo.position;break}}else Te.position!==re.SMVD&&(en=Te.position)}for(var bn=yt,fn=yt+1;fniA&&!Yr(G[Gn]))}}}}function y0(tA,G,V){for(var M=V.indicConfig,x=tA._layoutEngine.engine.GSUBProcessor.features,L=0,AA=Ui(G,0);L=re.Base_C){if(aA&&oA+1re.Base_C&&oA--;break}if(oA===AA&&LL&&!(G[jA].shaperInfo.category&(Ie_M|ti));)jA--;ir(G[jA])&&G[jA].shaperInfo.position!==re.Pre_M?jA+1L;ct--)if(G[ct-1].shaperInfo.position===re.Pre_M){var _A=ct-1;_AL&&G[pt].shaperInfo.position===re.SMVD;)pt--;if(ir(G[pt]))for(var te=oA+1;teL&&!(G[fe-1].shaperInfo.category&(Ie_M|ti));)fe--;if(fe>L&&G[fe-1].shaperInfo.category===Ie_M)for(var Qe=se,de=oA+1;deL&&ir(G[fe-1])&&fe=tA.length)return G;for(var V=tA[G].shaperInfo.syllable;++G=0;AA--)L(AA)},G}(Cr);function Ga(tA){return F0.get(tA.codePoints[0])}S(Me,"zeroMarkWidths","BEFORE_GPOS");var T0=function(G,V,M){this.category=G,this.syllableType=V,this.syllable=M};function S0(tA,G){for(var x,V=0,M=B(Y0.match(G.map(Ga)));!(x=M()).done;){var L=x.value,AA=L[0],aA=L[1],oA=L[2];++V;for(var iA=AA;iA<=aA;iA++)G[iA].shaperInfo=new T0(x0[Ga(G[iA])],oA[0],V);for(var NA="R"===G[AA].shaperInfo.category?1:Math.min(3,aA-AA),jA=AA;jA1)for(L=M+1;L=tA.length)return G;for(var V=tA[G].shaperInfo.syllable;++G=0;On--)this.glyphs.splice(fe[On],1);return this.glyphs[this.glyphIterator.index]=ge,!0}}return!1;case 5:return this.applyContext(L);case 6:return this.applyChainingContext(L);case 7:return this.applyLookup(L.lookupType,L.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},G}(Mr),b0=function(tA){function G(){return tA.apply(this,arguments)||this}h(G,tA);var V=G.prototype;return V.applyPositionValue=function(x,L){var AA=this.positions[this.glyphIterator.peekIndex(x)];null!=L.xAdvance&&(AA.xAdvance+=L.xAdvance),null!=L.yAdvance&&(AA.yAdvance+=L.yAdvance),null!=L.xPlacement&&(AA.xOffset+=L.xPlacement),null!=L.yPlacement&&(AA.yOffset+=L.yPlacement);var aA=this.font._variationProcessor,oA=this.font.GDEF&&this.font.GDEF.itemVariationStore;aA&&oA&&(L.xPlaDevice&&(AA.xOffset+=aA.getDelta(oA,L.xPlaDevice.a,L.xPlaDevice.b)),L.yPlaDevice&&(AA.yOffset+=aA.getDelta(oA,L.yPlaDevice.a,L.yPlaDevice.b)),L.xAdvDevice&&(AA.xAdvance+=aA.getDelta(oA,L.xAdvDevice.a,L.xAdvDevice.b)),L.yAdvDevice&&(AA.yAdvance+=aA.getDelta(oA,L.yAdvDevice.a,L.yAdvDevice.b)))},V.applyLookup=function(x,L){switch(x){case 1:var AA=this.coverageIndex(L.coverage);if(-1===AA)return!1;switch(L.version){case 1:this.applyPositionValue(0,L.value);break;case 2:this.applyPositionValue(0,L.values.get(AA))}return!0;case 2:var aA=this.glyphIterator.peek();if(!aA)return!1;var oA=this.coverageIndex(L.coverage);if(-1===oA)return!1;switch(L.version){case 1:for(var jA,NA=B(L.pairSets.get(oA));!(jA=NA()).done;){var ct=jA.value;if(ct.secondGlyph===aA.id)return this.applyPositionValue(0,ct.value1),this.applyPositionValue(1,ct.value2),!0}return!1;case 2:var _A=this.getClassID(this.glyphIterator.cur.id,L.classDef1),ut=this.getClassID(aA.id,L.classDef2);if(-1===_A||-1===ut)return!1;var pt=L.classRecords.get(_A).get(ut);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Jt=this.glyphs[yt];if(!Jt)return!1;var te=L.entryExitRecords[this.coverageIndex(L.coverage)];if(!te||!te.exitAnchor)return!1;var Ae=L.entryExitRecords[this.coverageIndex(L.coverage,Jt.id)];if(!Ae||!Ae.entryAnchor)return!1;var se=this.getAnchor(Ae.entryAnchor),fe=this.getAnchor(te.exitAnchor),Qe=this.positions[this.glyphIterator.index],de=this.positions[yt];switch(this.direction){case"ltr":Qe.xAdvance=fe.x+Qe.xOffset;var Oe=se.x+de.xOffset;de.xAdvance-=Oe,de.xOffset-=Oe;break;case"rtl":Qe.xAdvance-=Oe=fe.x+Qe.xOffset,Qe.xOffset-=Oe,de.xAdvance=se.x+de.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,Qe.yOffset=se.y-fe.y):(Jt.cursiveAttachment=this.glyphIterator.index,Qe.yOffset=fe.y-se.y),!0;case 4:var gn=this.coverageIndex(L.markCoverage);if(-1===gn)return!1;for(var ke=this.glyphIterator.index;--ke>=0&&(this.glyphs[ke].isMark||this.glyphs[ke].ligatureComponent>0););if(ke<0)return!1;var ge=this.coverageIndex(L.baseCoverage,this.glyphs[ke].id);if(-1===ge)return!1;var Bn=L.markArray[gn];return this.applyAnchor(Bn,L.baseArray[ge][Bn.class],ke),!0;case 5:var je=this.coverageIndex(L.markCoverage);if(-1===je)return!1;for(var we=this.glyphIterator.index;--we>=0&&this.glyphs[we].isMark;);if(we<0)return!1;var en=this.coverageIndex(L.ligatureCoverage,this.glyphs[we].id);if(-1===en)return!1;var Re=L.ligatureArray[en],Te=this.glyphIterator.cur,rn=this.glyphs[we],bn=rn.ligatureID&&rn.ligatureID===Te.ligatureID&&Te.ligatureComponent>0?Math.min(Te.ligatureComponent,rn.codePoints.length)-1:rn.codePoints.length-1,fn=L.markArray[je];return this.applyAnchor(fn,Re[bn][fn.class],we),!0;case 6:var On=this.coverageIndex(L.mark1Coverage);if(-1===On)return!1;var Kn=this.glyphIterator.peekIndex(-1),Dn=this.glyphs[Kn];if(!Dn||!Dn.isMark)return!1;var Mn=this.glyphIterator.cur,Vn=!1;if(Mn.ligatureID===Dn.ligatureID?Mn.ligatureID?Mn.ligatureComponent===Dn.ligatureComponent&&(Vn=!0):Vn=!0:(Mn.ligatureID&&!Mn.ligatureComponent||Dn.ligatureID&&!Dn.ligatureComponent)&&(Vn=!0),!Vn)return!1;var Wn=this.coverageIndex(L.mark2Coverage,Dn.id);if(-1===Wn)return!1;var ve=L.mark1Array[On];return this.applyAnchor(ve,L.mark2Array[Wn][ve.class],Kn),!0;case 7:return this.applyContext(L);case 8:return this.applyChainingContext(L);case 9:return this.applyLookup(L.lookupType,L.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},V.applyAnchor=function(x,L,AA){var aA=this.getAnchor(L),oA=this.getAnchor(x.markAnchor),NA=this.positions[this.glyphIterator.index];NA.xOffset=aA.x-oA.x,NA.yOffset=aA.y-oA.y,this.glyphIterator.cur.markAttachment=AA},V.getAnchor=function(x){var L=x.xCoordinate,AA=x.yCoordinate,aA=this.font._variationProcessor,oA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return aA&&oA&&(x.xDeviceTable&&(L+=aA.getDelta(oA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(AA+=aA.getDelta(oA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:L,y:AA}},V.applyFeatures=function(x,L,AA){tA.prototype.applyFeatures.call(this,x,L,AA);for(var aA=0;aA>16;if(0===x)switch(M>>8){case 0:return 173===M;case 3:return 847===M;case 6:return 1564===M;case 23:return 6068<=M&&M<=6069;case 24:return 6155<=M&&M<=6158;case 32:return 8203<=M&&M<=8207||8234<=M&&M<=8238||8288<=M&&M<=8303;case 254:return 65024<=M&&M<=65039||65279===M;case 255:return 65520<=M&&M<=65528;default:return!1}else switch(x){case 1:return 113824<=M&&M<=113827||119155<=M&&M<=119162;case 14:return 917504<=M&&M<=921599;default:return!1}},G.getAvailableFeatures=function(M,x){var L=[];return this.engine&&L.push.apply(L,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===L.indexOf("kern")&&L.push("kern"),L},G.stringsForGlyph=function(M){for(var aA,x=new Set,AA=B(this.font._cmapProcessor.codePointsForGlyph(M));!(aA=AA()).done;)x.add(String.fromCodePoint(aA.value));if(this.engine&&this.engine.stringsForGlyph)for(var NA,iA=B(this.engine.stringsForGlyph(M));!(NA=iA()).done;)x.add(NA.value);return Array.from(x)},tA}(),J0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Ri=function(){function tA(){this.commands=[],this._bbox=null,this._cbox=null}var G=tA.prototype;return G.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(L){return x[L.command].apply(x,L.args)})}},G.toSVG=function(){return this.commands.map(function(x){var L=x.args.map(function(AA){return Math.round(100*AA)/100});return"".concat(J0[x.command]).concat(L.join(" "))}).join("")},G.mapPoints=function(M){for(var AA,x=new tA,L=B(this.commands);!(AA=L()).done;){for(var aA=AA.value,oA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var G=tA.prototype;return G._getPath=function(){return new Ri},G._getCBox=function(){return this.path.cbox},G._getBBox=function(){return this.path.bbox},G._getTableMetrics=function(M){if(this.id0)oA=Math.abs(NA.typoAscender-NA.typoDescender),iA=NA.typoAscender-M.maxY;else{var jA=this._font.hhea;oA=Math.abs(jA.ascent-jA.descent),iA=jA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(L+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:L,advanceHeight:oA,leftBearing:AA,topBearing:iA}},G.getScaledPath=function(M){return this.path.scale(1/this._font.unitsPerEm*M)},G._getName=function(){var M=this._font.post;if(!M)return null;switch(M.version){case 1:return ei[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(oA,AA):oA.numberOfContours<0&&this._decodeComposite(oA,AA,aA),oA},V._decodeSimple=function(x,L){x.points=[];var AA=new e.Array(e.uint16,x.numberOfContours).decode(L);x.instructions=new e.Array(e.uint8,e.uint16).decode(L);for(var aA=[],oA=AA[AA.length-1]+1;aA.length=0,0,0);x.points.push(_A)}var ut=0;for(ct=0;ct>1,iA.length=0}function Bn(je,we){Jt&&oA.closePath(),oA.moveTo(je,we),Jt=!0}return function je(){for(;L.pos1&&ke(),ut+=iA.shift(),Bn(_A,ut);break;case 5:for(;iA.length>=2;)_A+=iA.shift(),ut+=iA.shift(),oA.lineTo(_A,ut);break;case 6:case 7:for(var en=6===we;iA.length>=1;)en?_A+=iA.shift():ut+=iA.shift(),oA.lineTo(_A,ut),en=!en;break;case 8:for(;iA.length>0;){var ve=_A+iA.shift(),Le=ut+iA.shift(),Se=ve+iA.shift(),_e=Le+iA.shift();_A=Se+iA.shift(),ut=_e+iA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut)}break;case 10:var Re=iA.pop()+Qe,Te=fe[Re];if(Te){yt[Re]=!0;var rn=L.pos,bn=aA;L.pos=Te.offset,aA=Te.offset+Te.length,je(),L.pos=rn,aA=bn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&ke(),Jt&&(oA.closePath(),Jt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");Oe=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!gn)throw new Error("blend operator in non-variation font");for(var fn=gn.getBlendVector(de,Oe),In=iA.pop(),On=In*fn.length,Kn=iA.length-On,Dn=Kn-In,Mn=0;Mn>3;break;case 21:iA.length>2&&ke(),_A+=iA.shift(),ut+=iA.shift(),Bn(_A,ut);break;case 22:iA.length>1&&ke(),Bn(_A+=iA.shift(),ut);break;case 24:for(;iA.length>=8;)ve=_A+iA.shift(),Le=ut+iA.shift(),Se=ve+iA.shift(),_e=Le+iA.shift(),_A=Se+iA.shift(),ut=_e+iA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);_A+=iA.shift(),ut+=iA.shift(),oA.lineTo(_A,ut);break;case 25:for(;iA.length>=8;)_A+=iA.shift(),ut+=iA.shift(),oA.lineTo(_A,ut);ve=_A+iA.shift(),Le=ut+iA.shift(),Se=ve+iA.shift(),_e=Le+iA.shift(),_A=Se+iA.shift(),ut=_e+iA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);break;case 26:for(iA.length%2&&(_A+=iA.shift());iA.length>=4;)ve=_A,Le=ut+iA.shift(),Se=ve+iA.shift(),_e=Le+iA.shift(),_A=Se,ut=_e+iA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);break;case 27:for(iA.length%2&&(ut+=iA.shift());iA.length>=4;)ve=_A+iA.shift(),Le=ut,Se=ve+iA.shift(),_e=Le+iA.shift(),_A=Se+iA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut=_e);break;case 28:iA.push(L.readInt16BE());break;case 29:Re=iA.pop()+Ae,(Te=te[Re])&&(pt[Re]=!0,rn=L.pos,bn=aA,L.pos=Te.offset,aA=Te.offset+Te.length,je(),L.pos=rn,aA=bn);break;case 30:case 31:for(en=31===we;iA.length>=4;)en?(ve=_A+iA.shift(),Le=ut,Se=ve+iA.shift(),_e=Le+iA.shift(),ut=_e+iA.shift(),_A=Se+(1===iA.length?iA.shift():0)):(ve=_A,Le=ut+iA.shift(),Se=ve+iA.shift(),_e=Le+iA.shift(),_A=Se+iA.shift(),ut=_e+(1===iA.length?iA.shift():0)),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut),en=!en;break;case 12:switch(we=L.readUInt8()){case 3:var Ke=iA.pop(),hn=iA.pop();iA.push(Ke&&hn?1:0);break;case 4:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke||hn?1:0);break;case 5:Ke=iA.pop(),iA.push(Ke?0:1);break;case 9:Ke=iA.pop(),iA.push(Math.abs(Ke));break;case 10:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke+hn);break;case 11:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke-hn);break;case 12:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke/hn);break;case 14:Ke=iA.pop(),iA.push(-Ke);break;case 15:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke===hn?1:0);break;case 18:iA.pop();break;case 20:var ra=iA.pop(),Gn=iA.pop();NA[Gn]=ra;break;case 21:Gn=iA.pop(),iA.push(NA[Gn]||0);break;case 22:var ia=iA.pop(),aa=iA.pop(),Jl=iA.pop(),Ol=iA.pop();iA.push(Jl<=Ol?ia:aa);break;case 23:iA.push(Math.random());break;case 24:Ke=iA.pop(),hn=iA.pop(),iA.push(Ke*hn);break;case 26:Ke=iA.pop(),iA.push(Math.sqrt(Ke));break;case 27:Ke=iA.pop(),iA.push(Ke,Ke);break;case 28:Ke=iA.pop(),hn=iA.pop(),iA.push(hn,Ke);break;case 29:(Gn=iA.pop())<0?Gn=0:Gn>iA.length-1&&(Gn=iA.length-1),iA.push(iA[Gn]);break;case 30:var bi=iA.pop(),ni=iA.pop();if(ni>=0)for(;ni>0;){for(var oa=iA[bi-1],Gi=bi-2;Gi>=0;Gi--)iA[Gi+1]=iA[Gi];iA[0]=oa,ni--}else for(;ni<0;){oa=iA[0];for(var Hi=0;Hi<=bi;Hi++)iA[Hi]=iA[Hi+1];iA[bi-1]=oa,ni++}break;case 34:ve=_A+iA.shift(),Le=ut,Se=ve+iA.shift(),_e=Le+iA.shift();var ri=Se+iA.shift(),ii=_e,ai=ri+iA.shift(),oi=ii,si=ai+iA.shift(),li=oi,ci=si+iA.shift(),gi=li;_A=ci,ut=gi,oA.bezierCurveTo(ve,Le,Se,_e,ri,ii),oA.bezierCurveTo(ai,oi,si,li,ci,gi);break;case 35:for(var pr=[],oo=0;oo<=5;oo++)_A+=iA.shift(),ut+=iA.shift(),pr.push(_A,ut);oA.bezierCurveTo.apply(oA,pr.slice(0,6)),oA.bezierCurveTo.apply(oA,pr.slice(6)),iA.shift();break;case 36:ve=_A+iA.shift(),Le=ut+iA.shift(),Se=ve+iA.shift(),oi=ii=_e=Le+iA.shift(),si=(ai=(ri=Se+iA.shift())+iA.shift())+iA.shift(),li=oi+iA.shift(),ci=si+iA.shift(),_A=ci,ut=gi=li,oA.bezierCurveTo(ve,Le,Se,_e,ri,ii),oA.bezierCurveTo(ai,oi,si,li,ci,gi);break;case 37:var sa=_A,so=ut;pr=[];for(var lo=0;lo<=4;lo++)_A+=iA.shift(),ut+=iA.shift(),pr.push(_A,ut);Math.abs(_A-sa)>Math.abs(ut-so)?(_A+=iA.shift(),ut=so):(_A=sa,ut+=iA.shift()),pr.push(_A,ut),oA.bezierCurveTo.apply(oA,pr.slice(0,6)),oA.bezierCurveTo.apply(oA,pr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(we))}break;default:throw new Error("Unknown op: ".concat(we))}else if(we<247)iA.push(we-139);else if(we<251){var la=L.readUInt8();iA.push(256*(we-247)+la+108)}else we<255?(la=L.readUInt8(),iA.push(256*-(we-251)-la-108)):iA.push(L.readInt32BE()/65536)}}(),Jt&&oA.closePath(),oA},G}(Li),rl=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(tA){return tA.parent.buflen-tA._currentOffset})}),il=function(tA){function G(){return tA.apply(this,arguments)||this}h(G,tA);var V=G.prototype;return V.getImageForSize=function(x){for(var L=0;L=x)break}var aA=AA.imageOffsets,oA=aA[this.id],iA=aA[this.id+1];return oA===iA?null:(this._font.stream.pos=oA,rl.decode(this._font.stream,{buflen:iA-oA}))},V.render=function(x,L){var AA=this.getImageForSize(L);null!=AA&&x.image(AA.data,{height:L,x:AA.originX,y:L/this._font.unitsPerEm*(this.bbox.minY-AA.originY)}),this._font.sbix.flags.renderOutlines&&tA.prototype.render.call(this,x,L)},G}(zi),Va=function(G,V){this.glyph=G,this.color=V},al=function(tA){function G(){return tA.apply(this,arguments)||this}h(G,tA);var V=G.prototype;return V._getBBox=function(){for(var x=new zr,L=0;L>1;if(this.id<(iA=L.baseGlyphRecord[oA]).gid)aA=oA-1;else{if(!(this.id>iA.gid)){var NA=iA;break}AA=oA+1}}if(null==NA){var jA=this._font._getBaseGlyph(this.id);return[new Va(jA,ct={red:0,green:0,blue:0,alpha:255})]}for(var _A=[],ut=NA.firstLayerIndex;ut=1&&x[L]=L.glyphCount)){var AA=L.offsets[M];if(AA!==L.offsets[M+1]){var aA=this.font.stream;if(aA.pos=AA,!(aA.pos>=aA.length)){var oA=aA.readUInt16BE(),iA=AA+aA.readUInt16BE();if(32768&oA){var NA=aA.pos;aA.pos=iA;var jA=this.decodePoints();iA=aA.pos,aA.pos=NA}var ct=x.map(function(fn){return fn.copy()});oA&=4095;for(var _A=0;_A=L.globalCoordCount)throw new Error("Invalid gvar table");yt=L.globalCoords[4095&pt]}if(16384&pt){for(var te=[],Ae=0;AeMath.max(0,x[NA]))return 0;iA=(iA*aA[NA]+Number.EPSILON)/(x[NA]+Number.EPSILON)}else{if(aA[NA]AA[NA])return 0;iA=aA[NA]oA)){var NA=AA,jA=AA;for(AA++;AA<=oA;)L[AA]&&(this.deltaInterpolate(jA+1,AA-1,jA,AA,x,M),jA=AA),AA++;jA===NA?this.deltaShift(aA,oA,jA,x,M):(this.deltaInterpolate(jA+1,oA,jA,NA,x,M),NA>0&&this.deltaInterpolate(aA,NA-1,jA,NA,x,M)),AA=oA+1}}},G.deltaInterpolate=function(M,x,L,AA,aA,oA){if(!(M>x))for(var iA=["x","y"],NA=0;NAaA[AA][jA]){var ct=L;L=AA,AA=ct}var _A=aA[L][jA],ut=aA[AA][jA],pt=oA[L][jA],yt=oA[AA][jA];if(_A!==ut||pt===yt)for(var Jt=_A===ut?0:(yt-pt)/(ut-_A),te=M;te<=x;te++){var Ae=aA[te][jA];Ae<=_A?Ae+=pt-_A:Ae>=ut?Ae+=yt-ut:Ae=pt+(Ae-_A)*Jt,oA[te][jA]=Ae}}},G.deltaShift=function(M,x,L,AA,aA){var oA=aA[L].x-AA[L].x,iA=aA[L].y-AA[L].y;if(0!==oA||0!==iA)for(var NA=M;NA<=x;NA++)NA!==L&&(aA[NA].x+=oA,aA[NA].y+=iA)},G.getAdvanceAdjustment=function(M,x){var L,AA;if(x.advanceWidthMapping){var aA=M;aA>=x.advanceWidthMapping.mapCount&&(aA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[aA];L=iA.outerIndex,AA=iA.innerIndex}else L=0,AA=M;return this.getDelta(x.itemVariationStore,L,AA)},G.getDelta=function(M,x,L){if(x>=M.itemVariationData.length)return 0;var AA=M.itemVariationData[x];if(L>=AA.deltaSets.length)return 0;for(var aA=AA.deltaSets[L],oA=this.getBlendVector(M,x),iA=0,NA=0;NA_A.peakCoord||_A.peakCoord>_A.endCoord||_A.startCoord<0&&_A.endCoord>0&&0!==_A.peakCoord||0===_A.peakCoord?1:AA[ct]<_A.startCoord||AA[ct]>_A.endCoord?0:AA[ct]===_A.peakCoord?1:AA[ct]<_A.peakCoord?(AA[ct]-_A.startCoord+Number.EPSILON)/(_A.peakCoord-_A.startCoord+Number.EPSILON):(_A.endCoord-AA[ct]+Number.EPSILON)/(_A.endCoord-_A.peakCoord+Number.EPSILON)}aA[oA]=iA}return this.blendVectors.set(L,aA),aA},tA}(),hl=Promise.resolve(),_a=function(){function tA(V){this.font=V,this.glyphs=[],this.mapping={},this.includeGlyph(0)}var G=tA.prototype;return G.includeGlyph=function(M){return"object"==typeof M&&(M=M.id),null==this.mapping[M]&&(this.glyphs.push(M),this.mapping[M]=this.glyphs.length-1),this.mapping[M]},G.encodeStream=function(){var M=this,x=new e.EncodeStream;return hl.then(function(){return M.encode(x),x.end()}),x},tA}(),$a=function(){function tA(){}return tA.size=function(V){return V>=0&&V<=255?1:2},tA.encode=function(V,M){M>=0&&M<=255?V.writeUInt8(M):V.writeInt16BE(M)},tA}(),Ao=new e.Struct({numberOfContours:e.int16,xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,endPtsOfContours:new e.Array(e.uint16,"numberOfContours"),instructions:new e.Array(e.uint8,e.uint16),flags:new e.Array(e.uint8,0),xPoints:new e.Array($a,0),yPoints:new e.Array($a,0)}),pl=function(){function tA(){}var G=tA.prototype;return G.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var L=[],AA=[],aA=[],oA=[],iA=0,NA=0,jA=0,ct=0,_A=0,ut=0;ut0&&(oA.push(iA),iA=0),oA.push(Ae),ct=Ae),NA=Jt,jA=te,_A++}"closePath"===pt.command&&L.push(_A-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&L.push(_A-1);var de=M.bbox,Oe={numberOfContours:L.length,xMin:de.minX,yMin:de.minY,xMax:de.maxX,yMax:de.maxY,endPtsOfContours:L,instructions:x,flags:oA,xPoints:AA,yPoints:aA},gn=Ao.size(Oe),ke=4-gn%4,ge=new e.EncodeStream(gn+ke);return Ao.encode(ge,Oe),0!==ke&&ge.fill(0,ke),ge.buffer},G._encodePoint=function(M,x,L,AA,aA,oA){var iA=M-x;return M===x?AA|=oA:(-255<=iA&&iA<=255&&(AA|=aA,iA<0?iA=-iA:AA|=oA),L.push(iA)),AA},tA}(),ml=function(tA){function G(M){var x;return(x=tA.call(this,M)||this).glyphEncoder=new pl,x}h(G,tA);var V=G.prototype;return V._addGlyph=function(x){var L=this.font.getGlyph(x),AA=L._decode(),aA=this.font.loca.offsets[x],oA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=aA;var NA=iA.readBuffer(oA-aA);if(AA&&AA.numberOfContours<0){NA=c.from(NA);for(var ct,jA=B(AA.components);!(ct=jA()).done;){var _A=ct.value;x=this.includeGlyph(_A.glyphID),NA.writeUInt16BE(x,_A.pos)}}else AA&&this.font._variationProcessor&&(NA=this.glyphEncoder.encodeSimple(L.path,AA.instructions));return this.glyf.push(NA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:L.advanceWidth,bearing:L._getMetrics().leftBearing}),this.offset+=NA.length,this.glyf.length-1},V.encode=function(x){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var L=0;L255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},AA=Object.assign({},this.cff.topDict);AA.Private=null,AA.charset=L,AA.Encoding=null,AA.CharStrings=this.charstrings;for(var aA=0,oA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];aA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,L)})}}tA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var G=tA.prototype;return G.setDefaultLanguage=function(M){void 0===M&&(M=null),this.defaultLanguage=M},G._getTable=function(M){if(!(M.tag in this._tables))try{this._tables[M.tag]=this._decodeTable(M)}catch(x){D.logErrors&&(console.error("Error decoding table ".concat(M.tag)),console.error(x.stack))}return this._tables[M.tag]},G._getTableStream=function(M){var x=this.directory.tables[M];return x?(this.stream.pos=x.offset,this.stream):null},G._decodeDirectory=function(){return this.directory=Ei.decode(this.stream,{_startOffset:0})},G._decodeTable=function(M){var x=this.stream.pos,L=this._getTableStream(M.tag),AA=ce[M.tag].decode(L,this,M.length);return this.stream.pos=x,AA},G.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var L=this.name&&this.name.records[M];return L&&(L[x]||L[this.defaultLanguage]||L[D.defaultLanguage]||L.en||L[Object.keys(L)[0]])||null},G.hasGlyphForCodePoint=function(M){return!!this._cmapProcessor.lookup(M)},G.glyphForCodePoint=function(M){return this.getGlyph(this._cmapProcessor.lookup(M),[M])},G.glyphsForString=function(M){for(var x=[],L=M.length,AA=0,aA=-1,oA=-1;AA<=L;){var iA=0,NA=0;if(AA>>6&3},transformed:function(G){return"glyf"===G.tag||"loca"===G.tag?0===G.transformVersion:0!==G.transformVersion},transformLength:new e.Optional(eo,function(tA){return tA.transformed})}),no=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(Fl,"numTables")});no.process=function(){for(var tA={},G=0;G0){for(var iA=[],NA=0,jA=0;jA>7);if((iA&=127)<10)aA=0,oA=ar(iA,((14&iA)<<7)+G.readUInt8());else if(iA<20)aA=ar(iA,((iA-10&14)<<7)+G.readUInt8()),oA=0;else if(iA<84)aA=ar(iA,1+(48&(jA=iA-20))+((ct=G.readUInt8())>>4)),oA=ar(iA>>1,1+((12&jA)<<2)+(15&ct));else if(iA<120){var jA;aA=ar(iA,1+((jA=iA-84)/12<<8)+G.readUInt8()),oA=ar(iA>>1,1+(jA%12>>2<<8)+G.readUInt8())}else if(iA<124){var ct=G.readUInt8(),_A=G.readUInt8();aA=ar(iA,(ct<<4)+(_A>>4)),oA=ar(iA>>1,((15&_A)<<8)+G.readUInt8())}else aA=ar(iA,G.readUInt16BE()),oA=ar(iA>>1,G.readUInt16BE());L.push(new ur(NA,!1,x+=aA,M+=oA))}return L}var Ul=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Pl=function(){function tA(V){if(this.stream=V,"ttcf"!==V.readString(4))throw new Error("Not a TrueType collection");this.header=Ul.decode(V)}return tA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},tA.prototype.getFont=function(M){for(var L,x=B(this.header.offsets);!(L=x()).done;){var AA=L.value,aA=new e.DecodeStream(this.stream.buffer);aA.pos=AA;var oA=new Tr(aA);if(oA.postscriptName===M)return oA}return null},l(tA,[{key:"fonts",get:function(){for(var L,M=[],x=B(this.header.offsets);!(L=x()).done;){var AA=L.value,aA=new e.DecodeStream(this.stream.buffer);aA.pos=AA,M.push(new Tr(aA))}return M}}]),tA}(),Rl=new e.String(e.uint8),Ll=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),zl=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Ll,function(tA){return tA.maxTypeIndex+1}),{type:"parent"})}),bl=new e.Struct({length:e.uint16,types:new e.Array(zl,function(tA){return tA.length+1})}),Gl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,bl),nameListOffset:new e.Pointer(e.uint16,"void")}),ao=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Gl),dataLength:e.uint32,mapLength:e.uint32}),Hl=function(){function tA(V){this.stream=V,this.header=ao.decode(this.stream);for(var x,M=B(this.header.map.typeList.types);!(x=M()).done;){for(var aA,L=x.value,AA=B(L.refList);!(aA=AA()).done;){var oA=aA.value;oA.nameOffset>=0?(this.stream.pos=oA.nameOffset+this.header.map.nameListOffset,oA.name=Rl.decode(this.stream)):oA.name=null}"sfnt"===L.name&&(this.sfnt=L)}}return tA.probe=function(M){var x=new e.DecodeStream(M);try{var L=ao.decode(x)}catch(iA){return!1}for(var aA,AA=B(L.map.typeList.types);!(aA=AA()).done;)if("sfnt"===aA.value.name)return!0;return!1},tA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var L,x=B(this.sfnt.refList);!(L=x()).done;){var oA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+L.value.dataOffset+4)),iA=new Tr(oA);if(iA.postscriptName===M)return iA}return null},l(tA,[{key:"fonts",get:function(){for(var L,M=[],x=B(this.sfnt.refList);!(L=x()).done;){var oA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+L.value.dataOffset+4));M.push(new Tr(oA))}return M}}]),tA}();D.registerFormat(Tr),D.registerFormat(Dl),D.registerFormat(ro),D.registerFormat(Pl),D.registerFormat(Hl),T.exports=D},7337:function(T,I,n){"use strict";var c=n(4781),i=n(9742),s=n(2055),l=s.BK,h=s.CR,a=s.LF,B=s.NL,E=s.SG,u=s.WJ,C=s.SP,e=s.ZWJ,f=s.BA,g=s.HY,w=s.NS,Q=s.AI,p=s.AL,Y=s.CJ,y=s.HL,d=s.RI,v=s.SA,D=s.XX,R=n(8383),S=R.DI_BRK,F=R.IN_BRK,z=R.CI_BRK,P=R.CP_BRK,sA=R.pairTable,BA=new c(i.toByteArray("AAgOAAAAAACA3QAAAe0OEvHtnXuMXUUdx+d2d2/33r237V3YSoFC11r6IGgbRFBEfFF5KCVCMYKFaKn8AYqmwUeqECFabUGQipUiNCkgSRElUkKwJRWtwSpJrZpCI4E2NQqiBsFGwWL8Tu6Md3Z23o9zbund5JM5c+b1m9/85nnOuXtTHyFrwXpwL9gBngTPgj+Dv4H9Ae4B0N9PSAMcDqaB0X57urmIs8AQ72SEnQ4+ABaBxWAJWAquENJ9BtdfANeCleBGcCv4NvgeuBv8AGwCm8FWlpbzOPw7wC7wFNgDngMvgpfAq2DCACF10ACHgaPAzIF2+PFwT2Th1P8OuO8FZ4MPggvAxWAp+A6VHe5ysILFvx7u6oF2+Wvg3g7uYvlT+TbC/TH4CdgCtoGtfW3/E2An8++Gu5eleR7uP8B+8BoLf4LFH6i23Vp1rB5a1Q7TGMeCUYYY18RcxF0gxT8H5b3dIw8X3iPkdxauPwQWgyVgWbVT30/h+mrwZan8r8L/FcEWVsJ/E1grpKXcwdLdI9y/H9cPgUerbbun0PadCHcbjQd+D55mafcx9y9wXwKvCLJUJiLdRH09ef4xupqE/KeCY8Bx4M3gbeBdYCE4G3wYXASWgGXgSibTcuaugHs9WA3WgNvBBha2Ee4D4GFNPTYL9x/D9XaJXwnXvwW7wDPgTzQd2A9eAwODhDTBCJgOZoETwEngtEFmF3DPAouY/0K4Swb9dbaMpbkS7nKP9CsCyrpOSrNK8K9kNnYL7q0DGwbb/XnjoDv3gQfBZvBz8GvwO/AHdr3Pkv4F4fplj3J79OgRBx8HypajR48ePXr06NGjx8HFv7pABhX/HRx7HqKjr9Y+y6PXg7X2WRoPm1Kzpz8CcWaweLPhHt/fPq95C65PZnmfDnchOLfWPo/7OLgQ15ewdJ+E++na2PMhyudw72bDGc01CP8aWAm+Dr4BVoHV4IZeWC+sF9YL64UlD1sD1oE7au0z0zK5p1YuZde/R49uJnYdez/62EPgkVr4c7pHkfYXivTbcW8n2A32gOekOH+F/5/gAOivE9IArXpbrmlwR+vljz9bJrV552RCvgQ2GXgRzJ9CyGVTxofdLd17Gv6jW4RcAG5ote/9FO4B8NZhQs4DN4O9kOFY6OFSsB48C/qGCFkAyERCzh9q+0WuA2sqHX4m+Smv4t6RjXYelItwvQ7sBtOahHwU3NYcn+5Q4pFmRz89evTocajxStM898/FfLSgrg8/sT5+zcLDTkXY+6S0C+E/l907SXO+Rt/Lujrxe1kmztPU70JDvSmXILwJWS9TxLuC3VtuycPGCoV+VfD41yvKW6W4d1O9/S5YtZ+Qtbi+k/m/D/eHYBPzb4G7DfyS+enZ42/qnXPFp+pjZdgD/yX0XcV6+93DF+H+G5AhtcxPIs/BoY5cg0g7RRGXx/8Ewo8Y6vhp/Bnwz2F5zId7CgunZ6Dv1uTF0585pNY7P9NdhPCPDI1Ncyn8l4OrwHKwguVB12WrNPnpoPW5BWluA3eCuxRl3cfyfFCom43NBjkeQ9h2Tzlzs7PL5CmD3UwHew26+KMm7AVHu8hJaL1fTtj29L3E/wi6oPvWvkY7bAjucKOYtpymKWdGo/3e5KxGR8YTGvmfZ4XW46RGmnMIG6excs6Ae46nPuh7pGXbvm/fOB91vLhRXvkmlkKuK8BnFTb8xYL6TyqugbzXJZCZ9tlVrO9+C+53G5134A8G1htsjdbvXoT/KEBPmwq04dS2v6UxNnxbAXV5gul4Z6J+tMtBZtv4+Qzy2Ndof+fwPHP/zsbg/QFz02tIM4B9ZRO0mp379NxxBpgD5gv3T8H16eAMcCZYxMIWw/2YEG8pri9n/qvgfr45fm67VtjPzmbpVrJ7NzL3VrjvF/Jdh+sN3M/cB+A+LOV/bVNdX13b0G9KtmrSHCo8jvqfGjFu7WiWP37E8s2+yv8ZwVbYRgvMAm9kvMkhjStzAZbIBGIR+ngAy2NSZ9f0Hv2bIIShCckU5k5sb+OdGGQ0BKqSPzeE1WFCgWXK5dO2rDD/COn9zTvEUfXJ4zT3c9DP2oH2+ZoAtc9RBr/mY0SLdGyap+Nxh6W0In2Sn5C8/W00c/7dXn63we1DtAHud9WZbFNimmFL2iIoqt8eDPQHptERIkNoO8prFVvblm13OaG6oGM+n7P4/RrRz2HdTktotxHFdZW5tvm72UWEtm9dQF6n++hU1FmVFL++L2Nsdt3/1IVrWaacda4Se91t+pHDVXF5HFd9pG7X14NNyePr6wkfPTRI+H6qDPvLqRM5DR2beZ8W95Divq0IWXXyy/d18Yq09ZhyY/fyPjafY37yta8ybD9l3W15+crXYhQ5rsj2Wkb7iDadon1c+tKI4p5NR6HjPl/vqvLm92uK8lTjWNntkwJTu9hkiJmHVf3S1V5UOii6PWL1nVqOkP5QI/b2L2o+Kqr/h9i0bHNl9HudnKn0btKBbZzItQ7n47Drmutg6P+ubZK7/5va0PU8XZS56DP4Isci07gUo3/fscdlfMyp6xR6dy0vt/275K1bJ8qkHI99bdK3v4vt4Gtzs7sEWa5aZH4NDz3yfWG368bXLlQ6GZYQ7/UL1y3mryroZ+nkZwK28SD1vlt+7sNd+lcR3Ji1RKq1WcvhftFzousYxftH7Ngu2pZubcGfD8eMizp5Y/uha/m69NNK5siSOapkcq2lTOOGvE4y9aPclFl20eXTvwoZO374ymob90Jx3Zfk2h/I849q7VNE+WXsj+ZFlJ96Xcd1PyD4ue2J69/Q9V+u9uPrQC7/sHRftjE+n+eQP2Ztl5Kc+0TX/WND8vP2iF23xO7lfO3XtKfLhUm/PE6Ze78RD/3Fknr8i907yWsoUx+M3S+0SNjcHyu7qg6+aYvqF671TLXfTzU+2uaTnOOzbFc+7yHoZE59npIL175kay/ZxlKMH6a+NSJdl90XKXytpbMpTr/kP5zJfqxQDzneYWTstxh9pPPdYJ/CL8alTBag+fFvHFXtQMutWxBloOUMMHS6GWSyVYS4pvgmexXtVjc/TFWk9ZnnZLt3+caI10/8Xkb+hsYlfeh+QOyPNQN1S7hv2nqivEVSj/Ex+1lu73Ib1olbu4jpfN4ddbWbHN+/mcpWfUem+g7RhK4833SuepHbN0d5PjKF1kUll3xPFc5d+btTW9uqdCHXwaQ7kw252ENIW9vKTdEfTLox+VPYT6r8XXUWq7tYuXyZnEAG+ic+pwyVdRLDp8wcOp0kEZNXzLyqw3f+yEkjMI1sFznk8ulDKcoKlcFVlz75qPyu9+U8YuvnqnfXNDn6t6neNr3xfHj4JEU500ma8SSkjjodptBlTLurbI7rTxUnhcxF6d9W76KRbd6G3DdVNj2qia/qD3KY2O90elLJocpHJc90Q7kqVLqaLlGUjYj+Pg00jD8Xk+Wnf5UAN8c8HGrvXKYi+4irnsoo09ctU29Fll2UraSyaxnTOar8DFw+w60St+cRNlzfm9E9y9CNUTZM5/7iOTWR6imOgaKf/pn6hJw/f8dDdS6u0tNhDN1ZOlGUoauTrqyQNvCd21Mjy8N/T7AixBkQrm3tRKS0tngDwrWYzobuLFwXV3WfP5uR9TGTXdvc3BRVjq18l3rbwmaS8c9QByR4m3Sb/lPVX2V/M4naDkV79GFmJDad2NaLOdpBpxsbvs+/YubgVPO5bn3h+75BahnEOU/EVb+yTL7vQeTQp04GH/twfTYaCv9ehe8XXdZ0Ic+IY94Hcik/9h0Zk35c7MdWXo737HM/y6dllPENj9zeuvq7vMMYam88fZnfU7nOHznf6/AdP+W8ffXv2q6uelDlE1N/Wx+Prb/MG8ARBVJ0eb7rz5Tf6sl5l/G9nizDnJLJudZoaNqU/hbsCPH73dhu+03aWPiZhW9/yLHf8IGvT1OtzwZJ56yG/7YvX5sSdn+yof6x5av2ebxcV1dOZ9pDVgSXys/36uLzG1s5Nvj7pKo9axm2zsueylxeT1lWlQ4rkuuzx5f3+VXPPGIhgbLnKp/rtiJdcz2lOtMpAtMZV27E/kRttyaF83dFbf3NdYwXx6sZpH0uVkZ/VslmOrspa24V1+O56u3TdmXpQdaJy36wLPm4LZVR7jyp/CLOmULtzeWZoqstuLS9rhzTmqwIe3LVia0f2OSP3c/71Ec8V0itv6JtONbOXdb3Oc5YdcTaQVFzRWg7+z6HydnHy+qPoWO+j1yq8anofifWl7ri97chNiq/z6KyM37t8333sJR/SF/3bUvd+z+8nV3KNPWfIvt3mfNZijFAZT8xfXSekLfOtl3rHCuPzxrEdT7U9UvRjn3HKV5/XTuo2i3n+E3L5L+3yN+TkH+z07ZGDlkviuXLcX3aL7b+8m+duhCzJonp/yF9wabPItZhJmJ/N8pVfvn31Fok7PeiYsalFON4bPnyuOO7Ru2G+S52fqB5DAt55bJtXf2LtJdQParCVevHlqcufduvKJuQ5yxxvA/Zw6W0l5D3+nz7a4wdieXxd+FS2SjPN7Z9XXDRp62/dMv4GTM22uwx1/iTe7zTUSfjf1Mqld36EHv2xvPoprMnGfGvIiDHk+/x+EQTP7fMOjl928f0/855OTnaJ5XeQsevVHNojO5147ePXLH681mDqOBhqef/Ivp+7PMF1Vxs02kMITLK30zp/k+FbX1RdP/w1b2OMt9hiR1bKLHfZ+XWT+4+ahqzVM8iUug81r5tfTf3+JB6DPFpk1zllLUu9523cpPLdlR6zTVP+bShGFd1lh/Td33rVdT44WqTtjqktOtc87osc8x5hM9vyLrK49v+Pvmp7De0/vyvLJvk1C3+1OOyLyG/aSSud1L/TlLq/BoZ5M2xNj66IFRlT9fcT4GqDYosQ3df/G0zlR5U4UVzjAJZPpW8NlLI5lOejzwq+eS4rnWZbsjTx7ZUrq4sXdrQPmAa82Pb0HVuyZl3rrrZ7Nal/ULzdy0zBUXrMaQcU18v6ncmxd9eM/1fkdQ24Tvu+paZ2q5S6z13+anlTyVfrv4aWz/desfFfn3WEj727rNGKHJdlqsM1VompjzT+shXv7F75dj3J3K3qY7QM7DcZ2L/Aw==")),pA=function(FA){switch(FA){case Q:case v:case E:case D:return p;case Y:return w;default:return FA}},lA=function(FA){switch(FA){case a:case B:return l;case C:return u;default:return FA}},cA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};T.exports=function(){function xA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var FA=xA.prototype;return FA.nextCodePoint=function(){var MA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=MA&&MA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(MA-55296)+(uA-56320)+65536):MA},FA.nextCharClass=function(){return pA(BA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case B:return this.curClass=l,!1;case h:return this.curClass=h,!1}return null},FA.getPairTableBreak=function(MA){var uA=!1;switch(sA[this.curClass][this.nextClass]){case S:uA=!0;break;case F:uA=MA===C;break;case z:if(!(uA=MA===C))return!1;break;case P:if(MA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==g&&this.curClass!==f?this.LB21a=this.curClass===y:(uA=!1,this.LB21a=!1),this.curClass===d?(this.LB30a++,2==this.LB30a&&this.nextClass===d&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},FA.nextBreak=function(){if(null==this.curClass){var MA=this.nextCharClass();this.curClass=lA(MA),this.nextClass=MA,this.LB8a=MA===e,this.LB30a=0}for(;this.pos=XA)return $;switch($){case"%s":return String(bA[SA++]);case"%d":return Number(bA[SA++]);case"%j":try{return JSON.stringify(bA[SA++])}catch(W){return"[Circular]"}default:return $}}),O=bA[SA];SA=3&&(SA.depth=arguments[2]),arguments.length>=4&&(SA.colors=arguments[3]),y(dA)?SA.showHidden=dA:dA&&I._extend(SA,dA),F(SA.showHidden)&&(SA.showHidden=!1),F(SA.depth)&&(SA.depth=2),F(SA.colors)&&(SA.colors=!1),F(SA.customInspect)&&(SA.customInspect=!0),SA.colors&&(SA.stylize=E),e(SA,uA,SA.depth)}function E(uA,dA){var SA=B.styles[dA];return SA?"\x1b["+B.colors[SA][0]+"m"+uA+"\x1b["+B.colors[SA][1]+"m":uA}function u(uA,dA){return uA}function e(uA,dA,SA){if(uA.customInspect&&dA&&q(dA.inspect)&&dA.inspect!==I.inspect&&(!dA.constructor||dA.constructor.prototype!==dA)){var bA=dA.inspect(SA,uA);return R(bA)||(bA=e(uA,bA,SA)),bA}var XA=function f(uA,dA){if(F(dA))return uA.stylize("undefined","undefined");if(R(dA)){var SA="'"+JSON.stringify(dA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(SA,"string")}return D(dA)?uA.stylize(""+dA,"number"):y(dA)?uA.stylize(""+dA,"boolean"):d(dA)?uA.stylize("null","null"):void 0}(uA,dA);if(XA)return XA;var X=Object.keys(dA),O=function C(uA){var dA={};return uA.forEach(function(SA,bA){dA[SA]=!0}),dA}(X);if(uA.showHidden&&(X=Object.getOwnPropertyNames(dA)),sA(dA)&&(X.indexOf("message")>=0||X.indexOf("description")>=0))return g(dA);if(0===X.length){if(q(dA))return uA.stylize("[Function"+(dA.name?": "+dA.name:"")+"]","special");if(z(dA))return uA.stylize(RegExp.prototype.toString.call(dA),"regexp");if(eA(dA))return uA.stylize(Date.prototype.toString.call(dA),"date");if(sA(dA))return g(dA)}var EA,W="",hA=!1,vA=["{","}"];return Y(dA)&&(hA=!0,vA=["[","]"]),q(dA)&&(W=" [Function"+(dA.name?": "+dA.name:"")+"]"),z(dA)&&(W=" "+RegExp.prototype.toString.call(dA)),eA(dA)&&(W=" "+Date.prototype.toUTCString.call(dA)),sA(dA)&&(W=" "+g(dA)),0!==X.length||hA&&0!=dA.length?SA<0?z(dA)?uA.stylize(RegExp.prototype.toString.call(dA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(dA),EA=hA?function w(uA,dA,SA,bA,XA){for(var X=[],O=0,$=dA.length;O<$;++O)xA(dA,String(O))?X.push(Q(uA,dA,SA,bA,String(O),!0)):X.push("");return XA.forEach(function(W){W.match(/^\d+$/)||X.push(Q(uA,dA,SA,bA,W,!0))}),X}(uA,dA,SA,O,X):X.map(function(GA){return Q(uA,dA,SA,O,GA,hA)}),uA.seen.pop(),function p(uA,dA,SA){return uA.reduce(function(X,O){return O.indexOf("\n"),X+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?SA[0]+(""===dA?"":dA+"\n ")+" "+uA.join(",\n ")+" "+SA[1]:SA[0]+dA+" "+uA.join(", ")+" "+SA[1]}(EA,W,vA)):vA[0]+W+vA[1]}function g(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,dA,SA,bA,XA,X){var O,$,W;if((W=Object.getOwnPropertyDescriptor(dA,XA)||{value:dA[XA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),xA(bA,XA)||(O="["+XA+"]"),$||(uA.seen.indexOf(W.value)<0?($=d(SA)?e(uA,W.value,null):e(uA,W.value,SA-1)).indexOf("\n")>-1&&($=X?$.split("\n").map(function(hA){return" "+hA}).join("\n").substr(2):"\n"+$.split("\n").map(function(hA){return" "+hA}).join("\n")):$=uA.stylize("[Circular]","special")),F(O)){if(X&&XA.match(/^\d+$/))return $;(O=JSON.stringify(""+XA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.substr(1,O.length-2),O=uA.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=uA.stylize(O,"string"))}return O+": "+$}function Y(uA){return Array.isArray(uA)}function y(uA){return"boolean"==typeof uA}function d(uA){return null===uA}function D(uA){return"number"==typeof uA}function R(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function z(uA){return P(uA)&&"[object RegExp]"===pA(uA)}function P(uA){return"object"==typeof uA&&null!==uA}function eA(uA){return P(uA)&&"[object Date]"===pA(uA)}function sA(uA){return P(uA)&&("[object Error]"===pA(uA)||uA instanceof Error)}function q(uA){return"function"==typeof uA}function pA(uA){return Object.prototype.toString.call(uA)}function lA(uA){return uA<10?"0"+uA.toString(10):uA.toString(10)}I.debuglog=function(uA){if(uA=uA.toUpperCase(),!l[uA])if(h.test(uA)){var dA=c.pid;l[uA]=function(){var SA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,dA,SA)}}else l[uA]=function(){};return l[uA]},I.inspect=B,B.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},B.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=Y,I.isBoolean=y,I.isNull=d,I.isNullOrUndefined=function v(uA){return null==uA},I.isNumber=D,I.isString=R,I.isSymbol=function S(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=z,I.types.isRegExp=z,I.isObject=P,I.isDate=eA,I.types.isDate=eA,I.isError=sA,I.types.isNativeError=sA,I.isFunction=q,I.isPrimitive=function BA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var cA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gA(){var uA=new Date,dA=[lA(uA.getHours()),lA(uA.getMinutes()),lA(uA.getSeconds())].join(":");return[uA.getDate(),cA[uA.getMonth()],dA].join(" ")}function xA(uA,dA){return Object.prototype.hasOwnProperty.call(uA,dA)}I.log=function(){console.log("%s - %s",gA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,dA){if(!dA||!P(dA))return uA;for(var SA=Object.keys(dA),bA=SA.length;bA--;)uA[SA[bA]]=dA[SA[bA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,dA){if(!uA){var SA=new Error("Promise was rejected with a falsy value");SA.reason=uA,uA=SA}return dA(uA)}I.promisify=function(dA){if("function"!=typeof dA)throw new TypeError('The "original" argument must be of type Function');if(FA&&dA[FA]){var SA;if("function"!=typeof(SA=dA[FA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(SA,FA,{value:SA,enumerable:!1,writable:!1,configurable:!0}),SA}function SA(){for(var bA,XA,X=new Promise(function(W,hA){bA=W,XA=hA}),O=[],$=0;$1?D.attr[v[1]]:D.val},i.prototype.toString=function(d){return this.toStringWithIndent("",d)},i.prototype.toStringWithIndent=function(d,v){var D=d+"<"+this.name,R=v&&v.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+Y(this.attr[F])+'"');if(1===this.children.length&&"element"!==this.children[0].type)D+=">"+this.children[0].toString(v)+"";else if(this.children.length){D+=">"+R;for(var z=d+(v&&v.compressed?"":" "),P=0,eA=this.children.length;P"}else v&&v.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?D+="/>":D+=">":D+="/>";return D},s.prototype.toString=function(d){return y(Y(this.text),d)},s.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},l.prototype.toString=function(d){return""},l.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},h.prototype.toString=function(d){return"\x3c!--"+y(Y(this.comment),d)+"--\x3e"},h.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},i.prototype.type="element",s.prototype.type="text",l.prototype.type="cdata",h.prototype.type="comment",function p(d,v){for(var D in v)v.hasOwnProperty(D)&&(d[D]=v[D])}(a.prototype,i.prototype),a.prototype._opentag=function(d){void 0===this.children?i.call(this,d):i.prototype._opentag.apply(this,arguments)},a.prototype._doctype=function(d){this.doctype+=d};var B=null;function u(){B[0]&&B[0]._opentag.apply(B[0],arguments)}function C(){B[0]&&B[0]._closetag.apply(B[0],arguments)}function e(){B[0]&&B[0]._text.apply(B[0],arguments)}function f(){B[0]&&B[0]._cdata.apply(B[0],arguments)}function g(){B[0]&&B[0]._comment.apply(B[0],arguments)}function w(){B[0]&&B[0]._doctype.apply(B[0],arguments)}function Q(){B[0]&&B[0]._error.apply(B[0],arguments)}function Y(d){return d.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function y(d,v){var D=d;return v&&v.trimmed&&d.length>25&&(D=D.substring(0,25).trim()+"\u2026"),v&&v.preserveWhitespace||(D=D.trim()),D}T.exports&&!n.g.xmldocAssumeBrowser?T.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(T,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(s){this.fs=s,this.resolving={}}i.prototype.resolve=function(s,l){if(!this.resolving[s]){var h=this;this.resolving[s]=new Promise(function(a,B){0===s.toLowerCase().indexOf("https://")||0===s.toLowerCase().indexOf("http://")?function(s,l){return new Promise(function(h,a){var B=new XMLHttpRequest;for(var E in B.open("GET",s,!0),l)B.setRequestHeader(E,l[E]);B.responseType="arraybuffer",B.onreadystatechange=function(){4===B.readyState&&(B.status>=200&&B.status<300||setTimeout(function(){a(new TypeError('Failed to fetch (url: "'+s+'")'))},0))},B.onload=function(){B.status>=200&&B.status<300&&h(B.response)},B.onerror=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+s+'")'))},0)},B.ontimeout=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+s+'")'))},0)},B.send()})}(s,l).then(function(E){h.fs.writeFileSync(s,E),a()},function(E){B(E)}):a()})}return this.resolving[s]},i.prototype.resolved=function(){var s=this;return new Promise(function(l,h){Promise.all(Object.values(s.resolving)).then(function(){l()},function(a){h(a)})})},T.exports=i},4275:function(T,I,n){"use strict";var c=n(8823).Buffer,i=n(6225).isFunction,s=n(6225).isUndefined,a=(n(6225),n(1818).saveAs),B={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,g){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||B,this.vfs=g}E.prototype._createDoc=function(C,e){var f=function(R){return"object"==typeof R?{url:R.url,headers:R.headers}:{url:R,headers:{}}};C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var w=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!i(e))return w.createPdfKitDocument(this.docDefinition,C);var Y=new(n(6255))(n(3857));for(var y in this.fonts)if(this.fonts.hasOwnProperty(y)){if(this.fonts[y].normal){var d=f(this.fonts[y].normal);Y.resolve(d.url,d.headers),this.fonts[y].normal=d.url}this.fonts[y].bold&&(d=f(this.fonts[y].bold),Y.resolve(d.url,d.headers),this.fonts[y].bold=d.url),this.fonts[y].italics&&(d=f(this.fonts[y].italics),Y.resolve(d.url,d.headers),this.fonts[y].italics=d.url),this.fonts[y].bolditalics&&(d=f(this.fonts[y].bolditalics),Y.resolve(d.url,d.headers),this.fonts[y].bolditalics=d.url)}if(this.docDefinition.images)for(var v in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(v)&&(d=f(this.docDefinition.images[v]),Y.resolve(d.url,d.headers),this.docDefinition.images[v]=d.url);var D=this;Y.resolved().then(function(){var R=w.createPdfKitDocument(D.docDefinition,C);e(R)},function(R){throw R})},E.prototype._flushDoc=function(C,e){var g,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){g=c.concat(f),e(g,C._pdfMakePages)}),C.end()},E.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var f=this;this._createDoc(C,function(g){f._flushDoc(g,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(g){if("InvalidStateError"===g.name){var f=new Uint8Array(C);e=new Blob([f.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},E.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},E.prototype._openPdf=function(C,e){e||(e=this._openWindow());try{this.getBlob(function(f){var w=(window.URL||window.webkitURL).createObjectURL(f);e.location.href=w},C)}catch(f){throw e.close(),f}},E.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},E.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},E.prototype.download=function(C,e,f){i(C)&&(s(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(g){a(g,C),i(e)&&e()},f)},E.prototype.getBase64=function(C,e){if(!C)throw"getBase64 is an async method and needs a callback argument";this.getBuffer(function(f){C(f.toString("base64"))},e)},E.prototype.getDataUrl=function(C,e){if(!C)throw"getDataUrl is an async method and needs a callback argument";this.getBuffer(function(f){C("data:application/pdf;base64,"+f.toString("base64"))},e)},E.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var f=this;this.getBuffer(function(g){var w=f._bufferToBlob(g);C(w)},e)},E.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var f=this;this._createDoc(e,function(g){f._flushDoc(g,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(g){e(g)})},T.exports={createPdf:function(C,e,f,g){if(!function u(){try{var C=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(C,e),42===C.foo()}catch(f){return!1}}())throw"Your browser does not provide the level of support needed";return new E(C,e||n.g.pdfMake.tableLayouts,f||n.g.pdfMake.fonts,g||n.g.pdfMake.vfs)}}},3857:function(T,I,n){"use strict";var i=n(8823).Buffer;function s(){this.fileSystem={},this.dataSystem={}}function l(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}s.prototype.existsSync=function(h){return h=l(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},s.prototype.readFileSync=function(h,a){h=l(h);var B=this.dataSystem[h];if("string"==typeof B&&"utf8"===a)return B;if(B)return new i(B,"string"==typeof B?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},s.prototype.writeFileSync=function(h,a){this.fileSystem[l(h)]=a},s.prototype.bindFS=function(h){this.dataSystem=h||{}},T.exports=new s},4498:function(T,I,n){"use strict";var c=n(6225).isString;function s(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}T.exports={buildColumnWidths:function i(a,B){var E=[],u=0,C=0,e=[],f=0,g=0,w=[],Q=B;a.forEach(function(D){s(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),f=Math.max(f,D._minWidth),g=Math.max(g,D._maxWidth)):w.push(D)}),w.forEach(function(D){c(D.width)&&/\d+%/.test(D.width)&&(D.width=parseFloat(D.width)*Q/100),D._calcWidth=D.width=B)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(Y0){var v=B/e.length;e.forEach(function(D){D._calcWidth=v})}}},measureMinMax:function h(a){for(var B={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;z--){var eA=w.styleStack.styleDictionary[S[z]];for(var sA in eA)eA.hasOwnProperty(sA)&&(F[sA]=eA[sA])}return F}function d(S){return h(S)?S=[S,S,S,S]:B(S)&&2===S.length&&(S=[S[0],S[1],S[0],S[1]]),S}var v=[void 0,void 0,void 0,void 0];if(g.style){var R=y(B(g.style)?g.style:[g.style]);R&&(v=Y(R,v)),R.margin&&(v=d(R.margin))}return v=Y(g,v),g.margin&&(v=d(g.margin)),void 0===v[0]&&void 0===v[1]&&void 0===v[2]&&void 0===v[3]?null:v}(),g.columns)return Q(w.measureColumns(g));if(g.stack)return Q(w.measureVerticalContainer(g));if(g.ul)return Q(w.measureUnorderedList(g));if(g.ol)return Q(w.measureOrderedList(g));if(g.table)return Q(w.measureTable(g));if(void 0!==g.text)return Q(w.measureLeaf(g));if(g.toc)return Q(w.measureToc(g));if(g.image)return Q(w.measureImage(g));if(g.svg)return Q(w.measureSVG(g));if(g.canvas)return Q(w.measureCanvas(g));if(g.qr)return Q(w.measureQr(g));throw"Unrecognized document structure: "+JSON.stringify(g,E)});function Q(Y){var y=Y._margin;return y&&(Y._minWidth+=y[0]+y[2],Y._maxWidth+=y[0]+y[2]),Y}},f.prototype.convertIfBase64Image=function(g){if(/^data:image\/(jpeg|jpg|png);base64,/.test(g.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=g.image,g.image=w}},f.prototype.measureImageWithDimensions=function(g,w){if(g.fit){var Q=w.width/w.height>g.fit[0]/g.fit[1]?g.fit[0]/w.width:g.fit[1]/w.height;g._width=g._minWidth=g._maxWidth=w.width*Q,g._height=w.height*Q}else g._width=g._minWidth=g._maxWidth=g.width||w.width,g._height=g.height||w.height*g._width/w.width,h(g.maxWidth)&&g.maxWidthg._width&&(g._width=g._minWidth=g._maxWidth=g.minWidth,g._height=g._width*w.height/w.width),h(g.minHeight)&&g.minHeight>g._height&&(g._height=g.minHeight,g._width=g._minWidth=g._maxWidth=g._height*w.width/w.height);g._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(g){this.images&&this.convertIfBase64Image(g);var w=this.imageMeasure.measureImage(g.image);return this.measureImageWithDimensions(g,w),g},f.prototype.measureSVG=function(g){var w=this.svgMeasure.measureSVG(g.svg);return this.measureImageWithDimensions(g,w),g.font=this.styleStack.getProperty("font"),g.svg=this.svgMeasure.writeDimensions(g.svg,{width:g._width,height:g._height}),g},f.prototype.measureLeaf=function(g){g._textRef&&g._textRef._textNodeRef.text&&(g.text=g._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(g);var Q=this.textTools.buildInlines(g.text,w);return g._inlines=Q.items,g._minWidth=Q.minWidth,g._maxWidth=Q.maxWidth,g},f.prototype.measureToc=function(g){if(g.toc.title&&(g.toc.title=this.measureNode(g.toc.title)),g.toc._items.length>0){for(var w=[],Q=g.toc.textStyle||{},p=g.toc.numberStyle||Q,Y=g.toc.textMargin||[0,0,0,0],y=0,d=g.toc._items.length;y=26?F((z/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[z%26>>0]}(S-1)}function y(S){if(S<1||S>4999)return S.toString();var eA,F=S,z={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},P="";for(eA in z)for(;F>=z[eA];)P+=eA,F-=z[eA];return P}var v;switch(Q){case"none":v=null;break;case"upper-alpha":v=Y(g).toUpperCase();break;case"lower-alpha":v=Y(g);break;case"upper-roman":v=y(g);break;case"lower-roman":v=y(g).toLowerCase();break;default:v=function d(S){return S.toString()}(g)}if(null===v)return{};p&&(B(p)?(p[0]&&(v=p[0]+v),p[1]&&(v+=p[1]),v+=" "):v+=p+" ");var D={text:v},R=w.getProperty("markerColor");return R&&(D.color=R),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(g){var w=this.styleStack.clone(),Q=g.ul;g.type=g.type||"disc",g._gapSize=this.gapSizeForList(),g._minWidth=0,g._maxWidth=0;for(var p=0,Y=Q.length;p0?w.length-1:0;return g._minWidth=Y.min+g._gap*y,g._maxWidth=Y.max+g._gap*y,g},f.prototype.measureTable=function(g){(function BA(pA){if(pA.table.widths||(pA.table.widths="auto"),l(pA.table.widths))for(pA.table.widths=[pA.table.widths];pA.table.widths.length1?(sA(v,Q,D.colSpan),w.push({col:Q,span:D.colSpan,minWidth:D._minWidth,maxWidth:D._maxWidth})):(d._minWidth=Math.max(d._minWidth,D._minWidth),d._maxWidth=Math.max(d._maxWidth,D._maxWidth))),D.rowSpan&&D.rowSpan>1&&q(g.table,p,Q,D.rowSpan)}}!function P(){for(var pA,lA,cA=0,gA=w.length;cA0)for(pA=_/xA.span,lA=0;lA0)for(pA=MA/xA.span,lA=0;lAE.page?B:E.page>B.page?E:B.y>E.y?B:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,B.bottomMost)},s.prototype.markEnding=function(B){this.page=B._columnEndingContext.page,this.x=B._columnEndingContext.x,this.y=B._columnEndingContext.y,this.availableWidth=B._columnEndingContext.availableWidth,this.availableHeight=B._columnEndingContext.availableHeight,this.lastColumnWidth=B._columnEndingContext.lastColumnWidth},s.prototype.saveContextInEndingCell=function(B){B._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},s.prototype.completeColumnGroup=function(B){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;B&&(E.page===E.bottomMost.page?E.y+B>u&&(u=E.y+B):u+=B),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,B&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},s.prototype.addMargin=function(B,E){this.x+=B,this.availableWidth-=B+(E||0)},s.prototype.moveDown=function(B){return this.y+=B,this.availableHeight-=B,this.availableHeight>0},s.prototype.initializePage=function(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right},s.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},s.prototype.moveTo=function(B,E){null!=B&&(this.x=B,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=E&&(this.y=E,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},s.prototype.moveToRelative=function(B,E){null!=B&&(this.x=this.x+B),null!=E&&(this.y=this.y+E)},s.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth})},s.prototype.endDetachedBlock=function(){var B=this.snapshots.pop();this.x=B.x,this.y=B.y,this.availableWidth=B.availableWidth,this.availableHeight=B.availableHeight,this.page=B.page,this.endingCell=B.endingCell,this.lastColumnWidth=B.lastColumnWidth};var h=function(B,E){return(E=function l(B,E){return void 0===B?E:i(B)&&"landscape"===B.toLowerCase()?"landscape":"portrait"}(E,B.pageSize.orientation))!==B.pageSize.orientation?{orientation:E,width:B.pageSize.height,height:B.pageSize.width}:{orientation:B.pageSize.orientation,width:B.pageSize.width,height:B.pageSize.height}};s.prototype.moveToNextPage=function(B){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,g=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),B);this.addPage(w),g===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},s.prototype.addPage=function(B){var E={items:[],pageSize:B};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},s.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},s.prototype.getCurrentPosition=function(){var B=this.getCurrentPage().pageSize,E=B.height-this.pageMargins.top-this.pageMargins.bottom,u=B.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:B.orientation,pageInnerHeight:E,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/E,horizontalRatio:(this.x-this.pageMargins.left)/u}},T.exports=s},1196:function(T,I,n){"use strict";var c=n(4775),i=n(6225).isNumber,s=n(6225).pack,l=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function B(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}a.prototype.addLine=function(u,C,e){var f=u.getHeight(),g=this.context,w=g.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(g.availableHeight0&&u.inlines[0].alignment,g=0;switch(f){case"right":g=C-e;break;case"center":g=(C-e)/2}if(g&&(u.x=(u.x||0)+g),"justify"===f&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,p=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=f.x+u._x,u.y=f.y,this.alignImage(u),B(g,{type:e||"image",item:u},C),f.moveDown(u._height),w)},a.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},a.prototype.addQr=function(u,C){var e=this.context,f=e.getCurrentPage(),g=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightg.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var p=function E(u){var C=new c(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);p._node&&(p._node.positions[0].pageNumber=g.page+1),p.x=(p.x||0)+(C?u.xOffset||0:g.x),p.y=(p.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:"line",item:p});break;case"vector":var Y=s(Q.item);l(Y,C?u.xOffset||0:g.x,e?u.yOffset||0:g.y),w.items.push({type:"vector",item:Y});break;case"image":case"svg":var y=s(Q.item);y.x=(y.x||0)+(C?u.xOffset||0:g.x),y.y=(y.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:Q.type,item:y})}}),f||g.moveDown(u.height),0))},a.prototype.pushContext=function(u,C){void 0===u&&(C=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom,u=this.context.availableWidth),i(u)&&(u=new h({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},a.prototype.popContext=function(){this.context=this.contextStack.pop()},a.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},T.exports=a},2249:function(T,I,n){"use strict";var c=n(6225).isArray;function s(l,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},l)if(l.hasOwnProperty(a)){var B=l[a];this.fonts[a]={normal:B.normal,bold:B.bold,italics:B.italics,bolditalics:B.bolditalics}}}s.prototype.getFontType=function(l,h){return function i(l,h){var a="normal";return l&&h?a="bolditalics":l?a="bold":h&&(a="italics"),a}(l,h)},s.prototype.getFontFile=function(l,h,a){var B=this.getFontType(h,a);return this.fonts[l]&&this.fonts[l][B]?this.fonts[l][B]:null},s.prototype.provideFont=function(l,h,a){var B=this.getFontType(h,a);if(null===this.getFontFile(l,h,a))throw new Error("Font '"+l+"' in style '"+B+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][B]){var E=this.fonts[l][B];c(E)||(E=[E]),this.fontCache[l][B]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][B]},T.exports=s},6225:function(T){"use strict";function i(g){return Array.isArray(g)}T.exports={isString:function I(g){return"string"==typeof g||g instanceof String},isNumber:function n(g){return"number"==typeof g||g instanceof Number},isBoolean:function c(g){return"boolean"==typeof g},isArray:i,isFunction:function s(g){return"function"==typeof g},isObject:function l(g){return null!==g&&"object"==typeof g},isNull:function h(g){return null===g},isUndefined:function a(g){return void 0===g},pack:function B(){for(var g={},w=0,Q=arguments.length;w0})).forEach(function(W){var hA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(vA){void 0!==W[vA]&&(hA[vA]=W[vA])}),hA.startPosition=W.positions[0],hA.pageNumbers=Array.from(new Set(W.positions.map(function(vA){return vA.pageNumber}))),hA.pages=MA.length,hA.stack=C(W.stack),W.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var dA=_[uA];if("before"!==dA.pageBreak&&!dA.pageBreakCalculated){dA.pageBreakCalculated=!0;var SA=dA.nodeInfo.pageNumbers[0],bA=[],XA=[],X=[];if(cA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(SA)>-1&&bA.push(_[O].nodeInfo),cA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(SA+1)>-1&&XA.push(_[O].nodeInfo);if(cA.length>3)for(O=0;O-1&&X.push(_[O].nodeInfo);if(cA(dA.nodeInfo,bA,XA,X))return dA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new s(z,P,eA,this.imageMeasure,this.svgMeasure,this.tableLayouts,pA);for(var FA=this.tryLayoutDocument(F,z,P,eA,sA,q,BA,pA,lA);gA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(MA){MA.resetXY()}),FA=this.tryLayoutDocument(F,z,P,eA,sA,q,BA,pA,lA);return FA.pages},R.prototype.tryLayoutDocument=function(F,z,P,eA,sA,q,BA,pA,lA,cA){this.linearNodeList=[],F=this.docPreprocessor.preprocessDocument(F),F=this.docMeasure.measureDocument(F),this.writer=new h(new l(this.pageSize,this.pageMargins),this.tracker);var gA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){gA.addBackground(sA)}),this.addBackground(sA),this.processNode(F),this.addHeadersAndFooters(q,BA),null!=lA&&this.addWatermark(lA,z,eA),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},R.prototype.addBackground=function(F){var z=Y(F)?F:function(){return F},P=this.writer.context(),eA=P.getCurrentPage().pageSize,sA=z(P.page+1,eA);sA&&(this.writer.beginUnbreakableBlock(eA.width,eA.height),sA=this.docPreprocessor.preprocessDocument(sA),this.processNode(this.docMeasure.measureDocument(sA)),this.writer.commitUnbreakableBlock(0,0),P.backgroundLength[P.page]+=sA.positions.length)},R.prototype.addStaticRepeatable=function(F,z){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},z)},R.prototype.addDynamicRepeatable=function(F,z){for(var eA=0,sA=this.writer.context().pages.length;eA1;)_.push({fontSize:SA}),(MA=FA.sizeOfRotatedText(gA.text,gA.angle,_)).width>cA.width?SA=(uA+(dA=SA))/2:MA.widthcA.height?(uA+(dA=SA))/2:((uA=SA)+dA)/2),_.pop();return SA}(this.pageSize,F,z));var eA={text:F.text,font:z.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};eA._size=function pA(cA,gA){var xA=new y(gA),FA=new d(null,{font:cA.font,bold:cA.bold,italics:cA.italics});return FA.push({fontSize:cA.fontSize}),{size:xA.sizeOfString(cA.text,FA),rotatedSize:xA.sizeOfRotatedText(cA.text,cA.angle,FA)}}(F,z);for(var sA=this.writer.context().pages,q=0,BA=sA.length;q0;lA--)pA.push(BA);return pA}(F._gap);eA&&(P-=(eA.length-1)*F._gap),a.buildColumnWidths(z,P);var sA=this.processRow(z,z,eA);D(F.positions,sA.positions)},R.prototype.processRow=function(F,z,P,eA,sA,q){var BA=this,pA=[],lA=[];return this.tracker.auto("pageChanged",function cA(FA){for(var _,MA=0,uA=pA.length;MA1)for(var SA=1;SAFA?P[FA]:0}function xA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var MA=sA+FA.rowSpan-1;if(MA>=eA.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return eA[MA][_]}return null}},R.prototype.processList=function(F,z){var q,P=this,eA=F?z.ol:z.ul,sA=z._gapSize;this.writer.context().addMargin(sA.width),this.tracker.auto("lineAdded",function BA(pA){if(q){var lA=q;if(q=null,lA.canvas){var cA=lA.canvas[0];w(cA,-lA._minWidth,0),P.writer.addVector(cA)}else if(lA._inlines){var gA=new E(P.pageSize.width);gA.addInline(lA._inlines[0]),gA.x=-lA._minWidth,gA.y=pA.getAscenderHeight()-gA.getAscenderHeight(),P.writer.addLine(gA,!0)}}},function(){eA.forEach(function(pA){q=pA.listMarker,P.processNode(pA),D(z.positions,pA.positions)})}),this.writer.context().addMargin(-sA.width)},R.prototype.processTable=function(F){var z=new B(F);z.beginTable(this.writer);for(var P=F.table.heights,eA=0,sA=F.table.body.length;eA0&&(P.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||sA);){var q=!1,BA=F._inlines.shift();if(sA=!1,!BA.noWrap&&BA.text.length>1&&BA.width>P.getAvailableWidth()){var pA=BA.width/BA.text.length,lA=Math.floor(P.getAvailableWidth()/pA);if(lA<1&&(lA=1),lA0){var u=B.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=B.getCurrentPage().pageSize.height-B.pageMargins.top-B.pageMargins.bottom;else{u.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var C=0,e=this.repeatables.length;CXA.item.y2?XA.item.y1:XA.item.y2:0}(XA)}var SA=S(MA||40),bA=SA.top;return _.forEach(function(XA){XA.items.forEach(function(X){var O=dA(X);O>bA&&(bA=O)})}),bA+=SA.bottom}function R(_,MA){_&&"auto"===_.height&&(_.height=1/0);var dA=function z(_){if(C(_)){var MA=l[_.toUpperCase()];if(!MA)throw"Page size "+_+" not recognized";return{width:MA[0],height:MA[1]}}return _}(_||"A4");return function uA(SA){return!!C(SA)&&("portrait"===(SA=SA.toLowerCase())&&dA.width>dA.height||"landscape"===SA&&dA.widthdA.height?"landscape":"portrait",dA}function S(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(g(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function P(_,MA){_.pageSize.orientation!==(MA.options.size[0]>MA.options.size[1]?"landscape":"portrait")&&(MA.options.size=[MA.options.size[1],MA.options.size[0]])}function sA(_,MA){var uA=_;return MA.sup&&(uA-=.75*MA.fontSize),MA.sub&&(uA+=.35*MA.fontSize),uA}function q(_,MA,uA,dA,SA){function bA(st,TA){var at,It,mt=new E(null);if(w(st.positions))throw"Page reference id not found";var Et=st.positions[0].pageNumber.toString();switch(TA.text=Et,at=mt.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),It=TA.width-at,TA.width=at,TA.alignment){case"right":TA.x+=It;break;case"center":TA.x+=It/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),MA=MA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();B.drawBackground(_,MA,uA,dA,SA);for(var $=0,W=_.inlines.length;$1){var XA=_.points[0],X=_.points[_.points.length-1];(_.closePath||XA.x===X.x&&XA.y===X.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&dA){var O=1/(_.linearGradient.length-1);for(SA=0;SA<_.linearGradient.length;SA++)dA.stop(SA*O,_.linearGradient[SA]);_.color=dA}Q(_.color)&&(_.color=p(_.color,MA));var $=e(_.fillOpacity)?_.fillOpacity:1,W=e(_.strokeOpacity)?_.strokeOpacity:1;_.color&&_.lineColor?(uA.fillColor(_.color,$),uA.strokeColor(_.lineColor,W),uA.fillAndStroke()):_.color?(uA.fillColor(_.color,$),uA.fill()):(uA.strokeColor(_.lineColor||"black",W),uA.stroke())}function lA(_,MA,uA,dA){var SA=e(_.opacity)?_.opacity:1;if(dA.opacity(SA),_.cover){var bA=_.cover.align||"center",XA=_.cover.valign||"center",X=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;dA.save(),dA.rect(_.x,_.y,X,O).clip(),dA.image(_.image,_.x,_.y,{cover:[X,O],align:bA,valign:XA}),dA.restore()}else dA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&dA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(dA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),dA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&dA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function cA(_,MA,uA,dA,SA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(XA,X,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),W=function(_,MA,uA){for(var dA=0;dA-1&&(bA=bA.slice(0,XA)),uA.height===1/0){var X=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,X]}var O=function FA(_,MA){var uA={};return Object.keys(_).forEach(function(dA){var SA=_[dA];uA[dA]=MA.pattern(SA.boundingBox,SA.xStep,SA.yStep,SA.pattern,SA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function eA(_,MA,uA,dA,SA){uA._pdfMakePages=_,uA.addPage();var bA=0;SA&&_.forEach(function(vA){bA+=vA.items.length});var XA=0;SA=SA||function(){};for(var X=0;X<_.length;X++){X>0&&(P(_[X],uA),uA.addPage(uA.options));for(var O=_[X],$=0,W=O.items.length;$=128?285:0);var p=[[]];for(w=0;w<30;++w){for(var Y=p[w],y=[],d=0;d<=w;++d)y.push(g[(d6},eA=function(X,O){var $=-8&function(X){var O=I[X],$=16*X*X+128*X+64;return F(X)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(X),W=I[X];return $-8*W[0][O]*W[1][O]},sA=function(X,O){switch(O){case 1:return X<10?10:X<27?12:14;case 2:return X<10?9:X<27?11:13;case 4:return X<10?8:16;case 8:return X<10?8:X<27?10:12}},q=function(X,O,$){var W=eA(X,$)-4-sA(X,O);switch(O){case 1:return 3*(W/10|0)+(W%10<4?0:W%10<7?1:2);case 2:return 2*(W/11|0)+(W%11<6?0:1);case 4:return W/8|0;case 8:return W/13|0}},lA=function(X,O){for(var $=X.slice(0),W=X.length,hA=O.length,vA=0;vA=0)for(var EA=0;EA=0;--vA)hA>>W+vA&1&&(hA^=$<>nA&1;return X},uA=function(X){for(var vA=function(OA){for(var WA=0,nt=0;nt=5&&(WA+=OA[nt]-5+3);for(nt=5;nt=4*DA||OA[nt+1]>=4*DA)&&(WA+=40)}return WA},nA=X.length,EA=0,GA=0,et=0;et=nA){for(hA.push(vA|TA>>(at-=nA));at>=8;)hA.push(TA>>(at-=8)&255);vA=0,nA=8}at>0&&(vA|=(TA&(1<>3);nA=function(X,O,$){for(var W=[],hA=X.length/O|0,vA=0,nA=O-X.length%O,EA=0;EA>dt&1,hA[mt+DA][Et+dt]=1};for(nA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),nA($-8,0,8,9,[256,127,65,93,93,93,65,127]),nA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),vA=9;vA<$-8;++vA)W[6][vA]=W[vA][6]=1&~vA,hA[6][vA]=hA[vA][6]=1;var EA=O[2],GA=EA.length;for(vA=0;vA>It++&1,hA[vA][$-11+TA]=hA[$-11+TA][vA]=1}return{matrix:W,reserved:hA}}(O),GA=EA.matrix,et=EA.reserved;if(function(X,O,$){for(var W=X.length,hA=0,vA=-1,nA=W-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=vA<0?W-1:0,GA=0;GAnA-2;--et)O[EA][et]||(X[EA][et]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=vA}vA=-vA}}(GA,et,nA),hA<0){_(GA,et,0),MA(GA,0,W,0);var st=0,TA=uA(GA);for(_(GA,et,0),hA=1;hA<8;++hA){_(GA,et,hA),MA(GA,0,W,hA);var at=uA(GA);TA>at&&(TA=at,st=hA),_(GA,et,hA)}hA=st}return _(GA,et,hA),MA(GA,0,W,hA),GA};function SA(X,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,vA={L:1,M:0,Q:3,H:2}[(O.eccLevel||"L").toUpperCase()],nA=O.mode?$[O.mode.toLowerCase()]:-1,EA="mask"in O?O.mask:-1;if(nA<0)nA="string"==typeof X?X.match(h)?1:X.match(B)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(X=function(X,O){switch(X){case 1:return O.match(h)?O:null;case 2:return O.match(a)?O.toUpperCase():null;case 4:if("string"==typeof O){for(var $=[],W=0;W>6,128|63&hA):hA<65536?$.push(224|hA>>12,128|hA>>6&63,128|63&hA):$.push(240|hA>>18,128|hA>>12&63,128|hA>>6&63,128|63&hA)}return $}return O}}(nA,X)))throw"invalid data format";if(vA<0||vA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(X.length<=q(hA,nA,vA));++hA);if(hA>40)throw"too large data for the Qr format"}else if(hA<1||hA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=EA&&(EA<0||EA>8))throw"invalid mask";return dA(X,hA,nA,vA,EA)}T.exports={measure:function XA(X){var O=function bA(X,O){var $=[],W=O.background||"#fff",hA=O.foreground||"#000",vA=SA(X,O),nA=vA.length,EA=Math.floor(O.fit?O.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:W});for(var et=0;et0;)this.styleOverrides.pop()},h.prototype.autopush=function(a){if(c(a))return 0;var B=[];a.style&&(B=i(a.style)?a.style:[a.style]);for(var E=0,u=B.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var B=this.styleOverrides.length-1;B>=0;B--){var E=this.styleOverrides[B];if(c(E)){var u=this.styleDictionary[E];if(u&&!s(u[a])&&!l(u[a]))return u[a]}else if(!s(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},T.exports=h},7601:function(T,I,n){"use strict";var c=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function s(h){var a;try{a=new c.XmlDocument(h)}catch(B){throw new Error("SVGMeasure: "+B)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(h){var a=s(h),B=i(a.attr.width),E=i(a.attr.height);if((null==B||null==E)&&"string"==typeof a.attr.viewBox){var u=a.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+a.attr.viewBox+"'");null==B&&(B=i(u[2])),null==E&&(E=i(u[3]))}return{width:B,height:E}},l.prototype.writeDimensions=function(h,a){var B=s(h);return B.attr.width=""+a.width,B.attr.height=""+a.height,B.toString()},T.exports=l},9342:function(T,I,n){"use strict";var c=n(4498),i=n(6225).isFunction,s=n(6225).isNumber;function l(h){this.tableNode=h}l.prototype.beginTable=function(h){var a,B,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,B=h.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,B),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(g){f+=g._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],g=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,p=E.tableNode.table.body[0].length;Q0&&D(g+d,Q,0,p.border[0]),void 0!==p.border[2]&&D(g+d,Q+y-1,2,p.border[2]);for(var v=0;v0&&D(g,Q+v,1,p.border[1]),void 0!==p.border[3]&&D(g+Y-1,Q+v,3,p.border[3])}}function D(R,S,F,z){var P=f[R][S];P.border=P.border||{},P.border[F]=z}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},l.prototype.onRowBreak=function(h,a){var B=this;return function(){var E=B.rowPaddingTop+(B.headerRows?0:B.topLineWidth);a.context().availableHeight-=B.reservedAtBottom,a.context().moveDown(E)}},l.prototype.beginRow=function(h,a){this.topLineWidth=this.layout.hLineWidth(h,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(h,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(h+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(h,this.tableNode),this.rowCallback=this.onRowBreak(h,a),a.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&a.beginUnbreakableBlock(),this.rowTopY=a.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,a.context().availableHeight-=this.reservedAtBottom,a.context().moveDown(this.rowPaddingTop)},l.prototype.drawHorizontalLine=function(h,a,B){var E=this.layout.hLineWidth(h,this.tableNode);if(E){var C,u=this.layout.hLineStyle(h,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,p,e=E/2,f=null,g=this.tableNode.table.body,Y=0,y=this.rowSpanData.length;Y0&&(S=(w=g[h-1][Y]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hz;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(w&&w.colSpan&&S){for(;w.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else if(Q&&Q.colSpan&&R){for(;Q.colSpan>z;)f.width+=this.rowSpanData[Y+z++].width||0;Y+=z-1}else f.width+=this.rowSpanData[Y].width||0}var P=(B||0)+e;v&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:P,y2:P,lineWidth:E,dash:C,lineColor:D},!1,B),f=null,D=null,w=null,Q=null,p=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(h,a,B,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,g=this.layout.vLineStyle(E,this.tableNode);g&&g.dash&&(w=g.dash);var p,Y,y,Q=this.tableNode.table.body;if(E>0&&(p=Q[C][e])&&p.borderColor&&(p.border?p.border[2]:this.layout.defaultBorder)&&(y=p.borderColor[2]),null==y&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=B&&B.length>0,p=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?B[0].prevPage:e}),Q)for(u=0,E=B.length;u0&&!this.headerRows,S=R?0:this.topLineWidth,F=w[d].y0,z=w[d].y1;for(D&&(z+=this.rowPaddingBottom),a.context().page!=w[d].page&&(a.context().page=w[d].page,this.reservedAtBottom=0),u=0,E=g.length;u0&&!P&&(P=(q=p[h][sA-1]).border?q.border[2]:this.layout.defaultBorder),sA+11)for(var XA=1;XA1)for(XA=1;XA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(h+1,a),this.headerRows&&h===this.headerRows-1&&(this.headerRepeatable=a.currentBlockToRepeatable()),this.dontBreakRows&&a.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(h,a)},function(){a.commitUnbreakableBlock()}),this.headerRepeatable&&(h===this.rowsWithoutPageBreak-1||h===this.tableNode.table.body.length-1)&&(a.commitUnbreakableBlock(),a.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},T.exports=l},3497:function(T,I,n){"use strict";var c=n(6225).isArray,i=n(6225).isPattern,s=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var gA=0,xA=0,FA=E.inlines.length;xAgA?xA:gA;return E.inlines[gA]}(),p=function g(){for(var gA=0,xA=0,FA=E.inlines.length;xA=0&&i.splice(s,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(s){s.apply(this,c)})},I.prototype.auto=function(n,c,i){this.startTracking(n,c),i(),this.stopTracking(n,c)},T.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(T,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;T.exports=function(){for(var l=[],h=0;h{var Nr=function(Ut){"use strict";var Ln,Bt=Object.prototype,Vt=Bt.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},ft=A.iterator||"@@iterator",T=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,z,P){return Object.defineProperty(F,z,{value:P,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{n({},"")}catch(F){n=function(z,P,eA){return z[P]=eA}}function c(F,z,P,eA){var q=Object.create((z&&z.prototype instanceof E?z:E).prototype),BA=new D(eA||[]);return q._invoke=function Y(F,z,P){var eA=s;return function(q,BA){if(eA===h)throw new Error("Generator is already running");if(eA===a){if("throw"===q)throw BA;return S()}for(P.method=q,P.arg=BA;;){var pA=P.delegate;if(pA){var lA=y(pA,P);if(lA){if(lA===B)continue;return lA}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if(eA===s)throw eA=a,P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);eA=h;var cA=i(F,z,P);if("normal"===cA.type){if(eA=P.done?a:l,cA.arg===B)continue;return{value:cA.arg,done:P.done}}"throw"===cA.type&&(eA=a,P.method="throw",P.arg=cA.arg)}}}(F,P,BA),q}function i(F,z,P){try{return{type:"normal",arg:F.call(z,P)}}catch(eA){return{type:"throw",arg:eA}}}Ut.wrap=c;var s="suspendedStart",l="suspendedYield",h="executing",a="completed",B={};function E(){}function u(){}function C(){}var e={};n(e,ft,function(){return this});var f=Object.getPrototypeOf,g=f&&f(f(R([])));g&&g!==Bt&&Vt.call(g,ft)&&(e=g);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(z){n(F,z,function(P){return this._invoke(z,P)})})}function p(F,z){function P(q,BA,pA,lA){var cA=i(F[q],F,BA);if("throw"!==cA.type){var gA=cA.arg,xA=gA.value;return xA&&"object"==typeof xA&&Vt.call(xA,"__await")?z.resolve(xA.__await).then(function(FA){P("next",FA,pA,lA)},function(FA){P("throw",FA,pA,lA)}):z.resolve(xA).then(function(FA){gA.value=FA,pA(gA)},function(FA){return P("throw",FA,pA,lA)})}lA(cA.arg)}var eA;this._invoke=function sA(q,BA){function pA(){return new z(function(lA,cA){P(q,BA,lA,cA)})}return eA=eA?eA.then(pA,pA):pA()}}function y(F,z){var P=F.iterator[z.method];if(P===Ln){if(z.delegate=null,"throw"===z.method){if(F.iterator.return&&(z.method="return",z.arg=Ln,y(F,z),"throw"===z.method))return B;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return B}var eA=i(P,F.iterator,z.arg);if("throw"===eA.type)return z.method="throw",z.arg=eA.arg,z.delegate=null,B;var sA=eA.arg;return sA?sA.done?(z[F.resultName]=sA.value,z.next=F.nextLoc,"return"!==z.method&&(z.method="next",z.arg=Ln),z.delegate=null,B):sA:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,B)}function d(F){var z={tryLoc:F[0]};1 in F&&(z.catchLoc=F[1]),2 in F&&(z.finallyLoc=F[2],z.afterLoc=F[3]),this.tryEntries.push(z)}function v(F){var z=F.completion||{};z.type="normal",delete z.arg,F.completion=z}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(d,this),this.reset(!0)}function R(F){if(F){var z=F[ft];if(z)return z.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var P=-1,eA=function sA(){for(;++P=0;--eA){var sA=this.tryEntries[eA],q=sA.completion;if("root"===sA.tryLoc)return P("end");if(sA.tryLoc<=this.prev){var BA=Vt.call(sA,"catchLoc"),pA=Vt.call(sA,"finallyLoc");if(BA&&pA){if(this.prev=0;--P){var eA=this.tryEntries[P];if(eA.tryLoc<=this.prev&&Vt.call(eA,"finallyLoc")&&this.prev=0;--z){var P=this.tryEntries[z];if(P.finallyLoc===F)return this.complete(P.completion,P.afterLoc),v(P),B}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P.tryLoc===F){var eA=P.completion;if("throw"===eA.type){var sA=eA.arg;v(P)}return sA}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,P){return this.delegate={iterator:R(F),resultName:z,nextLoc:P},"next"===this.method&&(this.arg=Ln),B}},Ut}(ui.exports);try{regeneratorRuntime=Nr}catch(Ut){"object"==typeof globalThis?globalThis.regeneratorRuntime=Nr:Function("r","regeneratorRuntime = r")(Nr)}},7757:(ui,Nr,Ut)=>{ui.exports=Ut(4979)}}]); \ No newline at end of file diff --git a/frontend/924.e98936d5bf0dd5da.js b/frontend/258.525782ba4bbc257e.js similarity index 81% rename from frontend/924.e98936d5bf0dd5da.js rename to frontend/258.525782ba4bbc257e.js index 12f3855e..0945512f 100644 --- a/frontend/924.e98936d5bf0dd5da.js +++ b/frontend/258.525782ba4bbc257e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[924],{7924:(Bc,pt,f)=>{f.r(pt),f.d(pt,{ECLModule:()=>Hc});var u=f(9808),x=f(1402),Dt=f(8878),t=f(5e3),p=f(7093),J=f(5899);function Ut(n,a){1&n&&t._UZ(0,"mat-progress-bar",3)}let mt=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(i=>{switch(!0){case i instanceof x.OD:this.loading=!0;break;case i instanceof x.m2:case i instanceof x.gk:case i instanceof x.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ut,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.loading))},directives:[p.xw,p.yH,p.Wh,u.O5,J.pW,x.lC],styles:[""],data:{animation:[Dt.g]}}),n})();var d=f(7579),_=f(2722),it=f(1365),dt=f(534),L=f(801),l=f(7731),C=f(2501),R=f(5043),w=f(5620),N=f(62),q=f(9444),ht=f(3954),b=f(9224),F=f(7423),at=f(2181),_t=f(5245),E=f(3322);const ft=function(n){return{backgroundColor:n}};function Mt(n,a){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,ft,null==e.information?null:e.information.color))}}function Jt(n,a){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,ft,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function Qt(n,a){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}let Yt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,Mt,1,3,"span",3),t.qZA()(),t.YNc(7,Jt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Qt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==i.information?null:i.information.alias," "),t.xp6(1),t.Q6J("ngIf",!i.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",i.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=i.information&&i.information.lnImplementation||null!=i.information&&i.information.version?(null==i.information?null:i.information.lnImplementation)+" "+(null==i.information?null:i.information.version):""),t.xp6(4),t.Q6J("ngForOf",i.chains))},directives:[p.xw,p.yH,p.Wh,u.O5,u.PC,E.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function Ht(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",e.balances.lightning/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",e.balances.onchain/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,e.balances.total)," Sats")}}function Bt(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let zt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,Ht,21,11,"div",0),t.YNc(1,Bt,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh,J.pW],pipes:[u.JJ],styles:[""]}),n})();var y=f(7322),X=f(7238),$=f(4834),H=f(8129);const Vt=function(){return["../connections/channels/open"]},Gt=function(n){return{filter:n}};function Xt(n,a){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,Vt))("state",t.VKq(24,Gt,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",i.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==e?null:e.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function $t(n,a){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,Xt,20,26,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function Wt(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,$t,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",i)}}function Kt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function jt(n,a){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let te=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,Wt,24,15,"div",0),t.YNc(1,Kt,4,0,"ng-template",null,1,t.W1O),t.YNc(3,jt,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,p.yH,y.bx,q.BN,X.gM,J.pW,$.d,H.$V,u.sg,x.yS,F.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ee(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==e.fees?null:e.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==e.fees?null:e.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==e.fees?null:e.fees.monthly_txs))}}function ne(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ie=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){var e;if(null===(e=this.fees)||void 0===e?void 0:e.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const i=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),o=Math.pow(10,i-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ee,39,18,"div",0),t.YNc(1,ne,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh],pipes:[u.JJ],styles:[""]}),n})();function ae(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function oe(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let se=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ae,42,18,"div",0),t.YNc(1,oe,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh],pipes:[u.JJ],styles:[""]}),n})();function le(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toRemote||0,"1.0-0")," Sats")}}function re(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toLocal||0,"1.0-0")," Sats")}}function ce(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toRemote||0)/i.totalLiquidity*100:0)}}function ue(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toLocal||0)/i.totalLiquidity*100:0)}}const pe=function(){return["../connections/channels/open"]},me=function(n){return{filter:n}};function de(n,a){if(1&n&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,le,5,4,"mat-hint",17),t.YNc(6,re,5,4,"mat-hint",17),t.qZA(),t.YNc(7,ce,1,1,"mat-progress-bar",18),t.YNc(8,ue,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,pe))("state",t.VKq(15,me,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.alias||e.shortChannelId,0,24),"",(e.alias||e.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction),t.xp6(1),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction)}}function he(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,de,9,17,"div",13),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const _e=function(n,a,e){return{"mb-4":n,"mb-2":a,"mb-1":e}};function fe(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,he,2,1,"div",11),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,_e,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.xi3(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",i)}}function ge(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function Ce(n,a){if(1&n&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,ge,2,0,"button",23),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function xe(n,a){if(1&n&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ye=(()=>{class n{constructor(e,i){this.router=e,this.commonService=i,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,fe,12,11,"div",0),t.YNc(1,Ce,3,1,"ng-template",null,1,t.W1O),t.YNc(3,xe,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,p.yH,u.mk,E.oO,y.bx,J.pW,$.d,H.$V,u.sg,x.yS,X.gM,F.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var P=f(3251),Q=f(9300),S=f(6087),A=f(4847),r=f(2075),U=f(8966),k=f(2994),G=f(6642),m=f(3075),M=f(7531),W=f(3390),K=f(6534),D=f(4107),B=f(508);function ve(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Le(n,a){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function Te(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function be(n,a){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,Te,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let Ae=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.decimalPipe=s,this.commonService=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let i=this.expiry?this.expiry:3600;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(i=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,k.Z$)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(N.v),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","name","exp","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.description=c}),t.qZA(),t.YNc(13,ve,2,0,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"mat-form-field",13)(16,"input",14),t.NdJ("ngModelChange",function(c){return i.invoiceValue=c})("keyup",function(){return i.onInvoiceValueChange()}),t.qZA(),t.TgZ(17,"span",15),t._uU(18," Sats "),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.qZA()(),t.TgZ(21,"mat-form-field",16)(22,"input",17),t.NdJ("ngModelChange",function(c){return i.expiry=c}),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.ALo(25,"titlecase"),t.qZA()(),t.TgZ(26,"mat-form-field",18)(27,"mat-select",19),t.NdJ("selectionChange",function(c){return i.onTimeUnitChange(c)}),t.YNc(28,Le,3,4,"mat-option",20),t.qZA()()(),t.YNc(29,be,3,2,"div",21),t.TgZ(30,"div",22)(31,"button",23),t.NdJ("click",function(){return i.resetData()}),t._uU(32,"Clear Field"),t.qZA(),t.TgZ(33,"button",24),t.NdJ("click",function(){t.CHM(o);const c=t.MAs(10);return i.onAddInvoice(c)}),t._uU(34,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.description),t.xp6(1),t.Q6J("ngIf",!i.description),t.xp6(3),t.Q6J("ngModel",i.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(i.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",i.expiry)("step",i.selTimeUnit===i.timeUnitEnum.SECS?300:i.selTimeUnit===i.timeUnitEnum.MINS?10:i.selTimeUnit===i.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij(" ",t.lcZ(25,14,i.selTimeUnit)," "),t.xp6(3),t.Q6J("value",i.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",i.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==i.invoiceError))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,y.R9,y.bx,D.gD,u.sg,B.ey,q.BN],pipes:[u.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Se=f(7766),Z=f(7861);function Ze(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function we(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().description=o}),t.qZA(),t.YNc(4,Ze,2,0,"mat-error",8),t.qZA(),t.TgZ(5,"mat-form-field",9)(6,"input",10,11),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().invoiceValue=o})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(8,"span",12),t._uU(9," Sats "),t.qZA(),t.TgZ(10,"mat-hint"),t._uU(11),t.qZA()(),t.TgZ(12,"div",13)(13,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(14,"Clear Field"),t.qZA(),t.TgZ(15,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.MAs(1);return t.oxw().onAddInvoice(o)}),t._uU(16,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.description),t.xp6(1),t.Q6J("ngIf",!e.description),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(5),t.Oqu(e.invoiceValueHint)}}function Ee(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function Ie(n,a){1&n&&t._UZ(0,"mat-progress-bar",47)}function Oe(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Date Created "),t.qZA())}const ot=function(n){return{"mr-0":n}};function Fe(n,a){if(1&n&&t._UZ(0,"span",53),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function qe(n,a){if(1&n&&t._UZ(0,"span",54),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function Re(n,a){if(1&n&&t._UZ(0,"span",55),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function Ne(n,a){if(1&n&&(t.TgZ(0,"td",49),t.YNc(1,Fe,1,3,"span",50),t.YNc(2,qe,1,3,"span",51),t.YNc(3,Re,1,3,"span",52),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","received"===e.status),t.xp6(1),t.Q6J("ngIf","unpaid"===e.status),t.xp6(1),t.Q6J("ngIf",!e.status||"expired"===e.status||"unknown"===e.status),t.xp6(1),t.hij(" ",t.xi3(5,4,1e3*e.timestamp,"dd/MMM/y HH:mm")," ")}}function ke(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Date Settled "),t.qZA())}function Pe(n,a){if(1&n&&(t.TgZ(0,"td",49),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.receivedAt,"dd/MMM/y HH:mm")||"-")}}function De(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Description "),t.qZA())}const Ue=function(n){return{"max-width":n}};function Me(n,a){if(1&n&&(t.TgZ(0,"td",49)(1,"div",56)(2,"span",57),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Ue,i.screenSize===i.screenSizeEnum.XS?"10rem":"32rem")),t.xp6(2),t.Oqu(e.description)}}function Je(n,a){1&n&&(t.TgZ(0,"th",58),t._uU(1," Amount (Sats) "),t.qZA())}function Qe(n,a){if(1&n&&(t.TgZ(0,"td",59)(1,"span",60),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.amount?t.xi3(3,1,e.amount,"1.0-0"):"-","")}}function Ye(n,a){1&n&&(t.TgZ(0,"th",58),t._uU(1," Amount Settled (Sats) "),t.qZA())}function He(n,a){if(1&n&&(t.TgZ(0,"td",59)(1,"span",60),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.amountSettled?t.xi3(3,1,e.amountSettled,"1.0-0"):"-","")}}function Be(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",61)(1,"div",62)(2,"mat-select",63),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}const ze=function(n){return{"px-3":n}};function Ve(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",65)(1,"div",66)(2,"mat-select",67),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",64),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(s)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",64),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(s)}),t._uU(7,"Refresh"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,ze,e.screenSize!==e.screenSizeEnum.XS))}}function Ge(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function Xe(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function $e(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function We(n,a){if(1&n&&(t.TgZ(0,"td",68),t.YNc(1,Ge,2,0,"p",8),t.YNc(2,Xe,2,0,"p",8),t.YNc(3,$e,2,1,"p",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Ke=function(n){return{"display-none":n}};function je(n,a){if(1&n&&t._UZ(0,"tr",69),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ke,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function tn(n,a){1&n&&t._UZ(0,"tr",70)}function en(n,a){1&n&&t._UZ(0,"tr",71)}const nn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},an=function(){return["no_invoice"]};function on(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"mat-form-field",23)(7,"input",24),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o}),t.qZA()()(),t.TgZ(8,"div",25),t.YNc(9,Ie,1,0,"mat-progress-bar",26),t.TgZ(10,"table",27,28),t.ynx(12,29),t.YNc(13,Oe,2,0,"th",30),t.YNc(14,Ne,6,7,"td",31),t.BQk(),t.ynx(15,32),t.YNc(16,ke,2,0,"th",30),t.YNc(17,Pe,3,4,"td",31),t.BQk(),t.ynx(18,33),t.YNc(19,De,2,0,"th",30),t.YNc(20,Me,4,4,"td",31),t.BQk(),t.ynx(21,34),t.YNc(22,Je,2,0,"th",35),t.YNc(23,Qe,4,4,"td",36),t.BQk(),t.ynx(24,37),t.YNc(25,Ye,2,0,"th",35),t.YNc(26,He,4,4,"td",36),t.BQk(),t.ynx(27,38),t.YNc(28,Be,6,0,"th",39),t.YNc(29,Ve,8,3,"td",40),t.BQk(),t.ynx(30,41),t.YNc(31,We,4,3,"td",42),t.BQk(),t.YNc(32,je,1,3,"tr",43),t.YNc(33,tn,1,0,"tr",44),t.YNc(34,en,1,0,"tr",45),t.qZA()(),t._UZ(35,"mat-paginator",46),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(12,nn,""!==e.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,an)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let gt=(()=>{class n{constructor(e,i,o,s,c,h){this.logger=e,this.store=i,this.decimalPipe=o,this.commonService=s,this.datePipe=c,this.actions=h,this.calledFrom="transactions",this.faHistory=L.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","amountSettled","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","receivedAt","description","amount","amountSettled","actions"])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Ef).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,Z.qR)({payload:{data:{pageSize:this.pageSize,component:Ae}}}))}onAddInvoice(e){if(!this.description)return!0;const i=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,k.Z$)({payload:o})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,Z.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:Se.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,k.n7)({payload:e.paymentHash}))}updateInvoicesData(e){var i;this.invoiceJSONArr=null===(i=this.invoiceJSONArr)||void 0===i?void 0:i.map(o=>o.paymentHash===e.paymentHash?e:o)}loadInvoicesTable(e){this.invoices=new r.by(e?[...e]:[]),this.invoices.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.invoices.paginator=this.paginator,this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(N.v),t.Y36(u.uU),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["invcVal","ngModel"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","receivedAt"],["matColumnDef","description"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pr-3",4,"matCellDef"],["matColumnDef","amountSettled"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-3"],["mat-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,we,17,6,"form",1),t.YNc(2,Ee,3,0,"div",2),t.YNc(3,on,36,15,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[p.xw,p.yH,p.Wh,u.O5,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,m.Q7,m.JJ,m.On,y.TO,m.wV,m.qQ,K.q,y.R9,y.bx,F.lW,q.BN,H.$V,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,X.gM,u.PC,E.Zl,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=f(5698),st=f(3289),Ct=f(8104);const sn=["paymentReq"];function ln(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function rn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function cn(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function un(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function pn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",17,18),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().paymentAmount=o})("change",function(o){return t.CHM(e),t.oxw().onAmountChange(o)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,un,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function mn(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function dn(n,a){if(1&n&&(t.TgZ(0,"div",19),t._UZ(1,"fa-icon",20),t.YNc(2,mn,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let hn=(()=>{class n{constructor(e,i,o,s,c,h,g,T){this.dialogRef=e,this.store=i,this.eclEffects=o,this.logger=s,this.commonService=c,this.decimalPipe=h,this.actions=g,this.dataService=T,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+i.symbol+this.decimalPipe.transform(i.OTHER?i.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,k.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:i=>{this.logger.error(i),this.paymentDecodedHint="ERROR: "+(i.message?i.message:"string"==typeof i?i:JSON.stringify(i)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(w.yh),t.Y36(st.o),t.Y36(R.mQ),t.Y36(N.v),t.Y36(u.JJ),t.Y36(G.eX),t.Y36(Ct.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,i){if(1&e&&t.Gf(sn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.paymentReq=o.first)}},decls:24,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(s){return i.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,ln,2,1,"mat-hint",11),t.YNc(15,rn,2,0,"mat-error",11),t.YNc(16,cn,2,1,"mat-error",11),t.qZA(),t.YNc(17,pn,6,2,"mat-form-field",12),t.YNc(18,dn,3,2,"div",13),t.TgZ(19,"div",14)(20,"button",15),t.NdJ("click",function(){return i.resetData()}),t._uU(21,"Clear Fields"),t.qZA(),t.TgZ(22,"button",16),t.NdJ("click",function(){return i.onSendPayment()}),t._uU(23,"Send Payment"),t.qZA()()()()()()),2&e){const o=t.MAs(13);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.paymentRequest),t.xp6(2),t.Q6J("ngIf",i.paymentRequest&&""!==i.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!i.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),t.xp6(1),t.Q6J("ngIf",i.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==i.paymentError)}},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.bx,y.TO,q.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var z=f(1125);const _n=["scrollContainer"];function fn(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(e.description)}}function gn(n,a){1&n&&t._UZ(0,"mat-divider",14)}function Cn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){return t.CHM(e),t.oxw().onExpansionOpen(!0)})("closed",function(){return t.CHM(e),t.oxw().onExpansionOpen(!1)}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.Q6J("expanded",o.expansionOpen),t.xp6(4),t.hij("Part ",i+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,e.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,e.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(e.id),t.xp6(7),t.Oqu(e.toChannelAlias)}}let xn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,i){if(1&e&&t.Gf(_n,5),2&e){let o;t.iGM(o=t.CRH())&&(i.scrollContainer=o.first)}},decls:66,vars:15,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,fn,6,1,"div",15),t.YNc(54,gn,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,Cn,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return i.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,i.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,i.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(i.payment.id),t.xp6(7),t.Oqu(i.payment.paymentHash),t.xp6(7),t.Oqu(i.payment.paymentPreimage),t.xp6(7),t.Oqu(i.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",i.description),t.xp6(1),t.Q6J("ngIf",i.description),t.xp6(4),t.Q6J("ngForOf",i.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},directives:[p.xw,p.Wh,p.yH,b.dk,F.lW,b.dn,H.$V,$.d,u.O5,z.pp,u.sg,z.ib,z.yz,z.yK,_t.Hw,U.ZT],pipes:[u.JJ,u.uU],styles:[""]}),n})();var tt=f(3093);const yn=["sendPaymentForm"];function vn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Ln(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Tn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,vn,2,1,"mat-hint",9),t.YNc(6,Ln,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function bn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function An(n,a){1&n&&t._UZ(0,"mat-progress-bar",49)}function Sn(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Date/Time"),t.qZA())}function Zn(n,a){if(1&n&&(t.TgZ(0,"td",51),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function wn(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"ID"),t.qZA())}const j=function(n){return{"max-width":n}};function En(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",52)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id)}}function In(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Destination"),t.qZA())}function On(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",52)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.recipientNodeAlias)}}function Fn(n,a){1&n&&(t.TgZ(0,"th",54),t._uU(1,"Amount (Sats)"),t.qZA())}function qn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",55),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.recipientAmount))}}function Rn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",56)(1,"div",57)(2,"mat-select",58),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",59),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Nn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",60)(1,"button",61),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function kn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function Pn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function Dn(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Un(n,a){if(1&n&&(t.TgZ(0,"td",62),t.YNc(1,kn,2,0,"p",9),t.YNc(2,Pn,2,0,"p",9),t.YNc(3,Dn,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Mn(n,a){if(1&n&&(t.TgZ(0,"span",65),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function Jn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Mn,3,4,"span",64),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Qn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",63),t._uU(2),t.qZA(),t.YNc(3,Jn,2,1,"ng-container",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" Total Attempts: ",null==e||null==e.parts?null:e.parts.length," "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Yn(n,a){if(1&n&&(t.TgZ(0,"span",63)(1,"span",66)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id)}}function Hn(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Yn,4,4,"span",67),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Bn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",66)(2,"span",53),t._uU(3),t.qZA()(),t.YNc(4,Hn,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function zn(n,a){if(1&n&&(t.TgZ(0,"span",63)(1,"span",66)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.toChannelAlias)}}function Vn(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,zn,4,4,"span",67),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Gn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",66)(2,"span",53),t._uU(3),t.qZA()(),t.YNc(4,Vn,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Xn(n,a){if(1&n&&(t.TgZ(0,"span",68),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.amount,"1.0-0")," ")}}function $n(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Xn,3,4,"span",69),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Wn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",68),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,$n,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",e.is_expanded)}}function Kn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",71)(1,"button",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit,c=t.oxw(2).$implicit;return t.oxw(2).onPartClick(s,c)}),t._uU(2),t.qZA()()}if(2&n){const e=a.index;t.xp6(2),t.hij("View ",e+1,"")}}function jn(n,a){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Kn,3,1,"div",73),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function ti(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",70)(1,"span",71)(2,"button",72),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return s.is_expanded=!s.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,jn,2,1,"div",9),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(3),t.Oqu(e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function ei(n,a){1&n&&t._UZ(0,"tr",75)}const ni=function(n){return{"display-none":n}};function ii(n,a){if(1&n&&t._UZ(0,"tr",76),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,ni,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function ai(n,a){1&n&&t._UZ(0,"tr",77)}function oi(n,a){1&n&&t._UZ(0,"tr",75)}const si=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},li=function(){return["no_payment"]};function ri(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"mat-form-field",19)(7,"input",20),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o}),t.qZA()()(),t.TgZ(8,"div",21)(9,"div",22),t.YNc(10,An,1,0,"mat-progress-bar",23),t.TgZ(11,"table",24,25),t.ynx(13,26),t.YNc(14,Sn,2,0,"th",27),t.YNc(15,Zn,3,4,"td",28),t.BQk(),t.ynx(16,29),t.YNc(17,wn,2,0,"th",27),t.YNc(18,En,4,4,"td",28),t.BQk(),t.ynx(19,30),t.YNc(20,In,2,0,"th",27),t.YNc(21,On,4,4,"td",28),t.BQk(),t.ynx(22,31),t.YNc(23,Fn,2,0,"th",32),t.YNc(24,qn,4,3,"td",28),t.BQk(),t.ynx(25,33),t.YNc(26,Rn,6,0,"th",34),t.YNc(27,Nn,3,0,"td",35),t.BQk(),t.ynx(28,36),t.YNc(29,Un,4,3,"td",37),t.BQk(),t.ynx(30,38),t.YNc(31,Qn,4,2,"td",28),t.BQk(),t.ynx(32,39),t.YNc(33,Bn,5,5,"td",28),t.BQk(),t.ynx(34,40),t.YNc(35,Gn,5,5,"td",28),t.BQk(),t.ynx(36,41),t.YNc(37,Wn,5,5,"td",28),t.BQk(),t.ynx(38,42),t.YNc(39,ti,5,2,"td",43),t.BQk(),t.YNc(40,ei,1,0,"tr",44),t.YNc(41,ii,1,3,"tr",45),t.YNc(42,ai,1,0,"tr",46),t.YNc(43,oi,1,0,"tr",47),t.qZA()()(),t._UZ(44,"mat-paginator",48),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(14,si,""!==e.errorMessage)),t.xp6(29),t.Q6J("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(16,li)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let xt=(()=>{class n{constructor(e,i,o,s,c,h,g){this.logger=e,this.commonService=i,this.store=o,this.rtlEffects=s,this.decimalPipe=c,this.dataService=h,this.datePipe=g,this.calledFrom="transactions",this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","actions"],this.partColumns=["groupTotal","groupAction"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","recipientAmount","actions"],this.partColumns=["groupTotal","groupAmount","groupAction"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","id","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupAmount","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["firstPartTimestamp","id","recipientNodeAlias","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupChannelAlias","groupAmount","groupAction"])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}loadPaymentsTable(e){this.payments=new r.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(i,o)=>{var s,c,h,g;switch(o){case"firstPartTimestamp":return this.commonService.sortByKey(i.parts,"timestamp","number",null===(s=this.sort)||void 0===s?void 0:s.direction),i.firstPartTimestamp;case"id":return this.commonService.sortByKey(i.parts,"id","string",null===(c=this.sort)||void 0===c?void 0:c.direction),i.id;case"recipientNodeAlias":return this.commonService.sortByKey(i.parts,"toChannelAlias","string",null===(h=this.sort)||void 0===h?void 0:h.direction),i.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(i.parts,"amount","number",null===(g=this.sort)||void 0===g?void 0:g.direction),i.recipientAmount;default:return i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null}},this.payments.filterPredicate=(i,o)=>{var s;return((i.firstPartTimestamp?null===(s=this.datePipe.transform(new Date(i.firstPartTimestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.payments.paginator=this.paginator,this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(i=>{i&&(this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,Z.qR)({payload:{data:{component:hn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,i){return i.parts&&i.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,V.q)(1)).subscribe({next:i=>{setTimeout(()=>{this.showPaymentView(e,i.length&&i.length>0?i[0]:[])},0)},error:i=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{sentPaymentInfo:i,payment:e,component:xn}}}))}onPartClick(e,i){i.paymentHash&&""!==i.paymentHash.trim()?this.dataService.decodePayments(i.paymentHash).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(e,i,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(e,i,[])}}):this.showPartView(e,i,[])}showPartView(e,i,o){const s=[[{key:"paymentHash",value:i.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:i.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&s.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),i=null==e?void 0:e.reduce((o,s)=>(s.paymentHash&&""!==s.paymentHash.trim()&&(o=""===o?s.paymentHash:o+","+s.paymentHash),o),"");this.dataService.decodePayments(i).pipe((0,_.R)(this.unSubs[4])).subscribe(o=>{o.forEach((c,h)=>{c.length>0&&c[0].paymentRequest&&c[0].paymentRequest.description&&""!==c[0].paymentRequest.description&&(e[h].description=c[0].paymentRequest.description)});const s=null==e?void 0:e.reduce((c,h)=>c.concat(h),[]);this.commonService.downloadFile(s,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(tt.V),t.Y36(u.JJ),t.Y36(Ct.D),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,i){if(1&e&&(t.Gf(yn,5),t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeAlias"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupId"],["matColumnDef","groupChannelAlias"],["matColumnDef","groupAmount"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"part-row-span","pl-3"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Tn,12,3,"form",1),t.YNc(2,bn,3,0,"div",2),t.YNc(3,ri,45,17,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[p.xw,p.yH,p.Wh,u.O5,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,m.Q7,H.$V,m.JJ,m.On,y.bx,y.TO,F.lW,q.BN,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,D.gD,D.$L,B.ey,r.mD,r.yh,u.sg,r.nj,r.Gk,r.Ke,r.Q2,r.as,r.XQ,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%], .mat-column-groupChannelAlias[_ngcontent-%COMP%]{padding:0 1rem;flex:0 0 25%;width:25%}.mat-column-id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupChannelAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:15rem}"]}),n})();function ci(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function ui(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw().$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function pi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function mi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function di(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function hi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function _i(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function fi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function gi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function Ci(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const yt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function xi(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,ci,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,ui,2,1,"button",15),t.YNc(13,pi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,mi,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,di,1,2,"rtl-ecl-node-info",20),t.YNc(18,hi,1,2,"rtl-ecl-balances-info",21),t.YNc(19,_i,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,fi,1,2,"rtl-ecl-fee-info",23),t.YNc(21,gi,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,Ci,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","capacity"===e.id?90:70),t.Q6J("ngClass",t.VKq(16,yt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function yi(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,xi,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function vi(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function Li(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Ti(n,a){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,vi,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,Li,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function bi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function Ai(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function Si(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Zi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function wi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function Ei(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Ii(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,53),t.YNc(5,Ei,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",i.goToOptions)}}function Oi(n,a){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA(),t.TgZ(6,"mat-tab",51),t.YNc(7,Ii,6,2,"ng-template",52),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function Fi(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const qi=function(n){return{"p-0":n}};function Ri(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,Ti,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,bi,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,Ai,1,1,"rtl-ecl-node-info",39),t.YNc(7,Si,1,2,"rtl-ecl-balances-info",21),t.YNc(8,Zi,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,wi,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,Oi,8,3,"span",41),t.YNc(11,Fi,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,qi,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,yt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function Ni(n,a){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,Ri,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let ki=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.router=s,this.faSmile=dt.ctA,this.faFrown=dt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(C.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[3]),(0,it.M)(this.store.select(C.kY))).subscribe(([e,i])=>{var o,s;this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=i.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=i.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const c=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,h=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:c,remoteBalance:h,balancedness:+(1-Math.abs((c-h)/(c+h))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.channels)||void 0===o?void 0:o.filter(T=>(T.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(s=this.channels)||void 0===s?void 0:s.filter(T=>(T.toLocal||0)>0),"toLocal"))),this.channels.forEach(T=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(T.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(T.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,i)=>{const o=+(e.toLocal||0)+ +(e.toRemote||0),s=+(i.toLocal||0)+ +(i.toRemote||0);return o>s?-1:o{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,i){if(1&e&&(t.YNc(0,yi,7,4,"div",0),t.YNc(1,Ni,6,4,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",(null==i.selNode?null:i.selNode.userPersona)===i.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,q.BN,ht.Il,u.sg,ht.DX,p.yH,b.a8,b.dk,b.n5,F.lW,at.p6,_t.Hw,at.VK,at.OP,b.dn,u.mk,E.oO,J.pW,u.RF,u.n9,Yt,zt,te,ie,se,u.ED,ye,P.SP,P.uX,gt,xt,P.uD],styles:[""]}),n})();var Pi=f(8377);const Di=["form"];function Ui(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Mi(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.amountError)}}function Ji(n,a){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Qi(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Yi(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.sendFundError)}}function Hi(n,a){if(1&n&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Yi,2,1,"span",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}let vt=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.logger=i,this.store=o,this.commonService=s,this.decimalPipe=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(Pi.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,Z.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,k.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,k.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const i=this,o=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let s=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,o,s,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:c=>{this.selAmountUnit=e.value,i.transaction.amount=+i.decimalPipe.transform(c[s],i.currencyUnitFormats[s]).replace(/,/g,"")},error:c=>{this.amountError="Conversion Error: "+c,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v),t.Y36(u.JJ),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,i){if(1&e&&t.Gf(Di,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:36,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Target Confirmation Blocks","type","number","name","blocks","tabindex","8","required","true",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onSendFunds()})("reset",function(){return i.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10,11),t.NdJ("ngModelChange",function(s){return i.transaction.address=s}),t.qZA(),t.YNc(14,Ui,2,0,"mat-error",12),t.qZA(),t.TgZ(15,"mat-form-field",13)(16,"input",14,15),t.NdJ("ngModelChange",function(s){return i.transaction.amount=s}),t.qZA(),t.TgZ(18,"span",16),t._uU(19),t.qZA(),t.YNc(20,Mi,2,1,"mat-error",12),t.qZA(),t.TgZ(21,"mat-form-field",17)(22,"mat-select",18),t.NdJ("selectionChange",function(s){return i.onAmountUnitChange(s)}),t.YNc(23,Ji,2,2,"mat-option",19),t.qZA()(),t.TgZ(24,"div",20)(25,"mat-form-field",21)(26,"input",22,23),t.NdJ("ngModelChange",function(s){return i.transaction.blocks=s}),t.qZA(),t.YNc(28,Qi,2,0,"mat-error",12),t.qZA()(),t._UZ(29,"div",24),t.YNc(30,Hi,3,2,"div",25),t.TgZ(31,"div",26)(32,"button",27),t._uU(33,"Clear Fields"),t.qZA(),t.TgZ(34,"button",28),t._uU(35,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.transaction.address),t.xp6(2),t.Q6J("ngIf",!i.transaction.address),t.xp6(2),t.Q6J("ngModel",i.transaction.amount)("step",100)("min",0),t.xp6(3),t.hij(" ",i.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!i.transaction.amount),t.xp6(2),t.Q6J("value",i.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",i.amountUnits),t.xp6(3),t.Q6J("ngModel",i.transaction.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!i.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==i.sendFundError))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,y.R9,D.gD,u.sg,B.ey,q.BN],styles:[""]}),n})();var lt=f(1203);function Bi(n,a){1&n&&t._UZ(0,"mat-progress-bar",31)}function zi(n,a){1&n&&(t.TgZ(0,"th",32),t._uU(1," Date/Time "),t.qZA())}function Vi(n,a){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.timestamp,"dd/MMM/y HH:mm"))}}function Gi(n,a){1&n&&(t.TgZ(0,"th",34),t._uU(1," Amount (Sats) "),t.qZA())}function Xi(n,a){if(1&n&&(t.TgZ(0,"span",37),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.amount))}}function $i(n,a){if(1&n&&(t.TgZ(0,"span",38),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*e.amount),")")}}function Wi(n,a){if(1&n&&(t.TgZ(0,"td",33),t.YNc(1,Xi,3,3,"span",35),t.YNc(2,$i,3,3,"span",36),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.amount>0||0===e.amount),t.xp6(1),t.Q6J("ngIf",e.amount<0)}}function Ki(n,a){1&n&&(t.TgZ(0,"th",34),t._uU(1," Fees (Sats) "),t.qZA())}function ji(n,a){if(1&n&&(t.TgZ(0,"td",33)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.fees))}}function ta(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Confirmations "),t.qZA())}function ea(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.confirmations)," ")}}function na(n,a){1&n&&(t.TgZ(0,"th",32),t._uU(1," Address "),t.qZA())}function ia(n,a){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e.address)}}function aa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",41)(1,"div",42)(2,"mat-select",43),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",44),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function oa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",45)(1,"button",46),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onTransactionClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function sa(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function la(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function ra(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function ca(n,a){if(1&n&&(t.TgZ(0,"td",47),t.YNc(1,sa,2,0,"p",48),t.YNc(2,la,2,0,"p",48),t.YNc(3,ra,2,1,"p",48),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const ua=function(n){return{"display-none":n}};function pa(n,a){if(1&n&&t._UZ(0,"tr",49),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,ua,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function ma(n,a){1&n&&t._UZ(0,"tr",50)}function da(n,a){1&n&&t._UZ(0,"tr",51)}const ha=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},_a=function(){return["no_transaction"]};let fa=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.faHistory=L.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","confirmations","fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"])}ngOnInit(){this.store.dispatch((0,k.mC)()),this.store.select(C.dx).pipe((0,_.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){this.listTransactions=new r.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.listTransactions.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}])],decls:37,vars:15,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,Bi,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,zi,2,0,"th",13),t.YNc(15,Vi,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Gi,2,0,"th",16),t.YNc(18,Wi,3,2,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,Ki,2,0,"th",16),t.YNc(21,ji,4,3,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,ta,2,0,"th",19),t.YNc(24,ea,4,3,"td",20),t.BQk(),t.ynx(25,21),t.YNc(26,na,2,0,"th",13),t.YNc(27,ia,2,1,"td",14),t.BQk(),t.ynx(28,22),t.YNc(29,aa,6,0,"th",23),t.YNc(30,oa,3,0,"td",24),t.BQk(),t.ynx(31,25),t.YNc(32,ca,4,3,"td",26),t.BQk(),t.YNc(33,pa,1,3,"tr",27),t.YNc(34,ma,1,0,"tr",28),t.YNc(35,da,1,0,"tr",29),t.qZA(),t._UZ(36,"mat-paginator",30),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",i.faHistory),t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(3),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.listTransactions)("ngClass",t.VKq(12,ha,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,_a)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,q.BN,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function ga(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Ca=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.pg).pipe((0,_.R)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.onchainBalance.total||0},{title:"Confirmed",dataValue:i.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:i.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,Z.qR)({payload:{data:{component:vt}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain"]],decls:21,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,ga,2,3,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10),t._UZ(20,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC,fa],styles:[""]}),n})();var Lt=f(7544);function xa(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ya(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let va=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(16,"mat-tab"),t.YNc(17,xa,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ya,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faUsers),t.xp6(6),t.Q6J("selectedIndex",i.activeLink))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.SP,P.uX,P.uD,Lt.k,p.yH,x.lC],styles:[""]}),n})();function La(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Ta=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.faExchangeAlt=L.Ssp,this.faChartPie=L.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1]),(0,it.M)(this.store.select(C.pg))).subscribe(([i,o])=>{this.currencyUnits=(null==o?void 0:o.currencyUnits)||[],this.balances=o&&o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,La,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC],styles:[""]}),n})();function ba(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Aa=(()=>{class n{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing"]],decls:13,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,ba,2,3,"div",9),t.qZA()(),t.TgZ(11,"div",10),t._UZ(12,"router-outlet"),t.qZA()()()()()),2&e&&(t.xp6(2),t.Q6J("icon",i.faMapSigns),t.xp6(8),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,p.yH,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,x.lC],styles:[""]}),n})();var et=f(9814),Tt=f(7261),bt=f(6895);function Sa(n,a){if(1&n&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.AsE("",i.nodeFeaturesEnum[e.key]||e.key,": ",t.lcZ(3,2,e.value),"")}}function Za(n,a){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Address"),t.qZA())}function wa(n,a){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function Ea(n,a){1&n&&(t.TgZ(0,"th",26)(1,"span",27),t._uU(2,"Actions"),t.qZA()())}function Ia(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"span",27)(2,"button",29),t.NdJ("copied",function(o){return t.CHM(e),t.oxw(2).onCopyNodeURI(o)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.Q6J("payload",(null==i.lookupResult?null:i.lookupResult.nodeId)+"@"+e)}}function Oa(n,a){1&n&&t._UZ(0,"tr",30)}function Fa(n,a){1&n&&t._UZ(0,"tr",31)}const qa=function(n){return{"background-color":n}};function Ra(n,a){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,Sa,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,Za,2,0,"th",17),t.YNc(44,wa,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,Ea,3,0,"th",20),t.YNc(47,Ia,4,1,"td",21),t.BQk(),t.YNc(48,Oa,1,0,"tr",22),t.YNc(49,Fa,1,0,"tr",23),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,qa,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==e.lookupResult?null:e.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Na=(()=>{class n{constructor(e,i){this.logger=e,this.snackBar=i,this.lookupResult={},this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_}ngOnInit(){this.addresses=new r.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(Tt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,i){if(1&e&&t.Gf(A.YE,5),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&t.YNc(0,Ra,50,21,"div",0),2&e&&t.Q6J("ngIf",i.lookupResult)},directives:[u.O5,p.xw,$.d,p.yH,p.Wh,u.PC,E.Zl,u.sg,H.$V,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,F.lW,bt.y,r.as,r.XQ,r.nj,r.Gk],pipes:[u.uU,u.Nd,u.rS],styles:[""]}),n})();const ka=["form"];function Pa(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Da(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function Ua(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",e.nodeLookupValue)}}function Ma(n,a){if(1&n&&(t.TgZ(0,"span",23),t.YNc(1,Ua,2,1,"div",24),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(21);t.xp6(1),t.Q6J("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",i)}}function Ja(n,a){1&n&&(t.TgZ(0,"span",23)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function Qa(n,a){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,Ma,2,2,"span",21),t.YNc(6,Ja,3,0,"span",22),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function Ya(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const Ha=function(n){return{"mt-1":!0,"mt-2":n}};let Ba=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.actions=s,this.lookupKeyCtrl=new m.NI,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,k.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,i){if(1&e&&t.Gf(ka,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:22,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8),t._UZ(10,"input",9,10),t.YNc(12,Pa,2,1,"mat-error",11),t.YNc(13,Da,2,1,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return i.onLookup()}),t._uU(18,"Lookup"),t.qZA()()(),t.YNc(19,Qa,7,3,"div",15),t.qZA()()(),t.YNc(20,Ya,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,Ha,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),t.xp6(1),t.Q6J("formControl",i.lookupKeyCtrl)("placeholder",(null==i.lookupFields[i.selectedFieldId]?null:i.lookupFields[i.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(2),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",i.flgSetLookupValue))},directives:[p.xw,p.yH,p.Wh,b.dn,m._Y,m.JL,m.F,et.VQ,et.U0,y.KE,u.mk,E.oO,M.Nt,m.Fj,m.Q7,m.JJ,m.oH,u.O5,y.TO,F.lW,u.RF,u.n9,Na,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var za=f(9122);let Va=(()=>{class n{constructor(e,i){this.store=e,this.eclEffects=i,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,k._E)()),this.eclEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,Z.qR)({payload:{data:{address:this.newAddress,addressType:"",component:za.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(st.o))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},directives:[p.xw,p.yH,p.Wh,F.lW],styles:[""]}),n})(),Ga=(()=>{class n{constructor(e,i){this.store=e,this.activatedRoute=i,this.sweepAll=!1,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,Z.qR)({payload:{data:{sweepAll:this.sweepAll,component:vt}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(i.sweepAll?"Sweep All":"Send Funds"))},directives:[p.xw,p.yH,p.Wh,F.lW],styles:[""]}),n})();var Xa=f(8675),At=f(4004),St=f(1079),$a=f(9843),Zt=f(2368);const Wa=["form"];function Ka(n,a){if(1&n&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function ja(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function to(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function eo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",30),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(2,"mat-autocomplete",31,32),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Ka,2,2,"mat-option",33),t.ALo(5,"async"),t.qZA(),t.YNc(6,ja,2,0,"mat-error",17),t.YNc(7,to,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("formControl",i.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,i.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function no(n,a){1&n&&t.GkF(0)}function io(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function ao(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function oo(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function so(n,a){if(1&n&&(t.TgZ(0,"div",35),t._UZ(1,"fa-icon",36),t.YNc(2,oo,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function lo(n,a){if(1&n&&(t.TgZ(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",39),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",40),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",41),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",42),t.TgZ(15,"div",0)(16,"div",43)(17,"h4",40),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",44),t._uU(20),t.qZA()(),t.TgZ(21,"div",43)(22,"h4",40),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",44),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.xp6(7),t.Oqu(e.peer.nodeId),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==e.peer?null:e.peer.state))}}function ro(n,a){if(1&n&&t.YNc(0,lo,27,6,"mat-expansion-panel",37),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let wt=(()=>{class n{constructor(e,i,o,s){this.dialogRef=e,this.data=i,this.store=o,this.actions=s,this.selectedPeer=new m.NI,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(o=>o.type===l.lr.UPDATE_API_CALL_STATUS_ECL||o.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",i="";this.sortedPeers=this.peers.sort((o,s)=>(e=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",i=s.alias?s.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",ei?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,Xa.O)(""),(0,At.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,At.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(e){var i;return null===(i=this.sortedPeers)||void 0===i?void 0:i.filter(o=>{var s;return 0===(null===(s=o.alias)||void 0===s?void 0:s.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const i=null===(e=this.peers)||void 0===e?void 0:e.filter(o=>{var s,c;return(null===(s=o.alias)||void 0===s?void 0:s.length)===this.selectedPeer.value.length&&0===(null===(c=o.alias)||void 0===c?void 0:c.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===i.length&&i[0].nodeId&&(this.selectedPubkey=i[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle=e&&this.feeRate&&this.feeRate>0?"Advanced Options | Fee (Sats/vByte): "+this.feeRate:"Advanced Options"}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,k.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,i){if(1&e&&t.Gf(Wa,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:48,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Fee (Sats/vByte)","type","number","name","fee","tabindex","7",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onOpenChannel()})("reset",function(){return i.resetData()}),t.TgZ(11,"div",9),t.YNc(12,eo,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,no,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(s){return i.fundingAmount=s}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,io,2,0,"mat-error",17),t.YNc(25,ao,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(s){return i.isPrivate=s}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return i.onAdvancedPanelToggle(!0)})("opened",function(){return i.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"div",22)(37,"mat-form-field",1)(38,"input",23,24),t.NdJ("ngModelChange",function(s){return i.feeRate=s}),t.qZA()()()()()()(),t.YNc(40,so,3,2,"div",25),t.TgZ(41,"div",26)(42,"button",27),t._uU(43,"Clear Fields"),t.qZA(),t.TgZ(44,"button",28),t._uU(45,"Open Channel"),t.qZA()()()()()(),t.YNc(46,ro,1,1,"ng-template",null,29,t.W1O)),2&e){const o=t.MAs(18),s=t.MAs(47);t.xp6(5),t.Oqu(i.alertTitle),t.xp6(7),t.Q6J("ngIf",!i.peer&&i.peers&&i.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(4),t.Q6J("ngModel",i.fundingAmount)("step",1e3)("min",1)("max",i.totalBalance),t.xp6(3),t.hij("Remaining Bal: ",t.lcZ(21,16,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==o.errors?null:o.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.max),t.xp6(2),t.Q6J("ngModel",i.isPrivate),t.xp6(6),t.Oqu(i.advancedTitle),t.xp6(5),t.Q6J("ngModel",i.feeRate)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",""!==i.channelConnectionError)}},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,b.dn,m._Y,m.JL,m.F,u.O5,y.KE,M.Nt,m.Fj,St.ZL,m.Q7,m.JJ,m.oH,St.XC,u.sg,B.ey,y.TO,u.tP,m.wV,m.qQ,m.Fd,K.q,$a.F,m.On,y.bx,y.R9,Zt.Rr,z.ib,z.yz,z.yK,q.BN,W.h,$.d],pipes:[u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();function co(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfOpenChannels)}}function uo(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfPendingChannels)}}function po(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfInactiveChannels)}}let mo=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(C.pg).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,Z.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:wt}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(6,"mat-tab"),t.YNc(7,co,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,uo,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,po,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",i.activeLink))},directives:[p.xw,p.yH,p.Wh,F.lW,P.SP,P.uX,P.uD,Lt.k,x.lC],styles:[""]}),n})();function ho(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.channel.shortChannelId)}}function _o(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,e.channel.state))}}function fo(n,a){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,e.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,e.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,e.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,e.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function go(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function Co(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function xo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(e),t.oxw().onShowAdvanced()}),t.YNc(1,go,2,0,"p",22),t.YNc(2,Co,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.showAdvanced)("ngIfElse",e)}}function yo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.shortChannelId)}}function vo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.channelId)}}const Lo=function(n){return{"xs-scroll-y":n}},To=function(n,a){return{"mt-2":n,"mt-1":a}};let rt=(()=>{class n{constructor(e,i,o,s,c){this.dialogRef=e,this.data=i,this.logger=o,this.commonService=s,this.snackBar=c,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(R.mQ),t.Y36(N.v),t.Y36(Tt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:28,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return i.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ho,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,_o,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",11)(36,"h4",12),t._uU(37,"Private"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.qZA()(),t.TgZ(40,"div",11)(41,"h4",12),t._uU(42,"Funder"),t.qZA(),t.TgZ(43,"span",15),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",11)(48,"h4",12),t._uU(49,"State"),t.qZA(),t.TgZ(50,"span",15),t._uU(51),t.ALo(52,"titlecase"),t.qZA()(),t.TgZ(53,"div",11)(54,"h4",12),t._uU(55,"Buried"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.qZA()()(),t._UZ(58,"mat-divider",14),t.YNc(59,fo,29,14,"div",16),t.TgZ(60,"div",17),t.YNc(61,xo,4,2,"button",18),t.YNc(62,yo,2,1,"button",19),t.YNc(63,vo,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",i.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(23,Lo,i.screenSize===i.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===i.channelsType),t.xp6(5),t.Oqu(i.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(0===i.channel.channelFlags?"Yes":"No"),t.xp6(5),t.Oqu(i.channel.isFunder?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(52,21,i.channel.state)),t.xp6(6),t.Oqu(i.channel.buried?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",i.showAdvanced&&"open"===i.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(25,To,!i.showAdvanced,i.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType))},directives:[p.xw,p.Wh,p.yH,b.dk,q.BN,F.lW,b.dn,u.mk,E.oO,u.O5,$.d,W.h,bt.y],pipes:[u.rS,u.JJ],styles:[""]}),n})();function bo(n,a){1&n&&t._UZ(0,"mat-progress-bar",30)}function Ao(n,a){1&n&&(t.TgZ(0,"th",31),t._uU(1," Short Channel ID "),t.qZA())}function So(n,a){if(1&n&&(t.TgZ(0,"span",37),t._UZ(1,"fa-icon",38),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Zo(n,a){if(1&n&&(t.TgZ(0,"span",39),t._UZ(1,"fa-icon",38),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Et=function(n){return{"max-width":n}};function wo(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33),t.YNc(2,So,2,1,"span",34),t.YNc(3,Zo,2,1,"span",35),t.TgZ(4,"span",36),t._uU(5),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(4,Et,i.screenSize===i.screenSizeEnum.XS?"12rem":"22rem")),t.xp6(1),t.Q6J("ngIf",0===e.channelFlags),t.xp6(1),t.Q6J("ngIf",0!==e.channelFlags),t.xp6(2),t.Oqu(null==e?null:e.shortChannelId)}}function Eo(n,a){1&n&&(t.TgZ(0,"th",31),t._uU(1," Alias "),t.qZA())}function Io(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33)(2,"span",36),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Et,i.screenSize===i.screenSizeEnum.XS?"12rem":"22rem")),t.xp6(2),t.Oqu(e.alias)}}function Oo(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Base Fee (mSats) "),t.qZA())}function Fo(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function qo(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Fee Rate (mili mSats) "),t.qZA())}function Ro(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function No(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Local Balance (Sats) "),t.qZA())}function ko(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Po(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Do(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Uo(n,a){1&n&&(t.TgZ(0,"th",42),t._uU(1,"Balance Score "),t.qZA())}function Mo(n,a){if(1&n&&(t.TgZ(0,"td",43)(1,"div",44)(2,"mat-hint",45),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",46),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function Jo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",47)(1,"div",48)(2,"mat-select",49),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Qo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",51)(1,"div",52)(2,"mat-select",53),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(s)}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!1)}),t._uU(9,"Close Channel"),t.qZA(),t.TgZ(10,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(11,"Force Close"),t.qZA()()()()}}function Yo(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function Ho(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function Bo(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function zo(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Vo(n,a){if(1&n&&(t.TgZ(0,"td",54),t.YNc(1,Yo,2,0,"p",55),t.YNc(2,Ho,2,0,"p",55),t.YNc(3,Bo,2,0,"p",55),t.YNc(4,zo,2,1,"p",55),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Go=function(n){return{"display-none":n}};function Xo(n,a){if(1&n&&t._UZ(0,"tr",56),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Go,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function $o(n,a){1&n&&t._UZ(0,"tr",57)}function Wo(n,a){1&n&&t._UZ(0,"tr",58)}const Ko=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},jo=function(){return["no_peer"]};let ts=(()=>{class n{constructor(e,i,o,s,c){var h,g,T,Y,v,O;this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.router=c,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness","actions"]),this.selFilter=(null===(T=null===(g=null===(h=this.router.getCurrentNavigation())||void 0===h?void 0:h.extras)||void 0===g?void 0:g.state)||void 0===T?void 0:T.filter)?null===(O=null===(v=null===(Y=this.router.getCurrentNavigation())||void 0===Y?void 0:Y.extras)||void 0===v?void 0:v.state)||void 0===O?void 0:O.filter:""}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.loadChannelsTable()}onChannelUpdate(e){"all"!==e&&"NORMAL"!==e.state||(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:e&&void 0!==e.feeBaseMsat?e.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:e&&void 0!==e.feeProportionalMillionths?e.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(s=>{if(s){const c=s[0].inputValue,h=s[1].inputValue;let g=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let T="";"all"===e?(this.activeChannels.forEach(Y=>{T=T+","+Y.nodeId}),T=T.substring(1),g={baseFeeMsat:c,feeRate:h,nodeIds:T}):g={baseFeeMsat:c,feeRate:h,nodeId:e.nodeId}}else{let T="";"all"===e?(this.activeChannels.forEach(Y=>{T=T+","+Y.channelId}),T=T.substring(1),g={baseFeeMsat:c,feeRate:h,channelIds:T}):g={baseFeeMsat:c,feeRate:h,channelId:e.channelId}}this.store.dispatch((0,k.pW)({payload:g}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,i){this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(h=>{h&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId,force:i}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"open",component:rt}}}))}loadChannelsTable(){this.activeChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(N.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,bo,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Ao,2,0,"th",10),t.YNc(11,wo,6,6,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Eo,2,0,"th",10),t.YNc(14,Io,4,4,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Oo,2,0,"th",14),t.YNc(17,Fo,4,4,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,qo,2,0,"th",14),t.YNc(20,Ro,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,No,2,0,"th",14),t.YNc(23,ko,4,4,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,Po,2,0,"th",14),t.YNc(26,Do,4,4,"td",11),t.BQk(),t.ynx(27,18),t.YNc(28,Uo,2,0,"th",19),t.YNc(29,Mo,6,4,"td",20),t.BQk(),t.ynx(30,21),t.YNc(31,Jo,8,0,"th",22),t.YNc(32,Qo,12,0,"td",23),t.BQk(),t.ynx(33,24),t.YNc(34,Vo,5,4,"td",25),t.BQk(),t.YNc(35,Xo,1,3,"tr",26),t.YNc(36,$o,1,0,"tr",27),t.YNc(37,Wo,1,0,"tr",28),t.qZA()(),t._UZ(38,"mat-paginator",29),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,Ko,""!==i.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(13,jo)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,q.BN,y.bx,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.JJ],styles:[".mat-column-shortChannelId[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-shortChannelId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{padding-left:1rem;flex:0 0 15%;width:15%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;flex:0 0 17%;width:17%}.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 56.25em){.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset;flex:1 1 20%;width:20%}}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();function es(n,a){1&n&&t._UZ(0,"mat-progress-bar",25)}function ns(n,a){1&n&&(t.TgZ(0,"th",26),t._uU(1," State "),t.qZA())}function is(n,a){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,null==e?null:e.state),"")}}function as(n,a){1&n&&(t.TgZ(0,"th",26),t._uU(1," Alias "),t.qZA())}function os(n,a){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.alias)}}function ss(n,a){1&n&&(t.TgZ(0,"th",28),t._uU(1," Local Balance (Sats) "),t.qZA())}function ls(n,a){if(1&n&&(t.TgZ(0,"td",27)(1,"span",29),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function rs(n,a){1&n&&(t.TgZ(0,"th",28),t._uU(1," Remote Balance (Sats) "),t.qZA())}function cs(n,a){if(1&n&&(t.TgZ(0,"td",27)(1,"span",29),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function us(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",30)(1,"div",31)(2,"mat-select",32),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",33),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ps(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",34)(1,"button",35),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function ms(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function ds(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function hs(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function _s(n,a){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,ms,2,0,"p",37),t.YNc(2,ds,2,0,"p",37),t.YNc(3,hs,2,1,"p",37),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const fs=function(n){return{"display-none":n}};function gs(n,a){if(1&n&&t._UZ(0,"tr",38),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,fs,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Cs(n,a){1&n&&t._UZ(0,"tr",39)}function xs(n,a){1&n&&t._UZ(0,"tr",40)}const ys=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},vs=function(){return["no_channel"]};let Ls=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.commonService=o,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"pending",component:rt}}}))}loadChannelsTable(){this.pendingChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,es,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,ns,2,0,"th",10),t.YNc(11,is,3,3,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,as,2,0,"th",10),t.YNc(14,os,2,1,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,ss,2,0,"th",14),t.YNc(17,ls,4,4,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,rs,2,0,"th",14),t.YNc(20,cs,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,us,6,0,"th",17),t.YNc(23,ps,3,0,"td",18),t.BQk(),t.ynx(24,19),t.YNc(25,_s,4,3,"td",20),t.BQk(),t.YNc(26,gs,1,3,"tr",21),t.YNc(27,Cs,1,0,"tr",22),t.YNc(28,xs,1,0,"tr",23),t.qZA()(),t._UZ(29,"mat-paginator",24),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,ys,""!==i.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(13,vs)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var ct=f(5615);const Ts=["peersForm"],bs=["stepper"];function As(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Ss(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Zs(n,a){if(1&n&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function ws(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Es(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Is(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Os(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Fs(n,a){if(1&n&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let qs=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.formBuilder=s,this.actions=c,this.logger=h,this.faExclamationTriangle=L.eHv,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[m.kI.required]],peerAddress:[this.peerAddress,[m.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[m.kI.required,m.kI.min(1),m.kI.max(this.totalBalance)]],isPrivate:[!1],feeRate:[null],hiddenAmount:["",[m.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.NEWLY_ADDED_PEER_ECL||e.type===l.lr.FETCH_CHANNELS_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&("SaveNewPeer"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,k.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,k.YX)({payload:{nodeId:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var i,o,s,c;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(i=this.newlyAddedPeer)||void 0===i?void 0:i.alias)?this.newlyAddedPeer.alias:null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(s=this.newlyAddedPeer)||void 0===s?void 0:s.alias)?this.newlyAddedPeer.alias:null===(c=this.newlyAddedPeer)||void 0===c?void 0:c.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(m.qu),t.Y36(G.eX),t.Y36(R.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ts,5),t.Gf(bs,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.stepper=o.first)}},decls:50,vars:20,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","formControlName","feeRate","placeholder","Fee (Sats/vByte)","type","number","name","feeRate","tabindex","7",3,"step","min"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(s){return i.stepSelectionChanged(s)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,As,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Ss,2,0,"mat-error",14),t.qZA(),t.YNc(18,Zs,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return i.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,ws,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Es,2,0,"mat-error",14),t.YNc(34,Is,2,0,"mat-error",14),t.YNc(35,Os,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"div",25)(37,"mat-slide-toggle",26),t._uU(38,"Private Channel"),t.qZA()()(),t.TgZ(39,"div",27)(40,"div",28)(41,"mat-form-field",1),t._UZ(42,"input",29),t.qZA()()()(),t.YNc(43,Fs,4,2,"div",15),t.TgZ(44,"div",16)(45,"button",30),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(46),t.qZA()()()()(),t.TgZ(47,"div",31)(48,"button",32),t.NdJ("click",function(){return i.onClose()}),t._uU(49),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",i.peerFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==i.peerFormGroup.controls.peerAddress.errors?null:i.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==i.peerConnectionError),t.xp6(3),t.Oqu(""!==i.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",i.channelFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",i.totalBalance-(i.channelFormGroup.controls.fundingAmount.value?i.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(7),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",""!==i.channelConnectionError),t.xp6(3),t.Oqu(""!==i.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=i.newlyAddedPeer&&i.newlyAddedPeer.nodeId?"Do It Later":"Close"))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,b.dn,ct.Vq,ct.C0,m._Y,m.JL,m.sg,ct.VY,y.KE,M.Nt,m.Fj,W.h,m.JJ,m.u,m.Q7,u.O5,y.TO,q.BN,m.wV,y.bx,y.R9,Zt.Rr,m.qQ,K.q],styles:[""]}),n})();function Rs(n,a){1&n&&t._UZ(0,"mat-progress-bar",37)}function Ns(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," ID "),t.qZA())}const ut=function(n){return{"max-width":n}};function ks(n,a){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.hij(" ",null==e?null:e.nodeId," ")}}function Ps(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Alias "),t.qZA())}const It=function(n){return{"mr-0":n}};function Ds(n,a){if(1&n&&t._UZ(0,"span",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,It,e.screenSize===e.screenSizeEnum.XS))}}function Us(n,a){if(1&n&&t._UZ(0,"span",45),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,It,e.screenSize===e.screenSizeEnum.XS))}}function Ms(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,Ds,1,3,"span",42),t.YNc(2,Us,1,3,"span",43),t._uU(3),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(4,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"25rem")),t.xp6(1),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state),t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function Js(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," State "),t.qZA())}function Qs(n,a){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.state," ")}}function Ys(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," Network Address "),t.qZA())}function Hs(n,a){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.hij(" ",null==e?null:e.address," ")}}function Bs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1," Channels "),t.qZA())}function zs(n,a){if(1&n&&(t.TgZ(0,"td",48),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.channels," ")}}function Vs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Gs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",52),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onPeerDetach(o)}),t._uU(1,"Disconnect"),t.qZA()}}function Xs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",52),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onConnectPeer(o)}),t._uU(1,"Reconnect"),t.qZA()}}function $s(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",53)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onPeerClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",52),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onOpenChannel(s)}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,Gs,2,0,"mat-option",54),t.YNc(9,Xs,2,0,"mat-option",54),t.qZA()()()}if(2&n){const e=a.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function Ws(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function Ks(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function js(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function tl(n,a){if(1&n&&(t.TgZ(0,"td",55),t.YNc(1,Ws,2,0,"p",56),t.YNc(2,Ks,2,0,"p",56),t.YNc(3,js,2,1,"p",56),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const el=function(n){return{"display-none":n}};function nl(n,a){if(1&n&&t._UZ(0,"tr",57),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,el,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function il(n,a){1&n&&t._UZ(0,"tr",58)}function al(n,a){1&n&&t._UZ(0,"tr",59)}const ol=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},sl=function(){return["no_peer"]};let ll=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.store=i,this.rtlEffects=o,this.actions=s,this.commonService=c,this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","channels","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","address","channels","actions"])}ngOnInit(){this.store.select(C.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,Q.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,i){const o=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.nodeId,message:o}}}))}onConnectPeer(e){this.store.dispatch((0,Z.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:qs}}}))}onOpenChannel(e){this.store.dispatch((0,Z.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:wt}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,Z.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(i=>{i&&this.store.dispatch((0,k.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(e){this.peers=new r.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.peers.filterPredicate=(i,o)=>JSON.stringify(i).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(G.eX),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:42,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","nodeId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","state"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","channels"],["mat-header-cell","","class","px-2","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell",""],["mat-header-cell","","mat-sort-header","",1,"px-2"],["mat-cell","",1,"px-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return i.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"mat-form-field",9)(12,"div",10)(13,"input",11),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()()(),t.TgZ(14,"div",12),t.YNc(15,Rs,1,0,"mat-progress-bar",13),t.TgZ(16,"table",14,15),t.ynx(18,16),t.YNc(19,Ns,2,0,"th",17),t.YNc(20,ks,2,4,"td",18),t.BQk(),t.ynx(21,19),t.YNc(22,Ps,2,0,"th",20),t.YNc(23,Ms,4,6,"td",21),t.BQk(),t.ynx(24,22),t.YNc(25,Js,2,0,"th",17),t.YNc(26,Qs,2,1,"td",23),t.BQk(),t.ynx(27,24),t.YNc(28,Ys,2,0,"th",17),t.YNc(29,Hs,2,4,"td",18),t.BQk(),t.ynx(30,25),t.YNc(31,Bs,2,0,"th",26),t.YNc(32,zs,2,1,"td",27),t.BQk(),t.ynx(33,28),t.YNc(34,Vs,6,0,"th",29),t.YNc(35,$s,10,2,"td",30),t.BQk(),t.ynx(36,31),t.YNc(37,tl,4,3,"td",32),t.BQk(),t.YNc(38,nl,1,3,"tr",33),t.YNc(39,il,1,0,"tr",34),t.YNc(40,al,1,0,"tr",35),t.qZA()(),t._UZ(41,"mat-paginator",36),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",i.faUsers),t.xp6(5),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.peers)("ngClass",t.VKq(12,ol,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,sl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.yH,p.Wh,m._Y,m.JL,m.F,F.lW,q.BN,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-nodeId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:2rem}.mat-column-address[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const rl=["queryRoutesForm"];function cl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function ul(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function pl(n,a){1&n&&t._UZ(0,"mat-progress-bar",21)}function ml(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Alias "),t.qZA())}function dl(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function hl(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," ID "),t.qZA())}function _l(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.nodeId," ")}}function fl(n,a){1&n&&(t.TgZ(0,"th",42)(1,"span",43),t._uU(2,"Actions"),t.qZA()())}function gl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onHopClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function Cl(n,a){1&n&&t._UZ(0,"tr",46)}function xl(n,a){1&n&&t._UZ(0,"tr",47)}const yl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};function vl(n,a){if(1&n&&(t.TgZ(0,"div",22)(1,"mat-expansion-panel",23)(2,"mat-expansion-panel-header")(3,"mat-panel-title",24)(4,"span",25),t._uU(5),t.qZA(),t.TgZ(6,"span",26),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",27)(10,"div",28)(11,"table",29,30),t.ynx(13,31),t.YNc(14,ml,2,0,"th",32),t.YNc(15,dl,2,1,"td",33),t.BQk(),t.ynx(16,34),t.YNc(17,hl,2,0,"th",32),t.YNc(18,_l,2,1,"td",33),t.BQk(),t.ynx(19,35),t.YNc(20,fl,3,0,"th",36),t.YNc(21,gl,3,0,"td",37),t.BQk(),t.YNc(22,Cl,1,0,"tr",38),t.YNc(23,xl,1,0,"tr",39),t.qZA()()()()()),2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.xp6(5),t.hij("Route ",i+1,""),t.xp6(2),t.Oqu(t.lcZ(8,7,e.amount/1e3)),t.xp6(4),t.Q6J("dataSource",o.qrHops[i])("ngClass",t.VKq(9,yl,"error"===o.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}let Ll=(()=>{class n{constructor(e,i,o){this.store=e,this.eclEffects=i,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.flgSticky=!1,this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","actions"])}ngOnInit(){this.qrHops[0]=new r.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((i,o)=>{this.qrHops[o]=new r.by([...i.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,k.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(st.o),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,i){if(1&e&&t.Gf(rl,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:28,vars:10,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Node ID","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"pl-4","pr-3"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(o),t.MAs(2).form.valid&&i.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(c){return i.nodeId=c}),t.qZA(),t.YNc(10,cl,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.amount=c}),t.qZA(),t.YNc(13,ul,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.YNc(24,pl,1,0,"mat-progress-bar",18),t.TgZ(25,"div",19)(26,"div",0),t.YNc(27,vl,24,11,"div",20),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",i.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",i.nodeId),t.xp6(2),t.Q6J("ngIf",!i.nodeId),t.xp6(2),t.Q6J("ngModel",i.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!i.amount),t.xp6(8),t.Q6J("icon",i.faRoute),t.xp6(3),t.Q6J("ngIf",!0===i.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",i.allQRoutes))},directives:[p.xw,p.yH,m._Y,m.JL,m.F,p.Wh,q.BN,y.KE,M.Nt,m.Fj,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,F.lW,J.pW,u.sg,z.ib,z.yz,z.yK,z.u4,H.$V,r.BZ,u.mk,E.oO,r.w1,r.fO,r.ge,r.Dz,r.ev,r.as,r.XQ,r.nj,r.Gk],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Tl(n,a){1&n&&t._UZ(0,"mat-progress-bar",29)}function bl(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," State "),t.qZA())}function Al(n,a){if(1&n&&(t.TgZ(0,"span",36),t._UZ(1,"fa-icon",37),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Sl(n,a){if(1&n&&(t.TgZ(0,"span",38),t._UZ(1,"fa-icon",37),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Ot=function(n){return{"max-width":n}};function Zl(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"div",32),t.YNc(2,Al,2,1,"span",33),t.YNc(3,Sl,2,1,"span",34),t.TgZ(4,"span",35),t._uU(5),t.ALo(6,"titlecase"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(6,Ot,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Q6J("ngIf",0===e.channelFlags),t.xp6(1),t.Q6J("ngIf",0!==e.channelFlags),t.xp6(2),t.Oqu(t.lcZ(6,4,null==e?null:e.state))}}function wl(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," Short Channel ID "),t.qZA())}function El(n,a){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function Il(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," Alias "),t.qZA())}function Ol(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"div",32)(2,"span",35),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Ot,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(2),t.Oqu(e.alias)}}function Fl(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function ql(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Rl(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Nl(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function kl(n,a){1&n&&(t.TgZ(0,"th",41),t._uU(1,"Balance Score "),t.qZA())}function Pl(n,a){if(1&n&&(t.TgZ(0,"td",42)(1,"div",43)(2,"mat-hint",44),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",45),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function Dl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Ul(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",50)(1,"div",51)(2,"mat-select",52),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(7,"Force Close"),t.qZA()()()()}}function Ml(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function Jl(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function Ql(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Yl(n,a){if(1&n&&(t.TgZ(0,"td",53),t.YNc(1,Ml,2,0,"p",54),t.YNc(2,Jl,2,0,"p",54),t.YNc(3,Ql,2,1,"p",54),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Hl=function(n){return{"display-none":n}};function Bl(n,a){if(1&n&&t._UZ(0,"tr",55),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Hl,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function zl(n,a){1&n&&t._UZ(0,"tr",56)}function Vl(n,a){1&n&&t._UZ(0,"tr",57)}const Gl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Xl=function(){return["no_channel"]};let $l=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","shortChannelId","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","shortChannelId","alias","toLocal","toRemote","balancedness","actions"])}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,i){this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(h=>{h&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId||"",force:i}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"inactive",component:rt}}}))}loadChannelsTable(){this.inactiveChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:36,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,Tl,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,bl,2,0,"th",10),t.YNc(11,Zl,7,8,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,wl,2,0,"th",10),t.YNc(14,El,2,1,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Il,2,0,"th",10),t.YNc(17,Ol,4,4,"td",11),t.BQk(),t.ynx(18,14),t.YNc(19,Fl,2,0,"th",15),t.YNc(20,ql,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,Rl,2,0,"th",15),t.YNc(23,Nl,4,4,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,kl,2,0,"th",18),t.YNc(26,Pl,6,4,"td",19),t.BQk(),t.ynx(27,20),t.YNc(28,Dl,6,0,"th",21),t.YNc(29,Ul,8,0,"td",22),t.BQk(),t.ynx(30,23),t.YNc(31,Yl,4,3,"td",24),t.BQk(),t.YNc(32,Bl,1,3,"tr",25),t.YNc(33,zl,1,0,"tr",26),t.YNc(34,Vl,1,0,"tr",27),t.qZA()(),t._UZ(35,"mat-paginator",28),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,Gl,""!==i.errorMessage)),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(13,Xl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,q.BN,y.bx,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-state[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-state[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 20%;width:20%}.mat-column-shortChannelId[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-shortChannelId[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})(),Wl=(()=>{class n{transform(e,i){var o,s;return null===(s=null===(o=null==e?void 0:e.replace(/(?:^\w|[A-Z]|\b\w)/g,(c,h)=>c.toUpperCase()))||void 0===o?void 0:o.replace(/\s+/g,""))||void 0===s?void 0:s.replace(/-/g," ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"camelcase",type:n,pure:!0}),n})();function Kl(n,a){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function jl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"mat-form-field",8)(3,"input",9),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().filterValue=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.filterValue)}}function tr(n,a){1&n&&t._UZ(0,"mat-progress-bar",32)}function er(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Date/Time"),t.qZA())}const nr=function(n){return{"ml-0":n}};function ir(n,a){if(1&n&&(t._UZ(0,"span",36),t.ALo(1,"camelcase")),2&n){const e=t.oxw().$implicit,i=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==e?null:e.type)),t.Q6J("ngClass",t.VKq(4,nr,i.screenSize===i.screenSizeEnum.XS))}}function ar(n,a){if(1&n&&(t.TgZ(0,"td",34),t.YNc(1,ir,2,6,"span",35),t._uU(2),t.ALo(3,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==e?null:e.type)),t.xp6(1),t.hij(" ",t.xi3(3,2,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function or(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"In Channel"),t.qZA())}const Ft=function(n){return{"max-width":n}};function sr(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Ft,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Oqu(null==e?null:e.fromChannelAlias)}}function lr(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Out Channel"),t.qZA())}function rr(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Ft,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Oqu(null==e?null:e.toChannelAlias)}}function cr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Amount In (Sats)"),t.qZA())}function ur(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountIn))}}function pr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Amount Out (Sats)"),t.qZA())}function mr(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountOut))}}function dr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function hr(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function _r(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function fr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function gr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function Cr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function xr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function yr(n,a){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,gr,2,0,"p",47),t.YNc(2,Cr,2,0,"p",47),t.YNc(3,xr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const vr=function(n){return{"display-none":n}};function Lr(n,a){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,vr,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function Tr(n,a){1&n&&t._UZ(0,"tr",49)}function br(n,a){1&n&&t._UZ(0,"tr",50)}const Ar=function(){return["no_event"]};function Sr(n,a){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,tr,1,0,"mat-progress-bar",11),t.TgZ(2,"table",12,13),t.ynx(4,14),t.YNc(5,er,2,0,"th",15),t.YNc(6,ar,4,5,"td",16),t.BQk(),t.ynx(7,17),t.YNc(8,or,2,0,"th",15),t.YNc(9,sr,2,4,"td",18),t.BQk(),t.ynx(10,19),t.YNc(11,lr,2,0,"th",15),t.YNc(12,rr,2,4,"td",18),t.BQk(),t.ynx(13,20),t.YNc(14,cr,2,0,"th",21),t.YNc(15,ur,4,3,"td",16),t.BQk(),t.ynx(16,22),t.YNc(17,pr,2,0,"th",21),t.YNc(18,mr,4,3,"td",16),t.BQk(),t.ynx(19,23),t.YNc(20,dr,2,0,"th",21),t.YNc(21,hr,4,3,"td",16),t.BQk(),t.ynx(22,24),t.YNc(23,_r,6,0,"th",25),t.YNc(24,fr,3,0,"td",26),t.BQk(),t.ynx(25,27),t.YNc(26,yr,4,3,"td",28),t.BQk(),t.YNc(27,Lr,1,3,"tr",29),t.YNc(28,Tr,1,0,"tr",30),t.YNc(29,br,1,0,"tr",31),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,Ar)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Zr(n,a){if(1&n&&t._UZ(0,"mat-paginator",51),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let qt=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","fee","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","amountOut","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee","actions"])}ngOnInit(){this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{0===this.eventsData.length&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData))})}ngAfterViewInit(){this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,i){const o=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel Id",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel Id",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&(null==o||o.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}])),this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:o}}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new r.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(i,o)=>"fee"===o?i.amountIn-i.amountOut:i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.forwardingHistoryEvents.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.forwardingHistoryEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromChannelAlias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","toChannelAlias"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Kl,2,1,"div",1),t.YNc(2,jl,4,1,"div",2),t.YNc(3,Sr,30,7,"div",3),t.YNc(4,Zr,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[p.xw,p.Wh,u.O5,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,J.pW,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,X.gM,u.mk,E.oO,u.PC,E.Zl,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[Wl,u.uU,u.JJ],styles:[".mat-column-fromAlias[_ngcontent-%COMP%]{padding-left:2rem;flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-toAlias[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const wr=["tableIn"],Er=["tableOut"],Ir=["paginatorIn"],Or=["paginatorOut"];function Fr(n,a){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function qr(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function Rr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Channel ID"),t.qZA())}const nt=function(n){return{"max-width":n}};function Nr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.channelId)}}function kr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Peer Alias"),t.qZA())}function Pr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.alias)}}function Dr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function Ur(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Mr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Jr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function Qr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function Yr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function Hr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function Br(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function zr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Vr(n,a){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,Hr,2,0,"p",43),t.YNc(2,Br,2,0,"p",43),t.YNc(3,zr,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Rt=function(n){return{"display-none":n}};function Gr(n,a){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Rt,(null==e.RoutingPeersIncoming?null:e.RoutingPeersIncoming.data)&&(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function Xr(n,a){1&n&&t._UZ(0,"tr",45)}function $r(n,a){1&n&&t._UZ(0,"tr",46)}function Wr(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function Kr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Channel ID"),t.qZA())}function jr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.channelId)}}function tc(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Peer Alias"),t.qZA())}function ec(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.alias)}}function nc(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function ic(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function ac(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function oc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function sc(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function lc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function rc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function cc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function uc(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function pc(n,a){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,rc,2,0,"p",43),t.YNc(2,cc,2,0,"p",43),t.YNc(3,uc,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function mc(n,a){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Rt,(null==e.RoutingPeersOutgoing?null:e.RoutingPeersOutgoing.data)&&(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function dc(n,a){1&n&&t._UZ(0,"tr",45)}function hc(n,a){1&n&&t._UZ(0,"tr",46)}const _c=function(n,a){return{"mt-2":n,"mt-1":a}},fc=function(){return["no_incoming_event"]},gc=function(n){return{"mt-2":n}},Cc=function(){return["no_outgoing_event"]};function xc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t.TgZ(5,"mat-form-field",8)(6,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyIncomingFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().filterIn=o}),t.qZA()()(),t.TgZ(7,"div",10),t.YNc(8,qr,1,0,"mat-progress-bar",11),t.TgZ(9,"table",12,13),t.ynx(11,14),t.YNc(12,Rr,2,0,"th",15),t.YNc(13,Nr,2,4,"td",16),t.BQk(),t.ynx(14,17),t.YNc(15,kr,2,0,"th",15),t.YNc(16,Pr,2,4,"td",16),t.BQk(),t.ynx(17,18),t.YNc(18,Dr,2,0,"th",19),t.YNc(19,Ur,4,3,"td",20),t.BQk(),t.ynx(20,21),t.YNc(21,Mr,2,0,"th",19),t.YNc(22,Jr,4,3,"td",20),t.BQk(),t.ynx(23,22),t.YNc(24,Qr,2,0,"th",19),t.YNc(25,Yr,4,3,"td",20),t.BQk(),t.ynx(26,23),t.YNc(27,Vr,4,3,"td",24),t.BQk(),t.YNc(28,Gr,1,3,"tr",25),t.YNc(29,Xr,1,0,"tr",26),t.YNc(30,$r,1,0,"tr",27),t.qZA()(),t._UZ(31,"mat-paginator",28,29),t.qZA(),t.TgZ(33,"div",30)(34,"div",6)(35,"div",7),t._uU(36,"Outgoing"),t.qZA(),t.TgZ(37,"mat-form-field",8)(38,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().filterOut=o}),t.qZA()()(),t.TgZ(39,"div",31),t.YNc(40,Wr,1,0,"mat-progress-bar",11),t.TgZ(41,"table",32,33),t.ynx(43,14),t.YNc(44,Kr,2,0,"th",15),t.YNc(45,jr,2,4,"td",16),t.BQk(),t.ynx(46,17),t.YNc(47,tc,2,0,"th",15),t.YNc(48,ec,2,4,"td",16),t.BQk(),t.ynx(49,18),t.YNc(50,nc,2,0,"th",19),t.YNc(51,ic,4,3,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,ac,2,0,"th",19),t.YNc(54,oc,4,3,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,sc,2,0,"th",19),t.YNc(57,lc,4,3,"td",20),t.BQk(),t.ynx(58,34),t.YNc(59,pc,4,3,"td",24),t.BQk(),t.YNc(60,mc,1,3,"tr",25),t.YNc(61,dc,1,0,"tr",26),t.YNc(62,hc,1,0,"tr",27),t.qZA(),t._UZ(63,"mat-paginator",28,35),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,_c,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(4),t.Q6J("ngModel",e.filterIn),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,fc)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,gc,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(4),t.Q6J("ngModel",e.filterOut),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,Cc)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let yc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","totalFee"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalFee"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalAmount","totalFee"]):(this.flgSticky=!0,this.displayedColumns=["channelId","alias","events","totalAmount","totalFee"])}ngOnInit(){this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}loadRoutingPeersTable(e){if(e.length>0){const i=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new r.by(i[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(i[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(e){const i=[],o=[];return e.forEach(s=>{const c=i.find(g=>g.channelId===s.fromChannelId),h=o.find(g=>g.channelId===s.toChannelId);c?(c.events++,c.totalAmount=+c.totalAmount+ +s.amountIn,c.totalFee=s.amountIn-s.amountOut+ +c.totalFee):i.push({channelId:s.fromChannelId,alias:s.fromChannelAlias,events:1,totalAmount:+s.amountIn,totalFee:s.amountIn-s.amountOut}),h?(h.events++,h.totalAmount=+h.totalAmount+ +s.amountOut,h.totalFee=s.amountIn-s.amountOut+ +h.totalFee):o.push({channelId:s.toChannelId,alias:s.toChannelAlias,events:1,totalAmount:+s.amountOut,totalFee:s.amountIn-s.amountOut})}),[this.commonService.sortDescByKey(i,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(wr,5,A.YE),t.Gf(Er,5,A.YE),t.Gf(Ir,5),t.Gf(Or,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sortIn=o.first),t.iGM(o=t.CRH())&&(i.sortOut=o.first),t.iGM(o=t.CRH())&&(i.paginatorIn=o.first),t.iGM(o=t.CRH())&&(i.paginatorOut=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Fr,2,1,"div",1),t.YNc(2,xc,65,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[p.xw,p.Wh,u.O5,p.yH,u.mk,E.oO,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,J.pW,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function vc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Lc=(()=>{class n{constructor(e){this.router=e,this.faChartBar=L.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,vc,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartBar),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,x.lC],styles:[""]}),n})();var Nt=f(7772),kt=f(7671),Pt=f(1210);function Tc(n,a){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function bc(n,a){1&n&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function Ac(n,a){if(1&n&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=a.model,i=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(i.selReportBy===i.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(i.selReportBy===i.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function Sc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Ac,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Zc(n,a){if(1&n&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&n){const e=t.oxw();t.Q6J("eventsData",e.filteredEventsBySelectedPeriod)("filterValue",e.eventFilterValue)}}let wc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,i){const o=Math.round(e.getTime()/1e3),s=Math.round(i.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+i.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(c=>{Math.floor((c.timestamp||0)/1e3)>=o&&Math.floor((c.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalEvents:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}prepareEventsReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalFees:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:17,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(s){return i.selReportBy=s})("change",function(){return i.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,Tc,4,8,"div",8),t.YNc(12,bc,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,Sc,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,Zc,1,2,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",i.selReportBy),t.xp6(3),t.s9C("value",i.reportBy.FEES),t.xp6(2),t.s9C("value",i.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",i.routingReportData.length<=0||i.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",i.filteredEventsBySelectedPeriod.length>0))},directives:[p.xw,p.Wh,p.yH,kt.D,et.VQ,m.JJ,m.On,et.U0,u.O5,Pt.K$,qt],pipes:[u.JJ],styles:[""],data:{animation:[Nt.J]}}),n})();var Ec=f(165);function Ic(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Oc(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Fc(n,a){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Ic,4,7,"div",9),t.YNc(2,Oc,4,7,"div",9),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function qc(n,a){1&n&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function Rc(n,a){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=a.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Nc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Rc,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function kc(n,a){if(1&n&&t._UZ(0,"rtl-transactions-report-table",15),2&n){const e=t.oxw();t.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let Pc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0]),(0,it.M)(this.store.select(C.Ef))).subscribe(([e,i])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=i.invoices?i.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,i){var o,s;const c=Math.round(e.getTime()/1e3),h=Math.round(i.getTime()/1e3),g=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const T=null===(o=this.payments)||void 0===o?void 0:o.filter(v=>v.firstPartTimestamp&&Math.floor(v.firstPartTimestamp/1e3)>=c&&Math.floor(v.firstPartTimestamp/1e3)"received"===v.status&&v.timestamp&&v.timestamp>=c&&v.timestamp{const O=new Date(v.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(v.recipientAmount||0),g[O].series[0].value=g[O].series[0].value+v.recipientAmount,g[O].series[0].extra.total=g[O].series[0].extra.total+1,this.transactionsReportSummary}),null==Y||Y.map(v=>{const O=new Date(1e3*(v.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(v.amountSettled||0),g[O].series[1].value=g[O].series[1].value+v.amountSettled,g[O].series[1].extra.total=g[O].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let v=0;v{const O=Math.floor((Math.floor((v.firstPartTimestamp||0)/1e3)-c)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(v.recipientAmount||0),g[O].series[0].value=g[O].series[0].value+v.recipientAmount,g[O].series[0].extra.total=g[O].series[0].extra.total+1,this.transactionsReportSummary}),null==Y||Y.map(v=>{const O=Math.floor(((v.timestamp||0)-c)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(v.amountSettled||0),g[O].series[1].value=g[O].series[1].value+v.amountSettled,g[O].series[1].extra.total=g[O].series[1].extra.total+1,this.transactionsReportSummary})}return g}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,Fc,3,3,"div",3),t.YNc(4,qc,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,Nc,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,kc,1,3,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",i.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0))},directives:[p.xw,p.Wh,p.yH,kt.D,u.O5,Pt.H5,Ec.g],pipes:[u.JJ],styles:[""],data:{animation:[Nt.J]}}),n})();var I=f(1643),Dc=f(9442);function Uc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}const Qc=x.Bz.forChild([{path:"",component:mt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:ki,canActivate:[I.fY]},{path:"onchain",component:Ca,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:Va,canActivate:[I.fY]},{path:"send",component:Ga,canActivate:[I.fY]}]},{path:"connections",component:va,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:mo,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:ts,canActivate:[I.fY]},{path:"pending",component:Ls,canActivate:[I.fY]},{path:"inactive",component:$l,canActivate:[I.fY]}]},{path:"peers",component:ll,data:{sweepAll:!1},canActivate:[I.fY]}]},{path:"transactions",component:Ta,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:xt,canActivate:[I.fY]},{path:"invoices",component:gt,canActivate:[I.fY]}]},{path:"routing",component:Aa,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:qt,canActivate:[I.fY]},{path:"peers",component:yc,canActivate:[I.fY]}]},{path:"reports",component:Lc,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:wc,canActivate:[I.fY]},{path:"transactions",component:Pc,canActivate:[I.fY]}]},{path:"graph",component:(()=>{class n{constructor(e){this.router=e,this.faSearch=L.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Uc,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faSearch),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC],styles:[""]}),n})(),canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Ba,canActivate:[I.fY]},{path:"queryroutes",component:Ll,canActivate:[I.fY]}]},{path:"**",component:Dc.w}]}]);var Yc=f(8750);let Hc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[mt]}),n.\u0275inj=t.cJS({providers:[I.fY],imports:[[u.ez,Yc.m,Qc]]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[258],{7258:(Bc,pt,f)=>{f.r(pt),f.d(pt,{ECLModule:()=>Hc});var u=f(9808),x=f(1402),Dt=f(8878),t=f(5e3),p=f(7093),J=f(5899);function Ut(n,a){1&n&&t._UZ(0,"mat-progress-bar",3)}let mt=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(i=>{switch(!0){case i instanceof x.OD:this.loading=!0;break;case i instanceof x.m2:case i instanceof x.gk:case i instanceof x.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ut,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.loading))},directives:[p.xw,p.yH,p.Wh,u.O5,J.pW,x.lC],styles:[""],data:{animation:[Dt.g]}}),n})();var d=f(7579),_=f(2722),it=f(1365),dt=f(534),L=f(801),l=f(7731),C=f(2501),R=f(5043),w=f(5620),N=f(62),q=f(9444),ht=f(3954),b=f(9224),F=f(7423),at=f(2181),_t=f(5245),E=f(3322);const ft=function(n){return{backgroundColor:n}};function Mt(n,a){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,ft,null==e.information?null:e.information.color))}}function Jt(n,a){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,ft,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function Qt(n,a){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}let Yt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,Mt,1,3,"span",3),t.qZA()(),t.YNc(7,Jt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Qt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==i.information?null:i.information.alias," "),t.xp6(1),t.Q6J("ngIf",!i.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",i.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=i.information&&i.information.lnImplementation||null!=i.information&&i.information.version?(null==i.information?null:i.information.lnImplementation)+" "+(null==i.information?null:i.information.version):""),t.xp6(4),t.Q6J("ngForOf",i.chains))},directives:[p.xw,p.yH,p.Wh,u.O5,u.PC,E.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function Ht(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",e.balances.lightning/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",e.balances.onchain/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,e.balances.total)," Sats")}}function Bt(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let zt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,Ht,21,11,"div",0),t.YNc(1,Bt,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh,J.pW],pipes:[u.JJ],styles:[""]}),n})();var y=f(7322),X=f(7238),$=f(4834),H=f(8129);const Vt=function(){return["../connections/channels/open"]},Gt=function(n){return{filter:n}};function Xt(n,a){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,Vt))("state",t.VKq(24,Gt,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",i.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==e?null:e.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function $t(n,a){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,Xt,20,26,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function Wt(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,$t,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",i)}}function Kt(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function jt(n,a){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let te=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,Wt,24,15,"div",0),t.YNc(1,Kt,4,0,"ng-template",null,1,t.W1O),t.YNc(3,jt,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,p.yH,y.bx,q.BN,X.gM,J.pW,$.d,H.$V,u.sg,x.yS,F.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function ee(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==e.fees?null:e.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==e.fees?null:e.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==e.fees?null:e.fees.monthly_txs))}}function ne(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ie=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){var e;if(null===(e=this.fees)||void 0===e?void 0:e.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const i=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),o=Math.pow(10,i-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ee,39,18,"div",0),t.YNc(1,ne,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh],pipes:[u.JJ],styles:[""]}),n})();function ae(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function oe(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let se=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ae,42,18,"div",0),t.YNc(1,oe,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.yH,p.Wh],pipes:[u.JJ],styles:[""]}),n})();function le(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toRemote||0,"1.0-0")," Sats")}}function re(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toLocal||0,"1.0-0")," Sats")}}function ce(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toRemote||0)/i.totalLiquidity*100:0)}}function ue(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toLocal||0)/i.totalLiquidity*100:0)}}const pe=function(){return["../connections/channels/open"]},me=function(n){return{filter:n}};function de(n,a){if(1&n&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,le,5,4,"mat-hint",17),t.YNc(6,re,5,4,"mat-hint",17),t.qZA(),t.YNc(7,ce,1,1,"mat-progress-bar",18),t.YNc(8,ue,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,pe))("state",t.VKq(15,me,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.alias||e.shortChannelId,0,24),"",(e.alias||e.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction),t.xp6(1),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction)}}function he(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,de,9,17,"div",13),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const _e=function(n,a,e){return{"mb-4":n,"mb-2":a,"mb-1":e}};function fe(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,he,2,1,"div",11),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,_e,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.xi3(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",i)}}function ge(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function Ce(n,a){if(1&n&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,ge,2,0,"button",23),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function xe(n,a){if(1&n&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ye=(()=>{class n{constructor(e,i){this.router=e,this.commonService=i,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,fe,12,11,"div",0),t.YNc(1,Ce,3,1,"ng-template",null,1,t.W1O),t.YNc(3,xe,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,p.yH,u.mk,E.oO,y.bx,J.pW,$.d,H.$V,u.sg,x.yS,X.gM,F.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var P=f(3251),Q=f(9300),S=f(6087),A=f(4847),r=f(2075),U=f(8966),k=f(2994),G=f(6642),m=f(3075),M=f(7531),W=f(3390),K=f(6534),D=f(4107),B=f(508);function ve(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Le(n,a){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function Te(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function be(n,a){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,Te,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let Ae=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.decimalPipe=s,this.commonService=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.Qk.SECS,this.invoiceError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let i=this.expiry?this.expiry:3600;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(i=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,k.Z$)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(N.v),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","name","exp","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.description=c}),t.qZA(),t.YNc(13,ve,2,0,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"mat-form-field",13)(16,"input",14),t.NdJ("ngModelChange",function(c){return i.invoiceValue=c})("keyup",function(){return i.onInvoiceValueChange()}),t.qZA(),t.TgZ(17,"span",15),t._uU(18," Sats "),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.qZA()(),t.TgZ(21,"mat-form-field",16)(22,"input",17),t.NdJ("ngModelChange",function(c){return i.expiry=c}),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.ALo(25,"titlecase"),t.qZA()(),t.TgZ(26,"mat-form-field",18)(27,"mat-select",19),t.NdJ("selectionChange",function(c){return i.onTimeUnitChange(c)}),t.YNc(28,Le,3,4,"mat-option",20),t.qZA()()(),t.YNc(29,be,3,2,"div",21),t.TgZ(30,"div",22)(31,"button",23),t.NdJ("click",function(){return i.resetData()}),t._uU(32,"Clear Field"),t.qZA(),t.TgZ(33,"button",24),t.NdJ("click",function(){t.CHM(o);const c=t.MAs(10);return i.onAddInvoice(c)}),t._uU(34,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.description),t.xp6(1),t.Q6J("ngIf",!i.description),t.xp6(3),t.Q6J("ngModel",i.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(i.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",i.expiry)("step",i.selTimeUnit===i.timeUnitEnum.SECS?300:i.selTimeUnit===i.timeUnitEnum.MINS?10:i.selTimeUnit===i.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij(" ",t.lcZ(25,14,i.selTimeUnit)," "),t.xp6(3),t.Q6J("value",i.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",i.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==i.invoiceError))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,y.R9,y.bx,D.gD,u.sg,B.ey,q.BN],pipes:[u.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var Se=f(7766),Z=f(7861);function Ze(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function we(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().description=o}),t.qZA(),t.YNc(4,Ze,2,0,"mat-error",8),t.qZA(),t.TgZ(5,"mat-form-field",9)(6,"input",10,11),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().invoiceValue=o})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(8,"span",12),t._uU(9," Sats "),t.qZA(),t.TgZ(10,"mat-hint"),t._uU(11),t.qZA()(),t.TgZ(12,"div",13)(13,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(14,"Clear Field"),t.qZA(),t.TgZ(15,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.MAs(1);return t.oxw().onAddInvoice(o)}),t._uU(16,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.description),t.xp6(1),t.Q6J("ngIf",!e.description),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(5),t.Oqu(e.invoiceValueHint)}}function Ee(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function Ie(n,a){1&n&&t._UZ(0,"mat-progress-bar",47)}function Oe(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Date Created "),t.qZA())}const ot=function(n){return{"mr-0":n}};function Fe(n,a){if(1&n&&t._UZ(0,"span",53),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function qe(n,a){if(1&n&&t._UZ(0,"span",54),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function Re(n,a){if(1&n&&t._UZ(0,"span",55),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,ot,e.screenSize===e.screenSizeEnum.XS))}}function Ne(n,a){if(1&n&&(t.TgZ(0,"td",49),t.YNc(1,Fe,1,3,"span",50),t.YNc(2,qe,1,3,"span",51),t.YNc(3,Re,1,3,"span",52),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","received"===e.status),t.xp6(1),t.Q6J("ngIf","unpaid"===e.status),t.xp6(1),t.Q6J("ngIf",!e.status||"expired"===e.status||"unknown"===e.status),t.xp6(1),t.hij(" ",t.xi3(5,4,1e3*e.timestamp,"dd/MMM/y HH:mm")," ")}}function ke(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Date Settled "),t.qZA())}function Pe(n,a){if(1&n&&(t.TgZ(0,"td",49),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.receivedAt,"dd/MMM/y HH:mm")||"-")}}function De(n,a){1&n&&(t.TgZ(0,"th",48),t._uU(1," Description "),t.qZA())}const Ue=function(n){return{"max-width":n}};function Me(n,a){if(1&n&&(t.TgZ(0,"td",49)(1,"div",56)(2,"span",57),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Ue,i.screenSize===i.screenSizeEnum.XS?"10rem":"32rem")),t.xp6(2),t.Oqu(e.description)}}function Je(n,a){1&n&&(t.TgZ(0,"th",58),t._uU(1," Amount (Sats) "),t.qZA())}function Qe(n,a){if(1&n&&(t.TgZ(0,"td",59)(1,"span",60),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.amount?t.xi3(3,1,e.amount,"1.0-0"):"-","")}}function Ye(n,a){1&n&&(t.TgZ(0,"th",58),t._uU(1," Amount Settled (Sats) "),t.qZA())}function He(n,a){if(1&n&&(t.TgZ(0,"td",59)(1,"span",60),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",e.amountSettled?t.xi3(3,1,e.amountSettled,"1.0-0"):"-","")}}function Be(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",61)(1,"div",62)(2,"mat-select",63),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}const ze=function(n){return{"px-3":n}};function Ve(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",65)(1,"div",66)(2,"mat-select",67),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",64),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(s)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",64),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(s)}),t._uU(7,"Refresh"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,ze,e.screenSize!==e.screenSizeEnum.XS))}}function Ge(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function Xe(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function $e(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function We(n,a){if(1&n&&(t.TgZ(0,"td",68),t.YNc(1,Ge,2,0,"p",8),t.YNc(2,Xe,2,0,"p",8),t.YNc(3,$e,2,1,"p",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Ke=function(n){return{"display-none":n}};function je(n,a){if(1&n&&t._UZ(0,"tr",69),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ke,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function tn(n,a){1&n&&t._UZ(0,"tr",70)}function en(n,a){1&n&&t._UZ(0,"tr",71)}const nn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},an=function(){return["no_invoice"]};function on(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"mat-form-field",23)(7,"input",24),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o}),t.qZA()()(),t.TgZ(8,"div",25),t.YNc(9,Ie,1,0,"mat-progress-bar",26),t.TgZ(10,"table",27,28),t.ynx(12,29),t.YNc(13,Oe,2,0,"th",30),t.YNc(14,Ne,6,7,"td",31),t.BQk(),t.ynx(15,32),t.YNc(16,ke,2,0,"th",30),t.YNc(17,Pe,3,4,"td",31),t.BQk(),t.ynx(18,33),t.YNc(19,De,2,0,"th",30),t.YNc(20,Me,4,4,"td",31),t.BQk(),t.ynx(21,34),t.YNc(22,Je,2,0,"th",35),t.YNc(23,Qe,4,4,"td",36),t.BQk(),t.ynx(24,37),t.YNc(25,Ye,2,0,"th",35),t.YNc(26,He,4,4,"td",36),t.BQk(),t.ynx(27,38),t.YNc(28,Be,6,0,"th",39),t.YNc(29,Ve,8,3,"td",40),t.BQk(),t.ynx(30,41),t.YNc(31,We,4,3,"td",42),t.BQk(),t.YNc(32,je,1,3,"tr",43),t.YNc(33,tn,1,0,"tr",44),t.YNc(34,en,1,0,"tr",45),t.qZA()(),t._UZ(35,"mat-paginator",46),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(12,nn,""!==e.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,an)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let gt=(()=>{class n{constructor(e,i,o,s,c,h){this.logger=e,this.store=i,this.decimalPipe=o,this.commonService=s,this.datePipe=c,this.actions=h,this.calledFrom="transactions",this.faHistory=L.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","amountSettled","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","receivedAt","description","amount","amountSettled","actions"])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Ef).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,Z.qR)({payload:{data:{pageSize:this.pageSize,component:Ae}}}))}onAddInvoice(e){if(!this.description)return!0;const i=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,k.Z$)({payload:o})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,Z.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:Se.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,k.n7)({payload:e.paymentHash}))}updateInvoicesData(e){var i;this.invoiceJSONArr=null===(i=this.invoiceJSONArr)||void 0===i?void 0:i.map(o=>o.paymentHash===e.paymentHash?e:o)}loadInvoicesTable(e){this.invoices=new r.by(e?[...e]:[]),this.invoices.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.invoices.paginator=this.paginator,this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,l.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(N.v),t.Y36(u.uU),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["invcVal","ngModel"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","receivedAt"],["matColumnDef","description"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pr-3",4,"matCellDef"],["matColumnDef","amountSettled"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-3"],["mat-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,we,17,6,"form",1),t.YNc(2,Ee,3,0,"div",2),t.YNc(3,on,36,15,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[p.xw,p.yH,p.Wh,u.O5,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,m.Q7,m.JJ,m.On,y.TO,m.wV,m.qQ,K.q,y.R9,y.bx,F.lW,q.BN,H.$V,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,X.gM,u.PC,E.Zl,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var V=f(5698),st=f(3289),Ct=f(8104);const sn=["paymentReq"];function ln(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function rn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function cn(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function un(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function pn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",17,18),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().paymentAmount=o})("change",function(o){return t.CHM(e),t.oxw().onAmountChange(o)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,un,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function mn(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function dn(n,a){if(1&n&&(t.TgZ(0,"div",19),t._UZ(1,"fa-icon",20),t.YNc(2,mn,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let hn=(()=>{class n{constructor(e,i,o,s,c,h,g,T){this.dialogRef=e,this.store=i,this.eclEffects=o,this.logger=s,this.commonService=c,this.decimalPipe=h,this.actions=g,this.dataService=T,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+i.symbol+this.decimalPipe.transform(i.OTHER?i.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,k.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,V.q)(1)).subscribe({next:i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:i=>{this.logger.error(i),this.paymentDecodedHint="ERROR: "+(i.message?i.message:"string"==typeof i?i:JSON.stringify(i)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(w.yh),t.Y36(st.o),t.Y36(R.mQ),t.Y36(N.v),t.Y36(u.JJ),t.Y36(G.eX),t.Y36(Ct.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,i){if(1&e&&t.Gf(sn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.paymentReq=o.first)}},decls:24,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(s){return i.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,ln,2,1,"mat-hint",11),t.YNc(15,rn,2,0,"mat-error",11),t.YNc(16,cn,2,1,"mat-error",11),t.qZA(),t.YNc(17,pn,6,2,"mat-form-field",12),t.YNc(18,dn,3,2,"div",13),t.TgZ(19,"div",14)(20,"button",15),t.NdJ("click",function(){return i.resetData()}),t._uU(21,"Clear Fields"),t.qZA(),t.TgZ(22,"button",16),t.NdJ("click",function(){return i.onSendPayment()}),t._uU(23,"Send Payment"),t.qZA()()()()()()),2&e){const o=t.MAs(13);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.paymentRequest),t.xp6(2),t.Q6J("ngIf",i.paymentRequest&&""!==i.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!i.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),t.xp6(1),t.Q6J("ngIf",i.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==i.paymentError)}},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.bx,y.TO,q.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var z=f(1125);const _n=["scrollContainer"];function fn(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(e.description)}}function gn(n,a){1&n&&t._UZ(0,"mat-divider",14)}function Cn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){return t.CHM(e),t.oxw().onExpansionOpen(!0)})("closed",function(){return t.CHM(e),t.oxw().onExpansionOpen(!1)}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.Q6J("expanded",o.expansionOpen),t.xp6(4),t.hij("Part ",i+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,e.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,e.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(e.id),t.xp6(7),t.Oqu(e.toChannelAlias)}}let xn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,i){if(1&e&&t.Gf(_n,5),2&e){let o;t.iGM(o=t.CRH())&&(i.scrollContainer=o.first)}},decls:66,vars:15,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,fn,6,1,"div",15),t.YNc(54,gn,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,Cn,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return i.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,i.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,i.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(i.payment.id),t.xp6(7),t.Oqu(i.payment.paymentHash),t.xp6(7),t.Oqu(i.payment.paymentPreimage),t.xp6(7),t.Oqu(i.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",i.description),t.xp6(1),t.Q6J("ngIf",i.description),t.xp6(4),t.Q6J("ngForOf",i.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},directives:[p.xw,p.Wh,p.yH,b.dk,F.lW,b.dn,H.$V,$.d,u.O5,z.pp,u.sg,z.ib,z.yz,z.yK,_t.Hw,U.ZT],pipes:[u.JJ,u.uU],styles:[""]}),n})();var tt=f(3093);const yn=["sendPaymentForm"];function vn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Ln(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Tn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,vn,2,1,"mat-hint",9),t.YNc(6,Ln,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function bn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function An(n,a){1&n&&t._UZ(0,"mat-progress-bar",49)}function Sn(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Date/Time"),t.qZA())}function Zn(n,a){if(1&n&&(t.TgZ(0,"td",51),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function wn(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"ID"),t.qZA())}const j=function(n){return{"max-width":n}};function En(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",52)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id)}}function In(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Destination"),t.qZA())}function On(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",52)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.recipientNodeAlias)}}function Fn(n,a){1&n&&(t.TgZ(0,"th",54),t._uU(1,"Amount (Sats)"),t.qZA())}function qn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",55),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.recipientAmount))}}function Rn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",56)(1,"div",57)(2,"mat-select",58),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",59),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Nn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",60)(1,"button",61),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function kn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function Pn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function Dn(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Un(n,a){if(1&n&&(t.TgZ(0,"td",62),t.YNc(1,kn,2,0,"p",9),t.YNc(2,Pn,2,0,"p",9),t.YNc(3,Dn,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Mn(n,a){if(1&n&&(t.TgZ(0,"span",65),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function Jn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Mn,3,4,"span",64),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Qn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",63),t._uU(2),t.qZA(),t.YNc(3,Jn,2,1,"ng-container",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" Total Attempts: ",null==e||null==e.parts?null:e.parts.length," "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Yn(n,a){if(1&n&&(t.TgZ(0,"span",63)(1,"span",66)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id)}}function Hn(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Yn,4,4,"span",67),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Bn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",66)(2,"span",53),t._uU(3),t.qZA()(),t.YNc(4,Hn,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function zn(n,a){if(1&n&&(t.TgZ(0,"span",63)(1,"span",66)(2,"span",53),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(e.toChannelAlias)}}function Vn(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,zn,4,4,"span",67),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Gn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"div",66)(2,"span",53),t._uU(3),t.qZA()(),t.YNc(4,Vn,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,j,i.screenSize===i.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Xn(n,a){if(1&n&&(t.TgZ(0,"span",68),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.amount,"1.0-0")," ")}}function $n(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Xn,3,4,"span",69),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Wn(n,a){if(1&n&&(t.TgZ(0,"td",51)(1,"span",68),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,$n,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",e.is_expanded)}}function Kn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",71)(1,"button",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit,c=t.oxw(2).$implicit;return t.oxw(2).onPartClick(s,c)}),t._uU(2),t.qZA()()}if(2&n){const e=a.index;t.xp6(2),t.hij("View ",e+1,"")}}function jn(n,a){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Kn,3,1,"div",73),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function ti(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",70)(1,"span",71)(2,"button",72),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return s.is_expanded=!s.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,jn,2,1,"div",9),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(3),t.Oqu(e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function ei(n,a){1&n&&t._UZ(0,"tr",75)}const ni=function(n){return{"display-none":n}};function ii(n,a){if(1&n&&t._UZ(0,"tr",76),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,ni,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function ai(n,a){1&n&&t._UZ(0,"tr",77)}function oi(n,a){1&n&&t._UZ(0,"tr",75)}const si=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},li=function(){return["no_payment"]};function ri(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"mat-form-field",19)(7,"input",20),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o}),t.qZA()()(),t.TgZ(8,"div",21)(9,"div",22),t.YNc(10,An,1,0,"mat-progress-bar",23),t.TgZ(11,"table",24,25),t.ynx(13,26),t.YNc(14,Sn,2,0,"th",27),t.YNc(15,Zn,3,4,"td",28),t.BQk(),t.ynx(16,29),t.YNc(17,wn,2,0,"th",27),t.YNc(18,En,4,4,"td",28),t.BQk(),t.ynx(19,30),t.YNc(20,In,2,0,"th",27),t.YNc(21,On,4,4,"td",28),t.BQk(),t.ynx(22,31),t.YNc(23,Fn,2,0,"th",32),t.YNc(24,qn,4,3,"td",28),t.BQk(),t.ynx(25,33),t.YNc(26,Rn,6,0,"th",34),t.YNc(27,Nn,3,0,"td",35),t.BQk(),t.ynx(28,36),t.YNc(29,Un,4,3,"td",37),t.BQk(),t.ynx(30,38),t.YNc(31,Qn,4,2,"td",28),t.BQk(),t.ynx(32,39),t.YNc(33,Bn,5,5,"td",28),t.BQk(),t.ynx(34,40),t.YNc(35,Gn,5,5,"td",28),t.BQk(),t.ynx(36,41),t.YNc(37,Wn,5,5,"td",28),t.BQk(),t.ynx(38,42),t.YNc(39,ti,5,2,"td",43),t.BQk(),t.YNc(40,ei,1,0,"tr",44),t.YNc(41,ii,1,3,"tr",45),t.YNc(42,ai,1,0,"tr",46),t.YNc(43,oi,1,0,"tr",47),t.qZA()()(),t._UZ(44,"mat-paginator",48),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(14,si,""!==e.errorMessage)),t.xp6(29),t.Q6J("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(16,li)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let xt=(()=>{class n{constructor(e,i,o,s,c,h,g){this.logger=e,this.commonService=i,this.store=o,this.rtlEffects=s,this.decimalPipe=c,this.dataService=h,this.datePipe=g,this.calledFrom="transactions",this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","actions"],this.partColumns=["groupTotal","groupAction"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","recipientAmount","actions"],this.partColumns=["groupTotal","groupAmount","groupAction"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["firstPartTimestamp","id","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupAmount","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["firstPartTimestamp","id","recipientNodeAlias","recipientAmount","actions"],this.partColumns=["groupTotal","groupId","groupChannelAlias","groupAmount","groupAction"])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}loadPaymentsTable(e){this.payments=new r.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(i,o)=>{var s,c,h,g;switch(o){case"firstPartTimestamp":return this.commonService.sortByKey(i.parts,"timestamp","number",null===(s=this.sort)||void 0===s?void 0:s.direction),i.firstPartTimestamp;case"id":return this.commonService.sortByKey(i.parts,"id","string",null===(c=this.sort)||void 0===c?void 0:c.direction),i.id;case"recipientNodeAlias":return this.commonService.sortByKey(i.parts,"toChannelAlias","string",null===(h=this.sort)||void 0===h?void 0:h.direction),i.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(i.parts,"amount","number",null===(g=this.sort)||void 0===g?void 0:g.direction),i.recipientAmount;default:return i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null}},this.payments.filterPredicate=(i,o)=>{var s;return((i.firstPartTimestamp?null===(s=this.datePipe.transform(new Date(i.firstPartTimestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.payments.paginator=this.paginator,this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(i=>{i&&(this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,V.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,k.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,V.q)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,Z.qR)({payload:{data:{component:hn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,i){return i.parts&&i.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,V.q)(1)).subscribe({next:i=>{setTimeout(()=>{this.showPaymentView(e,i.length&&i.length>0?i[0]:[])},0)},error:i=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{sentPaymentInfo:i,payment:e,component:xn}}}))}onPartClick(e,i){i.paymentHash&&""!==i.paymentHash.trim()?this.dataService.decodePayments(i.paymentHash).pipe((0,V.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(e,i,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(e,i,[])}}):this.showPartView(e,i,[])}showPartView(e,i,o){const s=[[{key:"paymentHash",value:i.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:i.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&s.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),i=null==e?void 0:e.reduce((o,s)=>(s.paymentHash&&""!==s.paymentHash.trim()&&(o=""===o?s.paymentHash:o+","+s.paymentHash),o),"");this.dataService.decodePayments(i).pipe((0,_.R)(this.unSubs[4])).subscribe(o=>{o.forEach((c,h)=>{c.length>0&&c[0].paymentRequest&&c[0].paymentRequest.description&&""!==c[0].paymentRequest.description&&(e[h].description=c[0].paymentRequest.description)});const s=null==e?void 0:e.reduce((c,h)=>c.concat(h),[]);this.commonService.downloadFile(s,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(tt.V),t.Y36(u.JJ),t.Y36(Ct.D),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,i){if(1&e&&(t.Gf(yn,5),t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeAlias"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupId"],["matColumnDef","groupChannelAlias"],["matColumnDef","groupAmount"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"part-row-span","pl-3"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Tn,12,3,"form",1),t.YNc(2,bn,3,0,"div",2),t.YNc(3,ri,45,17,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[p.xw,p.yH,p.Wh,u.O5,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,m.Q7,H.$V,m.JJ,m.On,y.bx,y.TO,F.lW,q.BN,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,D.gD,D.$L,B.ey,r.mD,r.yh,u.sg,r.nj,r.Gk,r.Ke,r.Q2,r.as,r.XQ,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%], .mat-column-groupChannelAlias[_ngcontent-%COMP%]{padding:0 1rem;flex:0 0 25%;width:25%}.mat-column-id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-recipientNodeAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-groupChannelAlias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:15rem}"]}),n})();function ci(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function ui(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw().$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function pi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function mi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function di(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function hi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function _i(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function fi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function gi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function Ci(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const yt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function xi(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,ci,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,ui,2,1,"button",15),t.YNc(13,pi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,mi,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,di,1,2,"rtl-ecl-node-info",20),t.YNc(18,hi,1,2,"rtl-ecl-balances-info",21),t.YNc(19,_i,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,fi,1,2,"rtl-ecl-fee-info",23),t.YNc(21,gi,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,Ci,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","capacity"===e.id?90:70),t.Q6J("ngClass",t.VKq(16,yt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function yi(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,xi,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function vi(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function Li(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Ti(n,a){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,vi,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,Li,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function bi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function Ai(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function Si(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Zi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function wi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function Ei(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Ii(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,53),t.YNc(5,Ei,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",i.goToOptions)}}function Oi(n,a){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA(),t.TgZ(6,"mat-tab",51),t.YNc(7,Ii,6,2,"ng-template",52),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function Fi(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const qi=function(n){return{"p-0":n}};function Ri(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,Ti,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,bi,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,Ai,1,1,"rtl-ecl-node-info",39),t.YNc(7,Si,1,2,"rtl-ecl-balances-info",21),t.YNc(8,Zi,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,wi,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,Oi,8,3,"span",41),t.YNc(11,Fi,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,qi,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,yt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function Ni(n,a){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,Ri,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let ki=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.router=s,this.faSmile=dt.ctA,this.faFrown=dt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(C.pg).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(C.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[3]),(0,it.M)(this.store.select(C.kY))).subscribe(([e,i])=>{var o,s;this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=i.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=i.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const c=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,h=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:c,remoteBalance:h,balancedness:+(1-Math.abs((c-h)/(c+h))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.channels)||void 0===o?void 0:o.filter(T=>(T.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(s=this.channels)||void 0===s?void 0:s.filter(T=>(T.toLocal||0)>0),"toLocal"))),this.channels.forEach(T=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(T.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(T.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,i)=>{const o=+(e.toLocal||0)+ +(e.toRemote||0),s=+(i.toLocal||0)+ +(i.toRemote||0);return o>s?-1:o{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,i){if(1&e&&(t.YNc(0,yi,7,4,"div",0),t.YNc(1,Ni,6,4,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",(null==i.selNode?null:i.selNode.userPersona)===i.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[u.O5,p.xw,p.Wh,q.BN,ht.Il,u.sg,ht.DX,p.yH,b.a8,b.dk,b.n5,F.lW,at.p6,_t.Hw,at.VK,at.OP,b.dn,u.mk,E.oO,J.pW,u.RF,u.n9,Yt,zt,te,ie,se,u.ED,ye,P.SP,P.uX,gt,xt,P.uD],styles:[""]}),n})();var Pi=f(8377);const Di=["form"];function Ui(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Mi(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.amountError)}}function Ji(n,a){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Qi(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Yi(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.sendFundError)}}function Hi(n,a){if(1&n&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Yi,2,1,"span",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}let vt=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.logger=i,this.store=o,this.commonService=s,this.decimalPipe=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(Pi.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,Z.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,k.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,k.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const i=this,o=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let s=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,o,s,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:c=>{this.selAmountUnit=e.value,i.transaction.amount=+i.decimalPipe.transform(c[s],i.currencyUnitFormats[s]).replace(/,/g,"")},error:c=>{this.amountError="Conversion Error: "+c,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v),t.Y36(u.JJ),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,i){if(1&e&&t.Gf(Di,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:36,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Target Confirmation Blocks","type","number","name","blocks","tabindex","8","required","true",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onSendFunds()})("reset",function(){return i.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10,11),t.NdJ("ngModelChange",function(s){return i.transaction.address=s}),t.qZA(),t.YNc(14,Ui,2,0,"mat-error",12),t.qZA(),t.TgZ(15,"mat-form-field",13)(16,"input",14,15),t.NdJ("ngModelChange",function(s){return i.transaction.amount=s}),t.qZA(),t.TgZ(18,"span",16),t._uU(19),t.qZA(),t.YNc(20,Mi,2,1,"mat-error",12),t.qZA(),t.TgZ(21,"mat-form-field",17)(22,"mat-select",18),t.NdJ("selectionChange",function(s){return i.onAmountUnitChange(s)}),t.YNc(23,Ji,2,2,"mat-option",19),t.qZA()(),t.TgZ(24,"div",20)(25,"mat-form-field",21)(26,"input",22,23),t.NdJ("ngModelChange",function(s){return i.transaction.blocks=s}),t.qZA(),t.YNc(28,Qi,2,0,"mat-error",12),t.qZA()(),t._UZ(29,"div",24),t.YNc(30,Hi,3,2,"div",25),t.TgZ(31,"div",26)(32,"button",27),t._uU(33,"Clear Fields"),t.qZA(),t.TgZ(34,"button",28),t._uU(35,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.transaction.address),t.xp6(2),t.Q6J("ngIf",!i.transaction.address),t.xp6(2),t.Q6J("ngModel",i.transaction.amount)("step",100)("min",0),t.xp6(3),t.hij(" ",i.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!i.transaction.amount),t.xp6(2),t.Q6J("value",i.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",i.amountUnits),t.xp6(3),t.Q6J("ngModel",i.transaction.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!i.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==i.sendFundError))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,U.ZT,b.dn,m._Y,m.JL,m.F,y.KE,M.Nt,m.Fj,W.h,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,y.R9,D.gD,u.sg,B.ey,q.BN],styles:[""]}),n})();var lt=f(1203);function Bi(n,a){1&n&&t._UZ(0,"mat-progress-bar",31)}function zi(n,a){1&n&&(t.TgZ(0,"th",32),t._uU(1," Date/Time "),t.qZA())}function Vi(n,a){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.timestamp,"dd/MMM/y HH:mm"))}}function Gi(n,a){1&n&&(t.TgZ(0,"th",34),t._uU(1," Amount (Sats) "),t.qZA())}function Xi(n,a){if(1&n&&(t.TgZ(0,"span",37),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.amount))}}function $i(n,a){if(1&n&&(t.TgZ(0,"span",38),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*e.amount),")")}}function Wi(n,a){if(1&n&&(t.TgZ(0,"td",33),t.YNc(1,Xi,3,3,"span",35),t.YNc(2,$i,3,3,"span",36),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.amount>0||0===e.amount),t.xp6(1),t.Q6J("ngIf",e.amount<0)}}function Ki(n,a){1&n&&(t.TgZ(0,"th",34),t._uU(1," Fees (Sats) "),t.qZA())}function ji(n,a){if(1&n&&(t.TgZ(0,"td",33)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.fees))}}function ta(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Confirmations "),t.qZA())}function ea(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.confirmations)," ")}}function na(n,a){1&n&&(t.TgZ(0,"th",32),t._uU(1," Address "),t.qZA())}function ia(n,a){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e.address)}}function aa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",41)(1,"div",42)(2,"mat-select",43),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",44),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function oa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",45)(1,"button",46),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onTransactionClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function sa(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function la(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function ra(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function ca(n,a){if(1&n&&(t.TgZ(0,"td",47),t.YNc(1,sa,2,0,"p",48),t.YNc(2,la,2,0,"p",48),t.YNc(3,ra,2,1,"p",48),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const ua=function(n){return{"display-none":n}};function pa(n,a){if(1&n&&t._UZ(0,"tr",49),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,ua,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function ma(n,a){1&n&&t._UZ(0,"tr",50)}function da(n,a){1&n&&t._UZ(0,"tr",51)}const ha=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},_a=function(){return["no_transaction"]};let fa=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.faHistory=L.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unsub=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","confirmations","fees","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","amount","fees","confirmations","address","actions"])}ngOnInit(){this.store.dispatch((0,k.mC)()),this.store.select(C.dx).pipe((0,_.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){this.listTransactions=new r.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.listTransactions.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Transactions")}])],decls:37,vars:15,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,Bi,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,zi,2,0,"th",13),t.YNc(15,Vi,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Gi,2,0,"th",16),t.YNc(18,Wi,3,2,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,Ki,2,0,"th",16),t.YNc(21,ji,4,3,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,ta,2,0,"th",19),t.YNc(24,ea,4,3,"td",20),t.BQk(),t.ynx(25,21),t.YNc(26,na,2,0,"th",13),t.YNc(27,ia,2,1,"td",14),t.BQk(),t.ynx(28,22),t.YNc(29,aa,6,0,"th",23),t.YNc(30,oa,3,0,"td",24),t.BQk(),t.ynx(31,25),t.YNc(32,ca,4,3,"td",26),t.BQk(),t.YNc(33,pa,1,3,"tr",27),t.YNc(34,ma,1,0,"tr",28),t.YNc(35,da,1,0,"tr",29),t.qZA(),t._UZ(36,"mat-paginator",30),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",i.faHistory),t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(3),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.listTransactions)("ngClass",t.VKq(12,ha,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,_a)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,q.BN,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function ga(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Ca=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.pg).pipe((0,_.R)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.onchainBalance.total||0},{title:"Confirmed",dataValue:i.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:i.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,Z.qR)({payload:{data:{component:vt}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain"]],decls:21,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,ga,2,3,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10),t._UZ(20,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC,fa],styles:[""]}),n})();var Lt=f(7544);function xa(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ya(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let va=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(16,"mat-tab"),t.YNc(17,xa,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ya,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faUsers),t.xp6(6),t.Q6J("selectedIndex",i.activeLink))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.SP,P.uX,P.uD,Lt.k,p.yH,x.lC],styles:[""]}),n})();function La(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Ta=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.faExchangeAlt=L.Ssp,this.faChartPie=L.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1]),(0,it.M)(this.store.select(C.pg))).subscribe(([i,o])=>{this.currencyUnits=(null==o?void 0:o.currencyUnits)||[],this.balances=o&&o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,La,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,lt.D,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC],styles:[""]}),n})();function ba(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Aa=(()=>{class n{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing"]],decls:13,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,ba,2,3,"div",9),t.qZA()(),t.TgZ(11,"div",10),t._UZ(12,"router-outlet"),t.qZA()()()()()),2&e&&(t.xp6(2),t.Q6J("icon",i.faMapSigns),t.xp6(8),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,p.yH,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,x.lC],styles:[""]}),n})();var et=f(9814),Tt=f(7261),bt=f(6895);function Sa(n,a){if(1&n&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.AsE("",i.nodeFeaturesEnum[e.key]||e.key,": ",t.lcZ(3,2,e.value),"")}}function Za(n,a){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Address"),t.qZA())}function wa(n,a){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function Ea(n,a){1&n&&(t.TgZ(0,"th",26)(1,"span",27),t._uU(2,"Actions"),t.qZA()())}function Ia(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"span",27)(2,"button",29),t.NdJ("copied",function(o){return t.CHM(e),t.oxw(2).onCopyNodeURI(o)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.Q6J("payload",(null==i.lookupResult?null:i.lookupResult.nodeId)+"@"+e)}}function Oa(n,a){1&n&&t._UZ(0,"tr",30)}function Fa(n,a){1&n&&t._UZ(0,"tr",31)}const qa=function(n){return{"background-color":n}};function Ra(n,a){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,Sa,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,Za,2,0,"th",17),t.YNc(44,wa,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,Ea,3,0,"th",20),t.YNc(47,Ia,4,1,"td",21),t.BQk(),t.YNc(48,Oa,1,0,"tr",22),t.YNc(49,Fa,1,0,"tr",23),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,qa,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==e.lookupResult?null:e.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Na=(()=>{class n{constructor(e,i){this.logger=e,this.snackBar=i,this.lookupResult={},this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_}ngOnInit(){this.addresses=new r.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(Tt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,i){if(1&e&&t.Gf(A.YE,5),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&t.YNc(0,Ra,50,21,"div",0),2&e&&t.Q6J("ngIf",i.lookupResult)},directives:[u.O5,p.xw,$.d,p.yH,p.Wh,u.PC,E.Zl,u.sg,H.$V,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,F.lW,bt.y,r.as,r.XQ,r.nj,r.Gk],pipes:[u.uU,u.Nd,u.rS],styles:[""]}),n})();const ka=["form"];function Pa(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Da(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function Ua(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",e.nodeLookupValue)}}function Ma(n,a){if(1&n&&(t.TgZ(0,"span",23),t.YNc(1,Ua,2,1,"div",24),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(21);t.xp6(1),t.Q6J("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",i)}}function Ja(n,a){1&n&&(t.TgZ(0,"span",23)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function Qa(n,a){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,Ma,2,2,"span",21),t.YNc(6,Ja,3,0,"span",22),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function Ya(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const Ha=function(n){return{"mt-1":!0,"mt-2":n}};let Ba=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.actions=s,this.lookupKeyCtrl=new m.NI,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,k.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,i){if(1&e&&t.Gf(ka,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:22,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8),t._UZ(10,"input",9,10),t.YNc(12,Pa,2,1,"mat-error",11),t.YNc(13,Da,2,1,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return i.onLookup()}),t._uU(18,"Lookup"),t.qZA()()(),t.YNc(19,Qa,7,3,"div",15),t.qZA()()(),t.YNc(20,Ya,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,Ha,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),t.xp6(1),t.Q6J("formControl",i.lookupKeyCtrl)("placeholder",(null==i.lookupFields[i.selectedFieldId]?null:i.lookupFields[i.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(2),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",i.flgSetLookupValue))},directives:[p.xw,p.yH,p.Wh,b.dn,m._Y,m.JL,m.F,et.VQ,et.U0,y.KE,u.mk,E.oO,M.Nt,m.Fj,m.Q7,m.JJ,m.oH,u.O5,y.TO,F.lW,u.RF,u.n9,Na,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var za=f(9122);let Va=(()=>{class n{constructor(e,i){this.store=e,this.eclEffects=i,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,k._E)()),this.eclEffects.setNewAddress.pipe((0,V.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,Z.qR)({payload:{data:{address:this.newAddress,addressType:"",component:za.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(st.o))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},directives:[p.xw,p.yH,p.Wh,F.lW],styles:[""]}),n})(),Ga=(()=>{class n{constructor(e,i){this.store=e,this.activatedRoute=i,this.sweepAll=!1,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,Z.qR)({payload:{data:{sweepAll:this.sweepAll,component:vt}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(i.sweepAll?"Sweep All":"Send Funds"))},directives:[p.xw,p.yH,p.Wh,F.lW],styles:[""]}),n})();var Xa=f(8675),At=f(4004),St=f(1079),$a=f(9843),Zt=f(2368);const Wa=["form"];function Ka(n,a){if(1&n&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function ja(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function to(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function eo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",30),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(2,"mat-autocomplete",31,32),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Ka,2,2,"mat-option",33),t.ALo(5,"async"),t.qZA(),t.YNc(6,ja,2,0,"mat-error",17),t.YNc(7,to,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("formControl",i.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,i.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function no(n,a){1&n&&t.GkF(0)}function io(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function ao(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function oo(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function so(n,a){if(1&n&&(t.TgZ(0,"div",35),t._UZ(1,"fa-icon",36),t.YNc(2,oo,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function lo(n,a){if(1&n&&(t.TgZ(0,"mat-expansion-panel",38)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",39),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",40),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",41),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",42),t.TgZ(15,"div",0)(16,"div",43)(17,"h4",40),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",44),t._uU(20),t.qZA()(),t.TgZ(21,"div",43)(22,"h4",40),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",44),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.xp6(7),t.Oqu(e.peer.nodeId),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==e.peer?null:e.peer.state))}}function ro(n,a){if(1&n&&t.YNc(0,lo,27,6,"mat-expansion-panel",37),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let wt=(()=>{class n{constructor(e,i,o,s){this.dialogRef=e,this.data=i,this.store=o,this.actions=s,this.selectedPeer=new m.NI,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(o=>o.type===l.lr.UPDATE_API_CALL_STATUS_ECL||o.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",i="";this.sortedPeers=this.peers.sort((o,s)=>(e=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",i=s.alias?s.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",ei?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,Xa.O)(""),(0,At.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,At.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(e){var i;return null===(i=this.sortedPeers)||void 0===i?void 0:i.filter(o=>{var s;return 0===(null===(s=o.alias)||void 0===s?void 0:s.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const i=null===(e=this.peers)||void 0===e?void 0:e.filter(o=>{var s,c;return(null===(s=o.alias)||void 0===s?void 0:s.length)===this.selectedPeer.value.length&&0===(null===(c=o.alias)||void 0===c?void 0:c.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===i.length&&i[0].nodeId&&(this.selectedPubkey=i[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle=e&&this.feeRate&&this.feeRate>0?"Advanced Options | Fee (Sats/vByte): "+this.feeRate:"Advanced Options"}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,k.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(G.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,i){if(1&e&&t.Gf(Wa,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:48,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Fee (Sats/vByte)","type","number","name","fee","tabindex","7",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onOpenChannel()})("reset",function(){return i.resetData()}),t.TgZ(11,"div",9),t.YNc(12,eo,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,no,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(s){return i.fundingAmount=s}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,io,2,0,"mat-error",17),t.YNc(25,ao,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(s){return i.isPrivate=s}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return i.onAdvancedPanelToggle(!0)})("opened",function(){return i.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"div",22)(37,"mat-form-field",1)(38,"input",23,24),t.NdJ("ngModelChange",function(s){return i.feeRate=s}),t.qZA()()()()()()(),t.YNc(40,so,3,2,"div",25),t.TgZ(41,"div",26)(42,"button",27),t._uU(43,"Clear Fields"),t.qZA(),t.TgZ(44,"button",28),t._uU(45,"Open Channel"),t.qZA()()()()()(),t.YNc(46,ro,1,1,"ng-template",null,29,t.W1O)),2&e){const o=t.MAs(18),s=t.MAs(47);t.xp6(5),t.Oqu(i.alertTitle),t.xp6(7),t.Q6J("ngIf",!i.peer&&i.peers&&i.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(4),t.Q6J("ngModel",i.fundingAmount)("step",1e3)("min",1)("max",i.totalBalance),t.xp6(3),t.hij("Remaining Bal: ",t.lcZ(21,16,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==o.errors?null:o.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.max),t.xp6(2),t.Q6J("ngModel",i.isPrivate),t.xp6(6),t.Oqu(i.advancedTitle),t.xp6(5),t.Q6J("ngModel",i.feeRate)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",""!==i.channelConnectionError)}},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,b.dn,m._Y,m.JL,m.F,u.O5,y.KE,M.Nt,m.Fj,St.ZL,m.Q7,m.JJ,m.oH,St.XC,u.sg,B.ey,y.TO,u.tP,m.wV,m.qQ,m.Fd,K.q,$a.F,m.On,y.bx,y.R9,Zt.Rr,z.ib,z.yz,z.yK,q.BN,W.h,$.d],pipes:[u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();function co(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfOpenChannels)}}function uo(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfPendingChannels)}}function po(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfInactiveChannels)}}let mo=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(C.pg).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,Z.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:wt}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(6,"mat-tab"),t.YNc(7,co,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,uo,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,po,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",i.activeLink))},directives:[p.xw,p.yH,p.Wh,F.lW,P.SP,P.uX,P.uD,Lt.k,x.lC],styles:[""]}),n})();function ho(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.channel.shortChannelId)}}function _o(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,e.channel.state))}}function fo(n,a){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,e.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,e.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,e.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,e.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function go(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function Co(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function xo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(e),t.oxw().onShowAdvanced()}),t.YNc(1,go,2,0,"p",22),t.YNc(2,Co,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.showAdvanced)("ngIfElse",e)}}function yo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.shortChannelId)}}function vo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.channelId)}}const Lo=function(n){return{"xs-scroll-y":n}},To=function(n,a){return{"mt-2":n,"mt-1":a}};let rt=(()=>{class n{constructor(e,i,o,s,c){this.dialogRef=e,this.data=i,this.logger=o,this.commonService=s,this.snackBar=c,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(R.mQ),t.Y36(N.v),t.Y36(Tt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:28,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return i.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ho,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,_o,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",11)(36,"h4",12),t._uU(37,"Private"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.qZA()(),t.TgZ(40,"div",11)(41,"h4",12),t._uU(42,"Funder"),t.qZA(),t.TgZ(43,"span",15),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",11)(48,"h4",12),t._uU(49,"State"),t.qZA(),t.TgZ(50,"span",15),t._uU(51),t.ALo(52,"titlecase"),t.qZA()(),t.TgZ(53,"div",11)(54,"h4",12),t._uU(55,"Buried"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.qZA()()(),t._UZ(58,"mat-divider",14),t.YNc(59,fo,29,14,"div",16),t.TgZ(60,"div",17),t.YNc(61,xo,4,2,"button",18),t.YNc(62,yo,2,1,"button",19),t.YNc(63,vo,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",i.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(23,Lo,i.screenSize===i.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===i.channelsType),t.xp6(5),t.Oqu(i.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(0===i.channel.channelFlags?"Yes":"No"),t.xp6(5),t.Oqu(i.channel.isFunder?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(52,21,i.channel.state)),t.xp6(6),t.Oqu(i.channel.buried?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",i.showAdvanced&&"open"===i.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(25,To,!i.showAdvanced,i.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType))},directives:[p.xw,p.Wh,p.yH,b.dk,q.BN,F.lW,b.dn,u.mk,E.oO,u.O5,$.d,W.h,bt.y],pipes:[u.rS,u.JJ],styles:[""]}),n})();function bo(n,a){1&n&&t._UZ(0,"mat-progress-bar",30)}function Ao(n,a){1&n&&(t.TgZ(0,"th",31),t._uU(1," Short Channel ID "),t.qZA())}function So(n,a){if(1&n&&(t.TgZ(0,"span",37),t._UZ(1,"fa-icon",38),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Zo(n,a){if(1&n&&(t.TgZ(0,"span",39),t._UZ(1,"fa-icon",38),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Et=function(n){return{"max-width":n}};function wo(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33),t.YNc(2,So,2,1,"span",34),t.YNc(3,Zo,2,1,"span",35),t.TgZ(4,"span",36),t._uU(5),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(4,Et,i.screenSize===i.screenSizeEnum.XS?"12rem":"22rem")),t.xp6(1),t.Q6J("ngIf",0===e.channelFlags),t.xp6(1),t.Q6J("ngIf",0!==e.channelFlags),t.xp6(2),t.Oqu(null==e?null:e.shortChannelId)}}function Eo(n,a){1&n&&(t.TgZ(0,"th",31),t._uU(1," Alias "),t.qZA())}function Io(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33)(2,"span",36),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Et,i.screenSize===i.screenSizeEnum.XS?"12rem":"22rem")),t.xp6(2),t.Oqu(e.alias)}}function Oo(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Base Fee (mSats) "),t.qZA())}function Fo(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function qo(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Fee Rate (mili mSats) "),t.qZA())}function Ro(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function No(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Local Balance (Sats) "),t.qZA())}function ko(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Po(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Do(n,a){if(1&n&&(t.TgZ(0,"td",32)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Uo(n,a){1&n&&(t.TgZ(0,"th",42),t._uU(1,"Balance Score "),t.qZA())}function Mo(n,a){if(1&n&&(t.TgZ(0,"td",43)(1,"div",44)(2,"mat-hint",45),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",46),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function Jo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",47)(1,"div",48)(2,"mat-select",49),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Qo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",51)(1,"div",52)(2,"mat-select",53),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",50),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(s)}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!1)}),t._uU(9,"Close Channel"),t.qZA(),t.TgZ(10,"mat-option",50),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(11,"Force Close"),t.qZA()()()()}}function Yo(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function Ho(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function Bo(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function zo(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Vo(n,a){if(1&n&&(t.TgZ(0,"td",54),t.YNc(1,Yo,2,0,"p",55),t.YNc(2,Ho,2,0,"p",55),t.YNc(3,Bo,2,0,"p",55),t.YNc(4,zo,2,1,"p",55),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Go=function(n){return{"display-none":n}};function Xo(n,a){if(1&n&&t._UZ(0,"tr",56),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Go,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function $o(n,a){1&n&&t._UZ(0,"tr",57)}function Wo(n,a){1&n&&t._UZ(0,"tr",58)}const Ko=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},jo=function(){return["no_peer"]};let ts=(()=>{class n{constructor(e,i,o,s,c){var h,g,T,Y,v,O;this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.router=c,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness","actions"]),this.selFilter=(null===(T=null===(g=null===(h=this.router.getCurrentNavigation())||void 0===h?void 0:h.extras)||void 0===g?void 0:g.state)||void 0===T?void 0:T.filter)?null===(O=null===(v=null===(Y=this.router.getCurrentNavigation())||void 0===Y?void 0:Y.extras)||void 0===v?void 0:v.state)||void 0===O?void 0:O.filter:""}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.loadChannelsTable()}onChannelUpdate(e){"all"!==e&&"NORMAL"!==e.state||(this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:e&&void 0!==e.feeBaseMsat?e.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:e&&void 0!==e.feeProportionalMillionths?e.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(s=>{if(s){const c=s[0].inputValue,h=s[1].inputValue;let g=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let T="";"all"===e?(this.activeChannels.forEach(Y=>{T=T+","+Y.nodeId}),T=T.substring(1),g={baseFeeMsat:c,feeRate:h,nodeIds:T}):g={baseFeeMsat:c,feeRate:h,nodeId:e.nodeId}}else{let T="";"all"===e?(this.activeChannels.forEach(Y=>{T=T+","+Y.channelId}),T=T.substring(1),g={baseFeeMsat:c,feeRate:h,channelIds:T}):g={baseFeeMsat:c,feeRate:h,channelId:e.channelId}}this.store.dispatch((0,k.pW)({payload:g}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,i){this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(h=>{h&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId,force:i}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"open",component:rt}}}))}loadChannelsTable(){this.activeChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(N.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,bo,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Ao,2,0,"th",10),t.YNc(11,wo,6,6,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Eo,2,0,"th",10),t.YNc(14,Io,4,4,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Oo,2,0,"th",14),t.YNc(17,Fo,4,4,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,qo,2,0,"th",14),t.YNc(20,Ro,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,No,2,0,"th",14),t.YNc(23,ko,4,4,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,Po,2,0,"th",14),t.YNc(26,Do,4,4,"td",11),t.BQk(),t.ynx(27,18),t.YNc(28,Uo,2,0,"th",19),t.YNc(29,Mo,6,4,"td",20),t.BQk(),t.ynx(30,21),t.YNc(31,Jo,8,0,"th",22),t.YNc(32,Qo,12,0,"td",23),t.BQk(),t.ynx(33,24),t.YNc(34,Vo,5,4,"td",25),t.BQk(),t.YNc(35,Xo,1,3,"tr",26),t.YNc(36,$o,1,0,"tr",27),t.YNc(37,Wo,1,0,"tr",28),t.qZA()(),t._UZ(38,"mat-paginator",29),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,Ko,""!==i.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(13,jo)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,q.BN,y.bx,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.JJ],styles:[".mat-column-shortChannelId[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-shortChannelId[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{padding-left:1rem;flex:0 0 15%;width:15%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;flex:0 0 17%;width:17%}.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 56.25em){.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset;flex:1 1 20%;width:20%}}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-feeBaseMsat[_ngcontent-%COMP%], .mat-column-feeProportionalMillionths[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();function es(n,a){1&n&&t._UZ(0,"mat-progress-bar",25)}function ns(n,a){1&n&&(t.TgZ(0,"th",26),t._uU(1," State "),t.qZA())}function is(n,a){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,null==e?null:e.state),"")}}function as(n,a){1&n&&(t.TgZ(0,"th",26),t._uU(1," Alias "),t.qZA())}function os(n,a){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.alias)}}function ss(n,a){1&n&&(t.TgZ(0,"th",28),t._uU(1," Local Balance (Sats) "),t.qZA())}function ls(n,a){if(1&n&&(t.TgZ(0,"td",27)(1,"span",29),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function rs(n,a){1&n&&(t.TgZ(0,"th",28),t._uU(1," Remote Balance (Sats) "),t.qZA())}function cs(n,a){if(1&n&&(t.TgZ(0,"td",27)(1,"span",29),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function us(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",30)(1,"div",31)(2,"mat-select",32),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",33),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ps(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",34)(1,"button",35),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function ms(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function ds(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function hs(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function _s(n,a){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,ms,2,0,"p",37),t.YNc(2,ds,2,0,"p",37),t.YNc(3,hs,2,1,"p",37),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const fs=function(n){return{"display-none":n}};function gs(n,a){if(1&n&&t._UZ(0,"tr",38),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,fs,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Cs(n,a){1&n&&t._UZ(0,"tr",39)}function xs(n,a){1&n&&t._UZ(0,"tr",40)}const ys=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},vs=function(){return["no_channel"]};let Ls=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.commonService=o,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["state","alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","alias","toLocal","toRemote","actions"])}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"pending",component:rt}}}))}loadChannelsTable(){this.pendingChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,es,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,ns,2,0,"th",10),t.YNc(11,is,3,3,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,as,2,0,"th",10),t.YNc(14,os,2,1,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,ss,2,0,"th",14),t.YNc(17,ls,4,4,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,rs,2,0,"th",14),t.YNc(20,cs,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,us,6,0,"th",17),t.YNc(23,ps,3,0,"td",18),t.BQk(),t.ynx(24,19),t.YNc(25,_s,4,3,"td",20),t.BQk(),t.YNc(26,gs,1,3,"tr",21),t.YNc(27,Cs,1,0,"tr",22),t.YNc(28,xs,1,0,"tr",23),t.qZA()(),t._UZ(29,"mat-paginator",24),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,ys,""!==i.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(13,vs)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var ct=f(5615);const Ts=["peersForm"],bs=["stepper"];function As(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Ss(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Zs(n,a){if(1&n&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function ws(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Es(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Is(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Os(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Fs(n,a){if(1&n&&(t.TgZ(0,"div",33),t._UZ(1,"fa-icon",34),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let qs=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.formBuilder=s,this.actions=c,this.logger=h,this.faExclamationTriangle=L.eHv,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[m.kI.required]],peerAddress:[this.peerAddress,[m.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[m.kI.required,m.kI.min(1),m.kI.max(this.totalBalance)]],isPrivate:[!1],feeRate:[null],hiddenAmount:["",[m.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.NEWLY_ADDED_PEER_ECL||e.type===l.lr.FETCH_CHANNELS_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(e.payload),this.flgEditable=!1,this.newlyAddedPeer=e.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),e.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&("SaveNewPeer"===e.payload.action?this.peerConnectionError=e.payload.message:"SaveNewChannel"===e.payload.action&&(this.channelConnectionError=e.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,k.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,k.YX)({payload:{nodeId:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var i,o,s,c;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(i=this.newlyAddedPeer)||void 0===i?void 0:i.alias)?this.newlyAddedPeer.alias:null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(s=this.newlyAddedPeer)||void 0===s?void 0:s.alias)?this.newlyAddedPeer.alias:null===(c=this.newlyAddedPeer)||void 0===c?void 0:c.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.so),t.Y36(U.WI),t.Y36(w.yh),t.Y36(m.qu),t.Y36(G.eX),t.Y36(R.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ts,5),t.Gf(bs,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.stepper=o.first)}},decls:50,vars:20,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","formControlName","feeRate","placeholder","Fee (Sats/vByte)","type","number","name","feeRate","tabindex","7",3,"step","min"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(s){return i.stepSelectionChanged(s)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,As,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Ss,2,0,"mat-error",14),t.qZA(),t.YNc(18,Zs,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return i.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,ws,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Es,2,0,"mat-error",14),t.YNc(34,Is,2,0,"mat-error",14),t.YNc(35,Os,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"div",25)(37,"mat-slide-toggle",26),t._uU(38,"Private Channel"),t.qZA()()(),t.TgZ(39,"div",27)(40,"div",28)(41,"mat-form-field",1),t._UZ(42,"input",29),t.qZA()()()(),t.YNc(43,Fs,4,2,"div",15),t.TgZ(44,"div",16)(45,"button",30),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(46),t.qZA()()()()(),t.TgZ(47,"div",31)(48,"button",32),t.NdJ("click",function(){return i.onClose()}),t._uU(49),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",i.peerFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==i.peerFormGroup.controls.peerAddress.errors?null:i.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==i.peerConnectionError),t.xp6(3),t.Oqu(""!==i.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",i.channelFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",i.totalBalance-(i.channelFormGroup.controls.fundingAmount.value?i.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(7),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",""!==i.channelConnectionError),t.xp6(3),t.Oqu(""!==i.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=i.newlyAddedPeer&&i.newlyAddedPeer.nodeId?"Do It Later":"Close"))},directives:[p.xw,p.yH,b.dk,p.Wh,F.lW,b.dn,ct.Vq,ct.C0,m._Y,m.JL,m.sg,ct.VY,y.KE,M.Nt,m.Fj,W.h,m.JJ,m.u,m.Q7,u.O5,y.TO,q.BN,m.wV,y.bx,y.R9,Zt.Rr,m.qQ,K.q],styles:[""]}),n})();function Rs(n,a){1&n&&t._UZ(0,"mat-progress-bar",37)}function Ns(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," ID "),t.qZA())}const ut=function(n){return{"max-width":n}};function ks(n,a){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.hij(" ",null==e?null:e.nodeId," ")}}function Ps(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Alias "),t.qZA())}const It=function(n){return{"mr-0":n}};function Ds(n,a){if(1&n&&t._UZ(0,"span",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,It,e.screenSize===e.screenSizeEnum.XS))}}function Us(n,a){if(1&n&&t._UZ(0,"span",45),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,It,e.screenSize===e.screenSizeEnum.XS))}}function Ms(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,Ds,1,3,"span",42),t.YNc(2,Us,1,3,"span",43),t._uU(3),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(4,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"25rem")),t.xp6(1),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state),t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function Js(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," State "),t.qZA())}function Qs(n,a){if(1&n&&(t.TgZ(0,"td",46),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.state," ")}}function Ys(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1," Network Address "),t.qZA())}function Hs(n,a){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("ngStyle",t.VKq(2,ut,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.hij(" ",null==e?null:e.address," ")}}function Bs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1," Channels "),t.qZA())}function zs(n,a){if(1&n&&(t.TgZ(0,"td",48),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.channels," ")}}function Vs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Gs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",52),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onPeerDetach(o)}),t._uU(1,"Disconnect"),t.qZA()}}function Xs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",52),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onConnectPeer(o)}),t._uU(1,"Reconnect"),t.qZA()}}function $s(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",53)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onPeerClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",52),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onOpenChannel(s)}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,Gs,2,0,"mat-option",54),t.YNc(9,Xs,2,0,"mat-option",54),t.qZA()()()}if(2&n){const e=a.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function Ws(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function Ks(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function js(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function tl(n,a){if(1&n&&(t.TgZ(0,"td",55),t.YNc(1,Ws,2,0,"p",56),t.YNc(2,Ks,2,0,"p",56),t.YNc(3,js,2,1,"p",56),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const el=function(n){return{"display-none":n}};function nl(n,a){if(1&n&&t._UZ(0,"tr",57),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,el,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function il(n,a){1&n&&t._UZ(0,"tr",58)}function al(n,a){1&n&&t._UZ(0,"tr",59)}const ol=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},sl=function(){return["no_peer"]};let ll=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.store=i,this.rtlEffects=o,this.actions=s,this.commonService=c,this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","address","channels","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","address","channels","actions"])}ngOnInit(){this.store.select(C.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,Q.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,i){const o=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.nodeId,message:o}}}))}onConnectPeer(e){this.store.dispatch((0,Z.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:qs}}}))}onOpenChannel(e){this.store.dispatch((0,Z.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:wt}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,Z.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(i=>{i&&this.store.dispatch((0,k.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(e){this.peers=new r.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.peers.filterPredicate=(i,o)=>JSON.stringify(i).toLowerCase().includes(o),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(G.eX),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:42,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","nodeId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","state"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","channels"],["mat-header-cell","","class","px-2","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-cell",""],["mat-header-cell","","mat-sort-header","",1,"px-2"],["mat-cell","",1,"px-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return i.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"mat-form-field",9)(12,"div",10)(13,"input",11),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()()(),t.TgZ(14,"div",12),t.YNc(15,Rs,1,0,"mat-progress-bar",13),t.TgZ(16,"table",14,15),t.ynx(18,16),t.YNc(19,Ns,2,0,"th",17),t.YNc(20,ks,2,4,"td",18),t.BQk(),t.ynx(21,19),t.YNc(22,Ps,2,0,"th",20),t.YNc(23,Ms,4,6,"td",21),t.BQk(),t.ynx(24,22),t.YNc(25,Js,2,0,"th",17),t.YNc(26,Qs,2,1,"td",23),t.BQk(),t.ynx(27,24),t.YNc(28,Ys,2,0,"th",17),t.YNc(29,Hs,2,4,"td",18),t.BQk(),t.ynx(30,25),t.YNc(31,Bs,2,0,"th",26),t.YNc(32,zs,2,1,"td",27),t.BQk(),t.ynx(33,28),t.YNc(34,Vs,6,0,"th",29),t.YNc(35,$s,10,2,"td",30),t.BQk(),t.ynx(36,31),t.YNc(37,tl,4,3,"td",32),t.BQk(),t.YNc(38,nl,1,3,"tr",33),t.YNc(39,il,1,0,"tr",34),t.YNc(40,al,1,0,"tr",35),t.qZA()(),t._UZ(41,"mat-paginator",36),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",i.faUsers),t.xp6(5),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.peers)("ngClass",t.VKq(12,ol,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,sl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.yH,p.Wh,m._Y,m.JL,m.F,F.lW,q.BN,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-nodeId[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:2rem}.mat-column-address[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const rl=["queryRoutesForm"];function cl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function ul(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function pl(n,a){1&n&&t._UZ(0,"mat-progress-bar",21)}function ml(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," Alias "),t.qZA())}function dl(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function hl(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1," ID "),t.qZA())}function _l(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.nodeId," ")}}function fl(n,a){1&n&&(t.TgZ(0,"th",42)(1,"span",43),t._uU(2,"Actions"),t.qZA()())}function gl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onHopClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function Cl(n,a){1&n&&t._UZ(0,"tr",46)}function xl(n,a){1&n&&t._UZ(0,"tr",47)}const yl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};function vl(n,a){if(1&n&&(t.TgZ(0,"div",22)(1,"mat-expansion-panel",23)(2,"mat-expansion-panel-header")(3,"mat-panel-title",24)(4,"span",25),t._uU(5),t.qZA(),t.TgZ(6,"span",26),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",27)(10,"div",28)(11,"table",29,30),t.ynx(13,31),t.YNc(14,ml,2,0,"th",32),t.YNc(15,dl,2,1,"td",33),t.BQk(),t.ynx(16,34),t.YNc(17,hl,2,0,"th",32),t.YNc(18,_l,2,1,"td",33),t.BQk(),t.ynx(19,35),t.YNc(20,fl,3,0,"th",36),t.YNc(21,gl,3,0,"td",37),t.BQk(),t.YNc(22,Cl,1,0,"tr",38),t.YNc(23,xl,1,0,"tr",39),t.qZA()()()()()),2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.xp6(5),t.hij("Route ",i+1,""),t.xp6(2),t.Oqu(t.lcZ(8,7,e.amount/1e3)),t.xp6(4),t.Q6J("dataSource",o.qrHops[i])("ngClass",t.VKq(9,yl,"error"===o.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}let Ll=(()=>{class n{constructor(e,i,o){this.store=e,this.eclEffects=i,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.flgSticky=!1,this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","nodeId","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","nodeId","actions"])}ngOnInit(){this.qrHops[0]=new r.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((i,o)=>{this.qrHops[o]=new r.by([...i.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,k.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(st.o),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,i){if(1&e&&t.Gf(rl,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:28,vars:10,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Node ID","name","nodeId","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"pl-4","pr-3"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(o),t.MAs(2).form.valid&&i.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(c){return i.nodeId=c}),t.qZA(),t.YNc(10,cl,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.amount=c}),t.qZA(),t.YNc(13,ul,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.YNc(24,pl,1,0,"mat-progress-bar",18),t.TgZ(25,"div",19)(26,"div",0),t.YNc(27,vl,24,11,"div",20),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",i.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",i.nodeId),t.xp6(2),t.Q6J("ngIf",!i.nodeId),t.xp6(2),t.Q6J("ngModel",i.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!i.amount),t.xp6(8),t.Q6J("icon",i.faRoute),t.xp6(3),t.Q6J("ngIf",!0===i.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",i.allQRoutes))},directives:[p.xw,p.yH,m._Y,m.JL,m.F,p.Wh,q.BN,y.KE,M.Nt,m.Fj,m.Q7,m.JJ,m.On,u.O5,y.TO,m.wV,m.qQ,K.q,F.lW,J.pW,u.sg,z.ib,z.yz,z.yK,z.u4,H.$V,r.BZ,u.mk,E.oO,r.w1,r.fO,r.ge,r.Dz,r.ev,r.as,r.XQ,r.nj,r.Gk],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Tl(n,a){1&n&&t._UZ(0,"mat-progress-bar",29)}function bl(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," State "),t.qZA())}function Al(n,a){if(1&n&&(t.TgZ(0,"span",36),t._UZ(1,"fa-icon",37),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Sl(n,a){if(1&n&&(t.TgZ(0,"span",38),t._UZ(1,"fa-icon",37),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Ot=function(n){return{"max-width":n}};function Zl(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"div",32),t.YNc(2,Al,2,1,"span",33),t.YNc(3,Sl,2,1,"span",34),t.TgZ(4,"span",35),t._uU(5),t.ALo(6,"titlecase"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(6,Ot,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Q6J("ngIf",0===e.channelFlags),t.xp6(1),t.Q6J("ngIf",0!==e.channelFlags),t.xp6(2),t.Oqu(t.lcZ(6,4,null==e?null:e.state))}}function wl(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," Short Channel ID "),t.qZA())}function El(n,a){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function Il(n,a){1&n&&(t.TgZ(0,"th",30),t._uU(1," Alias "),t.qZA())}function Ol(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"div",32)(2,"span",35),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Ot,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(2),t.Oqu(e.alias)}}function Fl(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function ql(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Rl(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Nl(n,a){if(1&n&&(t.TgZ(0,"td",31)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function kl(n,a){1&n&&(t.TgZ(0,"th",41),t._uU(1,"Balance Score "),t.qZA())}function Pl(n,a){if(1&n&&(t.TgZ(0,"td",42)(1,"div",43)(2,"mat-hint",44),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",45),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function Dl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Ul(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",50)(1,"div",51)(2,"mat-select",52),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(7,"Force Close"),t.qZA()()()()}}function Ml(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function Jl(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function Ql(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Yl(n,a){if(1&n&&(t.TgZ(0,"td",53),t.YNc(1,Ml,2,0,"p",54),t.YNc(2,Jl,2,0,"p",54),t.YNc(3,Ql,2,1,"p",54),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Hl=function(n){return{"display-none":n}};function Bl(n,a){if(1&n&&t._UZ(0,"tr",55),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Hl,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function zl(n,a){1&n&&t._UZ(0,"tr",56)}function Vl(n,a){1&n&&t._UZ(0,"tr",57)}const Gl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Xl=function(){return["no_channel"]};let $l=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.totalBalance=0,this.displayedColumns=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","alias","toLocal","toRemote","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","shortChannelId","alias","toLocal","toRemote","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","shortChannelId","alias","toLocal","toRemote","balancedness","actions"])}ngOnInit(){this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,i){this.store.dispatch((0,Z.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[4])).subscribe(h=>{h&&this.store.dispatch((0,k.BL)({payload:{channelId:e.channelId||"",force:i}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}onChannelClick(e,i){this.store.dispatch((0,Z.qR)({payload:{data:{channel:e,channelsType:"inactive",component:rt}}}))}loadChannelsTable(){this.inactiveChannels.sort((e,i)=>e.alias===i.alias?0:i.alias?1:-1),this.channels=new r.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null,this.channels.filterPredicate=(e,i)=>JSON.stringify(e).toLowerCase().includes(i),this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(w.yh),t.Y36(tt.V),t.Y36(N.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Channels")}])],decls:36,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","alias"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return i.applyFilter()})("ngModelChange",function(s){return i.selFilter=s}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,Tl,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,bl,2,0,"th",10),t.YNc(11,Zl,7,8,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,wl,2,0,"th",10),t.YNc(14,El,2,1,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Il,2,0,"th",10),t.YNc(17,Ol,4,4,"td",11),t.BQk(),t.ynx(18,14),t.YNc(19,Fl,2,0,"th",15),t.YNc(20,ql,4,4,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,Rl,2,0,"th",15),t.YNc(23,Nl,4,4,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,kl,2,0,"th",18),t.YNc(26,Pl,6,4,"td",19),t.BQk(),t.ynx(27,20),t.YNc(28,Dl,6,0,"th",21),t.YNc(29,Ul,8,0,"td",22),t.BQk(),t.ynx(30,23),t.YNc(31,Yl,4,3,"td",24),t.BQk(),t.YNc(32,Bl,1,3,"tr",25),t.YNc(33,zl,1,0,"tr",26),t.YNc(34,Vl,1,0,"tr",27),t.qZA()(),t._UZ(35,"mat-paginator",28),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(11,Gl,""!==i.errorMessage)),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(13,Xl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",i.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[p.xw,p.Wh,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,u.O5,J.pW,r.BZ,A.YE,u.mk,E.oO,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,X.gM,q.BN,y.bx,D.gD,D.$L,B.ey,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-state[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-state[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 20%;width:20%}.mat-column-shortChannelId[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-shortChannelId[_ngcontent-%COMP%], .mat-column-toLocal[_ngcontent-%COMP%], .mat-column-toRemote[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();var Wl=f(9445);function Kl(n,a){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function jl(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"mat-form-field",8)(3,"input",9),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().filterValue=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.filterValue)}}function tr(n,a){1&n&&t._UZ(0,"mat-progress-bar",32)}function er(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Date/Time"),t.qZA())}const nr=function(n){return{"ml-0":n}};function ir(n,a){if(1&n&&(t._UZ(0,"span",36),t.ALo(1,"camelcase")),2&n){const e=t.oxw().$implicit,i=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==e?null:e.type)),t.Q6J("ngClass",t.VKq(4,nr,i.screenSize===i.screenSizeEnum.XS))}}function ar(n,a){if(1&n&&(t.TgZ(0,"td",34),t.YNc(1,ir,2,6,"span",35),t._uU(2),t.ALo(3,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==e?null:e.type)),t.xp6(1),t.hij(" ",t.xi3(3,2,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function or(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"In Channel"),t.qZA())}const Ft=function(n){return{"max-width":n}};function sr(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Ft,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Oqu(null==e?null:e.fromChannelAlias)}}function lr(n,a){1&n&&(t.TgZ(0,"th",33),t._uU(1,"Out Channel"),t.qZA())}function rr(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,Ft,i.screenSize===i.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.Oqu(null==e?null:e.toChannelAlias)}}function cr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Amount In (Sats)"),t.qZA())}function ur(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountIn))}}function pr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Amount Out (Sats)"),t.qZA())}function mr(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountOut))}}function dr(n,a){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function hr(n,a){if(1&n&&(t.TgZ(0,"td",34)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function _r(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function fr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function gr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function Cr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function xr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function yr(n,a){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,gr,2,0,"p",47),t.YNc(2,Cr,2,0,"p",47),t.YNc(3,xr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const vr=function(n){return{"display-none":n}};function Lr(n,a){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,vr,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function Tr(n,a){1&n&&t._UZ(0,"tr",49)}function br(n,a){1&n&&t._UZ(0,"tr",50)}const Ar=function(){return["no_event"]};function Sr(n,a){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,tr,1,0,"mat-progress-bar",11),t.TgZ(2,"table",12,13),t.ynx(4,14),t.YNc(5,er,2,0,"th",15),t.YNc(6,ar,4,5,"td",16),t.BQk(),t.ynx(7,17),t.YNc(8,or,2,0,"th",15),t.YNc(9,sr,2,4,"td",18),t.BQk(),t.ynx(10,19),t.YNc(11,lr,2,0,"th",15),t.YNc(12,rr,2,4,"td",18),t.BQk(),t.ynx(13,20),t.YNc(14,cr,2,0,"th",21),t.YNc(15,ur,4,3,"td",16),t.BQk(),t.ynx(16,22),t.YNc(17,pr,2,0,"th",21),t.YNc(18,mr,4,3,"td",16),t.BQk(),t.ynx(19,23),t.YNc(20,dr,2,0,"th",21),t.YNc(21,hr,4,3,"td",16),t.BQk(),t.ynx(22,24),t.YNc(23,_r,6,0,"th",25),t.YNc(24,fr,3,0,"td",26),t.BQk(),t.ynx(25,27),t.YNc(26,yr,4,3,"td",28),t.BQk(),t.YNc(27,Lr,1,3,"tr",29),t.YNc(28,Tr,1,0,"tr",30),t.YNc(29,br,1,0,"tr",31),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,Ar)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Zr(n,a){if(1&n&&t._UZ(0,"mat-paginator",51),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let qt=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.eventsData=[],this.filterValue="",this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","actions"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","fee","actions"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amountIn","amountOut","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee","actions"])}ngOnInit(){this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{0===this.eventsData.length&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData))})}ngAfterViewInit(){this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,i){const o=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel Id",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel Id",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&(null==o||o.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}])),this.store.dispatch((0,Z.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:o}}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new r.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(i,o)=>"fee"===o?i.amountIn-i.amountOut:i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.forwardingHistoryEvents.filterPredicate=(i,o)=>{var s;return((i.timestamp?null===(s=this.datePipe.transform(new Date(i.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===s?void 0:s.toLowerCase():"")+JSON.stringify(i).toLowerCase()).includes(o)},this.forwardingHistoryEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(A.YE,5),t.Gf(S.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromChannelAlias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","toChannelAlias"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Kl,2,1,"div",1),t.YNc(2,jl,4,1,"div",2),t.YNc(3,Sr,30,7,"div",3),t.YNc(4,Zr,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[p.xw,p.Wh,u.O5,p.yH,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,J.pW,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,X.gM,u.mk,E.oO,u.PC,E.Zl,D.gD,D.$L,B.ey,F.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[Wl.h9,u.uU,u.JJ],styles:[".mat-column-fromAlias[_ngcontent-%COMP%]{padding-left:2rem;flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-toAlias[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 20%;width:20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const wr=["tableIn"],Er=["tableOut"],Ir=["paginatorIn"],Or=["paginatorOut"];function Fr(n,a){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function qr(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function Rr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Channel ID"),t.qZA())}const nt=function(n){return{"max-width":n}};function Nr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.channelId)}}function kr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Peer Alias"),t.qZA())}function Pr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.alias)}}function Dr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function Ur(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Mr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Jr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function Qr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function Yr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function Hr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function Br(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function zr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Vr(n,a){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,Hr,2,0,"p",43),t.YNc(2,Br,2,0,"p",43),t.YNc(3,zr,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Rt=function(n){return{"display-none":n}};function Gr(n,a){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Rt,(null==e.RoutingPeersIncoming?null:e.RoutingPeersIncoming.data)&&(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function Xr(n,a){1&n&&t._UZ(0,"tr",45)}function $r(n,a){1&n&&t._UZ(0,"tr",46)}function Wr(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function Kr(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Channel ID"),t.qZA())}function jr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.channelId)}}function tc(n,a){1&n&&(t.TgZ(0,"th",37),t._uU(1,"Peer Alias"),t.qZA())}function ec(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,nt,i.screenSize===i.screenSizeEnum.XS?"5rem":"10rem")),t.xp6(1),t.Oqu(e.alias)}}function nc(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function ic(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function ac(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function oc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function sc(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function lc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function rc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function cc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function uc(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function pc(n,a){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,rc,2,0,"p",43),t.YNc(2,cc,2,0,"p",43),t.YNc(3,uc,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function mc(n,a){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Rt,(null==e.RoutingPeersOutgoing?null:e.RoutingPeersOutgoing.data)&&(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function dc(n,a){1&n&&t._UZ(0,"tr",45)}function hc(n,a){1&n&&t._UZ(0,"tr",46)}const _c=function(n,a){return{"mt-2":n,"mt-1":a}},fc=function(){return["no_incoming_event"]},gc=function(n){return{"mt-2":n}},Cc=function(){return["no_outgoing_event"]};function xc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t.TgZ(5,"mat-form-field",8)(6,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyIncomingFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().filterIn=o}),t.qZA()()(),t.TgZ(7,"div",10),t.YNc(8,qr,1,0,"mat-progress-bar",11),t.TgZ(9,"table",12,13),t.ynx(11,14),t.YNc(12,Rr,2,0,"th",15),t.YNc(13,Nr,2,4,"td",16),t.BQk(),t.ynx(14,17),t.YNc(15,kr,2,0,"th",15),t.YNc(16,Pr,2,4,"td",16),t.BQk(),t.ynx(17,18),t.YNc(18,Dr,2,0,"th",19),t.YNc(19,Ur,4,3,"td",20),t.BQk(),t.ynx(20,21),t.YNc(21,Mr,2,0,"th",19),t.YNc(22,Jr,4,3,"td",20),t.BQk(),t.ynx(23,22),t.YNc(24,Qr,2,0,"th",19),t.YNc(25,Yr,4,3,"td",20),t.BQk(),t.ynx(26,23),t.YNc(27,Vr,4,3,"td",24),t.BQk(),t.YNc(28,Gr,1,3,"tr",25),t.YNc(29,Xr,1,0,"tr",26),t.YNc(30,$r,1,0,"tr",27),t.qZA()(),t._UZ(31,"mat-paginator",28,29),t.qZA(),t.TgZ(33,"div",30)(34,"div",6)(35,"div",7),t._uU(36,"Outgoing"),t.qZA(),t.TgZ(37,"mat-form-field",8)(38,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyOutgoingFilter()})("ngModelChange",function(o){return t.CHM(e),t.oxw().filterOut=o}),t.qZA()()(),t.TgZ(39,"div",31),t.YNc(40,Wr,1,0,"mat-progress-bar",11),t.TgZ(41,"table",32,33),t.ynx(43,14),t.YNc(44,Kr,2,0,"th",15),t.YNc(45,jr,2,4,"td",16),t.BQk(),t.ynx(46,17),t.YNc(47,tc,2,0,"th",15),t.YNc(48,ec,2,4,"td",16),t.BQk(),t.ynx(49,18),t.YNc(50,nc,2,0,"th",19),t.YNc(51,ic,4,3,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,ac,2,0,"th",19),t.YNc(54,oc,4,3,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,sc,2,0,"th",19),t.YNc(57,lc,4,3,"td",20),t.BQk(),t.ynx(58,34),t.YNc(59,pc,4,3,"td",24),t.BQk(),t.YNc(60,mc,1,3,"tr",25),t.YNc(61,dc,1,0,"tr",26),t.YNc(62,hc,1,0,"tr",27),t.qZA(),t._UZ(63,"mat-paginator",28,35),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,_c,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(4),t.Q6J("ngModel",e.filterIn),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,fc)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,gc,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(4),t.Q6J("ngModel",e.filterOut),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,Cc)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let yc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.routingPeersData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===l.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","totalFee"]):this.screenSize===l.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalFee"]):this.screenSize===l.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","totalAmount","totalFee"]):(this.flgSticky=!0,this.displayedColumns=["channelId","alias","events","totalAmount","totalFee"])}ngOnInit(){this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}loadRoutingPeersTable(e){if(e.length>0){const i=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new r.by(i[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new r.by(i[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(o,s)=>JSON.stringify(o).toLowerCase().includes(s),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new r.by([]),this.RoutingPeersOutgoing=new r.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(e){const i=[],o=[];return e.forEach(s=>{const c=i.find(g=>g.channelId===s.fromChannelId),h=o.find(g=>g.channelId===s.toChannelId);c?(c.events++,c.totalAmount=+c.totalAmount+ +s.amountIn,c.totalFee=s.amountIn-s.amountOut+ +c.totalFee):i.push({channelId:s.fromChannelId,alias:s.fromChannelAlias,events:1,totalAmount:+s.amountIn,totalFee:s.amountIn-s.amountOut}),h?(h.events++,h.totalAmount=+h.totalAmount+ +s.amountOut,h.totalFee=s.amountIn-s.amountOut+ +h.totalFee):o.push({channelId:s.toChannelId,alias:s.toChannelAlias,events:1,totalAmount:+s.amountOut,totalFee:s.amountIn-s.amountOut})}),[this.commonService.sortDescByKey(i,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(wr,5,A.YE),t.Gf(Er,5,A.YE),t.Gf(Ir,5),t.Gf(Or,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sortIn=o.first),t.iGM(o=t.CRH())&&(i.sortOut=o.first),t.iGM(o=t.CRH())&&(i.paginatorIn=o.first),t.iGM(o=t.CRH())&&(i.paginatorOut=o.first)}},features:[t._Bn([{provide:S.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Fr,2,1,"div",1),t.YNc(2,xc,65,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[p.xw,p.Wh,u.O5,p.yH,u.mk,E.oO,y.KE,M.Nt,m.Fj,m.JJ,m.On,H.$V,J.pW,r.BZ,A.YE,r.w1,r.fO,r.ge,A.nU,r.Dz,r.ev,u.PC,E.Zl,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,S.NW],pipes:[u.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function vc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let Lc=(()=>{class n{constructor(e){this.router=e,this.faChartBar=L.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,vc,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartBar),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,x.lC],styles:[""]}),n})();var Nt=f(7772),kt=f(7671),Pt=f(1210);function Tc(n,a){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function bc(n,a){1&n&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function Ac(n,a){if(1&n&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=a.model,i=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(i.selReportBy===i.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(i.selReportBy===i.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function Sc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Ac,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Zc(n,a){if(1&n&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&n){const e=t.oxw();t.Q6J("eventsData",e.filteredEventsBySelectedPeriod)("filterValue",e.eventFilterValue)}}let wc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,i){const o=Math.round(e.getTime()/1e3),s=Math.round(i.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+i.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(c=>{Math.floor((c.timestamp||0)/1e3)>=o&&Math.floor((c.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalEvents:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}prepareEventsReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalFees:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:17,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(s){return i.selReportBy=s})("change",function(){return i.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,Tc,4,8,"div",8),t.YNc(12,bc,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,Sc,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,Zc,1,2,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",i.selReportBy),t.xp6(3),t.s9C("value",i.reportBy.FEES),t.xp6(2),t.s9C("value",i.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",i.routingReportData.length<=0||i.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",i.filteredEventsBySelectedPeriod.length>0))},directives:[p.xw,p.Wh,p.yH,kt.D,et.VQ,m.JJ,m.On,et.U0,u.O5,Pt.K$,qt],pipes:[u.JJ],styles:[""],data:{animation:[Nt.J]}}),n})();var Ec=f(165);function Ic(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Oc(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Fc(n,a){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Ic,4,7,"div",9),t.YNc(2,Oc,4,7,"div",9),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function qc(n,a){1&n&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function Rc(n,a){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=a.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Nc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Rc,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function kc(n,a){if(1&n&&t._UZ(0,"rtl-transactions-report-table",15),2&n){const e=t.oxw();t.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let Pc=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0]),(0,it.M)(this.store.select(C.Ef))).subscribe(([e,i])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=i.invoices?i.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,i){var o,s;const c=Math.round(e.getTime()/1e3),h=Math.round(i.getTime()/1e3),g=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const T=null===(o=this.payments)||void 0===o?void 0:o.filter(v=>v.firstPartTimestamp&&Math.floor(v.firstPartTimestamp/1e3)>=c&&Math.floor(v.firstPartTimestamp/1e3)"received"===v.status&&v.timestamp&&v.timestamp>=c&&v.timestamp{const O=new Date(v.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(v.recipientAmount||0),g[O].series[0].value=g[O].series[0].value+v.recipientAmount,g[O].series[0].extra.total=g[O].series[0].extra.total+1,this.transactionsReportSummary}),null==Y||Y.map(v=>{const O=new Date(1e3*(v.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(v.amountSettled||0),g[O].series[1].value=g[O].series[1].value+v.amountSettled,g[O].series[1].extra.total=g[O].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let v=0;v{const O=Math.floor((Math.floor((v.firstPartTimestamp||0)/1e3)-c)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(v.recipientAmount||0),g[O].series[0].value=g[O].series[0].value+v.recipientAmount,g[O].series[0].extra.total=g[O].series[0].extra.total+1,this.transactionsReportSummary}),null==Y||Y.map(v=>{const O=Math.floor(((v.timestamp||0)-c)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(v.amountSettled||0),g[O].series[1].value=g[O].series[1].value+v.amountSettled,g[O].series[1].extra.total=g[O].series[1].extra.total+1,this.transactionsReportSummary})}return g}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(R.mQ),t.Y36(N.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,Fc,3,3,"div",3),t.YNc(4,qc,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,Nc,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,kc,1,3,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",i.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0))},directives:[p.xw,p.Wh,p.yH,kt.D,u.O5,Pt.H5,Ec.g],pipes:[u.JJ],styles:[""],data:{animation:[Nt.J]}}),n})();var I=f(1643),Dc=f(9442);function Uc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}const Qc=x.Bz.forChild([{path:"",component:mt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:ki,canActivate:[I.fY]},{path:"onchain",component:Ca,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:Va,canActivate:[I.fY]},{path:"send",component:Ga,canActivate:[I.fY]}]},{path:"connections",component:va,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:mo,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:ts,canActivate:[I.fY]},{path:"pending",component:Ls,canActivate:[I.fY]},{path:"inactive",component:$l,canActivate:[I.fY]}]},{path:"peers",component:ll,canActivate:[I.fY]}]},{path:"transactions",component:Ta,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:xt,canActivate:[I.fY]},{path:"invoices",component:gt,canActivate:[I.fY]}]},{path:"routing",component:Aa,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:qt,canActivate:[I.fY]},{path:"peers",component:yc,canActivate:[I.fY]}]},{path:"reports",component:Lc,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:wc,canActivate:[I.fY]},{path:"transactions",component:Pc,canActivate:[I.fY]}]},{path:"graph",component:(()=>{class n{constructor(e){this.router=e,this.faSearch=L.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Uc,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faSearch),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[p.xw,p.Wh,q.BN,b.a8,b.dn,P.BU,u.sg,P.Nj,x.rH,p.yH,x.lC],styles:[""]}),n})(),canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Ba,canActivate:[I.fY]},{path:"queryroutes",component:Ll,canActivate:[I.fY]}]},{path:"**",component:Dc.w}]}]);var Yc=f(8750);let Hc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[mt]}),n.\u0275inj=t.cJS({providers:[I.fY],imports:[[u.ez,Yc.m,Qc]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/515.73bff63b24de0558.js b/frontend/515.73bff63b24de0558.js new file mode 100644 index 00000000..8a1108e1 --- /dev/null +++ b/frontend/515.73bff63b24de0558.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[515],{1515:($d,It,g)=>{g.r(It),g.d(It,{LNDModule:()=>Kd});var u=g(9808),v=g(1402),ce=g(8878),t=g(5e3),m=g(7093),J=g(5899);function pe(n,i){1&n&&t._UZ(0,"mat-progress-bar",3)}let Rt=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof v.OD:this.loading=!0;break;case o instanceof v.m2:case o instanceof v.gk:case o instanceof v.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,pe,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[m.xw,m.yH,m.Wh,u.O5,J.pW,v.lC],styles:[""],data:{animation:[ce.g]}}),n})();var d=g(7579),_=g(2722),H=g(9300),Dt=g(534),b=g(801),s=g(7731),T=g(6529),N=g(5043),S=g(5620),j=g(6642),O=g(62),D=g(9444),Ct=g(3954),y=g(9224),q=g(7423),wt=g(2181),$=g(5245),L=g(3322);const Qt=function(n){return{backgroundColor:n}};function ue(n,i){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,Qt,null==e.information?null:e.information.color))}}function me(n,i){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,Qt,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function de(n,i){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Jt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(e=>{this.chains.push(this.commonService.titleCase(e.chain)+" "+this.commonService.titleCase(e.network))}))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,ue,1,3,"span",3),t.qZA()(),t.YNc(7,me,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,de,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==o.information?null:o.information.alias," "),t.xp6(1),t.Q6J("ngIf",!o.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",o.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),t.xp6(4),t.Q6J("ngForOf",o.chains))},directives:[m.xw,m.yH,m.Wh,u.O5,u.PC,L.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function he(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,null==e.balances?null:e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",(null==e.balances?null:e.balances.lightning)/(null==e.balances?null:e.balances.total)*100),t.xp6(5),t.hij("",t.lcZ(13,7,null==e.balances?null:e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",(null==e.balances?null:e.balances.onchain)/(null==e.balances?null:e.balances.total)*100),t.xp6(5),t.hij("",t.lcZ(20,9,null==e.balances?null:e.balances.total)," Sats")}}function _e(n,i){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let fe=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,he,21,11,"div",0),t.YNc(1,_e,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf"," "===o.errorMessage)("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh,J.pW],pipes:[u.JJ],styles:[""]}),n})();var C=g(7322),K=g(7238),V=g(4834),z=g(8129);const ge=function(){return["../connections/channels/open"]},Ce=function(n){return{filter:n}};function xe(n,i){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.remote_alias||e.remote_pubkey),t.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),t.Q6J("routerLink",t.DdM(21,ge))("state",t.VKq(22,Ce,e.chan_id)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":""," "),t.xp6(6),t.hij("",t.lcZ(9,15,e.local_balance||0)," Sats"),t.xp6(3),t.Q6J("icon",o.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,17,e.balancedness||0),") "),t.xp6(5),t.hij("",t.lcZ(18,19,e.remote_balance||0)," Sats"),t.xp6(2),t.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function ye(n,i){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,xe,20,24,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function Te(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ye,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(2);t.xp6(8),t.hij("",t.lcZ(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0)," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,9,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.lcZ(18,11,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0)," Sats"),t.xp6(2),t.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",o)}}function ve(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function be(n,i){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let we=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=b.DL8,this.faDumbbell=b.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Te,24,13,"div",0),t.YNc(1,ve,4,0,"ng-template",null,1,t.W1O),t.YNc(3,be,3,1,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(4);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,m.yH,C.bx,D.BN,K.gM,J.pW,V.d,z.$V,u.sg,v.yS,q.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function Ze(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()(),t.TgZ(20,"div",6),t._UZ(21,"h4",7)(22,"span",5),t.qZA()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Transactions"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Transactions"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Transactions"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()(),t.TgZ(42,"div",6),t._UZ(43,"h4",7)(44,"span",5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.day_fee_sum)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.week_fee_sum)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.month_fee_sum)," Sats"),t.xp6(10),t.Oqu(t.lcZ(29,12,null==e.fees?null:e.fees.daily_tx_count)),t.xp6(6),t.Oqu(t.lcZ(35,14,null==e.fees?null:e.fees.weekly_tx_count)),t.xp6(6),t.Oqu(t.lcZ(41,16,null==e.fees?null:e.fees.monthly_tx_count))}}function Ae(n,i){if(1&n&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Et=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),o=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Ze,45,18,"div",0),t.YNc(1,Ae,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function Le(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()(),t.TgZ(23,"div")(24,"h4",4),t._uU(25,"Closing"),t.qZA(),t.TgZ(26,"div",5),t._UZ(27,"span",9),t._uU(28),t.ALo(29,"number"),t.qZA()()(),t.TgZ(30,"div",3)(31,"div")(32,"h4",4),t._uU(33,"Capacity"),t.qZA(),t.TgZ(34,"div",5),t._uU(35),t.ALo(36,"number"),t.qZA()(),t.TgZ(37,"div")(38,"h4",4),t._uU(39,"Capacity"),t.qZA(),t.TgZ(40,"div",5),t._uU(41),t.ALo(42,"number"),t.qZA()(),t.TgZ(43,"div")(44,"h4",4),t._uU(45,"Capacity"),t.qZA(),t.TgZ(46,"div",5),t._uU(47),t.ALo(48,"number"),t.qZA()(),t.TgZ(49,"div")(50,"h4",4),t._uU(51,"Capacity"),t.qZA(),t.TgZ(52,"div",5),t._uU(53),t.ALo(54,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,8,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,10,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,12,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(29,14,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.num_channels)||0)),t.xp6(7),t.hij("",t.lcZ(36,16,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(42,18,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(48,20,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(54,22,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.capacity)||0)," Sats")}}function Se(n,i){if(1&n&&(t.TgZ(0,"div",10)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Ht=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Le,55,24,"div",0),t.YNc(1,Se,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf"," "===o.errorMessage)("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();var p=g(3075),Q=g(8966),st=g(7772),rt=g(9107),Y=g(5615),E=g(1125);function Fe(n,i){1&n&&t.GkF(0)}function ke(n,i){1&n&&t.GkF(0)}const qe=function(n){return{"h-5":n}};function Ne(n,i){if(1&n&&(t.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),t._uU(4),t.ALo(5,"number"),t.qZA()()(),t.YNc(6,ke,1,0,"ng-container",0),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(4);t.Q6J("expanded",e.panelExpanded)("ngClass",t.VKq(7,qe,!e.flgShowPanel)),t.xp6(4),t.AsE("Quote for ",e.termCaption," amount (",t.lcZ(5,5,e.quote.amount)," Sats)"),t.xp6(2),t.Q6J("ngTemplateOutlet",o)}}function Oe(n,i){if(1&n&&(t.TgZ(0,"div",19)(1,"h4",8),t._uU(2," Prepay Amount (Sats) "),t.TgZ(3,"mat-icon",20),t._uU(4,"info_outline"),t.qZA()(),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"number"),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu(t.lcZ(7,1,null==e.quote?null:e.quote.prepay_amt_sat))}}function Ue(n,i){1&n&&t._UZ(0,"mat-divider",13)}function Me(n,i){if(1&n&&(t.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),t._uU(3," Swap Server Node Pubkey "),t.TgZ(4,"mat-icon",22),t._uU(5,"info_outline"),t.qZA()(),t.TgZ(6,"span",10),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(7),t.Oqu(null==e.quote?null:e.quote.swap_payment_dest)}}function Pe(n,i){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4," Swap Fee (Sats) "),t.TgZ(5,"mat-icon",9),t._uU(6,"info_outline"),t.qZA()(),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"number"),t.qZA()(),t.TgZ(10,"div",7)(11,"h4",8),t._uU(12),t.TgZ(13,"mat-icon",11),t._uU(14,"info_outline"),t.qZA()(),t.TgZ(15,"span",10),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.YNc(18,Oe,8,3,"div",12),t.qZA(),t._UZ(19,"mat-divider",13),t.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),t._uU(23," Max Off-chain Swap Routing Fee (Sats) "),t.TgZ(24,"mat-icon",15),t._uU(25,"info_outline"),t.qZA()(),t.TgZ(26,"span",10),t._uU(27),t.ALo(28,"number"),t.qZA()(),t.TgZ(29,"div",14)(30,"h4",8),t._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),t.TgZ(32,"mat-icon",16),t._uU(33,"info_outline"),t.qZA()(),t.TgZ(34,"span",10),t._uU(35,"36"),t.qZA()()(),t.YNc(36,Ue,1,0,"mat-divider",17),t.YNc(37,Me,8,1,"div",18),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"30":"50"),t.xp6(6),t.Oqu(t.lcZ(9,9,null==e.quote?null:e.quote.swap_fee_sat)),t.xp6(2),t.Q6J("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"35":"50"),t.xp6(2),t.hij(" ",null!=e.quote&&e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=e.quote&&e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),t.xp6(4),t.Oqu(t.lcZ(17,11,null!=e.quote&&e.quote.htlc_sweep_fee_sat?e.quote.htlc_sweep_fee_sat:null!=e.quote&&e.quote.htlc_publish_fee_sat?e.quote.htlc_publish_fee_sat:0)),t.xp6(2),t.Q6J("ngIf",null==e.quote?null:e.quote.prepay_amt_sat),t.xp6(9),t.Oqu(t.lcZ(28,13,(null==e.quote?null:e.quote.amount)*((null!=e.quote&&e.quote.off_chain_swap_routing_fee_percentage?null==e.quote?null:e.quote.off_chain_swap_routing_fee_percentage:2)/100))),t.xp6(9),t.Q6J("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest)),t.xp6(1),t.Q6J("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest))}}let Ie=(()=>{class n{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(e,o){if(1&e&&(t.YNc(0,Fe,1,0,"ng-container",0),t.YNc(1,Ne,7,9,"ng-template",null,1,t.W1O),t.YNc(3,Pe,38,15,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4);t.Q6J("ngTemplateOutlet",o.showPanel?a:l)}},directives:[u.tP,E.ib,m.yH,u.mk,L.oO,E.yz,E.yK,m.Wh,m.xw,$.Hw,K.gM,u.O5,V.d],pipes:[u.JJ],styles:[""]}),n})();var P=g(7531),W=g(3390),ct=g(2368),tt=g(9814);function Re(n,i){1&n&&t.GkF(0)}function De(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"span",4),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(null!=e.loopStatus&&e.loopStatus.error?null==e.loopStatus?null:e.loopStatus.error:"Unknown Error.")}}function Qe(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()()(),t._UZ(7,"mat-divider",8),t.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),t._uU(11,"HTLC Address"),t.qZA(),t.TgZ(12,"span",4),t._uU(13),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.loopStatus?null:e.loopStatus.id_bytes),t.xp6(7),t.Oqu(null==e.loopStatus?null:e.loopStatus.htlc_address)}}let Je=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(e,o){if(1&e&&(t.YNc(0,Re,1,0,"ng-container",0),t.YNc(1,De,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Qe,14,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4);t.Q6J("ngTemplateOutlet",null!=o.loopStatus&&o.loopStatus.error?a:l)}},directives:[u.tP,m.xw,m.yH,m.Wh,V.d],styles:[""]}),n})();var pt=g(113);function Ee(n,i){1&n&&t.GkF(0)}const ut=function(n,i){return{"small-svg":n,"large-svg":i}};function He(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),t._UZ(8,"circle",12)(9,"path",13),t.qZA(),t.TgZ(10,"g",14),t._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),t.qZA()()()()(),t.kcU(),t.TgZ(26,"div",30)(27,"mat-card-title"),t._uU(28,"Loop Out explained."),t.qZA()(),t.TgZ(29,"div",31)(30,"mat-card-subtitle",32),t._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ye(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",33)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),t._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),t.qZA(),t.TgZ(28,"g",56),t._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),t.qZA(),t._UZ(43,"path",71),t.qZA()(),t._UZ(44,"circle",72),t.qZA()()()(),t.kcU(),t.TgZ(45,"div",30)(46,"mat-card-title"),t._uU(47,"Step 1: Deciding to Loop Out"),t.qZA()(),t.TgZ(48,"div",31)(49,"mat-card-subtitle",32),t._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Be(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",73)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",74),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",75)(11,"g",76),t._UZ(12,"circle",77)(13,"path",78),t.TgZ(14,"g",79),t._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),t.qZA(),t.TgZ(18,"g",83),t._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),t.TgZ(29,"g",94)(30,"g",95),t._UZ(31,"g",96),t.qZA(),t._UZ(32,"g",97),t.qZA(),t._UZ(33,"path",98),t.qZA(),t.TgZ(34,"g",99)(35,"g",41)(36,"g",42),t._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),t.qZA(),t.TgZ(52,"g",56),t._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),t.qZA(),t._UZ(67,"path",111),t.qZA()()()()()(),t.kcU(),t.TgZ(68,"div",30)(69,"mat-card-title"),t._uU(70,"Step 2: Send lightning payment"),t.qZA()(),t.TgZ(71,"div",31)(72,"mat-card-subtitle",32),t._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function ze(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",112)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),t._UZ(9,"circle",12)(10,"path",117),t.qZA(),t.TgZ(11,"g",14),t._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),t.qZA()(),t.TgZ(27,"g",119),t._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),t.qZA(),t.TgZ(31,"g",121),t._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),t.TgZ(42,"g",94)(43,"g",95),t._UZ(44,"g",96),t.qZA(),t._UZ(45,"g",97),t.qZA(),t._UZ(46,"path",123),t.qZA()()()()(),t.kcU(),t.TgZ(47,"div",30)(48,"mat-card-title"),t._uU(49,"Step 3: Receive funds back"),t.qZA()(),t.TgZ(50,"div",31)(51,"mat-card-subtitle",32),t._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ge(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",124)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),t._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),t.qZA(),t.TgZ(28,"g",142)(29,"g",143)(30,"g",144),t._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),t.TgZ(34,"g",148),t._UZ(35,"path",149),t.qZA(),t._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),t.qZA(),t.TgZ(45,"g",159),t._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),t.qZA(),t._UZ(59,"path",173),t.qZA()()()()()(),t.kcU(),t.TgZ(60,"div",30)(61,"mat-card-title"),t._uU(62,"Done!"),t.qZA()(),t.TgZ(63,"div",31)(64,"mat-card-subtitle",32),t._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Ve=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(e,o){if(1&e&&(t.YNc(0,Ee,1,0,"ng-container",0),t.YNc(1,He,32,5,"ng-template",null,1,t.W1O),t.YNc(3,Ye,51,5,"ng-template",null,2,t.W1O),t.YNc(5,Be,74,5,"ng-template",null,3,t.W1O),t.YNc(7,ze,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Ge,66,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();function We(n,i){1&n&&t.GkF(0)}const mt=function(n,i){return{"small-svg":n,"large-svg":i}};function Xe(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),t._UZ(8,"circle",12)(9,"path",13),t.qZA(),t.TgZ(10,"g",14),t._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),t.qZA()()()()(),t.kcU(),t.TgZ(26,"div",30)(27,"mat-card-title"),t._uU(28,"Loop In explained."),t.qZA()(),t.TgZ(29,"div",31)(30,"mat-card-subtitle",32),t._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function je(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",33)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),t._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),t.qZA(),t.TgZ(28,"g",56)(29,"g",57)(30,"g",58),t._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),t.TgZ(34,"g",62),t._UZ(35,"path",63),t.qZA(),t._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),t.qZA(),t.TgZ(45,"g",73),t._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),t.qZA(),t._UZ(59,"path",87),t.qZA()()()()()(),t.kcU(),t.TgZ(60,"div",30)(61,"mat-card-title"),t._uU(62,"Step 1: Deciding to Loop In"),t.qZA()(),t.TgZ(63,"div",31)(64,"mat-card-subtitle",32),t._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ke(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",88)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",89),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),t._UZ(14,"circle",95)(15,"path",96),t.TgZ(16,"g",97),t._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),t.qZA(),t.TgZ(20,"g",101),t._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),t.TgZ(31,"g",112)(32,"g",113),t._UZ(33,"g",114),t.qZA(),t._UZ(34,"g",115),t.qZA()()(),t.TgZ(35,"g",116)(36,"g",40),t._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),t.qZA(),t.TgZ(53,"g",56)(54,"g",57)(55,"g",58),t._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),t.TgZ(59,"g",122),t._UZ(60,"path",63),t.qZA(),t._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),t.qZA(),t.TgZ(70,"g",73),t._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),t.qZA(),t._UZ(84,"path",139),t.qZA()()()(),t._UZ(85,"path",140)(86,"path",141),t.qZA()()()(),t.kcU(),t.TgZ(87,"div",30)(88,"mat-card-title"),t._uU(89,"Step 2: Send payment out"),t.qZA()(),t.TgZ(90,"div",31)(91,"mat-card-subtitle",32),t._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function $e(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",142)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),t._UZ(10,"circle",12)(11,"path",147),t.qZA(),t.TgZ(12,"g",14),t._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),t.qZA()(),t.TgZ(28,"g",149),t._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),t.qZA(),t.TgZ(32,"g",152),t._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),t.TgZ(43,"g",112)(44,"g",113),t._UZ(45,"g",114),t.qZA(),t._UZ(46,"g",115),t.qZA()()(),t._UZ(47,"path",153),t.qZA()()()(),t.kcU(),t.TgZ(48,"div",30)(49,"mat-card-title"),t._uU(50,"Step 3: Recieve Funds Off-chain"),t.qZA()(),t.TgZ(51,"div",31)(52,"mat-card-subtitle",32),t._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function tn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",154)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),t._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),t.qZA(),t.TgZ(28,"g",172),t._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),t.qZA(),t._UZ(43,"path",187),t.qZA()(),t._UZ(44,"circle",188),t.qZA()()()(),t.kcU(),t.TgZ(45,"div",30)(46,"mat-card-title"),t._uU(47,"Done!"),t.qZA()(),t.TgZ(48,"div",31)(49,"mat-card-subtitle",32),t._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let en=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(e,o){if(1&e&&(t.YNc(0,We,1,0,"ng-container",0),t.YNc(1,Xe,32,5,"ng-template",null,1,t.W1O),t.YNc(3,je,66,5,"ng-template",null,2,t.W1O),t.YNc(5,Ke,93,5,"ng-template",null,3,t.W1O),t.YNc(7,$e,54,5,"ng-template",null,4,t.W1O),t.YNc(9,tn,51,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const nn=["stepper"];function on(n,i){if(1&n&&(t.TgZ(0,"div",48)(1,"p",49)(2,"strong"),t._uU(3,"Channel Peer:\xa0"),t.qZA(),t._uU(4),t.ALo(5,"titlecase"),t.qZA(),t.TgZ(6,"p",50)(7,"strong"),t._uU(8,"Channel ID:\xa0"),t.qZA(),t._uU(9),t.qZA(),t._UZ(10,"p",50),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,2,e.channel.remote_alias)),t.xp6(5),t.Oqu(e.channel.chan_id)}}function an(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function ln(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function sn(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,e.minQuote.amount),".")}}function rn(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,e.maxQuote.amount),".")}}function cn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirmation target is required."),t.qZA())}function pn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirmation target must be a positive number."),t.qZA())}function un(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Percentage is required."),t.qZA())}function mn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Percentage must be a positive number."),t.qZA())}function dn(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",50),t._UZ(1,"input",51),t.YNc(2,un,2,0,"mat-error",25),t.YNc(3,mn,2,0,"mat-error",25),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.min)}}function hn(n,i){1&n&&(t.TgZ(0,"div",52)(1,"mat-slide-toggle",53),t._uU(2,"Fast"),t.qZA(),t.TgZ(3,"mat-icon",54),t._uU(4,"info_outline"),t.qZA()())}function _n(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.quoteFormLabel)}}function fn(n,i){1&n&&(t.TgZ(0,"p",55)(1,"mat-icon",56),t._uU(2,"close"),t.qZA(),t._uU(3,"Local balance amount is insufficient for swap."),t.qZA())}function gn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",57),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onValidateAmount()}),t._uU(1,"Next"),t.qZA()}}function Cn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",58),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onLoop()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij("Initiate ",e.loopDirectionCaption,"")}}function xn(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.addressFormLabel)}}function yn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Tn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",16)(1,"form",17),t.YNc(2,xn,1,1,"ng-template",18),t.TgZ(3,"div",59)(4,"mat-radio-group",60),t.NdJ("change",function(a){return t.CHM(e),t.oxw(2).onAddressTypeChange(a)}),t.TgZ(5,"mat-radio-button",61),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",62),t._uU(8,"External Address"),t.qZA()(),t.TgZ(9,"mat-form-field",63),t._UZ(10,"input",64),t.YNc(11,yn,2,0,"mat-error",25),t.qZA()(),t.TgZ(12,"div",29)(13,"button",65),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onLoop()}),t._uU(14),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.addressFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.addressFormGroup),t.xp6(9),t.Q6J("required","external"===e.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==e.addressFormGroup.controls.address.errors?null:e.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",e.loopDirectionCaption,"")}}function vn(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.hij("",e.loopDirectionCaption," Status")}}function bn(n,i){if(1&n&&(t.TgZ(0,"mat-icon",66),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.loopStatus&&null!=e.loopStatus&&e.loopStatus.id_bytes?"check":"close")}}function wn(n,i){1&n&&t._UZ(0,"div")}function Zn(n,i){1&n&&t._UZ(0,"mat-progress-bar",67)}function An(n,i){if(1&n&&(t.TgZ(0,"h4",68),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.loopStatus&&e.loopStatus.error?e.loopDirectionCaption+" failed.":e.loopStatus&&e.loopStatus.id_bytes&&e.channel?e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":e.loopDirectionCaption+" request placed successfully.")}}function Ln(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",69),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToLoop()}),t._uU(1,"Check Status"),t.qZA()}}function Sn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",70),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Fn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t._uU(5),t.qZA()(),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",11)(12,"div",12),t.YNc(13,on,11,4,"div",13),t.TgZ(14,"mat-vertical-stepper",14,15),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(16,"mat-step",16)(17,"form",17),t.YNc(18,an,1,1,"ng-template",18),t.TgZ(19,"div",19),t._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),t.qZA(),t.TgZ(22,"div",21)(23,"mat-form-field",22),t._UZ(24,"input",23),t.TgZ(25,"mat-hint"),t._uU(26),t.ALo(27,"number"),t.ALo(28,"number"),t.qZA(),t.TgZ(29,"span",24),t._uU(30,"Sats"),t.qZA(),t.YNc(31,ln,2,0,"mat-error",25),t.YNc(32,sn,3,3,"mat-error",25),t.YNc(33,rn,3,3,"mat-error",25),t.qZA(),t.TgZ(34,"mat-form-field",22),t._UZ(35,"input",26),t.YNc(36,cn,2,0,"mat-error",25),t.YNc(37,pn,2,0,"mat-error",25),t.qZA(),t.YNc(38,dn,4,3,"mat-form-field",27),t.qZA(),t.YNc(39,hn,5,0,"div",28),t.TgZ(40,"div",29)(41,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().onEstimateQuote()}),t._uU(42,"Estimate Quote"),t.qZA()()()(),t.TgZ(43,"mat-step",16)(44,"form",17),t.YNc(45,_n,1,1,"ng-template",18),t._UZ(46,"rtl-loop-quote",31),t.YNc(47,fn,4,0,"p",32),t.TgZ(48,"div",29),t.YNc(49,gn,2,0,"button",33),t.YNc(50,Cn,2,1,"button",34),t.qZA()()(),t.YNc(51,Tn,15,6,"mat-step",35),t.TgZ(52,"mat-step",36)(53,"form",17),t.YNc(54,vn,1,1,"ng-template",18),t.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),t._uU(60),t.YNc(61,bn,2,1,"mat-icon",40),t.qZA()()(),t.YNc(62,wn,1,0,"div",41),t.qZA(),t.YNc(63,Zn,1,0,"mat-progress-bar",42),t.qZA(),t.YNc(64,An,2,1,"h4",43),t.TgZ(65,"div",29),t.YNc(66,Ln,2,0,"button",44),t.YNc(67,Sn,2,0,"button",45),t.qZA()()()(),t.TgZ(68,"div",46)(69,"button",47),t._uU(70,"Close"),t.qZA()()()()()()}if(2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(e.channel?"Channel "+e.loopDirectionCaption:e.loopDirectionCaption),t.xp6(1),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("ngIf",e.channel),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(3),t.Q6J("quote",e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),t.xp6(1),t.Q6J("quote",e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),t.xp6(2),t.Q6J("fxFlex",e.direction===e.LoopTypeEnum.LOOP_OUT?"35":"48"),t.xp6(1),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(27,51,e.minQuote.amount),"-",t.lcZ(28,53,e.maxQuote.amount),""),t.xp6(5),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.max),t.xp6(1),t.Q6J("fxFlex",e.direction===e.LoopTypeEnum.LOOP_OUT?"30":"48"),t.xp6(1),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.min),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(4),t.Q6J("stepControl",e.quoteFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.quoteFormGroup),t.xp6(2),t.Q6J("quote",e.quote)("showPanel",!1),t.xp6(1),t.Q6J("ngIf",e.inputFormGroup.controls.amount.value>e.localBalanceToCompare),t.xp6(2),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_IN),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!e.loopStatus),t.xp6(4),t.Oqu(e.loopStatus?e.loopStatus.id_bytes?e.loopDirectionCaption+" request details":e.loopDirectionCaption+" error details":"Waiting for "+e.loopDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",e.loopStatus),t.xp6(1),t.Q6J("ngIf",!e.loopStatus)("ngIfElse",o),t.xp6(1),t.Q6J("ngIf",!e.loopStatus),t.xp6(1),t.Q6J("ngIf",e.loopStatus),t.xp6(2),t.Q6J("ngIf",e.loopStatus&&e.loopStatus.id_bytes&&e.channel),t.xp6(1),t.Q6J("ngIf",e.loopStatus&&(e.loopStatus.error||!e.loopStatus.id_bytes)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function kn(n,i){if(1&n&&t._UZ(0,"rtl-loop-status",71),2&n){const e=t.oxw();t.Q6J("loopStatus",e.loopStatus)}}function qn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-loop-out-info-graphics",88),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}function Nn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-loop-in-info-graphics",88),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}const On=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Un(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",89),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",90),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,On,o.stepNumber===e,o.stepNumber!==e))}}function Mn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",91),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function Pn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",92),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function In(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",93),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Rn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",94),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Dn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",95),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function Qn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",96),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Jn=function(){return[1,2,3,4,5]};function En(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",75)(6,"button",76),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",77),t.YNc(9,qn,1,2,"rtl-loop-out-info-graphics",78),t.YNc(10,Nn,1,2,"rtl-loop-in-info-graphics",78),t.qZA(),t.TgZ(11,"div",79),t.YNc(12,Un,2,4,"span",80),t.qZA(),t.TgZ(13,"div",81),t.YNc(14,Mn,2,0,"button",82),t.YNc(15,Pn,2,0,"button",83),t.YNc(16,In,2,0,"button",84),t.YNc(17,Rn,2,0,"button",85),t.YNc(18,Dn,2,0,"button",86),t.YNc(19,Qn,2,0,"button",87),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Jn)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let xt=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I){this.dialogRef=e,this.data=o,this.store=a,this.loopService=l,this.formBuilder=r,this.decimalPipe=h,this.logger=f,this.router=x,this.commonService=I,this.faInfoCircle=b.sqG,this.LoopTypeEnum=s.$I,this.direction=s.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||s.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===s.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[p.kI.required,p.kI.min(this.minQuote.amount||0),p.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[p.kI.required,p.kI.min(1)]],routingFeePercent:[2,[p.kI.required,p.kI.min(0)]],fast:[!1,[p.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[p.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[6])).subscribe(e=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:e.lightningBalance&&e.lightningBalance.local?+e.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===s.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===s.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([p.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){var e;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===s.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===s.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,null===(e=this.stepper.selected)||void 0===e||e.stepControl.setErrors(null),this.stepper.next(),this.direction===s.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:o=>{this.loopStatus=o,this.loopService.listSwaps(),this.flgEditable=!0},error:o=>{this.loopStatus={error:o},this.flgEditable=!0,this.logger.error(o)}});else{const o=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),a="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",l=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,o,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),l,a).pipe((0,_.R)(this.unSubs[1])).subscribe({next:r=>{this.loopStatus=r,this.loopService.listSwaps(),this.flgEditable=!0},error:r=>{this.loopStatus={error:r},this.flgEditable=!0,this.logger.error(r)}})}}onEstimateQuote(){var e;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const o=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===s.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,o).pipe((0,_.R)(this.unSubs[2])).subscribe(a=>{this.quote=a,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,o).pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{this.quote=a,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),null===(e=this.stepper.selected)||void 0===e||e.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===s.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===s.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===s.$I.LOOP_OUT&&1!==e.selectedIndex&&e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(rt.W),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(N.mQ),t.Y36(v.F0),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(nn,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Fn,71,55,"div",0),t.YNc(1,kn,1,1,"ng-template",null,1,t.W1O),t.YNc(3,En,20,11,"div",2)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(3),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,Ie,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,ct.Rr,$.Hw,K.gM,tt.VQ,tt.U0,E.ib,E.yz,E.yK,J.pW,Q.ZT,Je,Ve,en,u.sg,u.mk,L.oO],pipes:[u.rS,u.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();var F=g(7861);function Hn(n,i){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,1,e.remote_balance||0)," Sats")}}function Yn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2).$implicit;return t.oxw(3).onLoopOut(a)}),t._uU(1,"Loop Out"),t.qZA()}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"mat-hint",22)(2,"strong",20),t._uU(3,"Capacity: "),t.qZA(),t._uU(4),t.ALo(5,"number"),t.qZA(),t.YNc(6,Yn,2,0,"button",23),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(4),t.hij("",t.lcZ(5,2,e.local_balance||0)," Sats"),t.xp6(2),t.Q6J("ngIf",o.showLoop)}}function zn(n,i){if(1&n&&t._UZ(0,"mat-progress-bar",25),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.s9C("value",o.totalLiquidity>0?(+e.remote_balance||0)/o.totalLiquidity*100:0)}}function Gn(n,i){if(1&n&&t._UZ(0,"mat-progress-bar",25),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.s9C("value",o.totalLiquidity>0?(+e.local_balance||0)/o.totalLiquidity*100:0)}}const Vn=function(){return["../connections/channels/open"]},Wn=function(n){return{filter:n}};function Xn(n,i){if(1&n&&(t.TgZ(0,"div",13)(1,"a",14),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",15),t.YNc(5,Hn,5,3,"mat-hint",16),t.YNc(6,Bn,7,4,"div",17),t.qZA(),t.YNc(7,zn,1,1,"mat-progress-bar",18),t.YNc(8,Gn,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.remote_alias||e.remote_pubkey),t.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),t.Q6J("routerLink",t.DdM(14,Vn))("state",t.VKq(15,Wn,e.chan_id)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===o.direction),t.xp6(1),t.Q6J("ngIf","Out"===o.direction),t.xp6(1),t.Q6J("ngIf","In"===o.direction),t.xp6(1),t.Q6J("ngIf","Out"===o.direction)}}function jn(n,i){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,Xn,9,17,"div",12),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const Kn=function(n,i,e){return{"mb-4":n,"mb-2":i,"mb-1":e}};function $n(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.YNc(10,jn,2,1,"div",10),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("ngClass",t.kEZ(6,Kn,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.lcZ(6,4,e.totalLiquidity)," Sats"),t.xp6(5),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",o)}}function to(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function eo(n,i){if(1&n&&(t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.YNc(2,to,2,0,"button",27),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function no(n,i){if(1&n&&(t.TgZ(0,"div",29)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let oo=(()=>{class n{constructor(e,o,a,l){this.router=e,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.showLoop=!(!(null==e?void 0:e.swapServerUrl)||""===e.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,F.qR)({payload:{minHeight:"56rem",data:{channel:e,minQuote:o[0],maxQuote:o[1],direction:s.$I.LOOP_OUT,component:xt}}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(rt.W),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,$n,11,10,"div",0),t.YNc(1,eo,3,1,"ng-template",null,1,t.W1O),t.YNc(3,no,3,1,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(4);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,m.yH,u.mk,L.oO,C.bx,J.pW,V.d,z.$V,u.sg,v.yS,K.gM,q.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var R=g(3251),k=g(6087),Z=g(4847),c=g(2075),A=g(6523),et=g(6534),M=g(4107),G=g(508);function io(n,i){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function ao(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function lo(n,i){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,ao,2,1,"span",28),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let so=(()=>{class n{constructor(e,o,a,l,r,h){this.dialogRef=e,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=r,this.actions=h,this.faExclamationTriangle=b.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=s.IV,this.timeUnitEnum=s.Qk,this.timeUnits=s.LO,this.selTimeUnit=s.Qk.SECS,this.invoiceError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===e.payload.action&&(this.invoiceError=e.payload.message,e.payload.status===s.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===s.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==s.Qk.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,s.Qk.SECS):this.expiry:3600,this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:o,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=s.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,s.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(u.JJ),t.Y36(O.v),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(r){return o.memo=r}),t.qZA()(),t.TgZ(13,"mat-form-field",11)(14,"input",12),t.NdJ("ngModelChange",function(r){return o.invoiceValue=r})("keyup",function(){return o.onInvoiceValueChange()}),t.qZA(),t.TgZ(15,"span",13),t._uU(16," Sats "),t.qZA(),t.TgZ(17,"mat-hint"),t._uU(18),t.qZA()(),t.TgZ(19,"mat-form-field",14)(20,"input",15),t.NdJ("ngModelChange",function(r){return o.expiry=r}),t.qZA(),t.TgZ(21,"span",13),t._uU(22),t.ALo(23,"titlecase"),t.qZA()(),t.TgZ(24,"mat-form-field",14)(25,"mat-select",16),t.NdJ("selectionChange",function(r){return o.onTimeUnitChange(r)}),t.YNc(26,io,3,4,"mat-option",17),t.qZA()(),t.TgZ(27,"div",18)(28,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(r){return o.private=r}),t._uU(29,"Private Routing Hints"),t.qZA(),t.TgZ(30,"mat-icon",20),t._uU(31,"info_outline"),t.qZA()(),t.YNc(32,lo,3,2,"div",21),t.TgZ(33,"div",22)(34,"button",23),t.NdJ("click",function(){return o.resetData()}),t._uU(35,"Clear Field"),t.qZA(),t.TgZ(36,"button",24),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(10);return o.onAddInvoice(r)}),t._uU(37,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.memo),t.xp6(2),t.Q6J("ngModel",o.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(o.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",o.expiry)("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij(" ",t.lcZ(23,14,o.selTimeUnit)," "),t.xp6(3),t.Q6J("value",o.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",o.timeUnits),t.xp6(2),t.Q6J("ngModel",o.private),t.xp6(4),t.Q6J("ngIf",""!==o.invoiceError))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.JJ,p.On,p.wV,p.qQ,et.q,C.R9,C.bx,M.gD,u.sg,G.ey,ct.Rr,$.Hw,K.gM,u.O5,D.BN],pipes:[u.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var ro=g(8627);function co(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().memo=a}),t.qZA()(),t.TgZ(4,"mat-form-field",8)(5,"input",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().invoiceValue=a})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(6,"span",10),t._uU(7," Sats "),t.qZA(),t.TgZ(8,"mat-hint"),t._uU(9),t.qZA()(),t.TgZ(10,"div",11)(11,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(12,"Clear Field"),t.qZA(),t.TgZ(13,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(1);return t.oxw().onAddInvoice(a)}),t._uU(14,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.memo),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(e.invoiceValueHint)}}function po(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function uo(n,i){1&n&&t._UZ(0,"mat-progress-bar",46)}function mo(n,i){1&n&&(t.TgZ(0,"th",47),t._uU(1," Date Created "),t.qZA())}const yt=function(n){return{"mr-0":n}};function ho(n,i){if(1&n&&t._UZ(0,"span",53),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function _o(n,i){if(1&n&&t._UZ(0,"span",54),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function fo(n,i){if(1&n&&t._UZ(0,"span",55),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function go(n,i){if(1&n&&t._UZ(0,"span",56),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function Co(n,i){if(1&n&&(t.TgZ(0,"td",48),t.YNc(1,ho,1,3,"span",49),t.YNc(2,_o,1,3,"span",50),t.YNc(3,fo,1,3,"span",51),t.YNc(4,go,1,3,"span",52),t._uU(5),t.ALo(6,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","OPEN"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","SETTLED"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","ACCEPTED"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","CANCELED"===(null==e?null:e.state)),t.xp6(1),t.hij(" ",t.xi3(6,5,1e3*(null==e?null:e.creation_date),"dd/MMM/y HH:mm"),"")}}function xo(n,i){1&n&&(t.TgZ(0,"th",57),t._uU(1," Date Settled "),t.qZA())}function yo(n,i){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(0!=+(null==e?null:e.settle_date)?t.xi3(2,1,1e3*+(null==e?null:e.settle_date),"dd/MMM/y HH:mm"):"-")}}function To(n,i){1&n&&(t.TgZ(0,"th",47),t._uU(1," Memo "),t.qZA())}const vo=function(n){return{"max-width":n}};function bo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"div",59)(2,"span",60),t._uU(3),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,vo,o.screenSize===o.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(null==e?null:e.memo)}}function wo(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1," Amount (Sats) "),t.qZA())}function Zo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.value)," ")}}function Ao(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1," Amount Settled (Sats) "),t.qZA())}function Lo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.amt_paid_sat)," ")}}function So(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",63)(1,"div",64)(2,"mat-select",65),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}const Fo=function(n){return{"pl-3":n}};function ko(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",66),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(l)}),t._uU(7,"Refresh"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Fo,e.screenSize!==e.screenSizeEnum.XS))}}function qo(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function No(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function Oo(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Uo(n,i){if(1&n&&(t.TgZ(0,"td",70),t.YNc(1,qo,2,0,"p",71),t.YNc(2,No,2,0,"p",71),t.YNc(3,Oo,2,1,"p",71),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Mo=function(n){return{"display-none":n}};function Po(n,i){if(1&n&&t._UZ(0,"tr",72),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mo,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function Io(n,i){1&n&&t._UZ(0,"tr",73)}function Ro(n,i){1&n&&t._UZ(0,"tr",74)}const Do=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Qo=function(){return["no_invoice"]};function Jo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"div",18),t._UZ(3,"fa-icon",19),t.TgZ(4,"span",20),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"mat-form-field",21)(7,"input",22),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().selFilter=a}),t.qZA()()(),t.TgZ(8,"div",23),t.YNc(9,uo,1,0,"mat-progress-bar",24),t.TgZ(10,"table",25,26),t.ynx(12,27),t.YNc(13,mo,2,0,"th",28),t.YNc(14,Co,7,8,"td",29),t.BQk(),t.ynx(15,30),t.YNc(16,xo,2,0,"th",31),t.YNc(17,yo,3,4,"td",32),t.BQk(),t.ynx(18,33),t.YNc(19,To,2,0,"th",28),t.YNc(20,bo,4,4,"td",29),t.BQk(),t.ynx(21,34),t.YNc(22,wo,2,0,"th",35),t.YNc(23,Zo,4,3,"td",29),t.BQk(),t.ynx(24,36),t.YNc(25,Ao,2,0,"th",35),t.YNc(26,Lo,4,3,"td",29),t.BQk(),t.ynx(27,37),t.YNc(28,So,6,0,"th",38),t.YNc(29,ko,8,3,"td",39),t.BQk(),t.ynx(30,40),t.YNc(31,Uo,4,3,"td",41),t.BQk(),t.YNc(32,Po,1,3,"tr",42),t.YNc(33,Io,1,0,"tr",43),t.YNc(34,Ro,1,0,"tr",44),t.qZA(),t.TgZ(35,"mat-paginator",45),t.NdJ("page",function(a){return t.CHM(e),t.oxw().onPageChange(a)}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(13,Do,""!==e.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(15,Qo)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("length",e.totalInvoices)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Yt=(()=>{class n{constructor(e,o,a,l,r,h){this.logger=e,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=r,this.actions=h,this.calledFrom="transactions",this.faHistory=b.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.Ef).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=e.listInvoices.total_invoices||0,this.firstOffset=+(e.listInvoices.first_index_offset||-1),this.lastOffset=+(e.listInvoices.last_index_offset||-1),this.invoicesData=e.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND||e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(e){const o=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:o,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,F.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:ro.v}}}))}onRefreshInvoice(e){var o,a;e&&e.r_hash&&this.store.dispatch((0,A.n7)({payload:{openSnackBar:!0,paymentHash:null===(a=null===(o=Buffer.from(e.r_hash.trim(),"hex").toString("base64"))||void 0===o?void 0:o.replace(/\+/g,"-"))||void 0===a?void 0:a.replace(/[/]/g,"_")}}))}updateInvoicesData(e){var o;this.invoicesData=null===(o=this.invoicesData)||void 0===o?void 0:o.map(a=>a.r_hash===e.r_hash?e:a)}loadInvoicesTable(e){this.invoices=new c.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.invoices.filterPredicate=(o,a)=>{var l,r;return((o.creation_date?null===(l=this.datePipe.transform(new Date(1e3*o.creation_date),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+(o.settle_date?null===(r=this.datePipe.transform(new Date(1e3*o.settle_date),"dd/MMM/YYYY HH:mm"))||void 0===r?void 0:r.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(e){let o=!0,a=this.lastOffset;this.pageSize=e.pageSize,0===e.pageIndex?(o=!0,a=0):e.previousPageIndex&&e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(o=!0,a=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(o=!1,a=0),this.store.dispatch((0,A.WM)({payload:{num_max_invoices:e.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,s.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,F.qR)({payload:{data:{pageSize:this.pageSize,component:so}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(u.JJ),t.Y36(O.v),t.Y36(u.uU),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,co,15,5,"form",1),t.YNc(2,po,3,0,"div",2),t.YNc(3,Jo,36,16,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,p.JJ,p.On,p.wV,p.qQ,et.q,C.R9,C.bx,q.lW,D.BN,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var X=g(5698),nt=g(8104),at=g(1079);const Eo=["paymentReq"];function Ho(n,i){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Yo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Bo(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function zo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Go(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",29,30),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().paymentAmount=a})("change",function(a){return t.CHM(e),t.oxw().onAmountChange(a)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,zo,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function Vo(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",null==e?null:e.name," ")}}function Wo(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.selFeeLimitType?null:e.selFeeLimitType.placeholder," is required.")}}function Xo(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu((null==e?null:e.remote_alias)||(null==e?null:e.chan_id))}}function jo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Channel not found in the list."),t.qZA())}function Ko(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function $o(n,i){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.YNc(2,Ko,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let ti=(()=>{class n{constructor(e,o,a,l,r,h,f){this.dialogRef=e,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=r,this.actions=h,this.dataService=f,this.faExclamationTriangle=b.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new p.NI,this.feeLimit=null,this.selFeeLimitType=s.Vc[0],this.feeLimitTypes=s.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{var l;this.activeChannels=a.channels&&a.channels.length?null===(l=a.channels)||void 0===l?void 0:l.filter(r=>r.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(a=>a.type===s.uR.UPDATE_API_CALL_STATUS_LND||a.type===s.uR.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===s.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===s.uR.UPDATE_API_CALL_STATUS_LND&&a.payload.status===s.Bn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let e="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(e=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",eo?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){var e;return this.activeChannels&&this.activeChannels.length?null===(e=this.activeChannels)||void 0===e?void 0:e.filter(o=>0===(o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(o.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onSelectedChannelChanged(){var e;if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const o=this.activeChannels&&this.activeChannels.length?null===(e=this.activeChannels)||void 0===e?void 0:e.filter(a=>{const l=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return l.length===this.selectedChannelCtrl.value.length&&0===l.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];o&&o.length>0?(this.selectedChannelCtrl.setValue(o[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){var e;if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=(null===(e=this.paymentAmount)||void 0===e?void 0:e.toString())||"",this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount||0,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(e){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,X.q)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"BTC",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+a.symbol+" "+this.decimalPipe.transform(a.OTHER?a.OTHER:0,s.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:o=>{this.logger.error(o),this.paymentDecodedHint="ERROR: "+o.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(e,o){if(e&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=s.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(S.yh),t.Y36(N.mQ),t.Y36(O.v),t.Y36(u.JJ),t.Y36(j.eX),t.Y36(nt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,o){if(1&e&&t.Gf(Eo,5),2&e){let a;t.iGM(a=t.CRH())&&(o.paymentReq=a.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(l){return o.onPaymentRequestEntry(l)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,Ho,2,1,"mat-hint",11),t.YNc(15,Yo,2,0,"mat-error",11),t.YNc(16,Bo,2,1,"mat-error",11),t.qZA(),t.YNc(17,Go,6,2,"mat-form-field",12),t.TgZ(18,"mat-expansion-panel",13),t.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0,!1)})("opened",function(){return o.onAdvancedPanelToggle(!1,!1)}),t.TgZ(19,"mat-expansion-panel-header")(20,"mat-panel-title")(21,"span"),t._uU(22),t.qZA()()(),t.TgZ(23,"div",14)(24,"mat-form-field",15)(25,"mat-select",16),t.NdJ("valueChange",function(l){return o.selFeeLimitType=l}),t.YNc(26,Vo,2,2,"mat-option",17),t.qZA()(),t.TgZ(27,"mat-form-field",18)(28,"input",19,20),t.NdJ("ngModelChange",function(l){return o.feeLimit=l}),t.qZA(),t.YNc(30,Wo,2,1,"mat-error",11),t.qZA(),t.TgZ(31,"mat-form-field",21),t._UZ(32,"input",22),t.TgZ(33,"mat-autocomplete",23,24),t.NdJ("optionSelected",function(){return o.onSelectedChannelChanged()}),t.YNc(35,Xo,2,2,"mat-option",17),t.qZA(),t.YNc(36,jo,2,0,"mat-error",11),t.qZA()()(),t.YNc(37,$o,3,2,"div",25),t.TgZ(38,"div",26)(39,"button",27),t.NdJ("click",function(){return o.resetData()}),t._uU(40,"Clear Fields"),t.qZA(),t.TgZ(41,"button",28),t.NdJ("click",function(){return o.onSendPayment()}),t._uU(42,"Send Payment"),t.qZA()()()()()()),2&e){const a=t.MAs(13),l=t.MAs(34);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.paymentRequest),t.xp6(2),t.Q6J("ngIf",o.paymentRequest&&""!==o.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!o.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==a.errors?null:a.errors.decodeError),t.xp6(1),t.Q6J("ngIf",o.zeroAmtInvoice),t.xp6(5),t.Oqu(o.advancedTitle),t.xp6(3),t.Q6J("value",o.selFeeLimitType),t.xp6(1),t.Q6J("ngForOf",o.feeLimitTypes),t.xp6(2),t.Q6J("ngModel",o.feeLimit)("placeholder",null==o.selFeeLimitType?null:o.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",o.selFeeLimitType===o.feeLimitTypes[0]),t.xp6(2),t.Q6J("ngIf",o.selFeeLimitType!==o.feeLimitTypes[0]&&!o.feeLimit),t.xp6(2),t.Q6J("formControl",o.selectedChannelCtrl)("matAutocomplete",l),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",o.filteredMinAmtActvChannels),t.xp6(1),t.Q6J("ngIf",null==o.selectedChannelCtrl.errors?null:o.selectedChannelCtrl.errors.notfound),t.xp6(1),t.Q6J("ngIf",""!==o.paymentError)}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.bx,C.TO,E.ib,E.yz,E.yK,M.gD,u.sg,G.ey,p.wV,p.qQ,et.q,at.ZL,p.oH,at.XC,D.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var dt=g(3093),ot=g(711);const ei=["sendPaymentForm"];function ni(n,i){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function oi(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function ii(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().onPaymentRequestEntry(a)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,ni,2,1,"mat-hint",9),t.YNc(6,oi,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function ai(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function li(n,i){1&n&&t._UZ(0,"mat-progress-bar",52)}function si(n,i){1&n&&(t.TgZ(0,"th",53),t._uU(1,"Creation Date"),t.qZA())}const lt=function(n){return{"mr-0":n}};function ri(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function ci(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function pi(n,i){if(1&n&&(t.TgZ(0,"td",54),t.YNc(1,ri,1,3,"span",55),t.YNc(2,ci,1,3,"span",56),t._uU(3),t.ALo(4,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","SUCCEEDED"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==(null==e?null:e.status)),t.xp6(1),t.hij(" ",t.xi3(4,3,1e3*(null==e?null:e.creation_date),"dd/MMM/y HH:mm")," ")}}function ui(n,i){1&n&&(t.TgZ(0,"th",53),t._uU(1,"Payment Hash"),t.qZA())}const Bt=function(n){return{"max-width":n}};function mi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",59)(2,"span",60),t._uU(3),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.payment_hash)}}function di(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Fee (Sats)"),t.qZA())}function hi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.fee))}}function _i(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Value (Sats)"),t.qZA())}function fi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.value))}}function gi(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"#Hops"),t.qZA())}function Ci(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu((null==e||null==e.htlcs[0]||null==e.htlcs[0].route||null==e.htlcs[0].route.hops?null:e.htlcs[0].route.hops.length)||0)}}function xi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",63)(1,"div",64)(2,"mat-select",65),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function yi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",67)(1,"button",68),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Ti(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function vi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function bi(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function wi(n,i){if(1&n&&(t.TgZ(0,"td",69),t.YNc(1,Ti,2,0,"p",9),t.YNc(2,vi,2,0,"p",9),t.YNc(3,bi,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Zi(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Ai(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Li(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(5);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Si(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(5);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Fi(n,i){if(1&n&&(t.TgZ(0,"span",72),t.YNc(1,Li,1,3,"span",55),t.YNc(2,Si,1,3,"span",56),t._uU(3),t.ALo(4,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","SUCCEEDED"===e.status),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==e.status),t.xp6(1),t.hij(" ",t.xi3(4,3,1e3*e.attempt_time,"dd/MMM/y HH:mm")," ")}}function ki(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Fi,5,6,"span",71),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function qi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",70),t.YNc(2,Zi,1,3,"span",55),t.YNc(3,Ai,1,3,"span",56),t._uU(4),t.qZA(),t.YNc(5,ki,2,1,"ng-container",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngIf","SUCCEEDED"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==(null==e?null:e.status)),t.xp6(1),t.hij(" Total Attempts: ",null==e||null==e.htlcs?null:e.htlcs.length," "),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ni(n,i){if(1&n&&(t.TgZ(0,"span",70),t._uU(1),t.qZA()),2&n){const e=i.index;t.xp6(1),t.hij(" HTLC ",e+1," ")}}function Oi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ni,2,1,"span",73),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Ui(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",59)(2,"span",60),t._uU(3),t.qZA()(),t.YNc(4,Oi,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,Bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.payment_hash),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Mi(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e.route?null:e.route.total_fees,"1.0-0")," ")}}function Pi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Mi,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Pi,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.fee,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ri(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e.route?null:e.route.total_amt,"1.0-0")," ")}}function Di(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ri,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Qi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Di,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.value,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ji(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,(null==e.route||null==e.route.hops?null:e.route.hops.length)||0,"1.0-0")," ")}}function Ei(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ji,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Hi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2,"-"),t.qZA(),t.YNc(3,Ei,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Yi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",62)(1,"button",79),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2).$implicit;return t.oxw(2).onHTLCClick(l,r)}),t._uU(2),t.qZA()()}if(2&n){const e=i.index;t.xp6(2),t.hij("View ",e+1,"")}}function Bi(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Yi,3,1,"div",78),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",76)(1,"span",62)(2,"button",77),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return l.is_expanded=!(null!=l&&l.is_expanded)}),t._uU(3),t.qZA()(),t.YNc(4,Bi,2,1,"div",9),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(3),t.Oqu(null!=e&&e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Gi(n,i){1&n&&t._UZ(0,"tr",80)}const Vi=function(n){return{"display-none":n}};function Wi(n,i){if(1&n&&t._UZ(0,"tr",81),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Vi,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Xi(n,i){1&n&&t._UZ(0,"tr",82)}function ji(n,i){1&n&&t._UZ(0,"tr",80)}const Ki=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},$i=function(){return["no_payment"]};function ta(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"div",16)(2,"div",17),t._UZ(3,"fa-icon",18),t.TgZ(4,"span",19),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"mat-form-field",20)(7,"input",21),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().selFilter=a}),t.qZA()()(),t.TgZ(8,"div",22)(9,"div",23),t.YNc(10,li,1,0,"mat-progress-bar",24),t.TgZ(11,"table",25,26),t.ynx(13,27),t.YNc(14,si,2,0,"th",28),t.YNc(15,pi,5,6,"td",29),t.BQk(),t.ynx(16,30),t.YNc(17,ui,2,0,"th",28),t.YNc(18,mi,4,4,"td",29),t.BQk(),t.ynx(19,31),t.YNc(20,di,2,0,"th",32),t.YNc(21,hi,4,3,"td",29),t.BQk(),t.ynx(22,33),t.YNc(23,_i,2,0,"th",32),t.YNc(24,fi,4,3,"td",29),t.BQk(),t.ynx(25,34),t.YNc(26,gi,2,0,"th",32),t.YNc(27,Ci,3,1,"td",29),t.BQk(),t.ynx(28,35),t.YNc(29,xi,6,0,"th",36),t.YNc(30,yi,3,0,"td",37),t.BQk(),t.ynx(31,38),t.YNc(32,wi,4,3,"td",39),t.BQk(),t.ynx(33,40),t.YNc(34,qi,6,4,"td",29),t.BQk(),t.ynx(35,41),t.YNc(36,Ui,5,5,"td",29),t.BQk(),t.ynx(37,42),t.YNc(38,Ii,5,5,"td",29),t.BQk(),t.ynx(39,43),t.YNc(40,Qi,5,5,"td",29),t.BQk(),t.ynx(41,44),t.YNc(42,Hi,4,1,"td",29),t.BQk(),t.ynx(43,45),t.YNc(44,zi,5,2,"td",46),t.BQk(),t.YNc(45,Gi,1,0,"tr",47),t.YNc(46,Wi,1,3,"tr",48),t.YNc(47,Xi,1,0,"tr",49),t.YNc(48,ji,1,0,"tr",50),t.qZA(),t.TgZ(49,"mat-paginator",51),t.NdJ("page",function(a){return t.CHM(e),t.oxw().onPageChange(a)}),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(15,Ki,""!==e.errorMessage)),t.xp6(34),t.Q6J("matRowDefColumns",e.htlcColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(17,$i)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("length",e.totalPayments)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let zt=(()=>{class n{constructor(e,o,a,l,r,h,f,x){this.logger=e,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=r,this.lndEffects=h,this.decimalPipe=f,this.datePipe=x,this.calledFrom="transactions",this.faHistory=b.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.peers=e.peers}),this.store.select(T.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(e.listPayments.first_index_offset||-1),this.lastOffset=+(e.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,X.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:s.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:s.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,X.q)(1)).subscribe(o=>{o&&(this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:s.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:s.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:s.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,X.q)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,F.qR)({payload:{data:{component:ti}}}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,X.q)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+a.symbol+this.decimalPipe.transform(a.OTHER?a.OTHER:0,s.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(e){let o=!0,a=this.lastOffset;this.pageSize=e.pageSize,0===e.pageIndex?(o=!0,a=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(o=!0,a=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(o=!1,a=0);const l=e.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(e,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(e){const o=this;return null==e?void 0:e.reduce((a,l)=>{const r=o.peers.find(h=>h.pub_key===l.pub_key);return r&&r.alias?a.push("
Channel: "+r.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(l.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(l.pub_key||"",!1).pipe((0,_.R)(o.unSubs[6])).subscribe(h=>{var f;a.push("
Channel: "+(h.node&&h.node.alias?h.node.alias.padEnd(20):(null===(f=l.pub_key)||void 0===f?void 0:f.substring(0,17))+"...")+"			Amount (Sats): "+o.decimalPipe.transform(l.amt_to_forward)+"
")}),a},[])}onHTLCClick(e,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,X.q)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(e,o,a)},0)},error:a=>{this.showHTLCView(e,o)}}):this.showHTLCView(e,o)}showHTLCView(e,o,a){var l,r,h,f;const x=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:s.Gi.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:s.Gi.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:s.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:s.Gi.STRING},{key:"attempt_time_ns",value:+(e.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:s.Gi.DATE_TIME},{key:"resolve_time_ns",value:+(e.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:s.Gi.DATE_TIME}],[{key:"total_amt",value:null===(l=e.route)||void 0===l?void 0:l.total_amt,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER},{key:"total_fees",value:null===(r=e.route)||void 0===r?void 0:r.total_fees,title:"Fee (Sats)",width:33,type:s.Gi.NUMBER},{key:"total_time_lock",value:null===(h=e.route)||void 0===h?void 0:h.total_time_lock,title:"Total Time Lock",width:34,type:s.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails((null===(f=e.route)||void 0===f?void 0:f.hops)||[]),title:"Hops",width:100,type:s.Gi.ARRAY}]];a&&a.description&&""!==a.description&&x.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:s.Gi.STRING}]),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"HTLC Information",message:x,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}}))}onPaymentClick(e){var o;if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){const a=null===(o=e.htlcs[0].route.hops)||void 0===o?void 0:o.reduce((l,r)=>r.pub_key&&""===l?r.pub_key:l+","+r.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,_.R)(this.unSubs[7])).subscribe(l=>{this.showPaymentView(e,null==l?void 0:l.reduce((r,h)=>""===r?h:r+"\n"+h,""))})}else this.showPaymentView(e,"")}showPaymentView(e,o){const a=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:s.Gi.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:s.Gi.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:s.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:s.Gi.STRING},{key:"creation_date",value:e.creation_date,title:"Creation Date",width:50,type:s.Gi.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:s.Gi.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:s.Gi.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe((0,X.q)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:s.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(e){this.payments=new c.by(e?[...e]:[]),this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(o,a)=>{var l;return((o.creation_date?null===(l=this.datePipe.transform(new Date(1e3*o.creation_date),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),o=null==e?void 0:e.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,_.R)(this.unSubs[8])).subscribe(a=>{let l=0;a.forEach((h,f)=>{if(h){for(;e[f+l].payment_hash!==h.payment_hash;)l+=1;e[f+l].description=h.description}});const r=null==e?void 0:e.reduce((h,f)=>h.concat(f),[]);this.commonService.downloadFile(r,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(nt.D),t.Y36(S.yh),t.Y36(dt.V),t.Y36(ot.l),t.Y36(u.JJ),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,o){if(1&e&&(t.Gf(ei,5),t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ii,12,3,"form",1),t.YNc(2,ai,3,0,"div",2),t.YNc(3,ta,50,18,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,p.Q7,z.$V,p.JJ,p.On,C.bx,C.TO,q.lW,D.BN,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,u.sg,c.nj,c.Gk,c.Ke,c.Q2,c.as,c.XQ,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function ea(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function na(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw().$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function oa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function ia(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function aa(n,i){if(1&n&&t._UZ(0,"rtl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function la(n,i){if(1&n&&t._UZ(0,"rtl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function sa(n,i){if(1&n&&t._UZ(0,"rtl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[3])}}function ra(n,i){if(1&n&&t._UZ(0,"rtl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function ca(n,i){if(1&n&&t._UZ(0,"rtl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function pa(n,i){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Gt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function ua(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,ea,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,na,2,1,"button",15),t.YNc(13,oa,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,ia,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,aa,1,2,"rtl-node-info",20),t.YNc(18,la,1,2,"rtl-balances-info",21),t.YNc(19,sa,1,4,"rtl-channel-capacity-info",22),t.YNc(20,ra,1,2,"rtl-fee-info",23),t.YNc(21,ca,1,2,"rtl-channel-status-info",24),t.YNc(22,pa,2,0,"h3",25),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","node"===e.id||"balance"===e.id?70:"fee"===e.id||"status"===e.id?78:90),t.Q6J("ngClass",t.VKq(16,Gt,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.ERROR)||"capacity"===e.id&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.ERROR))),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.INITIATED)||"capacity"===e.id&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.INITIATED)),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function ma(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ua,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function da(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function ha(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function _a(n,i){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,da,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,ha,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function fa(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function ga(n,i){if(1&n&&t._UZ(0,"rtl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function Ca(n,i){if(1&n&&t._UZ(0,"rtl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function xa(n,i){if(1&n&&t._UZ(0,"rtl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[3])}}function ya(n,i){if(1&n&&t._UZ(0,"rtl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[3])}}function Ta(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function va(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,52),t.YNc(5,Ta,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),o=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",o.goToOptions)}}function ba(n,i){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-lightning-payments",48),t.qZA(),t.TgZ(6,"mat-tab",50),t.YNc(7,va,6,2,"ng-template",51),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function wa(n,i){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Za=function(n){return{"p-0":n}};function Aa(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",35),t.YNc(2,_a,11,4,"mat-card-header",36),t.TgZ(3,"mat-card-content",37),t.YNc(4,fa,1,0,"mat-progress-bar",18),t.TgZ(5,"div",38),t.YNc(6,ga,1,1,"rtl-node-info",39),t.YNc(7,Ca,1,2,"rtl-balances-info",21),t.YNc(8,xa,1,4,"rtl-channel-liquidity-info",40),t.YNc(9,ya,1,4,"rtl-channel-liquidity-info",40),t.YNc(10,ba,8,3,"span",41),t.YNc(11,wa,2,0,"h3",25),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,Za,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,Gt,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function La(n,i){if(1&n&&(t.TgZ(0,"div",3),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",34),t.YNc(5,Aa,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let Sa=(()=>{class n{constructor(e,o,a,l,r){switch(this.logger=e,this.store=o,this.actions=a,this.commonService=l,this.router=r,this.faSmile=Dt.ctA,this.faFrown=Dt.KfU,this.faAngleDoubleDown=b.Sbq,this.faAngleDoubleUp=b.Vfw,this.faChartPie=b.OS1,this.faBolt=b.BDt,this.faServer=b.xf3,this.faNetworkWired=b.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=s.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=s.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case s.cu.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case s.cu.SM:case s.cu.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(T.bx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===s.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=e.nodeSettings,this.information=e.information}),this.store.select(T.JG).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===s.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=e.apiCallStatus,this.apiCallStatusBlockchainBalance.status===s.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=e.blockchainBalance.total_balance&&+e.blockchainBalance.total_balance>=0?+e.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[4]="",this.apiCallStatusPendingChannels=e.apiCallStatus,this.apiCallStatusPendingChannels.status===s.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:null===(o=e.pendingChannelsSummary.open)||void 0===o?void 0:o.num_channels,capacity:null===(a=e.pendingChannelsSummary.open)||void 0===a?void 0:a.limbo_balance},this.channelsStatus.closing={num_channels:((null===(l=e.pendingChannelsSummary.closing)||void 0===l?void 0:l.num_channels)||0)+((null===(r=e.pendingChannelsSummary.force_closing)||void 0===r?void 0:r.num_channels)||0)+((null===(h=e.pendingChannelsSummary.waiting_close)||void 0===h?void 0:h.num_channels)||0),capacity:e.pendingChannelsSummary.total_limbo_balance}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[3]="",this.apiCallStatusChannels=e.apiCallStatus,this.apiCallStatusChannels.status===s.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const f=e.lightningBalance&&e.lightningBalance.local?+e.lightningBalance.local:0,x=e.lightningBalance&&e.lightningBalance.remote?+e.lightningBalance.remote:0;this.channelBalances={localBalance:f,remoteBalance:x,balancedness:+(1-Math.abs((f-x)/(f+x))).toFixed(3)},this.balances.lightning=e.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=(null===(o=e.channelsSummary.active)||void 0===o?void 0:o.num_channels)||0,this.inactiveChannels=(null===(a=e.channelsSummary.inactive)||void 0===a?void 0:a.num_channels)||0,this.channelsStatus.active=e.channelsSummary.active,this.channelsStatus.inactive=e.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=null===(l=e.channels)||void 0===l?void 0:l.filter(w=>!0===w.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(r=this.allChannels)||void 0===r?void 0:r.filter(w=>w.remote_balance&&w.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(h=this.allChannels)||void 0===h?void 0:h.filter(w=>w.local_balance&&w.local_balance>0),"local_balance"))),this.allChannels.forEach(w=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(w.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(w.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[5]),(0,H.h)(e=>e.type===s.uR.FETCH_FEES_LND||e.type===s.uR.SET_FEES_LND)).subscribe(e=>{e.type===s.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),e.type===s.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(e){"inactive"===e?this.router.navigateByUrl("/lnd/connections",{state:{filter:e}}):this.router.navigateByUrl("/lnd/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((e,o)=>{const a=+(e.local_balance||0)+ +(e.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(O.v),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,o){if(1&e&&(t.YNc(0,ma,7,4,"div",0),t.YNc(1,La,6,4,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",(null==o.selNode?null:o.selNode.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,D.BN,Ct.Il,u.sg,Ct.DX,m.yH,y.a8,y.dk,y.n5,q.lW,wt.p6,$.Hw,wt.VK,wt.OP,y.dn,u.mk,L.oO,J.pW,u.RF,u.n9,Jt,fe,we,Et,Ht,u.ED,oo,z.$V,R.SP,R.uX,Yt,zt,R.uD],styles:[""]}),n})();var Zt=g(1203),At=g(7544);function Fa(n,i){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ka(n,i){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let qa=(()=>{class n{constructor(e,o,a){this.store=e,this.logger=o,this.router=a,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=b.FVb,this.faChartPie=b.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e instanceof v.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(o=>o.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0,this.logger.info(e)}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o;this.activeChannels=(null===(o=e.channelsSummary.active)||void 0===o?void 0:o.num_channels)||0,this.logger.info(e)}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance||0}],this.logger.info(e)})}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(N.mQ),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(l){return o.activeLink=l})("selectedTabChange",function(l){return o.onSelectedTabChange(l)}),t.TgZ(16,"mat-tab"),t.YNc(17,Fa,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ka,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faUsers),t.xp6(6),t.Q6J("selectedIndex",o.activeLink))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.SP,R.uX,R.uD,At.k,m.yH,v.lC],styles:[""]}),n})();var Lt=g(8675),Vt=g(4004),Wt=g(9843);const Na=["form"];function Oa(n,i){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.pub_key?e.pub_key:"")}}function Ua(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function Ma(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function Pa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",34),t._UZ(1,"input",35),t.TgZ(2,"mat-autocomplete",36,37),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Oa,2,2,"mat-option",24),t.ALo(5,"async"),t.qZA(),t.YNc(6,Ua,2,0,"mat-error",17),t.YNc(7,Ma,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),o=t.oxw();t.xp6(1),t.Q6J("formControl",o.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,o.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.notfound)}}function Ia(n,i){1&n&&t.GkF(0)}function Ra(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Da(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Qa(n,i){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function Ja(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("","1"===e.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Ea(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function Ha(n,i){if(1&n&&(t.TgZ(0,"div",39),t._UZ(1,"fa-icon",40),t.YNc(2,Ea,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function Ya(n,i){if(1&n&&(t.TgZ(0,"mat-expansion-panel",42)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",43),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",44)(9,"div",34)(10,"h4",45),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",46),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",47),t.TgZ(15,"div",44)(16,"div",48)(17,"h4",45),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",49),t._uU(20),t.qZA()(),t.TgZ(21,"div",48)(22,"h4",45),t._uU(23,"Inbound"),t.qZA(),t.TgZ(24,"span",49),t._uU(25),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.address)),t.xp6(7),t.Oqu(e.peer.pub_key),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(null!=e.peer&&e.peer.inbound?"True":"False")}}function Ba(n,i){if(1&n&&t.YNc(0,Ya,26,4,"mat-expansion-panel",41),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let Xt=(()=>{class n{constructor(e,o,a,l){this.dialogRef=e,this.data=o,this.store=a,this.actions=l,this.selectedPeer=new p.NI,this.amount=new p.NI,this.faExclamationTriangle=b.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=s.Dr,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(a=>a.type===s.uR.UPDATE_API_CALL_STATUS_LND||a.type===s.uR.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===s.uR.UPDATE_API_CALL_STATUS_LND&&a.payload.status===s.Bn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===s.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let e="",o="";this.sortedPeers=this.peers.sort((a,l)=>(e=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",eo?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,Lt.O)(""),(0,Vt.U)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,Vt.U)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(e){var o;return null===(o=this.sortedPeers)||void 0===o?void 0:o.filter(a=>{var l;return 0===(null===(l=a.alias)||void 0===l?void 0:l.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const o=null===(e=this.peers)||void 0===e?void 0:e.filter(a=>{var l,r;return(null===(l=a.alias)||void 0===l?void 0:l.length)===this.selectedPeer.value.length&&0===(null===(r=a.alias)||void 0===r?void 0:r.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===o.length&&o[0].pub_key&&(this.selectedPubkey=o[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch((0,A.YX)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(e,o){if(1&e&&t.Gf(Na,7),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first)}},decls:55,vars:25,consts:[["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return o.onOpenChannel()})("reset",function(){return o.resetData()}),t.TgZ(11,"div",9),t.YNc(12,Pa,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,Ia,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(l){return o.fundingAmount=l}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,Ra,2,0,"mat-error",17),t.YNc(25,Da,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(l){return o.isPrivate=l}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0)})("opened",function(){return o.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"mat-form-field",22)(37,"mat-select",23),t.NdJ("valueChange",function(l){return o.selTransType=l}),t.YNc(38,Qa,2,2,"mat-option",24),t.qZA()(),t.TgZ(39,"mat-form-field",22)(40,"input",25,26),t.NdJ("ngModelChange",function(l){return o.transTypeValue=l}),t.qZA(),t.YNc(42,Ja,2,1,"mat-error",17),t.qZA()(),t.TgZ(43,"div",12)(44,"div",27)(45,"mat-slide-toggle",28),t.NdJ("ngModelChange",function(l){return o.spendUnconfirmed=l}),t._uU(46,"Spend Unconfirmed Output"),t.qZA()()()()()(),t.YNc(47,Ha,3,2,"div",29),t.TgZ(48,"div",30)(49,"button",31),t._uU(50,"Clear Fields"),t.qZA(),t.TgZ(51,"button",32),t._uU(52,"Open Channel"),t.qZA()()()()()(),t.YNc(53,Ba,1,1,"ng-template",null,33,t.W1O)),2&e){const a=t.MAs(54);t.xp6(5),t.Oqu(o.alertTitle),t.xp6(7),t.Q6J("ngIf",!o.peer&&o.peers&&o.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(4),t.Q6J("ngModel",o.fundingAmount)("step",1e3)("min",1)("max",o.totalBalance),t.xp6(3),t.hij("(Remaining Bal: ",t.lcZ(21,23,o.totalBalance-(o.fundingAmount?o.fundingAmount:0)),")"),t.xp6(4),t.Q6J("ngIf",null==o.amount.errors?null:o.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.amount.errors?null:o.amount.errors.max),t.xp6(2),t.Q6J("ngModel",o.isPrivate),t.xp6(6),t.Oqu(o.advancedTitle),t.xp6(4),t.Q6J("value",o.selTransType),t.xp6(1),t.Q6J("ngForOf",o.transTypes),t.xp6(2),t.Q6J("ngModel",o.transTypeValue)("required","0"!==o.selTransType)("disabled","0"===o.selTransType)("placeholder","0"===o.selTransType?"Default":"1"===o.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),t.xp6(2),t.Q6J("ngIf","0"!==o.selTransType&&!o.transTypeValue),t.xp6(3),t.Q6J("ngModel",o.spendUnconfirmed),t.xp6(2),t.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[m.xw,m.Wh,m.yH,y.dk,q.lW,y.dn,p._Y,p.JL,p.F,u.O5,C.KE,P.Nt,p.Fj,at.ZL,p.Q7,p.JJ,p.oH,at.XC,u.sg,G.ey,C.TO,u.tP,p.wV,p.qQ,p.Fd,et.q,Wt.F,p.On,C.bx,C.R9,ct.Rr,E.ib,E.yz,E.yK,M.gD,D.BN,W.h,V.d],pipes:[u.Ov,u.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();const za=["peersForm"],Ga=["stepper"];function Va(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Wa(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Xa(n,i){if(1&n&&(t.TgZ(0,"div",37),t._UZ(1,"fa-icon",38),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function ja(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Ka(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function $a(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function tl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function el(n,i){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function nl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("","0"===e.channelFormGroup.controls.selTransType.value?"Default":"1"===e.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function ol(n,i){if(1&n&&(t.TgZ(0,"div",37),t._UZ(1,"fa-icon",38),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let il=(()=>{class n{constructor(e,o,a,l,r,h,f){this.dialogRef=e,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=r,this.actions=h,this.logger=f,this.faExclamationTriangle=b.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=s.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new d.x,new d.x]}ngOnInit(){var e;this.totalBalance=(null===(e=this.data.message)||void 0===e?void 0:e.balance)||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[p.kI.required]],peerAddress:["",[p.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[p.kI.required,p.kI.min(1),p.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[s.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[p.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,_.R)(this.unSubs[0])).subscribe(o=>{o===s.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([p.kI.required]))}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,H.h)(o=>o.type===s.uR.NEWLY_ADDED_PEER_LND||o.type===s.uR.FETCH_PENDING_CHANNELS_LND||o.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===s.uR.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===s.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===s.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===s.Bn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const e=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";e>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,e),a=this.peerFormGroup.controls.peerAddress.value.substring(e+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,A.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,X.q)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(e,o){this.store.dispatch((0,A.El)({payload:{pubkey:e,host:o,perm:!1}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,A.YX)({payload:{selectedPeerPubkey:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var o,a;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.alias):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(null===(a=this.newlyAddedPeer)||void 0===a?void 0:a.alias):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(ot.l),t.Y36(p.qu),t.Y36(j.eX),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(e,o){if(1&e&&(t.Gf(za,5),t.Gf(Ga,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(l){return o.stepSelectionChanged(l)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Va,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Wa,2,0,"mat-error",14),t.qZA(),t.YNc(18,Xa,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return o.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,ja,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Ka,2,0,"mat-error",14),t.YNc(34,$a,2,0,"mat-error",14),t.YNc(35,tl,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"div",25)(37,"mat-slide-toggle",26),t._uU(38,"Private Channel"),t.qZA()()(),t.TgZ(39,"div",27)(40,"mat-form-field",28)(41,"mat-select",29),t.YNc(42,el,2,2,"mat-option",30),t.qZA()(),t.TgZ(43,"mat-form-field",31),t._UZ(44,"input",32),t.YNc(45,nl,2,1,"mat-error",14),t.qZA(),t.TgZ(46,"div",25)(47,"mat-slide-toggle",33),t._uU(48,"Spend Unconfirmed Output"),t.qZA()()()(),t.YNc(49,ol,4,2,"div",15),t.TgZ(50,"div",16)(51,"button",34),t.NdJ("click",function(){return o.onOpenChannel()}),t._uU(52),t.qZA()()()()(),t.TgZ(53,"div",35)(54,"button",36),t._uU(55),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",o.peerFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==o.peerConnectionError),t.xp6(3),t.Oqu(""!==o.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",o.channelFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(7),t.Q6J("ngForOf",o.transTypes),t.xp6(2),t.Q6J("placeholder","0"===o.channelFormGroup.controls.selTransType.value?"Default":"1"===o.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==o.channelFormGroup.controls.selTransType.value),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.transTypeValue.errors?null:o.channelFormGroup.controls.transTypeValue.errors.required),t.xp6(4),t.Q6J("ngIf",""!==o.channelConnectionError),t.xp6(3),t.Oqu(""!==o.channelConnectionError?"Retry":"Open Channel"),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(null!=o.newlyAddedPeer&&o.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,C.KE,P.Nt,p.Fj,W.h,p.JJ,p.u,p.Q7,u.O5,C.TO,D.BN,p.wV,C.bx,C.R9,ct.Rr,M.gD,u.sg,G.ey,Q.ZT],styles:[""]}),n})();function al(n,i){1&n&&t._UZ(0,"mat-progress-bar",32)}function ll(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Alias "),t.qZA())}const jt=function(n){return{"max-width":n}};function sl(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,jt,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function rl(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Public Key "),t.qZA())}function cl(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,jt,o.screenSize===o.screenSizeEnum.XS?"5rem":"35rem")),t.xp6(1),t.hij(" ",null==e?null:e.pub_key," ")}}function pl(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Sats Sent "),t.qZA())}function ul(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.sat_sent)," ")}}function ml(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Sats Received "),t.qZA())}function dl(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.sat_recv)," ")}}function hl(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Ping "),t.qZA())}function _l(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.ping_time)," ")}}function fl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",41),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function gl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",42)(1,"div",39)(2,"mat-select",40),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",41),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onPeerClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",41),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onOpenChannel(l)}),t._uU(7,"Open Channel"),t.qZA(),t.TgZ(8,"mat-option",41),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onPeerDetach(l)}),t._uU(9,"Disconnect"),t.qZA()()()()}}function Cl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function xl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function yl(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Tl(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,Cl,2,0,"p",44),t.YNc(2,xl,2,0,"p",44),t.YNc(3,yl,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const vl=function(n){return{"display-none":n}};function bl(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,vl,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function wl(n,i){1&n&&t._UZ(0,"tr",46)}function Zl(n,i){1&n&&t._UZ(0,"tr",47)}const Al=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ll=function(){return["no_peer"]};let Sl=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.rtlEffects=a,this.commonService=l,this.availableBalance=0,this.faUsers=b.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.availableBalance=e.blockchainBalance.total_balance||0}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(e)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:s.Gi.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:s.Gi.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:s.Gi.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:s.Gi.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:s.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,F.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:il}}}))}onOpenChannel(e){this.store.dispatch((0,F.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Xt}}}))}onPeerDetach(e){this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{a&&this.store.dispatch((0,A.z)({payload:{pubkey:e.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(e){this.peers=new c.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.peers.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(dt.V),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Peers")}])],decls:40,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.onConnectPeer()}),t._uU(3,"Add Peer"),t.qZA()(),t.TgZ(4,"div",3)(5,"div",4)(6,"div",5),t._UZ(7,"fa-icon",6),t.TgZ(8,"span",7),t._uU(9,"Connected Peers"),t.qZA()(),t.TgZ(10,"mat-form-field",8)(11,"input",9),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(12,"div",10),t.YNc(13,al,1,0,"mat-progress-bar",11),t.TgZ(14,"table",12,13),t.ynx(16,14),t.YNc(17,ll,2,0,"th",15),t.YNc(18,sl,2,4,"td",16),t.BQk(),t.ynx(19,17),t.YNc(20,rl,2,0,"th",15),t.YNc(21,cl,2,4,"td",16),t.BQk(),t.ynx(22,18),t.YNc(23,pl,2,0,"th",19),t.YNc(24,ul,4,3,"td",20),t.BQk(),t.ynx(25,21),t.YNc(26,ml,2,0,"th",19),t.YNc(27,dl,4,3,"td",20),t.BQk(),t.ynx(28,22),t.YNc(29,hl,2,0,"th",19),t.YNc(30,_l,4,3,"td",20),t.BQk(),t.ynx(31,23),t.YNc(32,fl,6,0,"th",24),t.YNc(33,gl,10,0,"td",25),t.BQk(),t.ynx(34,26),t.YNc(35,Tl,4,3,"td",27),t.BQk(),t.YNc(36,bl,1,3,"tr",28),t.YNc(37,wl,1,0,"tr",29),t.YNc(38,Zl,1,0,"tr",30),t.qZA()(),t._UZ(39,"mat-paginator",31),t.qZA()()),2&e&&(t.xp6(7),t.Q6J("icon",o.faUsers),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.peers)("ngClass",t.VKq(12,Al,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,Ll)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,q.lW,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function Fl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOpenChannels)}}function kl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numPendingChannels)}}function ql(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Closed"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numClosedChannels)}}function Nl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Active HTLCs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numActiveHTLCs)}}let Ol=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e instanceof v.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(o=>o.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var o;this.numOpenChannels=e.channels&&e.channels.length?e.channels.length:0,this.numActiveHTLCs=null===(o=e.channels)||void 0===o?void 0:o.reduce((a,l)=>a+(l.pending_htlcs&&l.pending_htlcs.length>0?l.pending_htlcs.length:0),0),this.logger.info(e)}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPendingChannels=e.pendingChannelsSummary.total_channels?e.pendingChannelsSummary.total_channels:0}),this.store.select(T.P2).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.numClosedChannels=e.closedChannels&&e.closedChannels.length?e.closedChannels.length:0}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=+(e.blockchainBalance.total_balance||0)}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[6])).subscribe(e=>{this.peers=e.peers,this.peers.forEach(o=>{var a;(!o.alias||""===o.alias)&&(o.alias=(null===(a=o.pub_key)||void 0===a?void 0:a.substring(0,15))+"...")}),this.logger.info(e)})}onOpenChannel(){this.store.dispatch((0,F.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Xt}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(l){return o.activeLink=l})("selectedTabChange",function(l){return o.onSelectedTabChange(l)}),t.TgZ(6,"mat-tab"),t.YNc(7,Fl,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,kl,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,ql,2,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-tab"),t.YNc(13,Nl,2,1,"ng-template",5),t.qZA()(),t.TgZ(14,"div",6),t._UZ(15,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",o.activeLink))},directives:[m.xw,m.yH,m.Wh,q.lW,R.SP,R.uX,R.uD,At.k,v.lC],styles:[""]}),n})();var it=g(7261),ht=g(6895);function Ul(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",14)(3,"h4",11),t._uU(4,"Commit Fee"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",14)(9,"h4",11),t._uU(10,"Commit Weight"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div",14)(15,"h4",11),t._uU(16,"Fee/KW"),t.qZA(),t.TgZ(17,"span",15),t._uU(18),t.ALo(19,"number"),t.qZA()(),t.TgZ(20,"div",14)(21,"h4",11),t._uU(22,"Static Remote Key"),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.qZA()()(),t._UZ(25,"mat-divider",13),t.TgZ(26,"div",9)(27,"div",14)(28,"h4",11),t._uU(29),t.qZA(),t.TgZ(30,"span",15),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div",14)(34,"h4",11),t._uU(35),t.qZA(),t.TgZ(36,"span",15),t._uU(37),t.ALo(38,"number"),t.qZA()(),t.TgZ(39,"div",14)(40,"h4",11),t._uU(41,"Unsettled Balance"),t.qZA(),t.TgZ(42,"span",15),t._uU(43),t.ALo(44,"number"),t.qZA()(),t.TgZ(45,"div",14)(46,"h4",11),t._uU(47,"CSV Delay"),t.qZA(),t.TgZ(48,"span",15),t._uU(49),t.ALo(50,"number"),t.qZA()()(),t._UZ(51,"mat-divider",13),t.TgZ(52,"div",9)(53,"div",14)(54,"h4",11),t._uU(55,"Local Reserve (Sats)"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.ALo(58,"number"),t.qZA()(),t.TgZ(59,"div",14)(60,"h4",11),t._uU(61,"Remote Reserve (Sats)"),t.qZA(),t.TgZ(62,"span",15),t._uU(63),t.ALo(64,"number"),t.qZA()(),t.TgZ(65,"div",14)(66,"h4",11),t._uU(67,"Lifetime (Seconds)"),t.qZA(),t.TgZ(68,"span",15),t._uU(69),t.ALo(70,"number"),t.qZA()(),t.TgZ(71,"div",14)(72,"h4",11),t._uU(73,"Pending HTLCs"),t.qZA(),t.TgZ(74,"span",15),t._uU(75),t.ALo(76,"number"),t.qZA()()(),t._UZ(77,"mat-divider",13),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,17,e.channel.commit_fee)),t.xp6(6),t.Oqu(t.lcZ(13,19,e.channel.commit_weight)),t.xp6(6),t.Oqu(t.lcZ(19,21,e.channel.fee_per_kw)),t.xp6(6),t.Oqu(e.channel.static_remote_key?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(4),t.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),t.xp6(2),t.Oqu(t.lcZ(32,23,e.channel.total_satoshis_sent)),t.xp6(4),t.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),t.xp6(2),t.Oqu(t.lcZ(38,25,e.channel.total_satoshis_received)),t.xp6(6),t.Oqu(t.lcZ(44,27,e.channel.unsettled_balance)),t.xp6(6),t.Oqu(t.lcZ(50,29,e.channel.csv_delay)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(58,31,e.channel.local_chan_reserve_sat)),t.xp6(6),t.Oqu(t.lcZ(64,33,e.channel.remote_chan_reserve_sat)),t.xp6(6),t.Oqu(t.lcZ(70,35,e.channel.lifetime)),t.xp6(6),t.Oqu(t.lcZ(76,37,null==e.channel||null==e.channel.pending_htlcs?null:e.channel.pending_htlcs.length)),t.xp6(2),t.Q6J("inset",!0)}}function Ml(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function Pl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Il(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("copied",function(a){return t.CHM(e),t.oxw().onCopyChanID(a)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.chan_id)}}function Rl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(1,"OK"),t.qZA()}}const Dl=function(n){return{"xs-scroll-y":n}};let St=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.logger=a,this.commonService=l,this.snackBar=r,this.faReceipt=b.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(O.v),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return o.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Channel ID"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",10)(18,"h4",11),t._uU(19,"Peer Alias"),t.qZA(),t.TgZ(20,"span",12),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",13),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"Channel Point"),t.qZA(),t.TgZ(27,"span",12),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",13),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"Peer Public Key"),t.qZA(),t.TgZ(34,"span",12),t._uU(35),t.qZA()()(),t._UZ(36,"mat-divider",13),t.TgZ(37,"div",9)(38,"div",14)(39,"h4",11),t._uU(40,"Local Balance"),t.qZA(),t.TgZ(41,"span",15),t._uU(42),t.ALo(43,"number"),t.qZA()(),t.TgZ(44,"div",14)(45,"h4",11),t._uU(46,"Remote Balance"),t.qZA(),t.TgZ(47,"span",15),t._uU(48),t.ALo(49,"number"),t.qZA()(),t.TgZ(50,"div",14)(51,"h4",11),t._uU(52,"Capacity"),t.qZA(),t.TgZ(53,"span",15),t._uU(54),t.ALo(55,"number"),t.qZA()(),t.TgZ(56,"div",14)(57,"h4",11),t._uU(58,"Uptime (Seconds)"),t.qZA(),t.TgZ(59,"span",15),t._uU(60),t.ALo(61,"number"),t.qZA()()(),t._UZ(62,"mat-divider",13),t.TgZ(63,"div",9)(64,"div",14)(65,"h4",11),t._uU(66,"Active"),t.qZA(),t.TgZ(67,"span",15),t._uU(68),t.qZA()(),t.TgZ(69,"div",14)(70,"h4",11),t._uU(71,"Private"),t.qZA(),t.TgZ(72,"span",15),t._uU(73),t.qZA()(),t.TgZ(74,"div",14)(75,"h4",11),t._uU(76,"Initiator"),t.qZA(),t.TgZ(77,"span",15),t._uU(78),t.qZA()(),t.TgZ(79,"div",14)(80,"h4",11),t._uU(81,"Number of Updates"),t.qZA(),t.TgZ(82,"span",15),t._uU(83),t.ALo(84,"number"),t.qZA()()(),t._UZ(85,"mat-divider",13),t.YNc(86,Ul,78,39,"div",16),t.TgZ(87,"div",17)(88,"button",18),t.NdJ("click",function(){return o.onShowAdvanced()}),t.YNc(89,Ml,2,0,"p",19),t.YNc(90,Pl,2,0,"ng-template",null,20,t.W1O),t.qZA(),t.YNc(92,Il,2,1,"button",21),t.YNc(93,Rl,2,0,"button",22),t.qZA()()()()()),2&e){const a=t.MAs(91);t.xp6(4),t.Q6J("icon",o.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(34,Dl,o.screenSize===o.screenSizeEnum.XS)),t.xp6(7),t.Oqu(o.channel.chan_id),t.xp6(5),t.Oqu(o.channel.remote_alias),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.channel_point),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.remote_pubkey),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(43,24,o.channel.local_balance)),t.xp6(6),t.Oqu(t.lcZ(49,26,o.channel.remote_balance)),t.xp6(6),t.Oqu(t.lcZ(55,28,o.channel.capacity)),t.xp6(6),t.Oqu(t.lcZ(61,30,o.channel.uptime)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.active?"Yes":"No"),t.xp6(5),t.Oqu(o.channel.private?"Yes":"No"),t.xp6(5),t.Oqu(o.channel.initiator?"Yes":"No"),t.xp6(5),t.Oqu(t.lcZ(84,32,o.channel.num_updates)),t.xp6(2),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",o.showAdvanced),t.xp6(3),t.Q6J("ngIf",!o.showAdvanced)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.showCopy),t.xp6(1),t.Q6J("ngIf",!o.showCopy)}},directives:[m.xw,m.Wh,m.yH,y.dk,D.BN,q.lW,y.dn,u.mk,L.oO,V.d,u.O5,W.h,ht.y],pipes:[u.JJ],styles:[""]}),n})();var Ft=g(9646);function Ql(n,i){1&n&&t.GkF(0)}const _t=function(n,i){return{"small-svg":n,"large-svg":i}};function Jl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.qZA(),t.kcU(),t.TgZ(41,"div",47)(42,"mat-card-title"),t._uU(43,"Circular rebalancing explained."),t.qZA()(),t.TgZ(44,"div",48)(45,"mat-card-subtitle",49),t._uU(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function El(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55)(7,"path",56)(8,"path",57)(9,"path",58)(10,"path",59)(11,"path",60)(12,"path",61)(13,"path",62)(14,"path",63)(15,"path",64)(16,"path",65)(17,"path",66)(18,"path",67)(19,"path",68)(20,"path",69)(21,"path",70)(22,"path",71)(23,"path",72)(24,"path",73)(25,"path",74)(26,"path",75)(27,"path",76)(28,"path",77)(29,"path",78)(30,"path",79)(31,"path",80)(32,"path",81)(33,"path",51)(34,"path",52)(35,"path",53)(36,"path",54)(37,"path",55)(38,"path",56)(39,"path",57)(40,"path",58)(41,"path",59)(42,"path",82)(43,"path",83)(44,"path",62)(45,"path",84)(46,"path",85)(47,"path",86)(48,"path",66)(49,"path",67)(50,"path",68)(51,"path",69)(52,"path",70)(53,"path",71)(54,"path",72)(55,"path",73)(56,"path",74)(57,"path",75)(58,"path",76)(59,"path",77)(60,"path",78)(61,"path",79)(62,"path",87)(63,"path",81)(64,"path",88),t.TgZ(65,"defs")(66,"linearGradient",89),t._UZ(67,"stop",90)(68,"stop",91)(69,"stop",92),t.qZA(),t.TgZ(70,"linearGradient",93),t._UZ(71,"stop",90)(72,"stop",91)(73,"stop",92),t.qZA(),t.TgZ(74,"linearGradient",94),t._UZ(75,"stop",90)(76,"stop",91)(77,"stop",92),t.qZA(),t.TgZ(78,"linearGradient",95),t._UZ(79,"stop",90)(80,"stop",91)(81,"stop",92),t.qZA(),t.TgZ(82,"linearGradient",96),t._UZ(83,"stop",90)(84,"stop",91)(85,"stop",92),t.qZA(),t.TgZ(86,"linearGradient",97),t._UZ(87,"stop",90)(88,"stop",91)(89,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(90,"div",47)(91,"mat-card-title"),t._uU(92,"Step 1: Unbalanced channel"),t.qZA()(),t.TgZ(93,"div",48)(94,"mat-card-subtitle",49),t._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Hl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",98),t._UZ(2,"path",99)(3,"path",100)(4,"path",101)(5,"path",102)(6,"path",103)(7,"path",104)(8,"path",105)(9,"path",106)(10,"path",107)(11,"path",108)(12,"path",109)(13,"path",110)(14,"path",111)(15,"path",112)(16,"path",113)(17,"path",51)(18,"path",114)(19,"path",115)(20,"path",116)(21,"path",117)(22,"path",118)(23,"path",119)(24,"path",120)(25,"path",121)(26,"path",82)(27,"path",83)(28,"path",122)(29,"path",123)(30,"path",124)(31,"path",125)(32,"path",66)(33,"path",126)(34,"path",127)(35,"path",128)(36,"path",129)(37,"path",130)(38,"path",131)(39,"path",73)(40,"path",74)(41,"path",132)(42,"path",76)(43,"path",77)(44,"path",78)(45,"path",79)(46,"path",133)(47,"path",134)(48,"path",135),t.TgZ(49,"defs")(50,"linearGradient",136),t._UZ(51,"stop",90)(52,"stop",91)(53,"stop",92),t.qZA(),t.TgZ(54,"linearGradient",137),t._UZ(55,"stop",90)(56,"stop",91)(57,"stop",92),t.qZA(),t.TgZ(58,"linearGradient",138),t._UZ(59,"stop",90)(60,"stop",91)(61,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(62,"div",47)(63,"mat-card-title"),t._uU(64,"Step 2: Invoice/Payment"),t.qZA()(),t.TgZ(65,"div",48)(66,"mat-card-subtitle",49),t._uU(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Yl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",139),t._UZ(2,"path",140)(3,"path",141)(4,"path",142)(5,"path",143)(6,"path",144)(7,"path",145)(8,"path",146)(9,"path",147)(10,"path",148)(11,"path",149)(12,"path",150)(13,"path",151)(14,"path",152)(15,"path",153)(16,"path",154)(17,"path",155)(18,"path",156)(19,"path",157)(20,"path",158)(21,"path",159)(22,"path",160)(23,"path",161)(24,"path",162)(25,"path",163)(26,"path",162)(27,"path",164)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",169)(33,"path",170)(34,"path",171)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",177)(41,"path",178),t.TgZ(42,"defs")(43,"linearGradient",179),t._UZ(44,"stop",90)(45,"stop",91)(46,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(47,"div",47)(48,"mat-card-title"),t._uU(49,"Step 3: Rebalance amount"),t.qZA()(),t.TgZ(50,"div",48)(51,"mat-card-subtitle",49),t._uU(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Bl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",139),t._UZ(2,"path",180)(3,"path",142)(4,"path",181)(5,"path",144)(6,"path",145)(7,"path",182)(8,"path",147)(9,"path",183)(10,"path",184)(11,"path",185)(12,"path",186)(13,"path",187)(14,"path",188)(15,"path",189)(16,"path",190)(17,"path",191)(18,"path",157)(19,"path",192)(20,"path",193)(21,"path",178)(22,"path",159)(23,"path",160)(24,"path",194)(25,"path",162)(26,"path",163)(27,"path",162)(28,"path",164)(29,"path",165)(30,"path",166)(31,"path",167)(32,"path",195)(33,"path",169)(34,"path",196)(35,"path",171)(36,"path",172)(37,"path",173)(38,"path",174)(39,"path",175)(40,"path",197),t.TgZ(41,"defs")(42,"linearGradient",198),t._UZ(43,"stop",90)(44,"stop",91)(45,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(46,"div",47)(47,"mat-card-title"),t._uU(48,"Rebalance successful!"),t.qZA()(),t.TgZ(49,"div",48)(50,"mat-card-subtitle",49),t._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let zl=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z","fill","#D0D2D5"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z","fill","#D0D2D5"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","#444053"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z","fill","#444053"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z","fill","#6C63FF"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z","fill","#6C63FF"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z","fill","#6C63FF"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z","fill","#6C63FF"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z","fill","#6C63FF"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z","fill","#6C63FF"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z","fill","#6C63FF"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z","fill","#6C63FF"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z","fill","#6C63FF"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z","fill","#6C63FF"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z","fill","#6C63FF"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z","fill","#6C63FF"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z","fill","#6C63FF"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z","fill","#5E4EA5"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z","fill","#F2F2F2"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z","fill","#4A4A4A"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z","fill","#4A4A4A"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z","fill","#4A4A4A"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z","fill","#4A4A4A"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z","fill","#4A4A4A"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z","fill","#4A4A4A"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z","fill","#4A4A4A"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z","fill","#4A4A4A"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z","fill","#F2F2F2"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z","fill","#4A4A4A"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z","fill","#F2F2F2"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z","fill","#5E4EA5"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z","fill","#5E4EA5"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z","fill","#5E4EA5"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z","fill","#5E4EA5"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z","fill","#C4B7FF"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#C4B7FF"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z","fill","#F2F2F2"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z","fill","#5B5B5B"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z","fill","#F2F2F2"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z","fill","#CBCBCB"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z","fill","#595959"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z","fill","#F2F2F2"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z","fill","#CBCBCB"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z","fill","#595959"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z","fill","#595959"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z","fill","#CBCBCB"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z","fill","#CBCBCB"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z","fill","#CBCBCB"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z","fill","#595959"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z","fill","#5E4EA5"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z","fill","#5E4EA5"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z","fill","#5E4EA5"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#5E4EA5"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z","fill","#CBCBCB"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z","fill","#595959"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(e,o){if(1&e&&(t.YNc(0,Ql,1,0,"ng-container",0),t.YNc(1,Jl,47,5,"ng-template",null,1,t.W1O),t.YNc(3,El,96,5,"ng-template",null,2,t.W1O),t.YNc(5,Hl,68,5,"ng-template",null,3,t.W1O),t.YNc(7,Yl,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Bl,52,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const Gl=["stepper"];function Vl(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function Wl(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Xl(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function jl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.local_balance,".")}}function Kl(n,i){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE("",e.remote_alias," - ",e.chan_id,"")}}function $l(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer is required."),t.qZA())}function ts(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer not found in the list."),t.qZA())}function es(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.feeFormLabel)}}function ns(n,i){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function os(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," is required.")}}function is(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," must be a positive number.")}}function as(n,i){1&n&&t._uU(0,"Invoice/Payment")}function ls(n,i){1&n&&(t.TgZ(0,"mat-icon",56),t._uU(1,"check"),t.qZA())}function ss(n,i){1&n&&t._UZ(0,"mat-progress-bar",57)}function rs(n,i){if(1&n&&(t.TgZ(0,"mat-icon",56),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(null!=e.paymentStatus&&e.paymentStatus.error?"close":"check")}}function cs(n,i){1&n&&t._UZ(0,"div",14)}function ps(n,i){1&n&&t._UZ(0,"mat-progress-bar",57)}function us(n,i){if(1&n&&(t.TgZ(0,"h4",58),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentStatus&&e.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function ms(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",59),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function ds(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),t._uU(5),t.qZA()(),t.TgZ(6,"div",10)(7,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",13)(12,"div",14)(13,"div",15)(14,"div",16),t._UZ(15,"fa-icon",17),t.TgZ(16,"span"),t._uU(17,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.qZA()()(),t.TgZ(18,"div",18)(19,"p",19)(20,"strong"),t._uU(21,"Channel Peer:\xa0"),t.qZA(),t._uU(22),t.ALo(23,"titlecase"),t.qZA(),t.TgZ(24,"p",19)(25,"strong"),t._uU(26,"Channel ID:\xa0"),t.qZA(),t._uU(27),t.qZA()(),t.TgZ(28,"mat-vertical-stepper",20,21),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(30,"mat-step",22)(31,"form",23),t.YNc(32,Vl,1,1,"ng-template",24),t.TgZ(33,"div",25)(34,"mat-form-field",26),t._UZ(35,"input",27),t.TgZ(36,"mat-hint"),t._uU(37),t.qZA(),t.TgZ(38,"span",28),t._uU(39,"Sats"),t.qZA(),t.YNc(40,Wl,2,0,"mat-error",29),t.YNc(41,Xl,2,0,"mat-error",29),t.YNc(42,jl,2,1,"mat-error",29),t.qZA(),t.TgZ(43,"mat-form-field",30)(44,"input",31),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(45,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(47,Kl,2,3,"mat-option",34),t.ALo(48,"async"),t.qZA(),t.YNc(49,$l,2,0,"mat-error",29),t.YNc(50,ts,2,0,"mat-error",29),t.qZA()(),t.TgZ(51,"div",35)(52,"button",36),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSelectFee()}),t._uU(53,"Select Fee"),t.qZA()()()(),t.TgZ(54,"mat-step",22)(55,"form",23),t.YNc(56,es,1,1,"ng-template",37),t.TgZ(57,"div",25)(58,"div",25)(59,"mat-form-field",30)(60,"mat-select",38),t.YNc(61,ns,2,2,"mat-option",34),t.qZA()(),t.TgZ(62,"mat-form-field",26),t._UZ(63,"input",39),t.YNc(64,os,2,1,"mat-error",29),t.YNc(65,is,2,1,"mat-error",29),t.qZA()()(),t.TgZ(66,"div",35)(67,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRebalance()}),t._uU(68,"Rebalance"),t.qZA()()()(),t.TgZ(69,"mat-step",41)(70,"form",23),t.YNc(71,as,1,0,"ng-template",24),t.TgZ(72,"div",42)(73,"mat-expansion-panel",43)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",44),t._uU(77),t.YNc(78,ls,2,0,"mat-icon",45),t.qZA()()(),t.TgZ(79,"div",14)(80,"span",46),t._uU(81),t.qZA()()(),t.YNc(82,ss,1,0,"mat-progress-bar",47),t.TgZ(83,"mat-expansion-panel",48)(84,"mat-expansion-panel-header")(85,"mat-panel-title")(86,"span",44),t._uU(87),t.YNc(88,rs,2,1,"mat-icon",45),t.qZA()()(),t.YNc(89,cs,1,0,"div",49),t.qZA(),t.YNc(90,ps,1,0,"mat-progress-bar",47),t.qZA(),t.YNc(91,us,2,1,"h4",50),t.TgZ(92,"div",51),t.YNc(93,ms,2,0,"button",52),t.qZA()()()(),t.TgZ(94,"div",53)(95,"button",54),t._uU(96,"Close"),t.qZA()()()()()()}if(2&n){const e=t.MAs(46),o=t.oxw(),a=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(o.channel?"Channel "+o.loopDirectionCaption:o.loopDirectionCaption),t.xp6(1),t.Q6J("fxFlex",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM?"17":"9"),t.xp6(9),t.Q6J("icon",o.faInfoCircle),t.xp6(7),t.Oqu(t.lcZ(23,45,o.selChannel.remote_alias)),t.xp6(5),t.Oqu(o.selChannel.chan_id),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",o.inputFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.inputFormGroup),t.xp6(4),t.Q6J("step",100),t.xp6(2),t.AsE("(Local Bal: ",null==o.selChannel?null:o.selChannel.local_balance,", Remaining: ",(null==o.selChannel?null:o.selChannel.local_balance)-(o.inputFormGroup.controls.rebalanceAmount.value?o.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.xp6(3),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.max),t.xp6(2),t.Q6J("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(48,47,o.filteredActiveChannels)),t.xp6(2),t.Q6J("ngIf",null==o.inputFormGroup.controls.selRebalancePeer.errors?null:o.inputFormGroup.controls.selRebalancePeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.selRebalancePeer.errors?null:o.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.xp6(4),t.Q6J("stepControl",o.feeFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.feeFormGroup),t.xp6(6),t.Q6J("ngForOf",o.feeLimitTypes),t.xp6(2),t.s9C("placeholder",o.feeFormGroup.controls.selFeeLimitType.value?o.feeFormGroup.controls.selFeeLimitType.value.placeholder:o.feeLimitTypes[0].placeholder),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==o.feeFormGroup.controls.feeLimit.errors?null:o.feeFormGroup.controls.feeLimit.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.feeFormGroup.controls.feeLimit.errors?null:o.feeFormGroup.controls.feeLimit.errors.min),t.xp6(4),t.Q6J("stepControl",o.statusFormGroup),t.xp6(1),t.Q6J("formGroup",o.statusFormGroup),t.xp6(7),t.Oqu(o.flgInvoiceGenerated?o.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated),t.xp6(3),t.Oqu(o.paymentRequest),t.xp6(1),t.Q6J("ngIf",!o.flgInvoiceGenerated),t.xp6(1),t.Q6J("expanded",(o.flgInvoiceGenerated||o.flgReusingInvoice)&&o.flgPaymentSent),t.xp6(4),t.Oqu(o.flgInvoiceGenerated||o.flgPaymentSent?o.flgPaymentSent?null!=o.paymentStatus&&o.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),t.xp6(1),t.Q6J("ngIf",o.flgPaymentSent),t.xp6(1),t.Q6J("ngIf",!o.paymentStatus)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated&&!o.flgPaymentSent),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated&&o.flgPaymentSent),t.xp6(2),t.Q6J("ngIf",o.paymentStatus&&o.paymentStatus.error),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function hs(n,i){1&n&&t.GkF(0)}function _s(n,i){if(1&n&&t.YNc(0,hs,1,0,"ng-container",60),2&n){const e=t.oxw(),o=t.MAs(4),a=t.MAs(6);t.Q6J("ngTemplateOutlet",e.paymentStatus.error?o:a)}}function fs(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"span",46),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Error: ",e.paymentStatus.error,"")}}function gs(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"div",61)(2,"div",6)(3,"h4",62),t._uU(4,"Payment Hash"),t.qZA(),t.TgZ(5,"span",46),t._uU(6),t.qZA()()(),t._UZ(7,"mat-divider",63),t.TgZ(8,"div",61)(9,"div",64)(10,"h4",62),t._uU(11),t.qZA(),t.TgZ(12,"span",46),t._uU(13),t.qZA()(),t.TgZ(14,"div",64)(15,"h4",62),t._uU(16,"Number of Hops"),t.qZA(),t.TgZ(17,"span",46),t._uU(18),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.paymentStatus.payment_hash),t.xp6(5),t.hij("Total Fees (",e.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),t.xp6(2),t.Oqu(e.paymentStatus.payment_route.total_fees_msat?e.paymentStatus.payment_route.total_fees_msat:e.paymentStatus.payment_route.total_fees?e.paymentStatus.payment_route.total_fees:0),t.xp6(5),t.Oqu(e.paymentStatus&&e.paymentStatus.payment_route&&e.paymentStatus.payment_route.hops&&e.paymentStatus.payment_route.hops.length?e.paymentStatus.payment_route.hops.length:0)}}const Cs=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function xs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",81),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",82),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,Cs,o.stepNumber===e,o.stepNumber!==e))}}function ys(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",83),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Ts(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",84),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function vs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",85),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function bs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",86),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function ws(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",87),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Zs=function(){return[1,2,3,4,5]};function As(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),t._UZ(4,"span",9),t.qZA(),t.TgZ(5,"div",69)(6,"button",70),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",71)(9,"rtl-channel-rebalance-infographics",72),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw().stepNumber=a}),t.qZA()(),t.TgZ(10,"div",73),t.YNc(11,xs,2,4,"span",74),t.qZA(),t.TgZ(12,"div",75),t.YNc(13,ys,2,0,"button",76),t.YNc(14,Ts,2,0,"button",77),t.YNc(15,vs,2,0,"button",78),t.YNc(16,bs,2,0,"button",79),t.YNc(17,ws,2,0,"button",80),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection),t.xp6(2),t.Q6J("ngForOf",t.DdM(9,Zs)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let Ls=(()=>{class n{constructor(e,o,a,l,r,h,f,x){this.dialogRef=e,this.data=o,this.logger=a,this.store=l,this.actions=r,this.formBuilder=h,this.decimalPipe=f,this.commonService=x,this.faInfoCircle=b.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){var e,o,a,l,r;this.screenSize=this.commonService.getScreenSize();let h="",f="";this.selChannel=(null===(e=this.data.message)||void 0===e?void 0:e.selChannel)||{},this.activeChannels=(null===(a=null===(o=this.data.message)||void 0===o?void 0:o.channels)||void 0===a?void 0:a.filter(x=>x.active&&x.chan_id!==this.selChannel.chan_id&&x.remote_balance&&x.remote_balance>0))||[],this.activeChannels=this.activeChannels.sort((x,I)=>(h=x.remote_alias?x.remote_alias.toLowerCase():x.chan_id?x.chan_id.toLowerCase():"",f=I.remote_alias?I.remote_alias.toLowerCase():x.chan_id?x.chan_id.toLowerCase():"",hf?1:0)),s.Vc.forEach((x,I)=>{I>0&&this.feeLimitTypes.push(x)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[p.kI.required]],rebalanceAmount:["",[p.kI.required,p.kI.min(1),p.kI.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,p.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],p.kI.required],feeLimit:["",[p.kI.required,p.kI.min(0)]],hiddenFeeLimit:["",[p.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(T.Ef).pipe((0,_.R)(this.unSubs[0])).subscribe(x=>{this.invoices=x.listInvoices,this.logger.info(x)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,H.h)(x=>x.type===s.uR.SET_QUERY_ROUTES_LND||x.type===s.uR.SEND_PAYMENT_STATUS_LND||x.type===s.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(x=>{x.type===s.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=x.payload),x.type===s.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(x.payload),this.flgPaymentSent=!0,this.paymentStatus=x.payload,this.flgEditable=!0),x.type===s.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(x.payload),this.flgInvoiceGenerated=!0,this.sendPayment(x.payload.paymentRequest))}),null===(l=this.inputFormGroup.get("rebalanceAmount"))||void 0===l||l.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,Lt.O)(0)).subscribe(x=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ft.of)(x?this.filterActiveChannels():this.activeChannels.slice())}),null===(r=this.inputFormGroup.get("selRebalancePeer"))||void 0===r||r.valueChanges.pipe((0,_.R)(this.unSubs[3]),(0,Lt.O)("")).subscribe(x=>{"string"==typeof x&&(this.filteredActiveChannels=(0,Ft.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(e){var o;switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+(null===(o=this.queryRoute.routes[0].hops)||void 0===o?void 0:o.length):"Select rebalance fee"}e.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request||"")):this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:s.IV,openModal:!1}}))}findUnsettledInvoice(){var e;return null===(e=this.invoices.invoices)||void 0===e?void 0:e.find(o=>(!o.settle_date||0==+o.settle_date)&&o.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==o.state)}sendPayment(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch((0,A.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:s.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:s.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){var e;return null===(e=this.activeChannels)||void 0===e?void 0:e.filter(o=>{var a,l;return o.remote_balance&&o.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&o.chan_id!==this.selChannel.chan_id&&(0===(null===(a=o.remote_alias)||void 0===a?void 0:a.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""))||0===(null===(l=o.chan_id)||void 0===l?void 0:l.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))})}onSelectedPeerChanged(){var e;if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const o=null===(e=this.activeChannels)||void 0===e?void 0:e.filter(a=>{var l,r;return(null===(l=a.remote_alias)||void 0===l?void 0:l.length)===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===(null===(r=a.remote_alias)||void 0===r?void 0:r.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""))});o&&o.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(o[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(e){this.animationDirection=e{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,o){if(1&e&&t.Gf(Gl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,ds,97,49,"div",0),t.YNc(1,_s,1,1,"ng-template",null,1,t.W1O),t.YNc(3,fs,3,1,"ng-template",null,2,t.W1O),t.YNc(5,gs,19,4,"ng-template",null,3,t.W1O),t.YNc(7,As,18,10,"div",4)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(7),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,D.BN,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,at.ZL,at.XC,u.sg,G.ey,M.gD,E.ib,E.yz,E.yK,$.Hw,J.pW,Q.ZT,u.tP,V.d,zl,u.mk,L.oO],pipes:[u.rS,u.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();function Ss(n,i){if(1&n&&(t.TgZ(0,"div",16)(1,"p",17)(2,"mat-icon",18),t._uU(3,"close"),t.qZA(),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.errorMsg)}}function Fs(n,i){if(1&n&&(t.TgZ(0,"div",27),t._UZ(1,"fa-icon",28),t.TgZ(2,"span"),t._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faInfoCircle)}}function ks(n,i){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function qs(n,i){1&n&&(t.TgZ(0,"mat-form-field",30),t._UZ(1,"input",31),t.qZA())}function Ns(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function Os(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",32)(1,"input",33,34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).blocks=a}),t.qZA(),t.YNc(3,Ns,2,0,"mat-error",35),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.blocks)}}function Us(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function Ms(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",32)(1,"input",36,37),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).fees=a}),t.qZA(),t.YNc(3,Us,2,0,"mat-error",35),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.fees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.fees)}}function Ps(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",19),t.YNc(1,Fs,4,1,"div",20),t.TgZ(2,"div",21)(3,"mat-form-field",22)(4,"mat-select",23),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().selTransType=a}),t.YNc(5,ks,2,2,"mat-option",24),t.qZA()(),t.YNc(6,qs,2,0,"mat-form-field",25),t.YNc(7,Os,4,4,"mat-form-field",26),t.YNc(8,Ms,4,4,"mat-form-field",26),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.channelToClose.active),t.xp6(3),t.Q6J("value",e.selTransType)("disabled",!e.channelToClose.active),t.xp6(1),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","0"===e.selTransType),t.xp6(1),t.Q6J("ngIf","1"===e.selTransType),t.xp6(1),t.Q6J("ngIf","2"===e.selTransType)}}function Is(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",38),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(1,"Clear"),t.qZA()}}function Rs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCloseChannel()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.channelToClose.active?"Close Channel":"Force Close")}}function Ds(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(1,"Ok"),t.qZA()}}let Qs=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.store=a,this.actions=l,this.logger=r,this.transTypes=s.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=b.eHv,this.faInfoCircle=b.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new d.x,new d.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND||e.type===s.uR.SET_CHANNELS_LND)).subscribe(e=>{if(e.type===s.uR.SET_CHANNELS_LND){const o=e.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&e.payload.status===s.Bn.ERROR&&"FetchAllChannels"===e.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+e.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch((0,A.BL)({payload:e})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(j.eX),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),t._uU(12),t.qZA(),t.YNc(13,Ss,5,1,"div",10),t.YNc(14,Ps,9,7,"div",11),t.qZA(),t.TgZ(15,"div",12),t.YNc(16,Is,2,0,"button",13),t.YNc(17,Rs,2,1,"button",14),t.YNc(18,Ds,2,0,"button",15),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(o.channelToClose.active?"Close Channel":"Force Close Channel"),t.xp6(7),t.hij("",o.channelToClose.active?"Closing channel: "+(o.channelToClose.remote_alias||o.channelToClose.chan_id?o.channelToClose.remote_alias&&o.channelToClose.chan_id?o.channelToClose.remote_alias+" ("+o.channelToClose.chan_id+")":o.channelToClose.remote_alias?o.channelToClose.remote_alias:o.channelToClose.chan_id:o.channelToClose.channel_point):"Force closing channel: "+(o.channelToClose.remote_alias||o.channelToClose.chan_id?o.channelToClose.remote_alias&&o.channelToClose.chan_id?o.channelToClose.remote_alias+" ("+o.channelToClose.chan_id+")":o.channelToClose.remote_alias?o.channelToClose.remote_alias:o.channelToClose.chan_id:o.channelToClose.channel_point)," "),t.xp6(1),t.Q6J("ngIf",o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",!o.flgPendingHtlcs),t.xp6(2),t.Q6J("ngIf",o.channelToClose.active&&!o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",!o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",o.flgPendingHtlcs))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,p._Y,p.JL,p.F,u.O5,$.Hw,D.BN,C.KE,M.gD,u.sg,G.ey,P.Nt,p.wV,p.qQ,p.Fj,et.q,p.Q7,p.JJ,p.On,C.TO],styles:[""]}),n})();function Js(n,i){1&n&&t._UZ(0,"mat-progress-bar",30)}function Es(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1," Peer "),t.qZA())}function Hs(n,i){1&n&&t._UZ(0,"span",39)}function Ys(n,i){1&n&&t._UZ(0,"span",40)}function Bs(n,i){if(1&n&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function zs(n,i){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Gs=function(n){return{"max-width":n}};function Vs(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33),t.YNc(2,Hs,1,0,"span",34),t.YNc(3,Ys,1,0,"span",35),t.YNc(4,Bs,2,1,"span",36),t.YNc(5,zs,2,1,"span",37),t.TgZ(6,"span",38),t._uU(7),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(6,Gs,o.screenSize===o.screenSizeEnum.XS?"10rem":o.screenSize===o.screenSizeEnum.MD?"15rem":"22rem")),t.xp6(1),t.Q6J("ngIf",e.active),t.xp6(1),t.Q6J("ngIf",!e.active),t.xp6(1),t.Q6J("ngIf",e.private),t.xp6(1),t.Q6J("ngIf",!e.private),t.xp6(2),t.Oqu(e.remote_alias||e.remote_pubkey)}}function Ws(n,i){if(1&n&&(t.TgZ(0,"th",44),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Uptime (",e.timeUnit,")")}}function Xs(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",e.uptime_str," ")}}function js(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Sats Sent "),t.qZA())}function Ks(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.total_satoshis_sent)," ")}}function $s(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Sats Received "),t.qZA())}function t1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.total_satoshis_received)," ")}}function e1(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Local Balance (Sats) "),t.qZA())}function n1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.local_balance)," ")}}function o1(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Remote Balance (Sats) "),t.qZA())}function i1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.remote_balance)," ")}}function a1(n,i){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Balance Score "),t.qZA())}function l1(n,i){if(1&n&&(t.TgZ(0,"td",47)(1,"div",48)(2,"mat-hint",49),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",50),t.qZA()),2&n){const e=i.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,e.balancedness||0)),t.xp6(2),t.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function s1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",51)(1,"div",52)(2,"mat-select",53),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function r1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",54),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw().onCircularRebalance(a)}),t._uU(1,"Circular Rebalance"),t.qZA()}}function c1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",54),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw().onLoopOut(a)}),t._uU(1,"Loop Out"),t.qZA()}}function p1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",55)(1,"div",52)(2,"mat-select",56),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",54),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onChannelClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onViewRemotePolicy(l)}),t._uU(7,"View Remote Fee "),t.qZA(),t.TgZ(8,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(l)}),t._uU(9,"Update Fee Policy"),t.qZA(),t.YNc(10,r1,2,0,"mat-option",57),t.YNc(11,c1,2,0,"mat-option",57),t.TgZ(12,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onChannelClose(l)}),t._uU(13,"Close Channel"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(10),t.Q6J("ngIf",+e.versionsArr[0]>0||+e.versionsArr[1]>=9),t.xp6(1),t.Q6J("ngIf",e.selNode.swapServerUrl)}}function u1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function m1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function d1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function h1(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function _1(n,i){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,u1,2,0,"p",59),t.YNc(2,m1,2,0,"p",59),t.YNc(3,d1,2,0,"p",59),t.YNc(4,h1,2,1,"p",59),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}const f1=function(n){return{"display-none":n}};function g1(n,i){if(1&n&&t._UZ(0,"tr",60),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,f1,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function C1(n,i){1&n&&t._UZ(0,"tr",61)}function x1(n,i){1&n&&t._UZ(0,"tr",62)}const y1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},T1=function(){return["no_channel"]};let v1=(()=>{class n{constructor(e,o,a,l,r,h,f,x){var I,w,B,Ut,Mt,Pt;this.logger=e,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=r,this.decimalPipe=h,this.loopService=f,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=s.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.versionsArr=[],this.faEye=b.Mdf,this.faEyeSlash=b.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(B=null===(w=null===(I=this.router.getCurrentNavigation())||void 0===I?void 0:I.extras)||void 0===w?void 0:w.state)||void 0===B?void 0:B.filter)?null===(Pt=null===(Mt=null===(Ut=this.router.getCurrentNavigation())||void 0===Ut?void 0:Ut.extras)||void 0===Mt?void 0:Mt.state)||void 0===Pt?void 0:Pt.filter:""}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a;this.totalBalance=(null===(o=e.blockchainBalance)||void 0===o?void 0:o.total_balance)?+(null===(a=e.blockchainBalance)||void 0===a?void 0:a.total_balance):0}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(e.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(e){var o;this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.GET_REMOTE_POLICY,channelID:(null===(o=e.chan_id)||void 0===o?void 0:o.toString())+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,X.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const l=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:s.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:s.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:s.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:s.Gi.NUMBER}]],r="Remote policy for Channel: "+(e.remote_alias||e.chan_id?e.remote_alias&&e.chan_id?e.remote_alias+" ("+e.chan_id+")":e.remote_alias?e.remote_alias:e.chan_id:e.channel_point);setTimeout(()=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:r,message:l}}}))},0)})}onCircularRebalance(e){this.store.dispatch((0,F.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:e},component:Ls}}}))}onChannelUpdate(e){"all"===e?(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:s.Gi.NUMBER,inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:s.Gi.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:s.Gi.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,A.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.GET_CHAN_POLICY,channelID:e.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,X.q)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(e.remote_alias||e.chan_id?e.remote_alias&&e.chan_id?e.remote_alias+" ("+e.chan_id+")":e.remote_alias?e.remote_alias:e.chan_id:e.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:s.Gi.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:s.Gi.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:e.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,A.pW)({payload:a}))}})),this.applyFilter()}onChannelClose(e){e.active&&this.store.dispatch((0,A.UR)()),this.store.dispatch((0,F.qR)({payload:{data:{channel:e,component:Qs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!0,component:St}}}))}loadChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?1:-1),this.channels=new c.by([...e]),this.channels.filterPredicate=(o,a)=>((o.active?"active":"inactive")+(o.chan_id?o.chan_id.toLowerCase():"")+(o.remote_pubkey?o.remote_pubkey.toLowerCase():"")+(o.remote_alias?o.remote_alias.toLowerCase():"")+(o.capacity?o.capacity:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"")+(o.total_satoshis_sent?o.total_satoshis_sent:"")+(o.total_satoshis_received?o.total_satoshis_received:"")+(o.commit_fee?o.commit_fee:"")+(o.private?"private":"public")).includes(a),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(e){let h=60,f=1,x=0;switch(e.forEach(I=>{I.uptime&&+I.uptime>x&&(x=+I.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",h=60,f=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",h=3600,f=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",h=86400,f=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",h=31536e3,f=86400;break;default:this.timeUnit="Mins:Secs",h=60,f=1}return e.forEach(I=>{I.uptime_str=I.uptime?this.decimalPipe.transform(Math.floor(+I.uptime/h),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+I.uptime%h/f),"2.0-0"):"---"}),e}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[7])).subscribe(o=>{this.store.dispatch((0,F.qR)({payload:{minHeight:"56rem",data:{channel:e,minQuote:o[0],maxQuote:o[1],direction:s.$I.LOOP_OUT,component:xt}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(e){return(e/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v),t.Y36(dt.V),t.Y36(u.JJ),t.Y36(rt.W),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,Js,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Es,2,0,"th",10),t.YNc(11,Vs,8,8,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Ws,2,1,"th",13),t.YNc(14,Xs,3,1,"td",11),t.BQk(),t.ynx(15,14),t.YNc(16,js,2,0,"th",13),t.YNc(17,Ks,4,3,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,$s,2,0,"th",13),t.YNc(20,t1,4,3,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,e1,2,0,"th",13),t.YNc(23,n1,4,3,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,o1,2,0,"th",13),t.YNc(26,i1,4,3,"td",11),t.BQk(),t.ynx(27,18),t.YNc(28,a1,2,0,"th",19),t.YNc(29,l1,6,4,"td",20),t.BQk(),t.ynx(30,21),t.YNc(31,s1,8,0,"th",22),t.YNc(32,p1,14,2,"td",23),t.BQk(),t.ynx(33,24),t.YNc(34,_1,5,4,"td",25),t.BQk(),t.YNc(35,g1,1,3,"tr",26),t.YNc(36,C1,1,0,"tr",27),t.YNc(37,x1,1,0,"tr",28),t.qZA()(),t._UZ(38,"mat-paginator",29),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(11,y1,""!==o.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(13,T1)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,K.gM,D.BN,C.bx,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const b1=["outputIdx"];function w1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Index for change output is required."),t.qZA())}function Z1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid index value."),t.qZA())}function A1(n,i){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function L1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function S1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",17)(1,"input",30,31),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().blocks=a}),t.qZA(),t.YNc(3,L1,2,0,"mat-error",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.blocks)}}function F1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function k1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",17)(1,"input",32,33),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().fees=a}),t.qZA(),t.YNc(3,F1,2,0,"mat-error",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.fees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.fees)}}function q1(n,i){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",13),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.bumpFeeError)}}let N1=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.logger=a,this.dataService=l,this.snackBar=r,this.transTypes=[...s.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=b.kZ_,this.faInfoCircle=b.sqG,this.faExclamationTriangle=b.eHv,this.bumpFeeError="",this.unSubs=[new d.x,new d.x]}set payReq(e){e&&(this.outputIdx=e)}ngOnInit(){var e,o;this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const a=(null===(o=null===(e=this.bumpFeeChannel.channel)||void 0===e?void 0:e.channel_point)||void 0===o?void 0:o.split(":"))||[];this.bumpFeeChannel&&this.bumpFeeChannel.channel&&(this.bumpFeeChannel.channel.txid_str=a[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+a[1]||null)}onBumpFee(){var e;return this.outputIndex===(null===(e=this.bumpFeeChannel.channel)||void 0===e?void 0:e.output_index)?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel&&this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.txid_str?this.bumpFeeChannel.channel.txid_str:"",this.outputIndex,this.blocks||null,this.fees||null).pipe((0,_.R)(this.unSubs[0])).subscribe({next:o=>{this.dialogRef.close(!1)},error:o=>{this.logger.error(o),this.bumpFeeError=o.message?o.message:o}})}onCopyID(e){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(nt.D),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(e,o){if(1&e&&t.Gf(b1,5),2&e){let a;t.iGM(a=t.CRH())&&(o.payReq=a.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Bump Fee"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),t._uU(12),t.TgZ(13,"fa-icon",10),t.NdJ("copied",function(l){return o.onCopyID(l)}),t.qZA()(),t.TgZ(14,"div",11)(15,"div",12),t._UZ(16,"fa-icon",13),t.TgZ(17,"span",14),t._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),t.TgZ(19,"div"),t._uU(20,"Before attempting fee bump ensure the following:"),t.qZA(),t.TgZ(21,"div",15),t._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),t.qZA(),t.TgZ(23,"div",15),t._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),t.qZA(),t.TgZ(25,"div",15),t._uU(26,"3: Find the index value of the change output via a block explorer."),t.qZA(),t.TgZ(27,"div",15),t._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),t.qZA(),t.TgZ(29,"div",15),t._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),t.qZA()()(),t.TgZ(31,"div",16)(32,"mat-form-field",17)(33,"input",18,19),t.NdJ("ngModelChange",function(l){return o.outputIndex=l}),t.qZA(),t.YNc(35,w1,2,0,"mat-error",20),t.YNc(36,Z1,2,0,"mat-error",20),t.qZA(),t.TgZ(37,"mat-form-field",21)(38,"mat-select",22),t.NdJ("valueChange",function(l){return o.selTransType=l})("selectionChange",function(){return o.blocks=null,o.fees=null}),t.YNc(39,A1,2,2,"mat-option",23),t.qZA()(),t.YNc(40,S1,4,4,"mat-form-field",24),t.YNc(41,k1,4,4,"mat-form-field",24),t.qZA(),t.YNc(42,q1,4,2,"div",25),t.qZA()(),t.TgZ(43,"div",26)(44,"button",27),t.NdJ("click",function(){return o.resetData()}),t._uU(45,"Clear"),t.qZA(),t.TgZ(46,"button",28),t.NdJ("click",function(){return o.onBumpFee()}),t._uU(47),t.qZA()()()()()()),2&e){const a=t.MAs(34);t.xp6(12),t.hij("Bump fee for channel point: ",null==o.bumpFeeChannel||null==o.bumpFeeChannel.channel?null:o.bumpFeeChannel.channel.channel_point," "),t.xp6(1),t.Q6J("icon",o.faCopy)("payload",null==o.bumpFeeChannel||null==o.bumpFeeChannel.channel?null:o.bumpFeeChannel.channel.txid_str),t.xp6(3),t.Q6J("icon",o.faInfoCircle),t.xp6(17),t.Q6J("ngModel",o.outputIndex)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",null==a.errors?null:a.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.errors?null:a.errors.pendingChannelOutputIndex),t.xp6(2),t.Q6J("value",o.selTransType),t.xp6(1),t.Q6J("ngForOf",o.transTypes),t.xp6(1),t.Q6J("ngIf","1"===o.selTransType),t.xp6(1),t.Q6J("ngIf","2"===o.selTransType),t.xp6(1),t.Q6J("ngIf",""!==o.bumpFeeError),t.xp6(5),t.Oqu(""!==o.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,p._Y,p.JL,p.F,D.BN,C.R9,ht.y,K.gM,C.KE,P.Nt,p.wV,p.qQ,p.Fj,et.q,p.Q7,p.JJ,p.On,u.O5,C.TO,M.gD,u.sg,G.ey],styles:[""]}),n})();function O1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function U1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function M1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",37),t._uU(1," Peer "),t.qZA())}const Tt=function(n){return{"max-width":n}};function P1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function I1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Commit Fee (Sats) "),t.qZA())}function R1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.commit_fee))}}function D1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Commit Weight "),t.qZA())}function Q1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.commit_weight))}}function J1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Capacity (Sats)"),t.qZA())}function E1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function H1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",41),t._uU(1,"Actions"),t.qZA())}function Y1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",42)(1,"div",43)(2,"mat-select",44),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",45),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onOpenClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",45),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onBumpFee(l)}),t._uU(7,"Bump Fee"),t.qZA()()()()}}function B1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function z1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function G1(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function V1(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,B1,2,0,"p",47),t.YNc(2,z1,2,0,"p",47),t.YNc(3,G1,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const kt=function(n){return{"display-none":n}};function W1(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingOpenChannels&&(null==e.pendingOpenChannels?null:e.pendingOpenChannels.data)&&(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)>0))}}function X1(n,i){1&n&&t._UZ(0,"mat-header-row")}function j1(n,i){1&n&&t._UZ(0,"mat-row",49)}function K1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function $1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",37),t._uU(1," Peer "),t.qZA())}function tr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function er(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Recovered Balance (Sats) "),t.qZA())}function nr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.recovered_balance))}}function or(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Limbo Balance (Sats) "),t.qZA())}function ir(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.limbo_balance))}}function ar(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Capacity (Sats) "),t.qZA())}function lr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function sr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function rr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",52),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onForceClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function cr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function pr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function ur(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function mr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,cr,2,0,"p",47),t.YNc(2,pr,2,0,"p",47),t.YNc(3,ur,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function dr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingForceClosingChannels&&(null==e.pendingForceClosingChannels?null:e.pendingForceClosingChannels.data)&&(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)>0))}}function hr(n,i){1&n&&t._UZ(0,"mat-header-row")}function _r(n,i){1&n&&t._UZ(0,"mat-row",49)}function fr(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function gr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",53),t._uU(1," Peer "),t.qZA())}function Cr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",54),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function xr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function yr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.local_balance))}}function Tr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function vr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.remote_balance))}}function br(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Capacity (Sats) "),t.qZA())}function wr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function Zr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function Ar(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",55),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Lr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function Sr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Fr(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function kr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,Lr,2,0,"p",47),t.YNc(2,Sr,2,0,"p",47),t.YNc(3,Fr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function qr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingClosingChannels&&(null==e.pendingClosingChannels?null:e.pendingClosingChannels.data)&&(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&t._UZ(0,"mat-header-row")}function Or(n,i){1&n&&t._UZ(0,"mat-row",49)}function Ur(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function Mr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",53),t._uU(1," Peer "),t.qZA())}function Pr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",54),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function Ir(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Limbo Balance (Sats) "),t.qZA())}function Rr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij("",t.lcZ(2,1,e.limbo_balance)," ")}}function Dr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function Qr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.local_balance))}}function Jr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Er(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.remote_balance))}}function Hr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Capacity (Sats) "),t.qZA())}function Yr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function Br(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function zr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",56),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onWaitClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Gr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function Vr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Wr(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Xr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,Gr,2,0,"p",47),t.YNc(2,Vr,2,0,"p",47),t.YNc(3,Wr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const jr=function(n){return{"py-0":!0,"display-none":n}};function Kr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,jr,e.pendingWaitClosingChannels&&(null==e.pendingWaitClosingChannels?null:e.pendingWaitClosingChannels.data)&&(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)>0))}}function $r(n,i){1&n&&t._UZ(0,"mat-header-row")}function tc(n,i){1&n&&t._UZ(0,"mat-row",49)}const vt=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},ec=function(){return["no_pending_open"]},nc=function(){return["no_pending_force_closing"]},oc=function(){return["no_pending_closing"]},ic=function(){return["no_pending_wait_closing"]};let ac=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.commonService=a,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(e)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(e){const o=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:s.Gi.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:s.Gi.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:s.Gi.NUMBER}]]}}}))}onBumpFee(e){this.store.dispatch((0,F.qR)({payload:{data:{pendingChannel:e,component:N1}}}))}onForceClosingClick(e){const o=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:s.Gi.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:s.Gi.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:s.Gi.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:s.Gi.NUMBER}]]}}}))}onClosingClick(e){const o=JSON.parse(JSON.stringify(e,["closing_txid"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:s.Gi.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:s.Gi.NUMBER}]]}}}))}onWaitClosingClick(e){const o=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(e.commitments,["local_txid"],2)),r={};Object.assign(r,o,a,l),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:r.local_txid,title:"Transaction ID",width:100,type:s.Gi.STRING}],[{key:"channel_point",value:r.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:r.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:r.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:r.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"limbo_balance",value:r.limbo_balance,title:"Limbo Balance",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:r.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:r.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new c.by([...e]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingOpenChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new c.by([...e]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingForceClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new c.by([...e]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new c.by([...e]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingWaitClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,o){if(1&e&&t.Gf(Z.YE,5),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"span",1),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"mat-accordion",2),t.YNc(5,O1,1,0,"mat-progress-bar",3),t.TgZ(6,"mat-expansion-panel",4)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),t._uU(9),t.qZA()(),t.TgZ(10,"div",5),t.YNc(11,U1,1,0,"mat-progress-bar",3),t.TgZ(12,"table",6,7),t.ynx(14,8),t.YNc(15,M1,2,0,"mat-header-cell",9),t.YNc(16,P1,2,4,"mat-cell",10),t.BQk(),t.ynx(17,11),t.YNc(18,I1,2,0,"mat-header-cell",12),t.YNc(19,R1,3,3,"mat-cell",13),t.BQk(),t.ynx(20,14),t.YNc(21,D1,2,0,"mat-header-cell",12),t.YNc(22,Q1,3,3,"mat-cell",13),t.BQk(),t.ynx(23,15),t.YNc(24,J1,2,0,"mat-header-cell",12),t.YNc(25,E1,3,3,"mat-cell",13),t.BQk(),t.ynx(26,16),t.YNc(27,H1,2,0,"mat-header-cell",17),t.YNc(28,Y1,8,0,"mat-cell",18),t.BQk(),t.ynx(29,19),t.YNc(30,V1,4,3,"td",20),t.BQk(),t.YNc(31,W1,1,3,"tr",21),t.YNc(32,X1,1,0,"mat-header-row",22),t.YNc(33,j1,1,0,"mat-row",23),t.qZA()()(),t.YNc(34,K1,1,0,"mat-progress-bar",3),t.TgZ(35,"mat-expansion-panel",4)(36,"mat-expansion-panel-header")(37,"mat-panel-title"),t._uU(38),t.qZA()(),t.TgZ(39,"div",5)(40,"table",24,7),t.ynx(42,8),t.YNc(43,$1,2,0,"mat-header-cell",9),t.YNc(44,tr,2,4,"mat-cell",10),t.BQk(),t.ynx(45,25),t.YNc(46,er,2,0,"mat-header-cell",12),t.YNc(47,nr,3,3,"mat-cell",13),t.BQk(),t.ynx(48,26),t.YNc(49,or,2,0,"mat-header-cell",12),t.YNc(50,ir,3,3,"mat-cell",13),t.BQk(),t.ynx(51,15),t.YNc(52,ar,2,0,"mat-header-cell",12),t.YNc(53,lr,3,3,"mat-cell",13),t.BQk(),t.ynx(54,16),t.YNc(55,sr,2,0,"mat-header-cell",27),t.YNc(56,rr,3,0,"mat-cell",28),t.BQk(),t.ynx(57,29),t.YNc(58,mr,4,3,"td",20),t.BQk(),t.YNc(59,dr,1,3,"tr",21),t.YNc(60,hr,1,0,"mat-header-row",22),t.YNc(61,_r,1,0,"mat-row",23),t.qZA()()(),t.YNc(62,fr,1,0,"mat-progress-bar",3),t.TgZ(63,"mat-expansion-panel",4)(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66),t.qZA()(),t.TgZ(67,"div",5)(68,"table",24,7),t.ynx(70,8),t.YNc(71,gr,2,0,"mat-header-cell",30),t.YNc(72,Cr,2,4,"mat-cell",31),t.BQk(),t.ynx(73,32),t.YNc(74,xr,2,0,"mat-header-cell",12),t.YNc(75,yr,3,3,"mat-cell",13),t.BQk(),t.ynx(76,33),t.YNc(77,Tr,2,0,"mat-header-cell",12),t.YNc(78,vr,3,3,"mat-cell",13),t.BQk(),t.ynx(79,15),t.YNc(80,br,2,0,"mat-header-cell",12),t.YNc(81,wr,3,3,"mat-cell",13),t.BQk(),t.ynx(82,16),t.YNc(83,Zr,2,0,"mat-header-cell",27),t.YNc(84,Ar,3,0,"mat-cell",28),t.BQk(),t.ynx(85,34),t.YNc(86,kr,4,3,"td",20),t.BQk(),t.YNc(87,qr,1,3,"tr",21),t.YNc(88,Nr,1,0,"mat-header-row",22),t.YNc(89,Or,1,0,"mat-row",23),t.qZA()()(),t.YNc(90,Ur,1,0,"mat-progress-bar",3),t.TgZ(91,"mat-expansion-panel",4)(92,"mat-expansion-panel-header")(93,"mat-panel-title"),t._uU(94),t.qZA()(),t.TgZ(95,"div",5)(96,"table",24,7),t.ynx(98,8),t.YNc(99,Mr,2,0,"mat-header-cell",30),t.YNc(100,Pr,2,4,"mat-cell",31),t.BQk(),t.ynx(101,26),t.YNc(102,Ir,2,0,"mat-header-cell",12),t.YNc(103,Rr,3,3,"mat-cell",13),t.BQk(),t.ynx(104,32),t.YNc(105,Dr,2,0,"mat-header-cell",12),t.YNc(106,Qr,3,3,"mat-cell",13),t.BQk(),t.ynx(107,33),t.YNc(108,Jr,2,0,"mat-header-cell",12),t.YNc(109,Er,3,3,"mat-cell",13),t.BQk(),t.ynx(110,15),t.YNc(111,Hr,2,0,"mat-header-cell",12),t.YNc(112,Yr,3,3,"mat-cell",13),t.BQk(),t.ynx(113,16),t.YNc(114,Br,2,0,"mat-header-cell",27),t.YNc(115,zr,3,0,"mat-cell",28),t.BQk(),t.ynx(116,35),t.YNc(117,Xr,4,3,"td",20),t.BQk(),t.YNc(118,Kr,1,3,"tr",21),t.YNc(119,$r,1,0,"mat-header-row",22),t.YNc(120,tc,1,0,"mat-row",23),t.qZA()()()()()),2&e&&(t.xp6(2),t.hij("Total Limbo Balance: ",t.lcZ(3,30,o.pendingChannels.total_limbo_balance)," Sats"),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Open (",o.pendingOpenChannelsLength,")"),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.pendingOpenChannels)("ngClass",t.VKq(32,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(34,ec)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedOpenColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedOpenColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Force Closing (",o.pendingForceClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingForceClosingChannels)("ngClass",t.VKq(35,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(37,nc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedForceClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedForceClosingColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Closing (",o.pendingClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingClosingChannels)("ngClass",t.VKq(38,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(40,oc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedClosingColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Waiting Close (",o.pendingWaitClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingWaitClosingChannels)("ngClass",t.VKq(41,vt,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(43,ic)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedWaitClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedWaitClosingColumns))},directives:[m.xw,E.pp,u.O5,J.pW,E.ib,E.yz,E.yK,m.Wh,m.yH,z.$V,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,q.lW],pipes:[u.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function lc(n,i){1&n&&t._UZ(0,"mat-progress-bar",27)}function sc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1," Close Type "),t.qZA())}function rc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"div",30)(2,"mat-icon",31),t._uU(3,"info_outline"),t.qZA(),t._uU(4),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Q6J("matTooltip",o.channelClosureType[e.close_type].tooltip),t.xp6(2),t.hij(" ",o.channelClosureType[e.close_type].name," ")}}function cc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1," Peer "),t.qZA())}const pc=function(n){return{"max-width":n}};function uc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,pc,o.screenSize===o.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.hij(" ",e.remote_alias," ")}}function mc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Capacity "),t.qZA())}function dc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.capacity)," ")}}function hc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Close Height "),t.qZA())}function _c(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.close_height)," ")}}function fc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Settled Balance "),t.qZA())}function gc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.settled_balance)," ")}}function Cc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",35)(1,"div",36)(2,"mat-select",37),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",38),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function xc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",39)(1,"span",34)(2,"button",40),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onClosedChannelClick(r,a)}),t._uU(3,"View Info"),t.qZA()()()}}function yc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No closed channel available."),t.qZA())}function Tc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting closed channels..."),t.qZA())}function vc(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function bc(n,i){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,yc,2,0,"p",42),t.YNc(2,Tc,2,0,"p",42),t.YNc(3,vc,2,1,"p",42),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const wc=function(n){return{"display-none":n}};function Zc(n,i){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,wc,(null==e.closedChannels?null:e.closedChannels.data)&&(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)>0))}}function Ac(n,i){1&n&&t._UZ(0,"tr",44)}function Lc(n,i){1&n&&t._UZ(0,"tr",45)}const Sc=function(n){return{"error-border":n,"overflow-auto":!0}},Fc=function(){return["no_closed_channel"]};let kc=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.commonService=a,this.channelClosureType=s.HW,this.faHistory=b.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unsub=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(T.P2).pipe((0,_.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=e.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(e)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:s.Gi.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:s.Gi.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:s.Gi.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:s.Gi.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:s.Gi.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:s.Gi.STRING}]]}}}))}loadClosedChannelsTable(e){this.closedChannels=new c.by([...e]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.closedChannels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,lc,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,sc,2,0,"th",10),t.YNc(11,rc,5,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,cc,2,0,"th",10),t.YNc(14,uc,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,mc,2,0,"th",15),t.YNc(17,dc,4,3,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,hc,2,0,"th",15),t.YNc(20,_c,4,3,"td",11),t.BQk(),t.ynx(21,17),t.YNc(22,fc,2,0,"th",15),t.YNc(23,gc,4,3,"td",11),t.BQk(),t.ynx(24,18),t.YNc(25,Cc,6,0,"th",19),t.YNc(26,xc,4,0,"td",20),t.BQk(),t.ynx(27,21),t.YNc(28,bc,4,3,"td",22),t.BQk(),t.YNc(29,Zc,1,3,"tr",23),t.YNc(30,Ac,1,0,"tr",24),t.YNc(31,Lc,1,0,"tr",25),t.qZA()(),t._UZ(32,"mat-paginator",26),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.closedChannels)("ngClass",t.VKq(11,Sc,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(13,Fc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,$.Hw,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function qc(n,i){1&n&&t._UZ(0,"mat-progress-bar",27)}function Nc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1,"Amount (Sats)"),t.qZA())}function Oc(n,i){if(1&n&&(t.TgZ(0,"span",33),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,null==e?null:e.amount)," ")}}function Uc(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Oc,3,3,"span",32),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Mc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",30),t._uU(2),t.qZA(),t.YNc(3,Uc,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" Active HTLCs: ",null==e||null==e.pending_htlcs?null:e.pending_htlcs.length," "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Pc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1,"Alias/Incoming"),t.qZA())}function Ic(n,i){if(1&n&&(t.TgZ(0,"span",30),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null!=e&&e.incoming?"Yes":"No"," ")}}function Rc(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ic,2,1,"span",34),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Dc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",30),t._uU(2),t.qZA(),t.YNc(3,Rc,2,1,"ng-container",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(null==e?null:e.remote_alias),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Qc(n,i){1&n&&(t.TgZ(0,"th",35)(1,"span",36),t._uU(2,"Expiration Height"),t.qZA()())}function Jc(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e?null:e.expiration_height,"1.0-0")," ")}}function Ec(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Jc,3,4,"span",37),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Hc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",36),t._uU(2),t.qZA(),t.YNc(3,Ec,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(" "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Yc(n,i){1&n&&(t.TgZ(0,"th",38)(1,"span",36),t._uU(2,"Hash Lock"),t.qZA()())}function Bc(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.hash_lock," ")}}function zc(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Bc,2,1,"span",37),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Gc(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",36),t._uU(2),t.qZA(),t.YNc(3,zc,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(" "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Vc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Wc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",45)(1,"button",48),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2).$implicit;return t.oxw().onHTLCClick(l,r)}),t._uU(2),t.qZA()()}if(2&n){const e=i.index;t.xp6(2),t.hij("View ",e+1,"")}}function Xc(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Wc,3,1,"div",47),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function jc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"span",45)(2,"button",46),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return l.is_expanded=!l.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,Xc,2,1,"div",31),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(3),t.Oqu(e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Kc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No active htlc available."),t.qZA())}function $c(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting active htlcs..."),t.qZA())}function t2(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function e2(n,i){if(1&n&&(t.TgZ(0,"td",49),t.YNc(1,Kc,2,0,"p",31),t.YNc(2,$c,2,0,"p",31),t.YNc(3,t2,2,1,"p",31),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const n2=function(n){return{"display-none":n}};function o2(n,i){if(1&n&&t._UZ(0,"tr",50),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,n2,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function i2(n,i){1&n&&t._UZ(0,"tr",51)}function a2(n,i){1&n&&t._UZ(0,"tr",52)}const l2=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},s2=function(){return["no_channel"]};let r2=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=(null===(o=e.channels)||void 0===o?void 0:o.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0))||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:s.Gi.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:s.Gi.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:s.Gi.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:s.Gi.STRING}]]}}}))}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!0,component:St}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(e){this.channels=new c.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{var l,r,h,f;switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(l=this.sort)||void 0===l?void 0:l.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",null===(r=this.sort)||void 0===r?void 0:r.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(h=this.sort)||void 0===h?void 0:h.direction),o;case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(f=this.sort)||void 0===f?void 0:f.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>{var l;return((o.remote_alias?o.remote_alias.toLowerCase():"")+(null===(l=o.pending_htlcs)||void 0===l?void 0:l.map(h=>JSON.stringify(h)+(h.incoming?"yes":"no")))).includes(a)},this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){const e=JSON.parse(JSON.stringify(this.channels.data));return null==e?void 0:e.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("HTLCs")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,qc,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Nc,2,0,"th",10),t.YNc(11,Mc,4,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Pc,2,0,"th",10),t.YNc(14,Dc,4,2,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Qc,3,0,"th",14),t.YNc(17,Hc,4,2,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,Yc,3,0,"th",16),t.YNc(20,Gc,4,2,"td",17),t.BQk(),t.ynx(21,18),t.YNc(22,Vc,6,0,"th",19),t.YNc(23,jc,5,2,"td",20),t.BQk(),t.ynx(24,21),t.YNc(25,e2,4,3,"td",22),t.BQk(),t.YNc(26,o2,1,3,"tr",23),t.YNc(27,i2,1,0,"tr",24),t.YNc(28,a2,1,0,"tr",25),t.qZA()(),t._UZ(29,"mat-paginator",26),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(11,l2,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(13,s2)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.sg,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function c2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Wallet password is required."),t.qZA())}let p2=(()=>{class n{constructor(e){this.store=e,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,A.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(l){return o.walletPassword=l}),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5,"Enter Wallet Password"),t.qZA(),t.YNc(6,c2,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return o.onUnlockWallet()}),t._uU(11,"Unlock Wallet"),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.walletPassword),t.xp6(3),t.Q6J("ngIf",!o.walletPassword))},directives:[m.xw,p._Y,p.JL,p.F,m.Wh,C.KE,m.yH,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,C.bx,u.O5,C.TO,q.lW],styles:[""]}),n})();var u2=g(1555);function m2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",5),t._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),t.qZA(),t.TgZ(4,"div",6)(5,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.proceed=!1,a.warnRes=!0}),t._uU(6,"Do Not Proceed"),t.qZA(),t.TgZ(7,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.proceed=!0,a.warnRes=!0}),t._uU(8,"Proceed"),t.qZA()()()()}}function d2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),t.qZA(),t.TgZ(3,"div",6)(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().warnRes=!1}),t._uU(5,"Go Back"),t.qZA()()()}}function h2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function _2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be at least 8 characters in length."),t.qZA())}function f2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirm password is required."),t.qZA())}function g2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirm password must be at least 8 characters in length."),t.qZA())}function C2(n,i){1&n&&(t.TgZ(0,"div",41)(1,"mat-icon",42),t._uU(2,"cancel"),t.qZA(),t._uU(3,"Passwords do not match. "),t.qZA())}function x2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Cipher seed is required."),t.qZA())}function y2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),t.qZA())}function T2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Passphrase is required."),t.qZA())}function v2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"vpn_key"),t.qZA())}function b2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"swap_calls"),t.qZA())}function w2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"fingerprint"),t.qZA())}function Z2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-vertical-stepper",12,13)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16),t._UZ(5,"input",17),t.TgZ(6,"mat-hint"),t._uU(7,"Enter Wallet Password"),t.qZA(),t.YNc(8,h2,2,0,"mat-error",1),t.YNc(9,_2,2,0,"mat-error",1),t.qZA(),t.TgZ(10,"mat-form-field",16),t._UZ(11,"input",18),t.TgZ(12,"mat-hint"),t._uU(13,"Confirm Wallet Password"),t.qZA(),t.YNc(14,f2,2,0,"mat-error",1),t.YNc(15,g2,2,0,"mat-error",1),t.qZA(),t.YNc(16,C2,4,0,"div",19),t.TgZ(17,"div",20)(18,"button",21),t._uU(19,"Next"),t.qZA()()()(),t.TgZ(20,"mat-step",22)(21,"form",23)(22,"div",24)(23,"mat-slide-toggle",25),t._uU(24,"Existing Cipher"),t.qZA(),t.TgZ(25,"mat-form-field",26),t._UZ(26,"input",27),t.TgZ(27,"mat-hint"),t._uU(28,"Cipher Seed"),t.qZA(),t.YNc(29,x2,2,0,"mat-error",1),t.YNc(30,y2,2,0,"mat-error",1),t.qZA()(),t.TgZ(31,"div",28)(32,"button",29),t._uU(33,"Back"),t.qZA(),t.TgZ(34,"button",30),t._uU(35,"Next"),t.qZA()()()(),t.TgZ(36,"mat-step",31)(37,"form",23)(38,"div",24)(39,"mat-slide-toggle",32),t._uU(40,"Existing Passphrase"),t.qZA(),t.TgZ(41,"mat-form-field",33),t._UZ(42,"input",34),t.TgZ(43,"mat-hint"),t._uU(44,"Enter Passphrase"),t.qZA(),t.YNc(45,T2,2,0,"mat-error",1),t.qZA()(),t.TgZ(46,"div",28)(47,"button",35),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(48,"Clear"),t.qZA(),t.TgZ(49,"button",36),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",37),t.NdJ("click",function(){return t.CHM(e),t.oxw().onInitWallet()}),t._uU(52,"Initialize Wallet"),t.qZA()()()(),t.YNc(53,v2,2,0,"ng-template",38),t.YNc(54,b2,2,0,"ng-template",39),t.YNc(55,w2,2,0,"ng-template",40),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.passwordFormGroup),t.xp6(1),t.Q6J("formGroup",e.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.minlength),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),t.xp6(1),t.Q6J("ngIf",(null==e.passwordFormGroup.errors?null:e.passwordFormGroup.errors.unmatchedPasswords)&&(e.passwordFormGroup.controls.initWalletPassword.touched||e.passwordFormGroup.controls.initWalletPassword.dirty)&&(e.passwordFormGroup.controls.initWalletConfirmPassword.touched||e.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),t.xp6(4),t.Q6J("stepControl",e.cipherFormGroup),t.xp6(1),t.Q6J("formGroup",e.cipherFormGroup),t.xp6(2),t.Q6J("labelPosition","before"),t.xp6(6),t.Q6J("ngIf",null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.required),t.xp6(1),t.Q6J("ngIf",!(null!=e.cipherFormGroup.controls.cipherSeed.errors&&e.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),t.xp6(6),t.Q6J("stepControl",e.passphraseFormGroup),t.xp6(1),t.Q6J("formGroup",e.passphraseFormGroup),t.xp6(2),t.Q6J("labelPosition","before"),t.xp6(6),t.Q6J("ngIf",null==e.passphraseFormGroup.controls.passphrase.errors?null:e.passphraseFormGroup.controls.passphrase.errors.required)}}function A2(n,i){if(1&n&&(t.TgZ(0,"span",48),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function L2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",43),t._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),t.qZA(),t.TgZ(4,"div",44),t.YNc(5,A2,2,1,"span",45),t.qZA(),t.TgZ(6,"div",46),t._uU(7,"Wallet initialization is done."),t.qZA(),t.TgZ(8,"div",46),t._uU(9,"The node will be usable only after LND has synced completely with the network."),t.qZA(),t.TgZ(10,"div",46),t._uU(11,"Click continue only after writing down the seed."),t.qZA(),t.TgZ(12,"div",6)(13,"button",47),t.NdJ("click",function(){return t.CHM(e),t.oxw().onGoToHome()}),t._uU(14,"Go To Home"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(5),t.Q6J("ngForOf",e.genSeedResponse)}}function S2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",46),t._uU(3,"Something went wrong! Unable to initialize wallet!"),t.qZA(),t.TgZ(4,"div",6)(5,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(6,"Restart"),t.qZA()()()()}}function F2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",46),t._uU(3,"Wallet recovery is done."),t.qZA(),t.TgZ(4,"div",46),t._uU(5,"The node will be usable only after LND has synced completely with the network."),t.qZA(),t.TgZ(6,"div",6)(7,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onGoToHome()}),t._uU(8,"Go To Home"),t.qZA()()()()}}function k2(n){const i=n.get("initWalletPassword"),e=n.get("initWalletConfirmPassword");return i&&e&&i.value!==e.value?{unmatchedPasswords:!0}:null}function q2(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let N2=(()=>{class n{constructor(e,o,a){this.store=e,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[p.kI.required,p.kI.minLength(8)]],initWalletConfirmPassword:["",[p.kI.required,p.kI.minLength(8)]]},{validators:k2}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[q2]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,_.R)(this.unsubs[0])).subscribe(e=>{e?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,_.R)(this.unsubs[1])).subscribe(e=>{e?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,_.R)(this.unsubs[2])).subscribe(e=>{this.initWalletResponse=e}),this.lndEffects.genSeedResponse.pipe((0,_.R)(this.unsubs[3])).subscribe(e=>{this.genSeedResponse=e,this.store.dispatch((0,A.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,A.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}}))}else this.store.dispatch((0,A.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,F.tw)()),this.store.dispatch((0,A.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(p.qu),t.Y36(ot.l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,o){if(1&e&&t.Gf(Y.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},features:[t._Bn([{provide:u2.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,m2,9,0,"div",1),t.YNc(2,d2,6,0,"div",2),t.YNc(3,Z2,56,17,"mat-vertical-stepper",3),t.YNc(4,L2,15,1,"div",1),t.YNc(5,S2,7,0,"div",1),t.YNc(6,F2,9,0,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.insecureLND&&!o.warnRes),t.xp6(1),t.Q6J("ngIf",o.warnRes&&!o.proceed),t.xp6(1),t.Q6J("ngIf",(!o.insecureLND||o.warnRes&&o.proceed)&&o.genSeedResponse.length<=0&&""===o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length>0&&""!==o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length>0&&""===o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length<=0&&""!==o.initWalletResponse))},directives:[m.xw,u.O5,p._Y,p.JL,p.F,m.Wh,m.yH,q.lW,Y.Vq,Y.C0,p.sg,C.KE,P.Nt,p.Fj,p.JJ,p.u,p.Q7,C.bx,C.TO,$.Hw,Y.Ic,ct.Rr,Y.fd,Y.z9,u.sg],styles:[""]}),n})(),O2=(()=>{class n{constructor(){this.faWallet=b.X5K}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Wallet"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group")(8,"mat-tab",5),t._UZ(9,"rtl-unlock-wallet"),t.qZA(),t.TgZ(10,"mat-tab",6),t._UZ(11,"rtl-initialize-wallet"),t.qZA()()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faWallet))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.SP,R.uX,p2,N2],styles:[""]}),n})();var U2=g(1365);function M2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let P2=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.faExchangeAlt=b.Ssp,this.faChartPie=b.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1]),(0,U2.M)(this.store.select(T.$k))).subscribe(([o,a])=>{this.currencyUnits=(null==a?void 0:a.currencyUnits)||[],this.balances=(null==a?void 0:a.userPersona)===s.ol.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,M2,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function I2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let R2=(()=>{class n{constructor(e){this.router=e,this.faSearch=b.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,I2,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faSearch),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function D2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination pubkey is required."),t.qZA())}function Q2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function J2(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function E2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Hop "),t.qZA())}function H2(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.hop_sequence," ")}}function Y2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Peer "),t.qZA())}const B2=function(n){return{"max-width":n}};function z2(n,i){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,B2,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.hij(" ",null==e?null:e.pubkey_alias," ")}}function G2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Channel "),t.qZA())}function V2(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.chan_id," ")}}function W2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Capacity (Sats) "),t.qZA())}function X2(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.chan_capacity),"")}}function j2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Amount To Fwd (Sats) "),t.qZA())}function K2(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.amt_to_forward)," ")}}function $2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Fee (mSats) "),t.qZA())}function t3(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.fee_msat)," ")}}function e3(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function n3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onHopClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function o3(n,i){1&n&&t._UZ(0,"tr",46)}function i3(n,i){1&n&&t._UZ(0,"tr",47)}const a3=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let l3=(()=>{class n{constructor(e,o,a){this.store=e,this.lndEffects=o,this.commonService=a,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=b.FpQ,this.faExclamationTriangle=b.eHv,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.qrHops=new c.by([]),e.routes&&e.routes.length&&e.routes.length>0&&e.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new c.by([...e.routes[0].hops]),this.qrHops.data=e.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new c.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,A.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:33,type:s.Gi.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:34,type:s.Gi.NUMBER}],[{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:s.Gi.NUMBER},{key:"expiry",value:e.expiry,title:"Expiry",width:50,type:s.Gi.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:50,type:s.Gi.STRING},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:s.Gi.STRING}],[{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:100,type:s.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(e,o){if(1&e&&t.Gf(Z.YE,5),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(a),t.MAs(2).form.valid&&o.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(r){return o.destinationPubkey=r}),t.qZA(),t.YNc(10,D2,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(r){return o.amount=r}),t.qZA(),t.YNc(13,Q2,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return o.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.TgZ(24,"div",18),t.YNc(25,J2,1,0,"mat-progress-bar",19),t.TgZ(26,"table",20,21),t.ynx(28,22),t.YNc(29,E2,2,0,"th",23),t.YNc(30,H2,2,1,"td",24),t.BQk(),t.ynx(31,25),t.YNc(32,Y2,2,0,"th",23),t.YNc(33,z2,2,4,"td",26),t.BQk(),t.ynx(34,27),t.YNc(35,G2,2,0,"th",23),t.YNc(36,V2,2,1,"td",24),t.BQk(),t.ynx(37,28),t.YNc(38,W2,2,0,"th",29),t.YNc(39,X2,4,3,"td",24),t.BQk(),t.ynx(40,30),t.YNc(41,j2,2,0,"th",29),t.YNc(42,K2,4,3,"td",24),t.BQk(),t.ynx(43,31),t.YNc(44,$2,2,0,"th",29),t.YNc(45,t3,4,3,"td",24),t.BQk(),t.ynx(46,32),t.YNc(47,e3,3,0,"th",33),t.YNc(48,n3,3,0,"td",34),t.BQk(),t.YNc(49,o3,1,0,"tr",35),t.YNc(50,i3,1,0,"tr",36),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",o.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",o.destinationPubkey),t.xp6(2),t.Q6J("ngIf",!o.destinationPubkey),t.xp6(2),t.Q6J("ngModel",o.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!o.amount),t.xp6(8),t.Q6J("icon",o.faRoute),t.xp6(4),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.qrHops)("ngClass",t.VKq(14,a3,"error"===o.flgLoading[0])),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns))},directives:[m.xw,m.yH,p._Y,p.JL,p.F,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.Q7,p.JJ,p.On,u.O5,C.TO,p.wV,p.qQ,et.q,q.lW,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,c.as,c.XQ,c.nj,c.Gk],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function s3(n,i){if(1&n&&(t.TgZ(0,"span",9),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.AsE("",o.nodeFeaturesEnum[e.value.name]||e.value.name,": ",e.value.is_required?"Mandatory":"Optional","")}}function r3(n,i){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Network"),t.qZA())}function c3(n,i){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.network," ")}}function p3(n,i){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Address"),t.qZA())}function u3(n,i){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.addr," ")}}function m3(n,i){1&n&&(t.TgZ(0,"th",29)(1,"span",30),t._uU(2,"Actions"),t.qZA()())}function d3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",31)(1,"span",30)(2,"button",32),t.NdJ("copied",function(a){return t.CHM(e),t.oxw(2).onCopyNodeURI(a)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("payload",o.lookupResult.node.pub_key+"@"+e.addr)}}function h3(n,i){1&n&&t._UZ(0,"tr",33)}function _3(n,i){1&n&&t._UZ(0,"tr",34)}const f3=function(n){return{"background-color":n}};function g3(n,i){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",10),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Last Update"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Total Capacity (Sats)"),t.qZA(),t.TgZ(26,"span",6),t._uU(27),t.ALo(28,"number"),t.qZA()()(),t._UZ(29,"mat-divider",10),t.TgZ(30,"div",3)(31,"div",4)(32,"h4",5),t._uU(33,"Number of Channels"),t.qZA(),t.TgZ(34,"span",6),t._uU(35),t.ALo(36,"number"),t.qZA()(),t.TgZ(37,"div",11)(38,"h4",5),t._uU(39,"Features"),t.qZA(),t.YNc(40,s3,2,2,"span",12),t.ALo(41,"keyvalue"),t.qZA()(),t._UZ(42,"mat-divider",10),t.TgZ(43,"div",13)(44,"h4",14),t._uU(45,"Addresses"),t.qZA(),t.TgZ(46,"div",15)(47,"table",16,17),t.ynx(49,18),t.YNc(50,r3,2,0,"th",19),t.YNc(51,c3,2,1,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,p3,2,0,"th",19),t.YNc(54,u3,2,1,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,m3,3,0,"th",23),t.YNc(57,d3,4,1,"td",24),t.BQk(),t.YNc(58,h3,1,0,"tr",25),t.YNc(59,_3,1,0,"tr",26),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(e.lookupResult.node.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(24,f3,null==e.lookupResult.node?null:e.lookupResult.node.color)),t.xp6(1),t.Oqu(null==e.lookupResult.node?null:e.lookupResult.node.color),t.xp6(5),t.Oqu(e.lookupResult.node.pub_key),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,15,1e3*e.lookupResult.node.last_update,"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(t.lcZ(28,18,e.lookupResult.total_capacity)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(36,20,e.lookupResult.num_channels)),t.xp6(5),t.Q6J("ngForOf",t.lcZ(41,22,e.lookupResult.node.features)),t.xp6(2),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.lookupResult.node.addresses),t.xp6(11),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let C3=(()=>{class n{constructor(e,o){this.logger=e,this.snackBar=o,this.nodeFeaturesEnum=s.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&t.YNc(0,g3,60,26,"div",0),2&e&&t.Q6J("ngIf",o.lookupResult)},directives:[u.O5,m.xw,V.d,m.yH,m.Wh,u.PC,L.Zl,u.sg,z.$V,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,q.lW,ht.y,c.as,c.XQ,c.nj,c.Gk],pipes:[u.uU,u.JJ,u.Nd],styles:[""]}),n})();function x3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 1"),t.qZA())}function y3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 1 (Your Node)"),t.qZA())}function T3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 2"),t.qZA())}function v3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 2 (Your Node)"),t.qZA())}function b3(n,i){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Channel Id"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"div",7)(9,"h4",5),t._uU(10,"Channel Point"),t.qZA(),t.TgZ(11,"span",6),t._uU(12),t.qZA()()(),t._UZ(13,"mat-divider",8),t.TgZ(14,"div",3)(15,"div",4)(16,"h4",5),t._uU(17,"Last Update"),t.qZA(),t.TgZ(18,"span",6),t._uU(19),t.ALo(20,"date"),t.qZA()(),t.TgZ(21,"div",7)(22,"h4",5),t._uU(23,"Capacity (Sats)"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA()()(),t._UZ(27,"mat-divider",8),t.TgZ(28,"div",9)(29,"div",10)(30,"div",11),t.YNc(31,x3,2,0,"h3",12),t.YNc(32,y3,2,0,"h3",12),t.qZA(),t._UZ(33,"mat-divider",8),t.TgZ(34,"div",13)(35,"h4",5),t._uU(36,"Pubkey"),t.qZA(),t.TgZ(37,"span",6),t._uU(38),t.qZA()(),t._UZ(39,"mat-divider",8),t.TgZ(40,"div",14)(41,"h4",5),t._uU(42,"Time Lock Delta"),t.qZA(),t.TgZ(43,"span",6),t._uU(44),t.qZA()(),t._UZ(45,"mat-divider",8),t.TgZ(46,"div",14)(47,"h4",5),t._uU(48,"Min HTLC"),t.qZA(),t.TgZ(49,"span",6),t._uU(50),t.qZA()(),t._UZ(51,"mat-divider",8),t.TgZ(52,"div",14)(53,"h4",5),t._uU(54,"Max HTLC"),t.qZA(),t.TgZ(55,"span",6),t._uU(56),t.qZA()(),t._UZ(57,"mat-divider",8),t.TgZ(58,"div",14)(59,"h4",5),t._uU(60,"Fee Base Msat"),t.qZA(),t.TgZ(61,"span",6),t._uU(62),t.qZA()(),t._UZ(63,"mat-divider",8),t.TgZ(64,"div",14)(65,"h4",5),t._uU(66,"Fee Rate Milli Msat"),t.qZA(),t.TgZ(67,"span",6),t._uU(68),t.qZA()(),t._UZ(69,"mat-divider",8),t.TgZ(70,"div",14)(71,"h4",5),t._uU(72,"Disabled"),t.qZA(),t.TgZ(73,"span",6),t._uU(74),t.qZA()()(),t.TgZ(75,"div",10)(76,"div"),t.YNc(77,T3,2,0,"h3",12),t.YNc(78,v3,2,0,"h3",12),t.qZA(),t._UZ(79,"mat-divider",8),t.TgZ(80,"div",13)(81,"h4",5),t._uU(82,"Pubkey"),t.qZA(),t.TgZ(83,"span",6),t._uU(84),t.qZA()(),t._UZ(85,"mat-divider",8),t.TgZ(86,"div",14)(87,"h4",5),t._uU(88,"Time Lock Delta"),t.qZA(),t.TgZ(89,"span",6),t._uU(90),t.qZA()(),t._UZ(91,"mat-divider",8),t.TgZ(92,"div",14)(93,"h4",5),t._uU(94,"Min HTLC"),t.qZA(),t.TgZ(95,"span",6),t._uU(96),t.qZA()(),t._UZ(97,"mat-divider",8),t.TgZ(98,"div",14)(99,"h4",5),t._uU(100,"Max HTLC"),t.qZA(),t.TgZ(101,"span",6),t._uU(102),t.qZA()(),t._UZ(103,"mat-divider",8),t.TgZ(104,"div",14)(105,"h4",5),t._uU(106,"Fee Base Msat"),t.qZA(),t.TgZ(107,"span",6),t._uU(108),t.qZA()(),t._UZ(109,"mat-divider",8),t.TgZ(110,"div",14)(111,"h4",5),t._uU(112,"Fee Rate Milli Msat"),t.qZA(),t.TgZ(113,"span",6),t._uU(114),t.qZA()(),t._UZ(115,"mat-divider",8),t.TgZ(116,"div",14)(117,"h4",5),t._uU(118,"Disabled"),t.qZA(),t.TgZ(119,"span",6),t._uU(120),t.qZA()()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(e.lookupResult.channel_id),t.xp6(5),t.Oqu(e.lookupResult.chan_point),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(20,39,1e3*e.lookupResult.last_update,"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(t.lcZ(26,42,e.lookupResult.capacity)),t.xp6(2),t.Q6J("inset",!0),t.xp6(4),t.Q6J("ngIf",!e.node1_match),t.xp6(1),t.Q6J("ngIf",e.node1_match),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(e.lookupResult.node1_pub),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.time_lock_delta),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.min_htlc),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.max_htlc_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_base_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_rate_milli_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null!=e.lookupResult.node1_policy&&e.lookupResult.node1_policy.disabled?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",!e.node2_match),t.xp6(1),t.Q6J("ngIf",e.node2_match),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(e.lookupResult.node2_pub),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.time_lock_delta),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.min_htlc),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.max_htlc_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_base_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_rate_milli_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null!=e.lookupResult.node2_policy&&e.lookupResult.node2_policy.disabled?"Yes":"No")}}let w3=(()=>{class n{constructor(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.lookupResult.node1_pub===e.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===e.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(e,o){1&e&&t.YNc(0,b3,121,44,"div",0),2&e&&t.Q6J("ngIf",o.lookupResult)},directives:[u.O5,m.xw,V.d,m.yH,m.Wh],pipes:[u.uU,u.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function Z3(n,i){if(1&n&&(t.TgZ(0,"mat-radio-button",17),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("value",e.id)("checked",o.selectedFieldId===e.id),t.xp6(1),t.hij(" ",e.name," ")}}function A3(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function L3(n,i){1&n&&t._UZ(0,"mat-progress-bar",20)}const S3=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function F3(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,L3,1,0,"mat-progress-bar",19),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(3,S3,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),t.xp6(1),t.Q6J("ngIf","Getting lookup details..."===e.errorMessage),t.xp6(1),t.hij(" ",e.errorMessage," ")}}function k3(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-node-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("lookupResult",e.lookupValue)}}function q3(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-channel-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("lookupResult",e.lookupValue)}}function N3(n,i){1&n&&(t.TgZ(0,"span",27)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function O3(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22)(2,"span",23),t._uU(3),t.qZA()(),t.TgZ(4,"div",24),t.YNc(5,k3,2,1,"span",25),t.YNc(6,q3,2,1,"span",25),t.YNc(7,N3,3,0,"span",26),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1)}}const U3=function(n){return{"mt-1":!0,"mt-2":n}};let Kt=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=b.wn1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND||e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&e.payload.hasOwnProperty("node")||1===this.selectedFieldId&&e.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!e.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!e.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===e.payload.action&&(this.errorMessage="",e.payload.status===s.Bn.ERROR&&(this.errorMessage="object"==typeof e.payload.message?JSON.stringify(e.payload.message):e.payload.message),e.payload.status===s.Bn.INITIATED&&(this.errorMessage=s.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,A.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),t.NdJ("ngModelChange",function(l){return o.selectedFieldId=l})("change",function(l){return o.onSelectChange(l)}),t.YNc(7,Z3,2,3,"mat-radio-button",7),t.qZA()(),t.TgZ(8,"mat-form-field",8)(9,"input",9,10),t.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(l){return o.lookupKey=l}),t.qZA(),t.YNc(11,A3,2,1,"mat-error",11),t.qZA(),t.TgZ(12,"div",12)(13,"button",13),t.NdJ("click",function(){return o.resetData()}),t._uU(14,"Clear"),t.qZA(),t.TgZ(15,"button",14),t.NdJ("click",function(){return o.onLookup()}),t._uU(16,"Lookup"),t.qZA()()(),t.YNc(17,F3,3,5,"div",15),t.YNc(18,O3,8,4,"div",16),t.qZA()()()),2&e&&(t.xp6(6),t.Q6J("ngModel",o.selectedFieldId),t.xp6(1),t.Q6J("ngForOf",o.lookupFields),t.xp6(1),t.Q6J("ngClass",t.VKq(8,U3,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),t.xp6(2),t.Q6J("ngIf",!o.lookupKey),t.xp6(6),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage&&o.lookupValue&&o.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,y.dn,p._Y,p.JL,p.F,tt.VQ,p.JJ,p.On,u.sg,tt.U0,C.KE,u.mk,L.oO,P.Nt,p.Fj,p.Q7,u.O5,C.TO,q.lW,J.pW,u.RF,u.n9,C3,w3,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var qt=g(6856);function M3(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid date format."),t.qZA())}function P3(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid date format."),t.qZA())}function I3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",27),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let R3=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.faMapSigns=b.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.onEventsFetch();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,A.QJ)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,A.u0)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,A.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"form",7,8),t.NdJ("ngSubmit",function(){return o.onEventsFetch()}),t.TgZ(10,"div",9)(11,"mat-form-field",10)(12,"input",11,12),t.NdJ("ngModelChange",function(l){return o.startDate=l}),t.qZA(),t._UZ(14,"mat-datepicker-toggle",13)(15,"mat-datepicker",14,15),t.YNc(17,M3,2,0,"mat-error",16),t.qZA(),t.TgZ(18,"mat-form-field",10)(19,"input",17,18),t.NdJ("ngModelChange",function(l){return o.endDate=l}),t.qZA(),t._UZ(21,"mat-datepicker-toggle",13)(22,"mat-datepicker",14,19),t.YNc(24,P3,2,0,"mat-error",16),t.qZA()(),t.TgZ(25,"div",20)(26,"button",21),t.NdJ("click",function(){return o.resetData()}),t._uU(27,"Clear"),t.qZA(),t.TgZ(28,"button",22),t._uU(29,"Fetch Events"),t.qZA()()(),t.TgZ(30,"div",23)(31,"nav",24),t.YNc(32,I3,2,3,"div",25),t.qZA()(),t.TgZ(33,"div",26),t._UZ(34,"router-outlet"),t.qZA()()()()()),2&e){const a=t.MAs(13),l=t.MAs(16),r=t.MAs(20),h=t.MAs(23);t.xp6(2),t.Q6J("icon",o.faMapSigns),t.xp6(10),t.Q6J("matDatepicker",l)("max",o.today)("ngModel",o.startDate),t.xp6(2),t.Q6J("for",l),t.xp6(1),t.Q6J("startAt",o.startDate),t.xp6(2),t.Q6J("ngIf",a.errors),t.xp6(2),t.Q6J("matDatepicker",h)("min",o.startDate)("max",o.today)("ngModel",o.endDate),t.xp6(2),t.Q6J("for",h),t.xp6(1),t.Q6J("startAt",o.endDate),t.xp6(2),t.Q6J("ngIf",r.errors),t.xp6(8),t.Q6J("ngForOf",o.links)}},directives:[m.xw,m.Wh,D.BN,m.yH,y.a8,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,qt.hl,Wt.F,p.Fj,p.JJ,p.On,qt.nW,C.R9,qt.Mq,u.O5,C.TO,et.q,q.lW,R.BU,u.sg,R.Nj,v.rH,v.lC],styles:[""]}),n})();function D3(n,i){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function Q3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"mat-form-field",8)(3,"input",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().filterValue=a})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.filterValue)}}function J3(n,i){1&n&&t._UZ(0,"mat-progress-bar",31)}function E3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Timestamp"),t.qZA())}function H3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.timestamp,"dd/MMM/y HH:mm"))}}function Y3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Inbound Channel"),t.qZA())}function B3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.alias_in)}}function z3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Outbound Channel"),t.qZA())}function G3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.alias_out)}}function V3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Inbound Amount (Sats)"),t.qZA())}function W3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt_in))}}function X3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Outbound Amount (Sats)"),t.qZA())}function j3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt_out))}}function K3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Fee (mSats)"),t.qZA())}function $3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.fee_msat))}}function t0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",36)(1,"div",37)(2,"mat-select",38),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function e0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"button",41),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function n0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function o0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function i0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function a0(n,i){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,n0,2,0,"p",43),t.YNc(2,o0,2,0,"p",43),t.YNc(3,i0,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const l0=function(n){return{"display-none":n}};function s0(n,i){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,l0,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function r0(n,i){1&n&&t._UZ(0,"tr",45)}function c0(n,i){1&n&&t._UZ(0,"tr",46)}const p0=function(){return["no_event"]};function u0(n,i){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,J3,1,0,"mat-progress-bar",11),t.TgZ(2,"table",12,13),t.ynx(4,14),t.YNc(5,E3,2,0,"th",15),t.YNc(6,H3,3,4,"td",16),t.BQk(),t.ynx(7,17),t.YNc(8,Y3,2,0,"th",15),t.YNc(9,B3,2,1,"td",16),t.BQk(),t.ynx(10,18),t.YNc(11,z3,2,0,"th",15),t.YNc(12,G3,2,1,"td",16),t.BQk(),t.ynx(13,19),t.YNc(14,V3,2,0,"th",20),t.YNc(15,W3,4,3,"td",16),t.BQk(),t.ynx(16,21),t.YNc(17,X3,2,0,"th",20),t.YNc(18,j3,4,3,"td",16),t.BQk(),t.ynx(19,22),t.YNc(20,K3,2,0,"th",20),t.YNc(21,$3,4,3,"td",16),t.BQk(),t.ynx(22,23),t.YNc(23,t0,6,0,"th",24),t.YNc(24,e0,3,0,"td",25),t.BQk(),t.ynx(25,26),t.YNc(26,a0,4,3,"td",27),t.BQk(),t.YNc(27,s0,1,3,"tr",28),t.YNc(28,r0,1,0,"tr",29),t.YNc(29,c0,1,0,"tr",30),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,p0)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function m0(n,i){if(1&n&&t._UZ(0,"mat-paginator",47),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let $t=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.datePipe=l,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=e.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:s.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=e.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,e.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:e.timestamp,title:"Timestamp",width:25,type:s.Gi.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:s.Gi.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:s.Gi.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:s.Gi.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:s.Gi.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:s.Gi.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:s.Gi.STRING}]]}}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new c.by(e?[...e]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.forwardingHistoryEvents.filterPredicate=(o,a)=>{var l;return((o.timestamp?null===(l=this.datePipe.transform(new Date(1e3*o.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,D3,2,1,"div",1),t.YNc(2,Q3,4,1,"div",2),t.YNc(3,u0,30,7,"div",3),t.YNc(4,m0,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,u.mk,L.oO,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const d0=["tableIn"],h0=["tableOut"],_0=["paginatorIn"],f0=["paginatorOut"];function g0(n,i){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function C0(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function x0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Channel ID"),t.qZA())}const bt=function(n){return{"max-width":n}};function y0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function T0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Peer Alias"),t.qZA())}function v0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.alias)}}function b0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Events"),t.qZA())}function w0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Z0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Total Amount (Sats)"),t.qZA())}function A0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_amount))}}function L0(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function S0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onRoutingPeerClick(r,a,"in")}),t._uU(2,"View Info"),t.qZA()()}}function F0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function k0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function q0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function N0(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,F0,2,0,"p",47),t.YNc(2,k0,2,0,"p",47),t.YNc(3,q0,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const te=function(n){return{"display-none":n}};function O0(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,te,(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function U0(n,i){1&n&&t._UZ(0,"tr",49)}function M0(n,i){1&n&&t._UZ(0,"tr",50)}function P0(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function I0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Channel ID"),t.qZA())}function R0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function D0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Peer Alias"),t.qZA())}function Q0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.alias)}}function J0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Events"),t.qZA())}function E0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function H0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Total Amount (Sats)"),t.qZA())}function Y0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_amount))}}function B0(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function z0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",51)(1,"button",52),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onRoutingPeerClick(r,a,"out")}),t._uU(2,"View Info"),t.qZA()()}}function G0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function V0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function W0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function X0(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,G0,2,0,"p",47),t.YNc(2,V0,2,0,"p",47),t.YNc(3,W0,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function j0(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,te,(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function K0(n,i){1&n&&t._UZ(0,"tr",49)}function $0(n,i){1&n&&t._UZ(0,"tr",50)}const tp=function(n,i){return{"mt-2":n,"mt-1":i}},ep=function(){return["no_incoming_event"]},np=function(n){return{"mt-2":n}},op=function(){return["no_outgoing_event"]};function ip(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t.TgZ(5,"mat-form-field",8)(6,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyIncomingFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().filterIn=a}),t.qZA()()(),t.TgZ(7,"div",10),t.YNc(8,C0,1,0,"mat-progress-bar",11),t.TgZ(9,"table",12,13),t.ynx(11,14),t.YNc(12,x0,2,0,"th",15),t.YNc(13,y0,2,4,"td",16),t.BQk(),t.ynx(14,17),t.YNc(15,T0,2,0,"th",15),t.YNc(16,v0,2,4,"td",16),t.BQk(),t.ynx(17,18),t.YNc(18,b0,2,0,"th",19),t.YNc(19,w0,4,3,"td",20),t.BQk(),t.ynx(20,21),t.YNc(21,Z0,2,0,"th",19),t.YNc(22,A0,4,3,"td",20),t.BQk(),t.ynx(23,22),t.YNc(24,L0,3,0,"th",23),t.YNc(25,S0,3,0,"td",24),t.BQk(),t.ynx(26,25),t.YNc(27,N0,4,3,"td",26),t.BQk(),t.YNc(28,O0,1,3,"tr",27),t.YNc(29,U0,1,0,"tr",28),t.YNc(30,M0,1,0,"tr",29),t.qZA()(),t._UZ(31,"mat-paginator",30,31),t.qZA(),t.TgZ(33,"div",5)(34,"div",6)(35,"div",7),t._uU(36,"Outgoing"),t.qZA(),t.TgZ(37,"mat-form-field",8)(38,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyOutgoingFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().filterOut=a}),t.qZA()()(),t.TgZ(39,"div",10),t.YNc(40,P0,1,0,"mat-progress-bar",11),t.TgZ(41,"table",32,33),t.ynx(43,14),t.YNc(44,I0,2,0,"th",15),t.YNc(45,R0,2,4,"td",16),t.BQk(),t.ynx(46,17),t.YNc(47,D0,2,0,"th",15),t.YNc(48,Q0,2,4,"td",16),t.BQk(),t.ynx(49,18),t.YNc(50,J0,2,0,"th",19),t.YNc(51,E0,4,3,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,H0,2,0,"th",19),t.YNc(54,Y0,4,3,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,B0,3,0,"th",23),t.YNc(57,z0,3,0,"td",34),t.BQk(),t.ynx(58,35),t.YNc(59,X0,4,3,"td",26),t.BQk(),t.YNc(60,j0,1,3,"tr",27),t.YNc(61,K0,1,0,"tr",28),t.YNc(62,$0,1,0,"tr",29),t.qZA()(),t._UZ(63,"mat-paginator",30,36),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,tp,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(4),t.Q6J("ngModel",e.filterIn),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,ep)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,np,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(4),t.Q6J("ngModel",e.filterOut),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,op)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let ap=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new c.by([]),this.RoutingPeersOutgoing=new c.by([]),this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(e,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:s.Gi.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:s.Gi.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:s.Gi.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:s.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(e){if(e.length>0){const o=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new c.by(o[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(a,l)=>JSON.stringify(a).toLowerCase().includes(l),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new c.by(o[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(a,l)=>JSON.stringify(a).toLowerCase().includes(l),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new c.by([]),this.RoutingPeersOutgoing=new c.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(e){const o=[],a=[];return e.forEach(l=>{const r=o.find(f=>f.chan_id===l.chan_id_in),h=a.find(f=>f.chan_id===l.chan_id_out);r?(r.events++,r.total_amount=+r.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),h?(h.events++,h.total_amount=+h.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(d0,5,Z.YE),t.Gf(h0,5,Z.YE),t.Gf(_0,5),t.Gf(f0,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sortIn=a.first),t.iGM(a=t.CRH())&&(o.sortOut=a.first),t.iGM(a=t.CRH())&&(o.paginatorIn=a.first),t.iGM(a=t.CRH())&&(o.paginatorOut=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,g0,2,1,"div",1),t.YNc(2,ip,65,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,u.mk,L.oO,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function lp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let sp=(()=>{class n{constructor(e){this.router=e,this.faChartBar=b.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,lp,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartBar),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,v.lC],styles:[""]}),n})();var ee=g(7671),ne=g(1210);function rp(n,i){1&n&&t._UZ(0,"mat-progress-bar",16)}function cp(n,i){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.events.total_fee_msat),t.xp6(1),t.AsE("",t.xi3(2,3,e.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",t.lcZ(3,6,(null==e.events||null==e.events.forwarding_events?null:e.events.forwarding_events.length)||0)," Events")}}function pp(n,i){1&n&&(t.TgZ(0,"div",18),t._uU(1,"No routing report for the selected period"),t.qZA())}const up=function(n){return{"error-border":n}};function mp(n,i){if(1&n&&(t.TgZ(0,"div",19),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(2,up,"Getting Forwarding History..."!==e.errorMessage&&""!==e.errorMessage)),t.xp6(1),t.Oqu(e.errorMessage)}}function dp(n,i){if(1&n&&(t.TgZ(0,"span")(1,"span",22),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",22),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=i.model,o=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(o.selReportBy===o.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(o.selReportBy===o.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function hp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",20),t.NdJ("select",function(a){return t.CHM(e),t.oxw().onChartBarSelected(a)})("mouseup",function(a){return t.CHM(e),t.oxw().onChartMouseUp(a)}),t.YNc(1,dp,7,7,"ng-template",null,21,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function _p(n,i){if(1&n&&t._UZ(0,"rtl-forwarding-history",23),2&n){const e=t.oxw();t.Q6J("eventsData",null==e.events?null:e.events.forwarding_events)("filterValue",e.eventFilterValue)}}let fp=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=s.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=s.Xr,this.selReportBy=s.Xr.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===s.cu.XS||this.screenSize===s.cu.SM),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{e.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case s.cu.MD:this.screenPaddingX=e.width/10;break;case s.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(e,o){this.errorMessage=s.m6.GET_FORWARDING_HISTORY;const a=Math.round(e.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,_.R)(this.unSubs[2])).subscribe({next:r=>{this.errorMessage="",r.forwarding_events&&r.forwarding_events.length?(r.forwarding_events=r.forwarding_events.reverse(),this.events=r,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(e):this.prepareFeeReport(e)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:r=>{this.errorMessage=r}})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===s.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+s.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var o,a;const l=Math.round(e.getTime()/1e3),r=[];if(this.events.total_fee_msat=0,this.reportPeriod===s.op[1]){for(let h=0;h<12;h++)r.push({name:s.gg[h].name,value:0,extra:{totalEvents:0}});null===(o=this.events.forwarding_events)||void 0===o||o.map(h=>{const f=new Date(1e3*+(h.timestamp||0)).getMonth();return r[f].value=r[f].value+ +(h.fee_msat||0)/1e3,r[f].extra.totalEvents=r[f].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}else{for(let h=0;h{const f=Math.floor((+(h.timestamp||0)-l)/this.secondsInADay);return r[f].value=r[f].value+ +(h.fee_msat||0)/1e3,r[f].extra.totalEvents=r[f].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}return r}prepareEventsReport(e){var o,a;const l=Math.round(e.getTime()/1e3),r=[];if(this.events.total_fee_msat=0,this.reportPeriod===s.op[1]){for(let h=0;h<12;h++)r.push({name:s.gg[h].name,value:0,extra:{totalFees:0}});null===(o=this.events.forwarding_events)||void 0===o||o.map(h=>{const f=new Date(1e3*+(h.timestamp||0)).getMonth();return r[f].value=r[f].value+1,r[f].extra.totalFees=r[f].extra.totalFees+ +(h.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}else{for(let h=0;h{const f=Math.floor((+(h.timestamp||0)-l)/this.secondsInADay);return r[f].value=r[f].value+1,r[f].extra.totalFees=r[f].extra.totalFees+ +(h.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}return r}onSelectionChange(e){const o=e.selDate.getMonth(),a=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===s.op[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,o){return 1===e&&o%4==0?s.gg[e].days+1:s.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(nt.D),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(e,o){1&e&&t.NdJ("mouseup",function(l){return o.onChartMouseUp(l)})},decls:20,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(l){return o.onSelectionChange(l)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(l){return o.selReportBy=l})("change",function(){return o.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.YNc(10,rp,1,0,"mat-progress-bar",7),t.TgZ(11,"div",8),t.YNc(12,cp,4,8,"div",9),t.YNc(13,pp,2,0,"div",10),t.YNc(14,mp,2,4,"div",11),t.TgZ(15,"div",12),t.YNc(16,hp,3,11,"ngx-charts-bar-vertical",13),t.qZA()(),t.TgZ(17,"div",14)(18,"div",12),t.YNc(19,_p,1,2,"rtl-forwarding-history",15),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selReportBy),t.xp6(3),t.s9C("value",o.reportBy.FEES),t.xp6(2),t.s9C("value",o.reportBy.EVENTS),t.xp6(2),t.Q6J("ngIf","Getting Forwarding History..."===o.errorMessage),t.xp6(2),t.Q6J("ngIf",o.routingReportData.length>0&&o.events.forwarding_events&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0),t.xp6(1),t.Q6J("ngIf",(o.routingReportData.length<=0||o.events.forwarding_events.length<=0)&&""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(2),t.Q6J("ngIf",o.routingReportData.length>0&&o.events.forwarding_events&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0),t.xp6(3),t.Q6J("ngIf",o.events&&(null==o.events?null:o.events.forwarding_events)&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0))},directives:[m.xw,m.Wh,m.yH,ee.D,tt.VQ,p.JJ,p.On,tt.U0,u.O5,J.pW,u.mk,L.oO,ne.K$,$t],pipes:[u.JJ],styles:[""],data:{animation:[st.J]}}),n})();var gp=g(165);function Cp(n,i){1&n&&(t.TgZ(0,"div",11),t._UZ(1,"mat-progress-bar",12),t.TgZ(2,"span"),t._uU(3,"Getting transactions data..."),t.qZA()())}function xp(n,i){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function yp(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Tp(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function vp(n,i){if(1&n&&(t.TgZ(0,"div",14),t.YNc(1,yp,4,7,"div",15),t.YNc(2,Tp,4,7,"div",15),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod>0),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function bp(n,i){1&n&&(t.TgZ(0,"div",17),t._uU(1,"No transactions report for the selected period"),t.qZA())}function wp(n,i){if(1&n&&(t.TgZ(0,"span",21),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=i.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Zp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",19),t.NdJ("select",function(a){return t.CHM(e),t.oxw(2).onChartBarSelected(a)})("mouseup",function(a){return t.CHM(e),t.oxw(2).onChartMouseUp(a)}),t.YNc(1,wp,4,9,"ng-template",null,20,t.W1O),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function Ap(n,i){if(1&n&&(t.TgZ(0,"div",9),t.YNc(1,Zp,3,13,"ngx-charts-bar-vertical-2d",18),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.transactionsReportData.length>0&&e.transactionsNonZeroReportData.length>0)}}function Lp(n,i){if(1&n&&t._UZ(0,"rtl-transactions-report-table",22),2&n){const e=t.oxw();t.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let Sp=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.scrollRanges=s.op,this.reportPeriod=s.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===s.cu.XS||this.screenSize===s.cu.SM),this.store.select(T.l5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{e.apiCallStatus.status===s.Bn.UN_INITIATED&&this.store.dispatch((0,A.Jo)()),this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=e.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=e.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case s.cu.MD:this.screenPaddingX=e.width/10;break;case s.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===s.op[1]?e.series+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+s.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,o){var a,l;const r=Math.round(e.getTime()/1e3),h=Math.round(o.getTime()/1e3),f=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const x=null===(a=this.payments)||void 0===a?void 0:a.filter(w=>"SUCCEEDED"===w.status&&w.creation_date&&w.creation_date>=r&&w.creation_datew.settled&&w.creation_date&&+w.creation_date>=r&&+w.creation_date{const B=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),f[B].series[0].value=f[B].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,f[B].series[0].extra.total=f[B].series[0].extra.total+1,this.transactionsReportSummary}),null==I||I.map(w=>{const B=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),f[B].series[1].value=f[B].series[1].value+ +(w.amt_paid_msat||0)/1e3,f[B].series[1].extra.total=f[B].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let w=0;w{const B=Math.floor((+(w.creation_date||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),f[B].series[0].value=f[B].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,f[B].series[0].extra.total=f[B].series[0].extra.total+1,this.transactionsReportSummary}),null==I||I.map(w=>{const B=Math.floor((+(w.creation_date||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),f[B].series[1].value=f[B].series[1].value+ +(w.amt_paid_msat||0)/1e3,f[B].series[1].extra.total=f[B].series[1].extra.total+1,this.transactionsReportSummary})}return f}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((o,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?o.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):o,[])}onSelectionChange(e){const o=e.selDate.getMonth(),a=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===s.op[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,o){return 1===e&&o%4==0?s.gg[e].days+1:s.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(e,o){1&e&&t.NdJ("mouseup",function(l){return o.onChartMouseUp(l)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"rtl-horizontal-scroller",3),t.NdJ("stepChanged",function(l){return o.onSelectionChange(l)}),t.qZA(),t.YNc(4,Cp,4,0,"div",4),t.YNc(5,xp,2,1,"div",5),t.YNc(6,vp,3,3,"div",6),t.YNc(7,bp,2,0,"div",7),t.YNc(8,Ap,2,1,"div",8),t.TgZ(9,"div",9),t.YNc(10,Lp,1,3,"rtl-transactions-report-table",10),t.qZA()()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.ERROR),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length<=0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(2),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED))},directives:[m.xw,m.Wh,m.yH,ee.D,u.O5,J.pW,ne.H5,gp.g],pipes:[u.JJ],styles:[""],data:{animation:[st.J]}}),n})();const Fp=["form"];function kp(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"UTXO Label is required."),t.qZA())}function qp(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.labelError)}}function Np(n,i){if(1&n&&(t.TgZ(0,"div",16),t._UZ(1,"fa-icon",17),t.YNc(2,qp,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.labelError)}}let Op=(()=>{class n{constructor(e,o,a,l,r,h){this.dialogRef=e,this.data=o,this.dataService=a,this.store=l,this.snackBar=r,this.commonService=h,this.faExclamationTriangle=b.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:e=>{this.store.dispatch((0,A.mC)()),this.store.dispatch((0,A.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:e=>{this.labelError=e}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(nt.D),t.Y36(S.yh),t.Y36(it.ux),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(Fp,7),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Label UTXO"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return o.onLabelUTXO()})("reset",function(){return o.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(l){return o.label=l}),t.qZA(),t.YNc(13,kp,2,0,"mat-error",11),t.qZA(),t.YNc(14,Np,3,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t._uU(17,"Clear"),t.qZA(),t.TgZ(18,"button",15),t._uU(19,"Label UTXO"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.label),t.xp6(1),t.Q6J("ngIf",!o.label),t.xp6(1),t.Q6J("ngIf",""!==o.labelError))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,D.BN],styles:[""]}),n})();function Up(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function Mp(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Transaction ID "),t.qZA())}function Pp(n,i){1&n&&(t.TgZ(0,"span",35)(1,"mat-icon",36),t._uU(2,"warning"),t.qZA()())}function Ip(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Pp,3,0,"span",34),t.qZA()),2&n){const e=t.oxw().$implicit;t.oxw();const o=t.MAs(34);t.xp6(1),t.Q6J("ngIf",e.amount_sat<1e3)("ngIfElse",o)}}const oe=function(n){return{"max-width":n}};function Rp(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",31),t.YNc(2,Ip,2,2,"span",32),t.TgZ(3,"span",33),t._uU(4),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(3,oe,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(2),t.Q6J("ngIf",o.utxos.length>0&&o.dustUtxos.length>0&&!o.isDustUTXO),t.xp6(2),t.Oqu(e.outpoint.txid_str)}}function Dp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Output "),t.qZA())}function Qp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(e.outpoint.output_index)}}function Jp(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Label "),t.qZA())}function Ep(n,i){if(1&n&&(t.TgZ(0,"td",30),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,oe,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.label," ")}}function Hp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function Yp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amount_sat||0))}}function Bp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Confirmations "),t.qZA())}function zp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.confirmations||0))}}function Gp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Vp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"div",45)(2,"mat-select",46),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onUTXOClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onLabelUTXO(l)}),t._uU(7,"Label"),t.qZA(),t.TgZ(8,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onLeaseUTXO(l)}),t._uU(9,"Lease"),t.qZA()()()()}}function Wp(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No UTXO available."),t.qZA())}function Xp(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting UTXOs..."),t.qZA())}function jp(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Kp(n,i){if(1&n&&(t.TgZ(0,"td",47),t.YNc(1,Wp,2,0,"p",32),t.YNc(2,Xp,2,0,"p",32),t.YNc(3,jp,2,1,"p",32),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const $p=function(n){return{"display-none":n}};function tu(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,$p,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function eu(n,i){1&n&&t._UZ(0,"tr",49)}function nu(n,i){1&n&&t._UZ(0,"tr",50)}function ou(n,i){1&n&&t._UZ(0,"mat-icon",36)}const iu=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},au=function(){return["no_utxo"]};let lu=(()=>{class n{constructor(e,o,a,l,r,h){this.logger=e,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=r,this.decimalPipe=h,this.isDustUTXO=!1,this.addressType=s.x$,this.faMoneyBillWave=b.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(T.T4).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.utxos&&e.utxos.length>0&&(this.dustUtxos=null===(o=e.utxos)||void 0===o?void 0:o.filter(a=>+(a.amount_sat||0)<1e3),this.utxos=e.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(e)})}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(e){var o,a;const l=[[{key:"txid",value:null===(o=e.outpoint)||void 0===o?void 0:o.txid_str,title:"Transaction ID",width:100,type:s.Gi.STRING}],[{key:"label",value:e.label,title:"Label",width:100,type:s.Gi.STRING}],[{key:"output_index",value:null===(a=e.outpoint)||void 0===a?void 0:a.output_index,title:"Output Index",width:34,type:s.Gi.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:s.Gi.NUMBER}],[{key:"address_type",value:e.address_type?this.addressType[e.address_type].name:"",title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:s.Gi.STRING}]];this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"UTXO Information",message:l}}}))}loadUTXOsTable(e){this.listUTXOs=new c.by([...e]),this.listUTXOs.filterPredicate=(o,a)=>{var l,r,h,f,x;return((o.label?o.label.toLowerCase():"")+((null===(l=o.outpoint)||void 0===l?void 0:l.txid_str)?o.outpoint.txid_str.toLowerCase():"")+((null===(r=o.outpoint)||void 0===r?void 0:r.output_index)?null===(h=o.outpoint)||void 0===h?void 0:h.output_index:"")+((null===(f=o.outpoint)||void 0===f?void 0:f.txid_bytes)?null===(x=o.outpoint)||void 0===x?void 0:x.txid_bytes.toLowerCase():"")+(o.address?o.address.toLowerCase():"")+(o.address_type?o.address_type.toLowerCase():"")+(o.amount_sat?o.amount_sat:"")+(o.confirmations?o.confirmations:"")+(o.pk_script?o.pk_script.toLowerCase():"")).includes(a)},this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"tx_id":return o.outpoint.txid_str.toLocaleLowerCase();case"output":return+o.outpoint.output_index;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(e){this.store.dispatch((0,F.qR)({payload:{data:{utxo:e,component:Op}}}))}onLeaseUTXO(e){var o;const a=[[{key:"txid_str",value:null===(o=e.outpoint)||void 0===o?void 0:o.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(e.amount_sat),title:"Amount (Sats)",width:100}]];e.label&&a.splice(1,0,[{key:"label",value:e.label,title:"Label",width:100}]),this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[0])).subscribe(l=>{var r,h;l&&this.dataService.leaseUTXO((null===(r=e.outpoint)||void 0===r?void 0:r.txid_bytes)||"",(null===(h=e.outpoint)||void 0===h?void 0:h.output_index)||0)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(nt.D),t.Y36(S.yh),t.Y36(dt.V),t.Y36(u.JJ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("UTXOs")}]),t.TTD],decls:35,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(4,"div",4)(5,"div",5),t.YNc(6,Up,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Mp,2,0,"th",10),t.YNc(11,Rp,5,5,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Dp,2,0,"th",13),t.YNc(14,Qp,3,1,"td",14),t.BQk(),t.ynx(15,15),t.YNc(16,Jp,2,0,"th",10),t.YNc(17,Ep,2,4,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,Hp,2,0,"th",13),t.YNc(20,Yp,4,3,"td",14),t.BQk(),t.ynx(21,17),t.YNc(22,Bp,2,0,"th",13),t.YNc(23,zp,4,3,"td",14),t.BQk(),t.ynx(24,18),t.YNc(25,Gp,6,0,"th",19),t.YNc(26,Vp,10,0,"td",20),t.BQk(),t.ynx(27,21),t.YNc(28,Kp,4,3,"td",22),t.BQk(),t.YNc(29,tu,1,3,"tr",23),t.YNc(30,eu,1,0,"tr",24),t.YNc(31,nu,1,0,"tr",25),t.qZA(),t._UZ(32,"mat-paginator",26),t.qZA()()(),t.YNc(33,ou,1,0,"ng-template",null,27,t.W1O)),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.listUTXOs)("ngClass",t.VKq(11,iu,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(13,au)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,K.gM,$.Hw,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function su(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function ru(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Date/Time "),t.qZA())}function cu(n,i){if(1&n&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.time_stamp,"dd/MMM/y HH:mm"))}}function pu(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Label "),t.qZA())}const uu=function(n){return{"max-width":n}};function mu(n,i){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,uu,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.label," ")}}function du(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Amount (Sats) "),t.qZA())}function hu(n,i){if(1&n&&(t.TgZ(0,"span",35),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.amount))}}function _u(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*e.amount),")")}}function fu(n,i){if(1&n&&(t.TgZ(0,"td",30),t.YNc(1,hu,3,3,"span",33),t.YNc(2,_u,3,3,"span",34),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e.amount>0||0===e.amount),t.xp6(1),t.Q6J("ngIf",e.amount<0)}}function gu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Fees (Sats) "),t.qZA())}function Cu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_fees))}}function xu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Block Height "),t.qZA())}function yu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.block_height))}}function Tu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Confirmations "),t.qZA())}function vu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.num_confirmations)," ")}}function bu(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function wu(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",41)(1,"button",42),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onTransactionClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Zu(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Au(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Lu(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Su(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,Zu,2,0,"p",44),t.YNc(2,Au,2,0,"p",44),t.YNc(3,Lu,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Fu=function(n){return{"display-none":n}};function ku(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Fu,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function qu(n,i){1&n&&t._UZ(0,"tr",46)}function Nu(n,i){1&n&&t._UZ(0,"tr",47)}const Ou=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Uu=function(){return["no_transaction"]};let Mu=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.datePipe=l,this.faHistory=b.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(T.dx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&e.transactions.length>0&&(this.transactions=e.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(e)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(e){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:e.label,title:"Label",width:100,type:s.Gi.STRING}],[{key:"time_stamp",value:e.time_stamp,title:"Date/Time",width:50,type:s.Gi.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:s.Gi.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:s.Gi.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:s.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:s.Gi.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}}))}loadTransactionsTable(e){this.listTransactions=new c.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listTransactions.filterPredicate=(o,a)=>{var l;return((o.time_stamp?null===(l=this.datePipe.transform(new Date(1e3*o.time_stamp),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Transactions")}]),t.TTD],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(4,"div",4)(5,"div",5),t.YNc(6,su,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,ru,2,0,"th",10),t.YNc(11,cu,3,4,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,pu,2,0,"th",10),t.YNc(14,mu,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,du,2,0,"th",15),t.YNc(17,fu,3,2,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,gu,2,0,"th",15),t.YNc(20,Cu,4,3,"td",11),t.BQk(),t.ynx(21,17),t.YNc(22,xu,2,0,"th",15),t.YNc(23,yu,4,3,"td",11),t.BQk(),t.ynx(24,18),t.YNc(25,Tu,2,0,"th",15),t.YNc(26,vu,4,3,"td",11),t.BQk(),t.ynx(27,19),t.YNc(28,bu,6,0,"th",20),t.YNc(29,wu,3,0,"td",21),t.BQk(),t.ynx(30,22),t.YNc(31,Su,4,3,"td",23),t.BQk(),t.YNc(32,ku,1,3,"tr",24),t.YNc(33,qu,1,0,"tr",25),t.YNc(34,Nu,1,0,"tr",26),t.qZA(),t._UZ(35,"mat-paginator",27),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.listTransactions)("ngClass",t.VKq(11,Ou,""!==o.errorMessage)),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(13,Uu)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Pu(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"UTXOs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numUtxos)}}function Iu(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"Transactions"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numTransactions)}}function Ru(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"Dust UTXOs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numDustUtxos)}}let Du=(()=>{class n{constructor(e,o){this.logger=e,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new t.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.store.dispatch((0,A.mC)()),this.store.dispatch((0,A.Ly)()),this.store.select(T.T4).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;e.utxos&&e.utxos.length>0&&(this.numUtxos=e.utxos.length,this.numDustUtxos=null===(o=e.utxos)||void 0===o?void 0:o.filter(a=>a.amount_sat&&+a.amount_sat<1e3).length),this.logger.info(e)}),this.store.select(T.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e.transactions&&e.transactions.length>0&&(this.numTransactions=e.transactions.length),this.logger.info(e)})}onSelectedIndexChanged(e){this.selectedTableIndexChange.emit(e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-tab-group",1),t.NdJ("selectedIndexChange",function(l){return o.onSelectedIndexChanged(l)}),t.TgZ(2,"mat-tab"),t.YNc(3,Pu,2,1,"ng-template",2),t._UZ(4,"rtl-on-chain-utxos",3),t.qZA(),t.TgZ(5,"mat-tab"),t.YNc(6,Iu,2,1,"ng-template",2),t._UZ(7,"rtl-on-chain-transaction-history",4),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,Ru,2,1,"ng-template",2),t._UZ(10,"rtl-on-chain-utxos",3),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("selectedIndex",o.selectedTableIndex),t.xp6(3),t.Q6J("isDustUTXO",!1),t.xp6(6),t.Q6J("isDustUTXO",!0))},directives:[m.xw,m.yH,m.Wh,R.SP,R.uX,R.uD,At.k,lu,Mu],styles:[""]}),n})();const Qu=function(n,i){return[n,i]};function Ju(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=null==l?null:l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeLink===(null==e?null:e.link))("routerLink",t.WLB(3,Qu,null==e?null:e.link,null==o.selectedTable?null:o.selectedTable.name)),t.xp6(1),t.Oqu(null==e?null:e.name)}}let Eu=(()=>{class n{constructor(e,o,a){this.store=e,this.router=o,this.activatedRoute=a,this.selNode={},this.faExchangeAlt=b.Ssp,this.faChartPie=b.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(e){this.selectedTable=this.tables.find(o=>o.id===e)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(v.F0),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,Ju,2,6,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10)(20,"rtl-utxo-tables",11),t.NdJ("selectedTableIndexChange",function(l){return o.onSelectedTableIndexChanged(l)}),t.qZA()()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",o.links),t.xp6(4),t.Q6J("selectedTableIndex",null==o.selectedTable?null:o.selectedTable.id))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC,Du],styles:[""]}),n})();var Hu=g(9122);function Yu(n,i){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.addressTp," ")}}let Bu=(()=>{class n{constructor(e,o){this.store=e,this.lndEffects=o,this.addressTypes=s._t,this.selectedAddressType=s._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,A._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,X.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,F.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Hu.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(ot.l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),t.NdJ("ngModelChange",function(l){return o.selectedAddressType=l}),t.YNc(4,Yu,2,2,"mat-option",4),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){return o.onGenerateAddress()}),t._uU(7,"Generate Address"),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selectedAddressType),t.xp6(1),t.Q6J("ngForOf",o.addressTypes))},directives:[m.xw,m.Wh,C.KE,m.yH,M.gD,p.JJ,p.On,u.sg,G.ey,q.lW],styles:[""]}),n})();var zu=g(8012),ie=g(8377);const Gu=["form"],Vu=["formSweepAll"],Wu=["stepper"];function Xu(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function ju(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.amountError)}}function Ku(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function $u(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function t6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function e6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",23)(1,"input",32,33),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).transactionBlocks=a}),t.qZA(),t.YNc(3,t6,2,0,"mat-error",14),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.transactionBlocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.transactionBlocks)}}function n6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function o6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",23)(1,"input",34,35),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).transactionFees=a}),t.qZA(),t.YNc(3,n6,2,0,"mat-error",14),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.transactionFees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.transactionFees)}}function i6(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.sendFundError)}}function a6(n,i){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,i6,2,1,"span",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}function l6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",9,10),t.NdJ("submit",function(){return t.CHM(e),t.oxw().onSendFunds()})("reset",function(){return t.CHM(e),t.oxw().resetData()}),t.TgZ(2,"mat-form-field",11)(3,"input",12,13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().transactionAddress=a}),t.qZA(),t.YNc(5,Xu,2,0,"mat-error",14),t.qZA(),t.TgZ(6,"mat-form-field",15)(7,"input",16,17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().transactionAmount=a}),t.qZA(),t.TgZ(9,"span",18),t._uU(10),t.qZA(),t.YNc(11,ju,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field",19)(13,"mat-select",20),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().onAmountUnitChange(a)}),t.YNc(14,Ku,2,2,"mat-option",21),t.qZA()(),t.TgZ(15,"div",22)(16,"mat-form-field",23)(17,"mat-select",24),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().selTransType=a}),t.YNc(18,$u,2,2,"mat-option",21),t.qZA()(),t.YNc(19,e6,4,4,"mat-form-field",25),t.YNc(20,o6,4,4,"mat-form-field",25),t.qZA(),t._UZ(21,"div",26),t.YNc(22,a6,3,2,"div",27),t.TgZ(23,"div",28)(24,"button",29),t._uU(25,"Clear Fields"),t.qZA(),t.TgZ(26,"button",30),t._uU(27,"Send Funds"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.transactionAddress),t.xp6(2),t.Q6J("ngIf",!e.transactionAddress),t.xp6(2),t.Q6J("ngModel",e.transactionAmount)("step",100)("min",0),t.xp6(3),t.hij(" ",e.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!e.transactionAmount),t.xp6(2),t.Q6J("value",e.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",e.amountUnits),t.xp6(3),t.Q6J("value",e.selTransType),t.xp6(1),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","1"===e.selTransType),t.xp6(1),t.Q6J("ngIf","2"===e.selTransType),t.xp6(2),t.Q6J("ngIf",""!==e.sendFundError)}}function s6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.passwordFormLabel)}}function r6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function c6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",42)(1,"form",61),t.YNc(2,s6,1,1,"ng-template",55),t.TgZ(3,"div",0)(4,"mat-form-field",1),t._UZ(5,"input",62),t.YNc(6,r6,2,0,"mat-error",14),t.qZA()(),t.TgZ(7,"div",63)(8,"button",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onAuthenticate()}),t._uU(9,"Confirm"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function p6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.sendFundFormLabel)}}function u6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function m6(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function d6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function h6(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",65),t._UZ(1,"input",66),t.YNc(2,d6,2,0,"mat-error",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionBlocks.errors?null:e.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function _6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function f6(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",65),t._UZ(1,"input",67),t.YNc(2,_6,2,0,"mat-error",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionFees.errors?null:e.sendFundFormGroup.controls.transactionFees.errors.required)}}function g6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.confirmFormLabel)}}function C6(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.sendFundError)}}function x6(n,i){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,C6,2,1,"span",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}function y6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",38)(1,"mat-vertical-stepper",39,40),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.YNc(3,c6,10,4,"mat-step",41),t.TgZ(4,"mat-step",42)(5,"form",43),t.YNc(6,p6,1,1,"ng-template",44),t.TgZ(7,"div",45)(8,"mat-form-field",46),t._UZ(9,"input",47),t.YNc(10,u6,2,0,"mat-error",14),t.qZA(),t.TgZ(11,"mat-form-field",48)(12,"mat-select",49),t.YNc(13,m6,2,2,"mat-option",21),t.qZA()(),t.YNc(14,h6,3,3,"mat-form-field",50),t.YNc(15,f6,3,3,"mat-form-field",50),t.qZA(),t.TgZ(16,"div",51)(17,"button",52),t._uU(18,"Next"),t.qZA()()()(),t.TgZ(19,"mat-step",53)(20,"form",54),t.YNc(21,g6,1,1,"ng-template",55),t.TgZ(22,"div",38)(23,"div",56),t._UZ(24,"fa-icon",57),t.TgZ(25,"span"),t._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),t.qZA()(),t.YNc(27,x6,3,2,"div",27),t.TgZ(28,"div",51)(29,"button",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendFunds()}),t._uU(30,"Sweep All Funds"),t.qZA()()()()()(),t.TgZ(31,"div",59)(32,"button",60),t._uU(33),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("ngIf",!e.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.sendFundFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),t.xp6(3),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","1"===e.sendFundFormGroup.controls.selTransType.value),t.xp6(1),t.Q6J("ngIf","2"===e.sendFundFormGroup.controls.selTransType.value),t.xp6(4),t.Q6J("stepControl",e.confirmFormGroup),t.xp6(1),t.Q6J("formGroup",e.confirmFormGroup),t.xp6(4),t.Q6J("icon",e.faExclamationTriangle),t.xp6(3),t.Q6J("ngIf",""!==e.sendFundError),t.xp6(5),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(e.flgValidated?"Close":"Cancel")}}let T6=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I,w){this.dialogRef=e,this.data=o,this.logger=a,this.store=l,this.rtlEffects=r,this.commonService=h,this.decimalPipe=f,this.snackBar=x,this.actions=I,this.formBuilder=w,this.faExclamationTriangle=b.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=s.uA,this.selAmountUnit=s.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=s.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[p.kI.required]],password:["",[p.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",p.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",p.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{"1"===e?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([p.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([p.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(ie.Yj).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.appConfig=e}),this.store.select(ie.dT).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND||e.type===s.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(e=>{e.type===s.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,F.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&e.payload.status===s.Bn.ERROR&&"SetChannelTransaction"===e.payload.action&&(this.sendFundError=e.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,F.QO)({payload:zu(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,X.q)(1)).subscribe(e=>{"ERROR"!==e?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const e={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(e.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(e.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(e.fees=this.sendFundFormGroup.controls.transactionFees.value)):(e.address=this.transactionAddress,"1"===this.selTransType&&(e.blocks=this.transactionBlocks),"2"===this.selTransType&&(e.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==s.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?s.NT.OTHER:this.selAmountUnit,s.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:o=>{var a;this.selAmountUnit=s.NT.SATS,e.amount=+((null===(a=this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]))||void 0===a?void 0:a.replace(/,/g,""))||0),this.store.dispatch((0,A.Wi)({payload:e}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=s.NT.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,A.Wi)({payload:e}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(e){switch(this.sendFundError="",e.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}e.selectedIndex{var f;this.selAmountUnit=e.value,o.transactionAmount=+((null===(f=o.decimalPipe.transform(h[l],o.currencyUnitFormats[l]))||void 0===f?void 0:f.replace(/,/g,""))||0)},error:h=>{o.transactionAmount=null,this.amountError="Conversion Error: "+h,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(S.yh),t.Y36(dt.V),t.Y36(O.v),t.Y36(u.JJ),t.Y36(it.ux),t.Y36(j.eX),t.Y36(p.qu))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Gu,7),t.Gf(Vu,5),t.Gf(Wu,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.formSweepAll=a.first),t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6),t.YNc(9,l6,28,14,"form",7),t.qZA()()(),t.YNc(10,y6,34,15,"ng-template",null,8,t.W1O)),2&e){const a=t.MAs(11);t.xp6(5),t.Oqu(o.sweepAll?"Sweep All Funds":"Send Funds"),t.xp6(1),t.Q6J("mat-dialog-close",!1),t.xp6(3),t.Q6J("ngIf",!o.sweepAll)("ngIfElse",a)}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,C.TO,p.wV,p.qQ,et.q,C.R9,M.gD,u.sg,G.ey,D.BN,Y.Vq,Y.C0,p.sg,Y.VY,p.u,Y.Ic],styles:[""]}),n})(),ae=(()=>{class n{constructor(e,o){this.store=e,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,F.qR)({payload:{data:{sweepAll:this.sweepAll,component:T6}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(o.sweepAll?"Sweep All":"Send Funds"))},directives:[m.xw,m.yH,m.Wh,q.lW],styles:[""]}),n})();function v6(n,i){1&n&&t._UZ(0,"mat-progress-bar",26)}function b6(n,i){if(1&n&&t._UZ(0,"rtl-node-info",27),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!0)}}function w6(n,i){if(1&n&&t._UZ(0,"rtl-channel-status-info",28),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function Z6(n,i){if(1&n&&t._UZ(0,"rtl-fee-info",29),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[2])}}const le=function(n){return{"dashboard-card-content":!0,"error-border":n}};function A6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),t._UZ(4,"fa-icon",17),t.TgZ(5,"span"),t._uU(6),t.qZA()()(),t.TgZ(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),t.YNc(10,v6,1,0,"mat-progress-bar",21),t.TgZ(11,"div",22),t.YNc(12,b6,1,2,"rtl-node-info",23),t.YNc(13,w6,1,2,"rtl-channel-status-info",24),t.YNc(14,Z6,1,2,"rtl-fee-info",25),t.qZA()()()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(4),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(3),t.Q6J("ngClass",t.VKq(10,le,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.ERROR)||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.INITIATED)||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","status"),t.xp6(1),t.Q6J("ngSwitchCase","fee")}}function L6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-list",11),t.YNc(1,A6,15,12,"mat-grid-tile",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nodeCards)}}function S6(n,i){1&n&&t._UZ(0,"mat-progress-bar",26)}function F6(n,i){1&n&&t.GkF(0)}function k6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,F6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function q6(n,i){1&n&&t.GkF(0)}function N6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,q6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function O6(n,i){1&n&&t.GkF(0)}function U6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,O6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(15);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function M6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",20),t.YNc(3,S6,1,0,"mat-progress-bar",21),t.TgZ(4,"div",22),t.YNc(5,k6,2,1,"div",32),t.YNc(6,N6,2,1,"div",32),t.YNc(7,U6,2,1,"div",32),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(2),t.Q6J("ngClass",t.VKq(8,le,o.apiCallStatusNetwork.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf",o.apiCallStatusNetwork.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","general"),t.xp6(1),t.Q6J("ngSwitchCase","channels"),t.xp6(1),t.Q6J("ngSwitchCase","degrees")}}function P6(n,i){if(1&n&&(t.TgZ(0,"div",35)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessages[1])}}function I6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Network Capacity"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Number of Nodes"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div")(14,"h4",37),t._uU(15,"Number of Channels"),t.qZA(),t.TgZ(16,"span",38),t._uU(17),t.ALo(18,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,3,e.networkInfo.total_network_capacity)," Sats"),t.xp6(6),t.Oqu(t.lcZ(12,5,e.networkInfo.num_nodes)),t.xp6(6),t.Oqu(t.lcZ(18,7,e.networkInfo.num_channels))}}function R6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Max Channel Size"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Avg Channel Size"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div")(14,"h4",37),t._uU(15,"Min Channel Size"),t.qZA(),t.TgZ(16,"span",38),t._uU(17),t.ALo(18,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,3,e.networkInfo.max_channel_size)),t.xp6(6),t.Oqu(t.lcZ(12,5,e.networkInfo.avg_channel_size)),t.xp6(6),t.Oqu(t.lcZ(18,7,e.networkInfo.min_channel_size))}}function D6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Max Out Degree"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Avg Out Degree"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div",39),t._UZ(14,"h4",37)(15,"span",38),t.qZA()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,2,e.networkInfo.max_out_degree)),t.xp6(6),t.Oqu(t.xi3(12,4,e.networkInfo.avg_out_degree,"1.0-2"))}}const Q6=function(n){return{"mt-1":n}};let J6=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.faProjectDiagram=b.TmZ,this.faBolt=b.BDt,this.faServer=b.xf3,this.faNetworkWired=b.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=s.cu,this.userPersonaEnum=s.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(T.bx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===s.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=e.nodeSettings,this.information=e.information}),this.store.select(T.N7).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusNetwork=e.apiCallStatus,this.apiCallStatusNetwork.status===s.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=e.networkInfo}),this.store.select(T.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[2]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===s.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[4]="",this.apiCallStatusPendingChannels=e.apiCallStatus,this.apiCallStatusPendingChannels.status===s.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:null===(o=e.pendingChannelsSummary.open)||void 0===o?void 0:o.num_channels,capacity:null===(a=e.pendingChannelsSummary.open)||void 0===a?void 0:a.limbo_balance},this.channelsStatus.closing={num_channels:((null===(l=e.pendingChannelsSummary.closing)||void 0===l?void 0:l.num_channels)||0)+((null===(r=e.pendingChannelsSummary.force_closing)||void 0===r?void 0:r.num_channels)||0)+((null===(h=e.pendingChannelsSummary.waiting_close)||void 0===h?void 0:h.num_channels)||0),capacity:e.pendingChannelsSummary.total_limbo_balance}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.errorMessages[3]="",this.apiCallStatusChannels=e.apiCallStatus,this.apiCallStatusChannels.status===s.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=e.channelsSummary.active,this.channelsStatus.inactive=e.channelsSummary.inactive,this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,L6,2,1,"mat-grid-list",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Network"),t.qZA()(),t.TgZ(6,"mat-grid-list",5),t.YNc(7,M6,8,10,"mat-grid-tile",6),t.qZA()(),t.YNc(8,P6,3,1,"ng-template",null,7,t.W1O),t.YNc(10,I6,19,9,"ng-template",null,8,t.W1O),t.YNc(12,R6,19,9,"ng-template",null,9,t.W1O),t.YNc(14,D6,16,7,"ng-template",null,10,t.W1O)),2&e&&(t.xp6(1),t.Q6J("ngIf",o.selNode.userPersona!==o.userPersonaEnum.OPERATOR),t.xp6(1),t.Q6J("ngClass",t.VKq(4,Q6,o.screenSize!==o.screenSizeEnum.XS)),t.xp6(1),t.Q6J("icon",o.faProjectDiagram),t.xp6(4),t.Q6J("ngForOf",o.networkCards))},directives:[m.xw,m.Wh,u.O5,Ct.Il,u.sg,Ct.DX,m.yH,D.BN,y.a8,y.dn,u.mk,L.oO,J.pW,u.RF,u.n9,Jt,Ht,Et,u.tP],pipes:[u.JJ],styles:[""]}),n})();function E6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let H6=(()=>{class n{constructor(e){this.router=e,this.faDownload=b.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Channels Backup"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,E6,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faDownload),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function Y6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",23)(1,"h4",24),t._uU(2),t.qZA(),t.TgZ(3,"div",25)(4,"button",26),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRestoreChannels({})}),t._uU(5,"Restore All"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function B6(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"h4",24),t._uU(2),t.qZA(),t.TgZ(3,"h4",28),t._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function z6(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"h4",24),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function G6(n,i){1&n&&t._UZ(0,"mat-progress-bar",29)}function V6(n,i){1&n&&(t.TgZ(0,"th",30),t._uU(1," Channel Point "),t.qZA())}const W6=function(n){return{"max-width":n}};function X6(n,i){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,W6,o.screenSize===o.screenSizeEnum.XS?"10rem":"45rem")),t.xp6(1),t.Oqu(null==e?null:e.channel_point)}}function j6(n,i){1&n&&(t.TgZ(0,"th",32)(1,"span",33),t._uU(2,"Actions"),t.qZA()())}function K6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",34)(1,"span",33)(2,"button",35),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onRestoreChannels(l)}),t._uU(3,"Restore"),t.qZA()()()}}function $6(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No singular channel backups available."),t.qZA())}function t4(n,i){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,$6,2,0,"p",37),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.channels||!e.channels.data||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const e4=function(n){return{"display-none":n}};function n4(n,i){if(1&n&&t._UZ(0,"tr",38),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,e4,e.channels&&e.channels.data&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function o4(n,i){1&n&&t._UZ(0,"tr",39)}function i4(n,i){1&n&&t._UZ(0,"tr",40)}const a4=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},l4=function(){return["no_channel"]};let s4=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,A.tb)()),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.lndEffects.setRestoreChannelList.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.allRestoreExists=e.all_restore_exists,this.channelsData=e.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||e&&e.files)&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(e){this.store.dispatch((0,A.vV)({payload:{channelPoint:e.channel_point?e.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(e){this.channels=new c.by([...e]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:24,vars:17,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Y6,6,1,"div",1),t.YNc(2,B6,5,1,"div",2),t.YNc(3,z6,3,1,"div",2),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7),t.YNc(9,G6,1,0,"mat-progress-bar",8),t.TgZ(10,"table",9,10),t.ynx(12,11),t.YNc(13,V6,2,0,"th",12),t.YNc(14,X6,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,j6,3,0,"th",15),t.YNc(17,K6,4,0,"td",16),t.BQk(),t.ynx(18,17),t.YNc(19,t4,2,1,"td",18),t.BQk(),t.YNc(20,n4,1,3,"tr",19),t.YNc(21,o4,1,0,"tr",20),t.YNc(22,i4,1,0,"tr",21),t.qZA()(),t._UZ(23,"mat-paginator",22),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.allRestoreExists),t.xp6(1),t.Q6J("ngIf",!o.allRestoreExists&&(!o.channels||(null==o.channels||null==o.channels.data?null:o.channels.data.length)<=0)),t.xp6(1),t.Q6J("ngIf",!o.allRestoreExists&&o.channels&&(null==o.channels||null==o.channels.data?null:o.channels.data.length)&&(null==o.channels||null==o.channels.data?null:o.channels.data.length)>0),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(14,a4,"error"===o.flgLoading[0])),t.xp6(10),t.Q6J("matFooterRowDef",t.DdM(16,l4)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,u.O5,m.Wh,m.yH,q.lW,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function r4(n,i){1&n&&t._UZ(0,"mat-progress-bar",31)}function c4(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Channel Point "),t.qZA())}const p4=function(n){return{"max-width":n}};function u4(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,p4,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(null==e?null:e.channel_point)}}function m4(n,i){1&n&&(t.TgZ(0,"th",34)(1,"span",35),t._uU(2,"Actions"),t.qZA()())}function d4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",36)(1,"div",37)(2,"mat-select",38),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",39),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onChannelClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onBackupChannels(l)}),t._uU(7,"Backup"),t.qZA(),t.TgZ(8,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onDownloadBackup(l)}),t._uU(9,"Download Backup"),t.qZA(),t.TgZ(10,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onVerifyChannels(l)}),t._uU(11,"Verify"),t.qZA()()()()}}function h4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function _4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function f4(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function g4(n,i){if(1&n&&(t.TgZ(0,"td",40),t.YNc(1,h4,2,0,"p",41),t.YNc(2,_4,2,0,"p",41),t.YNc(3,f4,2,1,"p",41),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const C4=function(n){return{"display-none":n}};function x4(n,i){if(1&n&&t._UZ(0,"tr",42),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,C4,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function y4(n,i){1&n&&t._UZ(0,"tr",43)}function T4(n,i){1&n&&t._UZ(0,"tr",44)}const v4=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},b4=function(){return["no_channel"]};let w4=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=b.sqG,this.faExclamationTriangle=b.eHv,this.faArchive=b.N2j,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=e.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(e=>e.type===s.uR.SET_CHANNELS_LND||e.type===s.pg.SHOW_FILE)).subscribe(e=>{var o;e.type===s.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),e.type===s.pg.SHOW_FILE&&(this.commonService.downloadFile(e.payload,"channel-"+((null===(o=this.selectedChannel)||void 0===o?void 0:o.channel_point)?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(e){this.store.dispatch((0,A.Vv)({payload:{uiMessage:s.m6.BACKUP_CHANNEL,channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(e){this.store.dispatch((0,A.Cp)({payload:{channelPoint:e.channel_point?e.channel_point:"ALL"}}))}onDownloadBackup(e){this.selectedChannel=e,this.store.dispatch((0,F.dc)({payload:{channelPoint:e.channel_point?e.channel_point:"all"}}))}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!1,component:St}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(e){this.channels=new c.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>((o.active?"active":"inactive")+(o.channel_point?o.channel_point.toLowerCase():"")+(o.chan_id?o.chan_id.toLowerCase():"")+(o.remote_pubkey?o.remote_pubkey.toLowerCase():"")+(o.remote_alias?o.remote_alias.toLowerCase():"")+(o.capacity?o.capacity:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"")+(o.total_satoshis_sent?o.total_satoshis_sent:"")+(o.total_satoshis_received?o.total_satoshis_received:"")+(o.commit_fee?o.commit_fee:"")+(o.private?"private":"public")).includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:42,vars:18,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5,"Save your backup files in a redundant location."),t.qZA()(),t.TgZ(6,"div",4),t._UZ(7,"fa-icon",3),t.TgZ(8,"span")(9,"strong"),t._uU(10,"Backup Folder Location: "),t.qZA(),t._uU(11),t.qZA()(),t.TgZ(12,"div",5)(13,"button",6),t.NdJ("click",function(){return o.onVerifyChannels({})}),t._uU(14,"Verify All"),t.qZA(),t.TgZ(15,"button",7),t.NdJ("click",function(){return o.onBackupChannels({})}),t._uU(16,"Backup All"),t.qZA(),t.TgZ(17,"button",8),t.NdJ("click",function(){return o.onDownloadBackup({})}),t._uU(18,"Download Backup"),t.qZA()()(),t.TgZ(19,"div",9)(20,"div",10),t._UZ(21,"fa-icon",11),t.TgZ(22,"span",12),t._uU(23,"Backups"),t.qZA()(),t.TgZ(24,"mat-form-field",13)(25,"input",14),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(26,"div",15),t.YNc(27,r4,1,0,"mat-progress-bar",16),t.TgZ(28,"table",17,18),t.ynx(30,19),t.YNc(31,c4,2,0,"th",20),t.YNc(32,u4,2,4,"td",21),t.BQk(),t.ynx(33,22),t.YNc(34,m4,3,0,"th",23),t.YNc(35,d4,12,0,"td",24),t.BQk(),t.ynx(36,25),t.YNc(37,g4,4,3,"td",26),t.BQk(),t.YNc(38,x4,1,3,"tr",27),t.YNc(39,y4,1,0,"tr",28),t.YNc(40,T4,1,0,"tr",29),t.qZA()(),t._UZ(41,"mat-paginator",30),t.qZA()),2&e&&(t.xp6(3),t.Q6J("icon",o.faExclamationTriangle),t.xp6(4),t.Q6J("icon",o.faInfoCircle),t.xp6(4),t.hij("",o.selNode.channelBackupPath,"."),t.xp6(10),t.Q6J("icon",o.faArchive),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(15,v4,""!==o.errorMessage)),t.xp6(10),t.Q6J("matFooterRowDef",t.DdM(17,b4)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,D.BN,q.lW,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Z4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let A4=(()=>{class n{constructor(e){this.router=e,this.faUserCheck=b.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Sign/Verify Message"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Z4,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faUserCheck),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function L4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Message is required."),t.qZA())}let S4=(()=>{class n{constructor(e,o,a){this.dataService=e,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new d.x,new d.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.signedMessage=this.message,this.signature=e.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D),t.Y36(it.ux),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),t.NdJ("ngModelChange",function(l){return o.message=l})("keyup",function(){return o.onMessageChange()}),t.qZA(),t.YNc(5,L4,2,0,"mat-error",5),t.qZA(),t.TgZ(6,"div",6)(7,"button",7),t.NdJ("click",function(){return o.resetData()}),t._uU(8,"Clear Field"),t.qZA(),t.TgZ(9,"button",8),t.NdJ("click",function(){return o.onSign()}),t._uU(10,"Sign"),t.qZA()(),t._UZ(11,"mat-divider",9),t.TgZ(12,"div",10)(13,"p"),t._uU(14,"Generated Signature"),t.qZA()(),t.TgZ(15,"div",11),t._uU(16),t.qZA(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("copied",function(l){return o.onCopyField(l)}),t._uU(19,"Copy Signature"),t.qZA()()()()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.message),t.xp6(1),t.Q6J("ngIf",!o.message),t.xp6(6),t.Q6J("inset",!0),t.xp6(5),t.Oqu(o.signature),t.xp6(2),t.Q6J("payload",o.signature))},directives:[m.xw,m.yH,m.Wh,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,q.lW,V.d,ht.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function F4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Message is required."),t.qZA())}function k4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Signature is required."),t.qZA())}function q4(n,i){1&n&&(t.TgZ(0,"p",13)(1,"mat-icon",14),t._uU(2,"close"),t.qZA(),t._uU(3,"Verification failed, please double check message and signature"),t.qZA())}function N4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Pubkey Used"),t.qZA())}function O4(n,i){if(1&n&&(t.TgZ(0,"div",20)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.Oqu(null==e.verifyRes?null:e.verifyRes.pubkey)}}function U4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",21)(1,"button",22),t.NdJ("copied",function(a){return t.CHM(e),t.oxw(2).onCopyField(a)}),t._uU(2,"Copy Pubkey"),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function M4(n,i){if(1&n&&(t.TgZ(0,"div",15),t._UZ(1,"mat-divider",16),t.TgZ(2,"div",17),t.YNc(3,N4,2,0,"p",5),t.qZA(),t.YNc(4,O4,3,1,"div",18),t.YNc(5,U4,3,1,"div",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(2),t.Q6J("ngIf",e.verifyRes.valid),t.xp6(1),t.Q6J("ngIf",e.verifyRes.valid),t.xp6(1),t.Q6J("ngIf",e.verifyRes.valid)}}let P4=(()=>{class n{constructor(e,o,a){this.dataService=e,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new d.x,new d.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.verifyRes=e,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D),t.Y36(it.ux),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),t.NdJ("ngModelChange",function(l){return o.message=l})("keyup",function(){return o.onChange()}),t.qZA(),t.YNc(5,F4,2,0,"mat-error",5),t.qZA(),t.TgZ(6,"mat-form-field",3)(7,"input",6,7),t.NdJ("ngModelChange",function(l){return o.signature=l})("keyup",function(){return o.onChange()}),t.qZA(),t.YNc(9,k4,2,0,"mat-error",5),t.qZA(),t.YNc(10,q4,4,0,"p",8),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return o.resetData()}),t._uU(13,"Clear Fields"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return o.onVerify()}),t._uU(15,"Verify"),t.qZA()(),t.YNc(16,M4,6,4,"div",12),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.message),t.xp6(1),t.Q6J("ngIf",!o.message),t.xp6(2),t.Q6J("ngModel",o.signature),t.xp6(2),t.Q6J("ngIf",!o.signature),t.xp6(1),t.Q6J("ngIf",o.showVerifyStatus&&!o.verifyRes.valid),t.xp6(6),t.Q6J("ngIf",o.showVerifyStatus&&o.verifyRes.valid))},directives:[m.xw,m.yH,m.Wh,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,$.Hw,q.lW,V.d,ht.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var I4=g(9442);let R4=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[v.lC],styles:[""]}),n})();function D4(n,i){1&n&&t._UZ(0,"mat-progress-bar",34)}function Q4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function J4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function E4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function H4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Y4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function B4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id)}}function z4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function G4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id_bytes)}}function V4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function W4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.LoopStateEnum[e.state])}}function X4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function j4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.htlc_address)}}function K4(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function $4(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt))}}function tm(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function em(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.cost_server))}}function nm(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function om(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.cost_offchain))}}function im(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function am(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.cost_onchain)," ")}}function lm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",39)(1,"div",40)(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function sm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",43)(1,"button",44),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onSwapClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function rm(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.emptyTableMessage)}}function cm(n,i){if(1&n&&(t.TgZ(0,"td",45),t.YNc(1,rm,2,1,"p",46),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=e.listSwaps&&e.listSwaps.data)||(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)<1)}}const pm=function(n){return{"display-none":n}};function um(n,i){if(1&n&&t._UZ(0,"tr",47),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,pm,(null==e.listSwaps?null:e.listSwaps.data)&&(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)>0))}}function mm(n,i){1&n&&t._UZ(0,"tr",48)}function dm(n,i){1&n&&t._UZ(0,"tr",49)}const hm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},_m=function(){return["no_swap"]};let fm=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.loopService=l,this.selectedSwapType=s.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=s.Fq,this.faHistory=b.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(e){this.swapCaption=this.selectedSwapType===s.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(e,o){var a,l;this.loopService.getSwap((null===(l=null===(a=e.id_bytes)||void 0===a?void 0:a.replace(/\//g,"_"))||void 0===l?void 0:l.replace(/\+/g,"-"))||"").pipe((0,_.R)(this.unSubs[2])).subscribe(r=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:s.Fq[r.state||""],title:"Status",width:50,type:s.Gi.STRING},{key:"amt",value:r.amt,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER}],[{key:"initiation_time",value:(r.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:s.Gi.DATE_TIME},{key:"last_update_time",value:(r.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:s.Gi.DATE_TIME}],[{key:"cost_server",value:r.cost_server,title:"Server Cost (Sats)",width:33,type:s.Gi.NUMBER},{key:"cost_offchain",value:r.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:s.Gi.NUMBER},{key:"cost_onchain",value:r.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:s.Gi.NUMBER}],[{key:"id_bytes",value:r.id_bytes,title:"ID",width:100,type:s.Gi.STRING}],[{key:"htlc_address",value:r.htlc_address,title:"HTLC Address",width:100,type:s.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(e){this.listSwaps=new c.by([...e]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listSwaps.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===s.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(rt.W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-swaps"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Swaps")}]),t.TTD],decls:52,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,D4,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Q4,2,0,"th",13),t.YNc(15,J4,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,E4,2,0,"th",13),t.YNc(18,H4,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Y4,2,0,"th",13),t.YNc(21,B4,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,z4,2,0,"th",13),t.YNc(24,G4,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,V4,2,0,"th",13),t.YNc(27,W4,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,X4,2,0,"th",13),t.YNc(30,j4,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,K4,2,0,"th",21),t.YNc(33,$4,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,tm,2,0,"th",21),t.YNc(36,em,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,nm,2,0,"th",21),t.YNc(39,om,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,im,2,0,"th",21),t.YNc(42,am,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,lm,6,0,"th",26),t.YNc(45,sm,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,cm,2,1,"td",29),t.BQk(),t.YNc(48,um,1,3,"tr",30),t.YNc(49,mm,1,0,"tr",31),t.YNc(50,dm,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",o.faHistory),t.xp6(2),t.hij("",o.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.listSwaps)("ngClass",t.VKq(13,hm,"error"===o.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,_m)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const gm=function(n){return["../",n]};function Cm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onSelectedIndexChange(l)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeTab.link===e.link)("routerLink",t.VKq(3,gm,e.link)),t.xp6(1),t.Oqu(e.name)}}let xm=(()=>{class n{constructor(e,o,a){this.router=e,this.loopService=o,this.store=a,this.faInfinity=b.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=s.$I,this.selectedSwapType=s.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.loopService.listSwaps();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"loopin"===e.link?s.$I.LOOP_IN:s.$I.LOOP_OUT,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeTab=a||this.links[0],this.selectedSwapType=a&&"loopin"===a.link?s.$I.LOOP_IN:s.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,_.R)(this.unSubs[1])).subscribe({next:o=>{var a;this.flgLoading[0]=!1,this.storedSwaps=o,this.filteredSwaps=null===(a=this.storedSwaps)||void 0===a?void 0:a.filter(l=>l.type===this.selectedSwapType)},error:o=>{this.flgLoading[0]="error",this.emptyTableMessage=o.message?o.message:"No loop "+(this.selectedSwapType===s.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(e){var o;this.selectedSwapType="loopin"===e.link?s.$I.LOOP_IN:s.$I.LOOP_OUT,this.filteredSwaps=null===(o=this.storedSwaps)||void 0===o?void 0:o.filter(a=>a.type===this.selectedSwapType)}onLoop(e){e===s.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[2])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{minQuote:o[0],maxQuote:o[1],direction:e,component:xt}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{minQuote:o[0],maxQuote:o[1],direction:e,component:xt}}}))}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(rt.W),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Cm,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return o.onLoop(o.selectedSwapType)}),t._uU(11),t.qZA()(),t._UZ(12,"rtl-swaps",9),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faInfinity),t.xp6(7),t.Q6J("ngForOf",o.links),t.xp6(3),t.hij("Start ",o.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",o.selectedSwapType)("swapsData",o.filteredSwaps)("flgLoading",o.flgLoading)("emptyTableMessage",o.emptyTableMessage))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,q.lW,fm,m.yH],styles:[""]}),n})();var Nt=g(2218);let ym=(()=>{class n{constructor(){this.serviceInfo={},this.direction=s.hc.SWAP_OUT,this.swapTypeEnum=s.hc}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),t._uU(4,"Service Information"),t.qZA()()(),t.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div",4)(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA()()(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div",4)(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA()()()()()),2&e&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==o.serviceInfo||null==o.serviceInfo.limits?null:o.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==o.serviceInfo||null==o.serviceInfo.limits?null:o.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==o.serviceInfo||null==o.serviceInfo.fees?null:o.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,o.direction===o.swapTypeEnum.SWAP_OUT?null==o.serviceInfo||null==o.serviceInfo.fees||null==o.serviceInfo.fees.miner?null:o.serviceInfo.fees.miner.reverse:null==o.serviceInfo||null==o.serviceInfo.fees||null==o.serviceInfo.fees.miner?null:o.serviceInfo.fees.miner.normal)))},directives:[E.ib,m.yH,E.yz,E.yK,m.Wh,m.xw,V.d],pipes:[u.JJ],styles:[""]}),n})();function Tm(n,i){1&n&&t.GkF(0)}function vm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"span",5),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(null!=e.swapStatus&&e.swapStatus.error?null==e.swapStatus?null:e.swapStatus.error:"Unknown Error.")}}function bm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()(),t.TgZ(20,"div",7)(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.swapStatus?null:e.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==e.swapStatus?null:e.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==e.swapStatus?null:e.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==e.swapStatus?null:e.swapStatus.lockupAddress)}}function wm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()()(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.swapStatus?null:e.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==e.swapStatus?null:e.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==e.swapStatus?null:e.swapStatus.address),t.xp6(7),t.Oqu(null==e.swapStatus?null:e.swapStatus.bip21)}}let Zm=(()=>{class n{constructor(){this.swapStatus=null,this.direction=s.hc.SWAP_OUT,this.swapTypeEnum=s.hc}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(e,o){if(1&e&&(t.YNc(0,Tm,1,0,"ng-container",0),t.YNc(1,vm,3,1,"ng-template",null,1,t.W1O),t.YNc(3,bm,25,6,"ng-template",null,2,t.W1O),t.YNc(5,wm,27,6,"ng-template",null,3,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=o.swapStatus&&o.swapStatus.error?a:o.direction===o.swapTypeEnum.SWAP_OUT?l:r)}},directives:[u.tP,m.xw,m.yH,m.Wh,V.d],pipes:[u.JJ],styles:[""]}),n})();function Am(n,i){1&n&&t.GkF(0)}const ft=function(n,i){return{"small-svg":n,"large-svg":i}};function Lm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Sm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",21)(2,"g",22),t._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs")(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA()()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Fm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),t.TgZ(9,"defs")(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function km(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",43)(2,"g",22),t._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function qm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Nm=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(e,o){if(1&e&&(t.YNc(0,Am,1,0,"ng-container",0),t.YNc(1,Lm,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Sm,19,5,"ng-template",null,2,t.W1O),t.YNc(5,Fm,19,5,"ng-template",null,3,t.W1O),t.YNc(7,km,17,5,"ng-template",null,4,t.W1O),t.YNc(9,qm,13,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();function Om(n,i){1&n&&t.GkF(0)}const gt=function(n,i){return{"small-svg":n,"large-svg":i}};function Um(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Mm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18)(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA()(),t.TgZ(12,"div",19)(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Pm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),t.TgZ(9,"defs")(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Im(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",40)(2,"g",41),t._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Rm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Dm=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(e,o){if(1&e&&(t.YNc(0,Om,1,0,"ng-container",0),t.YNc(1,Um,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Mm,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Pm,19,5,"ng-template",null,3,t.W1O),t.YNc(7,Im,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Rm,13,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const Qm=["stepper"];function Jm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function Em(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Hm(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal),".")}}function Ym(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal),".")}}function Bm(n,i){1&n&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function zm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij("Initiate ",e.swapDirectionCaption,"")}}function Gm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.addressFormLabel)}}function Vm(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Wm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",15)(1,"form",16),t.YNc(2,Gm,1,1,"ng-template",17),t.TgZ(3,"div",42)(4,"mat-radio-group",43),t.NdJ("change",function(a){return t.CHM(e),t.oxw(2).onAddressTypeChange(a)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA()(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Vm,2,0,"mat-error",24),t.qZA()(),t.TgZ(12,"div",25)(13,"button",48),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onSwap()}),t._uU(14),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.addressFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.addressFormGroup),t.xp6(9),t.Q6J("required","external"===e.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==e.addressFormGroup.controls.address.errors?null:e.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",e.swapDirectionCaption,"")}}function Xm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.hij("",e.swapDirectionCaption," Status")}}function jm(n,i){if(1&n&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.swapStatus&&null!=e.swapStatus&&e.swapStatus.id?"check":"close")}}function Km(n,i){1&n&&t._UZ(0,"div")}function $m(n,i){1&n&&t._UZ(0,"mat-progress-bar",50)}function t5(n,i){if(1&n&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.swapStatus&&e.swapStatus.error?e.swapDirectionCaption+" failed.":e.swapStatus&&e.swapStatus.id?e.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":e.swapDirectionCaption+" request placed successfully.")}}function e5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function n5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t._uU(5),t.qZA()(),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(15,"mat-step",15)(16,"form",16),t.YNc(17,Jm,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20)(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,Em,2,0,"mat-error",24),t.YNc(30,Hm,3,3,"mat-error",24),t.YNc(31,Ym,3,3,"mat-error",24),t.qZA()(),t.TgZ(32,"div",25),t.YNc(33,Bm,2,0,"button",26),t.YNc(34,zm,2,1,"button",27),t.qZA()()(),t.YNc(35,Wm,15,6,"mat-step",28),t.TgZ(36,"mat-step",29)(37,"form",16),t.YNc(38,Xm,1,1,"ng-template",17),t.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),t._uU(44),t.YNc(45,jm,2,1,"mat-icon",33),t.qZA()()(),t.YNc(46,Km,1,0,"div",34),t.qZA(),t.YNc(47,$m,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,t5,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,e5,2,0,"button",37),t.qZA()()()(),t.TgZ(51,"div",38)(52,"button",39),t._uU(53,"Close"),t.qZA()()()()()()}if(2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(e.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",e.serviceInfo)("direction",e.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!e.swapStatus),t.xp6(4),t.Oqu(e.swapStatus?e.swapStatus.id?e.swapDirectionCaption+" request details":e.swapDirectionCaption+" error details":"Waiting for "+e.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",e.swapStatus),t.xp6(1),t.Q6J("ngIf",!e.swapStatus)("ngIfElse",o),t.xp6(1),t.Q6J("ngIf",!e.swapStatus),t.xp6(1),t.Q6J("ngIf",e.swapStatus),t.xp6(2),t.Q6J("ngIf",e.swapStatus&&(e.swapStatus.error||!e.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function o5(n,i){if(1&n&&t._UZ(0,"rtl-boltz-swap-status",53),2&n){const e=t.oxw();t.Q6J("swapStatus",e.swapStatus)("direction",e.direction)}}function i5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}function a5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}const l5=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function s5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",72),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,l5,o.stepNumber===e,o.stepNumber!==e))}}function r5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function c5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function p5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function u5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function m5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function d5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const h5=function(){return[1,2,3,4,5]};function _5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57)(6,"button",58),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",59),t.YNc(9,i5,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,a5,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,s5,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,r5,2,0,"button",64),t.YNc(15,c5,2,0,"button",65),t.YNc(16,p5,2,0,"button",66),t.YNc(17,u5,2,0,"button",67),t.YNc(18,m5,2,0,"button",68),t.YNc(19,d5,2,0,"button",69),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,h5)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let f5=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I){this.dialogRef=e,this.data=o,this.store=a,this.boltzService=l,this.formBuilder=r,this.decimalPipe=h,this.logger=f,this.router=x,this.commonService=I,this.faInfoCircle=b.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=s.hc,this.direction=s.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){var e,o,a;this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||s.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===s.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[null===(e=this.serviceInfo.limits)||void 0===e?void 0:e.minimal,[p.kI.required,p.kI.min((null===(o=this.serviceInfo.limits)||void 0===o?void 0:o.minimal)||0),p.kI.max((null===(a=this.serviceInfo.limits)||void 0===a?void 0:a.maximal)||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[p.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===s.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===s.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([p.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){var e,o,a;if(!this.inputFormGroup.controls.amount.value||(null===(e=this.serviceInfo.limits)||void 0===e?void 0:e.minimal)&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||(null===(o=this.serviceInfo.limits)||void 0===o?void 0:o.maximal)&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===s.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,null===(a=this.stepper.selected)||void 0===a||a.stepControl.setErrors(null),this.stepper.next(),this.direction===s.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,_.R)(this.unSubs[3])).subscribe({next:l=>{this.swapStatus=l,this.boltzService.listSwaps(),this.flgEditable=!0},error:l=>{this.swapStatus={error:l},this.flgEditable=!0,this.logger.error(l)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,_.R)(this.unSubs[4])).subscribe({next:r=>{this.swapStatus=r,this.boltzService.listSwaps(),this.flgEditable=!0},error:r=>{this.swapStatus={error:r},this.flgEditable=!0,this.logger.error(r)}})}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(Nt.X),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(N.mQ),t.Y36(v.F0),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(Qm,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,n5,54,34,"div",0),t.YNc(1,o5,1,2,"ng-template",null,1,t.W1O),t.YNc(3,_5,20,11,"div",2)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(3),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,ym,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,Y.Ic,tt.VQ,tt.U0,E.ib,E.yz,E.yK,$.Hw,J.pW,Q.ZT,Zm,Nm,Dm,u.sg,u.mk,L.oO],pipes:[u.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();function g5(n,i){1&n&&t._UZ(0,"mat-progress-bar",32)}function C5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function x5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.swapStateEnum[e.status])}}function y5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function T5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id)}}function v5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function b5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.claimAddress)}}function w5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Z5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.onchainAmount))}}function A5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function L5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.lockupAddress)}}function S5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function F5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.expectedAmount))}}function k5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function q5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.timeoutBlockHeight))}}function N5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function O5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt))}}function U5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function M5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",41)(1,"button",42),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onSwapClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function P5(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.emptyTableMessage)}}function I5(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,P5,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=e.listSwaps&&e.listSwaps.data)||(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)<1)}}const R5=function(n){return{"display-none":n}};function D5(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,R5,(null==e.listSwaps?null:e.listSwaps.data)&&(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)>0))}}function Q5(n,i){1&n&&t._UZ(0,"tr",46)}function J5(n,i){1&n&&t._UZ(0,"tr",47)}const E5=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},H5=function(){return["no_swap"]};let Y5=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.boltzService=l,this.selectedSwapType=s.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=s.Qw,this.faHistory=b.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(e){e.selectedSwapType&&!e.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===s.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(e,o){this.boltzService.swapInfo(e.id||"").pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:s.Qw[(a=this.selectedSwapType===s.hc.SWAP_IN?a.swap:a.reverseSwap).status],title:"Status",width:50,type:s.Gi.STRING},{key:"id",value:a.id,title:"ID",width:50,type:s.Gi.STRING}],[{key:"amount",value:a.onchainAmount?a.onchainAmount:a.expectedAmount?a.expectedAmount:0,title:a.onchainAmount?"Onchain Amount (Sats)":a.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:s.Gi.NUMBER},{key:"timeoutBlockHeight",value:a.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:s.Gi.NUMBER}],[{key:"address",value:a.claimAddress?a.claimAddress:a.lockupAddress?a.lockupAddress:"",title:a.claimAddress?"Claim Address":a.lockupAddress?"Lockup Address":"Address",width:100,type:s.Gi.STRING}],[{key:"invoice",value:a.invoice,title:"Invoice",width:100,type:s.Gi.STRING}],[{key:"privateKey",value:a.privateKey,title:"Private Key",width:100,type:s.Gi.STRING}],[{key:"preimage",value:a.preimage,title:"Preimage",width:100,type:s.Gi.STRING}],[{key:"redeemScript",value:a.redeemScript,title:"Redeem Script",width:100,type:s.Gi.STRING}],[{key:"lockupTransactionId",value:a.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:s.Gi.STRING},{key:"transactionId",value:a.claimTransactionId?a.claimTransactionId:a.refundTransactionId?a.refundTransactionId:"",title:a.claimTransactionId?"Claim Transaction ID":a.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:s.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(e){this.listSwaps=new c.by(e?[...e]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listSwaps.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===s.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(Nt.X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swaps"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,g5,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,C5,2,0,"th",13),t.YNc(15,x5,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,y5,2,0,"th",13),t.YNc(18,T5,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,v5,2,0,"th",13),t.YNc(21,b5,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,w5,2,0,"th",18),t.YNc(24,Z5,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,A5,2,0,"th",13),t.YNc(27,L5,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,S5,2,0,"th",18),t.YNc(30,F5,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,k5,2,0,"th",18),t.YNc(33,q5,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,N5,2,0,"th",18),t.YNc(36,O5,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,U5,6,0,"th",24),t.YNc(39,M5,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,I5,2,1,"td",27),t.BQk(),t.YNc(42,D5,1,3,"tr",28),t.YNc(43,Q5,1,0,"tr",29),t.YNc(44,J5,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",o.faHistory),t.xp6(2),t.hij("",o.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.listSwaps)("ngClass",t.VKq(13,E5,"error"===o.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,H5)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const B5=function(n){return["../",n]};function z5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onSelectedIndexChange(l)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeTab.link===e.link)("routerLink",t.VKq(3,B5,e.link)),t.xp6(1),t.Oqu(e.name)}}let G5=(()=>{class n{constructor(e,o,a){this.router=e,this.store=o,this.boltzService=a,this.swapTypeEnum=s.hc,this.selectedSwapType=s.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.boltzService.listSwaps();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"swapin"===e.link?s.hc.SWAP_IN:s.hc.SWAP_OUT,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeTab=a||this.links[0],this.selectedSwapType=a&&"swapin"===a.link?s.hc.SWAP_IN:s.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,_.R)(this.unSubs[1])).subscribe({next:o=>{this.swaps=o,this.swapsData=this.selectedSwapType===s.hc.SWAP_IN&&o.swaps?o.swaps:this.selectedSwapType===s.hc.SWAP_OUT&&o.reverseSwaps?o.reverseSwaps:[],this.flgLoading[0]=!1},error:o=>{this.flgLoading[0]="error",this.emptyTableMessage=o.message?o.message:"No swap "+(this.selectedSwapType===s.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(e){"swapin"===e.link?(this.selectedSwapType=s.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=s.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(e){this.boltzService.serviceInfo().pipe((0,_.R)(this.unSubs[2])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{serviceInfo:o,direction:e,component:f5}}}))}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(S.yh),t.Y36(Nt.X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),t._UZ(4,"circle",4)(5,"path",5)(6,"path",6),t.qZA()()(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA()(),t.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),t.YNc(13,z5,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return o.onSwap(o.selectedSwapType)}),t._uU(16),t.qZA()(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA()()()),2&e&&(t.xp6(13),t.Q6J("ngForOf",o.links),t.xp6(3),t.hij("Start ",o.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",o.selectedSwapType)("swapsData",o.swapsData)("flgLoading",o.flgLoading)("emptyTableMessage",o.emptyTableMessage))},directives:[m.xw,m.Wh,y.a8,y.dn,m.yH,R.BU,u.sg,R.Nj,v.rH,q.lW,Y5],styles:[""]}),n})();var U=g(1643);function V5(n,i){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function W5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._uU(2,"Non Routing Peers"),t.qZA(),t.TgZ(3,"mat-form-field",11)(4,"input",12),t.NdJ("keyup",function(){return t.CHM(e),t.oxw(2).applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw(2).filter=a}),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.filter)}}function X5(n,i){1&n&&t._UZ(0,"mat-progress-bar",35)}function j5(n,i){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Channel ID"),t.qZA())}const se=function(n){return{"max-width":n}};function K5(n,i){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.Q6J("ngStyle",t.VKq(2,se,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function $5(n,i){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Peer Alias"),t.qZA())}function td(n,i){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.Q6J("ngStyle",t.VKq(2,se,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.remote_alias)}}function ed(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Sats Sent"),t.qZA())}function nd(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_satoshis_sent))}}function od(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Sats Received"),t.qZA())}function id(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_satoshis_received))}}function ad(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Local Balance (Sats)"),t.qZA())}function ld(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.local_balance))}}function sd(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function rd(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.remote_balance))}}function cd(n,i){1&n&&(t.TgZ(0,"th",41)(1,"span",40),t._uU(2,"Actions"),t.qZA()())}function pd(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",42)(1,"button",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(3).onManagePeer(l)}),t._uU(2,"Manage"),t.qZA()()}}function ud(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"All peers are routing."),t.qZA())}function md(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting non routing peers..."),t.qZA())}function dd(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.errorMessage)}}function hd(n,i){if(1&n&&(t.TgZ(0,"td",44),t.YNc(1,ud,2,0,"p",45),t.YNc(2,md,2,0,"p",45),t.YNc(3,dd,2,1,"p",45),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const _d=function(n){return{"display-none":n}};function fd(n,i){if(1&n&&t._UZ(0,"tr",46),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,_d,(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)>0))}}function gd(n,i){1&n&&t._UZ(0,"tr",47)}function Cd(n,i){1&n&&t._UZ(0,"tr",48)}const xd=function(){return["no_non_routing_event"]};function yd(n,i){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,X5,1,0,"mat-progress-bar",14),t.TgZ(2,"table",15,16),t.ynx(4,17),t.YNc(5,j5,2,0,"th",18),t.YNc(6,K5,2,4,"td",19),t.BQk(),t.ynx(7,20),t.YNc(8,$5,2,0,"th",18),t.YNc(9,td,2,4,"td",19),t.BQk(),t.ynx(10,21),t.YNc(11,ed,2,0,"th",22),t.YNc(12,nd,4,3,"td",23),t.BQk(),t.ynx(13,24),t.YNc(14,od,2,0,"th",22),t.YNc(15,id,4,3,"td",23),t.BQk(),t.ynx(16,25),t.YNc(17,ad,2,0,"th",22),t.YNc(18,ld,4,3,"td",23),t.BQk(),t.ynx(19,26),t.YNc(20,sd,2,0,"th",22),t.YNc(21,rd,4,3,"td",23),t.BQk(),t.ynx(22,27),t.YNc(23,cd,3,0,"th",28),t.YNc(24,pd,3,0,"td",29),t.BQk(),t.ynx(25,30),t.YNc(26,hd,4,3,"td",31),t.BQk(),t.YNc(27,fd,1,3,"tr",32),t.YNc(28,gd,1,0,"tr",33),t.YNc(29,Cd,1,0,"tr",34),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.NonRoutingPeers),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,xd)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Td(n,i){if(1&n&&(t.TgZ(0,"div",4),t.YNc(1,W5,5,1,"div",5),t.YNc(2,yd,30,7,"div",6),t._UZ(3,"mat-paginator",7,8),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",""===e.errorMessage),t.xp6(1),t.Q6J("ngIf",""===e.errorMessage),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let vd=(()=>{class n{constructor(e,o,a,l,r){this.logger=e,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=r,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new c.by([]),this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory)}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.channels,this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(e){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:e.chan_id}})}loadNonRoutingPeersTable(e){var o;if(e.length>0){const a=null===(o=this.activeChannels)||void 0===o?void 0:o.filter(l=>e.findIndex(r=>r.chan_id_in===l.chan_id||r.chan_id_out===l.chan_id)<0);this.NonRoutingPeers=new c.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(l,r)=>JSON.stringify(l).toLowerCase().includes(r),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new c.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(v.F0),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,V5,2,1,"div",1),t.YNc(2,Td,5,5,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.yH,m.Wh,u.O5,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,q.lW,c.mD,c.yh,c.Ke,c.Q2,u.mk,L.oO,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),bd=(()=>{class n{constructor(e){this.dataService=e,this.paths="",this.unSubs=[new d.x,new d.x]}ngOnInit(){var e;if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const o=null===(e=this.payment.htlcs[0].route.hops)||void 0===e?void 0:e.reduce((a,l)=>""===a&&l.pub_key?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,_.R)(this.unSubs[0])).subscribe(a=>{this.paths=null==a?void 0:a.reduce((l,r)=>""===l?r:l+"\n"+r,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,X.q)(1)).subscribe(o=>{o&&o.description&&""!==o.description&&(this.payment.description=o.description)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),t._uU(4,"Payment Hash"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()(),t._UZ(7,"mat-divider",5),t.TgZ(8,"div",2)(9,"h4",3),t._uU(10,"Payment Preimage"),t.qZA(),t.TgZ(11,"span",4)(12,"div"),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",5),t.TgZ(15,"div",2)(16,"h4",3),t._uU(17,"Payment Request"),t.qZA(),t.TgZ(18,"span",4)(19,"div"),t._uU(20),t.qZA()()(),t._UZ(21,"mat-divider",5),t.TgZ(22,"div",2)(23,"h4",3),t._uU(24,"Description"),t.qZA(),t.TgZ(25,"span",4)(26,"div"),t._uU(27),t.qZA()()(),t._UZ(28,"mat-divider",5),t.TgZ(29,"div",6)(30,"div",7)(31,"h4",3),t._uU(32,"Status"),t.qZA(),t.TgZ(33,"span",4)(34,"div"),t._uU(35),t.qZA()()(),t.TgZ(36,"div",7)(37,"h4",3),t._uU(38,"Creation Date"),t.qZA(),t.TgZ(39,"span",4)(40,"div"),t._uU(41),t.qZA()()()(),t._UZ(42,"mat-divider",5),t.TgZ(43,"div",6)(44,"div",7)(45,"h4",3),t._uU(46,"Value (mSats)"),t.qZA(),t.TgZ(47,"span",4)(48,"div"),t._uU(49),t.ALo(50,"number"),t.qZA()()(),t.TgZ(51,"div",7)(52,"h4",3),t._uU(53,"Fee (mSats)"),t.qZA(),t.TgZ(54,"span",4)(55,"div"),t._uU(56),t.ALo(57,"number"),t.qZA()()()(),t._UZ(58,"mat-divider",5),t.TgZ(59,"div",2)(60,"h4",3),t._uU(61,"Path"),t.qZA(),t.TgZ(62,"span",4)(63,"div"),t._uU(64),t.qZA()()(),t._UZ(65,"mat-divider",5),t.qZA()()),2&e&&(t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_hash),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_preimage),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_request),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.description),t.xp6(1),t.Q6J("inset",!0),t.xp6(7),t.Oqu(null==o.payment?null:o.payment.status),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.creation_date),t.xp6(1),t.Q6J("inset",!0),t.xp6(7),t.Oqu(t.lcZ(50,16,null==o.payment?null:o.payment.value_msat)),t.xp6(7),t.Oqu(t.lcZ(57,18,null==o.payment?null:o.payment.fee_msat)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.paths),t.xp6(1),t.Q6J("inset",!0))},directives:[m.xw,m.yH,m.Wh,y.dn,V.d],pipes:[u.JJ],styles:[""]}),n})();var wd=g(159);function Zd(n,i){if(1&n&&t._UZ(0,"qr-code",22),2&n){const e=t.oxw();t.Q6J("value",null==e.invoice?null:e.invoice.payment_request)("size",e.qrWidth)("errorCorrectionLevel","L")}}function Ad(n,i){1&n&&(t.TgZ(0,"span",23),t._uU(1,"N/A"),t.qZA())}function Ld(n,i){if(1&n&&t._UZ(0,"qr-code",22),2&n){const e=t.oxw();t.Q6J("value",null==e.invoice?null:e.invoice.payment_request)("size",e.qrWidth)("errorCorrectionLevel","L")}}function Sd(n,i){1&n&&(t.TgZ(0,"span",24),t._uU(1,"QR Code Not Applicable"),t.qZA())}function Fd(n,i){1&n&&t._UZ(0,"mat-divider",16),2&n&&t.Q6J("inset",!0)}function kd(n,i){1&n&&(t.ynx(0),t._uU(1," (zero amount) "),t.BQk())}const Ot=function(n){return{"mr-0":n}};function qd(n,i){if(1&n&&t._UZ(0,"span",38),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Nd(n,i){if(1&n&&t._UZ(0,"span",39),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Od(n,i){if(1&n&&t._UZ(0,"span",40),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Ud(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"div",32)(2,"span",33),t.YNc(3,qd,1,3,"span",34),t.YNc(4,Nd,1,3,"span",35),t.YNc(5,Od,1,3,"span",36),t._uU(6),t.qZA(),t.TgZ(7,"span",37),t._uU(8),t.ALo(9,"number"),t.qZA()(),t._UZ(10,"mat-divider",16),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SETTLED"===e.state),t.xp6(1),t.Q6J("ngIf","ACCEPTED"===e.state),t.xp6(1),t.Q6J("ngIf","CANCELED"===e.state),t.xp6(1),t.hij(" ",e.chan_id," "),t.xp6(2),t.Oqu(t.xi3(9,6,+e.amt_msat/1e3||0,o.getDecimalFormat(e))),t.xp6(2),t.Q6J("inset",!0)}}function Md(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"mat-expansion-panel",25),t.NdJ("opened",function(){return t.CHM(e),t.oxw().flgOpened=!0})("closed",function(){return t.CHM(e),t.oxw().onExpansionClosed()}),t.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),t._uU(5,"HTLCs"),t.qZA()()(),t.TgZ(6,"div",27)(7,"div",28)(8,"span",29),t._uU(9,"Channel ID"),t.qZA(),t.TgZ(10,"span",30),t._uU(11,"Amount (Sats)"),t.qZA()(),t._UZ(12,"mat-divider",16),t.YNc(13,Ud,11,9,"div",31),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(12),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngForOf",null==e.invoice?null:e.invoice.htlcs)}}function Pd(n,i){1&n&&t._UZ(0,"mat-divider",16),2&n&&t.Q6J("inset",!0)}const re=function(n){return{"display-none":n}};let Id=(()=>{class n{constructor(e){this.commonService=e,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}getDecimalFormat(e){return e.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Zd,1,3,"qr-code",2),t.YNc(3,Ad,2,0,"span",3),t.qZA(),t.TgZ(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),t.YNc(8,Ld,1,3,"qr-code",2),t.YNc(9,Sd,2,0,"span",8),t.qZA(),t.YNc(10,Fd,1,1,"mat-divider",9),t.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),t._uU(15),t.qZA(),t.TgZ(16,"span",14),t._uU(17),t.ALo(18,"number"),t.YNc(19,kd,2,0,"ng-container",15),t.qZA()(),t.TgZ(20,"div",12)(21,"h4",13),t._uU(22,"Amount Settled"),t.qZA(),t.TgZ(23,"span",14)(24,"div"),t._uU(25),t.ALo(26,"number"),t.qZA()()()(),t._UZ(27,"mat-divider",16),t.TgZ(28,"div",11)(29,"div",12)(30,"h4",13),t._uU(31,"Date Created"),t.qZA(),t.TgZ(32,"span",14),t._uU(33),t.ALo(34,"date"),t.qZA()(),t.TgZ(35,"div",12)(36,"h4",13),t._uU(37,"Date Settled"),t.qZA(),t.TgZ(38,"span",14),t._uU(39),t.ALo(40,"date"),t.qZA()()(),t._UZ(41,"mat-divider",16),t.TgZ(42,"div",11)(43,"div",17)(44,"h4",13),t._uU(45,"Memo"),t.qZA(),t.TgZ(46,"span",14),t._uU(47),t.qZA()()(),t._UZ(48,"mat-divider",16),t.TgZ(49,"div",11)(50,"div",17)(51,"h4",13),t._uU(52,"Payment Request"),t.qZA(),t.TgZ(53,"span",18),t._uU(54),t.qZA()()(),t._UZ(55,"mat-divider",16),t.TgZ(56,"div",11)(57,"div",17)(58,"h4",13),t._uU(59,"Payment Hash"),t.qZA(),t.TgZ(60,"span",18),t._uU(61),t.qZA()()(),t.TgZ(62,"div"),t._UZ(63,"mat-divider",16),t.TgZ(64,"div",11)(65,"div",17)(66,"h4",13),t._uU(67,"Preimage"),t.qZA(),t.TgZ(68,"span",18),t._uU(69),t.qZA()()(),t._UZ(70,"mat-divider",16),t.TgZ(71,"div",11)(72,"div",19)(73,"h4",13),t._uU(74,"State"),t.qZA(),t.TgZ(75,"span",18),t._uU(76),t.qZA()(),t.TgZ(77,"div",20)(78,"h4",13),t._uU(79,"Expiry"),t.qZA(),t.TgZ(80,"span",18),t._uU(81),t.qZA()(),t.TgZ(82,"div",20)(83,"h4",13),t._uU(84,"Private Routing Hints"),t.qZA(),t.TgZ(85,"span",18),t._uU(86),t.qZA()()(),t._UZ(87,"mat-divider",16),t.YNc(88,Md,14,2,"div",21),t.YNc(89,Pd,1,1,"mat-divider",9),t.qZA()()()()()()),2&e&&(t.xp6(1),t.Q6J("fxLayoutAlign",null!=o.invoice&&o.invoice.payment_request&&""!==(null==o.invoice?null:o.invoice.payment_request)?"center start":"center center")("ngClass",t.VKq(41,re,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.payment_request)&&""!==(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.payment_request)||""===(null==o.invoice?null:o.invoice.payment_request)),t.xp6(4),t.Q6J("fxLayoutAlign",null!=o.invoice&&o.invoice.payment_request&&""!==(null==o.invoice?null:o.invoice.payment_request)?"center start":"center center")("ngClass",t.VKq(43,re,o.screenSize!==o.screenSizeEnum.XS&&o.screenSize!==o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.payment_request)&&""!==(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.payment_request)||""===(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM),t.xp6(5),t.Oqu(o.screenSize===o.screenSizeEnum.XS?"Amount":"Amount Requested"),t.xp6(2),t.hij("",t.lcZ(18,31,(null==o.invoice?null:o.invoice.value)||0)," Sats"),t.xp6(2),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.value)||"0"===(null==o.invoice?null:o.invoice.value)),t.xp6(6),t.hij("",t.lcZ(26,33,null==o.invoice?null:o.invoice.amt_paid_sat)," Sats"),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(34,35,1e3*(null==o.invoice?null:o.invoice.creation_date),"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(0!=+(null==o.invoice?null:o.invoice.settle_date)?t.xi3(40,38,1e3*+(null==o.invoice?null:o.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.invoice?null:o.invoice.memo),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.payment_request)||"N/A"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.r_hash)||""),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.r_preimage)||"-"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.invoice?null:o.invoice.state),t.xp6(5),t.Oqu(null==o.invoice?null:o.invoice.expiry),t.xp6(5),t.Oqu(null!=o.invoice&&o.invoice.private?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.htlcs)&&(null==o.invoice?null:o.invoice.htlcs.length)>0),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.htlcs)&&(null==o.invoice?null:o.invoice.htlcs.length)>0))},directives:[m.xw,m.Wh,m.yH,u.mk,L.oO,u.O5,wd.uU,y.dn,V.d,z.$V,E.ib,E.yz,E.yK,u.sg,K.gM],pipes:[u.JJ,u.uU],styles:[""]}),n})();function Rd(n,i){if(1&n&&(t.TgZ(0,"mat-radio-button",17),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("value",e.id)("checked",o.selectedFieldId===e.id),t.xp6(1),t.hij(" ",e.name," ")}}function Dd(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Qd(n,i){1&n&&t._UZ(0,"mat-progress-bar",20)}const Jd=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function Ed(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Qd,1,0,"mat-progress-bar",19),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(3,Jd,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),t.xp6(1),t.Q6J("ngIf","Getting lookup details..."===e.errorMessage),t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Hd(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-payment-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("payment",e.lookupValue)}}function Yd(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-invoice-lookup",29),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("invoice",e.lookupValue)}}function Bd(n,i){1&n&&(t.TgZ(0,"span",27)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function zd(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22)(2,"span",23),t._uU(3),t.qZA()(),t.TgZ(4,"div",24),t.YNc(5,Hd,2,1,"span",25),t.YNc(6,Yd,2,1,"span",25),t.YNc(7,Bd,3,0,"span",26),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1)}}const Gd=function(n){return{"mt-1":!0,"mt-2":n}},Xd=v.Bz.forChild([{path:"",component:Rt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Sa,canActivate:[U.QM]},{path:"wallet",component:O2,canActivate:[U.a1]},{path:"onchain",component:Eu,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Bu,canActivate:[U.QM]},{path:"send/:selTab",component:ae,data:{sweepAll:!1},canActivate:[U.QM]},{path:"sweep/:selTab",component:ae,data:{sweepAll:!0},canActivate:[U.QM]}]},{path:"connections",component:qa,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Ol,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:v1,canActivate:[U.QM]},{path:"pending",component:ac,canActivate:[U.QM]},{path:"closed",component:kc,canActivate:[U.QM]},{path:"activehtlcs",component:r2,canActivate:[U.QM]}]},{path:"peers",component:Sl,canActivate:[U.QM]}]},{path:"transactions",component:P2,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:zt,canActivate:[U.QM]},{path:"invoices",component:Yt,canActivate:[U.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=b.wn1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND)).subscribe(e=>{this.flgSetLookupValue=!e.payload.error,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.errorMessage=e.payload.error?this.commonService.extractErrorMessage(e.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){var e,o,a,l;if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,A.yZ)({payload:null===(o=null===(e=Buffer.from(this.lookupKey.trim(),"hex").toString("base64"))||void 0===e?void 0:e.replace(/\+/g,"-"))||void 0===o?void 0:o.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,A.n7)({payload:{openSnackBar:!1,paymentHash:null===(l=null===(a=Buffer.from(this.lookupKey.trim(),"hex").toString("base64"))||void 0===a?void 0:a.replace(/\+/g,"-"))||void 0===l?void 0:l.replace(/[/]/g,"_")}}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),t.NdJ("ngModelChange",function(l){return o.selectedFieldId=l})("change",function(l){return o.onSelectChange(l)}),t.YNc(7,Rd,2,3,"mat-radio-button",7),t.qZA()(),t.TgZ(8,"mat-form-field",8)(9,"input",9,10),t.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(l){return o.lookupKey=l}),t.qZA(),t.YNc(11,Dd,2,1,"mat-error",11),t.qZA(),t.TgZ(12,"div",12)(13,"button",13),t.NdJ("click",function(){return o.resetData()}),t._uU(14,"Clear"),t.qZA(),t.TgZ(15,"button",14),t.NdJ("click",function(){return o.onLookup()}),t._uU(16,"Lookup"),t.qZA()()(),t.YNc(17,Ed,3,5,"div",15),t.YNc(18,zd,8,4,"div",16),t.qZA()()()),2&e&&(t.xp6(6),t.Q6J("ngModel",o.selectedFieldId),t.xp6(1),t.Q6J("ngForOf",o.lookupFields),t.xp6(1),t.Q6J("ngClass",t.VKq(8,Gd,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),t.xp6(2),t.Q6J("ngIf",!o.lookupKey),t.xp6(6),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage&&o.lookupValue&&o.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,y.dn,p._Y,p.JL,p.F,tt.VQ,p.JJ,p.On,u.sg,tt.U0,C.KE,u.mk,L.oO,P.Nt,p.Fj,p.Q7,u.O5,C.TO,q.lW,J.pW,u.RF,u.n9,bd,Id,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[U.QM]}]},{path:"messages",component:A4,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:S4,canActivate:[U.QM]},{path:"verify",component:P4,canActivate:[U.QM]}]},{path:"channelbackup",component:H6,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:w4,canActivate:[U.QM]},{path:"restore",component:s4,canActivate:[U.QM]}]},{path:"routing",component:R3,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:$t,canActivate:[U.QM]},{path:"peers",component:ap,canActivate:[U.QM]},{path:"nonroutingprs",component:vd,canActivate:[U.QM]}]},{path:"reports",component:sp,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:fp,canActivate:[U.QM]},{path:"transactions",component:Sp,canActivate:[U.QM]}]},{path:"graph",component:R2,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Kt,canActivate:[U.QM]},{path:"queryroutes",component:l3,canActivate:[U.QM]}]},{path:"lookups",component:Kt,canActivate:[U.QM]},{path:"services",component:R4,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:xm},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:G5}]},{path:"network",component:J6,canActivate:[U.QM]},{path:"**",component:I4.w},{path:"rates",redirectTo:"network"}]}]);var jd=g(8750);let Kd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Rt]}),n.\u0275inj=t.cJS({providers:[U.QM],imports:[[u.ez,jd.m,Xd]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/515.da134be35cc26574.js b/frontend/515.da134be35cc26574.js deleted file mode 100644 index 2fac5668..00000000 --- a/frontend/515.da134be35cc26574.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[515],{1515:($d,It,g)=>{g.r(It),g.d(It,{LNDModule:()=>Kd});var u=g(9808),v=g(1402),ce=g(8878),t=g(5e3),m=g(7093),J=g(5899);function pe(n,i){1&n&&t._UZ(0,"mat-progress-bar",3)}let Rt=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof v.OD:this.loading=!0;break;case o instanceof v.m2:case o instanceof v.gk:case o instanceof v.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lnd-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,pe,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[m.xw,m.yH,m.Wh,u.O5,J.pW,v.lC],styles:[""],data:{animation:[ce.g]}}),n})();var d=g(7579),_=g(2722),H=g(9300),Dt=g(534),b=g(801),s=g(7731),T=g(6529),N=g(5043),S=g(5620),j=g(6642),O=g(62),D=g(9444),Ct=g(3954),y=g(9224),q=g(7423),wt=g(2181),$=g(5245),L=g(3322);const Qt=function(n){return{backgroundColor:n}};function ue(n,i){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,Qt,null==e.information?null:e.information.color))}}function me(n,i){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,Qt,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function de(n,i){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Jt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(e=>{this.chains.push(this.commonService.titleCase(e.chain)+" "+this.commonService.titleCase(e.network))}))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,ue,1,3,"span",3),t.qZA()(),t.YNc(7,me,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,de,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==o.information?null:o.information.alias," "),t.xp6(1),t.Q6J("ngIf",!o.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",o.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),t.xp6(4),t.Q6J("ngForOf",o.chains))},directives:[m.xw,m.yH,m.Wh,u.O5,u.PC,L.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function he(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,null==e.balances?null:e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",(null==e.balances?null:e.balances.lightning)/(null==e.balances?null:e.balances.total)*100),t.xp6(5),t.hij("",t.lcZ(13,7,null==e.balances?null:e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",(null==e.balances?null:e.balances.onchain)/(null==e.balances?null:e.balances.total)*100),t.xp6(5),t.hij("",t.lcZ(20,9,null==e.balances?null:e.balances.total)," Sats")}}function _e(n,i){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let fe=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,he,21,11,"div",0),t.YNc(1,_e,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf"," "===o.errorMessage)("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh,J.pW],pipes:[u.JJ],styles:[""]}),n})();var C=g(7322),K=g(7238),V=g(4834),z=g(8129);const ge=function(){return["../connections/channels/open"]},Ce=function(n){return{filter:n}};function xe(n,i){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.remote_alias||e.remote_pubkey),t.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),t.Q6J("routerLink",t.DdM(21,ge))("state",t.VKq(22,Ce,e.chan_id)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":""," "),t.xp6(6),t.hij("",t.lcZ(9,15,e.local_balance||0)," Sats"),t.xp6(3),t.Q6J("icon",o.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,17,e.balancedness||0),") "),t.xp6(5),t.hij("",t.lcZ(18,19,e.remote_balance||0)," Sats"),t.xp6(2),t.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function ye(n,i){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,xe,20,24,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function Te(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ye,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(2);t.xp6(8),t.hij("",t.lcZ(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0)," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,9,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.lcZ(18,11,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0)," Sats"),t.xp6(2),t.s9C("value",null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0),t.xp6(4),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",o)}}function ve(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function be(n,i){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let we=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=b.DL8,this.faDumbbell=b.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Te,24,13,"div",0),t.YNc(1,ve,4,0,"ng-template",null,1,t.W1O),t.YNc(3,be,3,1,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(4);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,m.yH,C.bx,D.BN,K.gM,J.pW,V.d,z.$V,u.sg,v.yS,q.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function Ze(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()(),t.TgZ(20,"div",6),t._UZ(21,"h4",7)(22,"span",5),t.qZA()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Transactions"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Transactions"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Transactions"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()(),t.TgZ(42,"div",6),t._UZ(43,"h4",7)(44,"span",5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.day_fee_sum)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.week_fee_sum)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.month_fee_sum)," Sats"),t.xp6(10),t.Oqu(t.lcZ(29,12,null==e.fees?null:e.fees.daily_tx_count)),t.xp6(6),t.Oqu(t.lcZ(35,14,null==e.fees?null:e.fees.weekly_tx_count)),t.xp6(6),t.Oqu(t.lcZ(41,16,null==e.fees?null:e.fees.monthly_tx_count))}}function Ae(n,i){if(1&n&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Et=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const e=Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10),o=Math.pow(10,e-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.TTD],decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Ze,45,18,"div",0),t.YNc(1,Ae,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function Le(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()(),t.TgZ(23,"div")(24,"h4",4),t._uU(25,"Closing"),t.qZA(),t.TgZ(26,"div",5),t._UZ(27,"span",9),t._uU(28),t.ALo(29,"number"),t.qZA()()(),t.TgZ(30,"div",3)(31,"div")(32,"h4",4),t._uU(33,"Capacity"),t.qZA(),t.TgZ(34,"div",5),t._uU(35),t.ALo(36,"number"),t.qZA()(),t.TgZ(37,"div")(38,"h4",4),t._uU(39,"Capacity"),t.qZA(),t.TgZ(40,"div",5),t._uU(41),t.ALo(42,"number"),t.qZA()(),t.TgZ(43,"div")(44,"h4",4),t._uU(45,"Capacity"),t.qZA(),t.TgZ(46,"div",5),t._uU(47),t.ALo(48,"number"),t.qZA()(),t.TgZ(49,"div")(50,"h4",4),t._uU(51,"Capacity"),t.qZA(),t.TgZ(52,"div",5),t._uU(53),t.ALo(54,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,8,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,10,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,12,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.num_channels)||0)),t.xp6(7),t.Oqu(t.lcZ(29,14,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.num_channels)||0)),t.xp6(7),t.hij("",t.lcZ(36,16,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(42,18,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(48,20,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(54,22,(null==e.channelsStatus||null==e.channelsStatus.closing?null:e.channelsStatus.closing.capacity)||0)," Sats")}}function Se(n,i){if(1&n&&(t.TgZ(0,"div",10)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Ht=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,Le,55,24,"div",0),t.YNc(1,Se,3,1,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf"," "===o.errorMessage)("ngIfElse",a)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();var p=g(3075),Q=g(8966),st=g(7772),rt=g(9107),Y=g(5615),E=g(1125);function Fe(n,i){1&n&&t.GkF(0)}function ke(n,i){1&n&&t.GkF(0)}const qe=function(n){return{"h-5":n}};function Ne(n,i){if(1&n&&(t.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),t._uU(4),t.ALo(5,"number"),t.qZA()()(),t.YNc(6,ke,1,0,"ng-container",0),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(4);t.Q6J("expanded",e.panelExpanded)("ngClass",t.VKq(7,qe,!e.flgShowPanel)),t.xp6(4),t.AsE("Quote for ",e.termCaption," amount (",t.lcZ(5,5,e.quote.amount)," Sats)"),t.xp6(2),t.Q6J("ngTemplateOutlet",o)}}function Oe(n,i){if(1&n&&(t.TgZ(0,"div",19)(1,"h4",8),t._uU(2," Prepay Amount (Sats) "),t.TgZ(3,"mat-icon",20),t._uU(4,"info_outline"),t.qZA()(),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"number"),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu(t.lcZ(7,1,null==e.quote?null:e.quote.prepay_amt_sat))}}function Ue(n,i){1&n&&t._UZ(0,"mat-divider",13)}function Me(n,i){if(1&n&&(t.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),t._uU(3," Swap Server Node Pubkey "),t.TgZ(4,"mat-icon",22),t._uU(5,"info_outline"),t.qZA()(),t.TgZ(6,"span",10),t._uU(7),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(7),t.Oqu(null==e.quote?null:e.quote.swap_payment_dest)}}function Pe(n,i){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4," Swap Fee (Sats) "),t.TgZ(5,"mat-icon",9),t._uU(6,"info_outline"),t.qZA()(),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"number"),t.qZA()(),t.TgZ(10,"div",7)(11,"h4",8),t._uU(12),t.TgZ(13,"mat-icon",11),t._uU(14,"info_outline"),t.qZA()(),t.TgZ(15,"span",10),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.YNc(18,Oe,8,3,"div",12),t.qZA(),t._UZ(19,"mat-divider",13),t.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),t._uU(23," Max Off-chain Swap Routing Fee (Sats) "),t.TgZ(24,"mat-icon",15),t._uU(25,"info_outline"),t.qZA()(),t.TgZ(26,"span",10),t._uU(27),t.ALo(28,"number"),t.qZA()(),t.TgZ(29,"div",14)(30,"h4",8),t._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),t.TgZ(32,"mat-icon",16),t._uU(33,"info_outline"),t.qZA()(),t.TgZ(34,"span",10),t._uU(35,"36"),t.qZA()()(),t.YNc(36,Ue,1,0,"mat-divider",17),t.YNc(37,Me,8,1,"div",18),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"30":"50"),t.xp6(6),t.Oqu(t.lcZ(9,9,null==e.quote?null:e.quote.swap_fee_sat)),t.xp6(2),t.Q6J("fxFlex",null!=e.quote&&e.quote.prepay_amt_sat?"35":"50"),t.xp6(2),t.hij(" ",null!=e.quote&&e.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=e.quote&&e.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),t.xp6(4),t.Oqu(t.lcZ(17,11,null!=e.quote&&e.quote.htlc_sweep_fee_sat?e.quote.htlc_sweep_fee_sat:null!=e.quote&&e.quote.htlc_publish_fee_sat?e.quote.htlc_publish_fee_sat:0)),t.xp6(2),t.Q6J("ngIf",null==e.quote?null:e.quote.prepay_amt_sat),t.xp6(9),t.Oqu(t.lcZ(28,13,(null==e.quote?null:e.quote.amount)*((null!=e.quote&&e.quote.off_chain_swap_routing_fee_percentage?null==e.quote?null:e.quote.off_chain_swap_routing_fee_percentage:2)/100))),t.xp6(9),t.Q6J("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest)),t.xp6(1),t.Q6J("ngIf",""!==(null==e.quote?null:e.quote.swap_payment_dest))}}let Ie=(()=>{class n{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(e,o){if(1&e&&(t.YNc(0,Fe,1,0,"ng-container",0),t.YNc(1,Ne,7,9,"ng-template",null,1,t.W1O),t.YNc(3,Pe,38,15,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4);t.Q6J("ngTemplateOutlet",o.showPanel?a:l)}},directives:[u.tP,E.ib,m.yH,u.mk,L.oO,E.yz,E.yK,m.Wh,m.xw,$.Hw,K.gM,u.O5,V.d],pipes:[u.JJ],styles:[""]}),n})();var P=g(7531),W=g(3390),ct=g(2368),tt=g(9814);function Re(n,i){1&n&&t.GkF(0)}function De(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"span",4),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(null!=e.loopStatus&&e.loopStatus.error?null==e.loopStatus?null:e.loopStatus.error:"Unknown Error.")}}function Qe(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()()(),t._UZ(7,"mat-divider",8),t.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),t._uU(11,"HTLC Address"),t.qZA(),t.TgZ(12,"span",4),t._uU(13),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.loopStatus?null:e.loopStatus.id_bytes),t.xp6(7),t.Oqu(null==e.loopStatus?null:e.loopStatus.htlc_address)}}let Je=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(e,o){if(1&e&&(t.YNc(0,Re,1,0,"ng-container",0),t.YNc(1,De,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Qe,14,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4);t.Q6J("ngTemplateOutlet",null!=o.loopStatus&&o.loopStatus.error?a:l)}},directives:[u.tP,m.xw,m.yH,m.Wh,V.d],styles:[""]}),n})();var pt=g(113);function Ee(n,i){1&n&&t.GkF(0)}const ut=function(n,i){return{"small-svg":n,"large-svg":i}};function He(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),t._UZ(8,"circle",12)(9,"path",13),t.qZA(),t.TgZ(10,"g",14),t._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),t.qZA()()()()(),t.kcU(),t.TgZ(26,"div",30)(27,"mat-card-title"),t._uU(28,"Loop Out explained."),t.qZA()(),t.TgZ(29,"div",31)(30,"mat-card-subtitle",32),t._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ye(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",33)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),t._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),t.qZA(),t.TgZ(28,"g",56),t._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),t.qZA(),t._UZ(43,"path",71),t.qZA()(),t._UZ(44,"circle",72),t.qZA()()()(),t.kcU(),t.TgZ(45,"div",30)(46,"mat-card-title"),t._uU(47,"Step 1: Deciding to Loop Out"),t.qZA()(),t.TgZ(48,"div",31)(49,"mat-card-subtitle",32),t._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Be(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",73)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",74),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",75)(11,"g",76),t._UZ(12,"circle",77)(13,"path",78),t.TgZ(14,"g",79),t._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),t.qZA(),t.TgZ(18,"g",83),t._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),t.TgZ(29,"g",94)(30,"g",95),t._UZ(31,"g",96),t.qZA(),t._UZ(32,"g",97),t.qZA(),t._UZ(33,"path",98),t.qZA(),t.TgZ(34,"g",99)(35,"g",41)(36,"g",42),t._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),t.qZA(),t.TgZ(52,"g",56),t._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),t.qZA(),t._UZ(67,"path",111),t.qZA()()()()()(),t.kcU(),t.TgZ(68,"div",30)(69,"mat-card-title"),t._uU(70,"Step 2: Send lightning payment"),t.qZA()(),t.TgZ(71,"div",31)(72,"mat-card-subtitle",32),t._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function ze(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",112)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),t._UZ(9,"circle",12)(10,"path",117),t.qZA(),t.TgZ(11,"g",14),t._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),t.qZA()(),t.TgZ(27,"g",119),t._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),t.qZA(),t.TgZ(31,"g",121),t._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),t.TgZ(42,"g",94)(43,"g",95),t._UZ(44,"g",96),t.qZA(),t._UZ(45,"g",97),t.qZA(),t._UZ(46,"path",123),t.qZA()()()()(),t.kcU(),t.TgZ(47,"div",30)(48,"mat-card-title"),t._uU(49,"Step 3: Receive funds back"),t.qZA()(),t.TgZ(50,"div",31)(51,"mat-card-subtitle",32),t._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ge(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",124)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),t._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),t.qZA(),t.TgZ(28,"g",142)(29,"g",143)(30,"g",144),t._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),t.TgZ(34,"g",148),t._UZ(35,"path",149),t.qZA(),t._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),t.qZA(),t.TgZ(45,"g",159),t._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),t.qZA(),t._UZ(59,"path",173),t.qZA()()()()()(),t.kcU(),t.TgZ(60,"div",30)(61,"mat-card-title"),t._uU(62,"Done!"),t.qZA()(),t.TgZ(63,"div",31)(64,"mat-card-subtitle",32),t._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ut,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Ve=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(e,o){if(1&e&&(t.YNc(0,Ee,1,0,"ng-container",0),t.YNc(1,He,32,5,"ng-template",null,1,t.W1O),t.YNc(3,Ye,51,5,"ng-template",null,2,t.W1O),t.YNc(5,Be,74,5,"ng-template",null,3,t.W1O),t.YNc(7,ze,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Ge,66,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();function We(n,i){1&n&&t.GkF(0)}const mt=function(n,i){return{"small-svg":n,"large-svg":i}};function Xe(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),t._UZ(8,"circle",12)(9,"path",13),t.qZA(),t.TgZ(10,"g",14),t._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),t.qZA()()()()(),t.kcU(),t.TgZ(26,"div",30)(27,"mat-card-title"),t._uU(28,"Loop In explained."),t.qZA()(),t.TgZ(29,"div",31)(30,"mat-card-subtitle",32),t._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function je(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",33)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),t._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),t.qZA(),t.TgZ(28,"g",56)(29,"g",57)(30,"g",58),t._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),t.TgZ(34,"g",62),t._UZ(35,"path",63),t.qZA(),t._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),t.qZA(),t.TgZ(45,"g",73),t._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),t.qZA(),t._UZ(59,"path",87),t.qZA()()()()()(),t.kcU(),t.TgZ(60,"div",30)(61,"mat-card-title"),t._uU(62,"Step 1: Deciding to Loop In"),t.qZA()(),t.TgZ(63,"div",31)(64,"mat-card-subtitle",32),t._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ke(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",88)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",89),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),t._UZ(14,"circle",95)(15,"path",96),t.TgZ(16,"g",97),t._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),t.qZA(),t.TgZ(20,"g",101),t._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),t.TgZ(31,"g",112)(32,"g",113),t._UZ(33,"g",114),t.qZA(),t._UZ(34,"g",115),t.qZA()()(),t.TgZ(35,"g",116)(36,"g",40),t._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),t.qZA(),t.TgZ(53,"g",56)(54,"g",57)(55,"g",58),t._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),t.TgZ(59,"g",122),t._UZ(60,"path",63),t.qZA(),t._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),t.qZA(),t.TgZ(70,"g",73),t._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),t.qZA(),t._UZ(84,"path",139),t.qZA()()()(),t._UZ(85,"path",140)(86,"path",141),t.qZA()()()(),t.kcU(),t.TgZ(87,"div",30)(88,"mat-card-title"),t._uU(89,"Step 2: Send payment out"),t.qZA()(),t.TgZ(90,"div",31)(91,"mat-card-subtitle",32),t._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function $e(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",142)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),t._UZ(10,"circle",12)(11,"path",147),t.qZA(),t.TgZ(12,"g",14),t._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),t.qZA()(),t.TgZ(28,"g",149),t._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),t.qZA(),t.TgZ(32,"g",152),t._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),t.TgZ(43,"g",112)(44,"g",113),t._UZ(45,"g",114),t.qZA(),t._UZ(46,"g",115),t.qZA()()(),t._UZ(47,"path",153),t.qZA()()()(),t.kcU(),t.TgZ(48,"div",30)(49,"mat-card-title"),t._uU(50,"Step 3: Recieve Funds Off-chain"),t.qZA()(),t.TgZ(51,"div",31)(52,"mat-card-subtitle",32),t._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function tn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",154)(2,"desc"),t._uU(3,"Created with Sketch."),t.qZA(),t.TgZ(4,"defs")(5,"linearGradient",34),t._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),t.qZA()(),t.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),t._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),t.qZA(),t.TgZ(28,"g",172),t._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),t.qZA(),t._UZ(43,"path",187),t.qZA()(),t._UZ(44,"circle",188),t.qZA()()()(),t.kcU(),t.TgZ(45,"div",30)(46,"mat-card-title"),t._uU(47,"Done!"),t.qZA()(),t.TgZ(48,"div",31)(49,"mat-card-subtitle",32),t._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,mt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let en=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(e,o){if(1&e&&(t.YNc(0,We,1,0,"ng-container",0),t.YNc(1,Xe,32,5,"ng-template",null,1,t.W1O),t.YNc(3,je,66,5,"ng-template",null,2,t.W1O),t.YNc(5,Ke,93,5,"ng-template",null,3,t.W1O),t.YNc(7,$e,54,5,"ng-template",null,4,t.W1O),t.YNc(9,tn,51,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const nn=["stepper"];function on(n,i){if(1&n&&(t.TgZ(0,"div",48)(1,"p",49)(2,"strong"),t._uU(3,"Channel Peer:\xa0"),t.qZA(),t._uU(4),t.ALo(5,"titlecase"),t.qZA(),t.TgZ(6,"p",50)(7,"strong"),t._uU(8,"Channel ID:\xa0"),t.qZA(),t._uU(9),t.qZA(),t._UZ(10,"p",50),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,2,e.channel.remote_alias)),t.xp6(5),t.Oqu(e.channel.chan_id)}}function an(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function ln(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function sn(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,e.minQuote.amount),".")}}function rn(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,e.maxQuote.amount),".")}}function cn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirmation target is required."),t.qZA())}function pn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirmation target must be a positive number."),t.qZA())}function un(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Percentage is required."),t.qZA())}function mn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Percentage must be a positive number."),t.qZA())}function dn(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",50),t._UZ(1,"input",51),t.YNc(2,un,2,0,"mat-error",25),t.YNc(3,mn,2,0,"mat-error",25),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.routingFeePercent.errors?null:e.inputFormGroup.controls.routingFeePercent.errors.min)}}function hn(n,i){1&n&&(t.TgZ(0,"div",52)(1,"mat-slide-toggle",53),t._uU(2,"Fast"),t.qZA(),t.TgZ(3,"mat-icon",54),t._uU(4,"info_outline"),t.qZA()())}function _n(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.quoteFormLabel)}}function fn(n,i){1&n&&(t.TgZ(0,"p",55)(1,"mat-icon",56),t._uU(2,"close"),t.qZA(),t._uU(3,"Local balance amount is insufficient for swap."),t.qZA())}function gn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",57),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onValidateAmount()}),t._uU(1,"Next"),t.qZA()}}function Cn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",58),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onLoop()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij("Initiate ",e.loopDirectionCaption,"")}}function xn(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.addressFormLabel)}}function yn(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Tn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",16)(1,"form",17),t.YNc(2,xn,1,1,"ng-template",18),t.TgZ(3,"div",59)(4,"mat-radio-group",60),t.NdJ("change",function(a){return t.CHM(e),t.oxw(2).onAddressTypeChange(a)}),t.TgZ(5,"mat-radio-button",61),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",62),t._uU(8,"External Address"),t.qZA()(),t.TgZ(9,"mat-form-field",63),t._UZ(10,"input",64),t.YNc(11,yn,2,0,"mat-error",25),t.qZA()(),t.TgZ(12,"div",29)(13,"button",65),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onLoop()}),t._uU(14),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.addressFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.addressFormGroup),t.xp6(9),t.Q6J("required","external"===e.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==e.addressFormGroup.controls.address.errors?null:e.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",e.loopDirectionCaption,"")}}function vn(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.hij("",e.loopDirectionCaption," Status")}}function bn(n,i){if(1&n&&(t.TgZ(0,"mat-icon",66),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.loopStatus&&null!=e.loopStatus&&e.loopStatus.id_bytes?"check":"close")}}function wn(n,i){1&n&&t._UZ(0,"div")}function Zn(n,i){1&n&&t._UZ(0,"mat-progress-bar",67)}function An(n,i){if(1&n&&(t.TgZ(0,"h4",68),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.loopStatus&&e.loopStatus.error?e.loopDirectionCaption+" failed.":e.loopStatus&&e.loopStatus.id_bytes&&e.channel?e.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":e.loopDirectionCaption+" request placed successfully.")}}function Ln(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",69),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToLoop()}),t._uU(1,"Check Status"),t.qZA()}}function Sn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",70),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Fn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t._uU(5),t.qZA()(),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",11)(12,"div",12),t.YNc(13,on,11,4,"div",13),t.TgZ(14,"mat-vertical-stepper",14,15),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(16,"mat-step",16)(17,"form",17),t.YNc(18,an,1,1,"ng-template",18),t.TgZ(19,"div",19),t._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),t.qZA(),t.TgZ(22,"div",21)(23,"mat-form-field",22),t._UZ(24,"input",23),t.TgZ(25,"mat-hint"),t._uU(26),t.ALo(27,"number"),t.ALo(28,"number"),t.qZA(),t.TgZ(29,"span",24),t._uU(30,"Sats"),t.qZA(),t.YNc(31,ln,2,0,"mat-error",25),t.YNc(32,sn,3,3,"mat-error",25),t.YNc(33,rn,3,3,"mat-error",25),t.qZA(),t.TgZ(34,"mat-form-field",22),t._UZ(35,"input",26),t.YNc(36,cn,2,0,"mat-error",25),t.YNc(37,pn,2,0,"mat-error",25),t.qZA(),t.YNc(38,dn,4,3,"mat-form-field",27),t.qZA(),t.YNc(39,hn,5,0,"div",28),t.TgZ(40,"div",29)(41,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().onEstimateQuote()}),t._uU(42,"Estimate Quote"),t.qZA()()()(),t.TgZ(43,"mat-step",16)(44,"form",17),t.YNc(45,_n,1,1,"ng-template",18),t._UZ(46,"rtl-loop-quote",31),t.YNc(47,fn,4,0,"p",32),t.TgZ(48,"div",29),t.YNc(49,gn,2,0,"button",33),t.YNc(50,Cn,2,1,"button",34),t.qZA()()(),t.YNc(51,Tn,15,6,"mat-step",35),t.TgZ(52,"mat-step",36)(53,"form",17),t.YNc(54,vn,1,1,"ng-template",18),t.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),t._uU(60),t.YNc(61,bn,2,1,"mat-icon",40),t.qZA()()(),t.YNc(62,wn,1,0,"div",41),t.qZA(),t.YNc(63,Zn,1,0,"mat-progress-bar",42),t.qZA(),t.YNc(64,An,2,1,"h4",43),t.TgZ(65,"div",29),t.YNc(66,Ln,2,0,"button",44),t.YNc(67,Sn,2,0,"button",45),t.qZA()()()(),t.TgZ(68,"div",46)(69,"button",47),t._uU(70,"Close"),t.qZA()()()()()()}if(2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(e.channel?"Channel "+e.loopDirectionCaption:e.loopDirectionCaption),t.xp6(1),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("ngIf",e.channel),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(3),t.Q6J("quote",e.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),t.xp6(1),t.Q6J("quote",e.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),t.xp6(2),t.Q6J("fxFlex",e.direction===e.LoopTypeEnum.LOOP_OUT?"35":"48"),t.xp6(1),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(27,51,e.minQuote.amount),"-",t.lcZ(28,53,e.maxQuote.amount),""),t.xp6(5),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.max),t.xp6(1),t.Q6J("fxFlex",e.direction===e.LoopTypeEnum.LOOP_OUT?"30":"48"),t.xp6(1),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup.controls.sweepConfTarget.errors?null:e.inputFormGroup.controls.sweepConfTarget.errors.min),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(4),t.Q6J("stepControl",e.quoteFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.quoteFormGroup),t.xp6(2),t.Q6J("quote",e.quote)("showPanel",!1),t.xp6(1),t.Q6J("ngIf",e.inputFormGroup.controls.amount.value>e.localBalanceToCompare),t.xp6(2),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_IN),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!e.loopStatus),t.xp6(4),t.Oqu(e.loopStatus?e.loopStatus.id_bytes?e.loopDirectionCaption+" request details":e.loopDirectionCaption+" error details":"Waiting for "+e.loopDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",e.loopStatus),t.xp6(1),t.Q6J("ngIf",!e.loopStatus)("ngIfElse",o),t.xp6(1),t.Q6J("ngIf",!e.loopStatus),t.xp6(1),t.Q6J("ngIf",e.loopStatus),t.xp6(2),t.Q6J("ngIf",e.loopStatus&&e.loopStatus.id_bytes&&e.channel),t.xp6(1),t.Q6J("ngIf",e.loopStatus&&(e.loopStatus.error||!e.loopStatus.id_bytes)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function kn(n,i){if(1&n&&t._UZ(0,"rtl-loop-status",71),2&n){const e=t.oxw();t.Q6J("loopStatus",e.loopStatus)}}function qn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-loop-out-info-graphics",88),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}function Nn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-loop-in-info-graphics",88),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}const On=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function Un(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",89),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",90),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,On,o.stepNumber===e,o.stepNumber!==e))}}function Mn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",91),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function Pn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",92),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function In(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",93),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Rn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",94),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Dn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",95),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function Qn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",96),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Jn=function(){return[1,2,3,4,5]};function En(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",75)(6,"button",76),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",77),t.YNc(9,qn,1,2,"rtl-loop-out-info-graphics",78),t.YNc(10,Nn,1,2,"rtl-loop-in-info-graphics",78),t.qZA(),t.TgZ(11,"div",79),t.YNc(12,Un,2,4,"span",80),t.qZA(),t.TgZ(13,"div",81),t.YNc(14,Mn,2,0,"button",82),t.YNc(15,Pn,2,0,"button",83),t.YNc(16,In,2,0,"button",84),t.YNc(17,Rn,2,0,"button",85),t.YNc(18,Dn,2,0,"button",86),t.YNc(19,Qn,2,0,"button",87),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.LoopTypeEnum.LOOP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,Jn)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let xt=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I){this.dialogRef=e,this.data=o,this.store=a,this.loopService=l,this.formBuilder=r,this.decimalPipe=h,this.logger=f,this.router=x,this.commonService=I,this.faInfoCircle=b.sqG,this.LoopTypeEnum=s.$I,this.direction=s.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||s.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===s.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[p.kI.required,p.kI.min(this.minQuote.amount||0),p.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[p.kI.required,p.kI.min(1)]],routingFeePercent:[2,[p.kI.required,p.kI.min(0)]],fast:[!1,[p.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[p.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[6])).subscribe(e=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:e.lightningBalance&&e.lightningBalance.local?+e.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===s.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===s.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([p.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){var e;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===s.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===s.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,null===(e=this.stepper.selected)||void 0===e||e.stepControl.setErrors(null),this.stepper.next(),this.direction===s.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:o=>{this.loopStatus=o,this.loopService.listSwaps(),this.flgEditable=!0},error:o=>{this.loopStatus={error:o},this.flgEditable=!0,this.logger.error(o)}});else{const o=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),a="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",l=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,o,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),l,a).pipe((0,_.R)(this.unSubs[1])).subscribe({next:r=>{this.loopStatus=r,this.loopService.listSwaps(),this.flgEditable=!0},error:r=>{this.loopStatus={error:r},this.flgEditable=!0,this.logger.error(r)}})}}onEstimateQuote(){var e;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const o=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===s.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,o).pipe((0,_.R)(this.unSubs[2])).subscribe(a=>{this.quote=a,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,o).pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{this.quote=a,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),null===(e=this.stepper.selected)||void 0===e||e.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===s.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===s.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===s.$I.LOOP_OUT&&1!==e.selectedIndex&&e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(rt.W),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(N.mQ),t.Y36(v.F0),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(nn,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Fn,71,55,"div",0),t.YNc(1,kn,1,1,"ng-template",null,1,t.W1O),t.YNc(3,En,20,11,"div",2)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(3),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,Ie,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,ct.Rr,$.Hw,K.gM,tt.VQ,tt.U0,E.ib,E.yz,E.yK,J.pW,Q.ZT,Je,Ve,en,u.sg,u.mk,L.oO],pipes:[u.rS,u.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();var F=g(7861);function Hn(n,i){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.lcZ(4,1,e.remote_balance||0)," Sats")}}function Yn(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2).$implicit;return t.oxw(3).onLoopOut(a)}),t._uU(1,"Loop Out"),t.qZA()}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"mat-hint",22)(2,"strong",20),t._uU(3,"Capacity: "),t.qZA(),t._uU(4),t.ALo(5,"number"),t.qZA(),t.YNc(6,Yn,2,0,"button",23),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(4),t.hij("",t.lcZ(5,2,e.local_balance||0)," Sats"),t.xp6(2),t.Q6J("ngIf",o.showLoop)}}function zn(n,i){if(1&n&&t._UZ(0,"mat-progress-bar",25),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.s9C("value",o.totalLiquidity>0?(+e.remote_balance||0)/o.totalLiquidity*100:0)}}function Gn(n,i){if(1&n&&t._UZ(0,"mat-progress-bar",25),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.s9C("value",o.totalLiquidity>0?(+e.local_balance||0)/o.totalLiquidity*100:0)}}const Vn=function(){return["../connections/channels/open"]},Wn=function(n){return{filter:n}};function Xn(n,i){if(1&n&&(t.TgZ(0,"div",13)(1,"a",14),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",15),t.YNc(5,Hn,5,3,"mat-hint",16),t.YNc(6,Bn,7,4,"div",17),t.qZA(),t.YNc(7,zn,1,1,"mat-progress-bar",18),t.YNc(8,Gn,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.remote_alias||e.remote_pubkey),t.s9C("matTooltipDisabled",(e.remote_alias||e.remote_pubkey).length<26),t.Q6J("routerLink",t.DdM(14,Vn))("state",t.VKq(15,Wn,e.chan_id)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.remote_alias||e.remote_pubkey,0,24),"",(e.remote_alias||e.remote_pubkey).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===o.direction),t.xp6(1),t.Q6J("ngIf","Out"===o.direction),t.xp6(1),t.Q6J("ngIf","In"===o.direction),t.xp6(1),t.Q6J("ngIf","Out"===o.direction)}}function jn(n,i){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,Xn,9,17,"div",12),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const Kn=function(n,i,e){return{"mb-4":n,"mb-2":i,"mb-1":e}};function $n(n,i){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.YNc(10,jn,2,1,"div",10),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("ngClass",t.kEZ(6,Kn,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.xp6(5),t.hij("",t.lcZ(6,4,e.totalLiquidity)," Sats"),t.xp6(5),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",o)}}function to(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function eo(n,i){if(1&n&&(t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.YNc(2,to,2,0,"button",27),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function no(n,i){if(1&n&&(t.TgZ(0,"div",29)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let oo=(()=>{class n{constructor(e,o,a,l){this.router=e,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.showLoop=!(!(null==e?void 0:e.swapServerUrl)||""===e.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,F.qR)({payload:{minHeight:"56rem",data:{channel:e,minQuote:o[0],maxQuote:o[1],direction:s.$I.LOOP_OUT,component:xt}}}))})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(rt.W),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","85","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","15","fxLayoutAlign","end start","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","15","fxLayoutAlign","end start","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,o){if(1&e&&(t.YNc(0,$n,11,10,"div",0),t.YNc(1,eo,3,1,"ng-template",null,1,t.W1O),t.YNc(3,no,3,1,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(4);t.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,m.yH,u.mk,L.oO,C.bx,J.pW,V.d,z.$V,u.sg,v.yS,K.gM,q.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var R=g(3251),k=g(6087),Z=g(4847),c=g(2075),A=g(6523),et=g(6534),M=g(4107),G=g(508);function io(n,i){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function ao(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function lo(n,i){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,ao,2,1,"span",28),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let so=(()=>{class n{constructor(e,o,a,l,r,h){this.dialogRef=e,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=r,this.actions=h,this.faExclamationTriangle=b.eHv,this.selNode={},this.memo="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=s.IV,this.timeUnitEnum=s.Qk,this.timeUnits=s.LO,this.selTimeUnit=s.Qk.SECS,this.invoiceError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===e.payload.action&&(this.invoiceError=e.payload.message,e.payload.status===s.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===s.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==s.Qk.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,s.Qk.SECS):this.expiry:3600,this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:o,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=s.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,s.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onTimeUnitChange(e){this.expiry&&this.selTimeUnit!==e.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,e.value)),this.selTimeUnit=e.value}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(u.JJ),t.Y36(O.v),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-create-invoices"]],decls:38,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","50","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","24","fxLayoutAlign","start end"],["matInput","","placeholder","Expiry","type","number","tabindex","3","name","expiry",3,"ngModel","step","min","ngModelChange"],["tabindex","4","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","5","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","6",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(r){return o.memo=r}),t.qZA()(),t.TgZ(13,"mat-form-field",11)(14,"input",12),t.NdJ("ngModelChange",function(r){return o.invoiceValue=r})("keyup",function(){return o.onInvoiceValueChange()}),t.qZA(),t.TgZ(15,"span",13),t._uU(16," Sats "),t.qZA(),t.TgZ(17,"mat-hint"),t._uU(18),t.qZA()(),t.TgZ(19,"mat-form-field",14)(20,"input",15),t.NdJ("ngModelChange",function(r){return o.expiry=r}),t.qZA(),t.TgZ(21,"span",13),t._uU(22),t.ALo(23,"titlecase"),t.qZA()(),t.TgZ(24,"mat-form-field",14)(25,"mat-select",16),t.NdJ("selectionChange",function(r){return o.onTimeUnitChange(r)}),t.YNc(26,io,3,4,"mat-option",17),t.qZA()(),t.TgZ(27,"div",18)(28,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(r){return o.private=r}),t._uU(29,"Private Routing Hints"),t.qZA(),t.TgZ(30,"mat-icon",20),t._uU(31,"info_outline"),t.qZA()(),t.YNc(32,lo,3,2,"div",21),t.TgZ(33,"div",22)(34,"button",23),t.NdJ("click",function(){return o.resetData()}),t._uU(35,"Clear Field"),t.qZA(),t.TgZ(36,"button",24),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(10);return o.onAddInvoice(r)}),t._uU(37,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.memo),t.xp6(2),t.Q6J("ngModel",o.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(o.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",o.expiry)("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij(" ",t.lcZ(23,14,o.selTimeUnit)," "),t.xp6(3),t.Q6J("value",o.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",o.timeUnits),t.xp6(2),t.Q6J("ngModel",o.private),t.xp6(4),t.Q6J("ngIf",""!==o.invoiceError))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.JJ,p.On,p.wV,p.qQ,et.q,C.R9,C.bx,M.gD,u.sg,G.ey,ct.Rr,$.Hw,K.gM,u.O5,D.BN],pipes:[u.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var ro=g(8627);function co(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().memo=a}),t.qZA()(),t.TgZ(4,"mat-form-field",8)(5,"input",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().invoiceValue=a})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(6,"span",10),t._uU(7," Sats "),t.qZA(),t.TgZ(8,"mat-hint"),t._uU(9),t.qZA()(),t.TgZ(10,"div",11)(11,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(12,"Clear Field"),t.qZA(),t.TgZ(13,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(1);return t.oxw().onAddInvoice(a)}),t._uU(14,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.memo),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(e.invoiceValueHint)}}function po(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function uo(n,i){1&n&&t._UZ(0,"mat-progress-bar",46)}function mo(n,i){1&n&&(t.TgZ(0,"th",47),t._uU(1," Date Created "),t.qZA())}const yt=function(n){return{"mr-0":n}};function ho(n,i){if(1&n&&t._UZ(0,"span",53),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function _o(n,i){if(1&n&&t._UZ(0,"span",54),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function fo(n,i){if(1&n&&t._UZ(0,"span",55),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function go(n,i){if(1&n&&t._UZ(0,"span",56),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,yt,e.screenSize===e.screenSizeEnum.XS))}}function Co(n,i){if(1&n&&(t.TgZ(0,"td",48),t.YNc(1,ho,1,3,"span",49),t.YNc(2,_o,1,3,"span",50),t.YNc(3,fo,1,3,"span",51),t.YNc(4,go,1,3,"span",52),t._uU(5),t.ALo(6,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","OPEN"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","SETTLED"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","ACCEPTED"===(null==e?null:e.state)),t.xp6(1),t.Q6J("ngIf","CANCELED"===(null==e?null:e.state)),t.xp6(1),t.hij(" ",t.xi3(6,5,1e3*(null==e?null:e.creation_date),"dd/MMM/y HH:mm"),"")}}function xo(n,i){1&n&&(t.TgZ(0,"th",57),t._uU(1," Date Settled "),t.qZA())}function yo(n,i){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(0!=+(null==e?null:e.settle_date)?t.xi3(2,1,1e3*+(null==e?null:e.settle_date),"dd/MMM/y HH:mm"):"-")}}function To(n,i){1&n&&(t.TgZ(0,"th",47),t._uU(1," Memo "),t.qZA())}const vo=function(n){return{"max-width":n}};function bo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"div",59)(2,"span",60),t._uU(3),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,vo,o.screenSize===o.screenSizeEnum.XS?"10rem":"22rem")),t.xp6(2),t.Oqu(null==e?null:e.memo)}}function wo(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1," Amount (Sats) "),t.qZA())}function Zo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.value)," ")}}function Ao(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1," Amount Settled (Sats) "),t.qZA())}function Lo(n,i){if(1&n&&(t.TgZ(0,"td",48)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.amt_paid_sat)," ")}}function So(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",63)(1,"div",64)(2,"mat-select",65),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}const Fo=function(n){return{"pl-3":n}};function ko(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",66),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(l)}),t._uU(7,"Refresh"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Fo,e.screenSize!==e.screenSizeEnum.XS))}}function qo(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function No(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function Oo(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Uo(n,i){if(1&n&&(t.TgZ(0,"td",70),t.YNc(1,qo,2,0,"p",71),t.YNc(2,No,2,0,"p",71),t.YNc(3,Oo,2,1,"p",71),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Mo=function(n){return{"display-none":n}};function Po(n,i){if(1&n&&t._UZ(0,"tr",72),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Mo,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function Io(n,i){1&n&&t._UZ(0,"tr",73)}function Ro(n,i){1&n&&t._UZ(0,"tr",74)}const Do=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Qo=function(){return["no_invoice"]};function Jo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"div",18),t._UZ(3,"fa-icon",19),t.TgZ(4,"span",20),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"mat-form-field",21)(7,"input",22),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().selFilter=a}),t.qZA()()(),t.TgZ(8,"div",23),t.YNc(9,uo,1,0,"mat-progress-bar",24),t.TgZ(10,"table",25,26),t.ynx(12,27),t.YNc(13,mo,2,0,"th",28),t.YNc(14,Co,7,8,"td",29),t.BQk(),t.ynx(15,30),t.YNc(16,xo,2,0,"th",31),t.YNc(17,yo,3,4,"td",32),t.BQk(),t.ynx(18,33),t.YNc(19,To,2,0,"th",28),t.YNc(20,bo,4,4,"td",29),t.BQk(),t.ynx(21,34),t.YNc(22,wo,2,0,"th",35),t.YNc(23,Zo,4,3,"td",29),t.BQk(),t.ynx(24,36),t.YNc(25,Ao,2,0,"th",35),t.YNc(26,Lo,4,3,"td",29),t.BQk(),t.ynx(27,37),t.YNc(28,So,6,0,"th",38),t.YNc(29,ko,8,3,"td",39),t.BQk(),t.ynx(30,40),t.YNc(31,Uo,4,3,"td",41),t.BQk(),t.YNc(32,Po,1,3,"tr",42),t.YNc(33,Io,1,0,"tr",43),t.YNc(34,Ro,1,0,"tr",44),t.qZA(),t.TgZ(35,"mat-paginator",45),t.NdJ("page",function(a){return t.CHM(e),t.oxw().onPageChange(a)}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(13,Do,""!==e.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(15,Qo)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("length",e.totalInvoices)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Yt=(()=>{class n{constructor(e,o,a,l,r,h){this.logger=e,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=r,this.actions=h,this.calledFrom="transactions",this.faHistory=b.qO$,this.selNode={},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.information={},this.flgSticky=!1,this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","value","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","value","amt_paid_sat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","settle_date","memo","value","actions"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","settle_date","memo","value","amt_paid_sat","actions"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.Ef).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=e.listInvoices.total_invoices||0,this.firstOffset=+(e.listInvoices.first_index_offset||-1),this.lastOffset=+(e.listInvoices.last_index_offset||-1),this.invoicesData=e.listInvoices.invoices||[],this.invoicesData.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoicesData),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND||e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.SET_LOOKUP_LND&&this.invoicesData.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(e){const o=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.ADD_INVOICE,memo:this.memo,invoiceValue:this.invoiceValue,private:this.private,expiry:o,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,F.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:ro.v}}}))}onRefreshInvoice(e){var o,a;e&&e.r_hash&&this.store.dispatch((0,A.n7)({payload:{openSnackBar:!0,paymentHash:null===(a=null===(o=Buffer.from(e.r_hash.trim(),"hex").toString("base64"))||void 0===o?void 0:o.replace(/\+/g,"-"))||void 0===a?void 0:a.replace(/[/]/g,"_")}}))}updateInvoicesData(e){var o;this.invoicesData=null===(o=this.invoicesData)||void 0===o?void 0:o.map(a=>a.r_hash===e.r_hash?e:a)}loadInvoicesTable(e){this.invoices=new c.by(e?[...e]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.invoices.filterPredicate=(o,a)=>{var l,r;return((o.creation_date?null===(l=this.datePipe.transform(new Date(1e3*o.creation_date),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+(o.settle_date?null===(r=this.datePipe.transform(new Date(1e3*o.settle_date),"dd/MMM/YYYY HH:mm"))||void 0===r?void 0:r.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onPageChange(e){let o=!0,a=this.lastOffset;this.pageSize=e.pageSize,0===e.pageIndex?(o=!0,a=0):e.previousPageIndex&&e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(o=!0,a=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(o=!1,a=0),this.store.dispatch((0,A.WM)({payload:{num_max_invoices:e.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:e=>{this.invoiceValueHint="= "+this.decimalPipe.transform(e.OTHER,s.Xz.OTHER)+" "+e.symbol},error:e=>{this.invoiceValueHint="Conversion Error: "+e}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,F.qR)({payload:{data:{pageSize:this.pageSize,component:so}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(u.JJ),t.Y36(O.v),t.Y36(u.uU),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-invoices"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","end start"],["matInput","","placeholder","Memo","tabindex","1","name","memo",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","tabindex","6","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","settle_date"],["mat-header-cell","","mat-sort-header","","class","pl-4",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","memo"],["matColumnDef","value"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,co,15,5,"form",1),t.YNc(2,po,3,0,"div",2),t.YNc(3,Jo,36,16,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,p.JJ,p.On,p.wV,p.qQ,et.q,C.R9,C.bx,q.lW,D.BN,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-memo[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-memo[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();var X=g(5698),nt=g(8104),at=g(1079);const Eo=["paymentReq"];function Ho(n,i){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Yo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Bo(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function zo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Go(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",29,30),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().paymentAmount=a})("change",function(a){return t.CHM(e),t.oxw().onAmountChange(a)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,zo,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function Vo(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",null==e?null:e.name," ")}}function Wo(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.selFeeLimitType?null:e.selFeeLimitType.placeholder," is required.")}}function Xo(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu((null==e?null:e.remote_alias)||(null==e?null:e.chan_id))}}function jo(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Channel not found in the list."),t.qZA())}function Ko(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function $o(n,i){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.YNc(2,Ko,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let ti=(()=>{class n{constructor(e,o,a,l,r,h,f){this.dialogRef=e,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=r,this.actions=h,this.dataService=f,this.faExclamationTriangle=b.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new p.NI,this.feeLimit=null,this.selFeeLimitType=s.Vc[0],this.feeLimitTypes=s.Vc,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{var l;this.activeChannels=a.channels&&a.channels.length?null===(l=a.channels)||void 0===l?void 0:l.filter(r=>r.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(a=>a.type===s.uR.UPDATE_API_CALL_STATUS_LND||a.type===s.uR.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===s.uR.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===s.uR.UPDATE_API_CALL_STATUS_LND&&a.payload.status===s.Bn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let e="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(e=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",eo?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){var e;return this.activeChannels&&this.activeChannels.length?null===(e=this.activeChannels)||void 0===e?void 0:e.filter(o=>0===(o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(o.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}onSelectedChannelChanged(){var e;if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const o=this.activeChannels&&this.activeChannels.length?null===(e=this.activeChannels)||void 0===e?void 0:e.filter(a=>{const l=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"";return l.length===this.selectedChannelCtrl.value.length&&0===l.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];o&&o.length>0?(this.selectedChannelCtrl.setValue(o[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){var e;if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.zeroAmtInvoice=!1,this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}}))):(this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=(null===(e=this.paymentAmount)||void 0===e?void 0:e.toString())||"",this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:this.paymentAmount||0,outgoingChannel:this.selectedChannelCtrl.value,feeLimitType:this.selFeeLimitType.id,feeLimit:this.feeLimit,fromDialog:!0}})))}onAmountChange(e){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,X.q)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"BTC",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats ("+a.symbol+" "+this.decimalPipe.transform(a.OTHER?a.OTHER:0,s.Xz.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHint="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"))},error:o=>{this.logger.error(o),this.paymentDecodedHint="ERROR: "+o.message,this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(e,o){if(e&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=s.Vc[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(S.yh),t.Y36(N.mQ),t.Y36(O.v),t.Y36(u.JJ),t.Y36(j.eX),t.Y36(nt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(e,o){if(1&e&&t.Gf(Eo,5),2&e){let a;t.iGM(a=t.CRH())&&(o.paymentReq=a.first)}},decls:43,vars:21,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["sendPaymentForm","ngForm"],["autoFocus","","matInput","","placeholder","Payment Request","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","5","Placeholder","Fee Limits",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","26"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModel","placeholder","step","min","disabled","ngModelChange"],["fLmt","ngModel"],["fxFlex","40","fxLayoutAlign","start end"],["type","text","placeholder","First Outgoing Channel","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(l){return o.onPaymentRequestEntry(l)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,Ho,2,1,"mat-hint",11),t.YNc(15,Yo,2,0,"mat-error",11),t.YNc(16,Bo,2,1,"mat-error",11),t.qZA(),t.YNc(17,Go,6,2,"mat-form-field",12),t.TgZ(18,"mat-expansion-panel",13),t.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0,!1)})("opened",function(){return o.onAdvancedPanelToggle(!1,!1)}),t.TgZ(19,"mat-expansion-panel-header")(20,"mat-panel-title")(21,"span"),t._uU(22),t.qZA()()(),t.TgZ(23,"div",14)(24,"mat-form-field",15)(25,"mat-select",16),t.NdJ("valueChange",function(l){return o.selFeeLimitType=l}),t.YNc(26,Vo,2,2,"mat-option",17),t.qZA()(),t.TgZ(27,"mat-form-field",18)(28,"input",19,20),t.NdJ("ngModelChange",function(l){return o.feeLimit=l}),t.qZA(),t.YNc(30,Wo,2,1,"mat-error",11),t.qZA(),t.TgZ(31,"mat-form-field",21),t._UZ(32,"input",22),t.TgZ(33,"mat-autocomplete",23,24),t.NdJ("optionSelected",function(){return o.onSelectedChannelChanged()}),t.YNc(35,Xo,2,2,"mat-option",17),t.qZA(),t.YNc(36,jo,2,0,"mat-error",11),t.qZA()()(),t.YNc(37,$o,3,2,"div",25),t.TgZ(38,"div",26)(39,"button",27),t.NdJ("click",function(){return o.resetData()}),t._uU(40,"Clear Fields"),t.qZA(),t.TgZ(41,"button",28),t.NdJ("click",function(){return o.onSendPayment()}),t._uU(42,"Send Payment"),t.qZA()()()()()()),2&e){const a=t.MAs(13),l=t.MAs(34);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.paymentRequest),t.xp6(2),t.Q6J("ngIf",o.paymentRequest&&""!==o.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!o.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==a.errors?null:a.errors.decodeError),t.xp6(1),t.Q6J("ngIf",o.zeroAmtInvoice),t.xp6(5),t.Oqu(o.advancedTitle),t.xp6(3),t.Q6J("value",o.selFeeLimitType),t.xp6(1),t.Q6J("ngForOf",o.feeLimitTypes),t.xp6(2),t.Q6J("ngModel",o.feeLimit)("placeholder",null==o.selFeeLimitType?null:o.selFeeLimitType.placeholder)("step",1)("min",0)("disabled",o.selFeeLimitType===o.feeLimitTypes[0]),t.xp6(2),t.Q6J("ngIf",o.selFeeLimitType!==o.feeLimitTypes[0]&&!o.feeLimit),t.xp6(2),t.Q6J("formControl",o.selectedChannelCtrl)("matAutocomplete",l),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",o.filteredMinAmtActvChannels),t.xp6(1),t.Q6J("ngIf",null==o.selectedChannelCtrl.errors?null:o.selectedChannelCtrl.errors.notfound),t.xp6(1),t.Q6J("ngIf",""!==o.paymentError)}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.bx,C.TO,E.ib,E.yz,E.yK,M.gD,u.sg,G.ey,p.wV,p.qQ,et.q,at.ZL,p.oH,at.XC,D.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var dt=g(3093),ot=g(711);const ei=["sendPaymentForm"];function ni(n,i){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function oi(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function ii(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().onPaymentRequestEntry(a)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,ni,2,1,"mat-hint",9),t.YNc(6,oi,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function ai(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function li(n,i){1&n&&t._UZ(0,"mat-progress-bar",52)}function si(n,i){1&n&&(t.TgZ(0,"th",53),t._uU(1,"Creation Date"),t.qZA())}const lt=function(n){return{"mr-0":n}};function ri(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function ci(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function pi(n,i){if(1&n&&(t.TgZ(0,"td",54),t.YNc(1,ri,1,3,"span",55),t.YNc(2,ci,1,3,"span",56),t._uU(3),t.ALo(4,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","SUCCEEDED"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==(null==e?null:e.status)),t.xp6(1),t.hij(" ",t.xi3(4,3,1e3*(null==e?null:e.creation_date),"dd/MMM/y HH:mm")," ")}}function ui(n,i){1&n&&(t.TgZ(0,"th",53),t._uU(1,"Payment Hash"),t.qZA())}const Bt=function(n){return{"max-width":n}};function mi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",59)(2,"span",60),t._uU(3),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.payment_hash)}}function di(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Fee (Sats)"),t.qZA())}function hi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.fee))}}function _i(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Value (Sats)"),t.qZA())}function fi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.value))}}function gi(n,i){1&n&&(t.TgZ(0,"th",61),t._uU(1,"#Hops"),t.qZA())}function Ci(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",62),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu((null==e||null==e.htlcs[0]||null==e.htlcs[0].route||null==e.htlcs[0].route.hops?null:e.htlcs[0].route.hops.length)||0)}}function xi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",63)(1,"div",64)(2,"mat-select",65),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",66),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function yi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",67)(1,"button",68),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Ti(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function vi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function bi(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function wi(n,i){if(1&n&&(t.TgZ(0,"td",69),t.YNc(1,Ti,2,0,"p",9),t.YNc(2,vi,2,0,"p",9),t.YNc(3,bi,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Zi(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Ai(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Li(n,i){if(1&n&&t._UZ(0,"span",57),2&n){const e=t.oxw(5);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Si(n,i){if(1&n&&t._UZ(0,"span",58),2&n){const e=t.oxw(5);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Fi(n,i){if(1&n&&(t.TgZ(0,"span",72),t.YNc(1,Li,1,3,"span",55),t.YNc(2,Si,1,3,"span",56),t._uU(3),t.ALo(4,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf","SUCCEEDED"===e.status),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==e.status),t.xp6(1),t.hij(" ",t.xi3(4,3,1e3*e.attempt_time,"dd/MMM/y HH:mm")," ")}}function ki(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Fi,5,6,"span",71),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function qi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",70),t.YNc(2,Zi,1,3,"span",55),t.YNc(3,Ai,1,3,"span",56),t._uU(4),t.qZA(),t.YNc(5,ki,2,1,"ng-container",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngIf","SUCCEEDED"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","SUCCEEDED"!==(null==e?null:e.status)),t.xp6(1),t.hij(" Total Attempts: ",null==e||null==e.htlcs?null:e.htlcs.length," "),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ni(n,i){if(1&n&&(t.TgZ(0,"span",70),t._uU(1),t.qZA()),2&n){const e=i.index;t.xp6(1),t.hij(" HTLC ",e+1," ")}}function Oi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ni,2,1,"span",73),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Ui(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",59)(2,"span",60),t._uU(3),t.qZA()(),t.YNc(4,Oi,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,Bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.payment_hash),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Mi(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e.route?null:e.route.total_fees,"1.0-0")," ")}}function Pi(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Mi,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Pi,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.fee,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ri(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e.route?null:e.route.total_amt,"1.0-0")," ")}}function Di(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ri,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Qi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Di,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.value,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ji(n,i){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,(null==e.route||null==e.route.hops?null:e.route.hops.length)||0,"1.0-0")," ")}}function Ei(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ji,3,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function Hi(n,i){if(1&n&&(t.TgZ(0,"td",54)(1,"span",74),t._uU(2,"-"),t.qZA(),t.YNc(3,Ei,2,1,"span",9),t.qZA()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Yi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",62)(1,"button",79),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2).$implicit;return t.oxw(2).onHTLCClick(l,r)}),t._uU(2),t.qZA()()}if(2&n){const e=i.index;t.xp6(2),t.hij("View ",e+1,"")}}function Bi(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Yi,3,1,"div",78),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.htlcs)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",76)(1,"span",62)(2,"button",77),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return l.is_expanded=!(null!=l&&l.is_expanded)}),t._uU(3),t.qZA()(),t.YNc(4,Bi,2,1,"div",9),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(3),t.Oqu(null!=e&&e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Gi(n,i){1&n&&t._UZ(0,"tr",80)}const Vi=function(n){return{"display-none":n}};function Wi(n,i){if(1&n&&t._UZ(0,"tr",81),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Vi,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Xi(n,i){1&n&&t._UZ(0,"tr",82)}function ji(n,i){1&n&&t._UZ(0,"tr",80)}const Ki=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},$i=function(){return["no_payment"]};function ta(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15)(1,"div",16)(2,"div",17),t._UZ(3,"fa-icon",18),t.TgZ(4,"span",19),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"mat-form-field",20)(7,"input",21),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().selFilter=a}),t.qZA()()(),t.TgZ(8,"div",22)(9,"div",23),t.YNc(10,li,1,0,"mat-progress-bar",24),t.TgZ(11,"table",25,26),t.ynx(13,27),t.YNc(14,si,2,0,"th",28),t.YNc(15,pi,5,6,"td",29),t.BQk(),t.ynx(16,30),t.YNc(17,ui,2,0,"th",28),t.YNc(18,mi,4,4,"td",29),t.BQk(),t.ynx(19,31),t.YNc(20,di,2,0,"th",32),t.YNc(21,hi,4,3,"td",29),t.BQk(),t.ynx(22,33),t.YNc(23,_i,2,0,"th",32),t.YNc(24,fi,4,3,"td",29),t.BQk(),t.ynx(25,34),t.YNc(26,gi,2,0,"th",32),t.YNc(27,Ci,3,1,"td",29),t.BQk(),t.ynx(28,35),t.YNc(29,xi,6,0,"th",36),t.YNc(30,yi,3,0,"td",37),t.BQk(),t.ynx(31,38),t.YNc(32,wi,4,3,"td",39),t.BQk(),t.ynx(33,40),t.YNc(34,qi,6,4,"td",29),t.BQk(),t.ynx(35,41),t.YNc(36,Ui,5,5,"td",29),t.BQk(),t.ynx(37,42),t.YNc(38,Ii,5,5,"td",29),t.BQk(),t.ynx(39,43),t.YNc(40,Qi,5,5,"td",29),t.BQk(),t.ynx(41,44),t.YNc(42,Hi,4,1,"td",29),t.BQk(),t.ynx(43,45),t.YNc(44,zi,5,2,"td",46),t.BQk(),t.YNc(45,Gi,1,0,"tr",47),t.YNc(46,Wi,1,3,"tr",48),t.YNc(47,Xi,1,0,"tr",49),t.YNc(48,ji,1,0,"tr",50),t.qZA(),t.TgZ(49,"mat-paginator",51),t.NdJ("page",function(a){return t.CHM(e),t.oxw().onPageChange(a)}),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(4),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(15,Ki,""!==e.errorMessage)),t.xp6(34),t.Q6J("matRowDefColumns",e.htlcColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(17,$i)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("length",e.totalPayments)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let zt=(()=>{class n{constructor(e,o,a,l,r,h,f,x){this.logger=e,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=r,this.lndEffects=h,this.decimalPipe=f,this.datePipe=x,this.calledFrom="transactions",this.faHistory=b.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.peers=[],this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","actions"],this.htlcColumns=["groupTotal","groupFee","groupAction"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["creation_date","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupFee","groupValue","groupHops","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["creation_date","payment_hash","fee","value","hops","actions"],this.htlcColumns=["groupTotal","groupHash","groupFee","groupValue","groupHops","groupAction"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.peers=e.peers}),this.store.select(T.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(e.listPayments.first_index_offset||-1),this.lastOffset=+(e.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,X.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:s.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:s.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,X.q)(1)).subscribe(o=>{o&&(this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:s.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:s.Gi.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:s.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,X.q)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,A.oV)({payload:{uiMessage:s.m6.SEND_PAYMENT,paymentReq:this.paymentRequest,paymentAmount:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,F.qR)({payload:{data:{component:ti}}}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,X.q)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,s.NT.SATS,s.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats ("+a.symbol+this.decimalPipe.transform(a.OTHER?a.OTHER:0,s.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}onPageChange(e){let o=!0,a=this.lastOffset;this.pageSize=e.pageSize,0===e.pageIndex?(o=!0,a=0):e.pageIndexe.previousPageIndex&&e.length>(e.pageIndex+1)*e.pageSize?(o=!0,a=this.firstOffset):e.length<=(e.pageIndex+1)*e.pageSize&&(o=!1,a=0);const l=e.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(e,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(e){const o=this;return null==e?void 0:e.reduce((a,l)=>{const r=o.peers.find(h=>h.pub_key===l.pub_key);return r&&r.alias?a.push("
Channel: "+r.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(l.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(l.pub_key||"",!1).pipe((0,_.R)(o.unSubs[6])).subscribe(h=>{var f;a.push("
Channel: "+(h.node&&h.node.alias?h.node.alias.padEnd(20):(null===(f=l.pub_key)||void 0===f?void 0:f.substring(0,17))+"...")+"			Amount (Sats): "+o.decimalPipe.transform(l.amt_to_forward)+"
")}),a},[])}onHTLCClick(e,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,X.q)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(e,o,a)},0)},error:a=>{this.showHTLCView(e,o)}}):this.showHTLCView(e,o)}showHTLCView(e,o,a){var l,r,h,f;const x=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:s.Gi.STRING}],[{key:"preimage",value:e.preimage,title:"Preimage",width:100,type:s.Gi.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:s.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:33,type:s.Gi.STRING},{key:"attempt_time_ns",value:+(e.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:s.Gi.DATE_TIME},{key:"resolve_time_ns",value:+(e.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:s.Gi.DATE_TIME}],[{key:"total_amt",value:null===(l=e.route)||void 0===l?void 0:l.total_amt,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER},{key:"total_fees",value:null===(r=e.route)||void 0===r?void 0:r.total_fees,title:"Fee (Sats)",width:33,type:s.Gi.NUMBER},{key:"total_time_lock",value:null===(h=e.route)||void 0===h?void 0:h.total_time_lock,title:"Total Time Lock",width:34,type:s.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails((null===(f=e.route)||void 0===f?void 0:f.hops)||[]),title:"Hops",width:100,type:s.Gi.ARRAY}]];a&&a.description&&""!==a.description&&x.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:s.Gi.STRING}]),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"HTLC Information",message:x,scrollable:e.route&&e.route.hops&&e.route.hops.length>1}}}))}onPaymentClick(e){var o;if(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>0){const a=null===(o=e.htlcs[0].route.hops)||void 0===o?void 0:o.reduce((l,r)=>r.pub_key&&""===l?r.pub_key:l+","+r.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,_.R)(this.unSubs[7])).subscribe(l=>{this.showPaymentView(e,null==l?void 0:l.reduce((r,h)=>""===r?h:r+"\n"+h,""))})}else this.showPaymentView(e,"")}showPaymentView(e,o){const a=[[{key:"payment_hash",value:e.payment_hash,title:"Payment Hash",width:100,type:s.Gi.STRING}],[{key:"payment_preimage",value:e.payment_preimage,title:"Payment Preimage",width:100,type:s.Gi.STRING}],[{key:"payment_request",value:e.payment_request,title:"Payment Request",width:100,type:s.Gi.STRING}],[{key:"status",value:e.status,title:"Status",width:50,type:s.Gi.STRING},{key:"creation_date",value:e.creation_date,title:"Creation Date",width:50,type:s.Gi.DATE_TIME}],[{key:"value_msat",value:e.value_msat,title:"Value (mSats)",width:50,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:50,type:s.Gi.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:s.Gi.STRING}]];e.payment_request&&""!==e.payment_request.trim()?this.dataService.decodePayment(e.payment_request,!1).pipe((0,X.q)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:s.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(e.htlcs&&e.htlcs[0]&&e.htlcs[0].route&&e.htlcs[0].route.hops&&e.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Payment Information",message:e,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(e){this.payments=new c.by(e?[...e]:[]),this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(o,a)=>{var l;return((o.creation_date?null===(l=this.datePipe.transform(new Date(1e3*o.creation_date),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),o=null==e?void 0:e.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,_.R)(this.unSubs[8])).subscribe(a=>{let l=0;a.forEach((h,f)=>{if(h){for(;e[f+l].payment_hash!==h.payment_hash;)l+=1;e[f+l].description=h.description}});const r=null==e?void 0:e.reduce((h,f)=>h.concat(f),[]);this.commonService.downloadFile(r,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(nt.D),t.Y36(S.yh),t.Y36(dt.V),t.Y36(ot.l),t.Y36(u.JJ),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(e,o){if(1&e&&(t.Gf(ei,5),t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,ii,12,3,"form",1),t.YNc(2,ai,3,0,"div",2),t.YNc(3,ta,50,18,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===o.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,p.Q7,z.$V,p.JJ,p.On,C.bx,C.TO,q.lW,D.BN,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,u.sg,c.nj,c.Gk,c.Ke,c.Q2,c.as,c.XQ,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function ea(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function na(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw().$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function oa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function ia(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function aa(n,i){if(1&n&&t._UZ(0,"rtl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function la(n,i){if(1&n&&t._UZ(0,"rtl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function sa(n,i){if(1&n&&t._UZ(0,"rtl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[3])}}function ra(n,i){if(1&n&&t._UZ(0,"rtl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function ca(n,i){if(1&n&&t._UZ(0,"rtl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function pa(n,i){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Gt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function ua(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,ea,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,na,2,1,"button",15),t.YNc(13,oa,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,ia,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,aa,1,2,"rtl-node-info",20),t.YNc(18,la,1,2,"rtl-balances-info",21),t.YNc(19,sa,1,4,"rtl-channel-capacity-info",22),t.YNc(20,ra,1,2,"rtl-fee-info",23),t.YNc(21,ca,1,2,"rtl-channel-status-info",24),t.YNc(22,pa,2,0,"h3",25),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","node"===e.id||"balance"===e.id?70:"fee"===e.id||"status"===e.id?78:90),t.Q6J("ngClass",t.VKq(16,Gt,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.ERROR)||"capacity"===e.id&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.ERROR))),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.INITIATED)||"capacity"===e.id&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.INITIATED)),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function ma(n,i){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ua,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function da(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function ha(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function _a(n,i){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,da,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,ha,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function fa(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function ga(n,i){if(1&n&&t._UZ(0,"rtl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function Ca(n,i){if(1&n&&t._UZ(0,"rtl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[2])}}function xa(n,i){if(1&n&&t._UZ(0,"rtl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[3])}}function ya(n,i){if(1&n&&t._UZ(0,"rtl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[3])}}function Ta(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const l=t.CHM(e).index,r=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(r.links[l])}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function va(n,i){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,52),t.YNc(5,Ta,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),o=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",o.goToOptions)}}function ba(n,i){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-lightning-payments",48),t.qZA(),t.TgZ(6,"mat-tab",50),t.YNc(7,va,6,2,"ng-template",51),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function wa(n,i){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Za=function(n){return{"p-0":n}};function Aa(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",35),t.YNc(2,_a,11,4,"mat-card-header",36),t.TgZ(3,"mat-card-content",37),t.YNc(4,fa,1,0,"mat-progress-bar",18),t.TgZ(5,"div",38),t.YNc(6,ga,1,1,"rtl-node-info",39),t.YNc(7,Ca,1,2,"rtl-balances-info",21),t.YNc(8,xa,1,4,"rtl-channel-liquidity-info",40),t.YNc(9,ya,1,4,"rtl-channel-liquidity-info",40),t.YNc(10,ba,8,3,"span",41),t.YNc(11,wa,2,0,"h3",25),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,Za,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,Gt,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusBlockchainBalance.status===o.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function La(n,i){if(1&n&&(t.TgZ(0,"div",3),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",34),t.YNc(5,Aa,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let Sa=(()=>{class n{constructor(e,o,a,l,r){switch(this.logger=e,this.store=o,this.actions=a,this.commonService=l,this.router=r,this.faSmile=Dt.ctA,this.faFrown=Dt.KfU,this.faAngleDoubleDown=b.Sbq,this.faAngleDoubleUp=b.Vfw,this.faChartPie=b.OS1,this.faBolt=b.BDt,this.faServer=b.xf3,this.faNetworkWired=b.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=s.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=s.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case s.cu.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case s.cu.SM:case s.cu.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(T.bx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===s.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=e.nodeSettings,this.information=e.information}),this.store.select(T.JG).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===s.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=e.apiCallStatus,this.apiCallStatusBlockchainBalance.status===s.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=e.blockchainBalance.total_balance&&+e.blockchainBalance.total_balance>=0?+e.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[4]="",this.apiCallStatusPendingChannels=e.apiCallStatus,this.apiCallStatusPendingChannels.status===s.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:null===(o=e.pendingChannelsSummary.open)||void 0===o?void 0:o.num_channels,capacity:null===(a=e.pendingChannelsSummary.open)||void 0===a?void 0:a.limbo_balance},this.channelsStatus.closing={num_channels:((null===(l=e.pendingChannelsSummary.closing)||void 0===l?void 0:l.num_channels)||0)+((null===(r=e.pendingChannelsSummary.force_closing)||void 0===r?void 0:r.num_channels)||0)+((null===(h=e.pendingChannelsSummary.waiting_close)||void 0===h?void 0:h.num_channels)||0),capacity:e.pendingChannelsSummary.total_limbo_balance}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[3]="",this.apiCallStatusChannels=e.apiCallStatus,this.apiCallStatusChannels.status===s.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const f=e.lightningBalance&&e.lightningBalance.local?+e.lightningBalance.local:0,x=e.lightningBalance&&e.lightningBalance.remote?+e.lightningBalance.remote:0;this.channelBalances={localBalance:f,remoteBalance:x,balancedness:+(1-Math.abs((f-x)/(f+x))).toFixed(3)},this.balances.lightning=e.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=(null===(o=e.channelsSummary.active)||void 0===o?void 0:o.num_channels)||0,this.inactiveChannels=(null===(a=e.channelsSummary.inactive)||void 0===a?void 0:a.num_channels)||0,this.channelsStatus.active=e.channelsSummary.active,this.channelsStatus.inactive=e.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=null===(l=e.channels)||void 0===l?void 0:l.filter(w=>!0===w.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(r=this.allChannels)||void 0===r?void 0:r.filter(w=>w.remote_balance&&w.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(h=this.allChannels)||void 0===h?void 0:h.filter(w=>w.local_balance&&w.local_balance>0),"local_balance"))),this.allChannels.forEach(w=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(w.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(w.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[5]),(0,H.h)(e=>e.type===s.uR.FETCH_FEES_LND||e.type===s.uR.SET_FEES_LND)).subscribe(e=>{e.type===s.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),e.type===s.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(e){"inactive"===e?this.router.navigateByUrl("/lnd/connections",{state:{filter:e}}):this.router.navigateByUrl("/lnd/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((e,o)=>{const a=+(e.local_balance||0)+ +(e.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(O.v),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",1,"w-100","dashboard-tabs-group"],["label","Receive"],[3,"calledFrom"],["label","Pay"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,o){if(1&e&&(t.YNc(0,ma,7,4,"div",0),t.YNc(1,La,6,4,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",(null==o.selNode?null:o.selNode.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",a)}},directives:[u.O5,m.xw,m.Wh,D.BN,Ct.Il,u.sg,Ct.DX,m.yH,y.a8,y.dk,y.n5,q.lW,wt.p6,$.Hw,wt.VK,wt.OP,y.dn,u.mk,L.oO,J.pW,u.RF,u.n9,Jt,fe,we,Et,Ht,u.ED,oo,z.$V,R.SP,R.uX,Yt,zt,R.uD],styles:[""]}),n})();var Zt=g(1203),At=g(7544);function Fa(n,i){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ka(n,i){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let qa=(()=>{class n{constructor(e,o,a){this.store=e,this.logger=o,this.router=a,this.selNode={},this.activePeers=0,this.activeChannels=0,this.faUsers=b.FVb,this.faChartPie=b.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e instanceof v.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(o=>o.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.selNode=e}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0,this.logger.info(e)}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o;this.activeChannels=(null===(o=e.channelsSummary.active)||void 0===o?void 0:o.num_channels)||0,this.logger.info(e)}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:e.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:e.blockchainBalance.unconfirmed_balance||0}],this.logger.info(e)})}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(N.mQ),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(l){return o.activeLink=l})("selectedTabChange",function(l){return o.onSelectedTabChange(l)}),t.TgZ(16,"mat-tab"),t.YNc(17,Fa,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ka,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faUsers),t.xp6(6),t.Q6J("selectedIndex",o.activeLink))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.SP,R.uX,R.uD,At.k,m.yH,v.lC],styles:[""]}),n})();var Lt=g(8675),Vt=g(4004),Wt=g(9843);const Na=["form"];function Oa(n,i){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.pub_key?e.pub_key:"")}}function Ua(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function Ma(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function Pa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",34),t._UZ(1,"input",35),t.TgZ(2,"mat-autocomplete",36,37),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Oa,2,2,"mat-option",24),t.ALo(5,"async"),t.qZA(),t.YNc(6,Ua,2,0,"mat-error",17),t.YNc(7,Ma,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),o=t.oxw();t.xp6(1),t.Q6J("formControl",o.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,o.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.notfound)}}function Ia(n,i){1&n&&t.GkF(0)}function Ra(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Da(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Qa(n,i){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function Ja(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("","1"===e.selTransType?"Target Confirmation Blocks":"Fee"," is required.")}}function Ea(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function Ha(n,i){if(1&n&&(t.TgZ(0,"div",39),t._UZ(1,"fa-icon",40),t.YNc(2,Ea,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function Ya(n,i){if(1&n&&(t.TgZ(0,"mat-expansion-panel",42)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",43),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",44)(9,"div",34)(10,"h4",45),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",46),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",47),t.TgZ(15,"div",44)(16,"div",48)(17,"h4",45),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",49),t._uU(20),t.qZA()(),t.TgZ(21,"div",48)(22,"h4",45),t._uU(23,"Inbound"),t.qZA(),t.TgZ(24,"span",49),t._uU(25),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.address)),t.xp6(7),t.Oqu(e.peer.pub_key),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(null!=e.peer&&e.peer.inbound?"True":"False")}}function Ba(n,i){if(1&n&&t.YNc(0,Ya,26,4,"mat-expansion-panel",41),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let Xt=(()=>{class n{constructor(e,o,a,l){this.dialogRef=e,this.data=o,this.store=a,this.actions=l,this.selectedPeer=new p.NI,this.amount=new p.NI,this.faExclamationTriangle=b.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=s.Dr,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(a=>a.type===s.uR.UPDATE_API_CALL_STATUS_LND||a.type===s.uR.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===s.uR.UPDATE_API_CALL_STATUS_LND&&a.payload.status===s.Bn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===s.uR.FETCH_CHANNELS_LND&&this.dialogRef.close()});let e="",o="";this.sortedPeers=this.peers.sort((a,l)=>(e=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",eo?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[1]),(0,Lt.O)(""),(0,Vt.U)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,Vt.U)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(e){var o;return null===(o=this.sortedPeers)||void 0===o?void 0:o.filter(a=>{var l;return 0===(null===(l=a.alias)||void 0===l?void 0:l.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.pub_key?e.pub_key:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const o=null===(e=this.peers)||void 0===e?void 0:e.filter(a=>{var l,r;return(null===(l=a.alias)||void 0===l?void 0:l.length)===this.selectedPeer.value.length&&0===(null===(r=a.alias)||void 0===r?void 0:r.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===o.length&&o[0].pub_key&&(this.selectedPubkey=o[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue)return!0;this.store.dispatch((0,A.YX)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed}}))}onAdvancedPanelToggle(e){this.advancedTitle=e?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-open-channel"]],viewQuery:function(e,o){if(1&e&&t.Gf(Na,7),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first)}},decls:55,vars:25,consts:[["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amnt",3,"ngModel","step","min","max","ngModelChange"],["amt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","49"],["tabindex","3",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","tabindex","4","name","transTpValue",3,"ngModel","required","disabled","placeholder","step","min","ngModelChange"],["transTypeVal","ngModel"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","name","spendUnconfirmed",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["fxFlex","100"],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return o.onOpenChannel()})("reset",function(){return o.resetData()}),t.TgZ(11,"div",9),t.YNc(12,Pa,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,Ia,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(l){return o.fundingAmount=l}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,Ra,2,0,"mat-error",17),t.YNc(25,Da,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(l){return o.isPrivate=l}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0)})("opened",function(){return o.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"mat-form-field",22)(37,"mat-select",23),t.NdJ("valueChange",function(l){return o.selTransType=l}),t.YNc(38,Qa,2,2,"mat-option",24),t.qZA()(),t.TgZ(39,"mat-form-field",22)(40,"input",25,26),t.NdJ("ngModelChange",function(l){return o.transTypeValue=l}),t.qZA(),t.YNc(42,Ja,2,1,"mat-error",17),t.qZA()(),t.TgZ(43,"div",12)(44,"div",27)(45,"mat-slide-toggle",28),t.NdJ("ngModelChange",function(l){return o.spendUnconfirmed=l}),t._uU(46,"Spend Unconfirmed Output"),t.qZA()()()()()(),t.YNc(47,Ha,3,2,"div",29),t.TgZ(48,"div",30)(49,"button",31),t._uU(50,"Clear Fields"),t.qZA(),t.TgZ(51,"button",32),t._uU(52,"Open Channel"),t.qZA()()()()()(),t.YNc(53,Ba,1,1,"ng-template",null,33,t.W1O)),2&e){const a=t.MAs(54);t.xp6(5),t.Oqu(o.alertTitle),t.xp6(7),t.Q6J("ngIf",!o.peer&&o.peers&&o.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(4),t.Q6J("ngModel",o.fundingAmount)("step",1e3)("min",1)("max",o.totalBalance),t.xp6(3),t.hij("(Remaining Bal: ",t.lcZ(21,23,o.totalBalance-(o.fundingAmount?o.fundingAmount:0)),")"),t.xp6(4),t.Q6J("ngIf",null==o.amount.errors?null:o.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.amount.errors?null:o.amount.errors.max),t.xp6(2),t.Q6J("ngModel",o.isPrivate),t.xp6(6),t.Oqu(o.advancedTitle),t.xp6(4),t.Q6J("value",o.selTransType),t.xp6(1),t.Q6J("ngForOf",o.transTypes),t.xp6(2),t.Q6J("ngModel",o.transTypeValue)("required","0"!==o.selTransType)("disabled","0"===o.selTransType)("placeholder","0"===o.selTransType?"Default":"1"===o.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("min",0),t.xp6(2),t.Q6J("ngIf","0"!==o.selTransType&&!o.transTypeValue),t.xp6(3),t.Q6J("ngModel",o.spendUnconfirmed),t.xp6(2),t.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[m.xw,m.Wh,m.yH,y.dk,q.lW,y.dn,p._Y,p.JL,p.F,u.O5,C.KE,P.Nt,p.Fj,at.ZL,p.Q7,p.JJ,p.oH,at.XC,u.sg,G.ey,C.TO,u.tP,p.wV,p.qQ,p.Fd,et.q,Wt.F,p.On,C.bx,C.R9,ct.Rr,E.ib,E.yz,E.yK,M.gD,D.BN,W.h,V.d],pipes:[u.Ov,u.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();const za=["peersForm"],Ga=["stepper"];function Va(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Wa(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Xa(n,i){if(1&n&&(t.TgZ(0,"div",37),t._UZ(1,"fa-icon",38),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function ja(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Ka(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function $a(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function tl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function el(n,i){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function nl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("","0"===e.channelFormGroup.controls.selTransType.value?"Default":"1"===e.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"," is required.")}}function ol(n,i){if(1&n&&(t.TgZ(0,"div",37),t._UZ(1,"fa-icon",38),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let il=(()=>{class n{constructor(e,o,a,l,r,h,f){this.dialogRef=e,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=r,this.actions=h,this.logger=f,this.faExclamationTriangle=b.eHv,this.peerAddress="",this.totalBalance=0,this.transTypes=s.Dr,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.unSubs=[new d.x,new d.x]}ngOnInit(){var e;this.totalBalance=(null===(e=this.data.message)||void 0===e?void 0:e.balance)||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[p.kI.required]],peerAddress:["",[p.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[p.kI.required,p.kI.min(1),p.kI.max(this.totalBalance)]],isPrivate:[!1],selTransType:[s.Dr[0].id],transTypeValue:[{value:"",disabled:!0}],spendUnconfirmed:[!1],hiddenAmount:["",[p.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,_.R)(this.unSubs[0])).subscribe(o=>{o===s.Dr[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([p.kI.required]))}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,H.h)(o=>o.type===s.uR.NEWLY_ADDED_PEER_LND||o.type===s.uR.FETCH_PENDING_CHANNELS_LND||o.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===s.uR.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===s.uR.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===s.uR.UPDATE_API_CALL_STATUS_LND&&o.payload.status===s.Bn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const e=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";e>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,e),a=this.peerFormGroup.controls.peerAddress.value.substring(e+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,A.dV)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,X.q)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(e,o){this.store.dispatch((0,A.El)({payload:{pubkey:e,host:o,perm:!1}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,A.YX)({payload:{selectedPeerPubkey:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var o,a;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.alias):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(null===(a=this.newlyAddedPeer)||void 0===a?void 0:a.alias):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(ot.l),t.Y36(p.qu),t.Y36(j.eX),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-connect-peer"]],viewQuery:function(e,o){if(1&e&&(t.Gf(za,5),t.Gf(Ga,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:56,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","30","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType","placeholder","Transaction Type"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","30"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"placeholder","step","required"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(l){return o.stepSelectionChanged(l)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Va,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Wa,2,0,"mat-error",14),t.qZA(),t.YNc(18,Xa,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return o.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,ja,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Ka,2,0,"mat-error",14),t.YNc(34,$a,2,0,"mat-error",14),t.YNc(35,tl,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"div",25)(37,"mat-slide-toggle",26),t._uU(38,"Private Channel"),t.qZA()()(),t.TgZ(39,"div",27)(40,"mat-form-field",28)(41,"mat-select",29),t.YNc(42,el,2,2,"mat-option",30),t.qZA()(),t.TgZ(43,"mat-form-field",31),t._UZ(44,"input",32),t.YNc(45,nl,2,1,"mat-error",14),t.qZA(),t.TgZ(46,"div",25)(47,"mat-slide-toggle",33),t._uU(48,"Spend Unconfirmed Output"),t.qZA()()()(),t.YNc(49,ol,4,2,"div",15),t.TgZ(50,"div",16)(51,"button",34),t.NdJ("click",function(){return o.onOpenChannel()}),t._uU(52),t.qZA()()()()(),t.TgZ(53,"div",35)(54,"button",36),t._uU(55),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",o.peerFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==o.peerConnectionError),t.xp6(3),t.Oqu(""!==o.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",o.channelFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(7),t.Q6J("ngForOf",o.transTypes),t.xp6(2),t.Q6J("placeholder","0"===o.channelFormGroup.controls.selTransType.value?"Default":"1"===o.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)")("step",1)("required","0"!==o.channelFormGroup.controls.selTransType.value),t.xp6(1),t.Q6J("ngIf",null==o.channelFormGroup.controls.transTypeValue.errors?null:o.channelFormGroup.controls.transTypeValue.errors.required),t.xp6(4),t.Q6J("ngIf",""!==o.channelConnectionError),t.xp6(3),t.Oqu(""!==o.channelConnectionError?"Retry":"Open Channel"),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(null!=o.newlyAddedPeer&&o.newlyAddedPeer.pub_key?"Do It Later":"Close"))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,C.KE,P.Nt,p.Fj,W.h,p.JJ,p.u,p.Q7,u.O5,C.TO,D.BN,p.wV,C.bx,C.R9,ct.Rr,M.gD,u.sg,G.ey,Q.ZT],styles:[""]}),n})();function al(n,i){1&n&&t._UZ(0,"mat-progress-bar",32)}function ll(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Alias "),t.qZA())}const jt=function(n){return{"max-width":n}};function sl(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,jt,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.alias," ")}}function rl(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Public Key "),t.qZA())}function cl(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,jt,o.screenSize===o.screenSizeEnum.XS?"5rem":"35rem")),t.xp6(1),t.hij(" ",null==e?null:e.pub_key," ")}}function pl(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Sats Sent "),t.qZA())}function ul(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.sat_sent)," ")}}function ml(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Sats Received "),t.qZA())}function dl(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.sat_recv)," ")}}function hl(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Ping "),t.qZA())}function _l(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",37),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.ping_time)," ")}}function fl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",41),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function gl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",42)(1,"div",39)(2,"mat-select",40),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",41),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onPeerClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",41),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onOpenChannel(l)}),t._uU(7,"Open Channel"),t.qZA(),t.TgZ(8,"mat-option",41),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onPeerDetach(l)}),t._uU(9,"Disconnect"),t.qZA()()()()}}function Cl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function xl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function yl(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Tl(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,Cl,2,0,"p",44),t.YNc(2,xl,2,0,"p",44),t.YNc(3,yl,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const vl=function(n){return{"display-none":n}};function bl(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,vl,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function wl(n,i){1&n&&t._UZ(0,"tr",46)}function Zl(n,i){1&n&&t._UZ(0,"tr",47)}const Al=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Ll=function(){return["no_peer"]};let Sl=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.rtlEffects=a,this.commonService=l,this.availableBalance=0,this.faUsers=b.FVb,this.displayedColumns=[],this.peersData=[],this.information={},this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","sat_sent","sat_recv","ping_time","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","pub_key","sat_sent","sat_recv","ping_time","actions"])}ngOnInit(){this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.availableBalance=e.blockchainBalance.total_balance||0}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(e)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.pub_key,message:[[{key:"pub_key",value:e.pub_key,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:100}],[{key:"alias",value:e.alias,title:"Alias",width:40},{key:"inbound",value:e.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:e.ping_time,title:"Ping Time",width:30,type:s.Gi.NUMBER}],[{key:"sat_sent",value:e.sat_sent,title:"Satoshis Sent",width:50,type:s.Gi.NUMBER},{key:"sat_recv",value:e.sat_recv,title:"Satoshis Received",width:50,type:s.Gi.NUMBER}],[{key:"bytes_sent",value:e.bytes_sent,title:"Bytes Sent",width:50,type:s.Gi.NUMBER},{key:"bytes_recv",value:e.bytes_recv,title:"Bytes Received",width:50,type:s.Gi.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,F.qR)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:il}}}))}onOpenChannel(e){this.store.dispatch((0,F.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},component:Xt}}}))}onPeerDetach(e){this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[3])).subscribe(a=>{a&&this.store.dispatch((0,A.z)({payload:{pubkey:e.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(e){this.peers=new c.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.peers.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(dt.V),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Peers")}])],decls:40,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","sat_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.onConnectPeer()}),t._uU(3,"Add Peer"),t.qZA()(),t.TgZ(4,"div",3)(5,"div",4)(6,"div",5),t._UZ(7,"fa-icon",6),t.TgZ(8,"span",7),t._uU(9,"Connected Peers"),t.qZA()(),t.TgZ(10,"mat-form-field",8)(11,"input",9),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(12,"div",10),t.YNc(13,al,1,0,"mat-progress-bar",11),t.TgZ(14,"table",12,13),t.ynx(16,14),t.YNc(17,ll,2,0,"th",15),t.YNc(18,sl,2,4,"td",16),t.BQk(),t.ynx(19,17),t.YNc(20,rl,2,0,"th",15),t.YNc(21,cl,2,4,"td",16),t.BQk(),t.ynx(22,18),t.YNc(23,pl,2,0,"th",19),t.YNc(24,ul,4,3,"td",20),t.BQk(),t.ynx(25,21),t.YNc(26,ml,2,0,"th",19),t.YNc(27,dl,4,3,"td",20),t.BQk(),t.ynx(28,22),t.YNc(29,hl,2,0,"th",19),t.YNc(30,_l,4,3,"td",20),t.BQk(),t.ynx(31,23),t.YNc(32,fl,6,0,"th",24),t.YNc(33,gl,10,0,"td",25),t.BQk(),t.ynx(34,26),t.YNc(35,Tl,4,3,"td",27),t.BQk(),t.YNc(36,bl,1,3,"tr",28),t.YNc(37,wl,1,0,"tr",29),t.YNc(38,Zl,1,0,"tr",30),t.qZA()(),t._UZ(39,"mat-paginator",31),t.qZA()()),2&e&&(t.xp6(7),t.Q6J("icon",o.faUsers),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.peers)("ngClass",t.VKq(12,Al,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(14,Ll)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,q.lW,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-pub_key[_ngcontent-%COMP%]{flex:1 1 35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem;flex:1 1 10%}.mat-column-sat_sent[_ngcontent-%COMP%], .mat-column-sat_recv[_ngcontent-%COMP%], .mat-column-ping_time[_ngcontent-%COMP%]{flex:1 1 13%;width:13%}"]}),n})();function Fl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOpenChannels)}}function kl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numPendingChannels)}}function ql(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Closed"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numClosedChannels)}}function Nl(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Active HTLCs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numActiveHTLCs)}}let Ol=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.activeLink=this.links.findIndex(e=>e.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e instanceof v.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(o=>o.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var o;this.numOpenChannels=e.channels&&e.channels.length?e.channels.length:0,this.numActiveHTLCs=null===(o=e.channels)||void 0===o?void 0:o.reduce((a,l)=>a+(l.pending_htlcs&&l.pending_htlcs.length>0?l.pending_htlcs.length:0),0),this.logger.info(e)}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPendingChannels=e.pendingChannelsSummary.total_channels?e.pendingChannelsSummary.total_channels:0}),this.store.select(T.P2).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.numClosedChannels=e.closedChannels&&e.closedChannels.length?e.closedChannels.length:0}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=+(e.blockchainBalance.total_balance||0)}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[6])).subscribe(e=>{this.peers=e.peers,this.peers.forEach(o=>{var a;(!o.alias||""===o.alias)&&(o.alias=(null===(a=o.pub_key)||void 0===a?void 0:a.substring(0,15))+"...")}),this.logger.info(e)})}onOpenChannel(){this.store.dispatch((0,F.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Xt}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channels-tables"]],decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(l){return o.activeLink=l})("selectedTabChange",function(l){return o.onSelectedTabChange(l)}),t.TgZ(6,"mat-tab"),t.YNc(7,Fl,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,kl,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,ql,2,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-tab"),t.YNc(13,Nl,2,1,"ng-template",5),t.qZA()(),t.TgZ(14,"div",6),t._UZ(15,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",o.activeLink))},directives:[m.xw,m.yH,m.Wh,q.lW,R.SP,R.uX,R.uD,At.k,v.lC],styles:[""]}),n})();var it=g(7261),ht=g(6895);function Ul(n,i){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",14)(3,"h4",11),t._uU(4,"Commit Fee"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",14)(9,"h4",11),t._uU(10,"Commit Weight"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div",14)(15,"h4",11),t._uU(16,"Fee/KW"),t.qZA(),t.TgZ(17,"span",15),t._uU(18),t.ALo(19,"number"),t.qZA()(),t.TgZ(20,"div",14)(21,"h4",11),t._uU(22,"Static Remote Key"),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.qZA()()(),t._UZ(25,"mat-divider",13),t.TgZ(26,"div",9)(27,"div",14)(28,"h4",11),t._uU(29),t.qZA(),t.TgZ(30,"span",15),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div",14)(34,"h4",11),t._uU(35),t.qZA(),t.TgZ(36,"span",15),t._uU(37),t.ALo(38,"number"),t.qZA()(),t.TgZ(39,"div",14)(40,"h4",11),t._uU(41,"Unsettled Balance"),t.qZA(),t.TgZ(42,"span",15),t._uU(43),t.ALo(44,"number"),t.qZA()(),t.TgZ(45,"div",14)(46,"h4",11),t._uU(47,"CSV Delay"),t.qZA(),t.TgZ(48,"span",15),t._uU(49),t.ALo(50,"number"),t.qZA()()(),t._UZ(51,"mat-divider",13),t.TgZ(52,"div",9)(53,"div",14)(54,"h4",11),t._uU(55,"Local Reserve (Sats)"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.ALo(58,"number"),t.qZA()(),t.TgZ(59,"div",14)(60,"h4",11),t._uU(61,"Remote Reserve (Sats)"),t.qZA(),t.TgZ(62,"span",15),t._uU(63),t.ALo(64,"number"),t.qZA()(),t.TgZ(65,"div",14)(66,"h4",11),t._uU(67,"Lifetime (Seconds)"),t.qZA(),t.TgZ(68,"span",15),t._uU(69),t.ALo(70,"number"),t.qZA()(),t.TgZ(71,"div",14)(72,"h4",11),t._uU(73,"Pending HTLCs"),t.qZA(),t.TgZ(74,"span",15),t._uU(75),t.ALo(76,"number"),t.qZA()()(),t._UZ(77,"mat-divider",13),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,17,e.channel.commit_fee)),t.xp6(6),t.Oqu(t.lcZ(13,19,e.channel.commit_weight)),t.xp6(6),t.Oqu(t.lcZ(19,21,e.channel.fee_per_kw)),t.xp6(6),t.Oqu(e.channel.static_remote_key?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(4),t.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),t.xp6(2),t.Oqu(t.lcZ(32,23,e.channel.total_satoshis_sent)),t.xp6(4),t.Oqu(e.screenSize===e.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),t.xp6(2),t.Oqu(t.lcZ(38,25,e.channel.total_satoshis_received)),t.xp6(6),t.Oqu(t.lcZ(44,27,e.channel.unsettled_balance)),t.xp6(6),t.Oqu(t.lcZ(50,29,e.channel.csv_delay)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(58,31,e.channel.local_chan_reserve_sat)),t.xp6(6),t.Oqu(t.lcZ(64,33,e.channel.remote_chan_reserve_sat)),t.xp6(6),t.Oqu(t.lcZ(70,35,e.channel.lifetime)),t.xp6(6),t.Oqu(t.lcZ(76,37,null==e.channel||null==e.channel.pending_htlcs?null:e.channel.pending_htlcs.length)),t.xp6(2),t.Q6J("inset",!0)}}function Ml(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function Pl(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function Il(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("copied",function(a){return t.CHM(e),t.oxw().onCopyChanID(a)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.chan_id)}}function Rl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(1,"OK"),t.qZA()}}const Dl=function(n){return{"xs-scroll-y":n}};let St=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.logger=a,this.commonService=l,this.snackBar=r,this.faReceipt=b.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("Channel ID "+e+" copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(O.v),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-information"]],decls:94,vars:36,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return o.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Channel ID"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",10)(18,"h4",11),t._uU(19,"Peer Alias"),t.qZA(),t.TgZ(20,"span",12),t._uU(21),t.qZA()()(),t._UZ(22,"mat-divider",13),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"Channel Point"),t.qZA(),t.TgZ(27,"span",12),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",13),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"Peer Public Key"),t.qZA(),t.TgZ(34,"span",12),t._uU(35),t.qZA()()(),t._UZ(36,"mat-divider",13),t.TgZ(37,"div",9)(38,"div",14)(39,"h4",11),t._uU(40,"Local Balance"),t.qZA(),t.TgZ(41,"span",15),t._uU(42),t.ALo(43,"number"),t.qZA()(),t.TgZ(44,"div",14)(45,"h4",11),t._uU(46,"Remote Balance"),t.qZA(),t.TgZ(47,"span",15),t._uU(48),t.ALo(49,"number"),t.qZA()(),t.TgZ(50,"div",14)(51,"h4",11),t._uU(52,"Capacity"),t.qZA(),t.TgZ(53,"span",15),t._uU(54),t.ALo(55,"number"),t.qZA()(),t.TgZ(56,"div",14)(57,"h4",11),t._uU(58,"Uptime (Seconds)"),t.qZA(),t.TgZ(59,"span",15),t._uU(60),t.ALo(61,"number"),t.qZA()()(),t._UZ(62,"mat-divider",13),t.TgZ(63,"div",9)(64,"div",14)(65,"h4",11),t._uU(66,"Active"),t.qZA(),t.TgZ(67,"span",15),t._uU(68),t.qZA()(),t.TgZ(69,"div",14)(70,"h4",11),t._uU(71,"Private"),t.qZA(),t.TgZ(72,"span",15),t._uU(73),t.qZA()(),t.TgZ(74,"div",14)(75,"h4",11),t._uU(76,"Initiator"),t.qZA(),t.TgZ(77,"span",15),t._uU(78),t.qZA()(),t.TgZ(79,"div",14)(80,"h4",11),t._uU(81,"Number of Updates"),t.qZA(),t.TgZ(82,"span",15),t._uU(83),t.ALo(84,"number"),t.qZA()()(),t._UZ(85,"mat-divider",13),t.YNc(86,Ul,78,39,"div",16),t.TgZ(87,"div",17)(88,"button",18),t.NdJ("click",function(){return o.onShowAdvanced()}),t.YNc(89,Ml,2,0,"p",19),t.YNc(90,Pl,2,0,"ng-template",null,20,t.W1O),t.qZA(),t.YNc(92,Il,2,1,"button",21),t.YNc(93,Rl,2,0,"button",22),t.qZA()()()()()),2&e){const a=t.MAs(91);t.xp6(4),t.Q6J("icon",o.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(34,Dl,o.screenSize===o.screenSizeEnum.XS)),t.xp6(7),t.Oqu(o.channel.chan_id),t.xp6(5),t.Oqu(o.channel.remote_alias),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.channel_point),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.remote_pubkey),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(43,24,o.channel.local_balance)),t.xp6(6),t.Oqu(t.lcZ(49,26,o.channel.remote_balance)),t.xp6(6),t.Oqu(t.lcZ(55,28,o.channel.capacity)),t.xp6(6),t.Oqu(t.lcZ(61,30,o.channel.uptime)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.channel.active?"Yes":"No"),t.xp6(5),t.Oqu(o.channel.private?"Yes":"No"),t.xp6(5),t.Oqu(o.channel.initiator?"Yes":"No"),t.xp6(5),t.Oqu(t.lcZ(84,32,o.channel.num_updates)),t.xp6(2),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",o.showAdvanced),t.xp6(3),t.Q6J("ngIf",!o.showAdvanced)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.showCopy),t.xp6(1),t.Q6J("ngIf",!o.showCopy)}},directives:[m.xw,m.Wh,m.yH,y.dk,D.BN,q.lW,y.dn,u.mk,L.oO,V.d,u.O5,W.h,ht.y],pipes:[u.JJ],styles:[""]}),n})();var Ft=g(9646);function Ql(n,i){1&n&&t.GkF(0)}const _t=function(n,i){return{"small-svg":n,"large-svg":i}};function Jl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.qZA(),t.kcU(),t.TgZ(41,"div",47)(42,"mat-card-title"),t._uU(43,"Circular rebalancing explained."),t.qZA()(),t.TgZ(44,"div",48)(45,"mat-card-subtitle",49),t._uU(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function El(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55)(7,"path",56)(8,"path",57)(9,"path",58)(10,"path",59)(11,"path",60)(12,"path",61)(13,"path",62)(14,"path",63)(15,"path",64)(16,"path",65)(17,"path",66)(18,"path",67)(19,"path",68)(20,"path",69)(21,"path",70)(22,"path",71)(23,"path",72)(24,"path",73)(25,"path",74)(26,"path",75)(27,"path",76)(28,"path",77)(29,"path",78)(30,"path",79)(31,"path",80)(32,"path",81)(33,"path",51)(34,"path",52)(35,"path",53)(36,"path",54)(37,"path",55)(38,"path",56)(39,"path",57)(40,"path",58)(41,"path",59)(42,"path",82)(43,"path",83)(44,"path",62)(45,"path",84)(46,"path",85)(47,"path",86)(48,"path",66)(49,"path",67)(50,"path",68)(51,"path",69)(52,"path",70)(53,"path",71)(54,"path",72)(55,"path",73)(56,"path",74)(57,"path",75)(58,"path",76)(59,"path",77)(60,"path",78)(61,"path",79)(62,"path",87)(63,"path",81)(64,"path",88),t.TgZ(65,"defs")(66,"linearGradient",89),t._UZ(67,"stop",90)(68,"stop",91)(69,"stop",92),t.qZA(),t.TgZ(70,"linearGradient",93),t._UZ(71,"stop",90)(72,"stop",91)(73,"stop",92),t.qZA(),t.TgZ(74,"linearGradient",94),t._UZ(75,"stop",90)(76,"stop",91)(77,"stop",92),t.qZA(),t.TgZ(78,"linearGradient",95),t._UZ(79,"stop",90)(80,"stop",91)(81,"stop",92),t.qZA(),t.TgZ(82,"linearGradient",96),t._UZ(83,"stop",90)(84,"stop",91)(85,"stop",92),t.qZA(),t.TgZ(86,"linearGradient",97),t._UZ(87,"stop",90)(88,"stop",91)(89,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(90,"div",47)(91,"mat-card-title"),t._uU(92,"Step 1: Unbalanced channel"),t.qZA()(),t.TgZ(93,"div",48)(94,"mat-card-subtitle",49),t._uU(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Hl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",98),t._UZ(2,"path",99)(3,"path",100)(4,"path",101)(5,"path",102)(6,"path",103)(7,"path",104)(8,"path",105)(9,"path",106)(10,"path",107)(11,"path",108)(12,"path",109)(13,"path",110)(14,"path",111)(15,"path",112)(16,"path",113)(17,"path",51)(18,"path",114)(19,"path",115)(20,"path",116)(21,"path",117)(22,"path",118)(23,"path",119)(24,"path",120)(25,"path",121)(26,"path",82)(27,"path",83)(28,"path",122)(29,"path",123)(30,"path",124)(31,"path",125)(32,"path",66)(33,"path",126)(34,"path",127)(35,"path",128)(36,"path",129)(37,"path",130)(38,"path",131)(39,"path",73)(40,"path",74)(41,"path",132)(42,"path",76)(43,"path",77)(44,"path",78)(45,"path",79)(46,"path",133)(47,"path",134)(48,"path",135),t.TgZ(49,"defs")(50,"linearGradient",136),t._UZ(51,"stop",90)(52,"stop",91)(53,"stop",92),t.qZA(),t.TgZ(54,"linearGradient",137),t._UZ(55,"stop",90)(56,"stop",91)(57,"stop",92),t.qZA(),t.TgZ(58,"linearGradient",138),t._UZ(59,"stop",90)(60,"stop",91)(61,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(62,"div",47)(63,"mat-card-title"),t._uU(64,"Step 2: Invoice/Payment"),t.qZA()(),t.TgZ(65,"div",48)(66,"mat-card-subtitle",49),t._uU(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Yl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",139),t._UZ(2,"path",140)(3,"path",141)(4,"path",142)(5,"path",143)(6,"path",144)(7,"path",145)(8,"path",146)(9,"path",147)(10,"path",148)(11,"path",149)(12,"path",150)(13,"path",151)(14,"path",152)(15,"path",153)(16,"path",154)(17,"path",155)(18,"path",156)(19,"path",157)(20,"path",158)(21,"path",159)(22,"path",160)(23,"path",161)(24,"path",162)(25,"path",163)(26,"path",162)(27,"path",164)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",169)(33,"path",170)(34,"path",171)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",177)(41,"path",178),t.TgZ(42,"defs")(43,"linearGradient",179),t._UZ(44,"stop",90)(45,"stop",91)(46,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(47,"div",47)(48,"mat-card-title"),t._uU(49,"Step 3: Rebalance amount"),t.qZA()(),t.TgZ(50,"div",48)(51,"mat-card-subtitle",49),t._uU(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Bl(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",139),t._UZ(2,"path",180)(3,"path",142)(4,"path",181)(5,"path",144)(6,"path",145)(7,"path",182)(8,"path",147)(9,"path",183)(10,"path",184)(11,"path",185)(12,"path",186)(13,"path",187)(14,"path",188)(15,"path",189)(16,"path",190)(17,"path",191)(18,"path",157)(19,"path",192)(20,"path",193)(21,"path",178)(22,"path",159)(23,"path",160)(24,"path",194)(25,"path",162)(26,"path",163)(27,"path",162)(28,"path",164)(29,"path",165)(30,"path",166)(31,"path",167)(32,"path",195)(33,"path",169)(34,"path",196)(35,"path",171)(36,"path",172)(37,"path",173)(38,"path",174)(39,"path",175)(40,"path",197),t.TgZ(41,"defs")(42,"linearGradient",198),t._UZ(43,"stop",90)(44,"stop",91)(45,"stop",92),t.qZA()()(),t.kcU(),t.TgZ(46,"div",47)(47,"mat-card-title"),t._uU(48,"Rebalance successful!"),t.qZA()(),t.TgZ(49,"div",48)(50,"mat-card-subtitle",49),t._uU(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,_t,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let zl=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z","fill","#444053"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z","fill","#D0D2D5"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z","fill","#3F3D56"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z","fill","#D0D2D5"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z","fill","#D0D2D5"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","#444053"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z","fill","#444053"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z","fill","#6C63FF"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z","fill","#6C63FF"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z","fill","#6C63FF"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z","fill","#6C63FF"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z","fill","#6C63FF"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z","fill","#6C63FF"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z","fill","#6C63FF"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z","fill","#6C63FF"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z","fill","#6C63FF"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z","fill","#6C63FF"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z","fill","#6C63FF"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z","fill","#6C63FF"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z","fill","#6C63FF"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z","fill","#6C63FF"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke","#C4B7FF","stroke-width","0.8","stroke-dasharray","4 4"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","fill","#5E4EA5","stroke","white","stroke-width","1.6"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z","fill","#E6E6E6"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z","fill","#C4B7FF"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z","fill","#6C63FF"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z","fill","#C4B7FF"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z","fill","#6C63FF"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z","fill","#C4B7FF"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z","fill","#5E4EA5"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z","fill","#5E4EA5"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z","fill","#5E4EA5"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z","fill","#4A4A4A"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z","fill","#F2F2F2"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z","fill","#4A4A4A"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z","fill","#4A4A4A"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z","fill","#4A4A4A"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z","fill","#4A4A4A"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z","fill","#4A4A4A"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z","fill","#4A4A4A"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z","fill","#F2F2F2"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M42 75H9V91H42V75Z","fill","#5E4EA5"],["d","M42 42H9V58H42V42Z","fill","#5E4EA5"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z","fill","#4A4A4A"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z","fill","#F1F1F1"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z","fill","#4A4A4A"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z","fill","#D0CDE1"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z","fill","#4A4A4A"],["d","M265 57.3624H357.392V120.307H265V57.3624Z","fill","#CBCBCB"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z","fill","#4A4A4A"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z","fill","#4A4A4A"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z","fill","#4A4A4A"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z","fill","#4A4A4A"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z","fill","#4A4A4A"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z","fill","#4A4A4A"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z","fill","#4A4A4A"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z","fill","#F2F2F2"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z","fill","#4A4A4A"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z","fill","#5B5B5B"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z","fill","#C4B7FF"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z","fill","#6C63FF"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z","fill","#C4B7FF"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z","fill","#6C63FF"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#C4B7FF"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z","fill","#5E4EA5"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z","fill","#4A4A4A"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z","fill","#CBCBCB"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z","fill","#F2F2F2"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z","fill","#3F3D56"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z","fill","#4A4A4A"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z","fill","#4A4A4A"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z","fill","#4A4A4A"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z","fill","#5B5B5B"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#C4B7FF","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M122.399 37H32.25V137.616H122.399V37Z","fill","#E6E6E6"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z","fill","#C4B7FF"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z","fill","#6C63FF"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z","fill","#C4B7FF"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z","fill","#C4B7FF"],["d","M74.5 112H40.5V128H74.5V112Z","fill","#5E4EA5"],["d","M74.5 79H40.5V95H74.5V79Z","fill","#5E4EA5"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z","fill","#5E4EA5"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z","fill","#5E4EA5"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z","fill","#5E4EA5"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z","fill","#5E4EA5"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z","fill","#5E4EA5"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z","fill","#C4B7FF"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#C4B7FF"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z","fill","#F2F2F2"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z","fill","#5B5B5B"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z","fill","#F2F2F2"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z","fill","#CBCBCB"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z","fill","#595959"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z","fill","#F2F2F2"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z","fill","#CBCBCB"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z","fill","#595959"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z","fill","#595959"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z","fill","#CBCBCB"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z","fill","#CBCBCB"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z","fill","#CBCBCB"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z","fill","#595959"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z","fill","#5E4EA5"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke","#5E4EA5","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z","fill","#6C63FF"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z","fill","#C4B7FF"],["d","M76 112H41V128H76V112Z","fill","#5E4EA5"],["d","M70 79H41V95H70V79Z","fill","#5E4EA5"],["d","M70 47H41V63H70V47Z","fill","#5E4EA5"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z","fill","#5E4EA5"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z","fill","#5E4EA5"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z","fill","#5E4EA5"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z","fill","#CBCBCB"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z","fill","#595959"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(e,o){if(1&e&&(t.YNc(0,Ql,1,0,"ng-container",0),t.YNc(1,Jl,47,5,"ng-template",null,1,t.W1O),t.YNc(3,El,96,5,"ng-template",null,2,t.W1O),t.YNc(5,Hl,68,5,"ng-template",null,3,t.W1O),t.YNc(7,Yl,53,5,"ng-template",null,4,t.W1O),t.YNc(9,Bl,52,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const Gl=["stepper"];function Vl(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function Wl(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Xl(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function jl(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.local_balance,".")}}function Kl(n,i){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE("",e.remote_alias," - ",e.chan_id,"")}}function $l(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer is required."),t.qZA())}function ts(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Receive from Peer not found in the list."),t.qZA())}function es(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.feeFormLabel)}}function ns(n,i){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function os(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," is required.")}}function is(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("",e.feeFormGroup.controls.selFeeLimitType.value?e.feeFormGroup.controls.selFeeLimitType.value.placeholder:e.feeLimitTypes[0].placeholder," must be a positive number.")}}function as(n,i){1&n&&t._uU(0,"Invoice/Payment")}function ls(n,i){1&n&&(t.TgZ(0,"mat-icon",56),t._uU(1,"check"),t.qZA())}function ss(n,i){1&n&&t._UZ(0,"mat-progress-bar",57)}function rs(n,i){if(1&n&&(t.TgZ(0,"mat-icon",56),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(null!=e.paymentStatus&&e.paymentStatus.error?"close":"check")}}function cs(n,i){1&n&&t._UZ(0,"div",14)}function ps(n,i){1&n&&t._UZ(0,"mat-progress-bar",57)}function us(n,i){if(1&n&&(t.TgZ(0,"h4",58),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentStatus&&e.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function ms(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",59),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function ds(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),t._uU(5),t.qZA()(),t.TgZ(6,"div",10)(7,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",13)(12,"div",14)(13,"div",15)(14,"div",16),t._UZ(15,"fa-icon",17),t.TgZ(16,"span"),t._uU(17,"Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.qZA()()(),t.TgZ(18,"div",18)(19,"p",19)(20,"strong"),t._uU(21,"Channel Peer:\xa0"),t.qZA(),t._uU(22),t.ALo(23,"titlecase"),t.qZA(),t.TgZ(24,"p",19)(25,"strong"),t._uU(26,"Channel ID:\xa0"),t.qZA(),t._uU(27),t.qZA()(),t.TgZ(28,"mat-vertical-stepper",20,21),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(30,"mat-step",22)(31,"form",23),t.YNc(32,Vl,1,1,"ng-template",24),t.TgZ(33,"div",25)(34,"mat-form-field",26),t._UZ(35,"input",27),t.TgZ(36,"mat-hint"),t._uU(37),t.qZA(),t.TgZ(38,"span",28),t._uU(39,"Sats"),t.qZA(),t.YNc(40,Wl,2,0,"mat-error",29),t.YNc(41,Xl,2,0,"mat-error",29),t.YNc(42,jl,2,1,"mat-error",29),t.qZA(),t.TgZ(43,"mat-form-field",30)(44,"input",31),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(45,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(47,Kl,2,3,"mat-option",34),t.ALo(48,"async"),t.qZA(),t.YNc(49,$l,2,0,"mat-error",29),t.YNc(50,ts,2,0,"mat-error",29),t.qZA()(),t.TgZ(51,"div",35)(52,"button",36),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSelectFee()}),t._uU(53,"Select Fee"),t.qZA()()()(),t.TgZ(54,"mat-step",22)(55,"form",23),t.YNc(56,es,1,1,"ng-template",37),t.TgZ(57,"div",25)(58,"div",25)(59,"mat-form-field",30)(60,"mat-select",38),t.YNc(61,ns,2,2,"mat-option",34),t.qZA()(),t.TgZ(62,"mat-form-field",26),t._UZ(63,"input",39),t.YNc(64,os,2,1,"mat-error",29),t.YNc(65,is,2,1,"mat-error",29),t.qZA()()(),t.TgZ(66,"div",35)(67,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRebalance()}),t._uU(68,"Rebalance"),t.qZA()()()(),t.TgZ(69,"mat-step",41)(70,"form",23),t.YNc(71,as,1,0,"ng-template",24),t.TgZ(72,"div",42)(73,"mat-expansion-panel",43)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",44),t._uU(77),t.YNc(78,ls,2,0,"mat-icon",45),t.qZA()()(),t.TgZ(79,"div",14)(80,"span",46),t._uU(81),t.qZA()()(),t.YNc(82,ss,1,0,"mat-progress-bar",47),t.TgZ(83,"mat-expansion-panel",48)(84,"mat-expansion-panel-header")(85,"mat-panel-title")(86,"span",44),t._uU(87),t.YNc(88,rs,2,1,"mat-icon",45),t.qZA()()(),t.YNc(89,cs,1,0,"div",49),t.qZA(),t.YNc(90,ps,1,0,"mat-progress-bar",47),t.qZA(),t.YNc(91,us,2,1,"h4",50),t.TgZ(92,"div",51),t.YNc(93,ms,2,0,"button",52),t.qZA()()()(),t.TgZ(94,"div",53)(95,"button",54),t._uU(96,"Close"),t.qZA()()()()()()}if(2&n){const e=t.MAs(46),o=t.oxw(),a=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(o.channel?"Channel "+o.loopDirectionCaption:o.loopDirectionCaption),t.xp6(1),t.Q6J("fxFlex",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM?"17":"9"),t.xp6(9),t.Q6J("icon",o.faInfoCircle),t.xp6(7),t.Oqu(t.lcZ(23,45,o.selChannel.remote_alias)),t.xp6(5),t.Oqu(o.selChannel.chan_id),t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",o.inputFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.inputFormGroup),t.xp6(4),t.Q6J("step",100),t.xp6(2),t.AsE("(Local Bal: ",null==o.selChannel?null:o.selChannel.local_balance,", Remaining: ",(null==o.selChannel?null:o.selChannel.local_balance)-(o.inputFormGroup.controls.rebalanceAmount.value?o.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.xp6(3),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.rebalanceAmount.errors?null:o.inputFormGroup.controls.rebalanceAmount.errors.max),t.xp6(2),t.Q6J("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",o.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(48,47,o.filteredActiveChannels)),t.xp6(2),t.Q6J("ngIf",null==o.inputFormGroup.controls.selRebalancePeer.errors?null:o.inputFormGroup.controls.selRebalancePeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.inputFormGroup.controls.selRebalancePeer.errors?null:o.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.xp6(4),t.Q6J("stepControl",o.feeFormGroup)("editable",o.flgEditable),t.xp6(1),t.Q6J("formGroup",o.feeFormGroup),t.xp6(6),t.Q6J("ngForOf",o.feeLimitTypes),t.xp6(2),t.s9C("placeholder",o.feeFormGroup.controls.selFeeLimitType.value?o.feeFormGroup.controls.selFeeLimitType.value.placeholder:o.feeLimitTypes[0].placeholder),t.Q6J("step",1),t.xp6(1),t.Q6J("ngIf",null==o.feeFormGroup.controls.feeLimit.errors?null:o.feeFormGroup.controls.feeLimit.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.feeFormGroup.controls.feeLimit.errors?null:o.feeFormGroup.controls.feeLimit.errors.min),t.xp6(4),t.Q6J("stepControl",o.statusFormGroup),t.xp6(1),t.Q6J("formGroup",o.statusFormGroup),t.xp6(7),t.Oqu(o.flgInvoiceGenerated?o.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated),t.xp6(3),t.Oqu(o.paymentRequest),t.xp6(1),t.Q6J("ngIf",!o.flgInvoiceGenerated),t.xp6(1),t.Q6J("expanded",(o.flgInvoiceGenerated||o.flgReusingInvoice)&&o.flgPaymentSent),t.xp6(4),t.Oqu(o.flgInvoiceGenerated||o.flgPaymentSent?o.flgPaymentSent?null!=o.paymentStatus&&o.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),t.xp6(1),t.Q6J("ngIf",o.flgPaymentSent),t.xp6(1),t.Q6J("ngIf",!o.paymentStatus)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated&&!o.flgPaymentSent),t.xp6(1),t.Q6J("ngIf",o.flgInvoiceGenerated&&o.flgPaymentSent),t.xp6(2),t.Q6J("ngIf",o.paymentStatus&&o.paymentStatus.error),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function hs(n,i){1&n&&t.GkF(0)}function _s(n,i){if(1&n&&t.YNc(0,hs,1,0,"ng-container",60),2&n){const e=t.oxw(),o=t.MAs(4),a=t.MAs(6);t.Q6J("ngTemplateOutlet",e.paymentStatus.error?o:a)}}function fs(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"span",46),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Error: ",e.paymentStatus.error,"")}}function gs(n,i){if(1&n&&(t.TgZ(0,"div",14)(1,"div",61)(2,"div",6)(3,"h4",62),t._uU(4,"Payment Hash"),t.qZA(),t.TgZ(5,"span",46),t._uU(6),t.qZA()()(),t._UZ(7,"mat-divider",63),t.TgZ(8,"div",61)(9,"div",64)(10,"h4",62),t._uU(11),t.qZA(),t.TgZ(12,"span",46),t._uU(13),t.qZA()(),t.TgZ(14,"div",64)(15,"h4",62),t._uU(16,"Number of Hops"),t.qZA(),t.TgZ(17,"span",46),t._uU(18),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(e.paymentStatus.payment_hash),t.xp6(5),t.hij("Total Fees (",e.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),t.xp6(2),t.Oqu(e.paymentStatus.payment_route.total_fees_msat?e.paymentStatus.payment_route.total_fees_msat:e.paymentStatus.payment_route.total_fees?e.paymentStatus.payment_route.total_fees:0),t.xp6(5),t.Oqu(e.paymentStatus&&e.paymentStatus.payment_route&&e.paymentStatus.payment_route.hops&&e.paymentStatus.payment_route.hops.length?e.paymentStatus.payment_route.hops.length:0)}}const Cs=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function xs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",81),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",82),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,Cs,o.stepNumber===e,o.stepNumber!==e))}}function ys(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",83),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Ts(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",84),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function vs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",85),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function bs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",86),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function ws(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",87),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const Zs=function(){return[1,2,3,4,5]};function As(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),t._UZ(4,"span",9),t.qZA(),t.TgZ(5,"div",69)(6,"button",70),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",71)(9,"rtl-channel-rebalance-infographics",72),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw().stepNumber=a}),t.qZA()(),t.TgZ(10,"div",73),t.YNc(11,xs,2,4,"span",74),t.qZA(),t.TgZ(12,"div",75),t.YNc(13,ys,2,0,"button",76),t.YNc(14,Ts,2,0,"button",77),t.YNc(15,vs,2,0,"button",78),t.YNc(16,bs,2,0,"button",79),t.YNc(17,ws,2,0,"button",80),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection),t.xp6(2),t.Q6J("ngForOf",t.DdM(9,Zs)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let Ls=(()=>{class n{constructor(e,o,a,l,r,h,f,x){this.dialogRef=e,this.data=o,this.logger=a,this.store=l,this.actions=r,this.formBuilder=h,this.decimalPipe=f,this.commonService=x,this.faInfoCircle=b.sqG,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){var e,o,a,l,r;this.screenSize=this.commonService.getScreenSize();let h="",f="";this.selChannel=(null===(e=this.data.message)||void 0===e?void 0:e.selChannel)||{},this.activeChannels=(null===(a=null===(o=this.data.message)||void 0===o?void 0:o.channels)||void 0===a?void 0:a.filter(x=>x.active&&x.chan_id!==this.selChannel.chan_id&&x.remote_balance&&x.remote_balance>0))||[],this.activeChannels=this.activeChannels.sort((x,I)=>(h=x.remote_alias?x.remote_alias.toLowerCase():x.chan_id?x.chan_id.toLowerCase():"",f=I.remote_alias?I.remote_alias.toLowerCase():x.chan_id?x.chan_id.toLowerCase():"",hf?1:0)),s.Vc.forEach((x,I)=>{I>0&&this.feeLimitTypes.push(x)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[p.kI.required]],rebalanceAmount:["",[p.kI.required,p.kI.min(1),p.kI.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,p.kI.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],p.kI.required],feeLimit:["",[p.kI.required,p.kI.min(0)]],hiddenFeeLimit:["",[p.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(T.Ef).pipe((0,_.R)(this.unSubs[0])).subscribe(x=>{this.invoices=x.listInvoices,this.logger.info(x)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,H.h)(x=>x.type===s.uR.SET_QUERY_ROUTES_LND||x.type===s.uR.SEND_PAYMENT_STATUS_LND||x.type===s.uR.NEWLY_SAVED_INVOICE_LND)).subscribe(x=>{x.type===s.uR.SET_QUERY_ROUTES_LND&&(this.queryRoute=x.payload),x.type===s.uR.SEND_PAYMENT_STATUS_LND&&(this.logger.info(x.payload),this.flgPaymentSent=!0,this.paymentStatus=x.payload,this.flgEditable=!0),x.type===s.uR.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(x.payload),this.flgInvoiceGenerated=!0,this.sendPayment(x.payload.paymentRequest))}),null===(l=this.inputFormGroup.get("rebalanceAmount"))||void 0===l||l.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,Lt.O)(0)).subscribe(x=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ft.of)(x?this.filterActiveChannels():this.activeChannels.slice())}),null===(r=this.inputFormGroup.get("selRebalancePeer"))||void 0===r||r.valueChanges.pipe((0,_.R)(this.unSubs[3]),(0,Lt.O)("")).subscribe(x=>{"string"==typeof x&&(this.filteredActiveChannels=(0,Ft.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(e){var o;switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+(null===(o=this.queryRoute.routes[0].hops)||void 0===o?void 0:o.length):"Select rebalance fee"}e.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const e=this.findUnsettledInvoice();e?(this.flgReusingInvoice=!0,this.sendPayment(e.payment_request||"")):this.store.dispatch((0,A.Rd)({payload:{uiMessage:s.m6.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",invoiceValue:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:3600,pageSize:s.IV,openModal:!1}}))}findUnsettledInvoice(){var e;return null===(e=this.invoices.invoices)||void 0===e?void 0:e.find(o=>(!o.settle_date||0==+o.settle_date)&&o.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==o.state)}sendPayment(e){this.flgInvoiceGenerated=!0,this.paymentRequest=e,this.store.dispatch((0,A.oV)("percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0?{payload:{uiMessage:s.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:"fixed",feeLimit:Math.ceil(+this.feeFormGroup.controls.feeLimit.value*+this.inputFormGroup.controls.rebalanceAmount.value/100),allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}:{payload:{uiMessage:s.m6.NO_SPINNER,paymentReq:e,outgoingChannel:this.selChannel,feeLimitType:this.feeFormGroup.controls.selFeeLimitType.value.id,feeLimit:this.feeFormGroup.controls.feeLimit.value,allowSelfPayment:!0,lastHopPubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0}}))}filterActiveChannels(){var e;return null===(e=this.activeChannels)||void 0===e?void 0:e.filter(o=>{var a,l;return o.remote_balance&&o.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&o.chan_id!==this.selChannel.chan_id&&(0===(null===(a=o.remote_alias)||void 0===a?void 0:a.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""))||0===(null===(l=o.chan_id)||void 0===l?void 0:l.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))})}onSelectedPeerChanged(){var e;if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const o=null===(e=this.activeChannels)||void 0===e?void 0:e.filter(a=>{var l,r;return(null===(l=a.remote_alias)||void 0===l?void 0:l.length)===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===(null===(r=a.remote_alias)||void 0===r?void 0:r.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""))});o&&o.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(o[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(e){return e&&e.remote_alias?e.remote_alias:e&&e.chan_id?e.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(e){this.animationDirection=e{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-rebalance"]],viewQuery:function(e,o){if(1&e&&t.Gf(Gl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxFlex","48","fxLayoutAlign","start end"],["type","text","placeholder","Receive from Peer","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","Placeholder","Fee Limits","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"placeholder","step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,ds,97,49,"div",0),t.YNc(1,_s,1,1,"ng-template",null,1,t.W1O),t.YNc(3,fs,3,1,"ng-template",null,2,t.W1O),t.YNc(5,gs,19,4,"ng-template",null,3,t.W1O),t.YNc(7,As,18,10,"div",4)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(7),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,D.BN,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,at.ZL,at.XC,u.sg,G.ey,M.gD,E.ib,E.yz,E.yK,$.Hw,J.pW,Q.ZT,u.tP,V.d,zl,u.mk,L.oO],pipes:[u.rS,u.Ov],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();function Ss(n,i){if(1&n&&(t.TgZ(0,"div",16)(1,"p",17)(2,"mat-icon",18),t._uU(3,"close"),t.qZA(),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.errorMsg)}}function Fs(n,i){if(1&n&&(t.TgZ(0,"div",27),t._UZ(1,"fa-icon",28),t.TgZ(2,"span"),t._uU(3,"Priority/Fee for force closing inactive channels cannot be modified."),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faInfoCircle)}}function ks(n,i){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function qs(n,i){1&n&&(t.TgZ(0,"mat-form-field",30),t._UZ(1,"input",31),t.qZA())}function Ns(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function Os(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",32)(1,"input",33,34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).blocks=a}),t.qZA(),t.YNc(3,Ns,2,0,"mat-error",35),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.blocks)}}function Us(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function Ms(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",32)(1,"input",36,37),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).fees=a}),t.qZA(),t.YNc(3,Us,2,0,"mat-error",35),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.fees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.fees)}}function Ps(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",19),t.YNc(1,Fs,4,1,"div",20),t.TgZ(2,"div",21)(3,"mat-form-field",22)(4,"mat-select",23),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().selTransType=a}),t.YNc(5,ks,2,2,"mat-option",24),t.qZA()(),t.YNc(6,qs,2,0,"mat-form-field",25),t.YNc(7,Os,4,4,"mat-form-field",26),t.YNc(8,Ms,4,4,"mat-form-field",26),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.channelToClose.active),t.xp6(3),t.Q6J("value",e.selTransType)("disabled",!e.channelToClose.active),t.xp6(1),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","0"===e.selTransType),t.xp6(1),t.Q6J("ngIf","1"===e.selTransType),t.xp6(1),t.Q6J("ngIf","2"===e.selTransType)}}function Is(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",38),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(1,"Clear"),t.qZA()}}function Rs(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCloseChannel()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.channelToClose.active?"Close Channel":"Force Close")}}function Ds(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(1,"Ok"),t.qZA()}}let Qs=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.store=a,this.actions=l,this.logger=r,this.transTypes=s.Dr,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=b.eHv,this.faInfoCircle=b.sqG,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.unSubs=[new d.x,new d.x]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND||e.type===s.uR.SET_CHANNELS_LND)).subscribe(e=>{if(e.type===s.uR.SET_CHANNELS_LND){const o=e.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&e.payload.status===s.Bn.ERROR&&"FetchAllChannels"===e.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+e.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const e={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(e.targetConf=this.blocks),this.fees&&(e.satPerByte=this.fees),this.store.dispatch((0,A.BL)({payload:e})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(j.eX),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-close-channel"]],decls:19,vars:7,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","tabindex","3","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","48"],["tabindex","1",3,"value","disabled","valueChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48"],["matInput","","placeholder","Default","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","2",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","ccfees","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["clchfee","ngModel"],["mat-button","","color","primary","type","reset","tabindex","3","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","4",3,"click"],["mat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),t._uU(12),t.qZA(),t.YNc(13,Ss,5,1,"div",10),t.YNc(14,Ps,9,7,"div",11),t.qZA(),t.TgZ(15,"div",12),t.YNc(16,Is,2,0,"button",13),t.YNc(17,Rs,2,1,"button",14),t.YNc(18,Ds,2,0,"button",15),t.qZA()()()()()),2&e&&(t.xp6(5),t.Oqu(o.channelToClose.active?"Close Channel":"Force Close Channel"),t.xp6(7),t.hij("",o.channelToClose.active?"Closing channel: "+(o.channelToClose.remote_alias||o.channelToClose.chan_id?o.channelToClose.remote_alias&&o.channelToClose.chan_id?o.channelToClose.remote_alias+" ("+o.channelToClose.chan_id+")":o.channelToClose.remote_alias?o.channelToClose.remote_alias:o.channelToClose.chan_id:o.channelToClose.channel_point):"Force closing channel: "+(o.channelToClose.remote_alias||o.channelToClose.chan_id?o.channelToClose.remote_alias&&o.channelToClose.chan_id?o.channelToClose.remote_alias+" ("+o.channelToClose.chan_id+")":o.channelToClose.remote_alias?o.channelToClose.remote_alias:o.channelToClose.chan_id:o.channelToClose.channel_point)," "),t.xp6(1),t.Q6J("ngIf",o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",!o.flgPendingHtlcs),t.xp6(2),t.Q6J("ngIf",o.channelToClose.active&&!o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",!o.flgPendingHtlcs),t.xp6(1),t.Q6J("ngIf",o.flgPendingHtlcs))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,p._Y,p.JL,p.F,u.O5,$.Hw,D.BN,C.KE,M.gD,u.sg,G.ey,P.Nt,p.wV,p.qQ,p.Fj,et.q,p.Q7,p.JJ,p.On,C.TO],styles:[""]}),n})();function Js(n,i){1&n&&t._UZ(0,"mat-progress-bar",30)}function Es(n,i){1&n&&(t.TgZ(0,"th",31),t._uU(1," Peer "),t.qZA())}function Hs(n,i){1&n&&t._UZ(0,"span",39)}function Ys(n,i){1&n&&t._UZ(0,"span",40)}function Bs(n,i){if(1&n&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function zs(n,i){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}const Gs=function(n){return{"max-width":n}};function Vs(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"div",33),t.YNc(2,Hs,1,0,"span",34),t.YNc(3,Ys,1,0,"span",35),t.YNc(4,Bs,2,1,"span",36),t.YNc(5,zs,2,1,"span",37),t.TgZ(6,"span",38),t._uU(7),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(6,Gs,o.screenSize===o.screenSizeEnum.XS?"10rem":o.screenSize===o.screenSizeEnum.MD?"15rem":"22rem")),t.xp6(1),t.Q6J("ngIf",e.active),t.xp6(1),t.Q6J("ngIf",!e.active),t.xp6(1),t.Q6J("ngIf",e.private),t.xp6(1),t.Q6J("ngIf",!e.private),t.xp6(2),t.Oqu(e.remote_alias||e.remote_pubkey)}}function Ws(n,i){if(1&n&&(t.TgZ(0,"th",44),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Uptime (",e.timeUnit,")")}}function Xs(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",e.uptime_str," ")}}function js(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Sats Sent "),t.qZA())}function Ks(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.total_satoshis_sent)," ")}}function $s(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Sats Received "),t.qZA())}function t1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.total_satoshis_received)," ")}}function e1(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Local Balance (Sats) "),t.qZA())}function n1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.local_balance)," ")}}function o1(n,i){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Remote Balance (Sats) "),t.qZA())}function i1(n,i){if(1&n&&(t.TgZ(0,"td",32)(1,"span",45),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij("",t.lcZ(3,1,e.remote_balance)," ")}}function a1(n,i){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Balance Score "),t.qZA())}function l1(n,i){if(1&n&&(t.TgZ(0,"td",47)(1,"div",48)(2,"mat-hint",49),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",50),t.qZA()),2&n){const e=i.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,e.balancedness||0)),t.xp6(2),t.s9C("value",e.local_balance&&e.local_balance>0?+e.local_balance/(+e.local_balance+ +e.remote_balance)*100:0)}}function s1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",51)(1,"div",52)(2,"mat-select",53),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function r1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",54),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw().onCircularRebalance(a)}),t._uU(1,"Circular Rebalance"),t.qZA()}}function c1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",54),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw().onLoopOut(a)}),t._uU(1,"Loop Out"),t.qZA()}}function p1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",55)(1,"div",52)(2,"mat-select",56),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",54),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onChannelClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onViewRemotePolicy(l)}),t._uU(7,"View Remote Fee "),t.qZA(),t.TgZ(8,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(l)}),t._uU(9,"Update Fee Policy"),t.qZA(),t.YNc(10,r1,2,0,"mat-option",57),t.YNc(11,c1,2,0,"mat-option",57),t.TgZ(12,"mat-option",54),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onChannelClose(l)}),t._uU(13,"Close Channel"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(10),t.Q6J("ngIf",+e.versionsArr[0]>0||+e.versionsArr[1]>=9),t.xp6(1),t.Q6J("ngIf",e.selNode.swapServerUrl)}}function u1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel."),t.qZA())}function m1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function d1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function h1(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function _1(n,i){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,u1,2,0,"p",59),t.YNc(2,m1,2,0,"p",59),t.YNc(3,d1,2,0,"p",59),t.YNc(4,h1,2,1,"p",59),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}const f1=function(n){return{"display-none":n}};function g1(n,i){if(1&n&&t._UZ(0,"tr",60),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,f1,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function C1(n,i){1&n&&t._UZ(0,"tr",61)}function x1(n,i){1&n&&t._UZ(0,"tr",62)}const y1=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},T1=function(){return["no_channel"]};let v1=(()=>{class n{constructor(e,o,a,l,r,h,f,x){var I,w,B,Ut,Mt,Pt;this.logger=e,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=r,this.decimalPipe=h,this.loopService=f,this.router=x,this.timeUnit="mins:secs",this.userPersonaEnum=s.ol,this.selNode={},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.versionsArr=[],this.faEye=b.Mdf,this.faEyeSlash=b.Aq,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","balancedness","actions"]):(this.flgSticky=!0,this.displayedColumns=["remote_alias","uptime","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness","actions"]),this.selFilter=(null===(B=null===(w=null===(I=this.router.getCurrentNavigation())||void 0===I?void 0:I.extras)||void 0===w?void 0:w.state)||void 0===B?void 0:B.filter)?null===(Pt=null===(Mt=null===(Ut=this.router.getCurrentNavigation())||void 0===Ut?void 0:Ut.extras)||void 0===Mt?void 0:Mt.state)||void 0===Pt?void 0:Pt.filter:""}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(T.Wi).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a;this.totalBalance=(null===(o=e.blockchainBalance)||void 0===o?void 0:o.total_balance)?+(null===(a=e.blockchainBalance)||void 0===a?void 0:a.total_balance):0}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(e.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(e)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(e){var o;this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.GET_REMOTE_POLICY,channelID:(null===(o=e.chan_id)||void 0===o?void 0:o.toString())+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,X.q)(1)).subscribe(a=>{if(!a.fee_base_msat&&!a.fee_rate_milli_msat&&!a.time_lock_delta)return!1;const l=[[{key:"fee_base_msat",value:a.fee_base_msat,title:"Base Fees (mSats)",width:25,type:s.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:s.Gi.NUMBER},{key:"fee_rate_milli_msat",value:a.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:s.Gi.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:a.time_lock_delta,title:"Time Lock Delta",width:25,type:s.Gi.NUMBER}]],r="Remote policy for Channel: "+(e.remote_alias||e.chan_id?e.remote_alias&&e.chan_id?e.remote_alias+" ("+e.chan_id+")":e.remote_alias?e.remote_alias:e.chan_id:e.channel_point);setTimeout(()=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:r,message:l}}}))},0)})}onCircularRebalance(e){this.store.dispatch((0,F.qR)({payload:{data:{message:{channels:this.channelsData,selChannel:e},component:Ls}}}))}onChannelUpdate(e){"all"===e?(this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:s.Gi.NUMBER,inputValue:1e3,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:s.Gi.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:s.Gi.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,A.pW)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.GET_CHAN_POLICY,channelID:e.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,X.q)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(e.remote_alias||e.chan_id?e.remote_alias&&e.chan_id?e.remote_alias+" ("+e.chan_id+")":e.remote_alias?e.remote_alias:e.chan_id:e.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:s.Gi.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:s.Gi.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:s.Gi.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:e.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,A.pW)({payload:a}))}})),this.applyFilter()}onChannelClose(e){e.active&&this.store.dispatch((0,A.UR)()),this.store.dispatch((0,F.qR)({payload:{data:{channel:e,component:Qs}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!0,component:St}}}))}loadChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?1:-1),this.channels=new c.by([...e]),this.channels.filterPredicate=(o,a)=>((o.active?"active":"inactive")+(o.chan_id?o.chan_id.toLowerCase():"")+(o.remote_pubkey?o.remote_pubkey.toLowerCase():"")+(o.remote_alias?o.remote_alias.toLowerCase():"")+(o.capacity?o.capacity:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"")+(o.total_satoshis_sent?o.total_satoshis_sent:"")+(o.total_satoshis_received?o.total_satoshis_received:"")+(o.commit_fee?o.commit_fee:"")+(o.private?"private":"public")).includes(a),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}calculateUptime(e){let h=60,f=1,x=0;switch(e.forEach(I=>{I.uptime&&+I.uptime>x&&(x=+I.uptime)}),!0){case x<3600:this.timeUnit="Mins:Secs",h=60,f=1;break;case x>=3600&&x<86400:this.timeUnit="Hrs:Mins",h=3600,f=60;break;case x>=86400&&x<31536e3:this.timeUnit="Days:Hrs",h=86400,f=3600;break;case x>31536e3:this.timeUnit="Yrs:Days",h=31536e3,f=86400;break;default:this.timeUnit="Mins:Secs",h=60,f=1}return e.forEach(I=>{I.uptime_str=I.uptime?this.decimalPipe.transform(Math.floor(+I.uptime/h),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+I.uptime%h/f),"2.0-0"):"---"}),e}onLoopOut(e){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[7])).subscribe(o=>{this.store.dispatch((0,F.qR)({payload:{minHeight:"56rem",data:{channel:e,minQuote:o[0],maxQuote:o[1],direction:s.$I.LOOP_OUT,component:xt}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(e){return(e/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v),t.Y36(dt.V),t.Y36(u.JJ),t.Y36(rt.W),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-open-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:39,vars:14,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","uptime"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","yellow"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,Js,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Es,2,0,"th",10),t.YNc(11,Vs,8,8,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Ws,2,1,"th",13),t.YNc(14,Xs,3,1,"td",11),t.BQk(),t.ynx(15,14),t.YNc(16,js,2,0,"th",13),t.YNc(17,Ks,4,3,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,$s,2,0,"th",13),t.YNc(20,t1,4,3,"td",11),t.BQk(),t.ynx(21,16),t.YNc(22,e1,2,0,"th",13),t.YNc(23,n1,4,3,"td",11),t.BQk(),t.ynx(24,17),t.YNc(25,o1,2,0,"th",13),t.YNc(26,i1,4,3,"td",11),t.BQk(),t.ynx(27,18),t.YNc(28,a1,2,0,"th",19),t.YNc(29,l1,6,4,"td",20),t.BQk(),t.ynx(30,21),t.YNc(31,s1,8,0,"th",22),t.YNc(32,p1,14,2,"td",23),t.BQk(),t.ynx(33,24),t.YNc(34,_1,5,4,"td",25),t.BQk(),t.YNc(35,g1,1,3,"tr",26),t.YNc(36,C1,1,0,"tr",27),t.YNc(37,x1,1,0,"tr",28),t.qZA()(),t._UZ(38,"mat-paginator",29),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(11,y1,""!==o.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(13,T1)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,K.gM,D.BN,C.bx,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-remote_alias[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-remote_alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}@media only screen and (max-width: 75em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 35%;width:35%}}@media only screen and (max-width: 56.25em){.mat-column-balancedness[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}}.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:1 1 10%;width:10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 75em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset;flex:1 1 25%;width:25%}}@media only screen and (max-width: 56.25em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}}@media only screen and (max-width: 37.5em){.mat-column-uptime[_ngcontent-%COMP%], .mat-column-local_balance[_ngcontent-%COMP%], .mat-column-remote_balance[_ngcontent-%COMP%], .mat-column-total_satoshis_sent[_ngcontent-%COMP%], .mat-column-total_satoshis_received[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 56.25em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 90%}}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),n})();const b1=["outputIdx"];function w1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Index for change output is required."),t.qZA())}function Z1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid index value."),t.qZA())}function A1(n,i){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function L1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function S1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",17)(1,"input",30,31),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().blocks=a}),t.qZA(),t.YNc(3,L1,2,0,"mat-error",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.blocks)}}function F1(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function k1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",17)(1,"input",32,33),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().fees=a}),t.qZA(),t.YNc(3,F1,2,0,"mat-error",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.fees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.fees)}}function q1(n,i){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",13),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.bumpFeeError)}}let N1=(()=>{class n{constructor(e,o,a,l,r){this.dialogRef=e,this.data=o,this.logger=a,this.dataService=l,this.snackBar=r,this.transTypes=[...s.Dr],this.selTransType="2",this.blocks=null,this.fees=null,this.outputIndex=null,this.faCopy=b.kZ_,this.faInfoCircle=b.sqG,this.faExclamationTriangle=b.eHv,this.bumpFeeError="",this.unSubs=[new d.x,new d.x]}set payReq(e){e&&(this.outputIdx=e)}ngOnInit(){var e,o;this.transTypes=this.transTypes.splice(1),this.bumpFeeChannel=this.data.pendingChannel;const a=(null===(o=null===(e=this.bumpFeeChannel.channel)||void 0===e?void 0:e.channel_point)||void 0===o?void 0:o.split(":"))||[];this.bumpFeeChannel&&this.bumpFeeChannel.channel&&(this.bumpFeeChannel.channel.txid_str=a[0]||(this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.channel_point?this.bumpFeeChannel.channel.channel_point:""),this.bumpFeeChannel.channel.output_index=+a[1]||null)}onBumpFee(){var e;return this.outputIndex===(null===(e=this.bumpFeeChannel.channel)||void 0===e?void 0:e.output_index)?(this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0):!this.outputIndex&&0!==this.outputIndex||!("1"!==this.selTransType||this.blocks&&0!==this.blocks)||!("2"!==this.selTransType||this.fees&&0!==this.fees)||void this.dataService.bumpFee(this.bumpFeeChannel&&this.bumpFeeChannel.channel&&this.bumpFeeChannel.channel.txid_str?this.bumpFeeChannel.channel.txid_str:"",this.outputIndex,this.blocks||null,this.fees||null).pipe((0,_.R)(this.unSubs[0])).subscribe({next:o=>{this.dialogRef.close(!1)},error:o=>{this.logger.error(o),this.bumpFeeError=o.message?o.message:o}})}onCopyID(e){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(nt.D),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-bump-fee"]],viewQuery:function(e,o){if(1&e&&t.Gf(b1,5),2&e){let a;t.iGM(a=t.CRH())&&(o.payReq=a.first)}},decls:48,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex.gt-sm","32","fxLayoutAlign","start end"],["matInput","","placeholder","Index for Change Output","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","32"],["tabindex","2",3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blocks","required","","tabindex","3",3,"ngModel","step","min","ngModelChange"],["blcks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Bump Fee"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return o.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),t._uU(12),t.TgZ(13,"fa-icon",10),t.NdJ("copied",function(l){return o.onCopyID(l)}),t.qZA()(),t.TgZ(14,"div",11)(15,"div",12),t._UZ(16,"fa-icon",13),t.TgZ(17,"span",14),t._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),t.TgZ(19,"div"),t._uU(20,"Before attempting fee bump ensure the following:"),t.qZA(),t.TgZ(21,"div",15),t._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),t.qZA(),t.TgZ(23,"div",15),t._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),t.qZA(),t.TgZ(25,"div",15),t._uU(26,"3: Find the index value of the change output via a block explorer."),t.qZA(),t.TgZ(27,"div",15),t._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),t.qZA(),t.TgZ(29,"div",15),t._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),t.qZA()()(),t.TgZ(31,"div",16)(32,"mat-form-field",17)(33,"input",18,19),t.NdJ("ngModelChange",function(l){return o.outputIndex=l}),t.qZA(),t.YNc(35,w1,2,0,"mat-error",20),t.YNc(36,Z1,2,0,"mat-error",20),t.qZA(),t.TgZ(37,"mat-form-field",21)(38,"mat-select",22),t.NdJ("valueChange",function(l){return o.selTransType=l})("selectionChange",function(){return o.blocks=null,o.fees=null}),t.YNc(39,A1,2,2,"mat-option",23),t.qZA()(),t.YNc(40,S1,4,4,"mat-form-field",24),t.YNc(41,k1,4,4,"mat-form-field",24),t.qZA(),t.YNc(42,q1,4,2,"div",25),t.qZA()(),t.TgZ(43,"div",26)(44,"button",27),t.NdJ("click",function(){return o.resetData()}),t._uU(45,"Clear"),t.qZA(),t.TgZ(46,"button",28),t.NdJ("click",function(){return o.onBumpFee()}),t._uU(47),t.qZA()()()()()()),2&e){const a=t.MAs(34);t.xp6(12),t.hij("Bump fee for channel point: ",null==o.bumpFeeChannel||null==o.bumpFeeChannel.channel?null:o.bumpFeeChannel.channel.channel_point," "),t.xp6(1),t.Q6J("icon",o.faCopy)("payload",null==o.bumpFeeChannel||null==o.bumpFeeChannel.channel?null:o.bumpFeeChannel.channel.txid_str),t.xp6(3),t.Q6J("icon",o.faInfoCircle),t.xp6(17),t.Q6J("ngModel",o.outputIndex)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",null==a.errors?null:a.errors.required),t.xp6(1),t.Q6J("ngIf",null==a.errors?null:a.errors.pendingChannelOutputIndex),t.xp6(2),t.Q6J("value",o.selTransType),t.xp6(1),t.Q6J("ngForOf",o.transTypes),t.xp6(1),t.Q6J("ngIf","1"===o.selTransType),t.xp6(1),t.Q6J("ngIf","2"===o.selTransType),t.xp6(1),t.Q6J("ngIf",""!==o.bumpFeeError),t.xp6(5),t.Oqu(""!==o.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,y.dn,p._Y,p.JL,p.F,D.BN,C.R9,ht.y,K.gM,C.KE,P.Nt,p.wV,p.qQ,p.Fj,et.q,p.Q7,p.JJ,p.On,u.O5,C.TO,M.gD,u.sg,G.ey],styles:[""]}),n})();function O1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function U1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function M1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",37),t._uU(1," Peer "),t.qZA())}const Tt=function(n){return{"max-width":n}};function P1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function I1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Commit Fee (Sats) "),t.qZA())}function R1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.commit_fee))}}function D1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Commit Weight "),t.qZA())}function Q1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.commit_weight))}}function J1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Capacity (Sats)"),t.qZA())}function E1(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function H1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",41),t._uU(1,"Actions"),t.qZA())}function Y1(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",42)(1,"div",43)(2,"mat-select",44),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",45),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onOpenClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",45),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onBumpFee(l)}),t._uU(7,"Bump Fee"),t.qZA()()()()}}function B1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function z1(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function G1(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function V1(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,B1,2,0,"p",47),t.YNc(2,z1,2,0,"p",47),t.YNc(3,G1,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingOpenChannels||!(null!=e.pendingOpenChannels&&e.pendingOpenChannels.data)||(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const kt=function(n){return{"display-none":n}};function W1(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingOpenChannels&&(null==e.pendingOpenChannels?null:e.pendingOpenChannels.data)&&(null==e.pendingOpenChannels||null==e.pendingOpenChannels.data?null:e.pendingOpenChannels.data.length)>0))}}function X1(n,i){1&n&&t._UZ(0,"mat-header-row")}function j1(n,i){1&n&&t._UZ(0,"mat-row",49)}function K1(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function $1(n,i){1&n&&(t.TgZ(0,"mat-header-cell",37),t._uU(1," Peer "),t.qZA())}function tr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",38),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function er(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Recovered Balance (Sats) "),t.qZA())}function nr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.recovered_balance))}}function or(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Limbo Balance (Sats) "),t.qZA())}function ir(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.limbo_balance))}}function ar(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1,"Capacity (Sats) "),t.qZA())}function lr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function sr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function rr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",52),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onForceClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function cr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function pr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function ur(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function mr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,cr,2,0,"p",47),t.YNc(2,pr,2,0,"p",47),t.YNc(3,ur,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingForceClosingChannels||!(null!=e.pendingForceClosingChannels&&e.pendingForceClosingChannels.data)||(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function dr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingForceClosingChannels&&(null==e.pendingForceClosingChannels?null:e.pendingForceClosingChannels.data)&&(null==e.pendingForceClosingChannels||null==e.pendingForceClosingChannels.data?null:e.pendingForceClosingChannels.data.length)>0))}}function hr(n,i){1&n&&t._UZ(0,"mat-header-row")}function _r(n,i){1&n&&t._UZ(0,"mat-row",49)}function fr(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function gr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",53),t._uU(1," Peer "),t.qZA())}function Cr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",54),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function xr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function yr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.local_balance))}}function Tr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function vr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.remote_balance))}}function br(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Capacity (Sats) "),t.qZA())}function wr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function Zr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function Ar(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",55),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Lr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function Sr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Fr(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function kr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,Lr,2,0,"p",47),t.YNc(2,Sr,2,0,"p",47),t.YNc(3,Fr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingClosingChannels||!(null!=e.pendingClosingChannels&&e.pendingClosingChannels.data)||(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function qr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,kt,e.pendingClosingChannels&&(null==e.pendingClosingChannels?null:e.pendingClosingChannels.data)&&(null==e.pendingClosingChannels||null==e.pendingClosingChannels.data?null:e.pendingClosingChannels.data.length)>0))}}function Nr(n,i){1&n&&t._UZ(0,"mat-header-row")}function Or(n,i){1&n&&t._UZ(0,"mat-row",49)}function Ur(n,i){1&n&&t._UZ(0,"mat-progress-bar",36)}function Mr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",53),t._uU(1," Peer "),t.qZA())}function Pr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",54),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,Tt,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(1),t.Oqu(e.channel.remote_alias)}}function Ir(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Limbo Balance (Sats) "),t.qZA())}function Rr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij("",t.lcZ(2,1,e.limbo_balance)," ")}}function Dr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Local Balance (Sats) "),t.qZA())}function Qr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.local_balance))}}function Jr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Remote Balance (Sats) "),t.qZA())}function Er(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.remote_balance))}}function Hr(n,i){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Capacity (Sats) "),t.qZA())}function Yr(n,i){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.channel.capacity))}}function Br(n,i){1&n&&(t.TgZ(0,"mat-header-cell",50),t._uU(1,"Actions"),t.qZA())}function zr(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-cell",51)(1,"button",56),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onWaitClosingClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Gr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel."),t.qZA())}function Vr(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Wr(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Xr(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,Gr,2,0,"p",47),t.YNc(2,Vr,2,0,"p",47),t.YNc(3,Wr,2,1,"p",47),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!e.pendingWaitClosingChannels||!(null!=e.pendingWaitClosingChannels&&e.pendingWaitClosingChannels.data)||(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const jr=function(n){return{"py-0":!0,"display-none":n}};function Kr(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,jr,e.pendingWaitClosingChannels&&(null==e.pendingWaitClosingChannels?null:e.pendingWaitClosingChannels.data)&&(null==e.pendingWaitClosingChannels||null==e.pendingWaitClosingChannels.data?null:e.pendingWaitClosingChannels.data.length)>0))}}function $r(n,i){1&n&&t._UZ(0,"mat-header-row")}function tc(n,i){1&n&&t._UZ(0,"mat-row",49)}const vt=function(n){return{"error-border bordered-box":n,"bordered-box":!0}},ec=function(){return["no_pending_open"]},nc=function(){return["no_pending_force_closing"]},oc=function(){return["no_pending_closing"]},ic=function(){return["no_pending_wait_closing"]};let ac=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.commonService=a,this.selNode={},this.selectedFilter="",this.information={},this.pendingChannels={},this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.pendingOpenChannelsLength=0,this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.pendingForceClosingChannelsLength=0,this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.pendingClosingChannelsLength=0,this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"],this.pendingWaitClosingChannelsLength=0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.displayedOpenColumns=["remote_alias","actions"],this.displayedForceClosingColumns=["remote_alias","actions"],this.displayedClosingColumns=["remote_alias","actions"],this.displayedWaitClosingColumns=["remote_alias","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.displayedOpenColumns=["remote_alias","commit_fee","actions"],this.displayedForceClosingColumns=["remote_alias","limbo_balance","actions"],this.displayedClosingColumns=["remote_alias","remote_balance","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","actions"]):(this.displayedOpenColumns=["remote_alias","commit_fee","commit_weight","capacity","actions"],this.displayedForceClosingColumns=["remote_alias","recovered_balance","limbo_balance","capacity","actions"],this.displayedClosingColumns=["remote_alias","local_balance","remote_balance","capacity","actions"],this.displayedWaitClosingColumns=["remote_alias","limbo_balance","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(e)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(e){const o=JSON.parse(JSON.stringify(e,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:s.Gi.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:s.Gi.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:s.Gi.NUMBER}]]}}}))}onBumpFee(e){this.store.dispatch((0,F.qR)({payload:{data:{pendingChannel:e,component:N1}}}))}onForceClosingClick(e){const o=JSON.parse(JSON.stringify(e,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:s.Gi.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:s.Gi.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:s.Gi.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:s.Gi.NUMBER}]]}}}))}onClosingClick(e){const o=JSON.parse(JSON.stringify(e,["closing_txid"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:s.Gi.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:s.Gi.NUMBER}]]}}}))}onWaitClosingClick(e){const o=JSON.parse(JSON.stringify(e,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(e.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(e.commitments,["local_txid"],2)),r={};Object.assign(r,o,a,l),this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:r.local_txid,title:"Transaction ID",width:100,type:s.Gi.STRING}],[{key:"channel_point",value:r.channel_point,title:"Channel Point",width:100,type:s.Gi.STRING}],[{key:"remote_alias",value:r.remote_alias,title:"Peer Alias",width:25,type:s.Gi.STRING},{key:"remote_node_pub",value:r.remote_node_pub,title:"Peer Node Pubkey",width:75,type:s.Gi.STRING}],[{key:"capacity",value:r.capacity,title:"Capacity",width:25,type:s.Gi.NUMBER},{key:"limbo_balance",value:r.limbo_balance,title:"Limbo Balance",width:25,type:s.Gi.NUMBER},{key:"local_balance",value:r.local_balance,title:"Local Balance",width:25,type:s.Gi.NUMBER},{key:"remote_balance",value:r.remote_balance,title:"Remote Balance",width:25,type:s.Gi.NUMBER}]]}}}))}loadOpenChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingOpenChannelsLength=e.length?e.length:0,this.pendingOpenChannels=new c.by([...e]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingOpenChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingForceClosingChannelsLength=e.length?e.length:0,this.pendingForceClosingChannels=new c.by([...e]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingForceClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingClosingChannelsLength=e.length?e.length:0,this.pendingClosingChannels=new c.by([...e]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(e){e.sort((o,a)=>o.active===a.active?0:a.active?-1:1),this.pendingWaitClosingChannelsLength=e.length?e.length:0,this.pendingWaitClosingChannels=new c.by([...e]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.pendingWaitClosingChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-pending-table"]],viewQuery:function(e,o){if(1&e&&t.Gf(Z.YE,5),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:121,vars:44,consts:[["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","remote_alias"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngStyle",4,"matCellDef"],["matColumnDef","commit_fee"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","commit_weight"],["matColumnDef","capacity"],["matColumnDef","actions"],["fxLayoutAlign","end center","class","pl-3 pr-4",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],[4,"matHeaderRowDef"],["fxLayoutAlign","stretch stretch",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","recovered_balance"],["matColumnDef","limbo_balance"],["fxLayoutAlign","end center","class","pl-4 pr-3",4,"matHeaderCellDef"],["fxLayoutAlign","end center","class","pl-4",4,"matCellDef"],["matColumnDef","no_pending_force_closing"],["class","pl-2","mat-sort-header","",4,"matHeaderCellDef"],["class","pl-2",3,"ngStyle",4,"matCellDef"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-sort-header",""],[3,"ngStyle"],["fxLayoutAlign","end center","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"pl-3","pr-4"],["fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["fxLayoutAlign","stretch stretch"],["fxLayoutAlign","end center",1,"pl-4","pr-3"],["fxLayoutAlign","end center",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","2",3,"click"],["mat-sort-header","",1,"pl-2"],[1,"pl-2",3,"ngStyle"],["mat-stroked-button","","color","primary","type","button","tabindex","3",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"span",1),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"mat-accordion",2),t.YNc(5,O1,1,0,"mat-progress-bar",3),t.TgZ(6,"mat-expansion-panel",4)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),t._uU(9),t.qZA()(),t.TgZ(10,"div",5),t.YNc(11,U1,1,0,"mat-progress-bar",3),t.TgZ(12,"table",6,7),t.ynx(14,8),t.YNc(15,M1,2,0,"mat-header-cell",9),t.YNc(16,P1,2,4,"mat-cell",10),t.BQk(),t.ynx(17,11),t.YNc(18,I1,2,0,"mat-header-cell",12),t.YNc(19,R1,3,3,"mat-cell",13),t.BQk(),t.ynx(20,14),t.YNc(21,D1,2,0,"mat-header-cell",12),t.YNc(22,Q1,3,3,"mat-cell",13),t.BQk(),t.ynx(23,15),t.YNc(24,J1,2,0,"mat-header-cell",12),t.YNc(25,E1,3,3,"mat-cell",13),t.BQk(),t.ynx(26,16),t.YNc(27,H1,2,0,"mat-header-cell",17),t.YNc(28,Y1,8,0,"mat-cell",18),t.BQk(),t.ynx(29,19),t.YNc(30,V1,4,3,"td",20),t.BQk(),t.YNc(31,W1,1,3,"tr",21),t.YNc(32,X1,1,0,"mat-header-row",22),t.YNc(33,j1,1,0,"mat-row",23),t.qZA()()(),t.YNc(34,K1,1,0,"mat-progress-bar",3),t.TgZ(35,"mat-expansion-panel",4)(36,"mat-expansion-panel-header")(37,"mat-panel-title"),t._uU(38),t.qZA()(),t.TgZ(39,"div",5)(40,"table",24,7),t.ynx(42,8),t.YNc(43,$1,2,0,"mat-header-cell",9),t.YNc(44,tr,2,4,"mat-cell",10),t.BQk(),t.ynx(45,25),t.YNc(46,er,2,0,"mat-header-cell",12),t.YNc(47,nr,3,3,"mat-cell",13),t.BQk(),t.ynx(48,26),t.YNc(49,or,2,0,"mat-header-cell",12),t.YNc(50,ir,3,3,"mat-cell",13),t.BQk(),t.ynx(51,15),t.YNc(52,ar,2,0,"mat-header-cell",12),t.YNc(53,lr,3,3,"mat-cell",13),t.BQk(),t.ynx(54,16),t.YNc(55,sr,2,0,"mat-header-cell",27),t.YNc(56,rr,3,0,"mat-cell",28),t.BQk(),t.ynx(57,29),t.YNc(58,mr,4,3,"td",20),t.BQk(),t.YNc(59,dr,1,3,"tr",21),t.YNc(60,hr,1,0,"mat-header-row",22),t.YNc(61,_r,1,0,"mat-row",23),t.qZA()()(),t.YNc(62,fr,1,0,"mat-progress-bar",3),t.TgZ(63,"mat-expansion-panel",4)(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66),t.qZA()(),t.TgZ(67,"div",5)(68,"table",24,7),t.ynx(70,8),t.YNc(71,gr,2,0,"mat-header-cell",30),t.YNc(72,Cr,2,4,"mat-cell",31),t.BQk(),t.ynx(73,32),t.YNc(74,xr,2,0,"mat-header-cell",12),t.YNc(75,yr,3,3,"mat-cell",13),t.BQk(),t.ynx(76,33),t.YNc(77,Tr,2,0,"mat-header-cell",12),t.YNc(78,vr,3,3,"mat-cell",13),t.BQk(),t.ynx(79,15),t.YNc(80,br,2,0,"mat-header-cell",12),t.YNc(81,wr,3,3,"mat-cell",13),t.BQk(),t.ynx(82,16),t.YNc(83,Zr,2,0,"mat-header-cell",27),t.YNc(84,Ar,3,0,"mat-cell",28),t.BQk(),t.ynx(85,34),t.YNc(86,kr,4,3,"td",20),t.BQk(),t.YNc(87,qr,1,3,"tr",21),t.YNc(88,Nr,1,0,"mat-header-row",22),t.YNc(89,Or,1,0,"mat-row",23),t.qZA()()(),t.YNc(90,Ur,1,0,"mat-progress-bar",3),t.TgZ(91,"mat-expansion-panel",4)(92,"mat-expansion-panel-header")(93,"mat-panel-title"),t._uU(94),t.qZA()(),t.TgZ(95,"div",5)(96,"table",24,7),t.ynx(98,8),t.YNc(99,Mr,2,0,"mat-header-cell",30),t.YNc(100,Pr,2,4,"mat-cell",31),t.BQk(),t.ynx(101,26),t.YNc(102,Ir,2,0,"mat-header-cell",12),t.YNc(103,Rr,3,3,"mat-cell",13),t.BQk(),t.ynx(104,32),t.YNc(105,Dr,2,0,"mat-header-cell",12),t.YNc(106,Qr,3,3,"mat-cell",13),t.BQk(),t.ynx(107,33),t.YNc(108,Jr,2,0,"mat-header-cell",12),t.YNc(109,Er,3,3,"mat-cell",13),t.BQk(),t.ynx(110,15),t.YNc(111,Hr,2,0,"mat-header-cell",12),t.YNc(112,Yr,3,3,"mat-cell",13),t.BQk(),t.ynx(113,16),t.YNc(114,Br,2,0,"mat-header-cell",27),t.YNc(115,zr,3,0,"mat-cell",28),t.BQk(),t.ynx(116,35),t.YNc(117,Xr,4,3,"td",20),t.BQk(),t.YNc(118,Kr,1,3,"tr",21),t.YNc(119,$r,1,0,"mat-header-row",22),t.YNc(120,tc,1,0,"mat-row",23),t.qZA()()()()()),2&e&&(t.xp6(2),t.hij("Total Limbo Balance: ",t.lcZ(3,30,o.pendingChannels.total_limbo_balance)," Sats"),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Open (",o.pendingOpenChannelsLength,")"),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.pendingOpenChannels)("ngClass",t.VKq(32,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(34,ec)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedOpenColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedOpenColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Force Closing (",o.pendingForceClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingForceClosingChannels)("ngClass",t.VKq(35,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(37,nc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedForceClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedForceClosingColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Pending Closing (",o.pendingClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingClosingChannels)("ngClass",t.VKq(38,vt,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(40,oc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedClosingColumns),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(4),t.hij("Waiting Close (",o.pendingWaitClosingChannelsLength,")"),t.xp6(2),t.Q6J("dataSource",o.pendingWaitClosingChannels)("ngClass",t.VKq(41,vt,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(43,ic)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedWaitClosingColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedWaitClosingColumns))},directives:[m.xw,E.pp,u.O5,J.pW,E.ib,E.yz,E.yK,m.Wh,m.yH,z.$V,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,q.lW],pipes:[u.JJ],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}),n})();function lc(n,i){1&n&&t._UZ(0,"mat-progress-bar",27)}function sc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1," Close Type "),t.qZA())}function rc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"div",30)(2,"mat-icon",31),t._uU(3,"info_outline"),t.qZA(),t._uU(4),t.qZA()()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(2),t.Q6J("matTooltip",o.channelClosureType[e.close_type].tooltip),t.xp6(2),t.hij(" ",o.channelClosureType[e.close_type].name," ")}}function cc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1," Peer "),t.qZA())}const pc=function(n){return{"max-width":n}};function uc(n,i){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,pc,o.screenSize===o.screenSizeEnum.XS?"10rem":"20rem")),t.xp6(1),t.hij(" ",e.remote_alias," ")}}function mc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Capacity "),t.qZA())}function dc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.capacity)," ")}}function hc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Close Height "),t.qZA())}function _c(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.close_height)," ")}}function fc(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Settled Balance "),t.qZA())}function gc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",34),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,e.settled_balance)," ")}}function Cc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",35)(1,"div",36)(2,"mat-select",37),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",38),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function xc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",39)(1,"span",34)(2,"button",40),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onClosedChannelClick(r,a)}),t._uU(3,"View Info"),t.qZA()()()}}function yc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No closed channel available."),t.qZA())}function Tc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting closed channels..."),t.qZA())}function vc(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function bc(n,i){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,yc,2,0,"p",42),t.YNc(2,Tc,2,0,"p",42),t.YNc(3,vc,2,1,"p",42),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.closedChannels&&e.closedChannels.data)||(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const wc=function(n){return{"display-none":n}};function Zc(n,i){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,wc,(null==e.closedChannels?null:e.closedChannels.data)&&(null==e.closedChannels||null==e.closedChannels.data?null:e.closedChannels.data.length)>0))}}function Ac(n,i){1&n&&t._UZ(0,"tr",44)}function Lc(n,i){1&n&&t._UZ(0,"tr",45)}const Sc=function(n){return{"error-border":n,"overflow-auto":!0}},Fc=function(){return["no_closed_channel"]};let kc=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.commonService=a,this.channelClosureType=s.HW,this.faHistory=b.qO$,this.displayedColumns=[],this.closedChannelsData=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unsub=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["remote_alias","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["close_type","remote_alias","settled_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["close_type","remote_alias","capacity","close_height","settled_balance","actions"])}ngOnInit(){this.store.select(T.P2).pipe((0,_.R)(this.unsub[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=e.closedChannels,this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(e)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}onClosedChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[e.close_type].name,title:"Close Type",width:30,type:s.Gi.STRING},{key:"settled_balance",value:e.settled_balance,title:"Settled Balance",width:30,type:s.Gi.NUMBER},{key:"time_locked_balance",value:e.time_locked_balance,title:"Time Locked Balance",width:40,type:s.Gi.NUMBER}],[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:30},{key:"capacity",value:e.capacity,title:"Capacity",width:30,type:s.Gi.NUMBER},{key:"close_height",value:e.close_height,title:"Close Height",width:40,type:s.Gi.NUMBER}],[{key:"remote_alias",value:e.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:e.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:e.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:e.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:s.Gi.STRING}]]}}}))}loadClosedChannelsTable(e){this.closedChannels=new c.by([...e]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.closedChannels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unsub.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-closed-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:33,vars:14,consts:[["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,lc,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,sc,2,0,"th",10),t.YNc(11,rc,5,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,cc,2,0,"th",10),t.YNc(14,uc,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,mc,2,0,"th",15),t.YNc(17,dc,4,3,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,hc,2,0,"th",15),t.YNc(20,_c,4,3,"td",11),t.BQk(),t.ynx(21,17),t.YNc(22,fc,2,0,"th",15),t.YNc(23,gc,4,3,"td",11),t.BQk(),t.ynx(24,18),t.YNc(25,Cc,6,0,"th",19),t.YNc(26,xc,4,0,"td",20),t.BQk(),t.ynx(27,21),t.YNc(28,bc,4,3,"td",22),t.BQk(),t.YNc(29,Zc,1,3,"tr",23),t.YNc(30,Ac,1,0,"tr",24),t.YNc(31,Lc,1,0,"tr",25),t.qZA()(),t._UZ(32,"mat-paginator",26),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.closedChannels)("ngClass",t.VKq(11,Sc,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(13,Fc)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,$.Hw,K.gM,u.PC,L.Zl,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-close_type[_ngcontent-%COMP%]{flex:0 0 16%;min-width:5rem}.mat-column-remote_alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function qc(n,i){1&n&&t._UZ(0,"mat-progress-bar",27)}function Nc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1,"Amount (Sats)"),t.qZA())}function Oc(n,i){if(1&n&&(t.TgZ(0,"span",33),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,null==e?null:e.amount)," ")}}function Uc(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Oc,3,3,"span",32),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Mc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",30),t._uU(2),t.qZA(),t.YNc(3,Uc,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" Active HTLCs: ",null==e||null==e.pending_htlcs?null:e.pending_htlcs.length," "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Pc(n,i){1&n&&(t.TgZ(0,"th",28),t._uU(1,"Alias/Incoming"),t.qZA())}function Ic(n,i){if(1&n&&(t.TgZ(0,"span",30),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null!=e&&e.incoming?"Yes":"No"," ")}}function Rc(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ic,2,1,"span",34),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Dc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",30),t._uU(2),t.qZA(),t.YNc(3,Rc,2,1,"ng-container",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(null==e?null:e.remote_alias),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Qc(n,i){1&n&&(t.TgZ(0,"th",35)(1,"span",36),t._uU(2,"Expiration Height"),t.qZA()())}function Jc(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e?null:e.expiration_height,"1.0-0")," ")}}function Ec(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Jc,3,4,"span",37),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Hc(n,i){if(1&n&&(t.TgZ(0,"td",29)(1,"span",36),t._uU(2),t.qZA(),t.YNc(3,Ec,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(" "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Yc(n,i){1&n&&(t.TgZ(0,"th",38)(1,"span",36),t._uU(2,"Hash Lock"),t.qZA()())}function Bc(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.hash_lock," ")}}function zc(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Bc,2,1,"span",37),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function Gc(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",36),t._uU(2),t.qZA(),t.YNc(3,zc,2,1,"span",31),t.qZA()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(" "),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Vc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Wc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",45)(1,"button",48),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2).$implicit;return t.oxw().onHTLCClick(l,r)}),t._uU(2),t.qZA()()}if(2&n){const e=i.index;t.xp6(2),t.hij("View ",e+1,"")}}function Xc(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Wc,3,1,"div",47),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.pending_htlcs)}}function jc(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"span",45)(2,"button",46),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return l.is_expanded=!l.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,Xc,2,1,"div",31),t.qZA()}if(2&n){const e=i.$implicit;t.xp6(3),t.Oqu(e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",e.is_expanded)}}function Kc(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No active htlc available."),t.qZA())}function $c(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting active htlcs..."),t.qZA())}function t2(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function e2(n,i){if(1&n&&(t.TgZ(0,"td",49),t.YNc(1,Kc,2,0,"p",31),t.YNc(2,$c,2,0,"p",31),t.YNc(3,t2,2,1,"p",31),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const n2=function(n){return{"display-none":n}};function o2(n,i){if(1&n&&t._UZ(0,"tr",50),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,n2,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function i2(n,i){1&n&&t._UZ(0,"tr",51)}function a2(n,i){1&n&&t._UZ(0,"tr",52)}const l2=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},s2=function(){return["no_channel"]};let r2=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["amount","incoming","expiration_height","actions"]):(this.flgSticky=!0,this.displayedColumns=["amount","incoming","expiration_height","hash_lock","actions"])}ngOnInit(){this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=(null===(o=e.channels)||void 0===o?void 0:o.filter(a=>a.pending_htlcs&&a.pending_htlcs.length>0))||[],this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:s.Gi.STRING}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER},{key:"incoming",value:e.incoming?"Yes":"No",title:"Incoming",width:50,type:s.Gi.STRING}],[{key:"expiration_height",value:e.expiration_height,title:"Expiration Height",width:50,type:s.Gi.NUMBER},{key:"hash_lock",value:e.hash_lock,title:"Hash Lock",width:50,type:s.Gi.STRING}]]}}}))}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!0,component:St}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadHTLCsTable(e){this.channels=new c.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{var l,r,h,f;switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(l=this.sort)||void 0===l?void 0:l.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",null===(r=this.sort)||void 0===r?void 0:r.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(h=this.sort)||void 0===h?void 0:h.direction),o;case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",null===(f=this.sort)||void 0===f?void 0:f.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>{var l;return((o.remote_alias?o.remote_alias.toLowerCase():"")+(null===(l=o.pending_htlcs)||void 0===l?void 0:l.map(h=>JSON.stringify(h)+(h.incoming?"yes":"no")))).includes(a)},this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){const e=JSON.parse(JSON.stringify(this.channels.data));return null==e?void 0:e.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("HTLCs")}])],decls:30,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","expiration_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","",1,"px-2"],["fxLayoutAlign","end center"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"mat-form-field",3)(4,"input",4),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(5,"div",5),t.YNc(6,qc,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Nc,2,0,"th",10),t.YNc(11,Mc,4,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Pc,2,0,"th",10),t.YNc(14,Dc,4,2,"td",11),t.BQk(),t.ynx(15,13),t.YNc(16,Qc,3,0,"th",14),t.YNc(17,Hc,4,2,"td",11),t.BQk(),t.ynx(18,15),t.YNc(19,Yc,3,0,"th",16),t.YNc(20,Gc,4,2,"td",17),t.BQk(),t.ynx(21,18),t.YNc(22,Vc,6,0,"th",19),t.YNc(23,jc,5,2,"td",20),t.BQk(),t.ynx(24,21),t.YNc(25,e2,4,3,"td",22),t.BQk(),t.YNc(26,o2,1,3,"tr",23),t.YNc(27,i2,1,0,"tr",24),t.YNc(28,a2,1,0,"tr",25),t.qZA()(),t._UZ(29,"mat-paginator",26),t.qZA()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(11,l2,""!==o.errorMessage)),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(13,s2)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.sg,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-amount[_ngcontent-%COMP%], .mat-column-expiration_height[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-incoming[_ngcontent-%COMP%], .mat-column-hash_lock[_ngcontent-%COMP%]{flex:0 0 25%;width:25%;text-overflow:ellipsis}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}"]}),n})();function c2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Wallet password is required."),t.qZA())}let p2=(()=>{class n{constructor(e){this.store=e,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,A.xG)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-unlock-wallet"]],decls:12,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","placeholder","Password","name","walletPassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(l){return o.walletPassword=l}),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5,"Enter Wallet Password"),t.qZA(),t.YNc(6,c2,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return o.onUnlockWallet()}),t._uU(11,"Unlock Wallet"),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.walletPassword),t.xp6(3),t.Q6J("ngIf",!o.walletPassword))},directives:[m.xw,p._Y,p.JL,p.F,m.Wh,C.KE,m.yH,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,C.bx,u.O5,C.TO,q.lW],styles:[""]}),n})();var u2=g(1555);function m2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",5),t._uU(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),t.qZA(),t.TgZ(4,"div",6)(5,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.proceed=!1,a.warnRes=!0}),t._uU(6,"Do Not Proceed"),t.qZA(),t.TgZ(7,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.proceed=!0,a.warnRes=!0}),t._uU(8,"Proceed"),t.qZA()()()()}}function d2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._uU(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),t.qZA(),t.TgZ(3,"div",6)(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().warnRes=!1}),t._uU(5,"Go Back"),t.qZA()()()}}function h2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function _2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be at least 8 characters in length."),t.qZA())}function f2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirm password is required."),t.qZA())}function g2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Confirm password must be at least 8 characters in length."),t.qZA())}function C2(n,i){1&n&&(t.TgZ(0,"div",41)(1,"mat-icon",42),t._uU(2,"cancel"),t.qZA(),t._uU(3,"Passwords do not match. "),t.qZA())}function x2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Cipher seed is required."),t.qZA())}function y2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),t.qZA())}function T2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Passphrase is required."),t.qZA())}function v2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"vpn_key"),t.qZA())}function b2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"swap_calls"),t.qZA())}function w2(n,i){1&n&&(t.TgZ(0,"mat-icon"),t._uU(1,"fingerprint"),t.qZA())}function Z2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-vertical-stepper",12,13)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16),t._UZ(5,"input",17),t.TgZ(6,"mat-hint"),t._uU(7,"Enter Wallet Password"),t.qZA(),t.YNc(8,h2,2,0,"mat-error",1),t.YNc(9,_2,2,0,"mat-error",1),t.qZA(),t.TgZ(10,"mat-form-field",16),t._UZ(11,"input",18),t.TgZ(12,"mat-hint"),t._uU(13,"Confirm Wallet Password"),t.qZA(),t.YNc(14,f2,2,0,"mat-error",1),t.YNc(15,g2,2,0,"mat-error",1),t.qZA(),t.YNc(16,C2,4,0,"div",19),t.TgZ(17,"div",20)(18,"button",21),t._uU(19,"Next"),t.qZA()()()(),t.TgZ(20,"mat-step",22)(21,"form",23)(22,"div",24)(23,"mat-slide-toggle",25),t._uU(24,"Existing Cipher"),t.qZA(),t.TgZ(25,"mat-form-field",26),t._UZ(26,"input",27),t.TgZ(27,"mat-hint"),t._uU(28,"Cipher Seed"),t.qZA(),t.YNc(29,x2,2,0,"mat-error",1),t.YNc(30,y2,2,0,"mat-error",1),t.qZA()(),t.TgZ(31,"div",28)(32,"button",29),t._uU(33,"Back"),t.qZA(),t.TgZ(34,"button",30),t._uU(35,"Next"),t.qZA()()()(),t.TgZ(36,"mat-step",31)(37,"form",23)(38,"div",24)(39,"mat-slide-toggle",32),t._uU(40,"Existing Passphrase"),t.qZA(),t.TgZ(41,"mat-form-field",33),t._UZ(42,"input",34),t.TgZ(43,"mat-hint"),t._uU(44,"Enter Passphrase"),t.qZA(),t.YNc(45,T2,2,0,"mat-error",1),t.qZA()(),t.TgZ(46,"div",28)(47,"button",35),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(48,"Clear"),t.qZA(),t.TgZ(49,"button",36),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",37),t.NdJ("click",function(){return t.CHM(e),t.oxw().onInitWallet()}),t._uU(52,"Initialize Wallet"),t.qZA()()()(),t.YNc(53,v2,2,0,"ng-template",38),t.YNc(54,b2,2,0,"ng-template",39),t.YNc(55,w2,2,0,"ng-template",40),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.passwordFormGroup),t.xp6(1),t.Q6J("formGroup",e.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletPassword.errors?null:e.passwordFormGroup.controls.initWalletPassword.errors.minlength),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:e.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),t.xp6(1),t.Q6J("ngIf",(null==e.passwordFormGroup.errors?null:e.passwordFormGroup.errors.unmatchedPasswords)&&(e.passwordFormGroup.controls.initWalletPassword.touched||e.passwordFormGroup.controls.initWalletPassword.dirty)&&(e.passwordFormGroup.controls.initWalletConfirmPassword.touched||e.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),t.xp6(4),t.Q6J("stepControl",e.cipherFormGroup),t.xp6(1),t.Q6J("formGroup",e.cipherFormGroup),t.xp6(2),t.Q6J("labelPosition","before"),t.xp6(6),t.Q6J("ngIf",null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.required),t.xp6(1),t.Q6J("ngIf",!(null!=e.cipherFormGroup.controls.cipherSeed.errors&&e.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==e.cipherFormGroup.controls.cipherSeed.errors?null:e.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),t.xp6(6),t.Q6J("stepControl",e.passphraseFormGroup),t.xp6(1),t.Q6J("formGroup",e.passphraseFormGroup),t.xp6(2),t.Q6J("labelPosition","before"),t.xp6(6),t.Q6J("ngIf",null==e.passphraseFormGroup.controls.passphrase.errors?null:e.passphraseFormGroup.controls.passphrase.errors.required)}}function A2(n,i){if(1&n&&(t.TgZ(0,"span",48),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}function L2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",43),t._uU(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),t.qZA(),t.TgZ(4,"div",44),t.YNc(5,A2,2,1,"span",45),t.qZA(),t.TgZ(6,"div",46),t._uU(7,"Wallet initialization is done."),t.qZA(),t.TgZ(8,"div",46),t._uU(9,"The node will be usable only after LND has synced completely with the network."),t.qZA(),t.TgZ(10,"div",46),t._uU(11,"Click continue only after writing down the seed."),t.qZA(),t.TgZ(12,"div",6)(13,"button",47),t.NdJ("click",function(){return t.CHM(e),t.oxw().onGoToHome()}),t._uU(14,"Go To Home"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(5),t.Q6J("ngForOf",e.genSeedResponse)}}function S2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",46),t._uU(3,"Something went wrong! Unable to initialize wallet!"),t.qZA(),t.TgZ(4,"div",6)(5,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(6,"Restart"),t.qZA()()()()}}function F2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"form",4)(2,"div",46),t._uU(3,"Wallet recovery is done."),t.qZA(),t.TgZ(4,"div",46),t._uU(5,"The node will be usable only after LND has synced completely with the network."),t.qZA(),t.TgZ(6,"div",6)(7,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().onGoToHome()}),t._uU(8,"Go To Home"),t.qZA()()()()}}function k2(n){const i=n.get("initWalletPassword"),e=n.get("initWalletConfirmPassword");return i&&e&&i.value!==e.value?{unmatchedPasswords:!0}:null}function q2(n){const i=n.value.toString().trim().split(",")||[];return i&&24!==i.length?{invalidCipher:!0}:null}let N2=(()=>{class n{constructor(e,o,a){this.store=e,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[p.kI.required,p.kI.minLength(8)]],initWalletConfirmPassword:["",[p.kI.required,p.kI.minLength(8)]]},{validators:k2}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[q2]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,_.R)(this.unsubs[0])).subscribe(e=>{e?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,_.R)(this.unsubs[1])).subscribe(e=>{e?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,_.R)(this.unsubs[2])).subscribe(e=>{this.initWalletResponse=e}),this.lndEffects.genSeedResponse.pipe((0,_.R)(this.unsubs[3])).subscribe(e=>{this.genSeedResponse=e,this.store.dispatch((0,A.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const e=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,A.y2)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:e}}))}else this.store.dispatch((0,A.fu)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,F.tw)()),this.store.dispatch((0,A.sQ)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(p.qu),t.Y36(ot.l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-initialize-wallet"]],viewQuery:function(e,o){if(1&e&&t.Gf(Y.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},features:[t._Bn([{provide:u2.gx,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["stepper",""],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","placeholder","Confirm Password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","placeholder","Comma separated array of 24 words cipher seed","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet",3,"labelPosition"],["fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","placeholder","Passphrase","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,m2,9,0,"div",1),t.YNc(2,d2,6,0,"div",2),t.YNc(3,Z2,56,17,"mat-vertical-stepper",3),t.YNc(4,L2,15,1,"div",1),t.YNc(5,S2,7,0,"div",1),t.YNc(6,F2,9,0,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.insecureLND&&!o.warnRes),t.xp6(1),t.Q6J("ngIf",o.warnRes&&!o.proceed),t.xp6(1),t.Q6J("ngIf",(!o.insecureLND||o.warnRes&&o.proceed)&&o.genSeedResponse.length<=0&&""===o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length>0&&""!==o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length>0&&""===o.initWalletResponse),t.xp6(1),t.Q6J("ngIf",o.genSeedResponse.length<=0&&""!==o.initWalletResponse))},directives:[m.xw,u.O5,p._Y,p.JL,p.F,m.Wh,m.yH,q.lW,Y.Vq,Y.C0,p.sg,C.KE,P.Nt,p.Fj,p.JJ,p.u,p.Q7,C.bx,C.TO,$.Hw,Y.Ic,ct.Rr,Y.fd,Y.z9,u.sg],styles:[""]}),n})(),O2=(()=>{class n{constructor(){this.faWallet=b.X5K}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-wallet"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["label","Unlock"],["label","Initialize"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Wallet"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group")(8,"mat-tab",5),t._UZ(9,"rtl-unlock-wallet"),t.qZA(),t.TgZ(10,"mat-tab",6),t._UZ(11,"rtl-initialize-wallet"),t.qZA()()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faWallet))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.SP,R.uX,p2,N2],styles:[""]}),n})();var U2=g(1365);function M2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let P2=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.faExchangeAlt=b.Ssp,this.faChartPie=b.OS1,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1]),(0,U2.M)(this.store.select(T.$k))).subscribe(([o,a])=>{this.currencyUnits=(null==a?void 0:a.currencyUnits)||[],this.balances=(null==a?void 0:a.userPersona)===s.ol.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,M2,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function I2(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let R2=(()=>{class n{constructor(e){this.router=e,this.faSearch=b.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,I2,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faSearch),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function D2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination pubkey is required."),t.qZA())}function Q2(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function J2(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function E2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Hop "),t.qZA())}function H2(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.hop_sequence," ")}}function Y2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Peer "),t.qZA())}const B2=function(n){return{"max-width":n}};function z2(n,i){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,B2,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.hij(" ",null==e?null:e.pubkey_alias," ")}}function G2(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1," Channel "),t.qZA())}function V2(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.chan_id," ")}}function W2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Capacity (Sats) "),t.qZA())}function X2(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.chan_capacity),"")}}function j2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Amount To Fwd (Sats) "),t.qZA())}function K2(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.amt_to_forward)," ")}}function $2(n,i){1&n&&(t.TgZ(0,"th",41),t._uU(1," Fee (mSats) "),t.qZA())}function t3(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.fee_msat)," ")}}function e3(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function n3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onHopClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function o3(n,i){1&n&&t._UZ(0,"tr",46)}function i3(n,i){1&n&&t._UZ(0,"tr",47)}const a3=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};let l3=(()=>{class n{constructor(e,o,a){this.store=e,this.lndEffects=o,this.commonService=a,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=b.FpQ,this.faExclamationTriangle=b.eHv,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["pubkey_alias","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","fee_msat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat","actions"])}ngOnInit(){this.lndEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.qrHops=new c.by([]),e.routes&&e.routes.length&&e.routes.length>0&&e.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new c.by([...e.routes[0].hops]),this.qrHops.data=e.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new c.by([]),this.flgLoading[0]=!0,this.store.dispatch((0,A.WO)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:e.hop_sequence,title:"Sequence",width:33,type:s.Gi.NUMBER},{key:"amt_to_forward",value:e.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:34,type:s.Gi.NUMBER}],[{key:"chan_capacity",value:e.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:s.Gi.NUMBER},{key:"expiry",value:e.expiry,title:"Expiry",width:50,type:s.Gi.NUMBER}],[{key:"pubkey_alias",value:e.pubkey_alias,title:"Peer Alias",width:50,type:s.Gi.STRING},{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:s.Gi.STRING}],[{key:"pub_key",value:e.pub_key,title:"Peer Pubkey",width:100,type:s.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-query-routes"]],viewQuery:function(e,o){if(1&e&&t.Gf(Z.YE,5),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first)}},decls:51,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","chan_id"],["matColumnDef","chan_capacity"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-cell","",1,"pl-4"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(a),t.MAs(2).form.valid&&o.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(r){return o.destinationPubkey=r}),t.qZA(),t.YNc(10,D2,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(r){return o.amount=r}),t.qZA(),t.YNc(13,Q2,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return o.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.TgZ(24,"div",18),t.YNc(25,J2,1,0,"mat-progress-bar",19),t.TgZ(26,"table",20,21),t.ynx(28,22),t.YNc(29,E2,2,0,"th",23),t.YNc(30,H2,2,1,"td",24),t.BQk(),t.ynx(31,25),t.YNc(32,Y2,2,0,"th",23),t.YNc(33,z2,2,4,"td",26),t.BQk(),t.ynx(34,27),t.YNc(35,G2,2,0,"th",23),t.YNc(36,V2,2,1,"td",24),t.BQk(),t.ynx(37,28),t.YNc(38,W2,2,0,"th",29),t.YNc(39,X2,4,3,"td",24),t.BQk(),t.ynx(40,30),t.YNc(41,j2,2,0,"th",29),t.YNc(42,K2,4,3,"td",24),t.BQk(),t.ynx(43,31),t.YNc(44,$2,2,0,"th",29),t.YNc(45,t3,4,3,"td",24),t.BQk(),t.ynx(46,32),t.YNc(47,e3,3,0,"th",33),t.YNc(48,n3,3,0,"td",34),t.BQk(),t.YNc(49,o3,1,0,"tr",35),t.YNc(50,i3,1,0,"tr",36),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",o.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",o.destinationPubkey),t.xp6(2),t.Q6J("ngIf",!o.destinationPubkey),t.xp6(2),t.Q6J("ngModel",o.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!o.amount),t.xp6(8),t.Q6J("icon",o.faRoute),t.xp6(4),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.qrHops)("ngClass",t.VKq(14,a3,"error"===o.flgLoading[0])),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns))},directives:[m.xw,m.yH,p._Y,p.JL,p.F,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.Q7,p.JJ,p.On,u.O5,C.TO,p.wV,p.qQ,et.q,q.lW,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,c.as,c.XQ,c.nj,c.Gk],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function s3(n,i){if(1&n&&(t.TgZ(0,"span",9),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.AsE("",o.nodeFeaturesEnum[e.value.name]||e.value.name,": ",e.value.is_required?"Mandatory":"Optional","")}}function r3(n,i){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Network"),t.qZA())}function c3(n,i){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.network," ")}}function p3(n,i){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Address"),t.qZA())}function u3(n,i){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.addr," ")}}function m3(n,i){1&n&&(t.TgZ(0,"th",29)(1,"span",30),t._uU(2,"Actions"),t.qZA()())}function d3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",31)(1,"span",30)(2,"button",32),t.NdJ("copied",function(a){return t.CHM(e),t.oxw(2).onCopyNodeURI(a)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(2),t.Q6J("payload",o.lookupResult.node.pub_key+"@"+e.addr)}}function h3(n,i){1&n&&t._UZ(0,"tr",33)}function _3(n,i){1&n&&t._UZ(0,"tr",34)}const f3=function(n){return{"background-color":n}};function g3(n,i){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",10),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Last Update"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Total Capacity (Sats)"),t.qZA(),t.TgZ(26,"span",6),t._uU(27),t.ALo(28,"number"),t.qZA()()(),t._UZ(29,"mat-divider",10),t.TgZ(30,"div",3)(31,"div",4)(32,"h4",5),t._uU(33,"Number of Channels"),t.qZA(),t.TgZ(34,"span",6),t._uU(35),t.ALo(36,"number"),t.qZA()(),t.TgZ(37,"div",11)(38,"h4",5),t._uU(39,"Features"),t.qZA(),t.YNc(40,s3,2,2,"span",12),t.ALo(41,"keyvalue"),t.qZA()(),t._UZ(42,"mat-divider",10),t.TgZ(43,"div",13)(44,"h4",14),t._uU(45,"Addresses"),t.qZA(),t.TgZ(46,"div",15)(47,"table",16,17),t.ynx(49,18),t.YNc(50,r3,2,0,"th",19),t.YNc(51,c3,2,1,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,p3,2,0,"th",19),t.YNc(54,u3,2,1,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,m3,3,0,"th",23),t.YNc(57,d3,4,1,"td",24),t.BQk(),t.YNc(58,h3,1,0,"tr",25),t.YNc(59,_3,1,0,"tr",26),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(e.lookupResult.node.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(24,f3,null==e.lookupResult.node?null:e.lookupResult.node.color)),t.xp6(1),t.Oqu(null==e.lookupResult.node?null:e.lookupResult.node.color),t.xp6(5),t.Oqu(e.lookupResult.node.pub_key),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,15,1e3*e.lookupResult.node.last_update,"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(t.lcZ(28,18,e.lookupResult.total_capacity)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(36,20,e.lookupResult.num_channels)),t.xp6(5),t.Q6J("ngForOf",t.lcZ(41,22,e.lookupResult.node.features)),t.xp6(2),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.lookupResult.node.addresses),t.xp6(11),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let C3=(()=>{class n{constructor(e,o){this.logger=e,this.snackBar=o,this.nodeFeaturesEnum=s.hZ,this.displayedColumns=["network","addr","actions"]}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(it.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["table",""],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"pl-1"],["fxLayoutAlign","end center"],["mat-cell","",1,"pl-1"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&t.YNc(0,g3,60,26,"div",0),2&e&&t.Q6J("ngIf",o.lookupResult)},directives:[u.O5,m.xw,V.d,m.yH,m.Wh,u.PC,L.Zl,u.sg,z.$V,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,q.lW,ht.y,c.as,c.XQ,c.nj,c.Gk],pipes:[u.uU,u.JJ,u.Nd],styles:[""]}),n})();function x3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 1"),t.qZA())}function y3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 1 (Your Node)"),t.qZA())}function T3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 2"),t.qZA())}function v3(n,i){1&n&&(t.TgZ(0,"h3",15),t._uU(1,"Node 2 (Your Node)"),t.qZA())}function b3(n,i){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Channel Id"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.qZA()(),t.TgZ(8,"div",7)(9,"h4",5),t._uU(10,"Channel Point"),t.qZA(),t.TgZ(11,"span",6),t._uU(12),t.qZA()()(),t._UZ(13,"mat-divider",8),t.TgZ(14,"div",3)(15,"div",4)(16,"h4",5),t._uU(17,"Last Update"),t.qZA(),t.TgZ(18,"span",6),t._uU(19),t.ALo(20,"date"),t.qZA()(),t.TgZ(21,"div",7)(22,"h4",5),t._uU(23,"Capacity (Sats)"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA()()(),t._UZ(27,"mat-divider",8),t.TgZ(28,"div",9)(29,"div",10)(30,"div",11),t.YNc(31,x3,2,0,"h3",12),t.YNc(32,y3,2,0,"h3",12),t.qZA(),t._UZ(33,"mat-divider",8),t.TgZ(34,"div",13)(35,"h4",5),t._uU(36,"Pubkey"),t.qZA(),t.TgZ(37,"span",6),t._uU(38),t.qZA()(),t._UZ(39,"mat-divider",8),t.TgZ(40,"div",14)(41,"h4",5),t._uU(42,"Time Lock Delta"),t.qZA(),t.TgZ(43,"span",6),t._uU(44),t.qZA()(),t._UZ(45,"mat-divider",8),t.TgZ(46,"div",14)(47,"h4",5),t._uU(48,"Min HTLC"),t.qZA(),t.TgZ(49,"span",6),t._uU(50),t.qZA()(),t._UZ(51,"mat-divider",8),t.TgZ(52,"div",14)(53,"h4",5),t._uU(54,"Max HTLC"),t.qZA(),t.TgZ(55,"span",6),t._uU(56),t.qZA()(),t._UZ(57,"mat-divider",8),t.TgZ(58,"div",14)(59,"h4",5),t._uU(60,"Fee Base Msat"),t.qZA(),t.TgZ(61,"span",6),t._uU(62),t.qZA()(),t._UZ(63,"mat-divider",8),t.TgZ(64,"div",14)(65,"h4",5),t._uU(66,"Fee Rate Milli Msat"),t.qZA(),t.TgZ(67,"span",6),t._uU(68),t.qZA()(),t._UZ(69,"mat-divider",8),t.TgZ(70,"div",14)(71,"h4",5),t._uU(72,"Disabled"),t.qZA(),t.TgZ(73,"span",6),t._uU(74),t.qZA()()(),t.TgZ(75,"div",10)(76,"div"),t.YNc(77,T3,2,0,"h3",12),t.YNc(78,v3,2,0,"h3",12),t.qZA(),t._UZ(79,"mat-divider",8),t.TgZ(80,"div",13)(81,"h4",5),t._uU(82,"Pubkey"),t.qZA(),t.TgZ(83,"span",6),t._uU(84),t.qZA()(),t._UZ(85,"mat-divider",8),t.TgZ(86,"div",14)(87,"h4",5),t._uU(88,"Time Lock Delta"),t.qZA(),t.TgZ(89,"span",6),t._uU(90),t.qZA()(),t._UZ(91,"mat-divider",8),t.TgZ(92,"div",14)(93,"h4",5),t._uU(94,"Min HTLC"),t.qZA(),t.TgZ(95,"span",6),t._uU(96),t.qZA()(),t._UZ(97,"mat-divider",8),t.TgZ(98,"div",14)(99,"h4",5),t._uU(100,"Max HTLC"),t.qZA(),t.TgZ(101,"span",6),t._uU(102),t.qZA()(),t._UZ(103,"mat-divider",8),t.TgZ(104,"div",14)(105,"h4",5),t._uU(106,"Fee Base Msat"),t.qZA(),t.TgZ(107,"span",6),t._uU(108),t.qZA()(),t._UZ(109,"mat-divider",8),t.TgZ(110,"div",14)(111,"h4",5),t._uU(112,"Fee Rate Milli Msat"),t.qZA(),t.TgZ(113,"span",6),t._uU(114),t.qZA()(),t._UZ(115,"mat-divider",8),t.TgZ(116,"div",14)(117,"h4",5),t._uU(118,"Disabled"),t.qZA(),t.TgZ(119,"span",6),t._uU(120),t.qZA()()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(e.lookupResult.channel_id),t.xp6(5),t.Oqu(e.lookupResult.chan_point),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(20,39,1e3*e.lookupResult.last_update,"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(t.lcZ(26,42,e.lookupResult.capacity)),t.xp6(2),t.Q6J("inset",!0),t.xp6(4),t.Q6J("ngIf",!e.node1_match),t.xp6(1),t.Q6J("ngIf",e.node1_match),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(e.lookupResult.node1_pub),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.time_lock_delta),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.min_htlc),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.max_htlc_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_base_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node1_policy?null:e.lookupResult.node1_policy.fee_rate_milli_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null!=e.lookupResult.node1_policy&&e.lookupResult.node1_policy.disabled?"Yes":"No"),t.xp6(3),t.Q6J("ngIf",!e.node2_match),t.xp6(1),t.Q6J("ngIf",e.node2_match),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(e.lookupResult.node2_pub),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.time_lock_delta),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.min_htlc),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.max_htlc_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_base_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null==e.lookupResult.node2_policy?null:e.lookupResult.node2_policy.fee_rate_milli_msat),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Oqu(null!=e.lookupResult.node2_policy&&e.lookupResult.node2_policy.disabled?"Yes":"No")}}let w3=(()=>{class n{constructor(e){this.store=e,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.lookupResult.node1_pub===e.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===e.identity_pubkey&&(this.node2_match=!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(e,o){1&e&&t.YNc(0,b3,121,44,"div",0),2&e&&t.Q6J("ngIf",o.lookupResult)},directives:[u.O5,m.xw,V.d,m.yH,m.Wh],pipes:[u.uU,u.JJ],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),n})();function Z3(n,i){if(1&n&&(t.TgZ(0,"mat-radio-button",17),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("value",e.id)("checked",o.selectedFieldId===e.id),t.xp6(1),t.hij(" ",e.name," ")}}function A3(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function L3(n,i){1&n&&t._UZ(0,"mat-progress-bar",20)}const S3=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function F3(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,L3,1,0,"mat-progress-bar",19),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(3,S3,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),t.xp6(1),t.Q6J("ngIf","Getting lookup details..."===e.errorMessage),t.xp6(1),t.hij(" ",e.errorMessage," ")}}function k3(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-node-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("lookupResult",e.lookupValue)}}function q3(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-channel-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("lookupResult",e.lookupValue)}}function N3(n,i){1&n&&(t.TgZ(0,"span",27)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function O3(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22)(2,"span",23),t._uU(3),t.qZA()(),t.TgZ(4,"div",24),t.YNc(5,k3,2,1,"span",25),t.YNc(6,q3,2,1,"span",25),t.YNc(7,N3,3,0,"span",26),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1)}}const U3=function(n){return{"mt-1":!0,"mt-2":n}};let Kt=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=b.wn1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND||e.type===s.uR.UPDATE_API_CALL_STATUS_LND)).subscribe(e=>{e.type===s.uR.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&e.payload.hasOwnProperty("node")||1===this.selectedFieldId&&e.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!e.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!e.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&"Lookup"===e.payload.action&&(this.errorMessage="",e.payload.status===s.Bn.ERROR&&(this.errorMessage="object"==typeof e.payload.message?JSON.stringify(e.payload.message):e.payload.message),e.payload.status===s.Bn.INITIATED&&(this.errorMessage=s.m6.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,A.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,A.$A)({payload:{uiMessage:s.m6.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lookups"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),t.NdJ("ngModelChange",function(l){return o.selectedFieldId=l})("change",function(l){return o.onSelectChange(l)}),t.YNc(7,Z3,2,3,"mat-radio-button",7),t.qZA()(),t.TgZ(8,"mat-form-field",8)(9,"input",9,10),t.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(l){return o.lookupKey=l}),t.qZA(),t.YNc(11,A3,2,1,"mat-error",11),t.qZA(),t.TgZ(12,"div",12)(13,"button",13),t.NdJ("click",function(){return o.resetData()}),t._uU(14,"Clear"),t.qZA(),t.TgZ(15,"button",14),t.NdJ("click",function(){return o.onLookup()}),t._uU(16,"Lookup"),t.qZA()()(),t.YNc(17,F3,3,5,"div",15),t.YNc(18,O3,8,4,"div",16),t.qZA()()()),2&e&&(t.xp6(6),t.Q6J("ngModel",o.selectedFieldId),t.xp6(1),t.Q6J("ngForOf",o.lookupFields),t.xp6(1),t.Q6J("ngClass",t.VKq(8,U3,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),t.xp6(2),t.Q6J("ngIf",!o.lookupKey),t.xp6(6),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage&&o.lookupValue&&o.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,y.dn,p._Y,p.JL,p.F,tt.VQ,p.JJ,p.On,u.sg,tt.U0,C.KE,u.mk,L.oO,P.Nt,p.Fj,p.Q7,u.O5,C.TO,q.lW,J.pW,u.RF,u.n9,C3,w3,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})();var qt=g(6856);function M3(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid date format."),t.qZA())}function P3(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Invalid date format."),t.qZA())}function I3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",27),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let R3=(()=>{class n{constructor(e,o,a){this.logger=e,this.store=o,this.router=a,this.faMapSigns=b.SuH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.onEventsFetch();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,A.QJ)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,A.u0)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,A.QJ)({payload:{forwarding_events:[]}})),this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing"]],decls:35,vars:15,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["routingForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","49","fxLayoutAlign","start"],["matInput","","placeholder","Start Date","name","startDate","tabindex","1",3,"matDatepicker","max","ngModel","ngModelChange"],["strtDate","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],["startDatepicker",""],[4,"ngIf"],["matInput","","placeholder","End Date","name","endDate","tabindex","2",3,"matDatepicker","min","max","ngModel","ngModelChange"],["enDate","ngModel"],["endDatepicker",""],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"form",7,8),t.NdJ("ngSubmit",function(){return o.onEventsFetch()}),t.TgZ(10,"div",9)(11,"mat-form-field",10)(12,"input",11,12),t.NdJ("ngModelChange",function(l){return o.startDate=l}),t.qZA(),t._UZ(14,"mat-datepicker-toggle",13)(15,"mat-datepicker",14,15),t.YNc(17,M3,2,0,"mat-error",16),t.qZA(),t.TgZ(18,"mat-form-field",10)(19,"input",17,18),t.NdJ("ngModelChange",function(l){return o.endDate=l}),t.qZA(),t._UZ(21,"mat-datepicker-toggle",13)(22,"mat-datepicker",14,19),t.YNc(24,P3,2,0,"mat-error",16),t.qZA()(),t.TgZ(25,"div",20)(26,"button",21),t.NdJ("click",function(){return o.resetData()}),t._uU(27,"Clear"),t.qZA(),t.TgZ(28,"button",22),t._uU(29,"Fetch Events"),t.qZA()()(),t.TgZ(30,"div",23)(31,"nav",24),t.YNc(32,I3,2,3,"div",25),t.qZA()(),t.TgZ(33,"div",26),t._UZ(34,"router-outlet"),t.qZA()()()()()),2&e){const a=t.MAs(13),l=t.MAs(16),r=t.MAs(20),h=t.MAs(23);t.xp6(2),t.Q6J("icon",o.faMapSigns),t.xp6(10),t.Q6J("matDatepicker",l)("max",o.today)("ngModel",o.startDate),t.xp6(2),t.Q6J("for",l),t.xp6(1),t.Q6J("startAt",o.startDate),t.xp6(2),t.Q6J("ngIf",a.errors),t.xp6(2),t.Q6J("matDatepicker",h)("min",o.startDate)("max",o.today)("ngModel",o.endDate),t.xp6(2),t.Q6J("for",h),t.xp6(1),t.Q6J("startAt",o.endDate),t.xp6(2),t.Q6J("ngIf",r.errors),t.xp6(8),t.Q6J("ngForOf",o.links)}},directives:[m.xw,m.Wh,D.BN,m.yH,y.a8,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,qt.hl,Wt.F,p.Fj,p.JJ,p.On,qt.nW,C.R9,qt.Mq,u.O5,C.TO,et.q,q.lW,R.BU,u.sg,R.Nj,v.rH,v.lC],styles:[""]}),n})();function D3(n,i){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function Q3(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"mat-form-field",8)(3,"input",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().filterValue=a})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.filterValue)}}function J3(n,i){1&n&&t._UZ(0,"mat-progress-bar",31)}function E3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Timestamp"),t.qZA())}function H3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.timestamp,"dd/MMM/y HH:mm"))}}function Y3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Inbound Channel"),t.qZA())}function B3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.alias_in)}}function z3(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1,"Outbound Channel"),t.qZA())}function G3(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.alias_out)}}function V3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Inbound Amount (Sats)"),t.qZA())}function W3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt_in))}}function X3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Outbound Amount (Sats)"),t.qZA())}function j3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt_out))}}function K3(n,i){1&n&&(t.TgZ(0,"th",34),t._uU(1,"Fee (mSats)"),t.qZA())}function $3(n,i){if(1&n&&(t.TgZ(0,"td",33)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.fee_msat))}}function t0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",36)(1,"div",37)(2,"mat-select",38),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function e0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"button",41),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function n0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function o0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function i0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function a0(n,i){if(1&n&&(t.TgZ(0,"td",42),t.YNc(1,n0,2,0,"p",43),t.YNc(2,o0,2,0,"p",43),t.YNc(3,i0,2,1,"p",43),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const l0=function(n){return{"display-none":n}};function s0(n,i){if(1&n&&t._UZ(0,"tr",44),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,l0,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function r0(n,i){1&n&&t._UZ(0,"tr",45)}function c0(n,i){1&n&&t._UZ(0,"tr",46)}const p0=function(){return["no_event"]};function u0(n,i){if(1&n&&(t.TgZ(0,"div",10),t.YNc(1,J3,1,0,"mat-progress-bar",11),t.TgZ(2,"table",12,13),t.ynx(4,14),t.YNc(5,E3,2,0,"th",15),t.YNc(6,H3,3,4,"td",16),t.BQk(),t.ynx(7,17),t.YNc(8,Y3,2,0,"th",15),t.YNc(9,B3,2,1,"td",16),t.BQk(),t.ynx(10,18),t.YNc(11,z3,2,0,"th",15),t.YNc(12,G3,2,1,"td",16),t.BQk(),t.ynx(13,19),t.YNc(14,V3,2,0,"th",20),t.YNc(15,W3,4,3,"td",16),t.BQk(),t.ynx(16,21),t.YNc(17,X3,2,0,"th",20),t.YNc(18,j3,4,3,"td",16),t.BQk(),t.ynx(19,22),t.YNc(20,K3,2,0,"th",20),t.YNc(21,$3,4,3,"td",16),t.BQk(),t.ynx(22,23),t.YNc(23,t0,6,0,"th",24),t.YNc(24,e0,3,0,"td",25),t.BQk(),t.ynx(25,26),t.YNc(26,a0,4,3,"td",27),t.BQk(),t.YNc(27,s0,1,3,"tr",28),t.YNc(28,r0,1,0,"tr",29),t.YNc(29,c0,1,0,"tr",30),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,p0)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function m0(n,i){if(1&n&&t._UZ(0,"mat-paginator",47),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let $t=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.datePipe=l,this.eventsData=[],this.filterValue="",this.forwardingHistoryData=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["timestamp","fee_msat","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["timestamp","amt_in","amt_out","fee_msat","actions"]):(this.flgSticky=!0,this.displayedColumns=["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat","actions"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=e.forwardingHistory.forwarding_events||[],this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory))})}ngAfterViewInit(){this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:s.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=e.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,e.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),e.filterValue&&!e.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:e.timestamp,title:"Timestamp",width:25,type:s.Gi.DATE_TIME},{key:"amt_in",value:e.amt_in,title:"Inbound Amount (Sats)",width:25,type:s.Gi.NUMBER},{key:"amt_out",value:e.amt_out,title:"Outbound Amount (Sats)",width:25,type:s.Gi.NUMBER},{key:"fee_msat",value:e.fee_msat,title:"Fee (mSats)",width:25,type:s.Gi.NUMBER}],[{key:"alias_in",value:e.alias_in,title:"Inbound Peer Alias",width:25,type:s.Gi.STRING},{key:"chan_id_in",value:e.chan_id_in,title:"Inbound Channel ID",width:25,type:s.Gi.STRING},{key:"alias_out",value:e.alias_out,title:"Outbound Peer Alias",width:25,type:s.Gi.STRING},{key:"chan_id_out",value:e.chan_id_out,title:"Outbound Channel ID",width:25,type:s.Gi.STRING}]]}}}))}loadForwardingEventsTable(e){this.forwardingHistoryEvents=new c.by(e?[...e]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.forwardingHistoryEvents.filterPredicate=(o,a)=>{var l;return((o.timestamp?null===(l=this.datePipe.transform(new Date(1e3*o.timestamp),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.forwardingHistoryEvents.paginator=this.paginator,this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-forwarding-history"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","alias_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,D3,2,1,"div",1),t.YNc(2,Q3,4,1,"div",2),t.YNc(3,u0,30,7,"div",3),t.YNc(4,m0,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,u.mk,L.oO,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const d0=["tableIn"],h0=["tableOut"],_0=["paginatorIn"],f0=["paginatorOut"];function g0(n,i){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function C0(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function x0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Channel ID"),t.qZA())}const bt=function(n){return{"max-width":n}};function y0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function T0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Peer Alias"),t.qZA())}function v0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.alias)}}function b0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Events"),t.qZA())}function w0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Z0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Total Amount (Sats)"),t.qZA())}function A0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_amount))}}function L0(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function S0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onRoutingPeerClick(r,a,"in")}),t._uU(2,"View Info"),t.qZA()()}}function F0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function k0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function q0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function N0(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,F0,2,0,"p",47),t.YNc(2,k0,2,0,"p",47),t.YNc(3,q0,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersIncoming&&e.RoutingPeersIncoming.data)||(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const te=function(n){return{"display-none":n}};function O0(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,te,(null==e.RoutingPeersIncoming||null==e.RoutingPeersIncoming.data?null:e.RoutingPeersIncoming.data.length)>0))}}function U0(n,i){1&n&&t._UZ(0,"tr",49)}function M0(n,i){1&n&&t._UZ(0,"tr",50)}function P0(n,i){1&n&&t._UZ(0,"mat-progress-bar",37)}function I0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Channel ID"),t.qZA())}function R0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function D0(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Peer Alias"),t.qZA())}function Q0(n,i){if(1&n&&(t.TgZ(0,"td",39),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",t.VKq(2,bt,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.alias)}}function J0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Events"),t.qZA())}function E0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function H0(n,i){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Total Amount (Sats)"),t.qZA())}function Y0(n,i){if(1&n&&(t.TgZ(0,"td",41)(1,"span",42),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_amount))}}function B0(n,i){1&n&&(t.TgZ(0,"th",43)(1,"span",42),t._uU(2,"Actions"),t.qZA()())}function z0(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",51)(1,"button",52),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw(2).onRoutingPeerClick(r,a,"out")}),t._uU(2,"View Info"),t.qZA()()}}function G0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function V0(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function W0(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function X0(n,i){if(1&n&&(t.TgZ(0,"td",46),t.YNc(1,G0,2,0,"p",47),t.YNc(2,V0,2,0,"p",47),t.YNc(3,W0,2,1,"p",47),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.RoutingPeersOutgoing&&e.RoutingPeersOutgoing.data)||(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function j0(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,te,(null==e.RoutingPeersOutgoing||null==e.RoutingPeersOutgoing.data?null:e.RoutingPeersOutgoing.data.length)>0))}}function K0(n,i){1&n&&t._UZ(0,"tr",49)}function $0(n,i){1&n&&t._UZ(0,"tr",50)}const tp=function(n,i){return{"mt-2":n,"mt-1":i}},ep=function(){return["no_incoming_event"]},np=function(n){return{"mt-2":n}},op=function(){return["no_outgoing_event"]};function ip(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t.TgZ(5,"mat-form-field",8)(6,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyIncomingFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().filterIn=a}),t.qZA()()(),t.TgZ(7,"div",10),t.YNc(8,C0,1,0,"mat-progress-bar",11),t.TgZ(9,"table",12,13),t.ynx(11,14),t.YNc(12,x0,2,0,"th",15),t.YNc(13,y0,2,4,"td",16),t.BQk(),t.ynx(14,17),t.YNc(15,T0,2,0,"th",15),t.YNc(16,v0,2,4,"td",16),t.BQk(),t.ynx(17,18),t.YNc(18,b0,2,0,"th",19),t.YNc(19,w0,4,3,"td",20),t.BQk(),t.ynx(20,21),t.YNc(21,Z0,2,0,"th",19),t.YNc(22,A0,4,3,"td",20),t.BQk(),t.ynx(23,22),t.YNc(24,L0,3,0,"th",23),t.YNc(25,S0,3,0,"td",24),t.BQk(),t.ynx(26,25),t.YNc(27,N0,4,3,"td",26),t.BQk(),t.YNc(28,O0,1,3,"tr",27),t.YNc(29,U0,1,0,"tr",28),t.YNc(30,M0,1,0,"tr",29),t.qZA()(),t._UZ(31,"mat-paginator",30,31),t.qZA(),t.TgZ(33,"div",5)(34,"div",6)(35,"div",7),t._uU(36,"Outgoing"),t.qZA(),t.TgZ(37,"mat-form-field",8)(38,"input",9),t.NdJ("keyup",function(){return t.CHM(e),t.oxw().applyOutgoingFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw().filterOut=a}),t.qZA()()(),t.TgZ(39,"div",10),t.YNc(40,P0,1,0,"mat-progress-bar",11),t.TgZ(41,"table",32,33),t.ynx(43,14),t.YNc(44,I0,2,0,"th",15),t.YNc(45,R0,2,4,"td",16),t.BQk(),t.ynx(46,17),t.YNc(47,D0,2,0,"th",15),t.YNc(48,Q0,2,4,"td",16),t.BQk(),t.ynx(49,18),t.YNc(50,J0,2,0,"th",19),t.YNc(51,E0,4,3,"td",20),t.BQk(),t.ynx(52,21),t.YNc(53,H0,2,0,"th",19),t.YNc(54,Y0,4,3,"td",20),t.BQk(),t.ynx(55,22),t.YNc(56,B0,3,0,"th",23),t.YNc(57,z0,3,0,"td",34),t.BQk(),t.ynx(58,35),t.YNc(59,X0,4,3,"td",26),t.BQk(),t.YNc(60,j0,1,3,"tr",27),t.YNc(61,K0,1,0,"tr",28),t.YNc(62,$0,1,0,"tr",29),t.qZA()(),t._UZ(63,"mat-paginator",30,36),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(22,tp,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(4),t.Q6J("ngModel",e.filterIn),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(25,ep)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(26,np,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(4),t.Q6J("ngModel",e.filterOut),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.RoutingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(28,op)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let ap=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.routingPeersData=[],this.displayedColumns=[],this.RoutingPeersIncoming=new c.by([]),this.RoutingPeersOutgoing=new c.by([]),this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["chan_id","events","actions"]):this.screenSize===s.cu.SM||this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","alias","events","total_amount"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","alias","events","total_amount"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(e,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:e.chan_id,title:"Channel ID",width:50,type:s.Gi.STRING},{key:"alias",value:e.alias,title:"Peer Alias",width:50,type:s.Gi.STRING}],[{key:"events",value:e.events,title:"Events",width:50,type:s.Gi.NUMBER},{key:"total_amount",value:e.total_amount,title:"Total Amount (Sats)",width:50,type:s.Gi.NUMBER}]]}}}))}loadRoutingPeersTable(e){if(e.length>0){const o=this.groupRoutingPeers(e);this.RoutingPeersIncoming=new c.by(o[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(a,l)=>JSON.stringify(a).toLowerCase().includes(l),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new c.by(o[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(a,l)=>JSON.stringify(a).toLowerCase().includes(l),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new c.by([]),this.RoutingPeersOutgoing=new c.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter()}groupRoutingPeers(e){const o=[],a=[];return e.forEach(l=>{const r=o.find(f=>f.chan_id===l.chan_id_in),h=a.find(f=>f.chan_id===l.chan_id_out);r?(r.events++,r.total_amount=+r.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),h?(h.events++,h.total_amount=+h.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(d0,5,Z.YE),t.Gf(h0,5,Z.YE),t.Gf(_0,5),t.Gf(f0,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sortIn=a.first),t.iGM(a=t.CRH())&&(o.sortOut=a.first),t.iGM(a=t.CRH())&&(o.paginatorIn=a.first),t.iGM(a=t.CRH())&&(o.paginatorOut=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-cell","",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","5",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,g0,2,1,"div",1),t.YNc(2,ip,65,29,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,u.mk,L.oO,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function lp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let sp=(()=>{class n{constructor(e){this.router=e,this.faChartBar=b.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,lp,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartBar),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,v.lC],styles:[""]}),n})();var ee=g(7671),ne=g(1210);function rp(n,i){1&n&&t._UZ(0,"mat-progress-bar",16)}function cp(n,i){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.events.total_fee_msat),t.xp6(1),t.AsE("",t.xi3(2,3,e.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",t.lcZ(3,6,(null==e.events||null==e.events.forwarding_events?null:e.events.forwarding_events.length)||0)," Events")}}function pp(n,i){1&n&&(t.TgZ(0,"div",18),t._uU(1,"No routing report for the selected period"),t.qZA())}const up=function(n){return{"error-border":n}};function mp(n,i){if(1&n&&(t.TgZ(0,"div",19),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(2,up,"Getting Forwarding History..."!==e.errorMessage&&""!==e.errorMessage)),t.xp6(1),t.Oqu(e.errorMessage)}}function dp(n,i){if(1&n&&(t.TgZ(0,"span")(1,"span",22),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",22),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=i.model,o=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(o.selReportBy===o.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(o.selReportBy===o.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function hp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",20),t.NdJ("select",function(a){return t.CHM(e),t.oxw().onChartBarSelected(a)})("mouseup",function(a){return t.CHM(e),t.oxw().onChartMouseUp(a)}),t.YNc(1,dp,7,7,"ng-template",null,21,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function _p(n,i){if(1&n&&t._UZ(0,"rtl-forwarding-history",23),2&n){const e=t.oxw();t.Q6J("eventsData",null==e.events?null:e.events.forwarding_events)("filterValue",e.eventFilterValue)}}let fp=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=s.op[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=s.Xr,this.selReportBy=s.Xr.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===s.cu.XS||this.screenSize===s.cu.SM),this.store.select(T.Q5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{e.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case s.cu.MD:this.screenPaddingX=e.width/10;break;case s.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(e,o){this.errorMessage=s.m6.GET_FORWARDING_HISTORY;const a=Math.round(e.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,_.R)(this.unSubs[2])).subscribe({next:r=>{this.errorMessage="",r.forwarding_events&&r.forwarding_events.length?(r.forwarding_events=r.forwarding_events.reverse(),this.events=r,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(e):this.prepareFeeReport(e)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:r=>{this.errorMessage=r}})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===s.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+s.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var o,a;const l=Math.round(e.getTime()/1e3),r=[];if(this.events.total_fee_msat=0,this.reportPeriod===s.op[1]){for(let h=0;h<12;h++)r.push({name:s.gg[h].name,value:0,extra:{totalEvents:0}});null===(o=this.events.forwarding_events)||void 0===o||o.map(h=>{const f=new Date(1e3*+(h.timestamp||0)).getMonth();return r[f].value=r[f].value+ +(h.fee_msat||0)/1e3,r[f].extra.totalEvents=r[f].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}else{for(let h=0;h{const f=Math.floor((+(h.timestamp||0)-l)/this.secondsInADay);return r[f].value=r[f].value+ +(h.fee_msat||0)/1e3,r[f].extra.totalEvents=r[f].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}return r}prepareEventsReport(e){var o,a;const l=Math.round(e.getTime()/1e3),r=[];if(this.events.total_fee_msat=0,this.reportPeriod===s.op[1]){for(let h=0;h<12;h++)r.push({name:s.gg[h].name,value:0,extra:{totalFees:0}});null===(o=this.events.forwarding_events)||void 0===o||o.map(h=>{const f=new Date(1e3*+(h.timestamp||0)).getMonth();return r[f].value=r[f].value+1,r[f].extra.totalFees=r[f].extra.totalFees+ +(h.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}else{for(let h=0;h{const f=Math.floor((+(h.timestamp||0)-l)/this.secondsInADay);return r[f].value=r[f].value+1,r[f].extra.totalFees=r[f].extra.totalFees+ +(h.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(h.fee_msat||0),this.events})}return r}onSelectionChange(e){const o=e.selDate.getMonth(),a=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===s.op[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,o){return 1===e&&o%4==0?s.gg[e].days+1:s.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(nt.D),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-routing-report"]],hostBindings:function(e,o){1&e&&t.NdJ("mouseup",function(l){return o.onChartMouseUp(l)})},decls:20,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],[3,"eventsData","filterValue",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(l){return o.onSelectionChange(l)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(l){return o.selReportBy=l})("change",function(){return o.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.YNc(10,rp,1,0,"mat-progress-bar",7),t.TgZ(11,"div",8),t.YNc(12,cp,4,8,"div",9),t.YNc(13,pp,2,0,"div",10),t.YNc(14,mp,2,4,"div",11),t.TgZ(15,"div",12),t.YNc(16,hp,3,11,"ngx-charts-bar-vertical",13),t.qZA()(),t.TgZ(17,"div",14)(18,"div",12),t.YNc(19,_p,1,2,"rtl-forwarding-history",15),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selReportBy),t.xp6(3),t.s9C("value",o.reportBy.FEES),t.xp6(2),t.s9C("value",o.reportBy.EVENTS),t.xp6(2),t.Q6J("ngIf","Getting Forwarding History..."===o.errorMessage),t.xp6(2),t.Q6J("ngIf",o.routingReportData.length>0&&o.events.forwarding_events&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0),t.xp6(1),t.Q6J("ngIf",(o.routingReportData.length<=0||o.events.forwarding_events.length<=0)&&""===o.errorMessage),t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(2),t.Q6J("ngIf",o.routingReportData.length>0&&o.events.forwarding_events&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0),t.xp6(3),t.Q6J("ngIf",o.events&&(null==o.events?null:o.events.forwarding_events)&&o.events.forwarding_events.length&&o.events.forwarding_events.length>0))},directives:[m.xw,m.Wh,m.yH,ee.D,tt.VQ,p.JJ,p.On,tt.U0,u.O5,J.pW,u.mk,L.oO,ne.K$,$t],pipes:[u.JJ],styles:[""],data:{animation:[st.J]}}),n})();var gp=g(165);function Cp(n,i){1&n&&(t.TgZ(0,"div",11),t._UZ(1,"mat-progress-bar",12),t.TgZ(2,"span"),t._uU(3,"Getting transactions data..."),t.qZA()())}function xp(n,i){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function yp(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Tp(n,i){if(1&n&&(t.TgZ(0,"div",16),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function vp(n,i){if(1&n&&(t.TgZ(0,"div",14),t.YNc(1,yp,4,7,"div",15),t.YNc(2,Tp,4,7,"div",15),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod>0),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function bp(n,i){1&n&&(t.TgZ(0,"div",17),t._uU(1,"No transactions report for the selected period"),t.qZA())}function wp(n,i){if(1&n&&(t.TgZ(0,"span",21),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=i.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Zp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",19),t.NdJ("select",function(a){return t.CHM(e),t.oxw(2).onChartBarSelected(a)})("mouseup",function(a){return t.CHM(e),t.oxw(2).onChartMouseUp(a)}),t.YNc(1,wp,4,9,"ng-template",null,20,t.W1O),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function Ap(n,i){if(1&n&&(t.TgZ(0,"div",9),t.YNc(1,Zp,3,13,"ngx-charts-bar-vertical-2d",18),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.transactionsReportData.length>0&&e.transactionsNonZeroReportData.length>0)}}function Lp(n,i){if(1&n&&t._UZ(0,"rtl-transactions-report-table",22),2&n){const e=t.oxw();t.Q6J("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("filterValue",e.transactionFilterValue)}}let Sp=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.scrollRanges=s.op,this.reportPeriod=s.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===s.cu.XS||this.screenSize===s.cu.SM),this.store.select(T.l5).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{e.apiCallStatus.status===s.Bn.UN_INITIATED&&this.store.dispatch((0,A.Jo)()),this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=e.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=e.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case s.cu.MD:this.screenPaddingX=e.width/10;break;case s.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(e){"svg"===e.srcElement.tagName&&e.srcElement.classList.length>0&&"ngx-charts"===e.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(e){this.transactionFilterValue=this.reportPeriod===s.op[1]?e.series+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+s.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,o){var a,l;const r=Math.round(e.getTime()/1e3),h=Math.round(o.getTime()/1e3),f=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const x=null===(a=this.payments)||void 0===a?void 0:a.filter(w=>"SUCCEEDED"===w.status&&w.creation_date&&w.creation_date>=r&&w.creation_datew.settled&&w.creation_date&&+w.creation_date>=r&&+w.creation_date{const B=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),f[B].series[0].value=f[B].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,f[B].series[0].extra.total=f[B].series[0].extra.total+1,this.transactionsReportSummary}),null==I||I.map(w=>{const B=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),f[B].series[1].value=f[B].series[1].value+ +(w.amt_paid_msat||0)/1e3,f[B].series[1].extra.total=f[B].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let w=0;w{const B=Math.floor((+(w.creation_date||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),f[B].series[0].value=f[B].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,f[B].series[0].extra.total=f[B].series[0].extra.total+1,this.transactionsReportSummary}),null==I||I.map(w=>{const B=Math.floor((+(w.creation_date||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),f[B].series[1].value=f[B].series[1].value+ +(w.amt_paid_msat||0)/1e3,f[B].series[1].extra.total=f[B].series[1].extra.total+1,this.transactionsReportSummary})}return f}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((o,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?o.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):o,[])}onSelectionChange(e){const o=e.selDate.getMonth(),a=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===s.op[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,o){return 1===e&&o%4==0?s.gg[e].days+1:s.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-transactions-report"]],hostBindings:function(e,o){1&e&&t.NdJ("mouseup",function(l){return o.onChartMouseUp(l)})},decls:11,vars:6,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"dataList","dataRange","filterValue",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"rtl-horizontal-scroller",3),t.NdJ("stepChanged",function(l){return o.onSelectionChange(l)}),t.qZA(),t.YNc(4,Cp,4,0,"div",4),t.YNc(5,xp,2,1,"div",5),t.YNc(6,vp,3,3,"div",6),t.YNc(7,bp,2,0,"div",7),t.YNc(8,Ap,2,1,"div",8),t.TgZ(9,"div",9),t.YNc(10,Lp,1,3,"rtl-transactions-report-table",10),t.qZA()()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.ERROR),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length<=0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED),t.xp6(2),t.Q6J("ngIf",o.transactionsNonZeroReportData.length>0&&o.apiCallStatus.status===o.apiCallStatusEnum.COMPLETED))},directives:[m.xw,m.Wh,m.yH,ee.D,u.O5,J.pW,ne.H5,gp.g],pipes:[u.JJ],styles:[""],data:{animation:[st.J]}}),n})();const Fp=["form"];function kp(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"UTXO Label is required."),t.qZA())}function qp(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.labelError)}}function Np(n,i){if(1&n&&(t.TgZ(0,"div",16),t._UZ(1,"fa-icon",17),t.YNc(2,qp,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.labelError)}}let Op=(()=>{class n{constructor(e,o,a,l,r,h){this.dialogRef=e,this.data=o,this.dataService=a,this.store=l,this.snackBar=r,this.commonService=h,this.faExclamationTriangle=b.eHv,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,_.R)(this.unSubs[0])).subscribe({next:e=>{this.store.dispatch((0,A.mC)()),this.store.dispatch((0,A.Ly)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:e=>{this.labelError=e}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(nt.D),t.Y36(S.yh),t.Y36(it.ux),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(Fp,7),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first)}},decls:20,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","100"],["autoFocus","","matInput","","placeholder","UTXO Label","name","label","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Label UTXO"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return o.onLabelUTXO()})("reset",function(){return o.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(l){return o.label=l}),t.qZA(),t.YNc(13,kp,2,0,"mat-error",11),t.qZA(),t.YNc(14,Np,3,2,"div",12),t.TgZ(15,"div",13)(16,"button",14),t._uU(17,"Clear"),t.qZA(),t.TgZ(18,"button",15),t._uU(19,"Label UTXO"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",o.label),t.xp6(1),t.Q6J("ngIf",!o.label),t.xp6(1),t.Q6J("ngIf",""!==o.labelError))},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,D.BN],styles:[""]}),n})();function Up(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function Mp(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Transaction ID "),t.qZA())}function Pp(n,i){1&n&&(t.TgZ(0,"span",35)(1,"mat-icon",36),t._uU(2,"warning"),t.qZA()())}function Ip(n,i){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Pp,3,0,"span",34),t.qZA()),2&n){const e=t.oxw().$implicit;t.oxw();const o=t.MAs(34);t.xp6(1),t.Q6J("ngIf",e.amount_sat<1e3)("ngIfElse",o)}}const oe=function(n){return{"max-width":n}};function Rp(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",31),t.YNc(2,Ip,2,2,"span",32),t.TgZ(3,"span",33),t._uU(4),t.qZA()()()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(3,oe,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(2),t.Q6J("ngIf",o.utxos.length>0&&o.dustUtxos.length>0&&!o.isDustUTXO),t.xp6(2),t.Oqu(e.outpoint.txid_str)}}function Dp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Output "),t.qZA())}function Qp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(e.outpoint.output_index)}}function Jp(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Label "),t.qZA())}function Ep(n,i){if(1&n&&(t.TgZ(0,"td",30),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,oe,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.label," ")}}function Hp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function Yp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amount_sat||0))}}function Bp(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Confirmations "),t.qZA())}function zp(n,i){if(1&n&&(t.TgZ(0,"td",38)(1,"span",39),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.confirmations||0))}}function Gp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Vp(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"div",45)(2,"mat-select",46),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onUTXOClick(l)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onLabelUTXO(l)}),t._uU(7,"Label"),t.qZA(),t.TgZ(8,"mat-option",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onLeaseUTXO(l)}),t._uU(9,"Lease"),t.qZA()()()()}}function Wp(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No UTXO available."),t.qZA())}function Xp(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting UTXOs..."),t.qZA())}function jp(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Kp(n,i){if(1&n&&(t.TgZ(0,"td",47),t.YNc(1,Wp,2,0,"p",32),t.YNc(2,Xp,2,0,"p",32),t.YNc(3,jp,2,1,"p",32),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const $p=function(n){return{"display-none":n}};function tu(n,i){if(1&n&&t._UZ(0,"tr",48),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,$p,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function eu(n,i){1&n&&t._UZ(0,"tr",49)}function nu(n,i){1&n&&t._UZ(0,"tr",50)}function ou(n,i){1&n&&t._UZ(0,"mat-icon",36)}const iu=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},au=function(){return["no_utxo"]};let lu=(()=>{class n{constructor(e,o,a,l,r,h){this.logger=e,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=r,this.decimalPipe=h,this.isDustUTXO=!1,this.addressType=s.x$,this.faMoneyBillWave=b.aj4,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["amount_sat","confirmations","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","amount_sat","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["tx_id","output","label","amount_sat","confirmations","actions"])}ngOnInit(){this.store.select(T.T4).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.utxos&&e.utxos.length>0&&(this.dustUtxos=null===(o=e.utxos)||void 0===o?void 0:o.filter(a=>+(a.amount_sat||0)<1e3),this.utxos=e.utxos,this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(e)})}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(e){var o,a;const l=[[{key:"txid",value:null===(o=e.outpoint)||void 0===o?void 0:o.txid_str,title:"Transaction ID",width:100,type:s.Gi.STRING}],[{key:"label",value:e.label,title:"Label",width:100,type:s.Gi.STRING}],[{key:"output_index",value:null===(a=e.outpoint)||void 0===a?void 0:a.output_index,title:"Output Index",width:34,type:s.Gi.NUMBER},{key:"amount_sat",value:e.amount_sat,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER},{key:"confirmations",value:e.confirmations,title:"Confirmations",width:33,type:s.Gi.NUMBER}],[{key:"address_type",value:e.address_type?this.addressType[e.address_type].name:"",title:"Address Type",width:34},{key:"address",value:e.address,title:"Address",width:66}],[{key:"pk_script",value:e.pk_script,title:"PK Script",width:100,type:s.Gi.STRING}]];this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"UTXO Information",message:l}}}))}loadUTXOsTable(e){this.listUTXOs=new c.by([...e]),this.listUTXOs.filterPredicate=(o,a)=>{var l,r,h,f,x;return((o.label?o.label.toLowerCase():"")+((null===(l=o.outpoint)||void 0===l?void 0:l.txid_str)?o.outpoint.txid_str.toLowerCase():"")+((null===(r=o.outpoint)||void 0===r?void 0:r.output_index)?null===(h=o.outpoint)||void 0===h?void 0:h.output_index:"")+((null===(f=o.outpoint)||void 0===f?void 0:f.txid_bytes)?null===(x=o.outpoint)||void 0===x?void 0:x.txid_bytes.toLowerCase():"")+(o.address?o.address.toLowerCase():"")+(o.address_type?o.address_type.toLowerCase():"")+(o.amount_sat?o.amount_sat:"")+(o.confirmations?o.confirmations:"")+(o.pk_script?o.pk_script.toLowerCase():"")).includes(a)},this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"tx_id":return o.outpoint.txid_str.toLocaleLowerCase();case"output":return+o.outpoint.output_index;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onLabelUTXO(e){this.store.dispatch((0,F.qR)({payload:{data:{utxo:e,component:Op}}}))}onLeaseUTXO(e){var o;const a=[[{key:"txid_str",value:null===(o=e.outpoint)||void 0===o?void 0:o.txid_str,title:"Transaction ID",width:100}],[{key:"amount_sat",value:this.decimalPipe.transform(e.amount_sat),title:"Amount (Sats)",width:100}]];e.label&&a.splice(1,0,[{key:"label",value:e.label,title:"Label",width:100}]),this.store.dispatch((0,F.c1)({payload:{data:{type:s.n_.CONFIRM,alertTitle:"Lease UTXO",informationMessage:"The UTXO will be leased for 10 minutes.",message:a,noBtnText:"Cancel",yesBtnText:"Lease UTXO"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[0])).subscribe(l=>{var r,h;l&&this.dataService.leaseUTXO((null===(r=e.outpoint)||void 0===r?void 0:r.txid_bytes)||"",(null===(h=e.outpoint)||void 0===h?void 0:h.output_index)||0)})}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(nt.D),t.Y36(S.yh),t.Y36(dt.V),t.Y36(u.JJ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{isDustUTXO:"isDustUTXO"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("UTXOs")}]),t.TTD],decls:35,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-3",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["fxLayout","row"],[4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(4,"div",4)(5,"div",5),t.YNc(6,Up,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,Mp,2,0,"th",10),t.YNc(11,Rp,5,5,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,Dp,2,0,"th",13),t.YNc(14,Qp,3,1,"td",14),t.BQk(),t.ynx(15,15),t.YNc(16,Jp,2,0,"th",10),t.YNc(17,Ep,2,4,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,Hp,2,0,"th",13),t.YNc(20,Yp,4,3,"td",14),t.BQk(),t.ynx(21,17),t.YNc(22,Bp,2,0,"th",13),t.YNc(23,zp,4,3,"td",14),t.BQk(),t.ynx(24,18),t.YNc(25,Gp,6,0,"th",19),t.YNc(26,Vp,10,0,"td",20),t.BQk(),t.ynx(27,21),t.YNc(28,Kp,4,3,"td",22),t.BQk(),t.YNc(29,tu,1,3,"tr",23),t.YNc(30,eu,1,0,"tr",24),t.YNc(31,nu,1,0,"tr",25),t.qZA(),t._UZ(32,"mat-paginator",26),t.qZA()()(),t.YNc(33,ou,1,0,"ng-template",null,27,t.W1O)),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.listUTXOs)("ngClass",t.VKq(11,iu,""!==o.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(13,au)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,K.gM,$.Hw,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{padding-left:1rem;flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-tx_id[_ngcontent-%COMP%]{flex:1 1 15%}.mat-column-tx_id[_ngcontent-%COMP%] .ellipsis-child[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function su(n,i){1&n&&t._UZ(0,"mat-progress-bar",28)}function ru(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Date/Time "),t.qZA())}function cu(n,i){if(1&n&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*e.time_stamp,"dd/MMM/y HH:mm"))}}function pu(n,i){1&n&&(t.TgZ(0,"th",29),t._uU(1," Label "),t.qZA())}const uu=function(n){return{"max-width":n}};function mu(n,i){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,uu,o.screenSize===o.screenSizeEnum.XS?"12rem":"25rem")),t.xp6(1),t.hij(" ",null==e?null:e.label," ")}}function du(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Amount (Sats) "),t.qZA())}function hu(n,i){if(1&n&&(t.TgZ(0,"span",35),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.amount))}}function _u(n,i){if(1&n&&(t.TgZ(0,"span",36),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*e.amount),")")}}function fu(n,i){if(1&n&&(t.TgZ(0,"td",30),t.YNc(1,hu,3,3,"span",33),t.YNc(2,_u,3,3,"span",34),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e.amount>0||0===e.amount),t.xp6(1),t.Q6J("ngIf",e.amount<0)}}function gu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Fees (Sats) "),t.qZA())}function Cu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_fees))}}function xu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Block Height "),t.qZA())}function yu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.block_height))}}function Tu(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Confirmations "),t.qZA())}function vu(n,i){if(1&n&&(t.TgZ(0,"td",30)(1,"span",35),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.num_confirmations)," ")}}function bu(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function wu(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",41)(1,"button",42),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onTransactionClick(l)}),t._uU(2,"View Info"),t.qZA()()}}function Zu(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Au(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Lu(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Su(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,Zu,2,0,"p",44),t.YNc(2,Au,2,0,"p",44),t.YNc(3,Lu,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Fu=function(n){return{"display-none":n}};function ku(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Fu,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function qu(n,i){1&n&&t._UZ(0,"tr",46)}function Nu(n,i){1&n&&t._UZ(0,"tr",47)}const Ou=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Uu=function(){return["no_transaction"]};let Mu=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.datePipe=l,this.faHistory=b.qO$,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","actions"]):this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["time_stamp","amount","num_confirmations","total_fees","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["time_stamp","label","amount","total_fees","num_confirmations","actions"]):(this.flgSticky=!0,this.displayedColumns=["time_stamp","label","amount","total_fees","block_height","num_confirmations","actions"])}ngOnInit(){this.store.select(T.dx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&e.transactions.length>0&&(this.transactions=e.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(e)})}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}onTransactionClick(e){this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:e.block_hash,title:"Block Hash",width:100}],[{key:"tx_hash",value:e.tx_hash,title:"Transaction Hash",width:100}],[{key:"label",value:e.label,title:"Label",width:100,type:s.Gi.STRING}],[{key:"time_stamp",value:e.time_stamp,title:"Date/Time",width:50,type:s.Gi.DATE_TIME},{key:"block_height",value:e.block_height,title:"Block Height",width:50,type:s.Gi.NUMBER}],[{key:"num_confirmations",value:e.num_confirmations,title:"Number of Confirmations",width:34,type:s.Gi.NUMBER},{key:"total_fees",value:e.total_fees,title:"Total Fees (Sats)",width:33,type:s.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:33,type:s.Gi.NUMBER}],[{key:"dest_addresses",value:e.dest_addresses,title:"Destination Addresses",width:100,type:s.Gi.ARRAY}]],scrollable:e.dest_addresses&&e.dest_addresses.length>5}}}))}loadTransactionsTable(e){this.listTransactions=new c.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listTransactions.filterPredicate=(o,a)=>{var l;return((o.time_stamp?null===(l=this.datePipe.transform(new Date(1e3*o.time_stamp),"dd/MMM/YYYY HH:mm"))||void 0===l?void 0:l.toLowerCase():"")+JSON.stringify(o).toLowerCase()).includes(a)},this.listTransactions.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(u.uU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Transactions")}]),t.TTD],decls:36,vars:14,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"input",3),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(4,"div",4)(5,"div",5),t.YNc(6,su,1,0,"mat-progress-bar",6),t.TgZ(7,"table",7,8),t.ynx(9,9),t.YNc(10,ru,2,0,"th",10),t.YNc(11,cu,3,4,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,pu,2,0,"th",10),t.YNc(14,mu,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,du,2,0,"th",15),t.YNc(17,fu,3,2,"td",11),t.BQk(),t.ynx(18,16),t.YNc(19,gu,2,0,"th",15),t.YNc(20,Cu,4,3,"td",11),t.BQk(),t.ynx(21,17),t.YNc(22,xu,2,0,"th",15),t.YNc(23,yu,4,3,"td",11),t.BQk(),t.ynx(24,18),t.YNc(25,Tu,2,0,"th",15),t.YNc(26,vu,4,3,"td",11),t.BQk(),t.ynx(27,19),t.YNc(28,bu,6,0,"th",20),t.YNc(29,wu,3,0,"td",21),t.BQk(),t.ynx(30,22),t.YNc(31,Su,4,3,"td",23),t.BQk(),t.YNc(32,ku,1,3,"tr",24),t.YNc(33,qu,1,0,"tr",25),t.YNc(34,Nu,1,0,"tr",26),t.qZA(),t._UZ(35,"mat-paginator",27),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.listTransactions)("ngClass",t.VKq(11,Ou,""!==o.errorMessage)),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(13,Uu)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-label[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();function Pu(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"UTXOs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numUtxos)}}function Iu(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"Transactions"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numTransactions)}}function Ru(n,i){if(1&n&&(t.TgZ(0,"span",5),t._uU(1,"Dust UTXOs"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numDustUtxos)}}let Du=(()=>{class n{constructor(e,o){this.logger=e,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new t.vpe,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new d.x,new d.x,new d.x]}ngOnInit(){this.store.dispatch((0,A.mC)()),this.store.dispatch((0,A.Ly)()),this.store.select(T.T4).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;e.utxos&&e.utxos.length>0&&(this.numUtxos=e.utxos.length,this.numDustUtxos=null===(o=e.utxos)||void 0===o?void 0:o.filter(a=>a.amount_sat&&+a.amount_sat<1e3).length),this.logger.info(e)}),this.store.select(T.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e.transactions&&e.transactions.length>0&&(this.numTransactions=e.transactions.length),this.logger.info(e)})}onSelectedIndexChanged(e){this.selectedTableIndexChange.emit(e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:11,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-tab-group",1),t.NdJ("selectedIndexChange",function(l){return o.onSelectedIndexChanged(l)}),t.TgZ(2,"mat-tab"),t.YNc(3,Pu,2,1,"ng-template",2),t._UZ(4,"rtl-on-chain-utxos",3),t.qZA(),t.TgZ(5,"mat-tab"),t.YNc(6,Iu,2,1,"ng-template",2),t._UZ(7,"rtl-on-chain-transaction-history",4),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,Ru,2,1,"ng-template",2),t._UZ(10,"rtl-on-chain-utxos",3),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("selectedIndex",o.selectedTableIndex),t.xp6(3),t.Q6J("isDustUTXO",!1),t.xp6(6),t.Q6J("isDustUTXO",!0))},directives:[m.xw,m.yH,m.Wh,R.SP,R.uX,R.uD,At.k,lu,Mu],styles:[""]}),n})();const Qu=function(n,i){return[n,i]};function Ju(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=null==l?null:l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeLink===(null==e?null:e.link))("routerLink",t.WLB(3,Qu,null==e?null:e.link,null==o.selectedTable?null:o.selectedTable.name)),t.xp6(1),t.Oqu(null==e?null:e.name)}}let Eu=(()=>{class n{constructor(e,o,a){this.store=e,this.router=o,this.activatedRoute=a,this.selNode={},this.faExchangeAlt=b.Ssp,this.faChartPie=b.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(T.qU).pipe((0,_.R)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(e){this.selectedTable=this.tables.find(o=>o.id===e)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(v.F0),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,Ju,2,6,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10)(20,"rtl-utxo-tables",11),t.NdJ("selectedTableIndexChange",function(l){return o.onSelectedTableIndexChanged(l)}),t.qZA()()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faChartPie),t.xp6(6),t.Q6J("values",o.balances),t.xp6(2),t.Q6J("icon",o.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",o.links),t.xp6(4),t.Q6J("selectedTableIndex",null==o.selectedTable?null:o.selectedTable.id))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,Zt.D,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC,Du],styles:[""]}),n})();var Hu=g(9122);function Yu(n,i){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.addressTp," ")}}let Bu=(()=>{class n{constructor(e,o){this.store=e,this.lndEffects=o,this.addressTypes=s._t,this.selectedAddressType=s._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,A._E)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,X.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,F.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Hu.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(ot.l))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),t.NdJ("ngModelChange",function(l){return o.selectedAddressType=l}),t.YNc(4,Yu,2,2,"mat-option",4),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){return o.onGenerateAddress()}),t._uU(7,"Generate Address"),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",o.selectedAddressType),t.xp6(1),t.Q6J("ngForOf",o.addressTypes))},directives:[m.xw,m.Wh,C.KE,m.yH,M.gD,p.JJ,p.On,u.sg,G.ey,q.lW],styles:[""]}),n})();var zu=g(8012),ie=g(8377);const Gu=["form"],Vu=["formSweepAll"],Wu=["stepper"];function Xu(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function ju(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.amountError)}}function Ku(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function $u(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function t6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function e6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",23)(1,"input",32,33),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).transactionBlocks=a}),t.qZA(),t.YNc(3,t6,2,0,"mat-error",14),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.transactionBlocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.transactionBlocks)}}function n6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function o6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",23)(1,"input",34,35),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).transactionFees=a}),t.qZA(),t.YNc(3,n6,2,0,"mat-error",14),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.transactionFees)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!e.transactionFees)}}function i6(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.sendFundError)}}function a6(n,i){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,i6,2,1,"span",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}function l6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"form",9,10),t.NdJ("submit",function(){return t.CHM(e),t.oxw().onSendFunds()})("reset",function(){return t.CHM(e),t.oxw().resetData()}),t.TgZ(2,"mat-form-field",11)(3,"input",12,13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().transactionAddress=a}),t.qZA(),t.YNc(5,Xu,2,0,"mat-error",14),t.qZA(),t.TgZ(6,"mat-form-field",15)(7,"input",16,17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().transactionAmount=a}),t.qZA(),t.TgZ(9,"span",18),t._uU(10),t.qZA(),t.YNc(11,ju,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field",19)(13,"mat-select",20),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().onAmountUnitChange(a)}),t.YNc(14,Ku,2,2,"mat-option",21),t.qZA()(),t.TgZ(15,"div",22)(16,"mat-form-field",23)(17,"mat-select",24),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().selTransType=a}),t.YNc(18,$u,2,2,"mat-option",21),t.qZA()(),t.YNc(19,e6,4,4,"mat-form-field",25),t.YNc(20,o6,4,4,"mat-form-field",25),t.qZA(),t._UZ(21,"div",26),t.YNc(22,a6,3,2,"div",27),t.TgZ(23,"div",28)(24,"button",29),t._uU(25,"Clear Fields"),t.qZA(),t.TgZ(26,"button",30),t._uU(27,"Send Funds"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.transactionAddress),t.xp6(2),t.Q6J("ngIf",!e.transactionAddress),t.xp6(2),t.Q6J("ngModel",e.transactionAmount)("step",100)("min",0),t.xp6(3),t.hij(" ",e.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!e.transactionAmount),t.xp6(2),t.Q6J("value",e.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",e.amountUnits),t.xp6(3),t.Q6J("value",e.selTransType),t.xp6(1),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","1"===e.selTransType),t.xp6(1),t.Q6J("ngIf","2"===e.selTransType),t.xp6(2),t.Q6J("ngIf",""!==e.sendFundError)}}function s6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.passwordFormLabel)}}function r6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function c6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",42)(1,"form",61),t.YNc(2,s6,1,1,"ng-template",55),t.TgZ(3,"div",0)(4,"mat-form-field",1),t._UZ(5,"input",62),t.YNc(6,r6,2,0,"mat-error",14),t.qZA()(),t.TgZ(7,"div",63)(8,"button",64),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onAuthenticate()}),t._uU(9,"Confirm"),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.passwordFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function p6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.sendFundFormLabel)}}function u6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function m6(n,i){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("value",e.id),t.xp6(1),t.hij(" ",e.name," ")}}function d6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Number of blocks is required."),t.qZA())}function h6(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",65),t._UZ(1,"input",66),t.YNc(2,d6,2,0,"mat-error",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionBlocks.errors?null:e.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function _6(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Fees is required."),t.qZA())}function f6(n,i){if(1&n&&(t.TgZ(0,"mat-form-field",65),t._UZ(1,"input",67),t.YNc(2,_6,2,0,"mat-error",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("step",1)("min",0),t.xp6(1),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionFees.errors?null:e.sendFundFormGroup.controls.transactionFees.errors.required)}}function g6(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.confirmFormLabel)}}function C6(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.sendFundError)}}function x6(n,i){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,C6,2,1,"span",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}function y6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",38)(1,"mat-vertical-stepper",39,40),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.YNc(3,c6,10,4,"mat-step",41),t.TgZ(4,"mat-step",42)(5,"form",43),t.YNc(6,p6,1,1,"ng-template",44),t.TgZ(7,"div",45)(8,"mat-form-field",46),t._UZ(9,"input",47),t.YNc(10,u6,2,0,"mat-error",14),t.qZA(),t.TgZ(11,"mat-form-field",48)(12,"mat-select",49),t.YNc(13,m6,2,2,"mat-option",21),t.qZA()(),t.YNc(14,h6,3,3,"mat-form-field",50),t.YNc(15,f6,3,3,"mat-form-field",50),t.qZA(),t.TgZ(16,"div",51)(17,"button",52),t._uU(18,"Next"),t.qZA()()()(),t.TgZ(19,"mat-step",53)(20,"form",54),t.YNc(21,g6,1,1,"ng-template",55),t.TgZ(22,"div",38)(23,"div",56),t._UZ(24,"fa-icon",57),t.TgZ(25,"span"),t._uU(26,"You are about to sweep all funds from RTL. Are you sure?"),t.qZA()(),t.YNc(27,x6,3,2,"div",27),t.TgZ(28,"div",51)(29,"button",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendFunds()}),t._uU(30,"Sweep All Funds"),t.qZA()()()()()(),t.TgZ(31,"div",59)(32,"button",60),t._uU(33),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("ngIf",!e.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.sendFundFormGroup),t.xp6(5),t.Q6J("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),t.xp6(3),t.Q6J("ngForOf",e.transTypes),t.xp6(1),t.Q6J("ngIf","1"===e.sendFundFormGroup.controls.selTransType.value),t.xp6(1),t.Q6J("ngIf","2"===e.sendFundFormGroup.controls.selTransType.value),t.xp6(4),t.Q6J("stepControl",e.confirmFormGroup),t.xp6(1),t.Q6J("formGroup",e.confirmFormGroup),t.xp6(4),t.Q6J("icon",e.faExclamationTriangle),t.xp6(3),t.Q6J("ngIf",""!==e.sendFundError),t.xp6(5),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(e.flgValidated?"Close":"Cancel")}}let T6=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I,w){this.dialogRef=e,this.data=o,this.logger=a,this.store=l,this.rtlEffects=r,this.commonService=h,this.decimalPipe=f,this.snackBar=x,this.actions=I,this.formBuilder=w,this.faExclamationTriangle=b.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=s.uA,this.selAmountUnit=s.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=s.Xz,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[p.kI.required]],password:["",[p.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",p.kI.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",p.kI.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{"1"===e?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([p.kI.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([p.kI.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(ie.Yj).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.appConfig=e}),this.store.select(ie.dT).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[3]),(0,H.h)(e=>e.type===s.uR.UPDATE_API_CALL_STATUS_LND||e.type===s.uR.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(e=>{e.type===s.uR.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,F.jW)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===s.uR.UPDATE_API_CALL_STATUS_LND&&e.payload.status===s.Bn.ERROR&&"SetChannelTransaction"===e.payload.action&&(this.sendFundError=e.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,F.QO)({payload:zu(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,X.q)(1)).subscribe(e=>{"ERROR"!==e?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const e={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(e.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(e.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(e.fees=this.sendFundFormGroup.controls.transactionFees.value)):(e.address=this.transactionAddress,"1"===this.selTransType&&(e.blocks=this.transactionBlocks),"2"===this.selTransType&&(e.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==s.NT.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?s.NT.OTHER:this.selAmountUnit,s.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:o=>{var a;this.selAmountUnit=s.NT.SATS,e.amount=+((null===(a=this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]]))||void 0===a?void 0:a.replace(/,/g,""))||0),this.store.dispatch((0,A.Wi)({payload:e}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=s.NT.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,A.Wi)({payload:e}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(e){switch(this.sendFundError="",e.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}e.selectedIndex{var f;this.selAmountUnit=e.value,o.transactionAmount=+((null===(f=o.decimalPipe.transform(h[l],o.currencyUnitFormats[l]))||void 0===f?void 0:f.replace(/,/g,""))||0)},error:h=>{o.transactionAmount=null,this.amountError="Conversion Error: "+h,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(N.mQ),t.Y36(S.yh),t.Y36(dt.V),t.Y36(O.v),t.Y36(u.JJ),t.Y36(it.ux),t.Y36(j.eX),t.Y36(p.qu))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Gu,7),t.Gf(Vu,5),t.Gf(Wu,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.form=a.first),t.iGM(a=t.CRH())&&(o.formSweepAll=a.first),t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex.gt-sm","55"],["autoFocus","","matInput","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex.gt-sm","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex.gt-sm","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","48"],["tabindex","4",3,"value","valueChange"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["matInput","","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","5",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","6",3,"ngModel","step","min","ngModelChange"],["fees","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxFlex.gt-sm","25"],["formControlName","selTransType","tabindex","5"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","placeholder","Number of Blocks","type","number","name","blcks","required","","tabindex","6",3,"step","min"],["matInput","","formControlName","transactionFees","placeholder","Fees (Sats/vByte)","type","number","name","chainFees","required","","tabindex","7",3,"step","min"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6),t.YNc(9,l6,28,14,"form",7),t.qZA()()(),t.YNc(10,y6,34,15,"ng-template",null,8,t.W1O)),2&e){const a=t.MAs(11);t.xp6(5),t.Oqu(o.sweepAll?"Sweep All Funds":"Send Funds"),t.xp6(1),t.Q6J("mat-dialog-close",!1),t.xp6(3),t.Q6J("ngIf",!o.sweepAll)("ngIfElse",a)}},directives:[m.xw,m.yH,y.dk,m.Wh,q.lW,Q.ZT,y.dn,u.O5,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,C.TO,p.wV,p.qQ,et.q,C.R9,M.gD,u.sg,G.ey,D.BN,Y.Vq,Y.C0,p.sg,Y.VY,p.u,Y.Ic],styles:[""]}),n})(),ae=(()=>{class n{constructor(e,o){this.store=e,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new d.x,new d.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,F.qR)({payload:{data:{sweepAll:this.sweepAll,component:T6}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.yh),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(o.sweepAll?"Sweep All":"Send Funds"))},directives:[m.xw,m.yH,m.Wh,q.lW],styles:[""]}),n})();function v6(n,i){1&n&&t._UZ(0,"mat-progress-bar",26)}function b6(n,i){if(1&n&&t._UZ(0,"rtl-node-info",27),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!0)}}function w6(n,i){if(1&n&&t._UZ(0,"rtl-channel-status-info",28),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[3]+" "+e.errorMessages[4])}}function Z6(n,i){if(1&n&&t._UZ(0,"rtl-fee-info",29),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[2])}}const le=function(n){return{"dashboard-card-content":!0,"error-border":n}};function A6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),t._UZ(4,"fa-icon",17),t.TgZ(5,"span"),t._uU(6),t.qZA()()(),t.TgZ(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),t.YNc(10,v6,1,0,"mat-progress-bar",21),t.TgZ(11,"div",22),t.YNc(12,b6,1,2,"rtl-node-info",23),t.YNc(13,w6,1,2,"rtl-channel-status-info",24),t.YNc(14,Z6,1,2,"rtl-fee-info",25),t.qZA()()()()()()),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(4),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(3),t.Q6J("ngClass",t.VKq(10,le,"node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.ERROR)||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===e.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusPendingChannels.status===o.apiCallStatusEnum.INITIATED)||"fee"===e.id&&o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","status"),t.xp6(1),t.Q6J("ngSwitchCase","fee")}}function L6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-list",11),t.YNc(1,A6,15,12,"mat-grid-tile",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nodeCards)}}function S6(n,i){1&n&&t._UZ(0,"mat-progress-bar",26)}function F6(n,i){1&n&&t.GkF(0)}function k6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,F6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function q6(n,i){1&n&&t.GkF(0)}function N6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,q6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function O6(n,i){1&n&&t.GkF(0)}function U6(n,i){if(1&n&&(t.TgZ(0,"div",33),t.YNc(1,O6,1,0,"ng-container",34),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(9),a=t.MAs(15);t.xp6(1),t.Q6J("ngTemplateOutlet",e.apiCallStatusNetwork.status===e.apiCallStatusEnum.ERROR?o:a)}}function M6(n,i){if(1&n&&(t.TgZ(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",20),t.YNc(3,S6,1,0,"mat-progress-bar",21),t.TgZ(4,"div",22),t.YNc(5,k6,2,1,"div",32),t.YNc(6,N6,2,1,"div",32),t.YNc(7,U6,2,1,"div",32),t.qZA()()()()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(2),t.Q6J("ngClass",t.VKq(8,le,o.apiCallStatusNetwork.status===o.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf",o.apiCallStatusNetwork.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","general"),t.xp6(1),t.Q6J("ngSwitchCase","channels"),t.xp6(1),t.Q6J("ngSwitchCase","degrees")}}function P6(n,i){if(1&n&&(t.TgZ(0,"div",35)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessages[1])}}function I6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Network Capacity"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Number of Nodes"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div")(14,"h4",37),t._uU(15,"Number of Channels"),t.qZA(),t.TgZ(16,"span",38),t._uU(17),t.ALo(18,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,3,e.networkInfo.total_network_capacity)," Sats"),t.xp6(6),t.Oqu(t.lcZ(12,5,e.networkInfo.num_nodes)),t.xp6(6),t.Oqu(t.lcZ(18,7,e.networkInfo.num_channels))}}function R6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Max Channel Size"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Avg Channel Size"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div")(14,"h4",37),t._uU(15,"Min Channel Size"),t.qZA(),t.TgZ(16,"span",38),t._uU(17),t.ALo(18,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,3,e.networkInfo.max_channel_size)),t.xp6(6),t.Oqu(t.lcZ(12,5,e.networkInfo.avg_channel_size)),t.xp6(6),t.Oqu(t.lcZ(18,7,e.networkInfo.min_channel_size))}}function D6(n,i){if(1&n&&(t.TgZ(0,"div",36)(1,"div")(2,"h4",37),t._uU(3,"Max Out Degree"),t.qZA(),t.TgZ(4,"div",38),t._uU(5),t.ALo(6,"number"),t.qZA()(),t.TgZ(7,"div")(8,"h4",37),t._uU(9,"Avg Out Degree"),t.qZA(),t.TgZ(10,"div",38),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div",39),t._UZ(14,"h4",37)(15,"span",38),t.qZA()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,2,e.networkInfo.max_out_degree)),t.xp6(6),t.Oqu(t.xi3(12,4,e.networkInfo.avg_out_degree,"1.0-2"))}}const Q6=function(n){return{"mt-1":n}};let J6=(()=>{class n{constructor(e,o,a){this.logger=e,this.commonService=o,this.store=a,this.faProjectDiagram=b.TmZ,this.faBolt=b.BDt,this.faServer=b.xf3,this.faNetworkWired=b.kXW,this.selNode={},this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=s.cu,this.userPersonaEnum=s.ol,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(T.bx).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===s.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=e.nodeSettings,this.information=e.information}),this.store.select(T.N7).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusNetwork=e.apiCallStatus,this.apiCallStatusNetwork.status===s.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=e.networkInfo}),this.store.select(T.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[2]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===s.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(T.ni).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{var o,a,l,r,h;this.errorMessages[4]="",this.apiCallStatusPendingChannels=e.apiCallStatus,this.apiCallStatusPendingChannels.status===s.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:null===(o=e.pendingChannelsSummary.open)||void 0===o?void 0:o.num_channels,capacity:null===(a=e.pendingChannelsSummary.open)||void 0===a?void 0:a.limbo_balance},this.channelsStatus.closing={num_channels:((null===(l=e.pendingChannelsSummary.closing)||void 0===l?void 0:l.num_channels)||0)+((null===(r=e.pendingChannelsSummary.force_closing)||void 0===r?void 0:r.num_channels)||0)+((null===(h=e.pendingChannelsSummary.waiting_close)||void 0===h?void 0:h.num_channels)||0),capacity:e.pendingChannelsSummary.total_limbo_balance}}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.errorMessages[3]="",this.apiCallStatusChannels=e.apiCallStatus,this.apiCallStatusChannels.status===s.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=e.channelsSummary.active,this.channelsStatus.inactive=e.channelsSummary.inactive,this.logger.info(e)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-network-info"]],decls:16,vars:6,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,L6,2,1,"mat-grid-list",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Network"),t.qZA()(),t.TgZ(6,"mat-grid-list",5),t.YNc(7,M6,8,10,"mat-grid-tile",6),t.qZA()(),t.YNc(8,P6,3,1,"ng-template",null,7,t.W1O),t.YNc(10,I6,19,9,"ng-template",null,8,t.W1O),t.YNc(12,R6,19,9,"ng-template",null,9,t.W1O),t.YNc(14,D6,16,7,"ng-template",null,10,t.W1O)),2&e&&(t.xp6(1),t.Q6J("ngIf",o.selNode.userPersona!==o.userPersonaEnum.OPERATOR),t.xp6(1),t.Q6J("ngClass",t.VKq(4,Q6,o.screenSize!==o.screenSizeEnum.XS)),t.xp6(1),t.Q6J("icon",o.faProjectDiagram),t.xp6(4),t.Q6J("ngForOf",o.networkCards))},directives:[m.xw,m.Wh,u.O5,Ct.Il,u.sg,Ct.DX,m.yH,D.BN,y.a8,y.dn,u.mk,L.oO,J.pW,u.RF,u.n9,Jt,Ht,Et,u.tP],pipes:[u.JJ],styles:[""]}),n})();function E6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let H6=(()=>{class n{constructor(e){this.router=e,this.faDownload=b.q7m,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-backup"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Channels Backup"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,E6,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faDownload),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function Y6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",23)(1,"h4",24),t._uU(2),t.qZA(),t.TgZ(3,"div",25)(4,"button",26),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRestoreChannels({})}),t._uU(5,"Restore All"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function B6(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"h4",24),t._uU(2),t.qZA(),t.TgZ(3,"h4",28),t._uU(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function z6(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"h4",24),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij("Restore folder location: ",e.selNode.channelBackupPath,"/restore")}}function G6(n,i){1&n&&t._UZ(0,"mat-progress-bar",29)}function V6(n,i){1&n&&(t.TgZ(0,"th",30),t._uU(1," Channel Point "),t.qZA())}const W6=function(n){return{"max-width":n}};function X6(n,i){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,W6,o.screenSize===o.screenSizeEnum.XS?"10rem":"45rem")),t.xp6(1),t.Oqu(null==e?null:e.channel_point)}}function j6(n,i){1&n&&(t.TgZ(0,"th",32)(1,"span",33),t._uU(2,"Actions"),t.qZA()())}function K6(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",34)(1,"span",33)(2,"button",35),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onRestoreChannels(l)}),t._uU(3,"Restore"),t.qZA()()()}}function $6(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No singular channel backups available."),t.qZA())}function t4(n,i){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,$6,2,0,"p",37),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.channels||!e.channels.data||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)}}const e4=function(n){return{"display-none":n}};function n4(n,i){if(1&n&&t._UZ(0,"tr",38),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,e4,e.channels&&e.channels.data&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function o4(n,i){1&n&&t._UZ(0,"tr",39)}function i4(n,i){1&n&&t._UZ(0,"tr",40)}const a4=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},l4=function(){return["no_channel"]};let s4=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.allRestoreExists=!1,this.flgLoading=[!0],this.flgSticky=!1,this.selFilter="",this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,A.tb)()),this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.lndEffects.setRestoreChannelList.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.allRestoreExists=e.all_restore_exists,this.channelsData=e.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||e&&e.files)&&(this.flgLoading[0]=!1),this.logger.info(e)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(e){this.store.dispatch((0,A.vV)({payload:{channelPoint:e.channel_point?e.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(e){this.channels=new c.by([...e]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.channels.paginator=this.paginator,this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(ot.l),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-restore-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:24,vars:17,consts:[["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell",""],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Y6,6,1,"div",1),t.YNc(2,B6,5,1,"div",2),t.YNc(3,z6,3,1,"div",2),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7),t.YNc(9,G6,1,0,"mat-progress-bar",8),t.TgZ(10,"table",9,10),t.ynx(12,11),t.YNc(13,V6,2,0,"th",12),t.YNc(14,X6,2,4,"td",13),t.BQk(),t.ynx(15,14),t.YNc(16,j6,3,0,"th",15),t.YNc(17,K6,4,0,"td",16),t.BQk(),t.ynx(18,17),t.YNc(19,t4,2,1,"td",18),t.BQk(),t.YNc(20,n4,1,3,"tr",19),t.YNc(21,o4,1,0,"tr",20),t.YNc(22,i4,1,0,"tr",21),t.qZA()(),t._UZ(23,"mat-paginator",22),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.allRestoreExists),t.xp6(1),t.Q6J("ngIf",!o.allRestoreExists&&(!o.channels||(null==o.channels||null==o.channels.data?null:o.channels.data.length)<=0)),t.xp6(1),t.Q6J("ngIf",!o.allRestoreExists&&o.channels&&(null==o.channels||null==o.channels.data?null:o.channels.data.length)&&(null==o.channels||null==o.channels.data?null:o.channels.data.length)>0),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(14,a4,"error"===o.flgLoading[0])),t.xp6(10),t.Q6J("matFooterRowDef",t.DdM(16,l4)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,u.O5,m.Wh,m.yH,q.lW,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function r4(n,i){1&n&&t._UZ(0,"mat-progress-bar",31)}function c4(n,i){1&n&&(t.TgZ(0,"th",32),t._uU(1," Channel Point "),t.qZA())}const p4=function(n){return{"max-width":n}};function u4(n,i){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("ngStyle",t.VKq(2,p4,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(null==e?null:e.channel_point)}}function m4(n,i){1&n&&(t.TgZ(0,"th",34)(1,"span",35),t._uU(2,"Actions"),t.qZA()())}function d4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",36)(1,"div",37)(2,"mat-select",38),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",39),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onChannelClick(r,a)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onBackupChannels(l)}),t._uU(7,"Backup"),t.qZA(),t.TgZ(8,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onDownloadBackup(l)}),t._uU(9,"Download Backup"),t.qZA(),t.TgZ(10,"mat-option",39),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onVerifyChannels(l)}),t._uU(11,"Verify"),t.qZA()()()()}}function h4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function _4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function f4(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function g4(n,i){if(1&n&&(t.TgZ(0,"td",40),t.YNc(1,h4,2,0,"p",41),t.YNc(2,_4,2,0,"p",41),t.YNc(3,f4,2,1,"p",41),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const C4=function(n){return{"display-none":n}};function x4(n,i){if(1&n&&t._UZ(0,"tr",42),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,C4,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function y4(n,i){1&n&&t._UZ(0,"tr",43)}function T4(n,i){1&n&&t._UZ(0,"tr",44)}const v4=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},b4=function(){return["no_channel"]};let w4=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=b.sqG,this.faExclamationTriangle=b.eHv,this.faArchive=b.N2j,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.selNode={},this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.flgSticky=!1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(T.$k).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=e.channels,this.channelsData.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,H.h)(e=>e.type===s.uR.SET_CHANNELS_LND||e.type===s.pg.SHOW_FILE)).subscribe(e=>{var o;e.type===s.uR.SET_CHANNELS_LND&&(this.selectedChannel=null),e.type===s.pg.SHOW_FILE&&(this.commonService.downloadFile(e.payload,"channel-"+((null===(o=this.selectedChannel)||void 0===o?void 0:o.channel_point)?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(e){this.store.dispatch((0,A.Vv)({payload:{uiMessage:s.m6.BACKUP_CHANNEL,channelPoint:e.channel_point?e.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(e){this.store.dispatch((0,A.Cp)({payload:{channelPoint:e.channel_point?e.channel_point:"ALL"}}))}onDownloadBackup(e){this.selectedChannel=e,this.store.dispatch((0,F.dc)({payload:{channelPoint:e.channel_point?e.channel_point:"all"}}))}onChannelClick(e,o){this.store.dispatch((0,F.qR)({payload:{data:{channel:e,showCopy:!1,component:St}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(e){this.channels=new c.by(e?[...e]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>((o.active?"active":"inactive")+(o.channel_point?o.channel_point.toLowerCase():"")+(o.chan_id?o.chan_id.toLowerCase():"")+(o.remote_pubkey?o.remote_pubkey.toLowerCase():"")+(o.remote_alias?o.remote_alias.toLowerCase():"")+(o.capacity?o.capacity:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"")+(o.total_satoshis_sent?o.total_satoshis_sent:"")+(o.total_satoshis_received?o.total_satoshis_received:"")+(o.commit_fee?o.commit_fee:"")+(o.private?"private":"public")).includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(S.yh),t.Y36(j.eX),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-channel-backup-table"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Channels")}])],decls:42,vars:18,consts:[["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","",1,"pr-3"],["fxLayoutAlign","end center"],["mat-cell","","fxLayoutAlign","end center"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5,"Save your backup files in a redundant location."),t.qZA()(),t.TgZ(6,"div",4),t._UZ(7,"fa-icon",3),t.TgZ(8,"span")(9,"strong"),t._uU(10,"Backup Folder Location: "),t.qZA(),t._uU(11),t.qZA()(),t.TgZ(12,"div",5)(13,"button",6),t.NdJ("click",function(){return o.onVerifyChannels({})}),t._uU(14,"Verify All"),t.qZA(),t.TgZ(15,"button",7),t.NdJ("click",function(){return o.onBackupChannels({})}),t._uU(16,"Backup All"),t.qZA(),t.TgZ(17,"button",8),t.NdJ("click",function(){return o.onDownloadBackup({})}),t._uU(18,"Download Backup"),t.qZA()()(),t.TgZ(19,"div",9)(20,"div",10),t._UZ(21,"fa-icon",11),t.TgZ(22,"span",12),t._uU(23,"Backups"),t.qZA()(),t.TgZ(24,"mat-form-field",13)(25,"input",14),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(26,"div",15),t.YNc(27,r4,1,0,"mat-progress-bar",16),t.TgZ(28,"table",17,18),t.ynx(30,19),t.YNc(31,c4,2,0,"th",20),t.YNc(32,u4,2,4,"td",21),t.BQk(),t.ynx(33,22),t.YNc(34,m4,3,0,"th",23),t.YNc(35,d4,12,0,"td",24),t.BQk(),t.ynx(36,25),t.YNc(37,g4,4,3,"td",26),t.BQk(),t.YNc(38,x4,1,3,"tr",27),t.YNc(39,y4,1,0,"tr",28),t.YNc(40,T4,1,0,"tr",29),t.qZA()(),t._UZ(41,"mat-paginator",30),t.qZA()),2&e&&(t.xp6(3),t.Q6J("icon",o.faExclamationTriangle),t.xp6(4),t.Q6J("icon",o.faInfoCircle),t.xp6(4),t.hij("",o.selNode.channelBackupPath,"."),t.xp6(10),t.Q6J("icon",o.faArchive),t.xp6(4),t.Q6J("ngModel",o.selFilter),t.xp6(2),t.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",o.channels)("ngClass",t.VKq(15,v4,""!==o.errorMessage)),t.xp6(10),t.Q6J("matFooterRowDef",t.DdM(17,b4)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,D.BN,q.lW,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,M.gD,M.$L,G.ey,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function Z4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().activeLink=l.link}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",o.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let A4=(()=>{class n{constructor(e){this.router=e,this.faUserCheck=b.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new d.x,new d.x]}ngOnInit(){const e=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Sign/Verify Message"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Z4,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faUserCheck),t.xp6(7),t.Q6J("ngForOf",o.links))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,m.yH,v.lC],styles:[""]}),n})();function L4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Message is required."),t.qZA())}let S4=(()=>{class n{constructor(e,o,a){this.dataService=e,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new d.x,new d.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.signedMessage=this.message,this.signature=e.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(e){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+e)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D),t.Y36(it.ux),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),t.NdJ("ngModelChange",function(l){return o.message=l})("keyup",function(){return o.onMessageChange()}),t.qZA(),t.YNc(5,L4,2,0,"mat-error",5),t.qZA(),t.TgZ(6,"div",6)(7,"button",7),t.NdJ("click",function(){return o.resetData()}),t._uU(8,"Clear Field"),t.qZA(),t.TgZ(9,"button",8),t.NdJ("click",function(){return o.onSign()}),t._uU(10,"Sign"),t.qZA()(),t._UZ(11,"mat-divider",9),t.TgZ(12,"div",10)(13,"p"),t._uU(14,"Generated Signature"),t.qZA()(),t.TgZ(15,"div",11),t._uU(16),t.qZA(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("copied",function(l){return o.onCopyField(l)}),t._uU(19,"Copy Signature"),t.qZA()()()()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.message),t.xp6(1),t.Q6J("ngIf",!o.message),t.xp6(6),t.Q6J("inset",!0),t.xp6(5),t.Oqu(o.signature),t.xp6(2),t.Q6J("payload",o.signature))},directives:[m.xw,m.yH,m.Wh,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,q.lW,V.d,ht.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();function F4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Message is required."),t.qZA())}function k4(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Signature is required."),t.qZA())}function q4(n,i){1&n&&(t.TgZ(0,"p",13)(1,"mat-icon",14),t._uU(2,"close"),t.qZA(),t._uU(3,"Verification failed, please double check message and signature"),t.qZA())}function N4(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Pubkey Used"),t.qZA())}function O4(n,i){if(1&n&&(t.TgZ(0,"div",20)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(2),t.Oqu(null==e.verifyRes?null:e.verifyRes.pubkey)}}function U4(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",21)(1,"button",22),t.NdJ("copied",function(a){return t.CHM(e),t.oxw(2).onCopyField(a)}),t._uU(2,"Copy Pubkey"),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function M4(n,i){if(1&n&&(t.TgZ(0,"div",15),t._UZ(1,"mat-divider",16),t.TgZ(2,"div",17),t.YNc(3,N4,2,0,"p",5),t.qZA(),t.YNc(4,O4,3,1,"div",18),t.YNc(5,U4,3,1,"div",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(2),t.Q6J("ngIf",e.verifyRes.valid),t.xp6(1),t.Q6J("ngIf",e.verifyRes.valid),t.xp6(1),t.Q6J("ngIf",e.verifyRes.valid)}}let P4=(()=>{class n{constructor(e,o,a){this.dataService=e,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new d.x,new d.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.verifyRes=e,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(e){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+e)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D),t.Y36(it.ux),t.Y36(N.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),t.NdJ("ngModelChange",function(l){return o.message=l})("keyup",function(){return o.onChange()}),t.qZA(),t.YNc(5,F4,2,0,"mat-error",5),t.qZA(),t.TgZ(6,"mat-form-field",3)(7,"input",6,7),t.NdJ("ngModelChange",function(l){return o.signature=l})("keyup",function(){return o.onChange()}),t.qZA(),t.YNc(9,k4,2,0,"mat-error",5),t.qZA(),t.YNc(10,q4,4,0,"p",8),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return o.resetData()}),t._uU(13,"Clear Fields"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return o.onVerify()}),t._uU(15,"Verify"),t.qZA()(),t.YNc(16,M4,6,4,"div",12),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("ngModel",o.message),t.xp6(1),t.Q6J("ngIf",!o.message),t.xp6(2),t.Q6J("ngModel",o.signature),t.xp6(2),t.Q6J("ngIf",!o.signature),t.xp6(1),t.Q6J("ngIf",o.showVerifyStatus&&!o.verifyRes.valid),t.xp6(6),t.Q6J("ngIf",o.showVerifyStatus&&o.verifyRes.valid))},directives:[m.xw,m.yH,m.Wh,p._Y,p.JL,p.F,C.KE,P.Nt,p.Fj,W.h,p.Q7,p.JJ,p.On,u.O5,C.TO,$.Hw,q.lW,V.d,ht.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var I4=g(9442);let R4=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[v.lC],styles:[""]}),n})();function D4(n,i){1&n&&t._UZ(0,"mat-progress-bar",34)}function Q4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function J4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function E4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function H4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,e.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Y4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function B4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id)}}function z4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function G4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id_bytes)}}function V4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function W4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.LoopStateEnum[e.state])}}function X4(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function j4(n,i){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.htlc_address)}}function K4(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function $4(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt))}}function tm(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function em(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.cost_server))}}function nm(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function om(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.cost_offchain))}}function im(n,i){1&n&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function am(n,i){if(1&n&&(t.TgZ(0,"td",36)(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.cost_onchain)," ")}}function lm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",39)(1,"div",40)(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function sm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",43)(1,"button",44),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onSwapClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function rm(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.emptyTableMessage)}}function cm(n,i){if(1&n&&(t.TgZ(0,"td",45),t.YNc(1,rm,2,1,"p",46),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=e.listSwaps&&e.listSwaps.data)||(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)<1)}}const pm=function(n){return{"display-none":n}};function um(n,i){if(1&n&&t._UZ(0,"tr",47),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,pm,(null==e.listSwaps?null:e.listSwaps.data)&&(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)>0))}}function mm(n,i){1&n&&t._UZ(0,"tr",48)}function dm(n,i){1&n&&t._UZ(0,"tr",49)}const hm=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},_m=function(){return["no_swap"]};let fm=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.loopService=l,this.selectedSwapType=s.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=s.Fq,this.faHistory=b.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(e){this.swapCaption=this.selectedSwapType===s.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(e,o){var a,l;this.loopService.getSwap((null===(l=null===(a=e.id_bytes)||void 0===a?void 0:a.replace(/\//g,"_"))||void 0===l?void 0:l.replace(/\+/g,"-"))||"").pipe((0,_.R)(this.unSubs[2])).subscribe(r=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:s.Fq[r.state||""],title:"Status",width:50,type:s.Gi.STRING},{key:"amt",value:r.amt,title:"Amount (Sats)",width:50,type:s.Gi.NUMBER}],[{key:"initiation_time",value:(r.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:s.Gi.DATE_TIME},{key:"last_update_time",value:(r.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:s.Gi.DATE_TIME}],[{key:"cost_server",value:r.cost_server,title:"Server Cost (Sats)",width:33,type:s.Gi.NUMBER},{key:"cost_offchain",value:r.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:s.Gi.NUMBER},{key:"cost_onchain",value:r.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:s.Gi.NUMBER}],[{key:"id_bytes",value:r.id_bytes,title:"ID",width:100,type:s.Gi.STRING}],[{key:"htlc_address",value:r.htlc_address,title:"HTLC Address",width:100,type:s.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(e){this.listSwaps=new c.by([...e]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listSwaps.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===s.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(rt.W))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-swaps"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Swaps")}]),t.TTD],decls:52,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,D4,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Q4,2,0,"th",13),t.YNc(15,J4,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,E4,2,0,"th",13),t.YNc(18,H4,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Y4,2,0,"th",13),t.YNc(21,B4,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,z4,2,0,"th",13),t.YNc(24,G4,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,V4,2,0,"th",13),t.YNc(27,W4,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,X4,2,0,"th",13),t.YNc(30,j4,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,K4,2,0,"th",21),t.YNc(33,$4,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,tm,2,0,"th",21),t.YNc(36,em,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,nm,2,0,"th",21),t.YNc(39,om,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,im,2,0,"th",21),t.YNc(42,am,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,lm,6,0,"th",26),t.YNc(45,sm,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,cm,2,1,"td",29),t.BQk(),t.YNc(48,um,1,3,"tr",30),t.YNc(49,mm,1,0,"tr",31),t.YNc(50,dm,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",o.faHistory),t.xp6(2),t.hij("",o.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.listSwaps)("ngClass",t.VKq(13,hm,"error"===o.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,_m)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const gm=function(n){return["../",n]};function Cm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onSelectedIndexChange(l)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeTab.link===e.link)("routerLink",t.VKq(3,gm,e.link)),t.xp6(1),t.Oqu(e.name)}}let xm=(()=>{class n{constructor(e,o,a){this.router=e,this.loopService=o,this.store=a,this.faInfinity=b.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=s.$I,this.selectedSwapType=s.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.loopService.listSwaps();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"loopin"===e.link?s.$I.LOOP_IN:s.$I.LOOP_OUT,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeTab=a||this.links[0],this.selectedSwapType=a&&"loopin"===a.link?s.$I.LOOP_IN:s.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,_.R)(this.unSubs[1])).subscribe({next:o=>{var a;this.flgLoading[0]=!1,this.storedSwaps=o,this.filteredSwaps=null===(a=this.storedSwaps)||void 0===a?void 0:a.filter(l=>l.type===this.selectedSwapType)},error:o=>{this.flgLoading[0]="error",this.emptyTableMessage=o.message?o.message:"No loop "+(this.selectedSwapType===s.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(e){var o;this.selectedSwapType="loopin"===e.link?s.$I.LOOP_IN:s.$I.LOOP_OUT,this.filteredSwaps=null===(o=this.storedSwaps)||void 0===o?void 0:o.filter(a=>a.type===this.selectedSwapType)}onLoop(e){e===s.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[2])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{minQuote:o[0],maxQuote:o[1],direction:e,component:xt}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{minQuote:o[0],maxQuote:o[1],direction:e,component:xt}}}))}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(rt.W),t.Y36(S.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,Cm,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return o.onLoop(o.selectedSwapType)}),t._uU(11),t.qZA()(),t._UZ(12,"rtl-swaps",9),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",o.faInfinity),t.xp6(7),t.Q6J("ngForOf",o.links),t.xp6(3),t.hij("Start ",o.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",o.selectedSwapType)("swapsData",o.filteredSwaps)("flgLoading",o.flgLoading)("emptyTableMessage",o.emptyTableMessage))},directives:[m.xw,m.Wh,D.BN,y.a8,y.dn,R.BU,u.sg,R.Nj,v.rH,q.lW,fm,m.yH],styles:[""]}),n})();var Nt=g(2218);let ym=(()=>{class n{constructor(){this.serviceInfo={},this.direction=s.hc.SWAP_OUT,this.swapTypeEnum=s.hc}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(e,o){1&e&&(t.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),t._uU(4,"Service Information"),t.qZA()()(),t.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA()(),t.TgZ(13,"div",4)(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA()()(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div",4)(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA()()()()()),2&e&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==o.serviceInfo||null==o.serviceInfo.limits?null:o.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==o.serviceInfo||null==o.serviceInfo.limits?null:o.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==o.serviceInfo||null==o.serviceInfo.fees?null:o.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,o.direction===o.swapTypeEnum.SWAP_OUT?null==o.serviceInfo||null==o.serviceInfo.fees||null==o.serviceInfo.fees.miner?null:o.serviceInfo.fees.miner.reverse:null==o.serviceInfo||null==o.serviceInfo.fees||null==o.serviceInfo.fees.miner?null:o.serviceInfo.fees.miner.normal)))},directives:[E.ib,m.yH,E.yz,E.yK,m.Wh,m.xw,V.d],pipes:[u.JJ],styles:[""]}),n})();function Tm(n,i){1&n&&t.GkF(0)}function vm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"span",5),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(null!=e.swapStatus&&e.swapStatus.error?null==e.swapStatus?null:e.swapStatus.error:"Unknown Error.")}}function bm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()(),t.TgZ(20,"div",7)(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.swapStatus?null:e.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==e.swapStatus?null:e.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==e.swapStatus?null:e.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==e.swapStatus?null:e.swapStatus.lockupAddress)}}function wm(n,i){if(1&n&&(t.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",7)(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA()()(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA()()(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(null==e.swapStatus?null:e.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==e.swapStatus?null:e.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==e.swapStatus?null:e.swapStatus.address),t.xp6(7),t.Oqu(null==e.swapStatus?null:e.swapStatus.bip21)}}let Zm=(()=>{class n{constructor(){this.swapStatus=null,this.direction=s.hc.SWAP_OUT,this.swapTypeEnum=s.hc}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(e,o){if(1&e&&(t.YNc(0,Tm,1,0,"ng-container",0),t.YNc(1,vm,3,1,"ng-template",null,1,t.W1O),t.YNc(3,bm,25,6,"ng-template",null,2,t.W1O),t.YNc(5,wm,27,6,"ng-template",null,3,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=o.swapStatus&&o.swapStatus.error?a:o.direction===o.swapTypeEnum.SWAP_OUT?l:r)}},directives:[u.tP,m.xw,m.yH,m.Wh,V.d],pipes:[u.JJ],styles:[""]}),n})();function Am(n,i){1&n&&t.GkF(0)}const ft=function(n,i){return{"small-svg":n,"large-svg":i}};function Lm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Sm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",21)(2,"g",22),t._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs")(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA()()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Fm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),t.TgZ(9,"defs")(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function km(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",43)(2,"g",22),t._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function qm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,ft,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Nm=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(e,o){if(1&e&&(t.YNc(0,Am,1,0,"ng-container",0),t.YNc(1,Lm,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Sm,19,5,"ng-template",null,2,t.W1O),t.YNc(5,Fm,19,5,"ng-template",null,3,t.W1O),t.YNc(7,km,17,5,"ng-template",null,4,t.W1O),t.YNc(9,qm,13,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();function Om(n,i){1&n&&t.GkF(0)}const gt=function(n,i){return{"small-svg":n,"large-svg":i}};function Um(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18)(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA()(),t.TgZ(15,"div",19)(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Mm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18)(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA()(),t.TgZ(12,"div",19)(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Pm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),t.TgZ(9,"defs")(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA()(),t.kcU(),t.TgZ(13,"div",18)(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA()(),t.TgZ(16,"div",19)(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Im(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",40)(2,"g",41),t._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),t.qZA(),t.TgZ(8,"defs")(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA()()(),t.kcU(),t.TgZ(11,"div",18)(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA()(),t.TgZ(14,"div",19)(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Rm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(a){return t.CHM(e),t.oxw().onSwipe(a)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18)(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA()(),t.TgZ(10,"div",19)(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@sliderAnimation",e.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,gt,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let Dm=(()=>{class n{constructor(e){this.commonService=e,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(e){2===e.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===e.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(e,o){if(1&e&&(t.YNc(0,Om,1,0,"ng-container",0),t.YNc(1,Um,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Mm,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Pm,19,5,"ng-template",null,3,t.W1O),t.YNc(7,Im,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Rm,13,5,"ng-template",null,5,t.W1O)),2&e){const a=t.MAs(2),l=t.MAs(4),r=t.MAs(6),h=t.MAs(8),f=t.MAs(10);t.Q6J("ngTemplateOutlet",1===o.stepNumber?a:2===o.stepNumber?l:3===o.stepNumber?r:4===o.stepNumber?h:f)}},directives:[u.tP,m.xw,m.yH,m.Wh,u.mk,L.oO,y.n5,y.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[pt.l]}}),n})();const Qm=["stepper"];function Jm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.Oqu(e.inputFormLabel)}}function Em(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Hm(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal),".")}}function Ym(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal),".")}}function Bm(n,i){1&n&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function zm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij("Initiate ",e.swapDirectionCaption,"")}}function Gm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(3);t.Oqu(e.addressFormLabel)}}function Vm(n,i){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Wm(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"mat-step",15)(1,"form",16),t.YNc(2,Gm,1,1,"ng-template",17),t.TgZ(3,"div",42)(4,"mat-radio-group",43),t.NdJ("change",function(a){return t.CHM(e),t.oxw(2).onAddressTypeChange(a)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA()(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,Vm,2,0,"mat-error",24),t.qZA()(),t.TgZ(12,"div",25)(13,"button",48),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onSwap()}),t._uU(14),t.qZA()()()()}if(2&n){const e=t.oxw(2);t.Q6J("stepControl",e.addressFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.addressFormGroup),t.xp6(9),t.Q6J("required","external"===e.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==e.addressFormGroup.controls.address.errors?null:e.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",e.swapDirectionCaption,"")}}function Xm(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw(2);t.hij("",e.swapDirectionCaption," Status")}}function jm(n,i){if(1&n&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.swapStatus&&null!=e.swapStatus&&e.swapStatus.id?"check":"close")}}function Km(n,i){1&n&&t._UZ(0,"div")}function $m(n,i){1&n&&t._UZ(0,"mat-progress-bar",50)}function t5(n,i){if(1&n&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.swapStatus&&e.swapStatus.error?e.swapDirectionCaption+" failed.":e.swapStatus&&e.swapStatus.id?e.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":e.swapDirectionCaption+" request placed successfully.")}}function e5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function n5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t._uU(5),t.qZA()(),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onClose()}),t._uU(10,"X"),t.qZA()()(),t.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().stepSelectionChanged(a)}),t.TgZ(15,"mat-step",15)(16,"form",16),t.YNc(17,Jm,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20)(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,Em,2,0,"mat-error",24),t.YNc(30,Hm,3,3,"mat-error",24),t.YNc(31,Ym,3,3,"mat-error",24),t.qZA()(),t.TgZ(32,"div",25),t.YNc(33,Bm,2,0,"button",26),t.YNc(34,zm,2,1,"button",27),t.qZA()()(),t.YNc(35,Wm,15,6,"mat-step",28),t.TgZ(36,"mat-step",29)(37,"form",16),t.YNc(38,Xm,1,1,"ng-template",17),t.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),t._uU(44),t.YNc(45,jm,2,1,"mat-icon",33),t.qZA()()(),t.YNc(46,Km,1,0,"div",34),t.qZA(),t.YNc(47,$m,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,t5,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,e5,2,0,"button",37),t.qZA()()()(),t.TgZ(51,"div",38)(52,"button",39),t._uU(53,"Close"),t.qZA()()()()()()}if(2&n){const e=t.oxw(),o=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(e.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.inputFormGroup)("editable",e.flgEditable),t.xp6(1),t.Q6J("formGroup",e.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",e.serviceInfo)("direction",e.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==e.serviceInfo||null==e.serviceInfo.limits?null:e.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==e.inputFormGroup||null==e.inputFormGroup.controls||null==e.inputFormGroup.controls.amount||null==e.inputFormGroup.controls.amount.errors?null:e.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",e.statusFormGroup),t.xp6(1),t.Q6J("formGroup",e.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!e.swapStatus),t.xp6(4),t.Oqu(e.swapStatus?e.swapStatus.id?e.swapDirectionCaption+" request details":e.swapDirectionCaption+" error details":"Waiting for "+e.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",e.swapStatus),t.xp6(1),t.Q6J("ngIf",!e.swapStatus)("ngIfElse",o),t.xp6(1),t.Q6J("ngIf",!e.swapStatus),t.xp6(1),t.Q6J("ngIf",e.swapStatus),t.xp6(2),t.Q6J("ngIf",e.swapStatus&&(e.swapStatus.error||!e.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function o5(n,i){if(1&n&&t._UZ(0,"rtl-boltz-swap-status",53),2&n){const e=t.oxw();t.Q6J("swapStatus",e.swapStatus)("direction",e.direction)}}function i5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}function a5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(a){return t.CHM(e),t.oxw(2).stepNumber=a}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("stepNumber",e.stepNumber)("animationDirection",e.animationDirection)}}const l5=function(n,i){return{"dot-primary":n,"dot-primary-lighter":i}};function s5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onStepChanged(l)}),t._UZ(1,"p",72),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,l5,o.stepNumber===e,o.stepNumber!==e))}}function r5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function c5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function p5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function u5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function m5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function d5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return a.onStepChanged(a.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const h5=function(){return[1,2,3,4,5]};function _5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57)(6,"button",58),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.flgShowInfo=!1,a.stepNumber=1}),t._uU(7,"X"),t.qZA()()(),t.TgZ(8,"mat-card-content",59),t.YNc(9,i5,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,a5,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,s5,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,r5,2,0,"button",64),t.YNc(15,c5,2,0,"button",65),t.YNc(16,p5,2,0,"button",66),t.YNc(17,u5,2,0,"button",67),t.YNc(18,m5,2,0,"button",68),t.YNc(19,d5,2,0,"button",69),t.qZA()()()}if(2&n){const e=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",e.direction===e.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,h5)),t.xp6(2),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",5===e.stepNumber),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber>1&&e.stepNumber<5),t.xp6(1),t.Q6J("ngIf",e.stepNumber<5)}}let f5=(()=>{class n{constructor(e,o,a,l,r,h,f,x,I){this.dialogRef=e,this.data=o,this.store=a,this.boltzService=l,this.formBuilder=r,this.decimalPipe=h,this.logger=f,this.router=x,this.commonService=I,this.faInfoCircle=b.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=s.hc,this.direction=s.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=s.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new d.x,new d.x,new d.x,new d.x,new d.x,new d.x]}ngOnInit(){var e,o,a;this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||s.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===s.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[null===(e=this.serviceInfo.limits)||void 0===e?void 0:e.minimal,[p.kI.required,p.kI.min((null===(o=this.serviceInfo.limits)||void 0===o?void 0:o.minimal)||0),p.kI.max((null===(a=this.serviceInfo.limits)||void 0===a?void 0:a.maximal)||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[p.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===s.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===s.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(e){"external"===e.value?(this.addressFormGroup.controls.address.setValidators([p.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){var e,o,a;if(!this.inputFormGroup.controls.amount.value||(null===(e=this.serviceInfo.limits)||void 0===e?void 0:e.minimal)&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||(null===(o=this.serviceInfo.limits)||void 0===o?void 0:o.maximal)&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===s.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,null===(a=this.stepper.selected)||void 0===a||a.stepControl.setErrors(null),this.stepper.next(),this.direction===s.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,_.R)(this.unSubs[3])).subscribe({next:l=>{this.swapStatus=l,this.boltzService.listSwaps(),this.flgEditable=!0},error:l=>{this.swapStatus={error:l},this.flgEditable=!0,this.logger.error(l)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,_.R)(this.unSubs[4])).subscribe({next:r=>{this.swapStatus=r,this.boltzService.listSwaps(),this.flgEditable=!0},error:r=>{this.swapStatus={error:r},this.flgEditable=!0,this.logger.error(r)}})}stepSelectionChanged(e){switch(e.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Q.so),t.Y36(Q.WI),t.Y36(S.yh),t.Y36(Nt.X),t.Y36(p.qu),t.Y36(u.JJ),t.Y36(N.mQ),t.Y36(v.F0),t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(e,o){if(1&e&&t.Gf(Qm,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,n5,54,34,"div",0),t.YNc(1,o5,1,2,"ng-template",null,1,t.W1O),t.YNc(3,_5,20,11,"div",2)),2&e&&(t.Q6J("ngIf",!o.flgShowInfo),t.xp6(3),t.Q6J("ngIf",o.flgShowInfo))},directives:[u.O5,m.xw,m.yH,m.Wh,y.dk,q.lW,y.dn,Y.Vq,Y.C0,p._Y,p.JL,p.sg,Y.VY,ym,C.KE,P.Nt,p.wV,p.Fj,W.h,p.JJ,p.u,p.Q7,C.bx,C.R9,C.TO,Y.Ic,tt.VQ,tt.U0,E.ib,E.yz,E.yK,$.Hw,J.pW,Q.ZT,Zm,Nm,Dm,u.sg,u.mk,L.oO],pipes:[u.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[st._]}}),n})();function g5(n,i){1&n&&t._UZ(0,"mat-progress-bar",32)}function C5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function x5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.swapStateEnum[e.status])}}function y5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function T5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.id)}}function v5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function b5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.claimAddress)}}function w5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function Z5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.onchainAmount))}}function A5(n,i){1&n&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function L5(n,i){if(1&n&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e.lockupAddress)}}function S5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function F5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.expectedAmount))}}function k5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function q5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.timeoutBlockHeight))}}function N5(n,i){1&n&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function O5(n,i){if(1&n&&(t.TgZ(0,"td",34)(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.amt))}}function U5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function M5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",41)(1,"button",42),t.NdJ("click",function(a){const r=t.CHM(e).$implicit;return t.oxw().onSwapClick(r,a)}),t._uU(2,"View Info"),t.qZA()()}}function P5(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.emptyTableMessage)}}function I5(n,i){if(1&n&&(t.TgZ(0,"td",43),t.YNc(1,P5,2,1,"p",44),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=e.listSwaps&&e.listSwaps.data)||(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)<1)}}const R5=function(n){return{"display-none":n}};function D5(n,i){if(1&n&&t._UZ(0,"tr",45),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,R5,(null==e.listSwaps?null:e.listSwaps.data)&&(null==e.listSwaps||null==e.listSwaps.data?null:e.listSwaps.data.length)>0))}}function Q5(n,i){1&n&&t._UZ(0,"tr",46)}function J5(n,i){1&n&&t._UZ(0,"tr",47)}const E5=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},H5=function(){return["no_swap"]};let Y5=(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.boltzService=l,this.selectedSwapType=s.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=s.Qw,this.faHistory=b.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(e){e.selectedSwapType&&!e.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===s.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===s.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(e,o){this.boltzService.swapInfo(e.id||"").pipe((0,_.R)(this.unSubs[1])).subscribe(a=>{this.store.dispatch((0,F.qR)({payload:{data:{type:s.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:s.Qw[(a=this.selectedSwapType===s.hc.SWAP_IN?a.swap:a.reverseSwap).status],title:"Status",width:50,type:s.Gi.STRING},{key:"id",value:a.id,title:"ID",width:50,type:s.Gi.STRING}],[{key:"amount",value:a.onchainAmount?a.onchainAmount:a.expectedAmount?a.expectedAmount:0,title:a.onchainAmount?"Onchain Amount (Sats)":a.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:s.Gi.NUMBER},{key:"timeoutBlockHeight",value:a.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:s.Gi.NUMBER}],[{key:"address",value:a.claimAddress?a.claimAddress:a.lockupAddress?a.lockupAddress:"",title:a.claimAddress?"Claim Address":a.lockupAddress?"Lockup Address":"Address",width:100,type:s.Gi.STRING}],[{key:"invoice",value:a.invoice,title:"Invoice",width:100,type:s.Gi.STRING}],[{key:"privateKey",value:a.privateKey,title:"Private Key",width:100,type:s.Gi.STRING}],[{key:"preimage",value:a.preimage,title:"Preimage",width:100,type:s.Gi.STRING}],[{key:"redeemScript",value:a.redeemScript,title:"Redeem Script",width:100,type:s.Gi.STRING}],[{key:"lockupTransactionId",value:a.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:s.Gi.STRING},{key:"transactionId",value:a.claimTransactionId?a.claimTransactionId:a.refundTransactionId?a.refundTransactionId:"",title:a.claimTransactionId?"Claim Transaction ID":a.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:s.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(e){this.listSwaps=new c.by(e?[...e]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listSwaps.filterPredicate=(o,a)=>JSON.stringify(o).toLowerCase().includes(a),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===s.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(Nt.X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-swaps"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"mat-form-field",5)(7,"input",6),t.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(l){return o.selFilter=l}),t.qZA()()(),t.TgZ(8,"div",7)(9,"div",8),t.YNc(10,g5,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,C5,2,0,"th",13),t.YNc(15,x5,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,y5,2,0,"th",13),t.YNc(18,T5,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,v5,2,0,"th",13),t.YNc(21,b5,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,w5,2,0,"th",18),t.YNc(24,Z5,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,A5,2,0,"th",13),t.YNc(27,L5,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,S5,2,0,"th",18),t.YNc(30,F5,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,k5,2,0,"th",18),t.YNc(33,q5,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,N5,2,0,"th",18),t.YNc(36,O5,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,U5,6,0,"th",24),t.YNc(39,M5,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,I5,2,1,"td",27),t.BQk(),t.YNc(42,D5,1,3,"tr",28),t.YNc(43,Q5,1,0,"tr",29),t.YNc(44,J5,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",o.faHistory),t.xp6(2),t.hij("",o.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",o.selFilter),t.xp6(3),t.Q6J("ngIf",!0===o.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",o.listSwaps)("ngClass",t.VKq(13,E5,"error"===o.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,H5)),t.xp6(1),t.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,D.BN,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,u.O5,J.pW,c.BZ,Z.YE,u.mk,L.oO,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,M.gD,M.$L,G.ey,q.lW,c.mD,c.yh,c.Ke,c.Q2,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})();const B5=function(n){return["../",n]};function z5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw().onSelectedIndexChange(l)}),t._uU(1),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.Q6J("active",o.activeTab.link===e.link)("routerLink",t.VKq(3,B5,e.link)),t.xp6(1),t.Oqu(e.name)}}let G5=(()=>{class n{constructor(e,o,a){this.router=e,this.store=o,this.boltzService=a,this.swapTypeEnum=s.hc,this.selectedSwapType=s.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new d.x,new d.x,new d.x,new d.x]}ngOnInit(){this.boltzService.listSwaps();const e=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=e||this.links[0],this.selectedSwapType=e&&"swapin"===e.link?s.hc.SWAP_IN:s.hc.SWAP_OUT,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(o=>o instanceof v.Av)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeTab=a||this.links[0],this.selectedSwapType=a&&"swapin"===a.link?s.hc.SWAP_IN:s.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,_.R)(this.unSubs[1])).subscribe({next:o=>{this.swaps=o,this.swapsData=this.selectedSwapType===s.hc.SWAP_IN&&o.swaps?o.swaps:this.selectedSwapType===s.hc.SWAP_OUT&&o.reverseSwaps?o.reverseSwaps:[],this.flgLoading[0]=!1},error:o=>{this.flgLoading[0]="error",this.emptyTableMessage=o.message?o.message:"No swap "+(this.selectedSwapType===s.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(e){"swapin"===e.link?(this.selectedSwapType=s.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=s.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(e){this.boltzService.serviceInfo().pipe((0,_.R)(this.unSubs[2])).subscribe({next:o=>{this.store.dispatch((0,F.qR)({payload:{data:{serviceInfo:o,direction:e,component:f5}}}))}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.F0),t.Y36(S.yh),t.Y36(Nt.X))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),t._UZ(4,"circle",4)(5,"path",5)(6,"path",6),t.qZA()()(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA()(),t.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),t.YNc(13,z5,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return o.onSwap(o.selectedSwapType)}),t._uU(16),t.qZA()(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA()()()),2&e&&(t.xp6(13),t.Q6J("ngForOf",o.links),t.xp6(3),t.hij("Start ",o.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",o.selectedSwapType)("swapsData",o.swapsData)("flgLoading",o.flgLoading)("emptyTableMessage",o.emptyTableMessage))},directives:[m.xw,m.Wh,y.a8,y.dn,m.yH,R.BU,u.sg,R.Nj,v.rH,q.lW,Y5],styles:[""]}),n})();var U=g(1643);function V5(n,i){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function W5(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._uU(2,"Non Routing Peers"),t.qZA(),t.TgZ(3,"mat-form-field",11)(4,"input",12),t.NdJ("keyup",function(){return t.CHM(e),t.oxw(2).applyFilter()})("ngModelChange",function(a){return t.CHM(e),t.oxw(2).filter=a}),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.filter)}}function X5(n,i){1&n&&t._UZ(0,"mat-progress-bar",35)}function j5(n,i){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Channel ID"),t.qZA())}const se=function(n){return{"max-width":n}};function K5(n,i){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.Q6J("ngStyle",t.VKq(2,se,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.chan_id)}}function $5(n,i){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Peer Alias"),t.qZA())}function td(n,i){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(3);t.Q6J("ngStyle",t.VKq(2,se,o.screenSize===o.screenSizeEnum.XS?"10rem":"28rem")),t.xp6(1),t.Oqu(e.remote_alias)}}function ed(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Sats Sent"),t.qZA())}function nd(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_satoshis_sent))}}function od(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Sats Received"),t.qZA())}function id(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.total_satoshis_received))}}function ad(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Local Balance (Sats)"),t.qZA())}function ld(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.local_balance))}}function sd(n,i){1&n&&(t.TgZ(0,"th",38),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function rd(n,i){if(1&n&&(t.TgZ(0,"td",39)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.remote_balance))}}function cd(n,i){1&n&&(t.TgZ(0,"th",41)(1,"span",40),t._uU(2,"Actions"),t.qZA()())}function pd(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"td",42)(1,"button",43),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(3).onManagePeer(l)}),t._uU(2,"Manage"),t.qZA()()}}function ud(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"All peers are routing."),t.qZA())}function md(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting non routing peers..."),t.qZA())}function dd(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.errorMessage)}}function hd(n,i){if(1&n&&(t.TgZ(0,"td",44),t.YNc(1,ud,2,0,"p",45),t.YNc(2,md,2,0,"p",45),t.YNc(3,dd,2,1,"p",45),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.NonRoutingPeers&&e.NonRoutingPeers.data)||(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const _d=function(n){return{"display-none":n}};function fd(n,i){if(1&n&&t._UZ(0,"tr",46),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,_d,(null==e.NonRoutingPeers||null==e.NonRoutingPeers.data?null:e.NonRoutingPeers.data.length)>0))}}function gd(n,i){1&n&&t._UZ(0,"tr",47)}function Cd(n,i){1&n&&t._UZ(0,"tr",48)}const xd=function(){return["no_non_routing_event"]};function yd(n,i){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,X5,1,0,"mat-progress-bar",14),t.TgZ(2,"table",15,16),t.ynx(4,17),t.YNc(5,j5,2,0,"th",18),t.YNc(6,K5,2,4,"td",19),t.BQk(),t.ynx(7,20),t.YNc(8,$5,2,0,"th",18),t.YNc(9,td,2,4,"td",19),t.BQk(),t.ynx(10,21),t.YNc(11,ed,2,0,"th",22),t.YNc(12,nd,4,3,"td",23),t.BQk(),t.ynx(13,24),t.YNc(14,od,2,0,"th",22),t.YNc(15,id,4,3,"td",23),t.BQk(),t.ynx(16,25),t.YNc(17,ad,2,0,"th",22),t.YNc(18,ld,4,3,"td",23),t.BQk(),t.ynx(19,26),t.YNc(20,sd,2,0,"th",22),t.YNc(21,rd,4,3,"td",23),t.BQk(),t.ynx(22,27),t.YNc(23,cd,3,0,"th",28),t.YNc(24,pd,3,0,"td",29),t.BQk(),t.ynx(25,30),t.YNc(26,hd,4,3,"td",31),t.BQk(),t.YNc(27,fd,1,3,"tr",32),t.YNc(28,gd,1,0,"tr",33),t.YNc(29,Cd,1,0,"tr",34),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.NonRoutingPeers),t.xp6(25),t.Q6J("matFooterRowDef",t.DdM(6,xd)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Td(n,i){if(1&n&&(t.TgZ(0,"div",4),t.YNc(1,W5,5,1,"div",5),t.YNc(2,yd,30,7,"div",6),t._UZ(3,"mat-paginator",7,8),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",""===e.errorMessage),t.xp6(1),t.Q6J("ngIf",""===e.errorMessage),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let vd=(()=>{class n{constructor(e,o,a,l,r){this.logger=e,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=r,this.routingPeersData=[],this.displayedColumns=[],this.NonRoutingPeers=new c.by([]),this.flgSticky=!1,this.pageSize=s.IV,this.pageSizeOptions=s.TJ,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.filter="",this.activeChannels=[],this.apiCallStatus=null,this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x,new d.x,new d.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS||this.screenSize===s.cu.SM?(this.flgSticky=!1,this.displayedColumns=["remote_alias","local_balance","remote_balance","actions"]):this.screenSize===s.cu.MD?(this.flgSticky=!1,this.displayedColumns=["chan_id","remote_alias","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance","actions"])}ngOnInit(){this.store.select(T.Bo).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,(null===(o=e.apiCallStatus)||void 0===o?void 0:o.status)===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.forwardingHistory.forwarding_events?e.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sort&&this.paginator&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(e.apiCallStatus),this.logger.info(e.forwardingHistory)}),this.store.select(T.ZW).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===s.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.channels,this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}onManagePeer(e){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filter:e.chan_id}})}loadNonRoutingPeersTable(e){var o;if(e.length>0){const a=null===(o=this.activeChannels)||void 0===o?void 0:o.filter(l=>e.findIndex(r=>r.chan_id_in===l.chan_id||r.chan_id_out===l.chan_id)<0);this.NonRoutingPeers=new c.by(a),this.NonRoutingPeers.sort=this.sort,this.NonRoutingPeers.filterPredicate=(l,r)=>JSON.stringify(l).toLowerCase().includes(r),this.NonRoutingPeers.paginator=this.paginator,this.logger.info(this.NonRoutingPeers)}else this.NonRoutingPeers=new c.by([]);this.applyFilter()}applyFilter(){this.NonRoutingPeers.filter=this.filter.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(v.F0),t.Y36(v.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-non-routing-peers"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Z.YE,5),t.Gf(k.NW,5)),2&e){let a;t.iGM(a=t.CRH())&&(o.sort=a.first),t.iGM(a=t.CRH())&&(o.paginator=a.first)}},features:[t._Bn([{provide:k.ye,useValue:(0,s.pt)("Non routing peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginator",""],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","total_satoshis_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],["mat-cell","","fxLayoutAlign","end center",1,"pl-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,V5,2,1,"div",1),t.YNc(2,Td,5,5,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage))},directives:[m.xw,m.yH,m.Wh,u.O5,C.KE,P.Nt,p.Fj,p.JJ,p.On,z.$V,J.pW,c.BZ,Z.YE,c.w1,c.fO,c.ge,Z.nU,c.Dz,c.ev,u.PC,L.Zl,q.lW,c.mD,c.yh,c.Ke,c.Q2,u.mk,L.oO,c.as,c.XQ,c.nj,c.Gk,k.NW],pipes:[u.JJ],styles:[".mat-column-chan_id[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),n})(),bd=(()=>{class n{constructor(e){this.dataService=e,this.paths="",this.unSubs=[new d.x,new d.x]}ngOnInit(){var e;if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const o=null===(e=this.payment.htlcs[0].route.hops)||void 0===e?void 0:e.reduce((a,l)=>""===a&&l.pub_key?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,_.R)(this.unSubs[0])).subscribe(a=>{this.paths=null==a?void 0:a.reduce((l,r)=>""===l?r:l+"\n"+r,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,X.q)(1)).subscribe(o=>{o&&o.description&&""!==o.description&&(this.payment.description=o.description)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(nt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),t._uU(4,"Payment Hash"),t.qZA(),t.TgZ(5,"span",4),t._uU(6),t.qZA()(),t._UZ(7,"mat-divider",5),t.TgZ(8,"div",2)(9,"h4",3),t._uU(10,"Payment Preimage"),t.qZA(),t.TgZ(11,"span",4)(12,"div"),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",5),t.TgZ(15,"div",2)(16,"h4",3),t._uU(17,"Payment Request"),t.qZA(),t.TgZ(18,"span",4)(19,"div"),t._uU(20),t.qZA()()(),t._UZ(21,"mat-divider",5),t.TgZ(22,"div",2)(23,"h4",3),t._uU(24,"Description"),t.qZA(),t.TgZ(25,"span",4)(26,"div"),t._uU(27),t.qZA()()(),t._UZ(28,"mat-divider",5),t.TgZ(29,"div",6)(30,"div",7)(31,"h4",3),t._uU(32,"Status"),t.qZA(),t.TgZ(33,"span",4)(34,"div"),t._uU(35),t.qZA()()(),t.TgZ(36,"div",7)(37,"h4",3),t._uU(38,"Creation Date"),t.qZA(),t.TgZ(39,"span",4)(40,"div"),t._uU(41),t.qZA()()()(),t._UZ(42,"mat-divider",5),t.TgZ(43,"div",6)(44,"div",7)(45,"h4",3),t._uU(46,"Value (mSats)"),t.qZA(),t.TgZ(47,"span",4)(48,"div"),t._uU(49),t.ALo(50,"number"),t.qZA()()(),t.TgZ(51,"div",7)(52,"h4",3),t._uU(53,"Fee (mSats)"),t.qZA(),t.TgZ(54,"span",4)(55,"div"),t._uU(56),t.ALo(57,"number"),t.qZA()()()(),t._UZ(58,"mat-divider",5),t.TgZ(59,"div",2)(60,"h4",3),t._uU(61,"Path"),t.qZA(),t.TgZ(62,"span",4)(63,"div"),t._uU(64),t.qZA()()(),t._UZ(65,"mat-divider",5),t.qZA()()),2&e&&(t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_hash),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_preimage),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.payment_request),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.description),t.xp6(1),t.Q6J("inset",!0),t.xp6(7),t.Oqu(null==o.payment?null:o.payment.status),t.xp6(6),t.Oqu(null==o.payment?null:o.payment.creation_date),t.xp6(1),t.Q6J("inset",!0),t.xp6(7),t.Oqu(t.lcZ(50,16,null==o.payment?null:o.payment.value_msat)),t.xp6(7),t.Oqu(t.lcZ(57,18,null==o.payment?null:o.payment.fee_msat)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(o.paths),t.xp6(1),t.Q6J("inset",!0))},directives:[m.xw,m.yH,m.Wh,y.dn,V.d],pipes:[u.JJ],styles:[""]}),n})();var wd=g(159);function Zd(n,i){if(1&n&&t._UZ(0,"qr-code",22),2&n){const e=t.oxw();t.Q6J("value",null==e.invoice?null:e.invoice.payment_request)("size",e.qrWidth)("errorCorrectionLevel","L")}}function Ad(n,i){1&n&&(t.TgZ(0,"span",23),t._uU(1,"N/A"),t.qZA())}function Ld(n,i){if(1&n&&t._UZ(0,"qr-code",22),2&n){const e=t.oxw();t.Q6J("value",null==e.invoice?null:e.invoice.payment_request)("size",e.qrWidth)("errorCorrectionLevel","L")}}function Sd(n,i){1&n&&(t.TgZ(0,"span",24),t._uU(1,"QR Code Not Applicable"),t.qZA())}function Fd(n,i){1&n&&t._UZ(0,"mat-divider",16),2&n&&t.Q6J("inset",!0)}function kd(n,i){1&n&&(t.ynx(0),t._uU(1," (zero amount) "),t.BQk())}const Ot=function(n){return{"mr-0":n}};function qd(n,i){if(1&n&&t._UZ(0,"span",38),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Nd(n,i){if(1&n&&t._UZ(0,"span",39),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Od(n,i){if(1&n&&t._UZ(0,"span",40),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,Ot,e.screenSize===e.screenSizeEnum.XS))}}function Ud(n,i){if(1&n&&(t.TgZ(0,"div",27)(1,"div",32)(2,"span",33),t.YNc(3,qd,1,3,"span",34),t.YNc(4,Nd,1,3,"span",35),t.YNc(5,Od,1,3,"span",36),t._uU(6),t.qZA(),t.TgZ(7,"span",37),t._uU(8),t.ALo(9,"number"),t.qZA()(),t._UZ(10,"mat-divider",16),t.qZA()),2&n){const e=i.$implicit,o=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SETTLED"===e.state),t.xp6(1),t.Q6J("ngIf","ACCEPTED"===e.state),t.xp6(1),t.Q6J("ngIf","CANCELED"===e.state),t.xp6(1),t.hij(" ",e.chan_id," "),t.xp6(2),t.Oqu(t.xi3(9,6,+e.amt_msat/1e3||0,o.getDecimalFormat(e))),t.xp6(2),t.Q6J("inset",!0)}}function Md(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"mat-expansion-panel",25),t.NdJ("opened",function(){return t.CHM(e),t.oxw().flgOpened=!0})("closed",function(){return t.CHM(e),t.oxw().onExpansionClosed()}),t.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),t._uU(5,"HTLCs"),t.qZA()()(),t.TgZ(6,"div",27)(7,"div",28)(8,"span",29),t._uU(9,"Channel ID"),t.qZA(),t.TgZ(10,"span",30),t._uU(11,"Amount (Sats)"),t.qZA()(),t._UZ(12,"mat-divider",16),t.YNc(13,Ud,11,9,"div",31),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(12),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngForOf",null==e.invoice?null:e.invoice.htlcs)}}function Pd(n,i){1&n&&t._UZ(0,"mat-divider",16),2&n&&t.Q6J("inset",!0)}const re=function(n){return{"display-none":n}};let Id=(()=>{class n{constructor(e){this.commonService=e,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220)}getDecimalFormat(e){return e.amt_msat<1e3?"1.0-4":"1.0-0"}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Zd,1,3,"qr-code",2),t.YNc(3,Ad,2,0,"span",3),t.qZA(),t.TgZ(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),t.YNc(8,Ld,1,3,"qr-code",2),t.YNc(9,Sd,2,0,"span",8),t.qZA(),t.YNc(10,Fd,1,1,"mat-divider",9),t.TgZ(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),t._uU(15),t.qZA(),t.TgZ(16,"span",14),t._uU(17),t.ALo(18,"number"),t.YNc(19,kd,2,0,"ng-container",15),t.qZA()(),t.TgZ(20,"div",12)(21,"h4",13),t._uU(22,"Amount Settled"),t.qZA(),t.TgZ(23,"span",14)(24,"div"),t._uU(25),t.ALo(26,"number"),t.qZA()()()(),t._UZ(27,"mat-divider",16),t.TgZ(28,"div",11)(29,"div",12)(30,"h4",13),t._uU(31,"Date Created"),t.qZA(),t.TgZ(32,"span",14),t._uU(33),t.ALo(34,"date"),t.qZA()(),t.TgZ(35,"div",12)(36,"h4",13),t._uU(37,"Date Settled"),t.qZA(),t.TgZ(38,"span",14),t._uU(39),t.ALo(40,"date"),t.qZA()()(),t._UZ(41,"mat-divider",16),t.TgZ(42,"div",11)(43,"div",17)(44,"h4",13),t._uU(45,"Memo"),t.qZA(),t.TgZ(46,"span",14),t._uU(47),t.qZA()()(),t._UZ(48,"mat-divider",16),t.TgZ(49,"div",11)(50,"div",17)(51,"h4",13),t._uU(52,"Payment Request"),t.qZA(),t.TgZ(53,"span",18),t._uU(54),t.qZA()()(),t._UZ(55,"mat-divider",16),t.TgZ(56,"div",11)(57,"div",17)(58,"h4",13),t._uU(59,"Payment Hash"),t.qZA(),t.TgZ(60,"span",18),t._uU(61),t.qZA()()(),t.TgZ(62,"div"),t._UZ(63,"mat-divider",16),t.TgZ(64,"div",11)(65,"div",17)(66,"h4",13),t._uU(67,"Preimage"),t.qZA(),t.TgZ(68,"span",18),t._uU(69),t.qZA()()(),t._UZ(70,"mat-divider",16),t.TgZ(71,"div",11)(72,"div",19)(73,"h4",13),t._uU(74,"State"),t.qZA(),t.TgZ(75,"span",18),t._uU(76),t.qZA()(),t.TgZ(77,"div",20)(78,"h4",13),t._uU(79,"Expiry"),t.qZA(),t.TgZ(80,"span",18),t._uU(81),t.qZA()(),t.TgZ(82,"div",20)(83,"h4",13),t._uU(84,"Private Routing Hints"),t.qZA(),t.TgZ(85,"span",18),t._uU(86),t.qZA()()(),t._UZ(87,"mat-divider",16),t.YNc(88,Md,14,2,"div",21),t.YNc(89,Pd,1,1,"mat-divider",9),t.qZA()()()()()()),2&e&&(t.xp6(1),t.Q6J("fxLayoutAlign",null!=o.invoice&&o.invoice.payment_request&&""!==(null==o.invoice?null:o.invoice.payment_request)?"center start":"center center")("ngClass",t.VKq(41,re,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.payment_request)&&""!==(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.payment_request)||""===(null==o.invoice?null:o.invoice.payment_request)),t.xp6(4),t.Q6J("fxLayoutAlign",null!=o.invoice&&o.invoice.payment_request&&""!==(null==o.invoice?null:o.invoice.payment_request)?"center start":"center center")("ngClass",t.VKq(43,re,o.screenSize!==o.screenSizeEnum.XS&&o.screenSize!==o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.payment_request)&&""!==(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.payment_request)||""===(null==o.invoice?null:o.invoice.payment_request)),t.xp6(1),t.Q6J("ngIf",o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM),t.xp6(5),t.Oqu(o.screenSize===o.screenSizeEnum.XS?"Amount":"Amount Requested"),t.xp6(2),t.hij("",t.lcZ(18,31,(null==o.invoice?null:o.invoice.value)||0)," Sats"),t.xp6(2),t.Q6J("ngIf",!(null!=o.invoice&&o.invoice.value)||"0"===(null==o.invoice?null:o.invoice.value)),t.xp6(6),t.hij("",t.lcZ(26,33,null==o.invoice?null:o.invoice.amt_paid_sat)," Sats"),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(34,35,1e3*(null==o.invoice?null:o.invoice.creation_date),"dd/MMM/y HH:mm")),t.xp6(6),t.Oqu(0!=+(null==o.invoice?null:o.invoice.settle_date)?t.xi3(40,38,1e3*+(null==o.invoice?null:o.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.invoice?null:o.invoice.memo),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.payment_request)||"N/A"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.r_hash)||""),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu((null==o.invoice?null:o.invoice.r_preimage)||"-"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==o.invoice?null:o.invoice.state),t.xp6(5),t.Oqu(null==o.invoice?null:o.invoice.expiry),t.xp6(5),t.Oqu(null!=o.invoice&&o.invoice.private?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.htlcs)&&(null==o.invoice?null:o.invoice.htlcs.length)>0),t.xp6(1),t.Q6J("ngIf",(null==o.invoice?null:o.invoice.htlcs)&&(null==o.invoice?null:o.invoice.htlcs.length)>0))},directives:[m.xw,m.Wh,m.yH,u.mk,L.oO,u.O5,wd.uU,y.dn,V.d,z.$V,E.ib,E.yz,E.yK,u.sg,K.gM],pipes:[u.JJ,u.uU],styles:[""]}),n})();function Rd(n,i){if(1&n&&(t.TgZ(0,"mat-radio-button",17),t._uU(1),t.qZA()),2&n){const e=i.$implicit,o=t.oxw();t.Q6J("value",e.id)("checked",o.selectedFieldId===e.id),t.xp6(1),t.hij(" ",e.name," ")}}function Dd(n,i){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Qd(n,i){1&n&&t._UZ(0,"mat-progress-bar",20)}const Jd=function(n){return{"w-100 mt-2 p-2 error-border":n,"w-100 my-2 p-2":!0}};function Ed(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Qd,1,0,"mat-progress-bar",19),t._uU(2),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(3,Jd,""!==e.errorMessage&&"Getting lookup details..."!==e.errorMessage)),t.xp6(1),t.Q6J("ngIf","Getting lookup details..."===e.errorMessage),t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Hd(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-payment-lookup",28),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("payment",e.lookupValue)}}function Yd(n,i){if(1&n&&(t.TgZ(0,"span",27),t._UZ(1,"rtl-invoice-lookup",29),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("invoice",e.lookupValue)}}function Bd(n,i){1&n&&(t.TgZ(0,"span",27)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function zd(n,i){if(1&n&&(t.TgZ(0,"div",21)(1,"div",22)(2,"span",23),t._uU(3),t.qZA()(),t.TgZ(4,"div",24),t.YNc(5,Hd,2,1,"span",25),t.YNc(6,Yd,2,1,"span",25),t.YNc(7,Bd,3,0,"span",26),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1)}}const Gd=function(n){return{"mt-1":!0,"mt-2":n}},Xd=v.Bz.forChild([{path:"",component:Rt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Sa,canActivate:[U.QM]},{path:"wallet",component:O2,canActivate:[U.a1]},{path:"onchain",component:Eu,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Bu,canActivate:[U.QM]},{path:"send/:selTab",component:ae,data:{sweepAll:!1},canActivate:[U.QM]},{path:"sweep/:selTab",component:ae,data:{sweepAll:!0},canActivate:[U.QM]}]},{path:"connections",component:qa,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Ol,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:v1,canActivate:[U.QM]},{path:"pending",component:ac,canActivate:[U.QM]},{path:"closed",component:kc,canActivate:[U.QM]},{path:"activehtlcs",component:r2,canActivate:[U.QM]}]},{path:"peers",component:Sl,data:{sweepAll:!1},canActivate:[U.QM]}]},{path:"transactions",component:P2,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:zt,canActivate:[U.QM]},{path:"invoices",component:Yt,canActivate:[U.QM]},{path:"lookuptransactions",component:(()=>{class n{constructor(e,o,a,l){this.logger=e,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=b.wn1,this.screenSize="",this.screenSizeEnum=s.cu,this.errorMessage="",this.apiCallStatusEnum=s.Bn,this.unSubs=[new d.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,H.h)(e=>e.type===s.uR.SET_LOOKUP_LND)).subscribe(e=>{this.flgSetLookupValue=!e.payload.error,this.lookupValue=JSON.parse(JSON.stringify(e.payload)),this.errorMessage=e.payload.error?this.commonService.extractErrorMessage(e.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){var e,o,a,l;if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,A.yZ)({payload:null===(o=null===(e=Buffer.from(this.lookupKey.trim(),"hex").toString("base64"))||void 0===e?void 0:e.replace(/\+/g,"-"))||void 0===o?void 0:o.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,A.n7)({payload:{openSnackBar:!1,paymentHash:null===(l=null===(a=Buffer.from(this.lookupKey.trim(),"hex").toString("base64"))||void 0===a?void 0:a.replace(/\+/g,"-"))||void 0===l?void 0:l.replace(/[/]/g,"_")}}))}}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(N.mQ),t.Y36(O.v),t.Y36(S.yh),t.Y36(j.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-lookup-transactions"]],decls:19,vars:10,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),t.NdJ("ngModelChange",function(l){return o.selectedFieldId=l})("change",function(l){return o.onSelectChange(l)}),t.YNc(7,Rd,2,3,"mat-radio-button",7),t.qZA()(),t.TgZ(8,"mat-form-field",8)(9,"input",9,10),t.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(l){return o.lookupKey=l}),t.qZA(),t.YNc(11,Dd,2,1,"mat-error",11),t.qZA(),t.TgZ(12,"div",12)(13,"button",13),t.NdJ("click",function(){return o.resetData()}),t._uU(14,"Clear"),t.qZA(),t.TgZ(15,"button",14),t.NdJ("click",function(){return o.onLookup()}),t._uU(16,"Lookup"),t.qZA()()(),t.YNc(17,Ed,3,5,"div",15),t.YNc(18,zd,8,4,"div",16),t.qZA()()()),2&e&&(t.xp6(6),t.Q6J("ngModel",o.selectedFieldId),t.xp6(1),t.Q6J("ngForOf",o.lookupFields),t.xp6(1),t.Q6J("ngClass",t.VKq(8,Gd,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.xp6(1),t.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),t.xp6(2),t.Q6J("ngIf",!o.lookupKey),t.xp6(6),t.Q6J("ngIf",""!==o.errorMessage),t.xp6(1),t.Q6J("ngIf",""===o.errorMessage&&o.lookupValue&&o.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,y.dn,p._Y,p.JL,p.F,tt.VQ,p.JJ,p.On,u.sg,tt.U0,C.KE,u.mk,L.oO,P.Nt,p.Fj,p.Q7,u.O5,C.TO,q.lW,J.pW,u.RF,u.n9,bd,Id,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),n})(),canActivate:[U.QM]}]},{path:"messages",component:A4,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:S4,canActivate:[U.QM]},{path:"verify",component:P4,canActivate:[U.QM]}]},{path:"channelbackup",component:H6,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:w4,canActivate:[U.QM]},{path:"restore",component:s4,canActivate:[U.QM]}]},{path:"routing",component:R3,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:$t,canActivate:[U.QM]},{path:"peers",component:ap,canActivate:[U.QM]},{path:"nonroutingprs",component:vd,canActivate:[U.QM]}]},{path:"reports",component:sp,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:fp,canActivate:[U.QM]},{path:"transactions",component:Sp,canActivate:[U.QM]}]},{path:"graph",component:R2,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Kt,canActivate:[U.QM]},{path:"queryroutes",component:l3,canActivate:[U.QM]}]},{path:"lookups",component:Kt,canActivate:[U.QM]},{path:"services",component:R4,canActivate:[U.QM],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:xm},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:G5}]},{path:"network",component:J6,canActivate:[U.QM]},{path:"**",component:I4.w},{path:"rates",redirectTo:"network"}]}]);var jd=g(8750);let Kd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Rt]}),n.\u0275inj=t.cJS({providers:[U.QM],imports:[[u.ez,jd.m,Xd]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/706.911e43a7ac305c95.js b/frontend/706.911e43a7ac305c95.js new file mode 100644 index 00000000..503c4be7 --- /dev/null +++ b/frontend/706.911e43a7ac305c95.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[706],{5706:(ur,Ni,Ut)=>{"use strict";Ut.r(Ni),Ut.d(Ni,{CLNModule:()=>Ph});var Bt=Ut(9808),Vt=Ut(1402),Ln=Ut(8878),A=Ut(5e3),ft=Ut(7093),S=Ut(5899);function I(i,M){1&i&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class i{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof Vt.OD:this.loading=!0;break;case o instanceof Vt.m2:case o instanceof Vt.gk:case o instanceof Vt.Q3:this.loading=!1}})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,I,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",o.loading))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,S.pW,Vt.lC],styles:[""],data:{animation:[Ln.g]}}),i})();var c=Ut(7579),r=Ut(2722),s=Ut(1365),l=Ut(534),f=Ut(801),a=Ut(7731),B=Ut(9828),E=Ut(5043),u=Ut(5620),C=Ut(62),e=Ut(9444),h=Ut(3954),g=Ut(9224),w=Ut(7423),Q=Ut(2181),m=Ut(5245),Y=Ut(3322);const y=function(i){return{backgroundColor:i}};function d(i,M){if(1&i&&A._UZ(0,"span",6),2&i){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,y,"#"+(null==t.information?null:t.information.color)))}}function v(i,M){if(1&i&&(A.TgZ(0,"div")(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA()()),2&i){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,y,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function D(i,M){if(1&i&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t)}}let R=(()=>{class i{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain||"")+" "+this.commonService.titleCase(t.network||""))}))}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[A.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div")(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,d,1,3,"span",3),A.qZA()(),A.YNc(7,v,7,6,"div",4),A.TgZ(8,"div")(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA()(),A.TgZ(13,"div")(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,D,2,1,"span",5),A.qZA()()),2&t&&(A.xp6(5),A.hij(" ",null==o.information?null:o.information.alias," "),A.xp6(1),A.Q6J("ngIf",!o.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",o.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),A.xp6(4),A.Q6J("ngForOf",o.chains))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,Bt.PC,Y.Zl,Bt.sg],pipes:[Bt.gd],styles:[""]}),i})();function N(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div")(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div")(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div")(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA()()()),2&i){const t=A.oxw();A.xp6(5),A.hij("",A.lcZ(6,5,t.balances.lightning)," Sats"),A.xp6(2),A.s9C("value",t.balances.lightning/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(13,7,t.balances.onchain)," Sats"),A.xp6(2),A.s9C("value",t.balances.onchain/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(20,9,t.balances.total)," Sats")}}function F(i,M){if(1&i&&(A.TgZ(0,"div",6)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let b=(()=>{class i{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,N,21,11,"div",0),A.YNc(1,F,3,1,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,S.pW],pipes:[Bt.JJ],styles:[""]}),i})();var P=Ut(7322),eA=Ut(7238),sA=Ut(4834),q=Ut(8129);const BA=function(){return["../connections/channels/open"]},MA=function(i){return{filter:i}};function lA(i,M){if(1&i&&(A.TgZ(0,"div",19)(1,"a",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(23,BA))("state",A.VKq(24,MA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,11,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(6),A.hij("",A.xi3(9,15,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",o.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,18,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,20,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function cA(i,M){if(1&i&&(A.TgZ(0,"div",17),A.YNc(1,lA,20,26,"div",18),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function gA(i,M){if(1&i&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,cA,2,1,"div",16),A.qZA()()),2&i){const t=A.oxw(),o=A.MAs(2);A.xp6(8),A.hij("",A.xi3(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",t.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),A.xp6(5),A.hij("",A.xi3(18,12,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),A.xp6(4),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",o)}}function xA(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA()()}}function FA(i,M){if(1&i&&(A.TgZ(0,"div",28)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let _=(()=>{class i{constructor(t){this.router=t,this.faBalanceScale=f.DL8,this.faDumbbell=f.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,gA,24,15,"div",0),A.YNc(1,xA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,FA,3,1,"ng-template",null,2,A.W1O)),2&t){const T=A.MAs(4);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.Wh,ft.yH,P.bx,e.BN,eA.gM,S.pW,sA.d,q.$V,Bt.sg,Vt.yS,w.lW],pipes:[Bt.JJ,Bt.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),i})();function pA(i,M){if(1&i&&(A.TgZ(0,"div")(1,"h4",4),A._uU(2,"Transactions"),A.qZA(),A.TgZ(3,"div",5),A._uU(4),A.ALo(5,"number"),A.qZA()()),2&i){const t=A.oxw(2);A.xp6(4),A.Oqu(A.lcZ(5,1,null==t.fees?null:t.fees.totalTxCount))}}function uA(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA()()(),A.TgZ(8,"div",6),A.YNc(9,pA,6,3,"div",7),A.qZA()()),2&i){const t=A.oxw();A.xp6(6),A.hij("",A.lcZ(7,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),A.xp6(3),A.Q6J("ngIf",null==t.fees?null:t.fees.totalTxCount)}}function dA(i,M){if(1&i&&(A.TgZ(0,"div",8)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let SA=(()=>{class i{constructor(){this.totalFees=[{name:"Total",value:0}]}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,uA,10,4,"div",0),A.YNc(1,dA,3,1,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh],pipes:[Bt.JJ],styles:[""]}),i})();function zA(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA()(),A.TgZ(9,"div")(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA()(),A.TgZ(16,"div")(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA()()(),A.TgZ(23,"div",3)(24,"div")(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA()(),A.TgZ(30,"div")(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA()(),A.TgZ(36,"div")(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA()()()()),2&i){const t=A.oxw();A.xp6(7),A.Oqu(A.lcZ(8,6,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(15,8,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(22,10,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),A.xp6(7),A.hij("",A.lcZ(29,12,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(35,14,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(41,16,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats")}}function XA(i,M){if(1&i&&(A.TgZ(0,"div",9)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let X=(()=>{class i{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,zA,42,18,"div",0),A.YNc(1,XA,3,1,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh],pipes:[Bt.JJ],styles:[""]}),i})();function O(i,M){if(1&i&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function $(i,M){if(1&i&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function W(i,M){if(1&i&&A._UZ(0,"mat-progress-bar",21),2&i){const t=A.oxw().$implicit,o=A.oxw(3);A.s9C("value",o.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/o.totalLiquidity*100:0)}}function hA(i,M){if(1&i&&A._UZ(0,"mat-progress-bar",21),2&i){const t=A.oxw().$implicit,o=A.oxw(3);A.s9C("value",o.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/o.totalLiquidity*100:0)}}const DA=function(){return["../connections/channels/open"]},nA=function(i){return{filter:i}};function EA(i,M){if(1&i&&(A.TgZ(0,"div",14)(1,"a",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,O,5,4,"mat-hint",17),A.YNc(6,$,5,4,"mat-hint",17),A.qZA(),A.YNc(7,W,1,1,"mat-progress-bar",18),A.YNc(8,hA,1,1,"mat-progress-bar",18),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(14,DA))("state",A.VKq(15,nA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,10,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(3),A.Q6J("ngIf","In"===o.direction),A.xp6(1),A.Q6J("ngIf","Out"===o.direction),A.xp6(1),A.Q6J("ngIf","In"===o.direction),A.xp6(1),A.Q6J("ngIf","Out"===o.direction)}}function GA(i,M){if(1&i&&(A.TgZ(0,"div",12),A.YNc(1,EA,9,17,"div",13),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const it=function(i,M,t){return{"mb-4":i,"mb-2":M,"mb-1":t}};function st(i,M){if(1&i&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,GA,2,1,"div",11),A.qZA()()),2&i){const t=A.oxw(),o=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,it,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(5),A.hij("",A.xi3(6,4,t.totalLiquidity,"1.0-0")," Sats"),A.xp6(6),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",o)}}function TA(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).goToChannels()}),A._uU(1,"Open Channel"),A.qZA()}}function at(i,M){if(1&i&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,TA,2,0,"button",23),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function It(i,M){if(1&i&&(A.TgZ(0,"div",25)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let mt=(()=>{class i{constructor(t,o){this.router=t,this.commonService=o,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,st,12,11,"div",0),A.YNc(1,at,3,1,"ng-template",null,1,A.W1O),A.YNc(3,It,3,1,"ng-template",null,2,A.W1O)),2&t){const T=A.MAs(4);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.Wh,ft.yH,Bt.mk,Y.oO,P.bx,S.pW,sA.d,q.$V,Bt.sg,Vt.yS,eA.gM,w.lW],pipes:[Bt.JJ,Bt.OU],styles:[""]}),i})();var wt=Ut(3251),OA=Ut(9300),VA=Ut(6087),tt=Ut(4847),mA=Ut(2075),dt=Ut(8966),ht=Ut(429),Tt=Ut(6642),HA=Ut(3075),H=Ut(7531),k=Ut(3390),z=Ut(6534),QA=Ut(4107),CA=Ut(508),RA=Ut(2368);function iA(i,M){if(1&i&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function gt(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function Yt(i,M){if(1&i&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,gt,2,1,"span",30),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let j=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.dialogRef=t,this.data=o,this.store=T,this.decimalPipe=wA,this.commonService=nt,this.actions=Dt,this.faExclamationTriangle=f.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.timeUnitEnum=a.Qk,this.timeUnits=a.LO,this.selTimeUnit=a.Qk.SECS,this.invoiceError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let o=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&this.expiry&&(o=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,ht.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:o,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-create-invoices"]],decls:39,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,o){if(1&t){const T=A.EpF();A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Invoice"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(nt){return o.description=nt}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(nt){return o.invoiceValue=nt})("keyup",function(){return o.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(nt){return o.expiry=nt}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA()(),A.TgZ(25,"mat-form-field",17)(26,"mat-select",18),A.NdJ("selectionChange",function(nt){return o.onTimeUnitChange(nt)}),A.YNc(27,iA,3,4,"mat-option",19),A.qZA()()(),A.TgZ(28,"div",20)(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(nt){return o.private=nt}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA()(),A.YNc(33,Yt,3,2,"div",23),A.TgZ(34,"div",24)(35,"button",25),A.NdJ("click",function(){return o.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(T);const nt=A.MAs(10);return o.onAddInvoice(nt)}),A._uU(38,"Create Invoice"),A.qZA()()()()()()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",o.description),A.xp6(3),A.Q6J("ngModel",o.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(o.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",o.expiry)("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,o.selTimeUnit)," "),A.xp6(3),A.Q6J("value",o.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",o.timeUnits),A.xp6(2),A.Q6J("ngModel",o.private),A.xp6(4),A.Q6J("ngIf",""!==o.invoiceError))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,k.h,HA.JJ,HA.On,HA.wV,HA.qQ,z.q,P.R9,P.bx,QA.gD,Bt.sg,CA.ey,RA.Rr,m.Hw,eA.gM,Bt.O5,e.BN],pipes:[Bt.rS],styles:[""]}),i})();var qA=Ut(5566),kA=Ut(7861),yA=Ut(3093);function KA(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().description=T}),A.qZA()(),A.TgZ(4,"mat-form-field",8)(5,"input",9),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().invoiceValue=T})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA()(),A.TgZ(10,"div",11)(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const T=A.MAs(1);return A.oxw().onAddInvoice(T)}),A._uU(14,"Create Invoice"),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.description),A.xp6(2),A.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(t.invoiceValueHint)}}function lt(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",14)(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA()()}}function zt(i,M){1&i&&A._UZ(0,"mat-progress-bar",46)}function xt(i,M){1&i&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const Lt=function(i){return{"mr-0":i}};function Xt(i,M){if(1&i&&A._UZ(0,"span",52),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function Ge(i,M){if(1&i&&A._UZ(0,"span",53),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function oe(i,M){if(1&i&&A._UZ(0,"span",54),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Lt,t.screenSize===t.screenSizeEnum.XS))}}function ne(i,M){if(1&i&&(A.TgZ(0,"td",48),A.YNc(1,Xt,1,3,"span",49),A.YNc(2,Ge,1,3,"span",50),A.YNc(3,oe,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Q6J("ngIf","paid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","unpaid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","expired"===(null==t?null:t.status)),A.xp6(1),A.hij(" ",A.xi3(5,4,1e3*(null==t?null:t.expires_at),"dd/MMM/y HH:mm")," ")}}function Fe(i,M){1&i&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function He(i,M){if(1&i&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function ze(i,M){1&i&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function yn(i,M){if(1&i&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function xn(i,M){1&i&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const ae=function(i){return{"max-width":i}};function an(i,M){if(1&i&&(A.TgZ(0,"td",48)(1,"div",55)(2,"span",56),A._uU(3),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ae,o.screenSize===o.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function Ne(i,M){1&i&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function on(i,M){if(1&i&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"),"")}}function An(i,M){1&i&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Hn(i,M){if(1&i&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_received)/1e3,(null==t?null:t.msatoshi_received)<1e3?"1.0-4":"1.0-0"),"")}}function Jn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",59)(1,"div",60)(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const kt=function(i){return{"px-3":i}};function Gt(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",63)(1,"div",64)(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(wA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(wA)}),A._uU(7,"Refresh"),A.qZA()()()()}if(2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,kt,t.screenSize!==t.screenSizeEnum.XS))}}function $t(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function le(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function vn(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Mn(i,M){if(1&i&&(A.TgZ(0,"td",66),A.YNc(1,$t,2,0,"p",67),A.YNc(2,le,2,0,"p",67),A.YNc(3,vn,2,1,"p",67),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Tn=function(i){return{"display-none":i}};function Zn(i,M){if(1&i&&A._UZ(0,"tr",68),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Tn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function fi(i,M){1&i&&A._UZ(0,"tr",69)}function Sn(i,M){1&i&&A._UZ(0,"tr",70)}const ZA=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},YA=function(){return["no_invoice"]};function et(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",17)(1,"div",18)(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA()(),A.TgZ(6,"mat-form-field",22)(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().selFilter=T}),A.qZA()()(),A.TgZ(8,"div",24),A.YNc(9,zt,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,xt,2,0,"th",29),A.YNc(14,ne,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Fe,2,0,"th",29),A.YNc(17,He,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,ze,2,0,"th",29),A.YNc(20,yn,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,xn,2,0,"th",29),A.YNc(23,an,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,Ne,2,0,"th",35),A.YNc(26,on,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,An,2,0,"th",35),A.YNc(29,Hn,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Jn,6,0,"th",38),A.YNc(32,Gt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,Mn,4,3,"td",41),A.BQk(),A.YNc(35,Zn,1,3,"tr",42),A.YNc(36,fi,1,0,"tr",43),A.YNc(37,Sn,1,0,"tr",44),A.qZA()(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.invoices)("ngClass",A.VKq(12,ZA,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,YA)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let UA=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht){this.logger=t,this.store=o,this.decimalPipe=T,this.commonService=wA,this.rtlEffects=nt,this.datePipe=Dt,this.actions=Ht,this.calledFrom="transactions",this.faHistory=f.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","type","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","type","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.gc).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=t.listInvoices.invoices||[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[3]),(0,OA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:j}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const o=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,ht.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:o,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,kA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,ht.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at:t.expires_at,paid_at:t.paid_at,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:qA.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){var t;(null===(t=this.selNode)||void 0===t?void 0:t.fiatConversion)&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[5])).subscribe({next:o=>{this.invoiceValueHint="= "+this.decimalPipe.transform(o.OTHER,a.Xz.OTHER)+" "+o.symbol},error:o=>{this.invoiceValueHint="Conversion Error: "+o}}))}onRefreshInvoice(t){this.store.dispatch((0,ht.n7)({payload:t.label}))}updateInvoicesData(t){var o;this.invoiceJSONArr=null===(o=this.invoiceJSONArr)||void 0===o?void 0:o.map(T=>T.label===t.label?t:T)}loadInvoicesTable(t){this.invoices=new mA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(o,T)=>{var wA,nt;return((null===(wA=this.datePipe.transform(new Date(1e3*(o.paid_at||0)),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase())+(null===(nt=this.datePipe.transform(new Date(1e3*(o.expires_at||0)),"dd/MMM/YYYY HH:mm"))||void 0===nt?void 0:nt.toLowerCase())+(o.bolt12?"bolt12":o.bolt11?"bolt11":"keysend")+JSON.stringify(o).toLowerCase()).includes(T)},this.invoices.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(yA.V),A.Y36(Bt.uU),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,KA,15,5,"form",1),A.YNc(2,lt,5,0,"div",2),A.YNc(3,et,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,HA.wV,HA.qQ,z.q,P.R9,P.bx,w.lW,e.BN,q.$V,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,eA.gM,Bt.PC,Y.Zl,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var PA=Ut(5698),LA=Ut(8104),JA=Ut(9814),$A=Ut(7446);const bA=["sendPaymentForm"],ot=["paymentAmt"],WA=["offerAmt"],pt=["paymentReq"],Nt=["offerReq"];function Pt(i,M){if(1&i&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&i){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function Kt(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().paymentType=T})("change",function(){return A.CHM(t),A.oxw().onPaymentTypeChange()}),A.TgZ(1,"mat-radio-button",19),A._uU(2,"Invoice"),A.qZA(),A.TgZ(3,"mat-radio-button",20),A._uU(4,"Keysend"),A.qZA(),A.YNc(5,Pt,2,1,"mat-radio-button",21),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("ngModel",t.paymentType),A.xp6(1),A.s9C("value",t.paymentTypes.INVOICE),A.xp6(2),A.s9C("value",t.paymentTypes.KEYSEND),A.xp6(2),A.Q6J("ngIf",t.selNode.enableOffers)}}function qt(i,M){1&i&&A.GkF(0)}function re(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function Ct(i,M){if(1&i&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,re,2,1,"span",25),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function Rt(i,M){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Wt(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Ot(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Be(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function _t(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",29,30),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw(2).paymentAmount=T})("change",function(T){return A.CHM(t),A.oxw(2).onAmountChange(T)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount invoice, enter amount to be paid."),A.qZA(),A.YNc(5,Be,2,0,"mat-error",25),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function he(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",26,27),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().onPaymentRequestEntry(T)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Rt,2,1,"mat-hint",25),A.YNc(4,Wt,2,0,"mat-error",25),A.YNc(5,Ot,2,1,"mat-error",25),A.qZA(),A.YNc(6,_t,6,2,"mat-form-field",28)}if(2&i){const t=A.MAs(2),o=A.oxw();A.xp6(1),A.Q6J("ngModel",o.paymentRequest),A.xp6(2),A.Q6J("ngIf",o.paymentRequest&&""!==o.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!o.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",o.zeroAmtInvoice)}}function ue(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ye(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function Je(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",31),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().pubkey=T}),A.qZA(),A.YNc(2,ue,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1)(4,"input",32,33),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().keysendAmount=T}),A.qZA(),A.YNc(6,ye,2,0,"mat-error",25),A.qZA()}if(2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.pubkey),A.xp6(1),A.Q6J("ngIf",!t.pubkey),A.xp6(2),A.Q6J("ngModel",t.keysendAmount),A.xp6(2),A.Q6J("ngIf",!t.keysendAmount)}}function Ue(i,M){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Ye(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function Pe(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function nn(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function Fn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",40,41),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw(2).offerAmount=T})("change",function(T){return A.CHM(t),A.oxw(2).onAmountChange(T)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount offer, enter amount to be paid."),A.qZA(),A.YNc(5,nn,2,0,"mat-error",25),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function ln(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",42)(1,"input",43),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw(2).offerTitle=T}),A.qZA()()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function mn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",34,35),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().onPaymentRequestEntry(T)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ue,2,1,"mat-hint",25),A.YNc(4,Ye,2,0,"mat-error",25),A.YNc(5,Pe,2,1,"mat-error",25),A.qZA(),A.YNc(6,Fn,6,2,"mat-form-field",28),A.TgZ(7,"div",36)(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().flgSaveToDB=T}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA()(),A.YNc(12,ln,2,1,"mat-form-field",39)}if(2&i){const t=A.MAs(2),o=A.oxw();A.xp6(1),A.Q6J("ngModel",o.offerRequest),A.xp6(2),A.Q6J("ngIf",o.offerRequest&&""!==o.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!o.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",o.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",o.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",o.flgSaveToDB||""!==o.offerTitle)}}let Yn=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht,be){this.dialogRef=t,this.data=o,this.store=T,this.logger=wA,this.commonService=nt,this.decimalPipe=Dt,this.actions=Ht,this.dataService=be,this.faExclamationTriangle=f.eHv,this.paymentTypes=a.IX,this.paymentType=a.IX.INVOICE,this.selNode={},this.offerDecoded={},this.offerRequest="",this.offerDecodedHint="",this.offerDescription="",this.offerVendor="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.feeLimitTypes=a.Vc,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}set payReq(t){t&&(this.paymentReq=t)}set offrReq(t){t&&(this.offerReq=t)}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case a.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case a.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case a.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.isCompatibleVersion=this.commonService.isVersionCompatible(t.version,"0.9.0")&&this.commonService.isVersionCompatible(t.api_version,"0.4.0")}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[3]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SEND_PAYMENT_STATUS_CLN||t.type===a.AB.SET_OFFER_INVOICE_CLN)).subscribe(t=>{t.type===a.AB.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),t.type===a.AB.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===a.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===a.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===a.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case a.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case a.IX.INVOICE:if(!this.paymentRequest||this.zeroAmtInvoice&&(0===this.paymentAmount||!this.paymentAmount))return this.paymentReq.control.markAsTouched(),this.paymentAmt.control.markAsTouched(),!0;this.paymentDecoded.created_at?this.sendPayment():(this.resetInvoiceDetails(),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{"bolt12 offer"===t.type&&t.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=t,this.setPaymentDecodedDetails())}));break;case a.IX.OFFER:if(!this.offerRequest||this.zeroAmtOffer&&(0===this.offerAmount||!this.offerAmount))return this.offerReq.control.markAsTouched(),this.offerAmt.control.markAsTouched(),!0;this.offerDecoded.offer_id?this.sendPayment():(this.resetOfferDetails(),this.dataService.decodePayment(this.offerRequest,!0).pipe((0,r.R)(this.unSubs[5])).subscribe(t=>{"bolt11 invoice"===t.type&&t.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=t,this.setOfferDecodedDetails())}))}}keysendPayment(){this.keysendAmount&&this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_KEYSEND,paymentType:a.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===a.IX.INVOICE?this.store.dispatch((0,ht.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===a.IX.OFFER&&(this.offerInvoice?this.offerAmount&&this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.OFFER,invoice:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,vendor:this.offerVendor,description:this.offerDescription,fromDialog:!0}})):this.store.dispatch((0,ht.eM)(this.zeroAmtOffer&&this.offerAmount?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}})))}onPaymentRequestEntry(t){this.paymentType===a.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===a.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,r.R)(this.unSubs[6])).subscribe(o=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===o.type&&o.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=o,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===o.type&&o.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=o,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHint="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(t){this.paymentType===a.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===a.IX.OFFER&&(delete this.offerDecoded.amount,delete this.offerDecoded.amount_msat,this.offerDecoded.amount=1e3*+t.target.value,this.offerDecoded.amount_msat=t.target.value+"msat")}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHint="",this.offerDecodedHint="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.description||"",this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.offerDecodedHint="Zero Amount Offer | Description: "+this.offerDecoded.description):(this.zeroAmtOffer=!1,this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+this.offerDecoded.amount_msat.slice(0,-4):null,this.offerAmount=this.offerDecoded.amount?this.offerDecoded.amount/1e3:0,this.offerDescription=this.offerDecoded.description||"",this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[7])).subscribe({next:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Description: "+this.offerDecoded.description},error:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description+". Unable to convert currency."}}):this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description)}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[8])).subscribe({next:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description)}resetData(){switch(this.paymentType){case a.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case a.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.resetInvoiceDetails();break;case a.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(C.v),A.Y36(Bt.JJ),A.Y36(Tt.eX),A.Y36(LA.D))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,o){if(1&t&&(A.Gf(bA,5),A.Gf(ot,5),A.Gf(WA,5),A.Gf(pt,5),A.Gf(Nt,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first),A.iGM(T=A.CRH())&&(o.paymentAmt=T.first),A.iGM(T=A.CRH())&&(o.offerAmt=T.first),A.iGM(T=A.CRH())&&(o.payReq=T.first),A.iGM(T=A.CRH())&&(o.offrReq=T.first)}},decls:25,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","10","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],["sendPaymentForm","ngForm"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["autoFocus","","matInput","","placeholder","Payment Request","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","4","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","5","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"],["autoFocus","","matInput","","placeholder","Offer Request","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["offerReq","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModel","ngModelChange"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amountoffer","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["offerAmt","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Title to Save","tabindex","7",3,"ngModel","ngModelChange"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Send Payment"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Kt,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return o.onSendPayment()})("reset",function(){return o.resetData()}),A.YNc(12,qt,1,0,"ng-container",10),A.YNc(13,Ct,3,2,"div",11),A.TgZ(14,"div",12)(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA()()()()()(),A.YNc(19,he,7,5,"ng-template",null,15,A.W1O),A.YNc(21,Je,7,4,"ng-template",null,16,A.W1O),A.YNc(23,mn,13,7,"ng-template",null,17,A.W1O)),2&t){const T=A.MAs(20),wA=A.MAs(22),nt=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",o.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",o.paymentType===o.paymentTypes.KEYSEND?wA:o.paymentType===o.paymentTypes.OFFER?nt:T),A.xp6(1),A.Q6J("ngIf",""!==o.paymentError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,Bt.O5,JA.VQ,HA.JJ,HA.On,JA.U0,HA._Y,HA.JL,HA.F,Bt.tP,e.BN,P.KE,H.Nt,HA.Fj,k.h,HA.Q7,P.bx,P.TO,$A.oG,m.Hw,eA.gM],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();var tn=Ut(4947);const En=["sendPaymentForm"];function un(i,M){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function $n(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Ui(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().onPaymentRequestEntry(T)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,un,2,1,"mat-hint",9),A.YNc(6,$n,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10)(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.paymentRequest),A.xp6(2),A.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!t.paymentRequest)}}function Pi(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",13)(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA()()}}function oi(i,M){1&i&&A._UZ(0,"mat-progress-bar",50)}function Nn(i,M){1&i&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const Un=function(i){return{"mr-0":i}};function vA(i,M){if(1&i&&A._UZ(0,"span",55),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function J(i,M){if(1&i&&A._UZ(0,"span",56),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function U(i,M){if(1&i&&(A.TgZ(0,"td",52),A.YNc(1,vA,1,3,"span",53),A.YNc(2,J,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*(null==t?null:t.created_at),"dd/MMM/y HH:mm")," ")}}function Z(i,M){1&i&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function K(i,M){if(1&i&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function fA(i,M){1&i&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const IA=function(i){return{"max-width":i}};function At(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",57)(2,"span",58),A._uU(3),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,IA,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function rt(i,M){1&i&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function Et(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function Qt(i,M){1&i&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function vt(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Ft(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",61)(1,"div",62)(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function St(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",65)(1,"button",66),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(wA)}),A._uU(2,"View Info"),A.qZA()()}}function jt(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Zt(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Ee(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Ce(i,M){if(1&i&&(A.TgZ(0,"td",67),A.YNc(1,jt,2,0,"p",9),A.YNc(2,Zt,2,0,"p",9),A.YNc(3,Ee,2,1,"p",9),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function me(i,M){if(1&i&&A._UZ(0,"span",71),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function sn(i,M){if(1&i&&A._UZ(0,"span",72),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function Me(i,M){if(1&i&&A._UZ(0,"span",71),2&i){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function We(i,M){if(1&i&&A._UZ(0,"span",72),2&i){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Un,t.screenSize===t.screenSizeEnum.XS))}}function Qn(i,M){if(1&i&&(A.TgZ(0,"span",74),A.YNc(1,Me,1,3,"span",69),A.YNc(2,We,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*t.created_at,"dd/MMM/y HH:mm")," ")}}function Ze(i,M){if(1&i&&(A.ynx(0),A.YNc(1,Qn,5,6,"span",73),A.BQk()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function dn(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",68),A.YNc(2,me,1,3,"span",69),A.YNc(3,sn,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Ze,2,1,"ng-container",9),A.qZA()),2&i){const t=M.$implicit;A.xp6(2),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" Total Attempts: ",null==t?null:t.total_parts," "),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Xn(i,M){if(1&i&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&i){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Ai(i,M){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Xn,2,1,"span",75),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Pn(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Ai,2,1,"span",9),A.qZA()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Ji(i,M){if(1&i&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" Part ID ",t.id?t.id:0," ")}}function jn(i,M){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Ji,2,1,"span",75),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function si(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",76)(2,"span",58),A._uU(3),A.qZA()(),A.YNc(4,jn,2,1,"span",9),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,IA,o.screenSize===o.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Ii(i,M){if(1&i&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function ti(i,M){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Ii,3,4,"span",78),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function hi(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,ti,2,1,"span",9),A.qZA()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function Oi(i,M){if(1&i&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function qn(i,M){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Oi,3,4,"span",78),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function ki(i,M){if(1&i&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,qn,2,1,"span",9),A.qZA()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function vi(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",60)(1,"button",82),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(wA)}),A._uU(2),A.qZA()()}if(2&i){const t=M.$implicit;A.xp6(2),A.hij("View ",t.id?t.id:0,"")}}function ji(i,M){if(1&i&&(A.TgZ(0,"div"),A.YNc(1,vi,3,1,"div",81),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Ki(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",79)(1,"span",60)(2,"button",80),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return wA.is_expanded=!wA.is_expanded}),A._uU(3),A.qZA()(),A.YNc(4,ji,2,1,"div",9),A.qZA()}if(2&i){const t=M.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function fr(i,M){1&i&&A._UZ(0,"tr",83)}const Vi=function(i){return{"display-none":i}};function li(i,M){if(1&i&&A._UZ(0,"tr",84),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Vi,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Wi(i,M){1&i&&A._UZ(0,"tr",85)}function _n(i,M){1&i&&A._UZ(0,"tr",83)}const Jr=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},Or=function(){return["no_payment"]};function go(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",14)(1,"div",15)(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA()(),A.TgZ(6,"mat-form-field",19)(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().selFilter=T}),A.qZA()()(),A.TgZ(8,"div",21)(9,"div",22),A.YNc(10,oi,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,Nn,2,0,"th",27),A.YNc(15,U,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,Z,2,0,"th",27),A.YNc(18,K,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,fA,2,0,"th",27),A.YNc(21,At,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,rt,2,0,"th",32),A.YNc(24,Et,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,Qt,2,0,"th",32),A.YNc(27,vt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,Ft,6,0,"th",35),A.YNc(30,St,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,Ce,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,dn,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,Pn,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,si,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,hi,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,ki,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,Ki,5,2,"td",45),A.BQk(),A.YNc(45,fr,1,0,"tr",46),A.YNc(46,li,1,3,"tr",47),A.YNc(47,Wi,1,0,"tr",48),A.YNc(48,_n,1,0,"tr",46),A.qZA()()(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(3),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.payments)("ngClass",A.VKq(15,Jr,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,Or)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ca=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht,be,$e){this.logger=t,this.commonService=o,this.store=T,this.rtlEffects=wA,this.clnEffects=nt,this.decimalPipe=Dt,this.titleCasePipe=Ht,this.datePipe=be,this.dataService=$e,this.calledFrom="transactions",this.faHistory=f.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","type","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","type","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.PP).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,o){return o.is_group||!1}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()})}sendPayment(){var t;this.newlyAddedPayment=(null===(t=this.paymentDecoded)||void 0===t?void 0:t.payment_hash)||"",this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,PA.q)(1)).subscribe(T=>{T&&(this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:40,type:a.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:a.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,PA.q)(1)).subscribe(wA=>{wA&&(this.paymentDecoded.msatoshi=wA[0].inputValue,this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*wA[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,r.R)(this.unSubs[1])).subscribe(o=>{var T;this.paymentDecoded=o,this.paymentDecoded.msatoshi?(null===(T=this.selNode)||void 0===T?void 0:T.fiatConversion)?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:wA=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+wA.symbol+this.decimalPipe.transform(wA.OTHER?wA.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:wA=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,kA.qR)({payload:{data:{component:Yn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const o=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:a.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:a.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:a.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:a.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:a.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&(null==o||o.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}])),t.bolt12&&""!==t.bolt12&&(null==o||o.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}])),t.memo&&""!==t.memo&&(null==o||o.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}])),t.hasOwnProperty("partid")?null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:a.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:a.Gi.STRING}]):null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Payment Information",message:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new mA.by(t?[...t]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.payments.filterPredicate=(o,T)=>{var wA;return((o.created_at?null===(wA=this.datePipe.transform(new Date(1e3*o.created_at),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase():"")+(o.bolt12?"bolt12":o.bolt11?"bolt11":"keysend")+JSON.stringify(o).toLowerCase()).includes(T)},this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),o=null==t?void 0:t.reduce((T,wA)=>wA.mpps?T.concat(wA.mpps):(delete wA.is_group,delete wA.is_expanded,delete wA.total_parts,T.concat(wA)),[]);this.commonService.downloadFile(o,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(yA.V),A.Y36(tn.J),A.Y36(Bt.JJ),A.Y36(Bt.rS),A.Y36(Bt.uU),A.Y36(LA.D))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,o){if(1&t&&(A.Gf(En,5),A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first),A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupType"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","mpp-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ui,12,3,"form",1),A.YNc(2,Pi,3,0,"div",2),A.YNc(3,go,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===o.calledFrom))},directives:[ft.xw,ft.yH,ft.Wh,Bt.O5,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,HA.Q7,q.$V,HA.JJ,HA.On,P.bx,P.TO,w.lW,e.BN,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,eA.gM,Bt.PC,Y.Zl,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,Bt.sg,mA.nj,mA.Gk,mA.Ke,mA.Q2,mA.as,mA.XQ,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),i})();function Bo(i,M){if(1&i&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&i){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function uo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const wA=A.CHM(t).index,nt=A.oxw().$implicit;return A.oxw(2).onNavigateTo(nt.links[wA])}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t)}}function fo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&i){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function ho(i,M){1&i&&A._UZ(0,"mat-progress-bar",28)}function Eo(i,M){if(1&i&&A._UZ(0,"rtl-cln-node-info",29),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function ga(i,M){if(1&i&&A._UZ(0,"rtl-cln-balances-info",30),2&i){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function wo(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-capacity-info",31),2&i){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function Ba(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-info",32),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function ua(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-status-info",33),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Co(i,M){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const fa=function(i){return{"dashboard-card-content":!0,"error-border":i}};function Qo(i,M){if(1&i&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA()(),A.TgZ(8,"div"),A.YNc(9,Bo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,uo,2,1,"button",15),A.YNc(13,fo,2,1,"button",16),A.qZA()()()(),A.TgZ(14,"mat-card-content",17),A.YNc(15,ho,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,Eo,1,2,"rtl-cln-node-info",20),A.YNc(18,ga,1,2,"rtl-cln-balances-info",21),A.YNc(19,wo,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,Ba,1,2,"rtl-cln-fee-info",23),A.YNc(21,ua,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,Co,2,0,"h3",25),A.qZA()()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(5),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions),A.xp6(1),A.Q6J("ngIf","capacity"===t.id),A.xp6(1),A.s9C("fxFlex","capacity"===t.id?90:70),A.Q6J("ngClass",A.VKq(16,fa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","capacity"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","status")}}function po(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA()(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,Qo,23,18,"mat-grid-tile",7),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),A.xp6(2),A.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.xp6(1),A.Q6J("rowHeight",t.operatorCardHeight),A.xp6(1),A.Q6J("ngForOf",t.operatorCards)}}function Mo(i,M){if(1&i&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&i){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function mo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const wA=A.CHM(t).index,nt=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(nt.links[wA])}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t)}}function Io(i,M){if(1&i&&(A.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA()(),A.TgZ(6,"div"),A.YNc(7,Mo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,mo,2,1,"button",15),A.qZA()()()()),2&i){const t=A.oxw().$implicit;A.xp6(3),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions)}}function vo(i,M){1&i&&A._UZ(0,"mat-progress-bar",28)}function Do(i,M){if(1&i&&A._UZ(0,"rtl-cln-node-info",43),2&i){const t=A.oxw(3);A.Q6J("information",t.information)}}function yo(i,M){if(1&i&&A._UZ(0,"rtl-cln-balances-info",30),2&i){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function ha(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&i){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function xo(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&i){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function Fo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const wA=A.CHM(t).index,nt=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(nt.links[wA])}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t)}}function Yo(i,M){if(1&i&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()(),A.TgZ(3,"mat-menu",13,53),A.YNc(5,Fo,2,1,"button",15),A.qZA()),2&i){const t=A.MAs(4),o=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",o.goToOptions)}}function To(i,M){1&i&&(A.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),A._UZ(3,"rtl-cln-lightning-invoices-table",48),A.qZA(),A.TgZ(4,"mat-tab",49),A._UZ(5,"rtl-cln-lightning-payments",50),A.qZA(),A.TgZ(6,"mat-tab",51),A.YNc(7,Yo,6,2,"ng-template",52),A.qZA()()()),2&i&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function ei(i,M){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Ei=function(i){return{"p-0":i}};function hr(i,M){if(1&i&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),A.YNc(2,Io,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,vo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Do,1,1,"rtl-cln-node-info",39),A.YNc(7,yo,1,2,"rtl-cln-balances-info",21),A.YNc(8,ha,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,xo,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,To,8,3,"span",41),A.YNc(11,ei,2,0,"h3",25),A.qZA()()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Ei,"transactions"===t.id)),A.xp6(1),A.Q6J("ngIf","transactions"!==t.id),A.xp6(1),A.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),A.Q6J("ngClass",A.VKq(15,fa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"balance"===t.id&&(o.apiCallStatusBalance.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","inboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","outboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","transactions")}}function So(i,M){if(1&i&&(A.TgZ(0,"div",34),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA()(),A.TgZ(4,"mat-grid-list",35),A.YNc(5,hr,12,17,"mat-grid-tile",7),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faSmile),A.xp6(2),A.hij("Welcome ",t.information.alias,"! Your node is up and running."),A.xp6(1),A.Q6J("rowHeight",t.merchantCardHeight),A.xp6(1),A.Q6J("ngForOf",t.merchantCards)}}let No=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.store=o,this.commonService=T,this.router=wA,this.faSmile=l.ctA,this.faFrown=l.KfU,this.faAngleDoubleDown=f.Sbq,this.faAngleDoubleUp=f.Vfw,this.faChartPie=f.OS1,this.faBolt=f.BDt,this.faServer=f.xf3,this.faNetworkWired=f.kXW,this.userPersonaEnum=a.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.activeChannels=[],this.channelsStatus={active:{},pending:{},inactive:{}},this.activeChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBalance=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(B.Hz).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.errorMessages[5]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusFHistory=t.apisCallStatus[1],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]=this.apiCallStatusNodeInfo.message?"object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message:""),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]=this.apiCallStatusFHistory.message?"object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message:""),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(B.JG).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]=this.apiCallStatusFees.message?"object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message:""),this.fees=t.fees,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{var o,T;this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]=this.apiCallStatusChannels.message?"object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message:""),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=t.activeChannels,this.activeChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels,"balancedness")))||[],this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.activeChannels)||void 0===o?void 0:o.filter(wA=>!!wA.msatoshi_to_them&&wA.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(T=this.activeChannels)||void 0===T?void 0:T.filter(wA=>!!wA.msatoshi_to_us&&wA.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(wA=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil((wA.msatoshi_to_them||0)/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor((wA.msatoshi_to_us||0)/1e3)}),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,r.R)(this.unSubs[3]),(0,s.M)(this.store.select(B.Wj))).subscribe(([t,o])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]=this.apiCallStatusBalance.message?"object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message:""),this.errorMessages[3]="",this.apiCallStatusLRBal=o.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]=this.apiCallStatusLRBal.message?"object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message:""),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance||0,this.balances.lightning=o.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const T=o.localRemoteBalance.localBalance?+o.localRemoteBalance.localBalance:0,wA=o.localRemoteBalance.remoteBalance?+o.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:T,remoteBalance:wA,balancedness:+(1-Math.abs((T-wA)/(T+wA))).toFixed(3)},this.channelsStatus.active.capacity=o.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=o.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=o.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(o)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,o)=>{const T=(t.msatoshi_to_us?+t.msatoshi_to_us:0)+(t.msatoshi_to_them?+t.msatoshi_to_them:0),wA=(o.msatoshi_to_them?+o.msatoshi_to_them:0)+(o.msatoshi_to_them?+o.msatoshi_to_them:0);return T>wA?-1:T{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,o){if(1&t&&(A.YNc(0,po,7,4,"div",0),A.YNc(1,So,6,4,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",(null==o.selNode?null:o.selNode.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.Wh,e.BN,h.Il,Bt.sg,h.DX,ft.yH,g.a8,g.dk,g.n5,w.lW,Q.p6,m.Hw,Q.VK,Q.OP,g.dn,Bt.mk,Y.oO,S.pW,Bt.RF,Bt.n9,R,b,_,SA,X,Bt.ED,mt,wt.SP,wt.uX,UA,ca,wt.uD],styles:[""]}),i})();var Ea=Ut(9841),Uo=Ut(8012),wa=Ut(8377),Ri=Ut(7261),ci=Ut(1125),Di=Ut(5615);const Po=["form"],Ro=["formSweepAll"],Lo=["stepper"];function bo(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function zo(i,M){1&i&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Go(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function Ho(i,M){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function Jo(i,M){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Oo(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function ko(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",39)(1,"input",40,41),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw(2).customFeeRate=T}),A.qZA(),A.YNc(3,Oo,2,0,"mat-error",14),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function jo(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ca(i,M){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function Ko(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",23)(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"div",22)(7,"div",43)(8,"mat-form-field",44)(9,"mat-select",45),A.NdJ("selectionChange",function(T){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(T)})("valueChange",function(T){return A.CHM(t),A.oxw(2).selUTXOs=T}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ca,3,4,"mat-option",21),A.qZA()(),A.TgZ(14,"div",46)(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw(2).flgUseAllBalance=T})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(16," Use selected UTXOs balance "),A.qZA(),A.TgZ(17,"mat-icon",48),A._uU(18,"info_outline"),A.qZA()()()()()()}if(2&i){const t=A.oxw(2);A.xp6(5),A.Oqu(t.advancedTitle),A.xp6(4),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Vo(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Wo(i,M){if(1&i&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Vo,2,1,"span",14),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const Qa=function(i,M){return{"mr-6":i,"mr-2":M}};function Zo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11)(3,"input",12,13),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().transaction.address=T}),A.qZA(),A.YNc(5,bo,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15)(7,"input",16,17),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().transaction.satoshis=T}),A.qZA(),A.YNc(9,zo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Go,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19)(14,"mat-select",20),A.NdJ("selectionChange",function(T){return A.CHM(t),A.oxw().onAmountUnitChange(T)}),A.YNc(15,Ho,2,2,"mat-option",21),A.qZA()(),A.TgZ(16,"div",22)(17,"div",23)(18,"div",24)(19,"mat-form-field",25)(20,"mat-select",26),A.NdJ("valueChange",function(T){return A.CHM(t),A.oxw().selFeeRate=T})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,Jo,2,2,"mat-option",21),A.qZA()(),A.YNc(22,ko,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28)(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().flgMinConf=T})("change",function(){A.CHM(t);const T=A.oxw();return T.flgMinConf?T.selFeeRate=null:T.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30)(26,"input",31,32),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().minConfValue=T}),A.qZA(),A.YNc(28,jo,2,0,"mat-error",14),A.qZA()()(),A.YNc(29,Ko,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Wo,3,2,"div",34),A.TgZ(32,"div",35)(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA()()()()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.transaction.address),A.xp6(2),A.Q6J("ngIf",!t.transaction.address),A.xp6(2),A.Q6J("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),A.xp6(2),A.Q6J("ngIf",t.flgUseAllBalance),A.xp6(2),A.hij(" ",t.selAmountUnit," "),A.xp6(1),A.Q6J("ngIf",!t.transaction.satoshis),A.xp6(2),A.Q6J("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),A.xp6(1),A.Q6J("ngForOf",t.amountUnits),A.xp6(4),A.Q6J("fxFlex","customperkb"!==t.selFeeRate||t.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",t.selFeeRate)("disabled",t.flgMinConf),A.xp6(1),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngModel",t.flgMinConf)("ngClass",A.WLB(28,Qa,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",t.minConfValue)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),A.xp6(2),A.Q6J("ngIf",t.flgMinConf&&!t.minConfValue),A.xp6(1),A.Q6J("ngIf",t.isCompatibleVersion),A.xp6(2),A.Q6J("ngIf",""!==t.sendFundError)}}function Xo(i,M){if(1&i&&A._uU(0),2&i){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function qo(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function _o(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-step",55)(1,"form",73),A.YNc(2,Xo,1,1,"ng-template",67),A.TgZ(3,"div",0)(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,qo,2,0,"mat-error",14),A.qZA()(),A.TgZ(7,"div",75)(8,"button",76),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA()()()()}if(2&i){const t=A.oxw(2);A.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.passwordFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function $o(i,M){if(1&i&&A._uU(0),2&i){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function As(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function ts(i,M){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function es(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function ce(i,M){if(1&i&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,es,2,0,"mat-error",14),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.customFeeRate.value)}}function ns(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Er(i,M){if(1&i&&A._uU(0),2&i){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function wr(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Li(i,M){if(1&i&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,wr,2,1,"span",14),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function wi(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",51)(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(T){return A.CHM(t),A.oxw().stepSelectionChanged(T)}),A.YNc(3,_o,10,4,"mat-step",54),A.TgZ(4,"mat-step",55)(5,"form",56),A.YNc(6,$o,1,1,"ng-template",57),A.TgZ(7,"div",22)(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,As,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",59)(12,"div",24)(13,"mat-form-field",25)(14,"mat-select",60),A.YNc(15,ts,2,2,"mat-option",21),A.qZA()(),A.YNc(16,ce,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",61),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",62),A.YNc(21,ns,2,0,"mat-error",14),A.qZA()()()(),A.TgZ(22,"div",63)(23,"button",64),A._uU(24,"Next"),A.qZA()()()(),A.TgZ(25,"mat-step",65)(26,"form",66),A.YNc(27,Er,1,1,"ng-template",67),A.TgZ(28,"div",51)(29,"div",68),A._UZ(30,"fa-icon",69),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA()(),A.YNc(33,Li,3,2,"div",34),A.TgZ(34,"div",63)(35,"button",70),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA()()()()()(),A.TgZ(37,"div",71)(38,"button",72),A._uU(39),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("ngIf",!t.appConfig.sso.rtlSSO),A.xp6(1),A.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.sendFundFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),A.xp6(3),A.Q6J("fxFlex","customperkb"!==t.sendFundFormGroup.controls.selFeeRate.value||t.sendFundFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(20,Qa,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.minConfValue.value),A.xp6(4),A.Q6J("stepControl",t.confirmFormGroup),A.xp6(1),A.Q6J("formGroup",t.confirmFormGroup),A.xp6(4),A.Q6J("icon",t.faExclamationTriangle),A.xp6(3),A.Q6J("ngIf",""!==t.sendFundError),A.xp6(5),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(t.flgValidated?"Close":"Cancel")}}let Cr=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht,be,$e,ee){this.dialogRef=t,this.data=o,this.logger=T,this.store=wA,this.commonService=nt,this.decimalPipe=Dt,this.actions=Ht,this.formBuilder=be,this.rtlEffects=$e,this.snackBar=ee,this.faExclamationTriangle=f.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=a._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=a.uA,this.selAmountUnit=a.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=a.Xz,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[HA.kI.required]],password:["",[HA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",HA.kI.required],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{t?(this.sendFundFormGroup.controls.selFeeRate.disable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.reset(),this.sendFundFormGroup.controls.minConfValue.enable(),this.sendFundFormGroup.controls.minConfValue.setValidators([HA.kI.required]),this.sendFundFormGroup.controls.minConfValue.setValue(null)):(this.sendFundFormGroup.controls.selFeeRate.enable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.setValue(null),this.sendFundFormGroup.controls.minConfValue.disable(),this.sendFundFormGroup.controls.minConfValue.setValidators(null),this.sendFundFormGroup.controls.minConfValue.setErrors(null))}),this.sendFundFormGroup.controls.selFeeRate.valueChanges.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.sendFundFormGroup.controls.flgMinConf.value?null:[HA.kI.required])}),(0,Ea.a)([this.store.select(wa.dT),this.store.select(wa.Yj)]).pipe((0,r.R)(this.unSubs[1])).subscribe(([t,o])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=o}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.information=t,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")}),this.store.select(B.T4).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{var o;this.utxos=this.commonService.sortAscByKey(null===(o=t.utxos)||void 0===o?void 0:o.filter(T=>"confirmed"===T.status),"value"),this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[4]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(t=>{t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,kA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,kA.QO)({payload:Uo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,PA.q)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>{var o;return null===(o=this.transaction.utxos)||void 0===o?void 0:o.push(t.txid+":"+t.output)})),this.sweepAll){if(!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.minConfValue.value||this.sendFundFormGroup.controls.minConfValue.value<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis="all",this.transaction.address=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feeRate,this.transaction.minconf=this.sendFundFormGroup.controls.flgMinConf.value?this.sendFundFormGroup.controls.minConfValue.value:null):(delete this.transaction.minconf,this.transaction.feeRate="customperkb"===this.sendFundFormGroup.controls.selFeeRate.value&&!this.sendFundFormGroup.controls.flgMinConf.value&&this.sendFundFormGroup.controls.customFeeRate.value?1e3*this.sendFundFormGroup.controls.customFeeRate.value+"perkb":this.sendFundFormGroup.controls.selFeeRate.value),delete this.transaction.utxos,this.store.dispatch((0,ht.Wi)({payload:this.transaction}))}else{if(this.transaction.minconf=this.flgMinConf?this.minConfValue:null,this.transaction.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,!this.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==a.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit,a.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,r.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[a.NT.SATS],this.selAmountUnit=a.NT.SATS,this.store.dispatch((0,ht.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,ht.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=a.uA[0]}stepSelectionChanged(t){var o;switch(this.sendFundError="",t.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.minConfValue.value:this.sendFundFormGroup.controls.selFeeRate.value?" | Fee Rate: "+(null===(o=this.feeRateTypes.find(T=>T.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value))||void 0===o?void 0:o.feeRateType):"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=null===(o=this.selUTXOs)||void 0===o?void 0:o.reduce((T,wA)=>T+(wA.value||0),0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=a.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const o=this,T=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let wA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,T,wA,this.amountUnits[2],this.fiatConversion).pipe((0,r.R)(this.unSubs[6])).subscribe({next:nt=>{var Dt;this.selAmountUnit=t.value,o.transaction.satoshis=null===(Dt=o.decimalPipe.transform(nt[wA],o.currencyUnitFormats[wA]))||void 0===Dt?void 0:Dt.replace(/,/g,"")},error:nt=>{o.transaction.satoshis=null,this.amountError="Conversion Error: "+nt,this.selAmountUnit=T,wA=T}})}onAdvancedPanelToggle(t){this.advancedTitle=t&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Bt.JJ),A.Y36(Tt.eX),A.Y36(HA.qu),A.Y36(yA.V),A.Y36(Ri.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,o){if(1&t&&(A.Gf(Po,7),A.Gf(Ro,5),A.Gf(Lo,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first),A.iGM(T=A.CRH())&&(o.formSweepAll=T.first),A.iGM(T=A.CRH())&&(o.stepper=T.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","48","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["tabindex","9","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","default","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","default",3,"click"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Zo,37,31,"form",7),A.qZA()()(),A.YNc(10,wi,40,23,"ng-template",null,8,A.W1O)),2&t){const T=A.MAs(11);A.xp6(5),A.Oqu(o.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!o.sweepAll)("ngIfElse",T)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,Bt.O5,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,k.h,HA.Q7,HA.JJ,HA.On,P.TO,z.q,P.bx,P.R9,QA.gD,Bt.sg,CA.ey,HA.wV,HA.qQ,$A.oG,Bt.mk,Y.oO,ci.ib,ci.yz,ci.yK,QA.$L,RA.Rr,m.Hw,eA.gM,e.BN,Di.Vq,Di.C0,HA.sg,Di.VY,HA.u,Di.Ic],pipes:[Bt.JJ],styles:[""]}),i})();var kr=Ut(1203),jr=Ut(7544);function is(i,M){1&i&&A._UZ(0,"mat-progress-bar",27)}function bi(i,M){1&i&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function zi(i,M){1&i&&(A.TgZ(0,"span",36)(1,"mat-icon",37),A._uU(2,"warning"),A.qZA()())}function Kr(i,M){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,zi,3,0,"span",35),A.qZA()),2&i){const t=A.oxw().$implicit;A.oxw();const o=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",o)}}function Vr(i,M){1&i&&A._UZ(0,"span",38)}function Wr(i,M){if(1&i&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&i){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const rs=function(i){return{"max-width":i}};function da(i,M){if(1&i&&(A.TgZ(0,"td",29)(1,"span",30),A.YNc(2,Kr,2,2,"span",31),A.YNc(3,Vr,1,0,"span",32),A.YNc(4,Wr,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,rs,o.screenSize===o.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",o.numDustUTXOs>0&&!o.isDustUTXO),A.xp6(1),A.Q6J("ngIf","confirmed"===t.status),A.xp6(1),A.Q6J("ngIf","confirmed"!==t.status),A.xp6(2),A.Oqu(t.txid)}}function as(i,M){1&i&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function os(i,M){if(1&i&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function ss(i,M){1&i&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function ls(i,M){if(1&i&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function cs(i,M){if(1&i&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function pa(i,M){if(1&i&&(A.TgZ(0,"td",29),A.YNc(1,ls,3,3,"span",42),A.YNc(2,cs,3,3,"span",43),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function gs(i,M){1&i&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function Bs(i,M){if(1&i&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function yi(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function bt(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",49)(1,"button",50),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw().onUTXOClick(nt,T)}),A._uU(2,"View Info"),A.qZA()()}}function Qr(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function dr(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function xi(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Ma(i,M){if(1&i&&(A.TgZ(0,"td",51),A.YNc(1,Qr,2,0,"p",31),A.YNc(2,dr,2,0,"p",31),A.YNc(3,xi,2,1,"p",31),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const pr=function(i){return{"display-none":i}};function us(i,M){if(1&i&&A._UZ(0,"tr",52),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,pr,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function ma(i,M){1&i&&A._UZ(0,"tr",53)}function fs(i,M){1&i&&A._UZ(0,"tr",54)}function Zi(i,M){1&i&&A._UZ(0,"mat-icon",37)}const Mr=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},hs=function(){return["no_utxo"]};let Ia=(()=>{class i{constructor(t,o,T){this.logger=t,this.commonService=o,this.store=T,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select(B.T4).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.logger.info(t)})}ngAfterViewInit(){this.utxos&&this.utxos.length>0&&this.sort&&this.paginator&&this.loadUTXOsTable(this.utxos)}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t,o){const T=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:a.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status||""),title:"Status",width:50,type:a.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:a.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"UTXO Information",message:T}}}))}loadUTXOsTable(t){this.listUTXOs=new mA.by([...t]),this.listUTXOs.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(o,T)=>JSON.stringify(o).toLowerCase().includes(T),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("UTXOs")}]),A.TTD],decls:33,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[4,"ngIf"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.TgZ(5,"div",5)(6,"div",6),A.YNc(7,is,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,bi,2,0,"th",11),A.YNc(12,da,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,as,2,0,"th",14),A.YNc(15,os,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,ss,2,0,"th",14),A.YNc(18,pa,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,gs,2,0,"th",14),A.YNc(21,Bs,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,yi,6,0,"th",18),A.YNc(24,bt,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,Ma,4,3,"td",21),A.BQk(),A.YNc(27,us,1,3,"tr",22),A.YNc(28,ma,1,0,"tr",23),A.YNc(29,fs,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA()()(),A.YNc(31,Zi,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(3),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.listUTXOs)("ngClass",A.VKq(11,Mr,""!==o.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,hs)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,eA.gM,m.Hw,QA.gD,QA.$L,CA.ey,w.lW,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.rS,Bt.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();function va(i,M){if(1&i&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function Da(i,M){if(1&i&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let Es=(()=>{class i{constructor(t,o){this.logger=t,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.vpe,this.utxos=[],this.numUtxos=0,this.dustUtxos=[],this.numDustUtxos=0,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.store.select(B.T4).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{var o;t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=null===(o=t.utxos)||void 0===o?void 0:o.filter(T=>+(T.value||0)<1e3),this.numDustUtxos=this.dustUtxos.length),t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box","my-2"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["xLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["fxLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(wA){return o.onSelectedIndexChanged(wA)}),A.TgZ(2,"mat-tab"),A.YNc(3,va,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Da,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",o.selectedTableIndex),A.xp6(3),A.Q6J("utxos",o.utxos)("numDustUTXOs",o.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",o.dustUtxos)("numDustUTXOs",o.numDustUtxos)("isDustUTXO",!0))},directives:[ft.xw,ft.yH,ft.Wh,wt.SP,wt.uX,wt.uD,jr.k,Ia],styles:[""]}),i})();const ws=function(i,M){return[i,M]};function Xi(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=null==wA?null:wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.Q6J("active",o.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,ws,null==t?null:t.link,null==o.selectedTable?null:o.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let Cs=(()=>{class i{constructor(t,o,T){this.store=t,this.router=o,this.activatedRoute=T,this.selNode={},this.faExchangeAlt=f.Ssp,this.faChartPie=f.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link,this.selectedTable=this.tables.find(wA=>wA.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(B.lw).pipe((0,r.R)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(B.Rn).pipe((0,r.R)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.balance.totalBalance||0},{title:"Confirmed",dataValue:o.balance.confBalance||0},{title:"Unconfirmed",dataValue:o.balance.unconfBalance||0}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:Cr}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(o=>o.id===t)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(Vt.F0),A.Y36(Vt.gz))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),A.YNc(16,Xi,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10)(20,"rtl-cln-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(wA){return o.onSelectedTableIndexChanged(wA)}),A.qZA()()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",o.links),A.xp6(4),A.Q6J("selectedTableIndex",null==o.selectedTable?null:o.selectedTable.id))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,kr.D,wt.BU,Bt.sg,wt.Nj,Vt.rH,ft.yH,Vt.lC,Es],styles:[""]}),i})();function Qs(i,M){if(1&i&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function ds(i,M){if(1&i&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let ya=(()=>{class i{constructor(t,o,T){this.store=t,this.logger=o,this.router=T,this.activePeers=0,this.activeChannels=0,this.faUsers=f.FVb,this.faChartPie=f.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(t=>t instanceof Vt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(o=>o.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(B.Wi).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(B.Rn).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance||0},{title:"Unconfirmed",dataValue:t.balance.unconfBalance||0}]})}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(wA){return o.activeLink=wA})("selectedTabChange",function(wA){return o.onSelectedTabChange(wA)}),A.TgZ(16,"mat-tab"),A.YNc(17,Qs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,ds,2,1,"ng-template",8),A.qZA()(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faUsers),A.xp6(6),A.Q6J("selectedIndex",o.activeLink))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,kr.D,wt.SP,wt.uX,wt.uD,jr.k,ft.yH,Vt.lC],styles:[""]}),i})();function ps(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ms=(()=>{class i{constructor(t,o,T){this.logger=t,this.store=o,this.router=T,this.faExchangeAlt=f.Ssp,this.faChartPie=f.OS1,this.currencyUnits=[],this.routerUrl="",this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.selNode={},this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link,this.routerUrl=o.urlAfterRedirects}}),this.store.select(B.lw).pipe((0,r.R)(this.unSubs[1])).subscribe(o=>{if(this.selNode=o,this.selNode&&this.selNode.enableOffers){this.store.dispatch((0,ht.yl)()),this.store.dispatch((0,ht.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const T=this.links.find(wA=>this.router.url.includes(wA.link));this.activeLink=T?T.link:this.links[0].link}}),this.store.select(B.Wj).pipe((0,r.R)(this.unSubs[2]),(0,s.M)(this.store.select(B.lw))).subscribe(([o,T])=>{this.currencyUnits=(null==T?void 0:T.currencyUnits)||[],this.balances=T&&T.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA()(),A.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),A.YNc(16,ps,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartPie),A.xp6(6),A.Q6J("values",o.balances),A.xp6(2),A.Q6J("icon",o.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,kr.D,wt.BU,Bt.sg,wt.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),i})();function ms(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Is=(()=>{class i{constructor(t){this.router=t,this.faMapSigns=f.SuH,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"routingpeers",name:"Routing Peers"},{link:"failedtransactions",name:"Failed Transactions"},{link:"localfail",name:"Local Failed Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-routing"]],decls:13,vars:2,consts:[["fxLayout","column",1,"mb-2"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA()(),A.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),A.YNc(10,ms,2,3,"div",9),A.qZA()(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA()()()()()),2&t&&(A.xp6(2),A.Q6J("icon",o.faMapSigns),A.xp6(8),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,ft.yH,g.a8,g.dn,wt.BU,Bt.sg,wt.Nj,Vt.rH,Vt.lC],styles:[""]}),i})();var qi=Ut(6895);function xa(i,M){if(1&i&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t)}}function vs(i,M){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function Ds(i,M){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function ys(i,M){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function xs(i,M){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Fs(i,M){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Rn(i,M){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Ys(i,M){1&i&&(A.TgZ(0,"th",29)(1,"span",30),A._uU(2,"Actions"),A.qZA()())}function Ts(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",31)(1,"span",30)(2,"button",32),A.NdJ("copied",function(T){return A.CHM(t),A.oxw(2).onCopyNodeURI(T)}),A._uU(3,"Copy Node URI"),A.qZA()()()}if(2&i){const t=M.$implicit,o=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==o.lookupResult?null:o.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function Ss(i,M){1&i&&A._UZ(0,"tr",33)}function Ns(i,M){1&i&&A._UZ(0,"tr",34)}const Us=function(i){return{"background-color":i}};function Ps(i,M){if(1&i&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA()()(),A.TgZ(10,"div",8)(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA()()(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA()(),A.TgZ(23,"div",8)(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,xa,2,1,"span",11),A.qZA()(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12)(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14)(32,"table",15,16),A.ynx(34,17),A.YNc(35,vs,2,0,"th",18),A.YNc(36,Ds,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,ys,2,0,"th",18),A.YNc(39,xs,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,Fs,2,0,"th",18),A.YNc(42,Rn,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Ys,3,0,"th",23),A.YNc(45,Ts,4,1,"td",24),A.BQk(),A.YNc(46,Ss,1,0,"tr",25),A.YNc(47,Ns,1,0,"tr",26),A.qZA()()()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(null==t.lookupResult?null:t.lookupResult.alias),A.xp6(1),A.Q6J("ngStyle",A.VKq(15,Us,"#"+(null==t.lookupResult?null:t.lookupResult.color))),A.xp6(1),A.Oqu(null!=t.lookupResult&&t.lookupResult.color?"#"+(null==t.lookupResult?null:t.lookupResult.color):""),A.xp6(5),A.Oqu(null==t.lookupResult?null:t.lookupResult.nodeid),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.xi3(22,12,1e3*(null==t.lookupResult?null:t.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.xp6(5),A.Q6J("ngForOf",t.featureDescriptions),A.xp6(1),A.Q6J("inset",!0),A.xp6(5),A.Q6J("dataSource",t.addresses),A.xp6(14),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}let Rs=(()=>{class i{constructor(t,o){this.logger=t,this.snackBar=o,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new mA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,o)=>t[o]&&isNaN(t[o])?t[o].toLocaleLowerCase():t[o]?+t[o]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(o=>{t&(1<{class i{constructor(t){this.store=t,this.lookupResult=[],this.node1_match=!1,this.node2_match=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.store.select(B.ey).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.id&&(this.node2_match=!0)})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,o){1&t&&A.YNc(0,Zr,204,91,"div",0),2&t&&A.Q6J("ngIf",o.lookupResult)},directives:[Bt.O5,ft.xw,sA.d,ft.Wh,ft.yH],pipes:[Bt.JJ,Bt.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),i})();const Qi=["form"];function Xr(i,M){if(1&i&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("value",t.id)("checked",o.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function zs(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function mr(i,M){if(1&i&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-node-lookup",26),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function Ir(i,M){if(1&i&&(A.TgZ(0,"span",24),A.YNc(1,mr,2,1,"div",25),A.qZA()),2&i){const t=A.oxw(2),o=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",o)}}function vr(i,M){if(1&i&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-channel-lookup",26),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function xe(i,M){if(1&i&&(A.TgZ(0,"span",24),A.YNc(1,vr,2,1,"div",25),A.qZA()),2&i){const t=A.oxw(2),o=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",o)}}function Gs(i,M){1&i&&(A.TgZ(0,"span",24)(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA()())}function di(i,M){if(1&i&&(A.TgZ(0,"div",18)(1,"div",19)(2,"span",20),A._uU(3),A.qZA()(),A.TgZ(4,"div",21),A.YNc(5,Ir,2,2,"span",22),A.YNc(6,xe,2,2,"span",22),A.YNc(7,Gs,3,0,"span",23),A.qZA()()),2&i){const t=A.oxw();A.xp6(3),A.hij("",t.lookupFields[t.selectedFieldId].name," Details"),A.xp6(1),A.Q6J("ngSwitch",t.selectedFieldId),A.xp6(1),A.Q6J("ngSwitchCase",0),A.xp6(1),A.Q6J("ngSwitchCase",1)}}function Hs(i,M){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Js=function(i){return{"mt-1":!0,"mt-2":i}};let Os=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.commonService=o,this.store=T,this.actions=wA,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=f.wn1,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{if(t.type===a.AB.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof t.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(t.payload[0]));break;case 1:this.channelLookupValue="object"!=typeof t.payload[0]?[]:JSON.parse(JSON.stringify(t.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"Lookup"===t.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.selectedFieldId){case 0:this.store.dispatch((0,ht.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,o){if(1&t&&A.Gf(Qi,7),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first)}},decls:20,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(wA){return o.selectedFieldId=wA})("change",function(wA){return o.onSelectChange(wA)}),A.YNc(7,Xr,2,3,"mat-radio-button",7),A.qZA()(),A.TgZ(8,"mat-form-field",8)(9,"input",9,10),A.NdJ("change",function(){return o.clearLookupValue()})("ngModelChange",function(wA){return o.lookupKey=wA}),A.qZA(),A.YNc(11,zs,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12)(13,"button",13),A.NdJ("click",function(){return o.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return o.onLookup()}),A._uU(16,"Lookup"),A.qZA()()(),A.YNc(17,di,8,4,"div",15),A.qZA()()(),A.YNc(18,Hs,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",o.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",o.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Js,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key")("ngModel",o.lookupKey),A.xp6(2),A.Q6J("ngIf",!o.lookupKey),A.xp6(6),A.Q6J("ngIf",o.flgSetLookupValue))},directives:[ft.xw,ft.yH,ft.Wh,g.dn,HA._Y,HA.JL,HA.F,JA.VQ,HA.JJ,HA.On,Bt.sg,JA.U0,P.KE,Bt.mk,Y.oO,H.Nt,HA.Fj,HA.Q7,Bt.O5,P.TO,w.lW,Bt.RF,Bt.n9,Rs,Xe,Bt.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),i})();var pi=(()=>{return(i=pi||(pi={})).KB="KB",i.KW="KW",pi;var i})();function gi(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div")(27,"h4",4),A._uU(28," Delayed To Us "),A.TgZ(29,"mat-icon",9),A._uU(30,"info_outline"),A.qZA()(),A.TgZ(31,"div",6),A._uU(32),A.ALo(33,"number"),A.qZA()()(),A.TgZ(34,"div",3)(35,"div")(36,"h4",4),A._uU(37," Minimum Acceptable "),A.TgZ(38,"mat-icon",10),A._uU(39,"info_outline"),A.qZA()(),A.TgZ(40,"div",6),A._uU(41),A.ALo(42,"number"),A.qZA()(),A.TgZ(43,"div")(44,"h4",4),A._uU(45," Maximum Acceptable "),A.TgZ(46,"mat-icon",11),A._uU(47,"info_outline"),A.qZA()(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA()(),A.TgZ(51,"div")(52,"h4",4),A._uU(53," HTLC Resolution "),A.TgZ(54,"mat-icon",12),A._uU(55,"info_outline"),A.qZA()(),A.TgZ(56,"div",6),A._uU(57),A.ALo(58,"number"),A.qZA()(),A.TgZ(59,"div")(60,"h4",4),A._uU(61," Penalty "),A.TgZ(62,"mat-icon",13),A._uU(63,"info_outline"),A.qZA()(),A.TgZ(64,"div",6),A._uU(65),A.ALo(66,"number"),A.qZA()()()()),2&i){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(8),A.Oqu(A.lcZ(17,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(8),A.Oqu(A.lcZ(25,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(8),A.Oqu(A.lcZ(33,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(9),A.Oqu(A.lcZ(42,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(8),A.Oqu(A.lcZ(50,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(8),A.Oqu(A.lcZ(58,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(8),A.Oqu(A.lcZ(66,22,null==t.perkbw?null:t.perkbw.penalty))}}function Ya(i,M){if(1&i&&(A.TgZ(0,"div",14)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Gi=(()=>{class i{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===pi.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===pi.KW&&(this.perkbw=this.feeRates.perkw)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Default feerate for fundchannel and withdraw","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Feerate to aim for in cooperative shutdown. Note that since mutual close is a negotiation, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for commitment_transaction in a live channel which we originally funded","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close funds to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The smallest feerate that you can use, usually the minimum relayed feerate of the backend","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close HTLC outputs to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate to start at when penalizing a cheat attempt","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,gi,67,24,"div",0),A.YNc(1,Ya,3,1,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,m.Hw,eA.gM],pipes:[Bt.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),i})();function Ta(i,M){if(1&i&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening Channel "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div",9),A._UZ(27,"h4",4)(28,"div",6),A.qZA()(),A.TgZ(29,"div",3)(30,"div")(31,"h4",4),A._uU(32," HTLC Timeout "),A.TgZ(33,"mat-icon",10),A._uU(34,"info_outline"),A.qZA()(),A.TgZ(35,"div",6),A._uU(36),A.ALo(37,"number"),A.qZA()(),A.TgZ(38,"div")(39,"h4",4),A._uU(40," HTLC Success "),A.TgZ(41,"mat-icon",11),A._uU(42,"info_outline"),A.qZA()(),A.TgZ(43,"div",6),A._uU(44),A.ALo(45,"number"),A.qZA()(),A.TgZ(46,"div",9),A._UZ(47,"h4",4)(48,"div",6),A.qZA(),A.TgZ(49,"div",9),A._UZ(50,"h4",4)(51,"div",6),A.qZA()()()),2&i){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(8),A.Oqu(A.lcZ(17,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(8),A.Oqu(A.lcZ(25,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(12),A.Oqu(A.lcZ(37,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(8),A.Oqu(A.lcZ(45,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ks(i,M){if(1&i&&(A.TgZ(0,"div",12)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Dr=(()=>{class i{constructor(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Estimated cost of typical channel open","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Estimated cost of typical channel close","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical unilateral close (without HTLCs)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxFlex","12"],["matTooltip","Estimated cost of typical HTLC timeout transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical HTLC fulfillment transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,o){if(1&t&&(A.YNc(0,Ta,52,15,"div",0),A.YNc(1,ks,3,1,"ng-template",null,1,A.W1O)),2&t){const T=A.MAs(2);A.Q6J("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",T)}},directives:[Bt.O5,ft.xw,ft.yH,ft.Wh,m.Hw,eA.gM],pipes:[Bt.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),i})();function yr(i,M){1&i&&A._UZ(0,"mat-progress-bar",19)}function Fi(i,M){if(1&i&&A._UZ(0,"rtl-cln-node-info",20),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function js(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-status-info",21),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function xr(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-info",22),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function _i(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Ks(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Vs(i,M){if(1&i&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const Sa=function(i){return{"dashboard-card-content":!0,"error-border":i}};function Na(i,M){if(1&i&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,yr,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Fi,1,2,"rtl-cln-node-info",14),A.YNc(13,js,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,xr,1,2,"rtl-cln-fee-info",16),A.YNc(15,_i,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Ks,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Vs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,Sa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function Ws(i,M){if(1&i&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Na,18,15,"mat-grid-tile",3),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function Zs(i,M){1&i&&A._UZ(0,"mat-progress-bar",19)}function Xs(i,M){if(1&i&&A._UZ(0,"rtl-cln-node-info",20),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function qs(i,M){if(1&i&&A._UZ(0,"rtl-cln-channel-status-info",21),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function _s(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-info",22),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function $s(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function A0(i,M){if(1&i&&A._UZ(0,"rtl-cln-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function t0(i,M){if(1&i&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function e0(i,M){if(1&i&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,Zs,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Xs,1,2,"rtl-cln-node-info",14),A.YNc(13,qs,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,_s,1,2,"rtl-cln-fee-info",16),A.YNc(15,$s,1,3,"rtl-cln-fee-rates",17),A.YNc(16,A0,1,3,"rtl-cln-fee-rates",17),A.YNc(17,t0,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,Sa,"node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.ERROR)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusChannels.status===o.apiCallStatusEnum.ERROR||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||"status"===t.id&&(o.apiCallStatusNodeInfo.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusLRBal.status===o.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(o.apiCallStatusFees.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusChannels.status===o.apiCallStatusEnum.INITIATED||o.apiCallStatusFHistory.status===o.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&o.apiCallStatusPerKB.status===o.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&o.apiCallStatusPerKW.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function n0(i,M){if(1&i&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,e0,18,15,"mat-grid-tile",3),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let i0=(()=>{class i{constructor(t,o,T){this.logger=t,this.commonService=o,this.store=T,this.faBolt=f.BDt,this.faServer=f.xf3,this.faNetworkWired=f.kXW,this.faLink=f.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=a.cu,this.userPersonaEnum=a.ol,this.errorMessages=["","","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFees=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}])}ngOnInit(){this.store.select(B.Hz).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[1]),(0,s.M)(this.store.select(B.Wj))).subscribe(([t,o])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=o.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message?this.apiCallStatusLRBal.message:""),this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.channelsStatus.active.capacity=o.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=o.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=o.localRemoteBalance.inactiveBalance||0}),this.store.select(B.JG).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=t.fees}),this.store.select(B.Bo).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message?this.apiCallStatusFHistory.message:""),t.forwardingHistory&&t.forwardingHistory.listForwards&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(B.zm).pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message?this.apiCallStatusPerKB.message:""),this.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(B.hx).pipe((0,r.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===a.Bn.ERROR&&(this.errorMessages[6]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message?this.apiCallStatusPerKW.message:""),this.feeRatesPerKW=t.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-network-info"]],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","100px",4,"ngIf"],["cols","6","rowHeight","100px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","feeRateStyle","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],[1,"h-100",3,"feeRates","feeRateStyle","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ws,2,1,"mat-grid-list",1),A.YNc(2,n0,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",o.selNode.userPersona===o.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",o.selNode.userPersona===o.userPersonaEnum.MERCHANT))},directives:[ft.xw,ft.Wh,Bt.O5,h.Il,Bt.sg,h.DX,ft.yH,e.BN,g.a8,g.dn,Bt.mk,Y.oO,S.pW,Bt.RF,Bt.n9,R,X,SA,Gi,Dr],styles:[""]}),i})();function Fr(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let qr=(()=>{class i{constructor(t){this.router=t,this.faUserCheck=f.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Fr,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faUserCheck),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,wt.BU,Bt.sg,wt.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),i})();var Yr=Ut(9122);function Ua(i,M){if(1&i&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let r0=(()=>{class i{constructor(t,o){this.store=t,this.clnEffects=o,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,ht._E)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,PA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Yr.n}}}))},0)})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(tn.J))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),A.NdJ("ngModelChange",function(wA){return o.selectedAddressType=wA}),A.YNc(4,Ua,2,2,"mat-option",4),A.qZA()(),A.TgZ(5,"div",5)(6,"button",6),A.NdJ("click",function(){return o.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA()()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",o.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",o.addressTypes))},directives:[ft.xw,ft.Wh,P.KE,ft.yH,QA.gD,HA.JJ,HA.On,Bt.sg,CA.ey,w.lW],styles:[""]}),i})(),$i=(()=>{class i{constructor(t,o){this.store=t,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.activatedRoute.data.pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:this.sweepAll,component:Cr}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(Vt.gz))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.openSendFundsModal()}),A._uU(3),A.qZA()()()),2&t&&(A.xp6(3),A.Oqu(o.sweepAll?"Sweep All":"Send Funds"))},directives:[ft.xw,ft.yH,ft.Wh,w.lW],styles:[""]}),i})();var bn=Ut(8675),ni=Ut(4004),Tr=Ut(1079),Hi=Ut(9843);const _r=["form"];function a0(i,M){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function Ar(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Pa(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function o0(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,a0,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,Ar,2,0,"mat-error",17),A.YNc(7,Pa,2,0,"mat-error",17),A.qZA()}if(2&i){const t=A.MAs(3),o=A.oxw();A.xp6(1),A.Q6J("formControl",o.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",o.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,o.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==o.selectedPeer.errors?null:o.selectedPeer.errors.notfound)}}function s0(i,M){1&i&&A.GkF(0)}function l0(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function c0(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function g0(i,M){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function B0(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function u0(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",43)(1,"input",44,45),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().customFeeRate=T}),A.qZA(),A.YNc(3,B0,2,0,"mat-error",17),A.qZA()}if(2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function f0(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function h0(i,M){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function E0(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",22)(1,"mat-form-field",46)(2,"mat-select",47),A.NdJ("selectionChange",function(T){return A.CHM(t),A.oxw().onUTXOSelectionChange(T)})("valueChange",function(T){return A.CHM(t),A.oxw().selUTXOs=T}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,h0,3,4,"mat-option",26),A.qZA()(),A.TgZ(7,"div",28)(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().flgUseAllBalance=T})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(9," Use selected UTXOs balance "),A.qZA(),A.TgZ(10,"mat-icon",49),A._uU(11,"info_outline"),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(2),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function w0(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function C0(i,M){if(1&i&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,w0,2,1,"span",17),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function Q0(i,M){if(1&i&&(A.TgZ(0,"mat-expansion-panel",53)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",54),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",55),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",56),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",57),A.TgZ(15,"div",0)(16,"div",58)(17,"h4",55),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",59),A._uU(20),A.qZA()(),A.TgZ(21,"div",58)(22,"h4",55),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",59),A._uU(25),A.qZA()()()()()),2&i){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),A.xp6(7),A.Oqu(t.peer.id),A.xp6(7),A.Oqu(null==t.peer?null:t.peer.netaddr),A.xp6(5),A.Oqu(t.peer.connected?"True":"False")}}function Sr(i,M){if(1&i&&A.YNc(0,Q0,26,4,"mat-expansion-panel",52),2&i){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const Ie=function(i,M){return{"mr-6":i,"mr-2":M}};let ie=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.dialogRef=t,this.data=o,this.store=T,this.actions=wA,this.decimalPipe=nt,this.commonService=Dt,this.selectedPeer=new HA.NI,this.faExclamationTriangle=f.eHv,this.isCompatibleVersion=!1,this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.isCompatibleVersion=!1,this.information={},this.totalBalance=0,this.utxos=[],this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.actions.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(T=>T.type===a.AB.UPDATE_API_CALL_STATUS_CLN||T.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(T=>{T.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&T.payload.status===a.Bn.ERROR&&"SaveNewChannel"===T.payload.action&&(this.channelConnectionError=T.payload.message),T.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",o="";this.sortedPeers=this.peers.sort((T,wA)=>(t=T.alias?T.alias.toLowerCase():T.id?T.id.toLowerCase():"",o=wA.alias?wA.alias.toLowerCase():T.id?T.id.toLowerCase():"",to?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,r.R)(this.unSubs[1]),(0,bn.O)(""),(0,ni.U)(T=>"string"==typeof T?T:T.alias?T.alias:T.id),(0,ni.U)(T=>T?this.filterPeers(T):this.sortedPeers.slice()))}filterPeers(t){var o;return null===(o=this.sortedPeers)||void 0===o?void 0:o.filter(T=>{var wA;return 0===(null===(wA=T.alias)||void 0===wA?void 0:wA.toLowerCase().indexOf(t?t.toLowerCase():""))})}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){var t;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const o=null===(t=this.peers)||void 0===t?void 0:t.filter(T=>{var wA,nt;return(null===(wA=T.alias)||void 0===wA?void 0:wA.length)===this.selectedPeer.value.length&&0===(null===(nt=T.alias)||void 0===nt?void 0:nt.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===o.length&&o[0].id&&(this.selectedPubkey=o[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){var o;t&&(this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length)?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+(this.customFeeRate?this.customFeeRate+" (Sats/vByte)":null===(o=this.feeRateTypes.find(T=>T.feeRateId===this.selFeeRate))||void 0===o?void 0:o.feeRateType)),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options"}onUTXOSelectionChange(t){var o;this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=null===(o=this.selUTXOs)||void 0===o?void 0:o.reduce((T,wA)=>T+(wA.value||0),0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;const t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};t.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(o=>t.utxos.push(o.txid+":"+o.output))),this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Tt.eX),A.Y36(Bt.JJ),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,o){if(1&t&&A.Gf(_r,7),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first)}},decls:56,vars:34,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","54","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","42","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","54","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["tabindex","7","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","before",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.NdJ("submit",function(){return o.onOpenChannel()})("reset",function(){return o.resetData()}),A.TgZ(11,"div",9),A.YNc(12,o0,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,s0,1,0,"ng-container",11),A.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),A.NdJ("ngModelChange",function(wA){return o.fundingAmount=wA}),A.qZA(),A.TgZ(19,"mat-hint"),A._uU(20),A.ALo(21,"number"),A.qZA(),A.TgZ(22,"span",16),A._uU(23," Sats "),A.qZA(),A.YNc(24,l0,2,0,"mat-error",17),A.YNc(25,c0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18)(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(wA){return o.isPrivate=wA}),A._uU(28,"Private Channel"),A.qZA()()(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return o.onAdvancedPanelToggle(!0)})("opened",function(){return o.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),A._uU(33),A.qZA()()(),A.TgZ(34,"div",21)(35,"div",22)(36,"div",23)(37,"mat-form-field",24)(38,"mat-select",25),A.NdJ("valueChange",function(wA){return o.selFeeRate=wA})("selectionChange",function(){return o.customFeeRate=null}),A.YNc(39,g0,2,2,"mat-option",26),A.qZA()(),A.YNc(40,u0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28)(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(wA){return o.flgMinConf=wA})("change",function(){return o.flgMinConf?o.selFeeRate=null:o.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30)(44,"input",31,32),A.NdJ("ngModelChange",function(wA){return o.minConfValue=wA}),A.qZA(),A.YNc(46,f0,2,0,"mat-error",17),A.qZA()()(),A.YNc(47,E0,12,8,"div",33),A.qZA()()(),A.YNc(48,C0,3,2,"div",34),A.TgZ(49,"div",35)(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA()()()()()(),A.YNc(54,Sr,1,1,"ng-template",null,38,A.W1O)),2&t){const T=A.MAs(18),wA=A.MAs(55);A.xp6(5),A.Oqu(o.alertTitle),A.xp6(7),A.Q6J("ngIf",!o.peer&&o.peers&&o.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",wA),A.xp6(4),A.Q6J("ngModel",o.fundingAmount)("step",1e3)("min",1)("max",o.totalBalance)("disabled",o.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,o.totalBalance-(o.fundingAmount?o.fundingAmount:0)),"",o.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==T.errors?null:T.errors.required)||!o.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.max),A.xp6(2),A.Q6J("ngModel",o.isPrivate),A.xp6(6),A.Oqu(o.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==o.selFeeRate||o.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",o.selFeeRate)("disabled",o.flgMinConf),A.xp6(1),A.Q6J("ngForOf",o.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===o.selFeeRate&&!o.flgMinConf),A.xp6(2),A.Q6J("ngModel",o.flgMinConf)("ngClass",A.WLB(31,Ie,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM,o.screenSize===o.screenSizeEnum.MD||o.screenSize===o.screenSizeEnum.LG||o.screenSize===o.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",o.minConfValue)("step",1)("min",0)("required",o.flgMinConf)("disabled",!o.flgMinConf),A.xp6(2),A.Q6J("ngIf",o.flgMinConf&&!o.minConfValue),A.xp6(1),A.Q6J("ngIf",o.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,HA._Y,HA.JL,HA.F,Bt.O5,P.KE,H.Nt,HA.Fj,Tr.ZL,HA.Q7,HA.JJ,HA.oH,Tr.XC,Bt.sg,CA.ey,P.TO,Bt.tP,HA.wV,HA.qQ,HA.Fd,z.q,Hi.F,HA.On,P.bx,P.R9,RA.Rr,ci.ib,ci.yz,ci.yK,QA.gD,$A.oG,Bt.mk,Y.oO,QA.$L,m.Hw,eA.gM,e.BN,k.h,sA.d],pipes:[Bt.Ov,Bt.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),i})();function d0(i,M){if(1&i&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function Ra(i,M){if(1&i&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let tr=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.store=o,this.commonService=T,this.router=wA,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(t=>t instanceof Vt.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(o=>o.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(B.OL).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.Wi).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(B.T4).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{var o;this.utxos=this.commonService.sortAscByKey(null===(o=t.utxos)||void 0===o?void 0:o.filter(T=>"confirmed"===T.status),"value")}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{this.openChannels=t.activeChannels.length||0,this.pendingChannels=t.pendingChannels.length+t.inactiveChannels.length||0,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:ie}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channels-tables"]],decls:12,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(wA){return o.activeLink=wA})("selectedTabChange",function(wA){return o.onSelectedTabChange(wA)}),A.TgZ(6,"mat-tab"),A.YNc(7,d0,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Ra,2,1,"ng-template",5),A.qZA()(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",o.activeLink))},directives:[ft.xw,ft.yH,ft.Wh,w.lW,wt.SP,wt.uX,wt.uD,jr.k,Vt.lC],styles:[""]}),i})();function La(i,M){if(1&i&&(A.TgZ(0,"div")(1,"div",9)(2,"div",1)(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA()()(),A._UZ(7,"mat-divider",13),A.qZA()),2&i){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function p0(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function M0(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function ba(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(T){return A.CHM(t),A.oxw().onCopyChanID(T)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function m0(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw().onClose()}),A._uU(1,"OK"),A.qZA()}}const wn=function(i){return{"xs-scroll-y":i}},$r=function(i,M){return{"mt-2":i,"mt-1":M}};let Aa=(()=>{class i{constructor(t,o,T,wA,nt){this.dialogRef=t,this.data=o,this.logger=T,this.commonService=wA,this.snackBar=nt,this.faReceipt=f.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(E.mQ),A.Y36(C.v),A.Y36(Ri.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-information"]],decls:94,vars:40,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA()(),A.TgZ(7,"button",6),A.NdJ("click",function(){return o.onClose()}),A._uU(8,"X"),A.qZA()(),A.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",10)(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA()()(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA()()(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA()()(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9)(38,"div",14)(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA()(),A.TgZ(44,"div",14)(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA()(),A.TgZ(50,"div",14)(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA()(),A.TgZ(56,"div",14)(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA()()(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9)(63,"div",14)(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA()(),A.TgZ(69,"div",14)(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA()(),A.TgZ(75,"div",14)(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA()(),A.TgZ(80,"div",14)(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA()()(),A._UZ(85,"mat-divider",13),A.YNc(86,La,8,2,"div",16),A.TgZ(87,"div",17)(88,"button",18),A.NdJ("click",function(){return o.onShowAdvanced()}),A.YNc(89,p0,2,0,"p",19),A.YNc(90,M0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,ba,2,1,"button",21),A.YNc(93,m0,2,0,"button",22),A.qZA()()()()()),2&t){const T=A.MAs(91);A.xp6(4),A.Q6J("icon",o.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,wn,o.screenSize===o.screenSizeEnum.XS)),A.xp6(7),A.Oqu(o.channel.short_channel_id),A.xp6(5),A.Oqu(o.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(o.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(o.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,o.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,o.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,o.channel.msatoshi_total)),A.xp6(6),A.Oqu(o.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,o.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,o.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(o.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(o.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",o.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,$r,!o.showAdvanced,o.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!o.showAdvanced)("ngIfElse",T),A.xp6(3),A.Q6J("ngIf",o.showCopy),A.xp6(1),A.Q6J("ngIf",!o.showCopy)}},directives:[ft.xw,ft.Wh,ft.yH,g.dk,e.BN,w.lW,g.dn,Bt.mk,Y.oO,sA.d,Bt.O5,k.h,qi.y],pipes:[Bt.JJ],styles:[""]}),i})();function Nr(i,M){1&i&&A._UZ(0,"mat-progress-bar",33)}function I0(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Yi(i,M){if(1&i&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function ii(i,M){if(1&i&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const ri=function(i){return{"max-width":i}};function Bi(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"div",36),A.YNc(2,Yi,2,1,"span",37),A.YNc(3,ii,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,ri,o.screenSize===o.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(1),A.Q6J("ngIf",t.private),A.xp6(1),A.Q6J("ngIf",!t.private),A.xp6(2),A.Oqu(null==t?null:t.short_channel_id)}}function v0(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function D0(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"div",36)(2,"span",39),A._uU(3),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ri,o.screenSize===o.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function y0(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function Ur(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function x0(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function za(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function F0(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function Y0(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function pe(i,M){1&i&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function Ga(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function T0(i,M){1&i&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function S0(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function Ha(i,M){1&i&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function N0(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function U0(i,M){1&i&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function P0(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Ja(i,M){1&i&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Pr(i,M){if(1&i&&(A.TgZ(0,"td",46)(1,"div",47)(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA()(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&i){const t=M.$implicit;A.xp6(3),A.Oqu(A.lcZ(4,2,t.balancedness||0)),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function Oa(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA()()()()}}function R0(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",54)(1,"div",55)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw().onChannelClick(nt,T)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(wA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(wA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onChannelClose(wA)}),A._uU(11,"Close Channel"),A.qZA()()()()}}function L0(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function b0(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function z0(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function G0(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function H0(i,M){if(1&i&&(A.TgZ(0,"td",57),A.YNc(1,L0,2,0,"p",58),A.YNc(2,b0,2,0,"p",58),A.YNc(3,z0,2,0,"p",58),A.YNc(4,G0,2,1,"p",58),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const J0=function(i){return{"display-none":i}};function Rr(i,M){if(1&i&&A._UZ(0,"tr",59),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,J0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function O0(i,M){1&i&&A._UZ(0,"tr",60)}function ta(i,M){1&i&&A._UZ(0,"tr",61)}const ka=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},k0=function(){return["no_peer"]};let er=(()=>{class i{constructor(t,o,T,wA,nt,Dt){var Ht,be,$e,ee,Ve,mi,kn,Br;this.logger=t,this.store=o,this.rtlEffects=T,this.clnEffects=wA,this.commonService=nt,this.router=Dt,this.faEye=f.Mdf,this.faEyeSlash=f.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"]),this.selFilter=(null===(ee=null===($e=null===(be=null===(Ht=this.router)||void 0===Ht?void 0:Ht.getCurrentNavigation())||void 0===be?void 0:be.extras)||void 0===$e?void 0:$e.state)||void 0===ee?void 0:ee.filter)?null===(Br=null===(kn=null===(mi=null===(Ve=this.router)||void 0===Ve?void 0:Ve.getCurrentNavigation())||void 0===mi?void 0:mi.extras)||void 0===kn?void 0:kn.state)||void 0===Br?void 0:Br.filter:""}ngOnInit(){this.store.select(B.jK).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=t.activeChannels,this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id||"",showError:!0}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(o=>{if(0===o.length)return!1;let T={};T=o[0].source!==this.information.id?o[0]:o[1];const wA=[[{key:"base_fee_millisatoshi",value:T.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:T.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:T.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],nt="Remote policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id);setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:nt,message:wA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[1])).subscribe(T=>{T&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:T[0].inputValue,feeRate:T[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,PA.q)(1)).subscribe(o=>{this.myChanPolicy=o.length>0&&o[0].source===this.information.id?{fee_base_msat:o[0].base_fee_millisatoshi,fee_rate_milli_msat:o[0].fee_per_millionth}:o.length>1&&o[1].source===this.information.id?{fee_base_msat:o[1].base_fee_millisatoshi,fee_rate_milli_msat:o[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const T="Update fee policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),wA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:wA,titleMessage:T,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48,hintFunction:this.percentHintFunction}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[2])).subscribe(o=>{o&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,ht.BL)({payload:{id:t.id||"",channelId:t.channel_id||"",force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Aa}}}))}loadChannelsTable(t){t.sort((o,T)=>o.active===T.active?0:T.active?1:-1),this.channels=new mA.by([...t]),this.channels.filterPredicate=(o,T)=>((o.connected?"connected":"disconnected")+(o.channel_id?o.channel_id.toLowerCase():"")+(o.short_channel_id?o.short_channel_id.toLowerCase():"")+(o.id?o.id.toLowerCase():"")+(o.alias?o.alias.toLowerCase():"")+(o.private?"private":"public")+(o.state?o.state.toLowerCase():"")+(o.funding_txid?o.funding_txid.toLowerCase():"")+(o.msatoshi_to_us?o.msatoshi_to_us:"")+(o.msatoshi_total?o.msatoshi_total:"")+(o.their_channel_reserve_satoshis?o.their_channel_reserve_satoshis:"")+(o.our_channel_reserve_satoshis?o.our_channel_reserve_satoshis:"")+(o.spendable_msatoshi?o.spendable_msatoshi:"")).includes(T),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(tn.J),A.Y36(C.v),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:48,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.YNc(5,Nr,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,I0,2,0,"th",10),A.YNc(11,Bi,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,v0,2,0,"th",10),A.YNc(14,D0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,y0,2,0,"th",10),A.YNc(17,Ur,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,x0,2,0,"th",10),A.YNc(20,za,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,F0,2,0,"th",10),A.YNc(23,Y0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,pe,2,0,"th",17),A.YNc(26,Ga,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,T0,2,0,"th",17),A.YNc(29,S0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,Ha,2,0,"th",17),A.YNc(32,N0,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,U0,2,0,"th",17),A.YNc(35,P0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Ja,2,0,"th",22),A.YNc(38,Pr,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Oa,8,0,"th",25),A.YNc(41,R0,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,H0,5,4,"td",28),A.BQk(),A.YNc(44,Rr,1,3,"tr",29),A.YNc(45,O0,1,0,"tr",30),A.YNc(46,ta,1,0,"tr",31),A.qZA()(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(1),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",o.channels)("ngClass",A.VKq(11,ka,""!==o.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,k0)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,Bt.O5,S.pW,q.$V,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,eA.gM,e.BN,P.bx,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),i})();const Cn=["outputIdx"];function Lr(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function ja(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function j0(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function K0(i,M){if(1&i&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let V0=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.actions=t,this.dialogRef=o,this.data=T,this.store=wA,this.logger=nt,this.snackBar=Dt,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=f.kZ_,this.faInfoCircle=f.sqG,this.faExclamationTriangle=f.eHv,this.bumpFeeError="",this.unSubs=[new c.x,new c.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.bumpFeeChannel=this.data.channel}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,ht._E)({payload:a._t[0]})),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,PA.q)(1)).subscribe(t=>{this.store.dispatch((0,ht.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:(1e3*+(this.fees||0)).toString(),utxos:[this.bumpFeeChannel.funding_txid+":"+(this.outputIndex||"").toString()]}}))}),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,PA.q)(1)).subscribe(t=>{this.store.dispatch((0,kA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN),(0,r.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===a.Bn.ERROR&&("SetChannelTransaction"===t.payload.action||"GenerateNewAddress"===t.payload.action)&&(this.logger.error(t.payload.message),this.bumpFeeError=t.payload.message)})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Tt.eX),A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Ri.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,o){if(1&t&&A.Gf(Cn,5),2&t){let T;A.iGM(T=A.CRH())&&(o.payReq=T.first)}},decls:47,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","49"],["autoFocus","","matInput","","placeholder","Output Index","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Bump Fee"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(wA){return o.onCopyID(wA)}),A.qZA()(),A.TgZ(14,"div",11)(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA()()(),A.TgZ(31,"div",16)(32,"mat-form-field",17)(33,"input",18,19),A.NdJ("ngModelChange",function(wA){return o.outputIndex=wA}),A.qZA(),A.YNc(35,Lr,2,0,"mat-error",20),A.YNc(36,ja,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17)(38,"input",21,22),A.NdJ("ngModelChange",function(wA){return o.fees=wA}),A.qZA(),A.YNc(40,j0,2,0,"mat-error",20),A.qZA()(),A.YNc(41,K0,4,2,"div",23),A.qZA()(),A.TgZ(42,"div",24)(43,"button",25),A.NdJ("click",function(){return o.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return o.onBumpFee()}),A._uU(46),A.qZA()()()()()()),2&t){const T=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==o.bumpFeeChannel?null:o.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",o.faCopy)("payload",null==o.bumpFeeChannel?null:o.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",o.faInfoCircle),A.xp6(17),A.Q6J("ngModel",o.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==T.errors?null:T.errors.required),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",o.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!o.fees),A.xp6(1),A.Q6J("ngIf",""!==o.bumpFeeError),A.xp6(5),A.Oqu(""!==o.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,HA._Y,HA.JL,HA.F,e.BN,P.R9,qi.y,eA.gM,P.KE,H.Nt,HA.wV,HA.qQ,HA.Fj,z.q,k.h,HA.Q7,HA.JJ,HA.On,Bt.O5,P.TO],styles:[""]}),i})();function W0(i,M){1&i&&A._UZ(0,"mat-progress-bar",30)}function Z0(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function X0(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function q0(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function _0(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function Ka(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function $0(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Al(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function tl(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function ui(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const el=function(i){return{"max-width":i}};function br(i,M){if(1&i&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,el,o.screenSize===o.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",o.CLNChannelPendingState[null==t?null:t.state]," ")}}function nl(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function il(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function rl(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Va(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function al(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function ol(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function sl(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",36)(1,"div",37)(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function ll(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onChannelClose(T)}),A._uU(1,"Close Channel"),A.qZA()}}function Wa(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onBumpFee(T)}),A._uU(1,"Bump Fee"),A.qZA()}}function cl(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",40)(1,"div",37)(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw().onChannelClick(nt,T)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,ll,2,0,"mat-option",42),A.YNc(7,Wa,2,0,"mat-option",42),A.qZA()()()}if(2&i){const t=M.$implicit,o=A.oxw();A.xp6(6),A.Q6J("ngIf",o.isCompatibleVersion&&("CHANNELD_SHUTTING_DOWN"===t.state||"CLOSINGD_SIGEXCHANGE"===t.state||!t.connected&&"CHANNELD_NORMAL"===t.state)),A.xp6(1),A.Q6J("ngIf","CHANNELD_AWAITING_LOCKIN"===t.state)}}function Za(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Xa(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function qa(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function gl(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Bl(i,M){if(1&i&&(A.TgZ(0,"td",43),A.YNc(1,Za,2,0,"p",44),A.YNc(2,Xa,2,0,"p",44),A.YNc(3,qa,2,0,"p",44),A.YNc(4,gl,2,1,"p",44),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ul=function(i){return{"display-none":i}};function fl(i,M){if(1&i&&A._UZ(0,"tr",45),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ul,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function hl(i,M){1&i&&A._UZ(0,"tr",46)}function _a(i,M){1&i&&A._UZ(0,"tr",47)}const El=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},wl=function(){return["no_peer"]};let Cl=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.store=o,this.rtlEffects=T,this.commonService=wA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.CLNChannelPendingState=a.Zs,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select(B.jK).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t)}),this.store.select(B.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((o,T)=>this.CLNChannelPendingState[o.state||""]>=this.CLNChannelPendingState[T.state||""]?1:-1),this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onBumpFee(t){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,component:V0}}}))}onChannelClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Aa}}}))}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[2])).subscribe(o=>{o&&this.store.dispatch((0,ht.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((o,T)=>o.active===T.active?0:T.active?1:-1),this.channels=new mA.by([...t]),this.channels.filterPredicate=(o,T)=>((o.connected?"connected":"disconnected")+(o.channel_id?o.channel_id.toLowerCase():"")+(o.short_channel_id?o.short_channel_id.toLowerCase():"")+(o.id?o.id.toLowerCase():"")+(o.alias?o.alias.toLowerCase():"")+(o.private?"private":"public")+(o.state&&this.CLNChannelPendingState[o.state]?this.CLNChannelPendingState[o.state].toLowerCase():"")+(o.funding_txid?o.funding_txid.toLowerCase():"")+(o.msatoshi_to_us?o.msatoshi_to_us:"")+(o.msatoshi_total?o.msatoshi_total:"")+(o.their_channel_reserve_satoshis?o.their_channel_reserve_satoshis:"")+(o.our_channel_reserve_satoshis?o.our_channel_reserve_satoshis:"")+(o.spendable_msatoshi?o.spendable_msatoshi:"")).includes(T),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,T)=>"state"===T?this.CLNChannelPendingState[o.state]:o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Channels")}])],decls:42,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.YNc(5,W0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,Z0,2,0,"th",10),A.YNc(11,X0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,q0,2,0,"th",10),A.YNc(14,_0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,Ka,2,0,"th",10),A.YNc(17,$0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Al,2,0,"th",10),A.YNc(20,tl,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,ui,2,0,"th",10),A.YNc(23,br,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,nl,2,0,"th",18),A.YNc(26,il,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,rl,2,0,"th",18),A.YNc(29,Va,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,al,2,0,"th",18),A.YNc(32,ol,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,sl,6,0,"th",22),A.YNc(35,cl,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,Bl,5,4,"td",25),A.BQk(),A.YNc(38,fl,1,3,"tr",26),A.YNc(39,hl,1,0,"tr",27),A.YNc(40,_a,1,0,"tr",28),A.qZA()(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(1),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",o.channels)("ngClass",A.VKq(11,El,""!==o.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,wl)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,ft.yH,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,Bt.O5,S.pW,q.$V,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();const Ql=["peersForm"],dl=["stepper"];function pl(i,M){if(1&i&&A._uU(0),2&i){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function $a(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function Ao(i,M){if(1&i&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function Ml(i,M){if(1&i&&A._uU(0),2&i){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function ml(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Il(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function cn(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function Ti(i,M){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function vl(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function to(i,M){if(1&i&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,vl,2,0,"mat-error",14),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.channelFormGroup.controls.selFeeRate.value&&!t.channelFormGroup.controls.flgMinConf.value&&!t.channelFormGroup.controls.customFeeRate.value)}}function Dl(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function yl(i,M){if(1&i&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const eo=function(i,M){return{"mr-6":i,"mr-2":M}};let xl=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht){this.dialogRef=t,this.data=o,this.store=T,this.formBuilder=wA,this.actions=nt,this.logger=Dt,this.commonService=Ht,this.faExclamationTriangle=f.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=a.vn,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[HA.kI.required]],peerAddress:[this.peerAddress,[HA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[HA.kI.required,HA.kI.min(1),HA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[HA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{t?(this.channelFormGroup.controls.selFeeRate.setValue(null),this.channelFormGroup.controls.selFeeRate.disable(),this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.minConfValue.reset(),this.channelFormGroup.controls.minConfValue.enable(),this.channelFormGroup.controls.minConfValue.setValidators([HA.kI.required])):(this.channelFormGroup.controls.selFeeRate.enable(),this.channelFormGroup.controls.minConfValue.setValue(null),this.channelFormGroup.controls.minConfValue.disable(),this.channelFormGroup.controls.minConfValue.setValidators(null))}),this.channelFormGroup.controls.selFeeRate.valueChanges.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.channelFormGroup.controls.flgMinConf.value?null:[HA.kI.required])}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.NEWLY_ADDED_PEER_CLN||t.type===a.AB.FETCH_CHANNELS_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.NEWLY_ADDED_PEER_CLN&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close(),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,ht.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var t;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,ht.YX)({payload:{peerId:null===(t=this.newlyAddedPeer)||void 0===t?void 0:t.id,satoshis:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:"customperkb"===this.channelFormGroup.controls.selFeeRate.value&&!this.channelFormGroup.controls.flgMinConf.value&&this.channelFormGroup.controls.customFeeRate.value?1e3*this.channelFormGroup.controls.customFeeRate.value+"perkb":this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){var o,T,wA,nt,Dt;switch(t.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.alias)?this.newlyAddedPeer.alias:null===(T=this.newlyAddedPeer)||void 0===T?void 0:T.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(wA=this.newlyAddedPeer)||void 0===wA?void 0:wA.alias)?null===(nt=this.newlyAddedPeer)||void 0===nt?void 0:nt.alias:null===(Dt=this.newlyAddedPeer)||void 0===Dt?void 0:Dt.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}t.selectedIndex{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(HA.qu),A.Y36(Tt.eX),A.Y36(E.mQ),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,o){if(1&t&&(A.Gf(Ql,5),A.Gf(dl,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first),A.iGM(T=A.CRH())&&(o.stepper=T.first)}},decls:57,vars:30,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup","ngSubmit"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix","",1,"ml-1"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","35","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["mat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(wA){return o.stepSelectionChanged(wA)}),A.TgZ(12,"mat-step",10)(13,"form",11),A.YNc(14,pl,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,$a,2,0,"mat-error",14),A.qZA(),A.YNc(18,Ao,4,2,"div",15),A.TgZ(19,"div",16)(20,"button",17),A.NdJ("click",function(){return o.onConnectPeer()}),A._uU(21),A.qZA()()()(),A.TgZ(22,"mat-step",10)(23,"form",18),A.NdJ("ngSubmit",function(){return o.onOpenChannel()}),A.YNc(24,Ml,1,1,"ng-template",19),A.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,ml,2,0,"mat-error",14),A.YNc(34,Il,2,0,"mat-error",14),A.YNc(35,cn,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25)(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA()()(),A.TgZ(39,"div",27)(40,"div",28)(41,"mat-form-field",29)(42,"mat-select",30),A.YNc(43,Ti,2,2,"mat-option",31),A.qZA()(),A.YNc(44,to,3,3,"mat-form-field",32),A.qZA(),A.TgZ(45,"div",33),A._UZ(46,"mat-checkbox",34),A.TgZ(47,"mat-form-field",35),A._UZ(48,"input",36),A.YNc(49,Dl,2,0,"mat-error",14),A.qZA()()()(),A.YNc(50,yl,4,2,"div",15),A.TgZ(51,"div",16)(52,"button",37),A._uU(53),A.qZA()()()()(),A.TgZ(54,"div",38)(55,"button",39),A._uU(56),A.qZA()()()()()()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",o.peerFormGroup)("editable",o.flgEditable),A.xp6(1),A.Q6J("formGroup",o.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==o.peerConnectionError),A.xp6(3),A.Oqu(""!==o.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",o.channelFormGroup)("editable",o.flgEditable),A.xp6(1),A.Q6J("formGroup",o.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==o.channelFormGroup.controls.selFeeRate.value||o.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",o.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===o.channelFormGroup.controls.selFeeRate.value&&!o.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,eo,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM,o.screenSize===o.screenSizeEnum.MD||o.screenSize===o.screenSizeEnum.LG||o.screenSize===o.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",o.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",o.channelFormGroup.controls.flgMinConf.value&&!o.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==o.channelConnectionError),A.xp6(3),A.Oqu(""!==o.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=o.newlyAddedPeer&&o.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,Di.Vq,Di.C0,HA._Y,HA.JL,HA.sg,Di.VY,P.KE,H.Nt,HA.Fj,k.h,HA.JJ,HA.u,HA.Q7,Bt.O5,P.TO,e.BN,HA.wV,P.bx,P.R9,RA.Rr,QA.gD,Bt.sg,CA.ey,HA.qQ,z.q,$A.oG,Bt.mk,Y.oO,dt.ZT],styles:[""]}),i})();function Fl(i,M){1&i&&A._UZ(0,"mat-progress-bar",32)}function no(i,M){1&i&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const io=function(i){return{"mr-0":i}};function Si(i,M){if(1&i&&A._UZ(0,"span",37),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,io,t.screenSize===t.screenSizeEnum.XS))}}function Yl(i,M){if(1&i&&A._UZ(0,"span",38),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,io,t.screenSize===t.screenSizeEnum.XS))}}const ea=function(i){return{"max-width":i}};function Tl(i,M){if(1&i&&(A.TgZ(0,"td",34),A.YNc(1,Si,1,3,"span",35),A.YNc(2,Yl,1,3,"span",36),A._uU(3),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(4,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.Q6J("ngIf",null==t?null:t.connected),A.xp6(1),A.Q6J("ngIf",!(null!=t&&t.connected)),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function Sl(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function ro(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function na(i,M){1&i&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function ai(i,M){1&i&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function Nl(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,ai,3,0,"span",42),A.qZA()),2&i){const t=M.$implicit,o=M.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!o)}}function Ul(i,M){if(1&i&&(A.TgZ(0,"td",34),A.YNc(1,Nl,3,2,"span",41),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(2,ea,o.screenSize===o.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Pl(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",43)(1,"div",44)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Rl(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onPeerDetach(T)}),A._uU(1,"Disconnect"),A.qZA()}}function jl(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onConnectPeer(T)}),A._uU(1,"Reconnect"),A.qZA()}}function Ll(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",47)(1,"div",48)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw().onPeerClick(nt,T)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(wA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Rl,2,0,"mat-option",49),A.YNc(9,jl,2,0,"mat-option",49),A.qZA()()()}if(2&i){const t=M.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function bl(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function zl(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Gl(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ao(i,M){if(1&i&&(A.TgZ(0,"td",50),A.YNc(1,bl,2,0,"p",42),A.YNc(2,zl,2,0,"p",42),A.YNc(3,Gl,2,1,"p",42),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Hl=function(i){return{"display-none":i}};function tA(i,M){if(1&i&&A._UZ(0,"tr",51),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Hl,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function G(i,M){1&i&&A._UZ(0,"tr",52)}function V(i,M){1&i&&A._UZ(0,"tr",53)}const p=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},x=function(){return["no_peer"]};let L=(()=>{class i{constructor(t,o,T,wA,nt){this.logger=t,this.store=o,this.rtlEffects=T,this.actions=wA,this.commonService=nt,this.faUsers=f.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(B.Ao).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(B.Wi).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=t.peers||[],this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.SET_PEERS_CLN)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(t){this.store.dispatch((0,kA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:xl}}}))}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:ie}}}))}onPeerDetach(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[3])).subscribe(T=>{T&&this.store.dispatch((0,ht.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new mA.by([...t]),this.peers.sortingDataAccessor=(o,T)=>{if("netaddr"===T){if(o.netaddr&&o.netaddr[0]){const wA=o.netaddr[0].toString().split(".");return wA[0]?+wA[0]:o.netaddr[0]}return""}return o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(o,T)=>JSON.stringify(o).toLowerCase().includes(T),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(yA.V),A.Y36(Tt.eX),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}])],decls:36,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30","fxFlex.gt-xs","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),A.NdJ("click",function(){return o.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA()(),A.TgZ(5,"div",4)(6,"div",5)(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA()(),A.TgZ(11,"mat-form-field",9)(12,"div",10)(13,"input",11),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()()(),A.TgZ(14,"div",12),A.YNc(15,Fl,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,no,2,0,"th",17),A.YNc(20,Tl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,Sl,2,0,"th",20),A.YNc(23,ro,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,na,2,0,"th",17),A.YNc(26,Ul,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Pl,6,0,"th",24),A.YNc(29,Ll,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,ao,4,3,"td",27),A.BQk(),A.YNc(32,tA,1,3,"tr",28),A.YNc(33,G,1,0,"tr",29),A.YNc(34,V,1,0,"tr",30),A.qZA()(),A._UZ(35,"mat-paginator",31),A.qZA()()),2&t&&(A.xp6(8),A.Q6J("icon",o.faUsers),A.xp6(5),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.peers)("ngClass",A.VKq(12,p,""!==o.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,x)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,HA._Y,HA.JL,HA.F,w.lW,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,eA.gM,Bt.sg,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const AA=["queryRoutesForm"];function aA(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function rA(i,M){1&i&&A._UZ(0,"mat-progress-bar",38)}function NA(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function jA(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function ct(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function _A(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function ut(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function Mt(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function yt(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function Jt(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function te(i,M){1&i&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function Ae(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function se(i,M){1&i&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function fe(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Qe(i,M){1&i&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function de(i,M){if(1&i&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function Oe(i,M){1&i&&(A.TgZ(0,"th",45)(1,"span",42),A._uU(2,"Actions"),A.qZA()())}function gn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",46),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw().onHopClick(nt,T)}),A._uU(2,"View Info"),A.qZA()()}}function ke(i,M){1&i&&A._UZ(0,"tr",47)}function ge(i,M){1&i&&A._UZ(0,"tr",48)}const Bn=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}};let qe=(()=>{class i{constructor(t,o,T){this.store=t,this.clnEffects=o,this.commonService=T,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=f.FpQ,this.faExclamationTriangle=f.eHv,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clnEffects.setQueryRoutesCL.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new mA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new mA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,ht.WO)({payload:{destPubkey:this.destinationPubkey,amount:1e3*this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:a.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:a.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:a.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:a.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:a.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:a.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(tn.J),A.Y36(C.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(AA,7)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.form=T.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,o){if(1&t){const T=A.EpF();A.TgZ(0,"div",0)(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(T),A.MAs(2).form.valid&&o.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA()(),A.TgZ(7,"mat-form-field",5)(8,"input",6,7),A.NdJ("ngModelChange",function(nt){return o.destinationPubkey=nt}),A.qZA(),A.YNc(10,aA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(nt){return o.amount=nt}),A.qZA(),A.YNc(13,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11)(15,"button",12),A.NdJ("click",function(){return o.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA()()(),A.TgZ(19,"div",14)(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA()()(),A.TgZ(24,"div",18),A.YNc(25,rA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,NA,2,0,"th",23),A.YNc(30,jA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,ct,2,0,"th",23),A.YNc(33,_A,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,ut,2,0,"th",23),A.YNc(36,Mt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,yt,2,0,"th",23),A.YNc(39,Jt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,te,2,0,"th",29),A.YNc(42,Ae,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,se,2,0,"th",29),A.YNc(45,fe,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,Qe,2,0,"th",32),A.YNc(48,de,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,Oe,3,0,"th",35),A.YNc(51,gn,3,0,"td",33),A.BQk(),A.YNc(52,ke,1,0,"tr",36),A.YNc(53,ge,1,0,"tr",37),A.qZA()()()}2&t&&(A.xp6(4),A.Q6J("icon",o.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",o.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!o.destinationPubkey),A.xp6(2),A.Q6J("ngModel",o.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!o.amount),A.xp6(8),A.Q6J("icon",o.faRoute),A.xp6(4),A.Q6J("ngIf",!0===o.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",o.qrHops)("ngClass",A.VKq(14,Bn,"error"===o.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns))},directives:[ft.xw,ft.yH,HA._Y,HA.JL,HA.F,ft.Wh,e.BN,P.KE,H.Nt,HA.Fj,HA.Q7,HA.JJ,HA.On,Bt.O5,P.TO,HA.wV,HA.qQ,z.q,w.lW,q.$V,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,mA.as,mA.XQ,mA.nj,mA.Gk],pipes:[Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function je(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let we=(()=>{class i{constructor(t,o,T){this.dataService=t,this.snackBar=o,this.logger=T,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new c.x,new c.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(LA.D),A.Y36(Ri.ux),A.Y36(E.mQ))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(wA){return o.message=wA})("keyup",function(){return o.onMessageChange()}),A.qZA(),A.YNc(5,je,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6)(7,"button",7),A.NdJ("click",function(){return o.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return o.onSign()}),A._uU(10,"Sign"),A.qZA()(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10)(13,"p"),A._uU(14,"Generated Signature"),A.qZA()(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12)(18,"button",13),A.NdJ("copied",function(wA){return o.onCopyField(wA)}),A._uU(19,"Copy Signature"),A.qZA()()()()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.message),A.xp6(1),A.Q6J("ngIf",!o.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(o.signature),A.xp6(2),A.Q6J("payload",o.signature))},directives:[ft.xw,ft.yH,ft.Wh,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,k.h,HA.Q7,HA.JJ,HA.On,Bt.O5,P.TO,w.lW,sA.d,qi.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function en(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function Re(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Te(i,M){1&i&&(A.TgZ(0,"p",13)(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function rn(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function zn(i,M){if(1&i&&(A.TgZ(0,"div",20)(1,"p"),A._uU(2),A.qZA()()),2&i){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function fn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",21)(1,"button",22),A.NdJ("copied",function(T){return A.CHM(t),A.oxw(2).onCopyField(T)}),A._uU(2,"Copy Pubkey"),A.qZA()()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function In(i,M){if(1&i&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,rn,2,0,"p",5),A.qZA(),A.YNc(4,zn,3,1,"div",18),A.YNc(5,fn,3,1,"div",19),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(2),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified)}}let On=(()=>{class i{constructor(t,o,T){this.dataService=t,this.snackBar=o,this.logger=T,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new c.x,new c.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(LA.D),A.Y36(Ri.ux),A.Y36(E.mQ))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(wA){return o.message=wA})("keyup",function(){return o.onChange()}),A.qZA(),A.YNc(5,en,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3)(7,"input",6,7),A.NdJ("ngModelChange",function(wA){return o.signature=wA})("keyup",function(){return o.onChange()}),A.qZA(),A.YNc(9,Re,2,0,"mat-error",5),A.qZA(),A.YNc(10,Te,4,0,"p",8),A.TgZ(11,"div",9)(12,"button",10),A.NdJ("click",function(){return o.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return o.onVerify()}),A._uU(15,"Verify"),A.qZA()(),A.YNc(16,In,6,4,"div",12),A.qZA()()),2&t&&(A.xp6(4),A.Q6J("ngModel",o.message),A.xp6(1),A.Q6J("ngIf",!o.message),A.xp6(2),A.Q6J("ngModel",o.signature),A.xp6(2),A.Q6J("ngIf",!o.signature),A.xp6(1),A.Q6J("ngIf",o.showVerifyStatus&&!o.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",o.showVerifyStatus&&o.verifyRes.verified))},directives:[ft.xw,ft.yH,ft.Wh,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,k.h,HA.Q7,HA.JJ,HA.On,Bt.O5,P.TO,m.Hw,w.lW,sA.d,qi.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function Kn(i,M){if(1&i&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Dn(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8)(3,"input",9),A.NdJ("ngModelChange",function(T){return A.CHM(t),A.oxw().filterValue=T})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function pn(i,M){1&i&&A._UZ(0,"mat-progress-bar",33)}function Vn(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function Wn(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function ve(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function Le(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Se(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function _e(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function Ke(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function hn(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function ia(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function Gn(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function ra(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function aa(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Jl(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Ol(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function zr(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function nr(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function oa(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Gr(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(T){const nt=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(nt,T)}),A._uU(2,"View Info"),A.qZA()()}}function Hr(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function ir(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function rr(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ar(i,M){if(1&i&&(A.TgZ(0,"td",44),A.YNc(1,Hr,2,0,"p",45),A.YNc(2,ir,2,0,"p",45),A.YNc(3,rr,2,1,"p",45),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const or=function(i){return{"display-none":i}};function sr(i,M){if(1&i&&A._UZ(0,"tr",46),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,or,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function lr(i,M){1&i&&A._UZ(0,"tr",47)}function cr(i,M){1&i&&A._UZ(0,"tr",48)}const gr=function(){return["no_event"]};function Mi(i,M){if(1&i&&(A.TgZ(0,"div",10),A.YNc(1,pn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Vn,2,0,"th",15),A.YNc(6,Wn,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,ve,2,0,"th",15),A.YNc(9,Le,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Se,2,0,"th",15),A.YNc(12,_e,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Ke,2,0,"th",15),A.YNc(15,hn,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,ia,2,0,"th",15),A.YNc(18,Gn,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,ra,2,0,"th",22),A.YNc(21,aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,Jl,2,0,"th",22),A.YNc(24,Ol,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,zr,2,0,"th",22),A.YNc(27,nr,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,oa,6,0,"th",26),A.YNc(30,Gr,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,ar,4,3,"td",29),A.BQk(),A.YNc(33,sr,1,3,"tr",30),A.YNc(34,lr,1,0,"tr",31),A.YNc(35,cr,1,0,"tr",32),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.forwardingHistoryEvents),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(6,gr)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function oo(i,M){if(1&i&&A._UZ(0,"mat-paginator",49),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let sa=(()=>{class i{constructor(t,o,T,wA,nt){this.logger=t,this.commonService=o,this.store=T,this.datePipe=wA,this.router=nt,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.totalForwardedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.pipe((0,PA.q)(1)).subscribe(t=>{var o;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(o=t.cln.forwardingHistory.listForwards)||void 0===o?void 0:o.length)&&this.store.dispatch((0,ht.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(B.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData.length<=0&&t.forwardingHistory.listForwards&&(this.totalForwardedTransactions=t.forwardingHistory.totalForwards||0,this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,o){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:a.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:a.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:a.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new mA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.forwardingHistoryEvents.filterPredicate=(o,T)=>{var wA,nt;return((o.received_time?(null===(wA=this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase())+" ":"")+(o.resolved_time?(null===(nt=this.datePipe.transform(new Date(1e3*o.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===nt?void 0:nt.toLowerCase())+" ":"")+(o.in_channel?o.in_channel.toLowerCase()+" ":"")+(o.out_channel?o.out_channel.toLowerCase()+" ":"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase()+" ":"")+(o.out_channel_alias?o.out_channel_alias.toLowerCase()+" ":"")+(o.in_msatoshi?o.in_msatoshi/1e3+" ":"")+(o.out_msatoshi?o.out_msatoshi/1e3+" ":"")+(o.fee?o.fee+" ":"")).includes(T)},this.forwardingHistoryEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Kn,2,1,"div",1),A.YNc(2,Dn,4,1,"div",2),A.YNc(3,Mi,36,7,"div",3),A.YNc(4,oo,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,S.pW,mA.BZ,tt.YE,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,QA.gD,QA.$L,CA.ey,w.lW,mA.mD,mA.yh,mA.Ke,mA.Q2,Bt.mk,Y.oO,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();function so(i,M){if(1&i&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function lo(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",6)(1,"div",7),A._UZ(2,"fa-icon",8),A.TgZ(3,"span"),A._uU(4,"Maximum 1,000 failed transactions only."),A.qZA()(),A.TgZ(5,"div",9),A._UZ(6,"div",10),A.TgZ(7,"mat-form-field",11)(8,"input",12),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().selFilter=T}),A.qZA()()()()}if(2&i){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.faExclamationTriangle),A.xp6(6),A.Q6J("ngModel",t.selFilter)}}function la(i,M){1&i&&A._UZ(0,"mat-progress-bar",35)}function ec(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Received Time"),A.qZA())}function nc(i,M){if(1&i&&(A.TgZ(0,"td",37),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function ic(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Resolved Time"),A.qZA())}function rc(i,M){if(1&i&&(A.TgZ(0,"td",37),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function ac(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"In Channel"),A.qZA())}function oc(i,M){if(1&i&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function sc(i,M){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Out Channel"),A.qZA())}function lc(i,M){if(1&i&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function cc(i,M){1&i&&(A.TgZ(0,"th",38),A._uU(1,"Amount In (Sats)"),A.qZA())}function gc(i,M){if(1&i&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Bc(i,M){1&i&&(A.TgZ(0,"th",38),A._uU(1,"Amount Out (Sats)"),A.qZA())}function uc(i,M){if(1&i&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function fc(i,M){1&i&&(A.TgZ(0,"th",38),A._uU(1,"Fee (mSats)"),A.qZA())}function hc(i,M){if(1&i&&(A.TgZ(0,"td",37)(1,"span",39),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function Ec(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",40)(1,"div",41)(2,"mat-select",42),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",43),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function wc(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",45),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(wA)}),A._uU(2,"View Info"),A.qZA()()}}function Cc(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function Qc(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function dc(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function pc(i,M){if(1&i&&(A.TgZ(0,"td",46),A.YNc(1,Cc,2,0,"p",47),A.YNc(2,Qc,2,0,"p",47),A.YNc(3,dc,2,1,"p",47),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Mc=function(i){return{"display-none":i}};function mc(i,M){if(1&i&&A._UZ(0,"tr",48),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Mc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function Ic(i,M){1&i&&A._UZ(0,"tr",49)}function vc(i,M){1&i&&A._UZ(0,"tr",50)}const Dc=function(){return["no_event"]};function yc(i,M){if(1&i&&(A.TgZ(0,"div",13),A.YNc(1,la,1,0,"mat-progress-bar",14),A.TgZ(2,"table",15,16),A.ynx(4,17),A.YNc(5,ec,2,0,"th",18),A.YNc(6,nc,3,4,"td",19),A.BQk(),A.ynx(7,20),A.YNc(8,ic,2,0,"th",18),A.YNc(9,rc,3,4,"td",19),A.BQk(),A.ynx(10,21),A.YNc(11,ac,2,0,"th",18),A.YNc(12,oc,2,1,"td",19),A.BQk(),A.ynx(13,22),A.YNc(14,sc,2,0,"th",18),A.YNc(15,lc,2,1,"td",19),A.BQk(),A.ynx(16,23),A.YNc(17,cc,2,0,"th",24),A.YNc(18,gc,4,4,"td",19),A.BQk(),A.ynx(19,25),A.YNc(20,Bc,2,0,"th",24),A.YNc(21,uc,4,4,"td",19),A.BQk(),A.ynx(22,26),A.YNc(23,fc,2,0,"th",24),A.YNc(24,hc,4,4,"td",19),A.BQk(),A.ynx(25,27),A.YNc(26,Ec,6,0,"th",28),A.YNc(27,wc,3,0,"td",29),A.BQk(),A.ynx(28,30),A.YNc(29,pc,4,3,"td",31),A.BQk(),A.YNc(30,mc,1,3,"tr",32),A.YNc(31,Ic,1,0,"tr",33),A.YNc(32,vc,1,0,"tr",34),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedForwardingEvents),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(6,Dc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function xc(i,M){if(1&i&&A._UZ(0,"mat-paginator",51),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Fc=(()=>{class i{constructor(t,o,T,wA,nt){this.logger=t,this.commonService=o,this.store=T,this.datePipe=wA,this.router=nt,this.faExclamationTriangle=f.eHv,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.totalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","out_channel","in_msatoshi","out_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ht.u0)({payload:{status:a.OO.FAILED}})),this.store.select(B.xQ).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalFailedTransactions=t.failedForwardingHistory.totalForwards||0,this.failedEvents=t.failedForwardingHistory.listForwards||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(t){const o=[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel_alias",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:33,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Amount Out (mSats)",width:33,type:a.Gi.NUMBER},{key:"fee",value:t.fee,title:"Fee (mSats)",width:34,type:a.Gi.NUMBER}]];t.payment_hash&&(null==o||o.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}])),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Failed Event Information",message:o}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new mA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.failedForwardingEvents.filterPredicate=(o,T)=>{var wA;const nt=(o.received_time?this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(o.resolved_time?null===(wA=this.datePipe.transform(new Date(1e3*o.resolved_time),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase():"")+(o.payment_hash?o.payment_hash.toLowerCase():"")+(o.in_channel?o.in_channel.toLowerCase():"")+(o.out_channel?o.out_channel.toLowerCase():"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase():"")+(o.out_channel_alias?o.out_channel_alias.toLowerCase():"")+(o.in_msatoshi?o.in_msatoshi/1e3:"")+(o.out_msatoshi?o.out_msatoshi/1e3:"")+(o.fee?o.fee:"");return(null==nt?void 0:nt.includes(T))||!1},this.failedForwardingEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.failedForwardingEvents)}onDownloadCSV(){this.failedForwardingEvents&&this.failedForwardingEvents.data&&this.failedForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedForwardingEvents.data,"Failed-transactions")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,so,2,1,"div",1),A.YNc(2,lo,9,2,"div",2),A.YNc(3,yc,33,7,"div",3),A.YNc(4,xc,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,S.pW,mA.BZ,tt.YE,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,QA.gD,QA.$L,CA.ey,w.lW,mA.mD,mA.yh,mA.Ke,mA.Q2,Bt.mk,Y.oO,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const Yc=["tableIn"],Tc=["tableOut"],Sc=["paginatorIn"],Nc=["paginatorOut"];function Uc(i,M){if(1&i&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Pc(i,M){1&i&&A._UZ(0,"mat-progress-bar",36)}function Rc(i,M){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const co=function(i){return{"max-width":i}};function Lc(i,M){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function bc(i,M){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function zc(i,M){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Gc(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Hc(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Jc(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Oc(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function kc(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function jc(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function Kc(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function Vc(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function Wc(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Zc(i,M){if(1&i&&(A.TgZ(0,"td",42),A.YNc(1,Kc,2,0,"p",43),A.YNc(2,Vc,2,0,"p",43),A.YNc(3,Wc,2,1,"p",43),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Kl=function(i){return{"display-none":i}};function Xc(i,M){if(1&i&&A._UZ(0,"tr",44),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function qc(i,M){1&i&&A._UZ(0,"tr",45)}function _c(i,M){1&i&&A._UZ(0,"tr",46)}function $c(i,M){1&i&&A._UZ(0,"mat-progress-bar",36)}function Ag(i,M){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function tg(i,M){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function eg(i,M){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function ng(i,M){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,co,o.screenSize===o.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function ig(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function rg(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function ag(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function og(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function sg(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function lg(i,M){if(1&i&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function cg(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function gg(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function Bg(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ug(i,M){if(1&i&&(A.TgZ(0,"td",42),A.YNc(1,cg,2,0,"p",43),A.YNc(2,gg,2,0,"p",43),A.YNc(3,Bg,2,1,"p",43),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function fg(i,M){if(1&i&&A._UZ(0,"tr",44),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function hg(i,M){1&i&&A._UZ(0,"tr",45)}function Eg(i,M){1&i&&A._UZ(0,"tr",46)}const wg=function(i,M){return{"mt-2":i,"mt-1":M}},Cg=function(){return["no_incoming_event"]},Qg=function(i){return{"mt-2":i}},dg=function(){return["no_outgoing_event"]};function pg(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8)(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().filterIn=T}),A.qZA()()(),A.TgZ(7,"div",10),A.YNc(8,Pc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,Rc,2,0,"th",15),A.YNc(13,Lc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,bc,2,0,"th",15),A.YNc(16,zc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Gc,2,0,"th",19),A.YNc(19,Hc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Jc,2,0,"th",19),A.YNc(22,Oc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,kc,2,0,"th",19),A.YNc(25,jc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Zc,4,3,"td",24),A.BQk(),A.YNc(28,Xc,1,3,"tr",25),A.YNc(29,qc,1,0,"tr",26),A.YNc(30,_c,1,0,"tr",27),A.qZA()(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30)(34,"div",6)(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8)(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().filterOut=T}),A.qZA()()(),A.TgZ(39,"div",31),A.YNc(40,$c,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,Ag,2,0,"th",15),A.YNc(45,tg,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,eg,2,0,"th",15),A.YNc(48,ng,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,ig,2,0,"th",19),A.YNc(51,rg,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,ag,2,0,"th",19),A.YNc(54,og,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,sg,2,0,"th",19),A.YNc(57,lg,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,ug,4,3,"td",24),A.BQk(),A.YNc(60,fg,1,3,"tr",25),A.YNc(61,hg,1,0,"tr",26),A.YNc(62,Eg,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA()()()}if(2&i){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,wg,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),A.xp6(4),A.Q6J("ngModel",t.filterIn),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersIncoming),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(25,Cg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),A.xp6(3),A.Q6J("ngClass",A.VKq(26,Qg,t.screenSize!==t.screenSizeEnum.LG)),A.xp6(4),A.Q6J("ngModel",t.filterOut),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersOutgoing),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(28,dg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let Mg=(()=>{class i{constructor(t,o,T){this.logger=t,this.commonService=o,this.store=T,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_amount","total_fee"]):(this.flgSticky=!0,this.displayedColumns=["channel_id","alias","events","total_amount","total_fee"])}ngOnInit(){this.store.select(B.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}loadRoutingPeersTable(t){if(t.length>0){const o=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new mA.by(o[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(T,wA)=>JSON.stringify(T).toLowerCase().includes(wA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new mA.by(o[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(T,wA)=>JSON.stringify(T).toLowerCase().includes(wA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new mA.by([]),this.RoutingPeersOutgoing=new mA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const o=[],T=[];return t.forEach(wA=>{const nt=null==o?void 0:o.find(Ht=>Ht.channel_id===wA.in_channel),Dt=null==T?void 0:T.find(Ht=>Ht.channel_id===wA.out_channel);nt?(nt.events++,nt.total_amount=+nt.total_amount+ +(wA.in_msatoshi||0),nt.total_fee=(wA.in_msatoshi||0)-(wA.out_msatoshi||0)+ +nt.total_fee):o.push({channel_id:wA.in_channel,alias:wA.in_channel_alias,events:1,total_amount:wA.in_msatoshi,total_fee:(wA.in_msatoshi||0)-(wA.out_msatoshi||0)}),Dt?(Dt.events++,Dt.total_amount=+Dt.total_amount+ +(wA.out_msatoshi||0),Dt.total_fee=(wA.in_msatoshi||0)-(wA.out_msatoshi||0)+ +Dt.total_fee):T.push({channel_id:wA.out_channel,alias:wA.out_channel_alias,events:1,total_amount:wA.out_msatoshi,total_fee:(wA.in_msatoshi||0)-(wA.out_msatoshi||0)})}),[this.commonService.sortDescByKey(o,"total_fee"),this.commonService.sortDescByKey(T,"total_fee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(Yc,5,tt.YE),A.Gf(Tc,5,tt.YE),A.Gf(Sc,5),A.Gf(Nc,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sortIn=T.first),A.iGM(T=A.CRH())&&(o.sortOut=T.first),A.iGM(T=A.CRH())&&(o.paginatorIn=T.first),A.iGM(T=A.CRH())&&(o.paginatorOut=T.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}]),A.TTD],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","total_fee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Uc,2,1,"div",1),A.YNc(2,pg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,Bt.mk,Y.oO,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,S.pW,mA.BZ,tt.YE,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function mg(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ig=(()=>{class i{constructor(t){this.router=t,this.faChartBar=f.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,mg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faChartBar),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,wt.BU,Bt.sg,wt.Nj,Vt.rH,Vt.lC],styles:[""]}),i})();var Vl=Ut(7772),Wl=Ut(7671),Zl=Ut(1210);function vg(i,M){1&i&&(A.TgZ(0,"div",14),A._UZ(1,"mat-progress-bar",15),A.TgZ(2,"p"),A._uU(3,"Getting Forwarding History..."),A.qZA()())}function Dg(i,M){if(1&i&&(A.TgZ(0,"div",16),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function yg(i,M){if(1&i&&(A.TgZ(0,"div",17),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=A.oxw();A.Q6J("@fadeIn",t.totalFeeMsat),A.xp6(1),A.AsE("",A.xi3(2,3,t.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.lcZ(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function xg(i,M){1&i&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function Fg(i,M){if(1&i&&(A.TgZ(0,"span")(1,"span",20),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",20),A._uU(5),A.ALo(6,"number"),A.qZA()()),2&i){const t=M.model,o=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(o.selReportBy===o.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(o.selReportBy===o.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function Yg(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(T){return A.CHM(t),A.oxw().onChartBarSelected(T)})("mouseup",function(T){return A.CHM(t),A.oxw().onChartMouseUp(T)}),A.YNc(1,Fg,7,7,"ng-template",null,19,A.W1O),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Tg(i,M){if(1&i&&A._UZ(0,"rtl-cln-forwarding-history",21),2&i){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let Sg=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.commonService=o,this.store=T,this.dataService=wA,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=a.Xr,this.selReportBy=a.Xr.FEES,this.totalFeeMsat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.pipe((0,PA.q)(1)).subscribe(t=>{var o;t.cln.apisCallStatus.FetchForwardingHistoryS.status===a.Bn.UN_INITIATED&&!(null===(o=t.cln.forwardingHistory.listForwards)||void 0===o?void 0:o.length)&&this.store.dispatch((0,ht.u0)({payload:{status:a.OO.SETTLED}}))}),this.store.select(B.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{t.forwardingHistory.status===a.OO.SETTLED&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR?this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:"":this.apiCallStatus.status===a.Bn.COMPLETED&&(this.events=t.forwardingHistory.listForwards||[],this.filterForwardingEvents(this.startDate,this.endDate)),this.logger.info(t))}),this.commonService.containerSizeUpdated.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(t,o){const T=Math.round(t.getTime()/1e3),wA=Math.round(o.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(nt=>{nt.received_time&&nt.received_time>=T&&nt.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===a.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){var o,T;const wA=Math.round(t.getTime()/1e3),nt=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let Dt=0;Dt<12;Dt++)nt.push({name:a.gg[Dt].name,value:0,extra:{totalEvents:0}});null===(o=this.filteredEventsBySelectedPeriod)||void 0===o||o.map(Dt=>{const Ht=Dt.received_time?new Date(1e3*+Dt.received_time).getMonth():12;return nt[Ht].value=Dt.fee?nt[Ht].value+ +Dt.fee/1e3:nt[Ht].value,nt[Ht].extra.totalEvents=nt[Ht].extra.totalEvents+1,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let Dt=0;Dt{const Ht=Dt.received_time?Math.floor((+Dt.received_time-wA)/this.secondsInADay):0;return nt[Ht].value=Dt.fee?nt[Ht].value+ +Dt.fee/1e3:nt[Ht].value,nt[Ht].extra.totalEvents=nt[Ht].extra.totalEvents+1,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return nt}prepareEventsReport(t){var o,T;const wA=Math.round(t.getTime()/1e3),nt=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let Dt=0;Dt<12;Dt++)nt.push({name:a.gg[Dt].name,value:0,extra:{totalFees:0}});null===(o=this.filteredEventsBySelectedPeriod)||void 0===o||o.map(Dt=>{const Ht=Dt.received_time?new Date(1e3*+Dt.received_time).getMonth():12;return nt[Ht].value=nt[Ht].value+1,nt[Ht].extra.totalFees=Dt.fee?nt[Ht].extra.totalFees+ +Dt.fee/1e3:nt[Ht].extra.totalFees,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}else{for(let Dt=0;Dt{const Ht=Dt.received_time?Math.floor((+Dt.received_time-wA)/this.secondsInADay):0;return nt[Ht].value=nt[Ht].value+1,nt[Ht].extra.totalFees=Dt.fee?nt[Ht].extra.totalFees+ +Dt.fee/1e3:nt[Ht].extra.totalFees,this.totalFeeMsat=Dt.fee?(this.totalFeeMsat?this.totalFeeMsat:0)+ +Dt.fee:this.totalFeeMsat,this.filteredEventsBySelectedPeriod})}return nt}onSelectionChange(t){const o=t.selDate.getMonth(),T=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(T,0,1,0,0,0),this.endDate=new Date(T,11,31,23,59,59)):(this.startDate=new Date(T,o,1,0,0,0),this.endDate=new Date(T,o,this.getMonthDays(o,T),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,o){return 1===t&&o%4==0?a.gg[t].days+1:a.gg[t].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(LA.D))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,o){1&t&&A.NdJ("mouseup",function(wA){return o.onChartMouseUp(wA)})},decls:19,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1 error-border",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["mode","indeterminate"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1","error-border"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(wA){return o.onSelectionChange(wA)}),A.qZA(),A.TgZ(2,"div",2)(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(wA){return o.selReportBy=wA})("change",function(){return o.onSelReportByChange()}),A.TgZ(4,"span",4),A._uU(5,"Report By: "),A.qZA(),A.TgZ(6,"mat-radio-button",5),A._uU(7,"Fees"),A.qZA(),A.TgZ(8,"mat-radio-button",6),A._uU(9,"Events"),A.qZA()()(),A.TgZ(10,"div",7),A.YNc(11,vg,4,0,"div",8),A.YNc(12,Dg,2,1,"div",9),A.YNc(13,yg,4,8,"div",10),A.YNc(14,xg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,Yg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,Tg,1,2,"rtl-cln-forwarding-history",13),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",o.selReportBy),A.xp6(3),A.s9C("value",o.reportBy.FEES),A.xp6(2),A.s9C("value",o.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.COMPLETED&&o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.COMPLETED&&(o.routingReportData.length<=0||o.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",o.filteredEventsBySelectedPeriod&&o.filteredEventsBySelectedPeriod.length>0))},directives:[ft.xw,ft.Wh,ft.yH,Wl.D,JA.VQ,HA.JJ,HA.On,JA.U0,Bt.O5,S.pW,Zl.K$,sa],pipes:[Bt.JJ],styles:[""],data:{animation:[Vl.J]}}),i})();var Ng=Ut(165);function Ug(i,M){if(1&i&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.AsE(" Paid ",A.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Pg(i,M){if(1&i&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.AsE(" Received ",A.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Rg(i,M){if(1&i&&(A.TgZ(0,"div",8),A.YNc(1,Ug,4,7,"div",9),A.YNc(2,Pg,4,7,"div",9),A.qZA()),2&i){const t=A.oxw();A.Q6J("@fadeIn",t.transactionsReportSummary),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function Lg(i,M){1&i&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function bg(i,M){if(1&i&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=M.model;A.xp6(1),A.HOy("",t.name,": ",A.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",A.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function zg(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(T){return A.CHM(t),A.oxw().onChartBarSelected(T)})("mouseup",function(T){return A.CHM(t),A.oxw().onChartMouseUp(T)}),A.YNc(1,bg,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Gg(i,M){if(1&i&&A._UZ(0,"rtl-transactions-report-table",15),2&i){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Hg=(()=>{class i{constructor(t,o,T){this.logger=t,this.commonService=o,this.store=T,this.scrollRanges=a.op,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(B.PP).pipe((0,r.R)(this.unSubs[0]),(0,s.M)(this.store.select(B.gc))).subscribe(([t,o])=>{this.payments=t.payments,this.invoices=o.listInvoices.invoices||[],this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===a.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,o){var T,wA;const nt=Math.round(t.getTime()/1e3),Dt=Math.round(o.getTime()/1e3),Ht=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const be=null===(T=this.payments)||void 0===T?void 0:T.filter(ee=>"complete"===ee.status&&ee.created_at&&ee.created_at>=nt&&ee.created_at"paid"===ee.status&&ee.paid_at&&ee.paid_at>=nt&&ee.paid_at{const Ve=new Date(1e3*(ee.created_at||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(ee.msatoshi_sent||0),Ht[Ve].series[0].value=Ht[Ve].series[0].value+(ee.msatoshi_sent||0)/1e3,Ht[Ve].series[0].extra.total=Ht[Ve].series[0].extra.total+1,this.transactionsReportSummary}),null==$e||$e.map(ee=>{const Ve=new Date(1e3*+(ee.paid_at||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(ee.msatoshi_received||0),Ht[Ve].series[1].value=Ht[Ve].series[1].value+(ee.msatoshi_received||0)/1e3,Ht[Ve].series[1].extra.total=Ht[Ve].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let ee=0;ee{const Ve=Math.floor((+(ee.created_at||0)-nt)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(ee.msatoshi_sent||0),Ht[Ve].series[0].value=Ht[Ve].series[0].value+(ee.msatoshi_sent||0)/1e3,Ht[Ve].series[0].extra.total=Ht[Ve].series[0].extra.total+1,this.transactionsReportSummary}),null==$e||$e.map(ee=>{const Ve=Math.floor((+(ee.paid_at||0)-nt)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(ee.msatoshi_received||0),Ht[Ve].series[1].value=Ht[Ve].series[1].value+(ee.msatoshi_received||0)/1e3,Ht[Ve].series[1].extra.total=Ht[Ve].series[1].extra.total+1,this.transactionsReportSummary})}return Ht}prepareTableData(){var t;return null===(t=this.transactionsReportData)||void 0===t?void 0:t.reduce((o,T)=>T.series[0].extra.total>0||T.series[1].extra.total>0?o.concat({date:T.date,amount_paid:T.series[0].value,num_payments:T.series[0].extra.total,amount_received:T.series[1].value,num_invoices:T.series[1].extra.total}):o,[])}onSelectionChange(t){const o=t.selDate.getMonth(),T=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(T,0,1,0,0,0),this.endDate=new Date(T,11,31,23,59,59)):(this.startDate=new Date(T,o,1,0,0,0),this.endDate=new Date(T,o,this.getMonthDays(o,T),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,o){return 1===t&&o%4==0?a.gg[t].days+1:a.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,o){1&t&&A.NdJ("mouseup",function(wA){return o.onChartMouseUp(wA)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(wA){return o.onSelectionChange(wA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,Rg,3,3,"div",3),A.YNc(4,Lg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,zg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Gg,1,3,"rtl-transactions-report-table",7),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",o.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",o.transactionsNonZeroReportData.length>0))},directives:[ft.xw,ft.Wh,ft.yH,Wl.D,Bt.O5,Zl.H5,Ng.g],pipes:[Bt.JJ],styles:[""],data:{animation:[Vl.J]}}),i})();var De=Ut(1643),Jg=Ut(9442);function Og(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeLink=wA.link}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let kg=(()=>{class i{constructor(t){this.router=t,this.faSearch=f.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeLink=T?T.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Og,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faSearch),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,wt.BU,Bt.sg,wt.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),i})();var jg=Ut(4641),Kg=Ut(8493);function Vg(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function Wg(i,M){if(1&i&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,Vg,2,1,"span",23),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let Zg=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.dialogRef=t,this.data=o,this.store=T,this.decimalPipe=wA,this.commonService=nt,this.actions=Dt,this.faExclamationTriangle=f.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=a.IV,this.offerError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,ht.dh)({payload:{amount:this.offerValue?this.offerValue+"sats":"any",description:this.description,vendor:this.vendor}}))}resetData(){this.description="",this.vendor=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode&&this.selNode.fiatConversion&&this.offerValue&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-create-offer"]],decls:28,vars:8,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addOfferForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","1","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","offerValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","58","fxLayoutAlign","start end"],["matInput","","placeholder","Vendor","tabindex","3","name","vendor",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","5",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Offer"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(wA){return o.description=wA}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(wA){return o.offerValue=wA})("keyup",function(){return o.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(wA){return o.vendor=wA}),A.qZA()()(),A.YNc(22,Wg,3,2,"div",17),A.TgZ(23,"div",18)(24,"button",19),A.NdJ("click",function(){return o.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return o.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA()()()()()()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",o.description),A.xp6(3),A.Q6J("ngModel",o.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(o.offerValueHint),A.xp6(2),A.Q6J("ngModel",o.vendor),A.xp6(1),A.Q6J("ngIf",""!==o.offerError))},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.Fj,k.h,HA.JJ,HA.On,HA.wV,HA.qQ,z.q,P.R9,P.bx,Bt.O5,e.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var Xl=Ut(1462);function Xg(i,M){1&i&&A._UZ(0,"mat-progress-bar",28)}function qg(i,M){1&i&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const ql=function(i){return{"mr-0":i}};function _g(i,M){if(1&i&&A._UZ(0,"span",35),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ql,t.screenSize===t.screenSizeEnum.XS))}}function $g(i,M){if(1&i&&A._UZ(0,"span",36),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ql,t.screenSize===t.screenSizeEnum.XS))}}const AB=function(i){return{"max-width":i}};function tB(i,M){if(1&i&&(A.TgZ(0,"td",30)(1,"div",31)(2,"span",32),A.YNc(3,_g,1,3,"span",33),A.YNc(4,$g,1,3,"span",34),A._uU(5),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,AB,o.screenSize===o.screenSizeEnum.XS?"25rem":"45rem")),A.xp6(2),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",!t.active),A.xp6(1),A.hij(" ",t.offer_id," ")}}function eB(i,M){1&i&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function nB(i,M){if(1&i&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function iB(i,M){1&i&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function rB(i,M){if(1&i&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function aB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function oB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onDisableOffer(T)}),A._uU(1,"Disable Offer"),A.qZA()}}function sB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onPrintOffer(T)}),A._uU(1,"Export QR code"),A.qZA()}}const lB=function(i){return{"px-3":i}};function cB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",41)(1,"div",42)(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onOfferClick(wA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,oB,2,0,"mat-option",44),A.YNc(7,sB,2,0,"mat-option",44),A.qZA()()()}if(2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngClass",A.VKq(3,lB,o.screenSize!==o.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function gB(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function BB(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function uB(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function fB(i,M){if(1&i&&(A.TgZ(0,"td",45),A.YNc(1,gB,2,0,"p",46),A.YNc(2,BB,2,0,"p",46),A.YNc(3,uB,2,1,"p",46),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const hB=function(i){return{"display-none":i}};function EB(i,M){if(1&i&&A._UZ(0,"tr",47),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,hB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function wB(i,M){1&i&&A._UZ(0,"tr",48)}function CB(i,M){1&i&&A._UZ(0,"tr",49)}const QB=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},dB=function(){return["no_offer"]};let pB=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht){this.logger=t,this.store=o,this.commonService=T,this.rtlEffects=wA,this.dataService=nt,this.decimalPipe=Dt,this.datePipe=Ht,this.faHistory=f.qO$,this.selNode={},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","used","actions"]):(this.flgSticky=!0,this.displayedColumns=["offer_id","single_use","used","actions"])}ngOnInit(){this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(B.ey).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(B.Y_).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offerJSONArr=t.offers||[],this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Zg}}}))}onOfferClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{used:t.used,single_use:t.single_use,active:t.active,offer_id:t.offer_id,bolt12:t.bolt12,bolt12_unsigned:t.bolt12_unsigned},newlyAdded:!1,component:Xl.k}}}))}onDisableOffer(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,ht.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,PA.q)(1)).subscribe(o=>{o.offer_id&&!o.amount_msat?(o.amount_msat="0msat",o.amount=0):o.amount=o.amount?+o.amount:o.amount_msat?+o.amount_msat.slice(0,-4):null;const T={pageSize:"A5",pageOrientation:"portrait",pageMargins:[10,50,10,50],background:{svg:'\n \n \n \n \n \n ',width:249,height:333,absolutePosition:{x:84,y:160}},header:{text:o.vendor||o.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:o.description?o.description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:(null==o?void 0:o.amount_msat)&&0!==(null==o?void 0:o.amount)?this.decimalPipe.transform((o.amount||0)/1e3)+" SATS":"Open amount",fontSize:20,bold:!1,color:"white",alignment:"center",absolutePosition:{x:0,y:430}},{text:"SCAN TO PAY",fontSize:22,bold:!0,color:"white",alignment:"center",absolutePosition:{x:0,y:455}}],footer:{svg:'\n \n \n \n \n ',alignment:"center"}};jg.createPdf(T,null,null,Kg.I.vfs).download("Offer-"+(o&&o.description?o.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new mA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(o,T)=>(("active"===T||"inactive"===T||"used"===T||"unused"===T||"single"===T||"multiple"===T)&&(T=" "+T),((o.active?" active":" inactive")+(o.used?" used":" unused")+(o.single_use?" single":" multiple")+JSON.stringify(o).toLowerCase()).includes(T)),this.offers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(yA.V),A.Y36(LA.D),A.Y36(Bt.JJ),A.Y36(Bt.uU))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offers")}])],decls:34,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["class","dot green","matTooltip","Active","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Inactive","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return o.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA()(),A.TgZ(4,"div",3)(5,"div",4)(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA()(),A.TgZ(10,"mat-form-field",8)(11,"input",9),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.TgZ(12,"div",10),A.YNc(13,Xg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,qg,2,0,"th",15),A.YNc(18,tB,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,eB,2,0,"th",15),A.YNc(21,nB,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,iB,2,0,"th",15),A.YNc(24,rB,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,aB,6,0,"th",20),A.YNc(27,cB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,fB,4,3,"td",23),A.BQk(),A.YNc(30,EB,1,3,"tr",24),A.YNc(31,wB,1,0,"tr",25),A.YNc(32,CB,1,0,"tr",26),A.qZA()(),A._UZ(33,"mat-paginator",27),A.qZA()()),2&t&&(A.xp6(7),A.Q6J("icon",o.faHistory),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.offers)("ngClass",A.VKq(12,QB,""!==o.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,dB)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,w.lW,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,eA.gM,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();function MB(i,M){1&i&&A._UZ(0,"mat-progress-bar",30)}function mB(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function IB(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function vB(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const _l=function(i){return{"max-width":i}};function DB(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,_l,o.screenSize===o.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function yB(i,M){1&i&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function xB(i,M){if(1&i&&(A.TgZ(0,"td",36)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function FB(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function YB(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,_l,o.screenSize===o.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function TB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const SB=function(i){return{"px-3":i}};function NB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",42)(1,"div",43)(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(wA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(wA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(wA)}),A._uU(9,"Delete Bookmark"),A.qZA()()()()}if(2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,SB,t.screenSize!==t.screenSizeEnum.XS))}}function UB(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function PB(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function RB(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function LB(i,M){if(1&i&&(A.TgZ(0,"td",45),A.YNc(1,UB,2,0,"p",46),A.YNc(2,PB,2,0,"p",46),A.YNc(3,RB,2,1,"p",46),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const bB=function(i){return{"display-none":i}};function zB(i,M){if(1&i&&A._UZ(0,"tr",47),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,bB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function GB(i,M){1&i&&A._UZ(0,"tr",48)}function HB(i,M){1&i&&A._UZ(0,"tr",49)}const JB=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},OB=function(){return["no_offer"]};let kB=(()=>{class i{constructor(t,o,T,wA){this.logger=t,this.store=o,this.commonService=T,this.rtlEffects=wA,this.faHistory=f.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"]):(this.flgSticky=!0,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"])}ngOnInit(){this.store.select(B.EQ).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offersBookmarksJSONArr=t.offersBookmarks||[],this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:Xl.k}}}))}onDeleteBookmark(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[1])).subscribe(o=>{o&&this.store.dispatch((0,ht._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,kA.qR)({payload:{data:{paymentType:a.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Yn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new mA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(o,T)=>JSON.stringify(o).toLowerCase().includes(T),this.offersBookmarks.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.v),A.Y36(yA.V))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Offer Bookmarks")}])],decls:35,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","amountmSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2)(3,"div",3)(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA()(),A.TgZ(8,"mat-form-field",7)(9,"input",8),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.TgZ(10,"div",9),A.YNc(11,MB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,mB,2,0,"th",14),A.YNc(16,IB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,vB,2,0,"th",14),A.YNc(19,DB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,yB,2,0,"th",18),A.YNc(22,xB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,FB,2,0,"th",14),A.YNc(25,YB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,TB,6,0,"th",22),A.YNc(28,NB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,LB,4,3,"td",25),A.BQk(),A.YNc(31,zB,1,3,"tr",26),A.YNc(32,GB,1,0,"tr",27),A.YNc(33,HB,1,0,"tr",28),A.qZA()(),A._UZ(34,"mat-paginator",29),A.qZA()()),2&t&&(A.xp6(5),A.Q6J("icon",o.faHistory),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.offersBookmarks)("ngClass",A.VKq(12,JB,""!==o.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,OB)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.yH,ft.Wh,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();function jB(i,M){if(1&i&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function KB(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",6)(1,"div",7),A._UZ(2,"fa-icon",8),A.TgZ(3,"span"),A._uU(4,"Maximum 1,000 local failed transactions only."),A.qZA()(),A.TgZ(5,"div",9),A._UZ(6,"div",10),A.TgZ(7,"mat-form-field",11)(8,"input",12),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(T){return A.CHM(t),A.oxw().selFilter=T}),A.qZA()()()()}if(2&i){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.faExclamationTriangle),A.xp6(6),A.Q6J("ngModel",t.selFilter)}}function VB(i,M){1&i&&A._UZ(0,"mat-progress-bar",34)}function WB(i,M){1&i&&(A.TgZ(0,"th",35),A._uU(1,"Received Time"),A.qZA())}function ZB(i,M){if(1&i&&(A.TgZ(0,"td",36),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function XB(i,M){1&i&&(A.TgZ(0,"th",35),A._uU(1,"In Channel"),A.qZA())}function qB(i,M){if(1&i&&(A.TgZ(0,"td",36),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function _B(i,M){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Amount In (Sats)"),A.qZA())}function $B(i,M){if(1&i&&(A.TgZ(0,"td",36)(1,"span",38),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function Au(i,M){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Fail Reason"),A.qZA())}function tu(i,M){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=M.$implicit,o=A.oxw(2);A.xp6(1),A.Oqu(o.CLNFailReason[null==t?null:t.failreason])}}function eu(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",41)(1,"div",42)(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",44),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function nu(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",45)(1,"button",46),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(wA)}),A._uU(2,"View Info"),A.qZA()()}}function iu(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function ru(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function au(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function ou(i,M){if(1&i&&(A.TgZ(0,"td",47),A.YNc(1,iu,2,0,"p",48),A.YNc(2,ru,2,0,"p",48),A.YNc(3,au,2,1,"p",48),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const su=function(i){return{"display-none":i}};function lu(i,M){if(1&i&&A._UZ(0,"tr",49),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,su,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function cu(i,M){1&i&&A._UZ(0,"tr",50)}function gu(i,M){1&i&&A._UZ(0,"tr",51)}const Bu=function(){return["no_event"]};function uu(i,M){if(1&i&&(A.TgZ(0,"div",13),A.YNc(1,VB,1,0,"mat-progress-bar",14),A.TgZ(2,"table",15,16),A.ynx(4,17),A.YNc(5,WB,2,0,"th",18),A.YNc(6,ZB,3,4,"td",19),A.BQk(),A.ynx(7,20),A.YNc(8,XB,2,0,"th",18),A.YNc(9,qB,2,1,"td",19),A.BQk(),A.ynx(10,21),A.YNc(11,_B,2,0,"th",22),A.YNc(12,$B,4,4,"td",19),A.BQk(),A.ynx(13,23),A.YNc(14,Au,2,0,"th",24),A.YNc(15,tu,2,1,"td",25),A.BQk(),A.ynx(16,26),A.YNc(17,eu,6,0,"th",27),A.YNc(18,nu,3,0,"td",28),A.BQk(),A.ynx(19,29),A.YNc(20,ou,4,3,"td",30),A.BQk(),A.YNc(21,lu,1,3,"tr",31),A.YNc(22,cu,1,0,"tr",32),A.YNc(23,gu,1,0,"tr",33),A.qZA()()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedLocalForwardingEvents),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(6,Bu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function fu(i,M){if(1&i&&A._UZ(0,"mat-paginator",52),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let hu=(()=>{class i{constructor(t,o,T,wA,nt){this.logger=t,this.commonService=o,this.store=T,this.datePipe=wA,this.router=nt,this.faExclamationTriangle=f.eHv,this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.totalLocalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","in_channel","in_msatoshi","failreason","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ht.u0)({payload:{status:a.OO.LOCAL_FAILED}})),this.store.select(B.lK).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalLocalFailedTransactions=t.localFailedForwardingHistory.totalForwards||0,this.failedLocalEvents=t.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents)}onFailedLocalEventClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:100,type:a.Gi.NUMBER}],[{key:"failreason",value:t.failreason?this.CLNFailReason[t.failreason]:"",title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new mA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(o,T)=>{var wA;const nt=(o.received_time?null===(wA=this.datePipe.transform(new Date(1e3*o.received_time),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase():"")+(o.in_channel_alias?o.in_channel_alias.toLowerCase():"")+(o.failreason&&this.CLNFailReason[o.failreason]?this.CLNFailReason[o.failreason].toLowerCase():"")+(o.in_msatoshi?o.in_msatoshi/1e3:"");return(null==nt?void 0:nt.includes(T))||!1},this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(o,T)=>"failreason"===T?o.failreason?this.CLNFailReason[o.failreason]:"":o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.failedLocalForwardingEvents.paginator=this.paginator,this.applyFilter(),this.logger.info(this.failedLocalForwardingEvents)}onDownloadCSV(){this.failedLocalForwardingEvents&&this.failedLocalForwardingEvents.data&&this.failedLocalForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedLocalForwardingEvents.data,"Local-failed-transactions")}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Local failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout.gt-xs","column","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.gt-xs","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","failreason"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A.YNc(1,jB,2,1,"div",1),A.YNc(2,KB,9,2,"div",2),A.YNc(3,uu,24,7,"div",3),A.YNc(4,fu,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,Bt.O5,ft.yH,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,S.pW,mA.BZ,tt.YE,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,QA.gD,QA.$L,CA.ey,w.lW,mA.mD,mA.yh,mA.Ke,mA.Q2,Bt.mk,Y.oO,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const Eu=["form"];function wu(i,M){1&i&&A.GkF(0)}function Cu(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function Qu(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function du(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function pu(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20,000 Sats. It's required to cover the channel force close fee, if needed."),A.qZA())}function Mu(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Local amount must be less than or equal to ",t.totalBalance,".")}}function mu(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function Iu(i,M){if(1&i&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",28),A.YNc(2,mu,2,1,"span",15),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function vu(i,M){1&i&&(A.TgZ(0,"th",48),A._uU(1,"Type"),A.qZA())}function Du(i,M){if(1&i&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function yu(i,M){1&i&&(A.TgZ(0,"th",48),A._uU(1,"Address"),A.qZA())}function xu(i,M){if(1&i&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function Fu(i,M){1&i&&(A.TgZ(0,"th",48),A._uU(1,"Port"),A.qZA())}function Yu(i,M){if(1&i&&(A.TgZ(0,"td",49),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Tu(i,M){1&i&&A._UZ(0,"tr",50)}function Su(i,M){1&i&&A._UZ(0,"tr",51)}function Nu(i,M){if(1&i&&(A.TgZ(0,"mat-expansion-panel",30)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",31),A._uU(6),A.qZA()()(),A.TgZ(7,"div",7)(8,"div",0)(9,"div",1)(10,"h4",32),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",33),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",34),A.TgZ(15,"div",0)(16,"div",1)(17,"h4",32),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",35),A._uU(20),A.ALo(21,"date"),A.qZA()()(),A._UZ(22,"mat-divider",34),A.TgZ(23,"div",36)(24,"h4",37),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",38)(27,"table",39,40),A.ynx(29,41),A.YNc(30,vu,2,0,"th",42),A.YNc(31,Du,2,1,"td",43),A.BQk(),A.ynx(32,44),A.YNc(33,yu,2,0,"th",42),A.YNc(34,xu,2,1,"td",43),A.BQk(),A.ynx(35,45),A.YNc(36,Fu,2,0,"th",42),A.YNc(37,Yu,2,1,"td",43),A.BQk(),A.YNc(38,Tu,1,0,"tr",46),A.YNc(39,Su,1,0,"tr",47),A.qZA()()()()()),2&i){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.node?null:t.node.alias)||(null==t.node?null:t.node.nodeid)),A.xp6(7),A.Oqu(t.node.nodeid),A.xp6(7),A.Oqu(A.xi3(21,6,1e3*t.node.last_timestamp,"dd/MMM/y HH:mm")),A.xp6(7),A.Q6J("dataSource",t.node.addresses),A.xp6(11),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Uu(i,M){if(1&i&&A.YNc(0,Nu,40,9,"mat-expansion-panel",29),2&i){const t=A.oxw();A.Q6J("ngIf",t.node)}}let Pu=(()=>{class i{constructor(t,o,T,wA){this.dialogRef=t,this.data=o,this.actions=T,this.store=wA,this.faExclamationTriangle=f.eHv,this.totalBalance=0,this.node={},this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new c.x,new c.x]}ngOnInit(){var t,o,T,wA,nt;this.alertTitle=this.data.alertTitle||"",this.totalBalance=(null===(t=this.data.message)||void 0===t?void 0:t.balance)||0,this.node=(null===(o=this.data.message)||void 0===o?void 0:o.node)||{},this.requestedAmount=(null===(T=this.data.message)||void 0===T?void 0:T.requestedAmount)||0,this.feeRate=(null===(wA=this.data.message)||void 0===wA?void 0:wA.feeRate)||0,this.localAmount=(null===(nt=this.data.message)||void 0===nt?void 0:nt.localAmount)||0,this.actions.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(Dt=>Dt.type===a.AB.UPDATE_API_CALL_STATUS_CLN||Dt.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(Dt=>{Dt.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&Dt.payload.status===a.Bn.ERROR&&"SaveNewChannel"===Dt.payload.action&&(this.channelConnectionError=Dt.payload.message),Dt.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){var t,o,T;this.form.resetForm(),this.form.controls.ramount.setValue(null===(t=this.data.message)||void 0===t?void 0:t.requestedAmount),this.form.controls.feerate.setValue(null===(o=this.data.message)||void 0===o?void 0:o.feeRate),this.form.controls.lamount.setValue(null===(T=this.data.message)||void 0===T?void 0:T.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){var t,o,T;this.node.channelOpeningFee=+((null===(t=this.node.option_will_fund)||void 0===t?void 0:t.lease_fee_base_msat)||0)/1e3+this.requestedAmount*+((null===(o=this.node.option_will_fund)||void 0===o?void 0:o.lease_fee_basis)||0)/1e4+ +((null===(T=this.node.option_will_fund)||void 0===T?void 0:T.funding_weight)||0)/4*this.feeRate}onOpenChannel(){if(!this.node||!this.node.option_will_fund||!this.requestedAmount||!this.feeRate||!this.localAmount||this.localAmount<2e4)return!0;const t={peerId:this.node.nodeid||"",satoshis:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease,announce:!0};this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(Tt.eX),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,o){if(1&t&&A.Gf(Eu,7),2&t){let T;A.iGM(T=A.CRH())&&(o.form=T.first)}},decls:48,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["form","ngForm"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","placeholder","Requested Amount","type","number","tabindex","1","required","","name","ramount",3,"ngModel","step","min","ngModelChange","keyup"],["ramount","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["matSuffix",""],["matInput","","placeholder","Local Amount","type","number","tabindex","3","required","","name","lamount",3,"ngModel","step","min","max","ngModelChange"],["lamount","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-4"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","4",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","tabindex","5",3,"click"],["nodeDetailsExpansionBlock",""],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel mt-1 mb-2","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","mt-1","mb-2"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"font-bold-500","mb-1"],[1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return o.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.YNc(11,wu,1,0,"ng-container",9),A.TgZ(12,"div",10)(13,"mat-form-field",11)(14,"input",12,13),A.NdJ("ngModelChange",function(wA){return o.requestedAmount=wA})("keyup",function(){return o.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,Cu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11)(20,"input",16,17),A.NdJ("ngModelChange",function(wA){return o.feeRate=wA})("keyup",function(){return o.calculateFee()}),A.qZA(),A.TgZ(22,"span",18),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,Qu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11)(26,"input",19,20),A.NdJ("ngModelChange",function(wA){return o.localAmount=wA}),A.qZA(),A.TgZ(28,"mat-hint"),A._uU(29),A.ALo(30,"number"),A.qZA(),A.TgZ(31,"span",14),A._uU(32," Sats "),A.qZA(),A.YNc(33,du,2,0,"mat-error",15),A.YNc(34,pu,2,0,"mat-error",15),A.YNc(35,Mu,2,1,"mat-error",15),A.qZA()(),A.TgZ(36,"div",21)(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA()(),A.YNc(40,Iu,3,2,"div",22),A.TgZ(41,"div",23)(42,"button",24),A.NdJ("click",function(){return o.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",25),A.NdJ("click",function(){return o.onOpenChannel()}),A._uU(45,"Execute"),A.qZA()()()()()(),A.YNc(46,Uu,1,1,"ng-template",null,26,A.W1O)),2&t){const T=A.MAs(15),wA=A.MAs(21),nt=A.MAs(27),Dt=A.MAs(47);A.xp6(5),A.Oqu(o.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",Dt),A.xp6(3),A.Q6J("ngModel",o.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==T.errors?null:T.errors.required),A.xp6(2),A.Q6J("ngModel",o.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==wA.errors?null:wA.errors.required),A.xp6(2),A.Q6J("ngModel",o.localAmount)("step",1e4)("min",2e4)("max",o.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,o.totalBalance-(o.localAmount?o.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==nt.errors?null:nt.errors.required),A.xp6(1),A.Q6J("ngIf",null==nt.errors?null:nt.errors.min),A.xp6(1),A.Q6J("ngIf",null==nt.errors?null:nt.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,o.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==o.channelConnectionError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,g.dn,HA._Y,HA.JL,HA.F,Bt.tP,P.KE,H.Nt,HA.wV,HA.qQ,HA.Fj,z.q,k.h,HA.Q7,HA.JJ,HA.On,P.R9,Bt.O5,P.TO,HA.Fd,Hi.F,P.bx,e.BN,ci.ib,ci.yz,ci.yK,sA.d,mA.BZ,tt.YE,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,mA.as,mA.XQ,mA.nj,mA.Gk],pipes:[Bt.JJ,Bt.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),i})();var $l=Ut(6688);function Ru(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function Lu(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function bu(i,M){1&i&&A._UZ(0,"mat-progress-bar",44)}function zu(i,M){1&i&&(A.TgZ(0,"th",45),A._uU(1," Alias "),A.qZA())}function Gu(i,M){if(1&i&&(A.TgZ(0,"mat-chip",49),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ","tor"===t?"Tor":"ipv"===t?"Clearnet":t," ")}}const Hu=function(i){return{"max-width":i}};function Ju(i,M){if(1&i&&(A.TgZ(0,"td",46),A._uU(1),A.TgZ(2,"mat-chip-list",47),A.YNc(3,Gu,2,1,"mat-chip",48),A.qZA()()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngStyle",A.VKq(3,Hu,o.screenSize===o.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias," "),A.xp6(2),A.Q6J("ngForOf",t.address_types)}}function Ou(i,M){1&i&&(A.TgZ(0,"th",50),A._uU(1," Capacity/Channels "),A.qZA())}function ku(i,M){if(1&i&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t?null:t.nodeCapacity)/1e8,"1.0-2")," BTC / ",A.xi3(3,5,null==t?null:t.channelCount,"1.0-0")," ")}}function ju(i,M){1&i&&(A.TgZ(0,"th",50),A._uU(1," Lease Fee "),A.qZA())}function Ku(i,M){if(1&i&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function Vu(i,M){1&i&&(A.TgZ(0,"th",50),A._uU(1," Routing Fee "),A.qZA())}function Wu(i,M){if(1&i&&(A.TgZ(0,"td",51),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,1e3*(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function Zu(i,M){1&i&&(A.TgZ(0,"th",52),A._uU(1," Channel Opening Fee "),A.qZA())}function Xu(i,M){if(1&i&&(A.TgZ(0,"td",51)(1,"span",53),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function qu(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",54)(1,"div",55)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",57),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function _u(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",58)(1,"div",59)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",57),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(wA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",57),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(wA)}),A._uU(7,"Open Channel"),A.qZA(),A.TgZ(8,"mat-option",57),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(wA,"LN")}),A._uU(9,"View on Lnrouter"),A.qZA(),A.TgZ(10,"mat-option",57),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(wA,"AM")}),A._uU(11,"View on Amboss"),A.qZA()()()()}}function $u(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function Af(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function tf(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ef(i,M){if(1&i&&(A.TgZ(0,"td",60),A.YNc(1,$u,2,0,"p",15),A.YNc(2,Af,2,0,"p",15),A.YNc(3,tf,2,1,"p",15),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const nf=function(i){return{"display-none":i}};function rf(i,M){if(1&i&&A._UZ(0,"tr",61),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,nf,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function af(i,M){1&i&&A._UZ(0,"tr",62)}function of(i,M){1&i&&A._UZ(0,"tr",63)}const sf=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},lf=function(){return["no_lqNode"]};let cf=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.logger=t,this.store=o,this.dataService=T,this.commonService=wA,this.rtlEffects=nt,this.decimalPipe=Dt,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=f.Acd,this.faExclamationTriangle=f.eHv,this.faUsers=f.FVb,this.totalBalance=0,this.channelAmount=1e5,this.channelOpeningFeeRate=10,this.nodeCapacity=5e5,this.channelCount=5,this.liquidityNodesData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus={status:a.Bn.INITIATED},this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need on the channel opened to your node \n 2. Channel opening fee rate - Rate in Sats/vByte that you are willing to pay to open the channel to you",this.nodesTooltipMsg="These nodes are advertising their liquidity offering on the network.\nYou should pay attention to the following aspects to evaluate each node offer: \n- The total bitcoin deployed on the node, the more the better\n",this.nodesTooltipMsg=this.nodesTooltipMsg+"- The number of channels open on the node, the more the better\n- The channel open fee which the node will charge from you\n- The routing fee which the node will charge on the payments, the lesser the better\n- The reliability of the node, ideally uptime. Refer to the information being provided by the node explorers",this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","channelOpeningFee","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"])}ngOnInit(){(0,Ea.a)([this.store.select(B.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,r.R)(this.unSubs[0])).subscribe({next:([t,o])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance||0,this.logger.info(t),o&&!o.length&&(o=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(o)),this.apiCallStatus.status=a.Bn.COMPLETED,o.forEach(T=>{var wA;T.address_types=Array.from(new Set(null===(wA=T.addresses)||void 0===wA?void 0:wA.reduce((Dt,Ht)=>{var be,$e,ee;return((null===(be=Ht.type)||void 0===be?void 0:be.includes("ipv"))||(null===($e=Ht.type)||void 0===$e?void 0:$e.includes("tor")))&&Dt.push(null===(ee=Ht.type)||void 0===ee?void 0:ee.substring(0,3)),Dt},[])))}),this.liquidityNodesData=o.filter(T=>T.nodeid!==this.information.id),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:t=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(t)),this.apiCallStatus.status=a.Bn.ERROR,this.errorMessage=JSON.stringify(t)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(t=>{t.option_will_fund&&(t.channelOpeningFee=+(t.option_will_fund.lease_fee_base_msat||0)/1e3+this.channelAmount*+(t.option_will_fund.lease_fee_basis||0)/1e4+ +(t.option_will_fund.funding_weight||0)/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}applyFilter(){this.liquidityNodes.filter=this.selFilter.trim().toLowerCase()}loadLiqNodesTable(t){this.liquidityNodes=new mA.by([...t]),this.liquidityNodes.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.liquidityNodes.sort=this.sort,this.liquidityNodes.paginator=this.paginator,this.sort&&this.sort.sort({id:"channelOpeningFee",start:"asc",disableClear:!0}),this.liquidityNodes.filterPredicate=(o,T)=>{var wA,nt,Dt,Ht,be,$e,ee,Ve;return((o.alias?o.alias.toLocaleLowerCase():"")+(o.channelOpeningFee?o.channelOpeningFee+" Sats":"")+((null===(wA=o.option_will_fund)||void 0===wA?void 0:wA.lease_fee_base_msat)?(null===(nt=o.option_will_fund)||void 0===nt?void 0:nt.lease_fee_base_msat)/1e3+" Sats":"")+((null===(Dt=o.option_will_fund)||void 0===Dt?void 0:Dt.lease_fee_basis)?this.decimalPipe.transform((null===(Ht=o.option_will_fund)||void 0===Ht?void 0:Ht.lease_fee_basis)/100,"1.2-2")+"%":"")+((null===(be=o.option_will_fund)||void 0===be?void 0:be.channel_fee_max_base_msat)?(null===($e=o.option_will_fund)||void 0===$e?void 0:$e.channel_fee_max_base_msat)/1e3+" Sats":"")+((null===(ee=o.option_will_fund)||void 0===ee?void 0:ee.channel_fee_max_proportional_thousandths)?1e3*(null===(Ve=o.option_will_fund)||void 0===Ve?void 0:Ve.channel_fee_max_proportional_thousandths)+" ppm":"")+(o.address_types?o.address_types.reduce((kn,Br)=>kn+("tor"===Br?" tor":"ipv"===Br?" clearnet":" "+Br.toLowerCase()),""):"")).includes(T)},this.applyFilter()}viewLeaseOn(t,o){"LN"===o?window.open("https://lnrouter.app/node/"+t.nodeid,"_blank"):"AM"===o&&window.open("https://amboss.space/node/"+t.nodeid,"_blank")}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{node:t,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channelOpeningFeeRate,localAmount:2e4},component:Pu}}}))}onViewLeaseInfo(t){var o,T,wA,nt,Dt,Ht,be;const $e=null===(o=t.addresses)||void 0===o?void 0:o.reduce((mi,kn)=>(kn.address&&kn.address.length>40&&(kn.address=kn.address.substring(0,39)+"..."),mi.concat(JSON.stringify(kn).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]),ee=[];if(t.features&&""!==t.features.trim()){const mi=parseInt(t.features,16);a.Df.forEach(kn=>{mi&(1<{mi&&this.onOpenChannel(t)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.nodeCapacity=0,this.channelCount=0}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(LA.D),A.Y36(C.v),A.Y36(yA.V),A.Y36(Bt.JJ))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:62,vars:22,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],[1,"padding-gap-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["formAsk","ngForm"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start start",1,"page-sub-title-container","mt-1"],["fxFlex","30"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxFlex","34"],["autoFocus","","matInput","","placeholder","Channel Amount (Sats)","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Channel Opening Fee Rate (Sats/vByte)","name","channelOpeningFeeRate","type","number","step","10","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","padding-gap-x","mt-2"],["fxFlex","30","fxFlex.gt-xs","70"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","fxLayout","row","fxLayoutAlign","start center",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacityChannels"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","leaseFee"],["matColumnDef","routingFee"],["matColumnDef","channelOpeningFee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","","fxLayout","row","fxLayoutAlign","start center",3,"ngStyle"],["aria-label","Address Types",1,"ml-half"],["color","primary","selected","",4,"ngFor","ngForOf"],["color","primary","selected",""],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Liquidity Ads"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"form",6,7)(10,"div",8),A._UZ(11,"fa-icon",9),A.TgZ(12,"span"),A._uU(13,"Ads should be supplemented with additional research of the nodes, before buying liquidity."),A.qZA()(),A.TgZ(14,"div",10)(15,"div",11)(16,"span",2),A._uU(17," Liquidity Ask "),A.TgZ(18,"mat-icon",12),A._uU(19,"info_outline"),A.qZA()()(),A.TgZ(20,"mat-form-field",13)(21,"input",14),A.NdJ("ngModelChange",function(wA){return o.channelAmount=wA})("keyup",function(){return o.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,Ru,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13)(24,"input",16),A.NdJ("ngModelChange",function(wA){return o.channelOpeningFeeRate=wA})("keyup",function(){return o.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,Lu,2,0,"mat-error",15),A.qZA()()(),A.TgZ(26,"div",17)(27,"div",18),A._UZ(28,"fa-icon",1),A.TgZ(29,"span",2),A._uU(30,"Liquidity Providing Peers"),A.qZA()(),A.TgZ(31,"mat-form-field",11)(32,"div",19)(33,"input",20),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()()(),A.TgZ(34,"div",21),A.YNc(35,bu,1,0,"mat-progress-bar",22),A.TgZ(36,"table",23,24),A.ynx(38,25),A.YNc(39,zu,2,0,"th",26),A.YNc(40,Ju,4,5,"td",27),A.BQk(),A.ynx(41,28),A.YNc(42,Ou,2,0,"th",29),A.YNc(43,ku,4,8,"td",30),A.BQk(),A.ynx(44,31),A.YNc(45,ju,2,0,"th",29),A.YNc(46,Ku,4,8,"td",30),A.BQk(),A.ynx(47,32),A.YNc(48,Vu,2,0,"th",29),A.YNc(49,Wu,4,8,"td",30),A.BQk(),A.ynx(50,33),A.YNc(51,Zu,2,0,"th",34),A.YNc(52,Xu,4,4,"td",30),A.BQk(),A.ynx(53,35),A.YNc(54,qu,6,0,"th",36),A.YNc(55,_u,12,0,"td",37),A.BQk(),A.ynx(56,38),A.YNc(57,ef,4,3,"td",39),A.BQk(),A.YNc(58,rf,1,3,"tr",40),A.YNc(59,af,1,0,"tr",41),A.YNc(60,of,1,0,"tr",42),A.qZA()(),A._UZ(61,"mat-paginator",43),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faBullhorn),A.xp6(10),A.Q6J("icon",o.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",o.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",o.channelAmount),A.xp6(1),A.Q6J("ngIf",!o.channelAmount),A.xp6(2),A.Q6J("ngModel",o.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!o.channelOpeningFeeRate),A.xp6(3),A.Q6J("icon",o.faUsers),A.xp6(5),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.liquidityNodes)("ngClass",A.VKq(19,sf,""!==o.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(21,lf)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,ft.yH,HA._Y,HA.JL,HA.F,m.Hw,eA.gM,P.KE,H.Nt,HA.wV,HA.Fj,k.h,HA.Q7,HA.JJ,HA.On,Bt.O5,P.TO,q.$V,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,$l.qn,Bt.sg,$l.HS,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})(),gf=(()=>{class i{constructor(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(t,o){1&t&&A._UZ(0,"router-outlet")},directives:[Vt.lC],styles:[""]}),i})();function Bf(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().activeTab=wA}),A._uU(1),A.qZA()}if(2&i){const t=M.$implicit,o=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",o.activeTab.link===t.link),A.xp6(1),A.Oqu(t.name)}}let uf=(()=>{class i{constructor(t){this.router=t,this.faHandshake=f.yOe,this.links=[{link:"prs",name:"Peers"},{link:"psout",name:"Swap Out"},{link:"psin",name:"Swap In"},{link:"pscanceled",name:"Swap Canceled"}],this.activeTab=this.links[0],this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(o=>this.router.url.includes(o.link));this.activeTab=t||this.links[0],this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,OA.h)(o=>o instanceof Vt.Av)).subscribe({next:o=>{const T=this.links.find(wA=>o.urlAfterRedirects.includes(wA.link));this.activeTab=T||this.links[0]}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Vt.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-peerswap"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Peerswap"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Bf,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",o.faHandshake),A.xp6(7),A.Q6J("ngForOf",o.links))},directives:[ft.xw,ft.Wh,e.BN,g.a8,g.dn,wt.BU,Bt.sg,wt.Nj,Vt.rH,ft.yH,Vt.lC],styles:[""]}),i})();function ff(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function hf(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be greater than or equal to 100,000."),A.qZA())}function Ef(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",A.lcZ(2,1,t.sPeer.local_balance),".")}}function wf(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.swapOutError)}}function Cf(i,M){if(1&i&&(A.TgZ(0,"div",20),A._UZ(1,"fa-icon",21),A.YNc(2,wf,2,1,"span",15),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.swapOutError)}}let Qf=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.dialogRef=t,this.data=o,this.store=T,this.decimalPipe=wA,this.commonService=nt,this.actions=Dt,this.faExclamationTriangle=f.eHv,this.selNode={},this.sPeer=null,this.swapAmountHint="",this.swapOutError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.actions.pipe((0,r.R)(this.unSubs[1]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapout"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.swapOutError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onExecuteSwapout(){var t;if(this.swapOutError="",!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,ht.p7)({payload:{alias:this.sPeer.alias||"",amountSats:this.swapAmount,shortChannelId:null===(t=this.sPeer)||void 0===t?void 0:t.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapOutError=""}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.swapAmountHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.swapAmountHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-swap-out-modal"]],decls:34,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","5","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapOutForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["matInput","","autoFocus","","placeholder","Amount","type","number","tabindex","2","name","swapAmt","required","",3,"ngModel","step","min","max","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","4",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Initiate a Swapout"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),A._uU(12),A.qZA(),A.TgZ(13,"mat-form-field",10),A._UZ(14,"input",11),A.qZA(),A.TgZ(15,"mat-form-field",1)(16,"input",12,13),A.NdJ("ngModelChange",function(wA){return o.swapAmount=wA})("keyup",function(){return o.onAmountChange()}),A.qZA(),A.TgZ(18,"span",14),A._uU(19," Sats "),A.qZA(),A.YNc(20,ff,2,0,"mat-error",15),A.YNc(21,hf,2,0,"mat-error",15),A.YNc(22,Ef,3,3,"mat-error",15),A.TgZ(23,"mat-hint"),A._uU(24),A.ALo(25,"number"),A._UZ(26,"br"),A._uU(27),A.qZA()(),A.YNc(28,Cf,3,2,"div",16),A.TgZ(29,"div",17)(30,"button",18),A.NdJ("click",function(){return o.resetData()}),A._uU(31,"Clear Field"),A.qZA(),A.TgZ(32,"button",19),A.NdJ("click",function(){return o.onExecuteSwapout()}),A._uU(33,"Execute"),A.qZA()()()()()()),2&t){const T=A.MAs(17);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.hij("Swapout with ",null==o.sPeer?null:o.sPeer.alias,""),A.xp6(2),A.Q6J("value",o.sPeer.short_channel_id),A.xp6(2),A.Q6J("ngModel",o.swapAmount)("step",1e3)("min",1e5)("max",o.sPeer.local_balance),A.xp6(4),A.Q6J("ngIf",null==T.errors?null:T.errors.required),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.min),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.max),A.xp6(2),A.hij("Amount should be between 100,000 and ",A.lcZ(25,13,o.sPeer.local_balance),""),A.xp6(3),A.Oqu(o.swapAmountHint),A.xp6(1),A.Q6J("ngIf",""!==o.swapOutError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.wV,HA.qQ,HA.Fd,HA.Fj,z.q,Hi.F,k.h,HA.Q7,HA.JJ,HA.On,P.R9,Bt.O5,P.TO,P.bx,e.BN],pipes:[Bt.JJ],styles:[""]}),i})();function df(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function pf(i,M){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be greater than or equal to 100,000."),A.qZA())}function Mf(i,M){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",A.lcZ(2,1,t.sPeer.remote_balance),".")}}function mf(i,M){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.swapInError)}}function If(i,M){if(1&i&&(A.TgZ(0,"div",20),A._UZ(1,"fa-icon",21),A.YNc(2,mf,2,1,"span",15),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.swapInError)}}let vf=(()=>{class i{constructor(t,o,T,wA,nt,Dt){this.dialogRef=t,this.data=o,this.store=T,this.decimalPipe=wA,this.commonService=nt,this.actions=Dt,this.faExclamationTriangle=f.eHv,this.selNode={},this.sPeer=null,this.swapAmountHint="",this.swapInError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.sPeer=this.data.swapPeer,this.store.select(B.lw).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.actions.pipe((0,r.R)(this.unSubs[1]),(0,OA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"PeerswapSwapin"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.swapInError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onExecuteSwapin(){var t;if(this.swapInError="",!this.swapAmount||!this.sPeer||!this.sPeer.short_channel_id)return!0;this.store.dispatch((0,ht.pc)({payload:{alias:this.sPeer.alias||"",amountSats:this.swapAmount,shortChannelId:null===(t=this.sPeer)||void 0===t?void 0:t.short_channel_id,asset:"btc"}}))}resetData(){this.swapAmount=null,this.swapAmountHint="",this.swapInError=""}onAmountChange(){this.selNode&&this.selNode.fiatConversion&&this.swapAmount&&this.swapAmount>99&&(this.swapAmountHint="",this.commonService.convertCurrency(this.swapAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.swapAmountHint="= "+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.symbol},error:t=>{this.swapAmountHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(dt.so),A.Y36(dt.WI),A.Y36(u.yh),A.Y36(Bt.JJ),A.Y36(C.v),A.Y36(Tt.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-swap-in-modal"]],decls:34,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","5","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["swapInForm","ngForm"],["fxLayoutAlign","start center",1,"pb-2","word-break"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Short Channel ID","tabindex","1","name","shortChanId","disabled","",3,"value"],["matInput","","autoFocus","","placeholder","Amount","type","number","tabindex","2","name","swapAmt","required","",3,"ngModel","step","min","max","ngModelChange","keyup"],["swapAmt","ngModel"],["matSuffix","",1,"ml-1"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","4",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,o){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Initiate a Swapin"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"p",9),A._uU(12),A.qZA(),A.TgZ(13,"mat-form-field",10),A._UZ(14,"input",11),A.qZA(),A.TgZ(15,"mat-form-field",1)(16,"input",12,13),A.NdJ("ngModelChange",function(wA){return o.swapAmount=wA})("keyup",function(){return o.onAmountChange()}),A.qZA(),A.TgZ(18,"span",14),A._uU(19," Sats "),A.qZA(),A.YNc(20,df,2,0,"mat-error",15),A.YNc(21,pf,2,0,"mat-error",15),A.YNc(22,Mf,3,3,"mat-error",15),A.TgZ(23,"mat-hint"),A._uU(24),A.ALo(25,"number"),A._UZ(26,"br"),A._uU(27),A.qZA()(),A.YNc(28,If,3,2,"div",16),A.TgZ(29,"div",17)(30,"button",18),A.NdJ("click",function(){return o.resetData()}),A._uU(31,"Clear Field"),A.qZA(),A.TgZ(32,"button",19),A.NdJ("click",function(){return o.onExecuteSwapin()}),A._uU(33,"Execute"),A.qZA()()()()()()),2&t){const T=A.MAs(17);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.hij("Swapin with ",null==o.sPeer?null:o.sPeer.alias,""),A.xp6(2),A.Q6J("value",o.sPeer.short_channel_id),A.xp6(2),A.Q6J("ngModel",o.swapAmount)("step",1e3)("min",1e5)("max",o.sPeer.remote_balance),A.xp6(4),A.Q6J("ngIf",null==T.errors?null:T.errors.required),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.min),A.xp6(1),A.Q6J("ngIf",null==T.errors?null:T.errors.max),A.xp6(2),A.hij("Amount should be between 100,000 and ",A.lcZ(25,13,o.sPeer.remote_balance),""),A.xp6(3),A.Oqu(o.swapAmountHint),A.xp6(1),A.Q6J("ngIf",""!==o.swapInError)}},directives:[ft.xw,ft.yH,g.dk,ft.Wh,w.lW,dt.ZT,g.dn,HA._Y,HA.JL,HA.F,P.KE,H.Nt,HA.wV,HA.qQ,HA.Fd,HA.Fj,z.q,Hi.F,k.h,HA.Q7,HA.JJ,HA.On,P.R9,Bt.O5,P.TO,P.bx,e.BN],pipes:[Bt.JJ],styles:[""]}),i})();function Df(i,M){1&i&&A._UZ(0,"mat-progress-bar",30)}function yf(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1,"Short Channel ID"),A.qZA())}function xf(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.short_channel_id)}}function Ff(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1,"Node Alias"),A.qZA())}function Yf(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function Tf(i,M){1&i&&(A.TgZ(0,"th",31),A._uU(1,"Swaps Allowed"),A.qZA())}function Sf(i,M){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null!=t&&t.swaps_allowed?"Yes":"No")}}function Nf(i,M){1&i&&(A.TgZ(0,"th",33),A._uU(1,"Local Balance (Sats)"),A.qZA())}function Uf(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"span",34),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.local_balance))}}function Pf(i,M){1&i&&(A.TgZ(0,"th",33),A._uU(1,"Remote Balance (Sats)"),A.qZA())}function Rf(i,M){if(1&i&&(A.TgZ(0,"td",32)(1,"span",34),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.remote_balance))}}function Lf(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",35)(1,"div",36)(2,"mat-select",37),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",38),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const bf=function(i){return{"px-3":i}};function zf(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"td",39)(1,"div",40)(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",38),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onSwapPeerClick(wA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",38),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onSwapOut(wA)}),A._uU(7,"Swap Out"),A.qZA(),A.TgZ(8,"mat-option",38),A.NdJ("click",function(){const wA=A.CHM(t).$implicit;return A.oxw().onSwapIn(wA)}),A._uU(9,"Swap In"),A.qZA()()()()}if(2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,bf,t.screenSize!==t.screenSizeEnum.XS))}}function Gf(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1," No peer available for swap."),A.qZA())}function Hf(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1," Getting peers for swap..."),A.qZA())}function Jf(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.hij(" ",t.errorMessage,"")}}function Of(i,M){if(1&i&&(A.TgZ(0,"td",42),A.YNc(1,Gf,2,0,"p",43),A.YNc(2,Hf,2,0,"p",43),A.YNc(3,Jf,2,1,"p",43),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swapPeers&&t.swapPeers.data)||(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const kf=function(i){return{"display-none":i}};function jf(i,M){if(1&i&&A._UZ(0,"tr",44),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,kf,(null==t.swapPeers?null:t.swapPeers.data)&&(null==t.swapPeers||null==t.swapPeers.data?null:t.swapPeers.data.length)>0))}}function Kf(i,M){1&i&&A._UZ(0,"tr",45)}function Vf(i,M){1&i&&A._UZ(0,"tr",46)}function Wf(i,M){if(1&i&&A._UZ(0,"mat-paginator",47),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}const Zf=function(i){return{"error-border":i}},Xf=function(){return["no_swap_peer"]};let qf=(()=>{class i{constructor(t,o,T){this.logger=t,this.commonService=o,this.store=T,this.faPeopleGroup=f.iOm,this.displayedColumns=[],this.totalSwapPeers=0,this.peersData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","short_channel_id","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","swaps_allowed","local_balance","remote_balance","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","swaps_allowed","local_balance","remote_balance","actions"])}ngOnInit(){this.store.dispatch((0,ht.$2)()),this.store.select(B.Ho).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalSwapPeers=t.totalSwapPeers,this.peersData=t.swapPeers||[],this.peersData.length>0&&this.sort&&this.paginator&&this.loadSwapPeersTable(this.peersData),this.logger.info(t)})}onSwapPeerClick(t){var o,T,wA,nt,Dt,Ht,be,$e,ee;const Ve=[[{key:"nodeid",value:t.nodeid,title:"Node Id",width:100,type:a.Gi.STRING}],[{key:"alias",value:t.alias,title:"Alias",width:50,type:a.Gi.STRING},{key:"short_channel_id",value:t.short_channel_id,title:"Short Channel ID",width:50,type:a.Gi.STRING}],[{key:"local_balance",value:t.local_balance,title:"Local Balance (Sats)",width:50,type:a.Gi.NUMBER},{key:"remote_balance",value:t.remote_balance,title:"Remote Balance (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"total_fee_paid",value:t.total_fee_paid,title:"Total Fee Paid (Sats)",width:40,type:a.Gi.NUMBER},{key:"swaps_allowed",value:t.swaps_allowed?"Yes":"No",title:"Swaps Allowed",width:30,type:a.Gi.STRING},{key:"total_channels",value:null===(o=t.channels)||void 0===o?void 0:o.length,title:"Channels With Peer",width:30,type:a.Gi.NUMBER}],[{key:"sent_total_swaps_out",value:null===(T=t.sent)||void 0===T?void 0:T.total_swaps_out,title:"Swap Out Sent",width:25,type:a.Gi.NUMBER},{key:"sent_total_swaps_in",value:null===(wA=t.sent)||void 0===wA?void 0:wA.total_swaps_in,title:"Swap In Sent",width:25,type:a.Gi.NUMBER},{key:"sent_total_sats_swapped_out",value:null===(nt=t.sent)||void 0===nt?void 0:nt.total_sats_swapped_out,title:"Swapped Out Sent (Sats)",width:25,type:a.Gi.NUMBER},{key:"sent_total_sats_swapped_in",value:null===(Dt=t.sent)||void 0===Dt?void 0:Dt.total_sats_swapped_in,title:"Swapped In Sent (Sats)",width:25,type:a.Gi.NUMBER}],[{key:"received_total_swaps_out",value:null===(Ht=t.received)||void 0===Ht?void 0:Ht.total_swaps_out,title:"Swap Out Received",width:25,type:a.Gi.NUMBER},{key:"received_total_swaps_in",value:null===(be=t.received)||void 0===be?void 0:be.total_swaps_in,title:"Swap In Received",width:25,type:a.Gi.NUMBER},{key:"received_total_sats_swapped_out",value:null===($e=t.received)||void 0===$e?void 0:$e.total_sats_swapped_out,title:"Swapped Out Received (Sats)",width:25,type:a.Gi.NUMBER},{key:"received_total_sats_swapped_in",value:null===(ee=t.received)||void 0===ee?void 0:ee.total_sats_swapped_in,title:"Swapped In Received (Sats)",width:25,type:a.Gi.NUMBER}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Swap Peer Information",message:Ve}}}))}onSwapOut(t){this.store.dispatch((0,kA.qR)({payload:{data:{swapPeer:t,component:Qf}}}))}onSwapIn(t){this.store.dispatch((0,kA.qR)({payload:{data:{swapPeer:t,component:vf}}}))}loadSwapPeersTable(t){this.swapPeers=new mA.by([...t]),this.swapPeers.sort=this.sort,this.swapPeers.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.swapPeers.filterPredicate=(o,T)=>{const wA=(o.nodeid?o.nodeid:"")+(o.alias?o.alias.toLowerCase():"")+(o.swaps_allowed?"yes":"no")+(o.short_channel_id?o.short_channel_id:"")+(o.local_balance?o.local_balance:"")+(o.remote_balance?o.remote_balance:"");return(null==wA?void 0:wA.includes(T))||!1},this.swapPeers.paginator=this.paginator,this.applyFilter(),this.logger.info(this.swapPeers)}onDownloadCSV(){this.swapPeers&&this.swapPeers.data&&this.swapPeers.data.length>0&&this.commonService.downloadFile(this.swapPeers.data,"Swap Peers")}applyFilter(){this.swapPeers.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-peerswap-peers"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Peers")}])],decls:38,vars:14,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxFlex","100",1,"page-sub-title-container","padding-gap-large","pb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","swaps_allowed"],["matColumnDef","local_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_swap_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2),A._UZ(3,"fa-icon",3),A.TgZ(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.TgZ(8,"mat-form-field",7)(9,"input",8),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()()(),A.TgZ(10,"div",9),A.YNc(11,Df,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,yf,2,0,"th",14),A.YNc(16,xf,2,1,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,Ff,2,0,"th",14),A.YNc(19,Yf,2,1,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,Tf,2,0,"th",14),A.YNc(22,Sf,2,1,"td",15),A.BQk(),A.ynx(23,18),A.YNc(24,Nf,2,0,"th",19),A.YNc(25,Uf,4,3,"td",15),A.BQk(),A.ynx(26,20),A.YNc(27,Pf,2,0,"th",19),A.YNc(28,Rf,4,3,"td",15),A.BQk(),A.ynx(29,21),A.YNc(30,Lf,6,0,"th",22),A.YNc(31,zf,10,3,"td",23),A.BQk(),A.ynx(32,24),A.YNc(33,Of,4,3,"td",25),A.BQk(),A.YNc(34,jf,1,3,"tr",26),A.YNc(35,Kf,1,0,"tr",27),A.YNc(36,Vf,1,0,"tr",28),A.qZA()(),A.YNc(37,Wf,1,3,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(3),A.Q6J("icon",o.faPeopleGroup),A.xp6(2),A.hij("Number of peers enabled with Peerswap: ",o.totalSwapPeers,""),A.xp6(4),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.swapPeers)("ngClass",A.VKq(11,Zf,""!==o.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(13,Xf)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,ft.yH,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,QA.gD,QA.$L,CA.ey,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var Ac=Ut(9445);function _f(i,M){1&i&&A._UZ(0,"mat-progress-bar",33)}function $f(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Swap Id"),A.qZA())}const tc=function(i){return{"mr-0":i}};function Ah(i,M){if(1&i&&A._UZ(0,"fa-icon",40),2&i){const t=A.oxw(2);A.Q6J("icon",t.faArrowRightFromBracket)("ngClass",A.VKq(2,tc,t.screenSize===t.screenSizeEnum.XS))}}function th(i,M){if(1&i&&A._UZ(0,"fa-icon",41),2&i){const t=A.oxw(2);A.Q6J("icon",t.faArrowRightToBracket)("ngClass",A.VKq(2,tc,t.screenSize===t.screenSizeEnum.XS))}}const eh=function(i){return{"max-width":i}};function nh(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",36)(2,"span",37),A.YNc(3,Ah,1,4,"fa-icon",38),A.YNc(4,th,1,4,"fa-icon",39),A._uU(5),A.qZA()()()),2&i){const t=M.$implicit,o=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,eh,o.screenSize===o.screenSizeEnum.XS?"10rem":"25rem")),A.xp6(2),A.Q6J("ngIf",t.role===o.peerswapRoles.SENDER),A.xp6(1),A.Q6J("ngIf",t.role===o.peerswapRoles.RECEIVER),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function ih(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Node Alias"),A.qZA())}function rh(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function ah(i,M){1&i&&(A.TgZ(0,"th",42),A._uU(1,"Short Channel ID"),A.qZA())}function oh(i,M){if(1&i&&(A.TgZ(0,"td",43),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.short_channel_id)}}function sh(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Created At"),A.qZA())}function lh(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,null==t?null:t.created_at,"dd/MMM/y HH:mm")," ")}}function ch(i,M){1&i&&(A.TgZ(0,"th",34),A._uU(1,"State"),A.qZA())}function gh(i,M){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"swapState"),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,null==t?null:t.state))}}function Bh(i,M){1&i&&(A.TgZ(0,"th",44),A._uU(1,"Amount (Sats)"),A.qZA())}function uh(i,M){if(1&i&&(A.TgZ(0,"td",35)(1,"span",45),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&i){const t=M.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.amount))}}function fh(i,M){1&i&&(A.TgZ(0,"th",46),A._uU(1,"Cancel Message"),A.qZA())}function hh(i,M){if(1&i&&(A.TgZ(0,"td",47),A._uU(1),A.qZA()),2&i){const t=M.$implicit;A.xp6(1),A.Oqu(null==t?null:t.cancel_message)}}function Eh(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"th",48)(1,"div",49)(2,"mat-select",50),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",51),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function wh(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"button",55),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onSwapClick(T)}),A._uU(1,"View Info"),A.qZA()}}function Ch(i,M){if(1&i){const t=A.EpF();A.TgZ(0,"div",56)(1,"mat-select",57),A._UZ(2,"mat-select-trigger"),A.TgZ(3,"mat-option",51),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onSwapClick(T)}),A._uU(4,"View Info"),A.qZA(),A.TgZ(5,"mat-option",51),A.NdJ("click",function(){A.CHM(t);const T=A.oxw().$implicit;return A.oxw().onSwapRefresh(T)}),A._uU(6,"Refresh"),A.qZA()()()}}const Qh=function(i){return{"px-3":i}};function dh(i,M){if(1&i&&(A.TgZ(0,"td",52),A.YNc(1,wh,2,0,"button",53),A.YNc(2,Ch,7,0,"div",54),A.qZA()),2&i){const t=M.$implicit,o=A.oxw();A.Q6J("ngClass",A.VKq(3,Qh,o.screenSize!==o.screenSizeEnum.XS)),A.xp6(1),A.Q6J("ngIf",o.selSwapList===o.swapLists[2]||o.selSwapList!==o.swapLists[2]&&("State_ClaimedPreimage"===t.state||"State_ClaimedCoop"===t.state)),A.xp6(1),A.Q6J("ngIf",o.selSwapList!==o.swapLists[2]&&"State_ClaimedPreimage"!==t.state&&"State_ClaimedCoop"!==t.state)}}function ph(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1," No swap available."),A.qZA())}function Mh(i,M){1&i&&(A.TgZ(0,"p"),A._uU(1," Getting swaps..."),A.qZA())}function mh(i,M){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.hij(" ",t.errorMessage,"")}}function Ih(i,M){if(1&i&&(A.TgZ(0,"td",58),A.YNc(1,ph,2,0,"p",59),A.YNc(2,Mh,2,0,"p",59),A.YNc(3,mh,2,1,"p",59),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.swaps&&t.swaps.data)||(null==t.swaps?null:t.swaps.data)&&(null==t.swaps?null:t.swaps.data.length)&&(null==t.swaps||null==t.swaps.data?null:t.swaps.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swaps&&t.swaps.data)||(null==t.swaps?null:t.swaps.data)&&(null==t.swaps?null:t.swaps.data.length)&&(null==t.swaps||null==t.swaps.data?null:t.swaps.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.swaps&&t.swaps.data)||(null==t.swaps?null:t.swaps.data)&&(null==t.swaps?null:t.swaps.data.length)&&(null==t.swaps||null==t.swaps.data?null:t.swaps.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const vh=function(i){return{"display-none":i}};function Dh(i,M){if(1&i&&A._UZ(0,"tr",60),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,vh,(null==t.swaps?null:t.swaps.data)&&(null==t.swaps||null==t.swaps.data?null:t.swaps.data.length)>0))}}function yh(i,M){1&i&&A._UZ(0,"tr",61)}function xh(i,M){1&i&&A._UZ(0,"tr",62)}function Fh(i,M){if(1&i&&A._UZ(0,"mat-paginator",63),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}const Yh=function(i){return{"error-border":i}},Th=function(){return["no_swap"]};let kl=(()=>{class i{constructor(t,o,T,wA,nt,Dt,Ht){this.logger=t,this.commonService=o,this.store=T,this.datePipe=wA,this.router=nt,this.swapStatePipe=Dt,this.titleCasePipe=Ht,this.faPersonArrowDownToLine=f.NMJ,this.faPersonArrowUpFromLine=f.pZi,this.faPersonCircleXmark=f.am0,this.faArrowRightFromBracket=f.SJh,this.faArrowRightToBracket=f.ZhI,this.displayedColumns=[],this.allSwapsData=null,this.swapsData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.swapLists=["psout","psin","pscanceled"],this.selSwapList=this.swapLists[0],this.peerswapRoles=a.z_,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.selSwapList=this.router.url.substring(this.router.url.lastIndexOf("/")+1),this.store.select(B.Fl).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{var o,T;this.errorMessage="",this.apiCallStatus=t.apiCallStatus,(null===(o=this.apiCallStatus)||void 0===o?void 0:o.status)===a.Bn.UN_INITIATED&&this.store.dispatch((0,ht.dS)()),this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),(null===(T=this.apiCallStatus)||void 0===T?void 0:T.status)===a.Bn.COMPLETED&&(this.allSwapsData={swapOuts:t.swapOuts,swapIns:t.swapIns,swapsCanceled:t.swapsCanceled},this.sort&&this.paginator&&this.loadTableWithSelection()),this.logger.info(t)})}ngAfterViewInit(){this.allSwapsData&&this.loadTableWithSelection()}loadTableWithSelection(){var t,o,T;switch(this.selSwapList){case this.swapLists[0]:this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["id","state","amount","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","state","amount","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","created_at","state","amount","actions"]):(this.flgSticky=!0,this.displayedColumns=["id","alias","short_channel_id","created_at","state","amount","actions"]),this.swapsData=(null===(t=this.allSwapsData)||void 0===t?void 0:t.swapOuts)||[];break;case this.swapLists[1]:this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["id","state","amount","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","state","amount","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","created_at","state","amount","actions"]):(this.flgSticky=!0,this.displayedColumns=["id","alias","short_channel_id","created_at","state","amount","actions"]),this.swapsData=(null===(o=this.allSwapsData)||void 0===o?void 0:o.swapIns)||[];break;case this.swapLists[2]:this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["id","amount","cancel_message","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","amount","cancel_message","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["id","alias","short_channel_id","created_at","amount","cancel_message","actions"]):(this.flgSticky=!0,this.displayedColumns=["id","alias","short_channel_id","created_at","amount","cancel_message","actions"]),this.swapsData=(null===(T=this.allSwapsData)||void 0===T?void 0:T.swapsCanceled)||[]}this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.loadswapsTable(this.swapsData)}onSwapClick(t){const o=[[{key:"id",value:t.id,title:"Swap Id",width:100,type:a.Gi.STRING}],[{key:"state",value:this.swapStatePipe.transform(t.state||""),title:"State",width:50,type:a.Gi.STRING},{key:"role",value:this.titleCasePipe.transform(t.role),title:"Role",width:50,type:a.Gi.STRING}],[{key:"alias",value:t.alias,title:"Alias",width:50,type:a.Gi.STRING},{key:"short_channel_id",value:t.short_channel_id,title:"Short Channel ID",width:50,type:a.Gi.STRING}],[{key:"amount",value:t.amount,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER},{key:"created_at",value:this.datePipe.transform(new Date(t.created_at||""),"dd/MMM/YYYY HH:mm"),title:"Created At",width:50,type:a.Gi.STRING}],[{key:"peer_node_id",value:t.peer_node_id,title:"Peer Node Id",width:100,type:a.Gi.STRING}],[{key:"initiator_node_id",value:t.initiator_node_id,title:"Initiator Node Id",width:100,type:a.Gi.STRING}]];t.opening_tx_id&&o.push([{key:"opening_tx_id",value:t.opening_tx_id,title:"Opening Transaction Id",width:100,type:a.Gi.STRING}]),t.claim_tx_id&&o.push([{key:"claim_tx_id",value:t.claim_tx_id,title:"Claim Transaction Id",width:100,type:a.Gi.STRING}]),t.cancel_message&&o.push([{key:"cancel_message",value:t.cancel_message,title:"Cancel Message",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:this.selSwapList===this.swapLists[0]?"Swapout Information":this.selSwapList===this.swapLists[1]?"Swapin Information":"Swap Canceled Information",message:o}}}))}loadswapsTable(t){this.swaps=new mA.by([...t]),this.swaps.sort=this.sort,this.swaps.sortingDataAccessor=(o,T)=>o[T]&&isNaN(o[T])?o[T].toLocaleLowerCase():o[T]?+o[T]:null,this.swaps.filterPredicate=(o,T)=>{var wA;const nt=(o.id?o.id:"")+(o.alias?o.alias.toLowerCase():"")+(o.role?o.role:"")+(o.short_channel_id?o.short_channel_id:"")+(o.amount?o.amount:"")+(o.state?o.state:"")+(o.created_at?null===(wA=this.datePipe.transform(new Date(o.created_at),"dd/MMM/YYYY HH:mm"))||void 0===wA?void 0:wA.toLowerCase():"")+(o.cancel_message?o.cancel_message.toLowerCase:"");return(null==nt?void 0:nt.includes(T))||!1},this.swaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.swaps)}onSwapRefresh(t){this.store.dispatch((0,ht.JX)({payload:t.id||""}))}onDownloadCSV(){this.swaps&&this.swaps.data&&this.swaps.data.length>0&&this.commonService.downloadFile(this.swaps.data,"Peerswap-"+this.selSwapList)}applyFilter(){this.swaps.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(E.mQ),A.Y36(C.v),A.Y36(u.yh),A.Y36(Bt.uU),A.Y36(Vt.F0),A.Y36(Ac.rn),A.Y36(Bt.rS))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-peer-swaps-list"]],viewQuery:function(t,o){if(1&t&&(A.Gf(tt.YE,5),A.Gf(VA.NW,5)),2&t){let T;A.iGM(T=A.CRH())&&(o.sort=T.first),A.iGM(T=A.CRH())&&(o.paginator=T.first)}},features:[A._Bn([{provide:VA.ye,useValue:(0,a.pt)("Swaps")}])],decls:41,vars:14,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70",1,"padding-gap-x"],[1,"mr-1",3,"icon"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","class","pl-1",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","state"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cancel_message"],["mat-header-cell","","mat-sort-header","","class","pl-2",4,"matHeaderCellDef"],["mat-cell","","class","pl-2",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["matTooltip","Sender","matTooltipPosition","right","class","mr-1",3,"icon","ngClass",4,"ngIf"],["matTooltip","Receiver","matTooltipPosition","right","class","mr-1",3,"icon","ngClass",4,"ngIf"],["matTooltip","Sender","matTooltipPosition","right",1,"mr-1",3,"icon","ngClass"],["matTooltip","Receiver","matTooltipPosition","right",1,"mr-1",3,"icon","ngClass"],["mat-header-cell","","mat-sort-header","",1,"pl-1"],["mat-cell","",1,"pl-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-2"],["mat-cell","",1,"pl-2"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click",4,"ngIf"],["class","bordered-box table-actions-select","fxLayoutAlign","center center",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,o){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2),A._UZ(3,"fa-icon",3),A._uU(4),A.qZA(),A.TgZ(5,"mat-form-field",4)(6,"input",5),A.NdJ("keyup",function(){return o.applyFilter()})("ngModelChange",function(wA){return o.selFilter=wA}),A.qZA()()(),A.TgZ(7,"div",6),A.YNc(8,_f,1,0,"mat-progress-bar",7),A.TgZ(9,"table",8,9),A.ynx(11,10),A.YNc(12,$f,2,0,"th",11),A.YNc(13,nh,6,6,"td",12),A.BQk(),A.ynx(14,13),A.YNc(15,ih,2,0,"th",11),A.YNc(16,rh,2,1,"td",12),A.BQk(),A.ynx(17,14),A.YNc(18,ah,2,0,"th",15),A.YNc(19,oh,2,1,"td",16),A.BQk(),A.ynx(20,17),A.YNc(21,sh,2,0,"th",11),A.YNc(22,lh,3,4,"td",12),A.BQk(),A.ynx(23,18),A.YNc(24,ch,2,0,"th",11),A.YNc(25,gh,3,3,"td",12),A.BQk(),A.ynx(26,19),A.YNc(27,Bh,2,0,"th",20),A.YNc(28,uh,4,3,"td",12),A.BQk(),A.ynx(29,21),A.YNc(30,fh,2,0,"th",22),A.YNc(31,hh,2,1,"td",23),A.BQk(),A.ynx(32,24),A.YNc(33,Eh,6,0,"th",25),A.YNc(34,dh,3,5,"td",26),A.BQk(),A.ynx(35,27),A.YNc(36,Ih,4,3,"td",28),A.BQk(),A.YNc(37,Dh,1,3,"tr",29),A.YNc(38,yh,1,0,"tr",30),A.YNc(39,xh,1,0,"tr",31),A.qZA()(),A.YNc(40,Fh,1,3,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(3),A.Q6J("icon",o.selSwapList===o.swapLists[0]?o.faPersonArrowUpFromLine:o.selSwapList===o.swapLists[1]?o.faPersonArrowDownToLine:o.faPersonCircleXmark),A.xp6(1),A.hij(" ",o.selSwapList===o.swapLists[0]?"Swapouts":o.selSwapList===o.swapLists[1]?"Swapins":"Canceled Swaps"," "),A.xp6(2),A.Q6J("ngModel",o.selFilter),A.xp6(2),A.Q6J("ngIf",(null==o.apiCallStatus?null:o.apiCallStatus.status)===o.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",o.swaps)("ngClass",A.VKq(11,Yh,""!==o.errorMessage)),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(13,Th)),A.xp6(1),A.Q6J("matHeaderRowDef",o.displayedColumns)("matHeaderRowDefSticky",o.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",o.displayedColumns),A.xp6(1),A.Q6J("ngIf",""===o.errorMessage))},directives:[ft.xw,ft.Wh,ft.yH,e.BN,P.KE,H.Nt,HA.Fj,HA.JJ,HA.On,q.$V,Bt.O5,S.pW,mA.BZ,tt.YE,Bt.mk,Y.oO,mA.w1,mA.fO,mA.ge,tt.nU,mA.Dz,mA.ev,Bt.PC,Y.Zl,eA.gM,QA.gD,QA.$L,CA.ey,w.lW,mA.mD,mA.yh,mA.Ke,mA.Q2,mA.as,mA.XQ,mA.nj,mA.Gk,VA.NW],pipes:[Bt.uU,Ac.rn,Bt.JJ],styles:[".mat-column-id[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const Nh=Vt.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:No,canActivate:[De.eQ]},{path:"onchain",component:Cs,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:r0,canActivate:[De.eQ]},{path:"send/:selTab",component:$i,data:{sweepAll:!1},canActivate:[De.eQ]},{path:"sweep/:selTab",component:$i,data:{sweepAll:!0},canActivate:[De.eQ]}]},{path:"connections",component:ya,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:tr,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:er,canActivate:[De.eQ]},{path:"pending",component:Cl,canActivate:[De.eQ]}]},{path:"peers",component:L,data:{sweepAll:!1},canActivate:[De.eQ]}]},{path:"liquidityads",component:cf,canActivate:[De.eQ]},{path:"transactions",component:Ms,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:ca,canActivate:[De.eQ]},{path:"invoices",component:UA,canActivate:[De.eQ]},{path:"offers",component:pB,canActivate:[De.eQ]},{path:"offrBookmarks",component:kB,canActivate:[De.eQ]}]},{path:"messages",component:qr,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:we,canActivate:[De.eQ]},{path:"verify",component:On,canActivate:[De.eQ]}]},{path:"routing",component:Is,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:sa,canActivate:[De.eQ]},{path:"failedtransactions",component:Fc,canActivate:[De.eQ]},{path:"localfail",component:hu,canActivate:[De.eQ]},{path:"routingpeers",component:Mg,canActivate:[De.eQ]}]},{path:"reports",component:Ig,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Sg,canActivate:[De.eQ]},{path:"transactions",component:Hg,canActivate:[De.eQ]}]},{path:"graph",component:kg,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Os,canActivate:[De.eQ]},{path:"queryroutes",component:qe,canActivate:[De.eQ]}]},{path:"services",component:gf,canActivate:[De.eQ],children:[{path:"peerswap",component:uf,canActivate:[De.eQ],children:[{path:"",pathMatch:"full",redirectTo:"prs"},{path:"prs",component:qf,canActivate:[De.eQ]},{path:"psout",component:kl,canActivate:[De.eQ]},{path:"psin",component:kl,canActivate:[De.eQ]},{path:"pscanceled",component:kl,canActivate:[De.eQ]}]}]},{path:"rates",component:i0,canActivate:[De.eQ]},{path:"**",component:Jg.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var Uh=Ut(8750);let Ph=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=A.oAB({type:i,bootstrap:[n]}),i.\u0275inj=A.cJS({providers:[De.eQ],imports:[[Bt.ez,Uh.m,Nh]]}),i})()},4641:function(ur,Ni,Ut){var Bt=Ut(7757);"undefined"!=typeof self&&self,ur.exports=function(){var Vt={9282:function(S,I,n){"use strict";var c=n(4155);function r($){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(hA){return typeof hA}:function(hA){return hA&&"function"==typeof Symbol&&hA.constructor===Symbol&&hA!==Symbol.prototype?"symbol":typeof hA})($)}var v,D,f=n(2136).codes,a=f.ERR_AMBIGUOUS_ARGUMENT,B=f.ERR_INVALID_ARG_TYPE,E=f.ERR_INVALID_ARG_VALUE,u=f.ERR_INVALID_RETURN_VALUE,C=f.ERR_MISSING_ARGS,e=n(5961),g=n(9539).inspect,w=n(9539).types,Q=w.isPromise,m=w.isRegExp,Y=Object.assign?Object.assign:n(8091).assign,y=Object.is?Object.is:n(609);function b(){var $=n(9158);v=$.isDeepEqual,D=$.isDeepStrictEqual}var q=!1,BA=S.exports=xA,MA={};function lA($){throw $.message instanceof Error?$.message:new e($)}function gA($,W,hA,DA){if(!hA){var nA=!1;if(0===W)nA=!0,DA="No value argument passed to `assert.ok()`";else if(DA instanceof Error)throw DA;var EA=new e({actual:hA,expected:!0,message:DA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function xA(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];gA.apply(void 0,[xA,W.length].concat(W))}BA.fail=function cA($,W,hA,DA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===q&&(q=!0,(c.emitWarning?c.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===EA&&(DA="!=")),hA instanceof Error)throw hA;var st={actual:$,expected:W,operator:void 0===DA?"fail":DA,stackStartFn:nA||cA};void 0!==hA&&(st.message=hA);var TA=new e(st);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},BA.AssertionError=e,BA.ok=xA,BA.equal=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");W!=hA&&lA({actual:W,expected:hA,message:DA,operator:"==",stackStartFn:$})},BA.notEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");W==hA&&lA({actual:W,expected:hA,message:DA,operator:"!=",stackStartFn:$})},BA.deepEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&b(),v(W,hA)||lA({actual:W,expected:hA,message:DA,operator:"deepEqual",stackStartFn:$})},BA.notDeepEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&b(),v(W,hA)&&lA({actual:W,expected:hA,message:DA,operator:"notDeepEqual",stackStartFn:$})},BA.deepStrictEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&b(),D(W,hA)||lA({actual:W,expected:hA,message:DA,operator:"deepStrictEqual",stackStartFn:$})},BA.notDeepStrictEqual=function FA($,W,hA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&b(),D($,W)&&lA({actual:$,expected:W,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},BA.strictEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");y(W,hA)||lA({actual:W,expected:hA,message:DA,operator:"strictEqual",stackStartFn:$})},BA.notStrictEqual=function $(W,hA,DA){if(arguments.length<2)throw new C("actual","expected");y(W,hA)&&lA({actual:W,expected:hA,message:DA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,hA,DA){var nA=this;(function s($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")})(this,$),hA.forEach(function(EA){EA in W&&(nA[EA]=void 0!==DA&&"string"==typeof DA[EA]&&m(W[EA])&&W[EA].test(DA[EA])?DA[EA]:W[EA])})};function pA($,W,hA,DA,nA,EA){if(!(hA in $)||!D($[hA],W[hA])){if(!DA){var GA=new _($,nA),it=new _(W,nA,$),st=new e({actual:GA,expected:it,operator:"deepStrictEqual",stackStartFn:EA});throw st.actual=$,st.expected=W,st.operator=EA.name,st}lA({actual:$,expected:W,message:DA,operator:EA.name,stackStartFn:EA})}}function uA($,W,hA,DA){if("function"!=typeof W){if(m(W))return W.test($);if(2===arguments.length)throw new B("expected",["Function","RegExp"],W);if("object"!==r($)||null===$){var nA=new e({actual:$,expected:W,message:hA,operator:"deepStrictEqual",stackStartFn:DA});throw nA.operator=DA.name,nA}var EA=Object.keys(W);if(W instanceof Error)EA.push("name","message");else if(0===EA.length)throw new E("error",W,"may not be an empty object");return void 0===v&&b(),EA.forEach(function(GA){"string"==typeof $[GA]&&m(W[GA])&&W[GA].test($[GA])||pA($,W,GA,hA,EA,DA)}),!0}return void 0!==W.prototype&&$ instanceof W||!Error.isPrototypeOf(W)&&!0===W.call({},$)}function dA($){if("function"!=typeof $)throw new B("fn","Function",$);try{$()}catch(W){return W}return MA}function SA($){return Q($)||null!==$&&"object"===r($)&&"function"==typeof $.then&&"function"==typeof $.catch}function zA($){return Promise.resolve().then(function(){var W;if("function"==typeof $){if(!SA(W=$()))throw new u("instance of Promise","promiseFn",W)}else{if(!SA($))throw new B("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return MA}).catch(function(hA){return hA})})}function XA($,W,hA,DA){if("string"==typeof hA){if(4===arguments.length)throw new B("error",["Object","Error","Function","RegExp"],hA);if("object"===r(W)&&null!==W){if(W.message===hA)throw new a("error/message",'The error message "'.concat(W.message,'" is identical to the message.'))}else if(W===hA)throw new a("error/message",'The error "'.concat(W,'" is identical to the message.'));DA=hA,hA=void 0}else if(null!=hA&&"object"!==r(hA)&&"function"!=typeof hA)throw new B("error",["Object","Error","Function","RegExp"],hA);if(W===MA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=DA?": ".concat(DA):".",lA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(W,hA,DA,$))throw W}function X($,W,hA,DA){if(W!==MA){if("string"==typeof hA&&(DA=hA,hA=void 0),!hA||uA(W,hA)){var nA=DA?": ".concat(DA):".";lA({actual:W,expected:hA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(nA,"\n")+'Actual message: "'.concat(W&&W.message,'"'),stackStartFn:$})}throw W}}function O(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];gA.apply(void 0,[O,W.length].concat(W))}BA.throws=function $(W){for(var hA=arguments.length,DA=new Array(hA>1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nAcA.length)&&(xA=cA.length),cA.substring(xA-gA.length,xA)===gA}var N="",F="",b="",P="",eA={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function q(cA){var gA=Object.keys(cA),xA=Object.create(Object.getPrototypeOf(cA));return gA.forEach(function(FA){xA[FA]=cA[FA]}),Object.defineProperty(xA,"message",{value:cA.message}),xA}function BA(cA){return y(cA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(cA,gA,xA){var FA="",_="",pA=0,uA="",dA=!1,SA=BA(cA),zA=SA.split("\n"),XA=BA(gA).split("\n"),X=0,O="";if("strictEqual"===xA&&"object"===m(cA)&&"object"===m(gA)&&null!==cA&&null!==gA&&(xA="strictEqualObject"),1===zA.length&&1===XA.length&&zA[0]!==XA[0]){var $=zA[0].length+XA[0].length;if($<=10){if(!("object"===m(cA)&&null!==cA||"object"===m(gA)&&null!==gA||0===cA&&0===gA))return"".concat(eA[xA],"\n\n")+"".concat(zA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==xA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;zA[0][X]===XA[0][X];)X++;X>2&&(O="\n ".concat(function R(cA,gA){if(gA=Math.floor(gA),0==cA.length||0==gA)return"";var xA=cA.length*gA;for(gA=Math.floor(Math.log(gA)/Math.log(2));gA;)cA+=cA,gA--;return cA+cA.substring(0,xA-cA.length)}(" ",X),"^"),X=0)}}for(var hA=zA[zA.length-1],DA=XA[XA.length-1];hA===DA&&(X++<2?uA="\n ".concat(hA).concat(uA):FA=hA,zA.pop(),XA.pop(),0!==zA.length&&0!==XA.length);)hA=zA[zA.length-1],DA=XA[XA.length-1];var nA=Math.max(zA.length,XA.length);if(0===nA){var EA=SA.split("\n");if(EA.length>30)for(EA[26]="".concat(N,"...").concat(P);EA.length>27;)EA.pop();return"".concat(eA.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}X>3&&(uA="\n".concat(N,"...").concat(P).concat(uA),dA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,it=eA[xA]+"\n".concat(F,"+ actual").concat(P," ").concat(b,"- expected").concat(P),st=" ".concat(N,"...").concat(P," Lines skipped");for(X=0;X1&&X>2&&(TA>4?(_+="\n".concat(N,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(XA[X-2]),GA++),_+="\n ".concat(XA[X-1]),GA++),pA=X,FA+="\n".concat(b,"-").concat(P," ").concat(XA[X]),GA++;else if(XA.length1&&X>2&&(TA>4?(_+="\n".concat(N,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(zA[X-2]),GA++),_+="\n ".concat(zA[X-1]),GA++),pA=X,_+="\n".concat(F,"+").concat(P," ").concat(zA[X]),GA++;else{var at=XA[X],It=zA[X],mt=It!==at&&(!D(It,",")||It.slice(0,-1)!==at);mt&&D(at,",")&&at.slice(0,-1)===It&&(mt=!1,It+=","),mt?(TA>1&&X>2&&(TA>4?(_+="\n".concat(N,"...").concat(P),dA=!0):TA>3&&(_+="\n ".concat(zA[X-2]),GA++),_+="\n ".concat(zA[X-1]),GA++),pA=X,_+="\n".concat(F,"+").concat(P," ").concat(It),FA+="\n".concat(b,"-").concat(P," ").concat(at),GA+=2):(_+=FA,FA="",(1===TA||0===X)&&(_+="\n ".concat(It),GA++))}if(GA>20&&X30)for(X[26]="".concat(N,"...").concat(P);X.length>27;)X.pop();FA=B(this,1===X.length?Q(gA).call(this,"".concat(XA," ").concat(X[0])):Q(gA).call(this,"".concat(XA,"\n\n").concat(X.join("\n"),"\n")))}else{var O=BA(dA),$="",W=eA[pA];"notDeepEqual"===pA||"notEqual"===pA?(O="".concat(eA[pA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(BA(SA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===pA||"equal"===pA?O="".concat(W,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(pA," ").concat($)),FA=B(this,Q(gA).call(this,"".concat(O).concat($)))}return Error.stackTraceLimit=zA,FA.generatedMessage=!_,Object.defineProperty(E(FA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),FA.code="ERR_ASSERTION",FA.actual=dA,FA.expected=SA,FA.operator=pA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",B(FA)}return function u(cA,gA){if("function"!=typeof gA&&null!==gA)throw new TypeError("Super expression must either be null or a function");cA.prototype=Object.create(gA&&gA.prototype,{constructor:{value:cA,writable:!0,configurable:!0}}),gA&&w(cA,gA)}(gA,cA),function a(cA,gA,xA){return gA&&f(cA.prototype,gA),xA&&f(cA,xA),cA}(gA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:y.custom,value:function(FA,_){return y(this,function r(cA){for(var gA=1;gA2?"one of ".concat(Y," ").concat(m.slice(0,y-1).join(", "),", or ")+m[y-1]:2===y?"one of ".concat(Y," ").concat(m[0]," or ").concat(m[1]):"of ".concat(Y," ").concat(m[0])}return"of ".concat(Y," ").concat(String(m))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(m,Y,y){var d,v;if(void 0===u&&(u=n(9282)),u("string"==typeof m,"'name' must be a string"),"string"==typeof Y&&function g(m,Y,y){return m.substr(!y||y<0?0:+y,Y.length)===Y}(Y,"not ")?(d="must not be",Y=Y.replace(/^not /,"")):d="must be",function w(m,Y,y){return(void 0===y||y>m.length)&&(y=m.length),m.substring(y-Y.length,y)===Y}(m," argument"))v="The ".concat(m," ").concat(d," ").concat(h(Y,"type"));else{var D=function Q(m,Y,y){return"number"!=typeof y&&(y=0),!(y+Y.length>m.length)&&-1!==m.indexOf(Y,y)}(m,".")?"property":"argument";v='The "'.concat(m,'" ').concat(D," ").concat(d," ").concat(h(Y,"type"))}return v+". Received type ".concat(c(y))},TypeError),e("ERR_INVALID_ARG_VALUE",function(m,Y){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var d=C.inspect(Y);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(y,". Received ").concat(d)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(m,Y,y){var d;return d=y&&y.constructor&&y.constructor.name?"instance of ".concat(y.constructor.name):"type ".concat(c(y)),"Expected ".concat(m,' to be returned from the "').concat(Y,'"')+" function but got ".concat(d,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var m=arguments.length,Y=new Array(m),y=0;y0,"At least one arg needs to be specified");var d="The ",v=Y.length;switch(Y=Y.map(function(D){return'"'.concat(D,'"')}),v){case 1:d+="".concat(Y[0]," argument");break;case 2:d+="".concat(Y[0]," and ").concat(Y[1]," arguments");break;default:d+=Y.slice(0,v-1).join(", "),d+=", and ".concat(Y[v-1]," arguments")}return"".concat(d," must be specified")},TypeError),S.exports.codes=E},9158:function(S,I,n){"use strict";function c(OA,VA){return function l(OA){if(Array.isArray(OA))return OA}(OA)||function s(OA,VA){var tt=[],mA=!0,dt=!1,ht=void 0;try{for(var HA,Tt=OA[Symbol.iterator]();!(mA=(HA=Tt.next()).done)&&(tt.push(HA.value),!VA||tt.length!==VA);mA=!0);}catch(H){dt=!0,ht=H}finally{try{!mA&&null!=Tt.return&&Tt.return()}finally{if(dt)throw ht}}return tt}(OA,VA)||function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(OA){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(tt){return typeof tt}:function(tt){return tt&&"function"==typeof Symbol&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt})(OA)}var a=void 0!==/a/g.flags,B=function(VA){var tt=[];return VA.forEach(function(mA){return tt.push(mA)}),tt},E=function(VA){var tt=[];return VA.forEach(function(mA,dt){return tt.push([dt,mA])}),tt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function h(OA){return OA.call.bind(OA)}var g=h(Object.prototype.hasOwnProperty),w=h(Object.prototype.propertyIsEnumerable),Q=h(Object.prototype.toString),m=n(9539).types,Y=m.isAnyArrayBuffer,y=m.isArrayBufferView,d=m.isDate,v=m.isMap,D=m.isRegExp,R=m.isSet,N=m.isNativeError,F=m.isBoxedPrimitive,b=m.isNumberObject,P=m.isStringObject,eA=m.isBooleanObject,sA=m.isBigIntObject,q=m.isSymbolObject,BA=m.isFloat32Array,MA=m.isFloat64Array;function lA(OA){if(0===OA.length||OA.length>10)return!0;for(var VA=0;VA57)return!0}return 10===OA.length&&OA>=Math.pow(2,32)}function cA(OA){return Object.keys(OA).filter(lA).concat(C(OA).filter(Object.prototype.propertyIsEnumerable.bind(OA)))}function gA(OA,VA){if(OA===VA)return 0;for(var tt=OA.length,mA=VA.length,dt=0,ht=Math.min(tt,mA);dt=E.length?{done:!0}:{done:!1,value:E[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(E,u){(null==u||u>E.length)&&(u=E.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},h.flush=function(){if(this.bufferOffset>0)return this.push(c.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},h.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},h.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(c.from(w,Q));case"utf16be":for(var m=c.from(w,"utf16le"),Y=0,y=m.length-1;Y>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},h.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},h.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},h.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},h.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},h.toArray=function(){for(var w=[],Q=0,m=this.length;Q>1),(h=a.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+H+'" is invalid for option "size"');var k=new Uint8Array(H);return Object.setPrototypeOf(k,h.prototype),k}function h(H,k,z){if("number"==typeof H){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return m(H)}return g(H,k,z)}function g(H,k,z){if("string"==typeof H)return function Y(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!h.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var z=0|F(H,k),QA=e(z),CA=QA.write(H,k);return CA!==z&&(QA=QA.slice(0,CA)),QA}(H,k);if(ArrayBuffer.isView(H))return function d(H){if(mA(H,Uint8Array)){var k=new Uint8Array(H);return v(k.buffer,k.byteOffset,k.byteLength)}return y(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(mA(H,ArrayBuffer)||H&&mA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(mA(H,SharedArrayBuffer)||H&&mA(H.buffer,SharedArrayBuffer)))return v(H,k,z);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var QA=H.valueOf&&H.valueOf();if(null!=QA&&QA!==H)return h.from(QA,k,z);var CA=function D(H){if(h.isBuffer(H)){var k=0|R(H.length),z=e(k);return 0===z.length||H.copy(z,0,0,k),z}return void 0!==H.length?"number"!=typeof H.length||dt(H.length)?e(0):y(H):"Buffer"===H.type&&Array.isArray(H.data)?y(H.data):void 0}(H);if(CA)return CA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return h.from(H[Symbol.toPrimitive]("string"),k,z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function w(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function m(H){return w(H),e(H<0?0:0|R(H))}function y(H){for(var k=H.length<0?0:0|R(H.length),z=e(k),QA=0;QA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|H}function F(H,k){if(h.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||mA(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var z=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===z)return 0;for(var CA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return z;case"utf8":case"utf-8":return mt(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*z;case"hex":return z>>>1;case"base64":return VA(H).length;default:if(CA)return QA?-1:mt(H).length;k=(""+k).toLowerCase(),CA=!0}}function b(H,k,z){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===z||z>this.length)&&(z=this.length),z<=0)||(z>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return dA(this,k,z);case"utf8":case"utf-8":return xA(this,k,z);case"ascii":return pA(this,k,z);case"latin1":case"binary":return uA(this,k,z);case"base64":return gA(this,k,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SA(this,k,z);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function P(H,k,z){var QA=H[k];H[k]=H[z],H[z]=QA}function eA(H,k,z,QA,CA){if(0===H.length)return-1;if("string"==typeof z?(QA=z,z=0):z>2147483647?z=2147483647:z<-2147483648&&(z=-2147483648),dt(z=+z)&&(z=CA?0:H.length-1),z<0&&(z=H.length+z),z>=H.length){if(CA)return-1;z=H.length-1}else if(z<0){if(!CA)return-1;z=0}if("string"==typeof k&&(k=h.from(k,QA)),h.isBuffer(k))return 0===k.length?-1:sA(H,k,z,QA,CA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?CA?Uint8Array.prototype.indexOf.call(H,k,z):Uint8Array.prototype.lastIndexOf.call(H,k,z):sA(H,[k],z,QA,CA);throw new TypeError("val must be string, number or Buffer")}function sA(H,k,z,QA,CA){var j,RA=1,iA=H.length,gt=k.length;if(void 0!==QA&&("ucs2"===(QA=String(QA).toLowerCase())||"ucs-2"===QA||"utf16le"===QA||"utf-16le"===QA)){if(H.length<2||k.length<2)return-1;RA=2,iA/=2,gt/=2,z/=2}function Yt(KA,lt){return 1===RA?KA[lt]:KA.readUInt16BE(lt*RA)}if(CA){var qA=-1;for(j=z;jiA&&(z=iA-gt),j=z;j>=0;j--){for(var kA=!0,yA=0;yACA&&(QA=CA):QA=CA;var iA,RA=k.length;for(QA>RA/2&&(QA=RA/2),iA=0;iA>8,RA.push(z%256),RA.push(QA);return RA}(k,H.length-z),H,z,QA)}function gA(H,k,z){return a.fromByteArray(0===k&&z===H.length?H:H.slice(k,z))}function xA(H,k,z){z=Math.min(H.length,z);for(var QA=[],CA=k;CA239?4:RA>223?3:RA>191?2:1;if(CA+gt<=z){var Yt=void 0,j=void 0,qA=void 0,kA=void 0;switch(gt){case 1:RA<128&&(iA=RA);break;case 2:128==(192&(Yt=H[CA+1]))&&(kA=(31&RA)<<6|63&Yt)>127&&(iA=kA);break;case 3:j=H[CA+2],128==(192&(Yt=H[CA+1]))&&128==(192&j)&&(kA=(15&RA)<<12|(63&Yt)<<6|63&j)>2047&&(kA<55296||kA>57343)&&(iA=kA);break;case 4:j=H[CA+2],qA=H[CA+3],128==(192&(Yt=H[CA+1]))&&128==(192&j)&&128==(192&qA)&&(kA=(15&RA)<<18|(63&Yt)<<12|(63&j)<<6|63&qA)>65535&&kA<1114112&&(iA=kA)}}null===iA?(iA=65533,gt=1):iA>65535&&(QA.push((iA-=65536)>>>10&1023|55296),iA=56320|1023&iA),QA.push(iA),CA+=gt}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var z="",QA=0;QACA.length?(h.isBuffer(iA)||(iA=h.from(iA)),iA.copy(CA,RA)):Uint8Array.prototype.set.call(CA,iA,RA);else{if(!h.isBuffer(iA))throw new TypeError('"list" argument must be an Array of Buffers');iA.copy(CA,RA)}RA+=iA.length}return CA},h.byteLength=F,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var z=0;zz&&(k+=" ... "),""},E&&(h.prototype[E]=h.prototype.inspect),h.prototype.compare=function(k,z,QA,CA,RA){if(mA(k,Uint8Array)&&(k=h.from(k,k.offset,k.byteLength)),!h.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===z&&(z=0),void 0===QA&&(QA=k?k.length:0),void 0===CA&&(CA=0),void 0===RA&&(RA=this.length),z<0||QA>k.length||CA<0||RA>this.length)throw new RangeError("out of range index");if(CA>=RA&&z>=QA)return 0;if(CA>=RA)return-1;if(z>=QA)return 1;if(this===k)return 0;for(var iA=(RA>>>=0)-(CA>>>=0),gt=(QA>>>=0)-(z>>>=0),Yt=Math.min(iA,gt),j=this.slice(CA,RA),qA=k.slice(z,QA),kA=0;kA>>=0,isFinite(QA)?(QA>>>=0,void 0===CA&&(CA="utf8")):(CA=QA,QA=void 0)}var RA=this.length-z;if((void 0===QA||QA>RA)&&(QA=RA),k.length>0&&(QA<0||z<0)||z>this.length)throw new RangeError("Attempt to write outside buffer bounds");CA||(CA="utf8");for(var iA=!1;;)switch(CA){case"hex":return q(this,k,z,QA);case"utf8":case"utf-8":return BA(this,k,z,QA);case"ascii":case"latin1":case"binary":return MA(this,k,z,QA);case"base64":return lA(this,k,z,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cA(this,k,z,QA);default:if(iA)throw new TypeError("Unknown encoding: "+CA);CA=(""+CA).toLowerCase(),iA=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pA(H,k,z){var QA="";z=Math.min(H.length,z);for(var CA=k;CAQA)&&(z=QA);for(var CA="",RA=k;RAz)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,z,QA,CA,RA){if(!h.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>CA||kH.length)throw new RangeError("Index out of range")}function X(H,k,z,QA,CA){it(k,QA,CA,H,z,7);var RA=Number(k&BigInt(4294967295));H[z++]=RA,H[z++]=RA>>=8,H[z++]=RA>>=8,H[z++]=RA>>=8;var iA=Number(k>>BigInt(32)&BigInt(4294967295));return H[z++]=iA,H[z++]=iA>>=8,H[z++]=iA>>=8,H[z++]=iA>>=8,z}function O(H,k,z,QA,CA){it(k,QA,CA,H,z,7);var RA=Number(k&BigInt(4294967295));H[z+7]=RA,H[z+6]=RA>>=8,H[z+5]=RA>>=8,H[z+4]=RA>>=8;var iA=Number(k>>BigInt(32)&BigInt(4294967295));return H[z+3]=iA,H[z+2]=iA>>=8,H[z+1]=iA>>=8,H[z]=iA>>=8,z+8}function $(H,k,z,QA,CA,RA){if(z+QA>H.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("Index out of range")}function W(H,k,z,QA,CA){return k=+k,z>>>=0,CA||$(H,0,z,4),B.write(H,k,z,QA,23,4),z+4}function hA(H,k,z,QA,CA){return k=+k,z>>>=0,CA||$(H,0,z,8),B.write(H,k,z,QA,52,8),z+8}h.prototype.slice=function(k,z){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(z=void 0===z?QA:~~z)<0?(z+=QA)<0&&(z=0):z>QA&&(z=QA),z>>=0,z>>>=0,QA||zA(k,z,this.length);for(var CA=this[k],RA=1,iA=0;++iA>>=0,z>>>=0,QA||zA(k,z,this.length);for(var CA=this[k+--z],RA=1;z>0&&(RA*=256);)CA+=this[k+--z]*RA;return CA},h.prototype.readUint8=h.prototype.readUInt8=function(k,z){return k>>>=0,z||zA(k,1,this.length),this[k]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(k,z){return k>>>=0,z||zA(k,2,this.length),this[k]|this[k+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(k,z){return k>>>=0,z||zA(k,2,this.length),this[k]<<8|this[k+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(k,z){return k>>>=0,z||zA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(k,z){return k>>>=0,z||zA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},h.prototype.readBigUInt64LE=Tt(function(k){st(k>>>=0,"offset");var z=this[k],QA=this[k+7];(void 0===z||void 0===QA)&&TA(k,this.length-8);var CA=z+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,24),RA=this[++k]+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+QA*Math.pow(2,24);return BigInt(CA)+(BigInt(RA)<>>=0,"offset");var z=this[k],QA=this[k+7];(void 0===z||void 0===QA)&&TA(k,this.length-8);var CA=z*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k],RA=this[++k]*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+QA;return(BigInt(CA)<>>=0,z>>>=0,QA||zA(k,z,this.length);for(var CA=this[k],RA=1,iA=0;++iA=(RA*=128)&&(CA-=Math.pow(2,8*z)),CA},h.prototype.readIntBE=function(k,z,QA){k>>>=0,z>>>=0,QA||zA(k,z,this.length);for(var CA=z,RA=1,iA=this[k+--CA];CA>0&&(RA*=256);)iA+=this[k+--CA]*RA;return iA>=(RA*=128)&&(iA-=Math.pow(2,8*z)),iA},h.prototype.readInt8=function(k,z){return k>>>=0,z||zA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},h.prototype.readInt16LE=function(k,z){k>>>=0,z||zA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},h.prototype.readInt16BE=function(k,z){k>>>=0,z||zA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},h.prototype.readInt32LE=function(k,z){return k>>>=0,z||zA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},h.prototype.readInt32BE=function(k,z){return k>>>=0,z||zA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},h.prototype.readBigInt64LE=Tt(function(k){st(k>>>=0,"offset");var z=this[k],QA=this[k+7];(void 0===z||void 0===QA)&&TA(k,this.length-8);var CA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(QA<<24);return(BigInt(CA)<>>=0,"offset");var z=this[k],QA=this[k+7];(void 0===z||void 0===QA)&&TA(k,this.length-8);var CA=(z<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(CA)<>>=0,z||zA(k,4,this.length),B.read(this,k,!0,23,4)},h.prototype.readFloatBE=function(k,z){return k>>>=0,z||zA(k,4,this.length),B.read(this,k,!1,23,4)},h.prototype.readDoubleLE=function(k,z){return k>>>=0,z||zA(k,8,this.length),B.read(this,k,!0,52,8)},h.prototype.readDoubleBE=function(k,z){return k>>>=0,z||zA(k,8,this.length),B.read(this,k,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(k,z,QA,CA){k=+k,z>>>=0,QA>>>=0,CA||XA(this,k,z,QA,Math.pow(2,8*QA)-1,0);var iA=1,gt=0;for(this[z]=255&k;++gt>>=0,QA>>>=0,CA||XA(this,k,z,QA,Math.pow(2,8*QA)-1,0);var iA=QA-1,gt=1;for(this[z+iA]=255&k;--iA>=0&&(gt*=256);)this[z+iA]=k/gt&255;return z+QA},h.prototype.writeUint8=h.prototype.writeUInt8=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,1,255,0),this[z]=255&k,z+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,2,65535,0),this[z]=255&k,this[z+1]=k>>>8,z+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,2,65535,0),this[z]=k>>>8,this[z+1]=255&k,z+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,4,4294967295,0),this[z+3]=k>>>24,this[z+2]=k>>>16,this[z+1]=k>>>8,this[z]=255&k,z+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,4,4294967295,0),this[z]=k>>>24,this[z+1]=k>>>16,this[z+2]=k>>>8,this[z+3]=255&k,z+4},h.prototype.writeBigUInt64LE=Tt(function(k,z){return void 0===z&&(z=0),X(this,k,z,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Tt(function(k,z){return void 0===z&&(z=0),O(this,k,z,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(k,z,QA,CA){if(k=+k,z>>>=0,!CA){var RA=Math.pow(2,8*QA-1);XA(this,k,z,QA,RA-1,-RA)}var iA=0,gt=1,Yt=0;for(this[z]=255&k;++iA>0)-Yt&255;return z+QA},h.prototype.writeIntBE=function(k,z,QA,CA){if(k=+k,z>>>=0,!CA){var RA=Math.pow(2,8*QA-1);XA(this,k,z,QA,RA-1,-RA)}var iA=QA-1,gt=1,Yt=0;for(this[z+iA]=255&k;--iA>=0&&(gt*=256);)k<0&&0===Yt&&0!==this[z+iA+1]&&(Yt=1),this[z+iA]=(k/gt>>0)-Yt&255;return z+QA},h.prototype.writeInt8=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,1,127,-128),k<0&&(k=255+k+1),this[z]=255&k,z+1},h.prototype.writeInt16LE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,2,32767,-32768),this[z]=255&k,this[z+1]=k>>>8,z+2},h.prototype.writeInt16BE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,2,32767,-32768),this[z]=k>>>8,this[z+1]=255&k,z+2},h.prototype.writeInt32LE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,4,2147483647,-2147483648),this[z]=255&k,this[z+1]=k>>>8,this[z+2]=k>>>16,this[z+3]=k>>>24,z+4},h.prototype.writeInt32BE=function(k,z,QA){return k=+k,z>>>=0,QA||XA(this,k,z,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[z]=k>>>24,this[z+1]=k>>>16,this[z+2]=k>>>8,this[z+3]=255&k,z+4},h.prototype.writeBigInt64LE=Tt(function(k,z){return void 0===z&&(z=0),X(this,k,z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Tt(function(k,z){return void 0===z&&(z=0),O(this,k,z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeFloatLE=function(k,z,QA){return W(this,k,z,!0,QA)},h.prototype.writeFloatBE=function(k,z,QA){return W(this,k,z,!1,QA)},h.prototype.writeDoubleLE=function(k,z,QA){return hA(this,k,z,!0,QA)},h.prototype.writeDoubleBE=function(k,z,QA){return hA(this,k,z,!1,QA)},h.prototype.copy=function(k,z,QA,CA){if(!h.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!CA&&0!==CA&&(CA=this.length),z>=k.length&&(z=k.length),z||(z=0),CA>0&&CA=this.length)throw new RangeError("Index out of range");if(CA<0)throw new RangeError("sourceEnd out of bounds");CA>this.length&&(CA=this.length),k.length-z>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(iA=z;iA=QA+4;z-=3)k="_"+H.slice(z-3,z)+k;return""+H.slice(0,z)+k}function it(H,k,z,QA,CA,RA){if(H>z||H3?0===k||k===BigInt(0)?">= 0"+iA+" and < 2"+iA+" ** "+8*(RA+1)+iA:">= -(2"+iA+" ** "+(8*(RA+1)-1)+iA+") and < 2 ** "+(8*(RA+1)-1)+iA:">= "+k+iA+" and <= "+z+iA,new DA.ERR_OUT_OF_RANGE("value",gt,H)}!function GA(H,k,z){st(k,"offset"),(void 0===H[k]||void 0===H[k+z])&&TA(k,H.length-(z+1))}(QA,CA,RA)}function st(H,k){if("number"!=typeof H)throw new DA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,z){throw Math.floor(H)!==H?(st(H,z),new DA.ERR_OUT_OF_RANGE(z||"offset","an integer",H)):k<0?new DA.ERR_BUFFER_OUT_OF_BOUNDS:new DA.ERR_OUT_OF_RANGE(z||"offset",">= "+(z?1:0)+" and <= "+k,H)}nA("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?H+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),nA("ERR_INVALID_ARG_TYPE",function(H,k){return'The "'+H+'" argument must be of type number. Received type '+typeof k},TypeError),nA("ERR_OUT_OF_RANGE",function(H,k,z){var QA='The value of "'+H+'" is out of range.',CA=z;return Number.isInteger(z)&&Math.abs(z)>Math.pow(2,32)?CA=EA(String(z)):"bigint"==typeof z&&(CA=String(z),(z>Math.pow(BigInt(2),BigInt(32))||z<-Math.pow(BigInt(2),BigInt(32)))&&(CA=EA(CA)),CA+="n"),QA+" It must be "+k+". Received "+CA},RangeError);var at=/[^+/0-9A-Za-z-_]/g;function mt(H,k){k=k||1/0;for(var z,QA=H.length,CA=null,RA=[],iA=0;iA55295&&z<57344){if(!CA){if(z>56319){(k-=3)>-1&&RA.push(239,191,189);continue}if(iA+1===QA){(k-=3)>-1&&RA.push(239,191,189);continue}CA=z;continue}if(z<56320){(k-=3)>-1&&RA.push(239,191,189),CA=z;continue}z=65536+(CA-55296<<10|z-56320)}else CA&&(k-=3)>-1&&RA.push(239,191,189);if(CA=null,z<128){if((k-=1)<0)break;RA.push(z)}else if(z<2048){if((k-=2)<0)break;RA.push(z>>6|192,63&z|128)}else if(z<65536){if((k-=3)<0)break;RA.push(z>>12|224,z>>6&63|128,63&z|128)}else{if(!(z<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;RA.push(z>>18|240,z>>12&63|128,z>>6&63|128,63&z|128)}}return RA}function VA(H){return a.toByteArray(function It(H){if((H=(H=H.split("=")[0]).trim().replace(at,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function tt(H,k,z,QA){var CA;for(CA=0;CA=k.length||CA>=H.length);++CA)k[CA+z]=H[CA];return CA}function mA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function dt(H){return H!=H}var ht=function(){for(var H="0123456789abcdef",k=new Array(256),z=0;z<16;++z)for(var QA=16*z,CA=0;CA<16;++CA)k[QA+CA]=H[z]+H[CA];return k}();function Tt(H){return"undefined"==typeof BigInt?HA:H}function HA(){throw new Error("BigInt not supported")}},477:function(S,I,n){"use strict";n(7803),n(1539),S.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(S,I,n){"use strict";var BA,MA,lA,c=n(477),r=n(9781),s=n(7854),l=n(614),f=n(111),a=n(2597),B=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,h=n(7976),g=n(9518),w=n(7674),Q=n(5112),m=n(9711),Y=s.Int8Array,y=Y&&Y.prototype,d=s.Uint8ClampedArray,v=d&&d.prototype,D=Y&&g(Y),R=y&&g(y),N=Object.prototype,F=s.TypeError,b=Q("toStringTag"),P=m("TYPED_ARRAY_TAG"),eA=m("TYPED_ARRAY_CONSTRUCTOR"),sA=c&&!!w&&"Opera"!==B(s.opera),q=!1,cA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},gA={BigInt64Array:8,BigUint64Array:8},FA=function(zA){if(!f(zA))return!1;var XA=B(zA);return a(cA,XA)||a(gA,XA)};for(BA in cA)(lA=(MA=s[BA])&&MA.prototype)?u(lA,eA,MA):sA=!1;for(BA in gA)(lA=(MA=s[BA])&&MA.prototype)&&u(lA,eA,MA);if((!sA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},sA))for(BA in cA)s[BA]&&w(s[BA],D);if((!sA||!R||R===N)&&(R=D.prototype,sA))for(BA in cA)s[BA]&&w(s[BA].prototype,R);if(sA&&g(v)!==R&&w(v,R),r&&!a(R,b))for(BA in q=!0,e(R,b,{get:function(){return f(this)?this[P]:void 0}}),cA)s[BA]&&u(s[BA],P,BA);S.exports={NATIVE_ARRAY_BUFFER_VIEWS:sA,TYPED_ARRAY_CONSTRUCTOR:eA,TYPED_ARRAY_TAG:q&&P,aTypedArray:function(zA){if(FA(zA))return zA;throw F("Target is not a typed array")},aTypedArrayConstructor:function(zA){if(l(zA)&&(!w||h(D,zA)))return zA;throw F(E(zA)+" is not a typed array constructor")},exportTypedArrayMethod:function(zA,XA,X){if(r){if(X)for(var O in cA){var $=s[O];if($&&a($.prototype,zA))try{delete $.prototype[zA]}catch(W){}}(!R[zA]||X)&&C(R,zA,X?XA:sA&&y[zA]||XA)}},exportTypedArrayStaticMethod:function(zA,XA,X){var O,$;if(r){if(w){if(X)for(O in cA)if(($=s[O])&&a($,zA))try{delete $[zA]}catch(W){}if(D[zA]&&!X)return;try{return C(D,zA,X?XA:sA&&D[zA]||XA)}catch(W){}}for(O in cA)($=s[O])&&(!$[zA]||X)&&C($,zA,XA)}},isView:function(zA){if(!f(zA))return!1;var XA=B(zA);return"DataView"===XA||a(cA,XA)||a(gA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:R}},2091:function(S,I,n){"use strict";n(8309);var c=n(7854),r=n(1702),s=n(9781),l=n(477),f=n(6530),a=n(8880),B=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),h=n(7067),g=n(1179),w=n(9518),Q=n(7674),m=n(8006).f,Y=n(3070).f,y=n(1285),d=n(206),v=n(8003),D=n(9909),R=f.PROPER,N=f.CONFIGURABLE,F=D.get,b=D.set,P="ArrayBuffer",eA="DataView",sA="prototype",BA="Wrong index",MA=c[P],lA=MA,cA=lA&&lA[sA],gA=c[eA],xA=gA&&gA[sA],FA=Object.prototype,_=c.Array,pA=c.RangeError,uA=r(y),dA=r([].reverse),SA=g.pack,zA=g.unpack,XA=function(wt){return[255&wt]},X=function(wt){return[255&wt,wt>>8&255]},O=function(wt){return[255&wt,wt>>8&255,wt>>16&255,wt>>24&255]},$=function(wt){return wt[3]<<24|wt[2]<<16|wt[1]<<8|wt[0]},W=function(wt){return SA(wt,23,4)},hA=function(wt){return SA(wt,52,8)},DA=function(wt,OA){Y(wt[sA],OA,{get:function(){return F(this)[OA]}})},nA=function(wt,OA,VA,tt){var mA=h(VA),dt=F(wt);if(mA+OA>dt.byteLength)throw pA(BA);var ht=F(dt.buffer).bytes,Tt=mA+dt.byteOffset,HA=d(ht,Tt,Tt+OA);return tt?HA:dA(HA)},EA=function(wt,OA,VA,tt,mA,dt){var ht=h(VA),Tt=F(wt);if(ht+OA>Tt.byteLength)throw pA(BA);for(var HA=F(Tt.buffer).bytes,H=ht+Tt.byteOffset,k=tt(+mA),z=0;zst;)(TA=it[st++])in lA||a(lA,TA,MA[TA]);cA.constructor=lA}Q&&w(xA)!==FA&&Q(xA,FA);var at=new gA(new lA(2)),It=r(xA.setInt8);at.setInt8(0,2147483648),at.setInt8(1,2147483649),(at.getInt8(0)||!at.getInt8(1))&&B(xA,{setInt8:function(wt,OA){It(this,wt,OA<<24>>24)},setUint8:function(wt,OA){It(this,wt,OA<<24>>24)}},{unsafe:!0})}else cA=(lA=function(wt){u(this,cA);var OA=h(wt);b(this,{bytes:uA(_(OA),0),byteLength:OA}),s||(this.byteLength=OA)})[sA],xA=(gA=function(wt,OA,VA){u(this,xA),u(wt,cA);var tt=F(wt).byteLength,mA=C(OA);if(mA<0||mA>tt)throw pA("Wrong offset");if(mA+(VA=void 0===VA?tt-mA:e(VA))>tt)throw pA("Wrong length");b(this,{buffer:wt,byteLength:VA,byteOffset:mA}),s||(this.buffer=wt,this.byteLength=VA,this.byteOffset=mA)})[sA],s&&(DA(lA,"byteLength"),DA(gA,"buffer"),DA(gA,"byteLength"),DA(gA,"byteOffset")),B(xA,{getInt8:function(wt){return nA(this,1,wt)[0]<<24>>24},getUint8:function(wt){return nA(this,1,wt)[0]},getInt16:function(wt){var OA=nA(this,2,wt,arguments.length>1?arguments[1]:void 0);return(OA[1]<<8|OA[0])<<16>>16},getUint16:function(wt){var OA=nA(this,2,wt,arguments.length>1?arguments[1]:void 0);return OA[1]<<8|OA[0]},getInt32:function(wt){return $(nA(this,4,wt,arguments.length>1?arguments[1]:void 0))},getUint32:function(wt){return $(nA(this,4,wt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(wt){return zA(nA(this,4,wt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(wt){return zA(nA(this,8,wt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(wt,OA){EA(this,1,wt,XA,OA)},setUint8:function(wt,OA){EA(this,1,wt,XA,OA)},setInt16:function(wt,OA){EA(this,2,wt,X,OA,arguments.length>2?arguments[2]:void 0)},setUint16:function(wt,OA){EA(this,2,wt,X,OA,arguments.length>2?arguments[2]:void 0)},setInt32:function(wt,OA){EA(this,4,wt,O,OA,arguments.length>2?arguments[2]:void 0)},setUint32:function(wt,OA){EA(this,4,wt,O,OA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(wt,OA){EA(this,4,wt,W,OA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(wt,OA){EA(this,8,wt,hA,OA,arguments.length>2?arguments[2]:void 0)}});v(lA,P),v(gA,eA),S.exports={ArrayBuffer:lA,DataView:gA}},7803:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(2091),l=n(6340),f="ArrayBuffer",a=s[f];c({global:!0,forced:r[f]!==a},{ArrayBuffer:a}),l(f)},194:function(S,I,n){"use strict";S.exports=function(c){return function(){var r=c,l=r.lib.BlockCipher,f=r.algo,a=[],B=[],E=[],u=[],C=[],e=[],h=[],g=[],w=[],Q=[];!function(){for(var y=[],d=0;d<256;d++)y[d]=d<128?d<<1:d<<1^283;var v=0,D=0;for(d=0;d<256;d++){var R=D^D<<1^D<<2^D<<3^D<<4;a[v]=R=R>>>8^255&R^99,B[R]=v;var P,N=y[v],F=y[N],b=y[F];E[v]=(P=257*y[R]^16843008*R)<<24|P>>>8,u[v]=P<<16|P>>>16,C[v]=P<<8|P>>>24,e[v]=P,h[R]=(P=16843009*b^65537*F^257*N^16843008*v)<<24|P>>>8,g[R]=P<<16|P>>>16,w[R]=P<<8|P>>>24,Q[R]=P,v?(v=N^y[y[y[b^N]]],D^=y[y[D]]):v=D=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],Y=f.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,D=v.words,R=v.sigBytes/4,F=4*((this._nRounds=R+6)+1),b=this._keySchedule=[],P=0;P6&&P%R==4&&(d=a[d>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d]):(d=a[(d=d<<8|d>>>24)>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d],d^=m[P/R|0]<<24),b[P]=b[P-R]^d);for(var eA=this._invKeySchedule=[],sA=0;sA>>24]]^g[a[d>>>16&255]]^w[a[d>>>8&255]]^Q[a[255&d]]}}},encryptBlock:function(d,v){this._doCryptBlock(d,v,this._keySchedule,E,u,C,e,a)},decryptBlock:function(d,v){var D=d[v+1];d[v+1]=d[v+3],d[v+3]=D,this._doCryptBlock(d,v,this._invKeySchedule,h,g,w,Q,B),D=d[v+1],d[v+1]=d[v+3],d[v+3]=D},_doCryptBlock:function(d,v,D,R,N,F,b,P){for(var eA=this._nRounds,sA=d[v]^D[0],q=d[v+1]^D[1],BA=d[v+2]^D[2],MA=d[v+3]^D[3],lA=4,cA=1;cA>>24]^N[q>>>16&255]^F[BA>>>8&255]^b[255&MA]^D[lA++],xA=R[q>>>24]^N[BA>>>16&255]^F[MA>>>8&255]^b[255&sA]^D[lA++],FA=R[BA>>>24]^N[MA>>>16&255]^F[sA>>>8&255]^b[255&q]^D[lA++],_=R[MA>>>24]^N[sA>>>16&255]^F[q>>>8&255]^b[255&BA]^D[lA++];sA=gA,q=xA,BA=FA,MA=_}gA=(P[sA>>>24]<<24|P[q>>>16&255]<<16|P[BA>>>8&255]<<8|P[255&MA])^D[lA++],xA=(P[q>>>24]<<24|P[BA>>>16&255]<<16|P[MA>>>8&255]<<8|P[255&sA])^D[lA++],FA=(P[BA>>>24]<<24|P[MA>>>16&255]<<16|P[sA>>>8&255]<<8|P[255&q])^D[lA++],_=(P[MA>>>24]<<24|P[sA>>>16&255]<<16|P[q>>>8&255]<<8|P[255&BA])^D[lA++],d[v]=gA,d[v+1]=xA,d[v+2]=FA,d[v+3]=_},keySize:8});r.AES=l._createHelper(Y)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(S,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),S.exports=function(c){var s,l,f,a,B,C,h,g,Q,m,Y,d,D,N,F,P,eA;c.lib.Cipher||(a=(l=(s=c).lib).WordArray,C=s.enc.Base64,h=s.algo.EvpKDF,g=l.Cipher=(B=l.BufferedBlockAlgorithm).extend({cfg:(f=l.Base).extend(),createEncryptor:function(q,BA){return this.create(this._ENC_XFORM_MODE,q,BA)},createDecryptor:function(q,BA){return this.create(this._DEC_XFORM_MODE,q,BA)},init:function(q,BA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=q,this._key=BA,this.reset()},reset:function(){B.reset.call(this),this._doReset()},process:function(q){return this._append(q),this._process()},finalize:function(q){return q&&this._append(q),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function sA(q){return"string"==typeof q?eA:F}return function(q){return{encrypt:function(MA,lA,cA){return sA(lA).encrypt(q,MA,lA,cA)},decrypt:function(MA,lA,cA){return sA(lA).decrypt(q,MA,lA,cA)}}}}()}),l.StreamCipher=g.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=s.mode={},m=l.BlockCipherMode=f.extend({createEncryptor:function(q,BA){return this.Encryptor.create(q,BA)},createDecryptor:function(q,BA){return this.Decryptor.create(q,BA)},init:function(q,BA){this._cipher=q,this._iv=BA}}),Y=Q.CBC=function(){var sA=m.extend();function q(BA,MA,lA){var cA,gA=this._iv;gA?(cA=gA,this._iv=undefined):cA=this._prevBlock;for(var xA=0;xA>>2]}},l.BlockCipher=g.extend({cfg:g.cfg.extend({mode:Y,padding:d}),reset:function(){var q;g.reset.call(this);var BA=this.cfg,MA=BA.iv,lA=BA.mode;this._xformMode==this._ENC_XFORM_MODE?q=lA.createEncryptor:(q=lA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==q?this._mode.init(this,MA&&MA.words):(this._mode=q.call(lA,this,MA&&MA.words),this._mode.__creator=q)},_doProcessBlock:function(q,BA){this._mode.processBlock(q,BA)},_doFinalize:function(){var q,BA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(BA.pad(this._data,this.blockSize),q=this._process(!0)):(q=this._process(!0),BA.unpad(q)),q},blockSize:4}),D=l.CipherParams=f.extend({init:function(q){this.mixIn(q)},toString:function(q){return(q||this.formatter).stringify(this)}}),N=(s.format={}).OpenSSL={stringify:function(q){var MA=q.ciphertext,lA=q.salt;return(lA?a.create([1398893684,1701076831]).concat(lA).concat(MA):MA).toString(C)},parse:function(q){var BA,MA=C.parse(q),lA=MA.words;return 1398893684==lA[0]&&1701076831==lA[1]&&(BA=a.create(lA.slice(2,4)),lA.splice(0,4),MA.sigBytes-=16),D.create({ciphertext:MA,salt:BA})}},F=l.SerializableCipher=f.extend({cfg:f.extend({format:N}),encrypt:function(q,BA,MA,lA){lA=this.cfg.extend(lA);var cA=q.createEncryptor(MA,lA),gA=cA.finalize(BA),xA=cA.cfg;return D.create({ciphertext:gA,key:MA,iv:xA.iv,algorithm:q,mode:xA.mode,padding:xA.padding,blockSize:q.blockSize,formatter:lA.format})},decrypt:function(q,BA,MA,lA){return lA=this.cfg.extend(lA),BA=this._parse(BA,lA.format),q.createDecryptor(MA,lA).finalize(BA.ciphertext)},_parse:function(q,BA){return"string"==typeof q?BA.parse(q,this):q}}),P=(s.kdf={}).OpenSSL={execute:function(q,BA,MA,lA){lA||(lA=a.random(8));var cA=h.create({keySize:BA+MA}).compute(q,lA),gA=a.create(cA.words.slice(BA),4*MA);return cA.sigBytes=4*BA,D.create({key:cA,iv:gA,salt:lA})}},eA=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:P}),encrypt:function(q,BA,MA,lA){var cA=(lA=this.cfg.extend(lA)).kdf.execute(MA,q.keySize,q.ivSize);lA.iv=cA.iv;var gA=F.encrypt.call(this,q,BA,cA.key,lA);return gA.mixIn(cA),gA},decrypt:function(q,BA,MA,lA){lA=this.cfg.extend(lA),BA=this._parse(BA,lA.format);var cA=lA.kdf.execute(MA,q.keySize,q.ivSize,BA.salt);return lA.iv=cA.iv,F.decrypt.call(this,q,BA,cA.key,lA)}}))}(n(757),n(3839))},757:function(S,I,n){"use strict";var r;n(5743),n(6992),n(1539),n(9135),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9714),n(7042),n(9600),n(2222),n(561),r=function(){var c=c||function(r,s){var l;if("undefined"!=typeof window&&window.crypto&&(l=window.crypto),"undefined"!=typeof self&&self.crypto&&(l=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(l=globalThis.crypto),!l&&"undefined"!=typeof window&&window.msCrypto&&(l=window.msCrypto),!l&&void 0!==n.g&&n.g.crypto&&(l=n.g.crypto),!l)try{l=n(2480)}catch(y){}var f=function(){if(l){if("function"==typeof l.getRandomValues)try{return l.getRandomValues(new Uint32Array(1))[0]}catch(d){}if("function"==typeof l.randomBytes)try{return l.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(d){var v;return y.prototype=d,v=new y,y.prototype=null,v}}(),B={},E=B.lib={},u=E.Base={extend:function(d){var v=a(this);return d&&v.mixIn(d),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var v in d)d.hasOwnProperty(v)&&(this[v]=d[v]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},C=E.WordArray=u.extend({init:function(d,v){d=this.words=d||[],this.sigBytes=null!=v?v:4*d.length},toString:function(d){return(d||h).stringify(this)},concat:function(d){var v=this.words,D=d.words,R=this.sigBytes,N=d.sigBytes;if(this.clamp(),R%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(R+F)%4*8;else for(var P=0;P>>2]=D[P>>>2];return this.sigBytes+=N,this},clamp:function(){var d=this.words,v=this.sigBytes;d[v>>>2]&=4294967295<<32-v%4*8,d.length=r.ceil(v/4)},clone:function(){var d=u.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var v=[],D=0;D>>2]>>>24-N%4*8&255;R.push((F>>>4).toString(16)),R.push((15&F).toString(16))}return R.join("")},parse:function(d){for(var v=d.length,D=[],R=0;R>>3]|=parseInt(d.substr(R,2),16)<<24-R%8*4;return new C.init(D,v/2)}},g=e.Latin1={stringify:function(d){for(var v=d.words,D=d.sigBytes,R=[],N=0;N>>2]>>>24-N%4*8&255));return R.join("")},parse:function(d){for(var v=d.length,D=[],R=0;R>>2]|=(255&d.charCodeAt(R))<<24-R%4*8;return new C.init(D,v)}},w=e.Utf8={stringify:function(d){try{return decodeURIComponent(escape(g.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return g.parse(unescape(encodeURIComponent(d)))}},Q=E.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(d){"string"==typeof d&&(d=w.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var v,D=this._data,R=D.words,N=D.sigBytes,F=this.blockSize,P=N/(4*F),eA=(P=d?r.ceil(P):r.max((0|P)-this._minBufferSize,0))*F,sA=r.min(4*eA,N);if(eA){for(var q=0;q>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,d=0;d<4&&w+.75*d>>6*(3-d)&63));var v=h.charAt(64);if(v)for(;g.length%4;)g.push(v);return g.join("")},parse:function(u){var C=u.length,e=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g>>6-g%4*2;e[h>>>2]|=(w|Q)<<24-h%4*8,h++}return l.create(e,h)}(u,C,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64;var l}(n(757))},7590:function(S,I,n){"use strict";n(9600),S.exports=function(c){return l=c.lib.WordArray,c.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,h=u.sigBytes,g=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,v=0;v<4&&Q+.75*v>>6*(3-v)&63));var D=g.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,h=C?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var w=0;w>>6-g%4*2;e[h>>>2]|=(w|Q)<<24-h%4*8,h++}return l.create(e,h)}(u,e,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(S,I,n){"use strict";n(9600),S.exports=function(c){return function(){var l=c.lib.WordArray,f=c.enc;function B(E){return E<<8&4278255360|E>>>8&16711935}f.Utf16=f.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,h=[],g=0;g>>2]>>>16-g%4*8&65535));return h.join("")},parse:function(u){for(var C=u.length,e=[],h=0;h>>1]|=u.charCodeAt(h)<<16-h%2*16;return l.create(e,2*C)}},f.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,h=[],g=0;g>>2]>>>16-g%4*8&65535);h.push(String.fromCharCode(w))}return h.join("")},parse:function(u){for(var C=u.length,e=[],h=0;h>>1]|=B(u.charCodeAt(h)<<16-h%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(S,I,n){"use strict";n(2222),S.exports=function(c){return f=(s=(r=c).lib).WordArray,E=(a=r.algo).EvpKDF=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var h,g=this.cfg,w=g.hasher.create(),Q=f.create(),m=Q.words,Y=g.keySize,y=g.iterations;m.lengthg&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),m=w.words,Y=Q.words,y=0;y>>2]|=B[C]<<24-C%4*8;f.call(this,u,E)}else f.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},S.exports=r(n(757))},3440:function(S,I,n){"use strict";S.exports=function(c){return function(r){var s=c,l=s.lib,f=l.WordArray,a=l.Hasher,B=s.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*r.abs(r.sin(w+1))|0}();var u=B.MD5=a.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,m){for(var Y=0;Y<16;Y++){var y=m+Y,d=Q[y];Q[y]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var v=this._hash.words,D=Q[m+0],R=Q[m+1],N=Q[m+2],F=Q[m+3],b=Q[m+4],P=Q[m+5],eA=Q[m+6],sA=Q[m+7],q=Q[m+8],BA=Q[m+9],MA=Q[m+10],lA=Q[m+11],cA=Q[m+12],gA=Q[m+13],xA=Q[m+14],FA=Q[m+15],_=v[0],pA=v[1],uA=v[2],dA=v[3];_=C(_,pA,uA,dA,D,7,E[0]),dA=C(dA,_,pA,uA,R,12,E[1]),uA=C(uA,dA,_,pA,N,17,E[2]),pA=C(pA,uA,dA,_,F,22,E[3]),_=C(_,pA,uA,dA,b,7,E[4]),dA=C(dA,_,pA,uA,P,12,E[5]),uA=C(uA,dA,_,pA,eA,17,E[6]),pA=C(pA,uA,dA,_,sA,22,E[7]),_=C(_,pA,uA,dA,q,7,E[8]),dA=C(dA,_,pA,uA,BA,12,E[9]),uA=C(uA,dA,_,pA,MA,17,E[10]),pA=C(pA,uA,dA,_,lA,22,E[11]),_=C(_,pA,uA,dA,cA,7,E[12]),dA=C(dA,_,pA,uA,gA,12,E[13]),uA=C(uA,dA,_,pA,xA,17,E[14]),_=e(_,pA=C(pA,uA,dA,_,FA,22,E[15]),uA,dA,R,5,E[16]),dA=e(dA,_,pA,uA,eA,9,E[17]),uA=e(uA,dA,_,pA,lA,14,E[18]),pA=e(pA,uA,dA,_,D,20,E[19]),_=e(_,pA,uA,dA,P,5,E[20]),dA=e(dA,_,pA,uA,MA,9,E[21]),uA=e(uA,dA,_,pA,FA,14,E[22]),pA=e(pA,uA,dA,_,b,20,E[23]),_=e(_,pA,uA,dA,BA,5,E[24]),dA=e(dA,_,pA,uA,xA,9,E[25]),uA=e(uA,dA,_,pA,F,14,E[26]),pA=e(pA,uA,dA,_,q,20,E[27]),_=e(_,pA,uA,dA,gA,5,E[28]),dA=e(dA,_,pA,uA,N,9,E[29]),uA=e(uA,dA,_,pA,sA,14,E[30]),_=h(_,pA=e(pA,uA,dA,_,cA,20,E[31]),uA,dA,P,4,E[32]),dA=h(dA,_,pA,uA,q,11,E[33]),uA=h(uA,dA,_,pA,lA,16,E[34]),pA=h(pA,uA,dA,_,xA,23,E[35]),_=h(_,pA,uA,dA,R,4,E[36]),dA=h(dA,_,pA,uA,b,11,E[37]),uA=h(uA,dA,_,pA,sA,16,E[38]),pA=h(pA,uA,dA,_,MA,23,E[39]),_=h(_,pA,uA,dA,gA,4,E[40]),dA=h(dA,_,pA,uA,D,11,E[41]),uA=h(uA,dA,_,pA,F,16,E[42]),pA=h(pA,uA,dA,_,eA,23,E[43]),_=h(_,pA,uA,dA,BA,4,E[44]),dA=h(dA,_,pA,uA,cA,11,E[45]),uA=h(uA,dA,_,pA,FA,16,E[46]),_=g(_,pA=h(pA,uA,dA,_,N,23,E[47]),uA,dA,D,6,E[48]),dA=g(dA,_,pA,uA,sA,10,E[49]),uA=g(uA,dA,_,pA,xA,15,E[50]),pA=g(pA,uA,dA,_,P,21,E[51]),_=g(_,pA,uA,dA,cA,6,E[52]),dA=g(dA,_,pA,uA,F,10,E[53]),uA=g(uA,dA,_,pA,MA,15,E[54]),pA=g(pA,uA,dA,_,R,21,E[55]),_=g(_,pA,uA,dA,q,6,E[56]),dA=g(dA,_,pA,uA,FA,10,E[57]),uA=g(uA,dA,_,pA,eA,15,E[58]),pA=g(pA,uA,dA,_,gA,21,E[59]),_=g(_,pA,uA,dA,b,6,E[60]),dA=g(dA,_,pA,uA,lA,10,E[61]),uA=g(uA,dA,_,pA,N,15,E[62]),pA=g(pA,uA,dA,_,BA,21,E[63]),v[0]=v[0]+_|0,v[1]=v[1]+pA|0,v[2]=v[2]+uA|0,v[3]=v[3]+dA|0},_doFinalize:function(){var Q=this._data,m=Q.words,Y=8*this._nDataBytes,y=8*Q.sigBytes;m[y>>>5]|=128<<24-y%32;var d=r.floor(Y/4294967296),v=Y;m[15+(y+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),m[14+(y+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),Q.sigBytes=4*(m.length+1),this._process();for(var D=this._hash,R=D.words,N=0;N<4;N++){var F=R[N];R[N]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return D},clone:function(){var Q=a.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,m,Y,y,d,v){var D=w+(Q&m|~Q&Y)+y+v;return(D<>>32-d)+Q}function e(w,Q,m,Y,y,d,v){var D=w+(Q&Y|m&~Y)+y+v;return(D<>>32-d)+Q}function h(w,Q,m,Y,y,d,v){var D=w+(Q^m^Y)+y+v;return(D<>>32-d)+Q}function g(w,Q,m,Y,y,d,v){var D=w+(m^(Q|~Y))+y+v;return(D<>>32-d)+Q}s.MD5=a._createHelper(u),s.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(S,I,n){"use strict";n(7042),S.exports=function(c){return c.mode.CFB=function(){var r=c.lib.BlockCipherMode.extend();function s(l,f,a,B){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,B.encryptBlock(E,0);for(var C=0;C>24&255)){var B=a>>16&255,E=a>>8&255,u=255&a;255===B?(B=0,255===E?(E=0,255===u?u=0:++u):++E):++B,a=0,a+=B<<16,a+=E<<8,a+=u}else a+=16777216;return a}var f=r.Encryptor=r.extend({processBlock:function(B,E){var u=this._cipher,C=u.blockSize,e=this._iv,h=this._counter;e&&(h=this._counter=e.slice(0),this._iv=void 0),function l(a){return 0===(a[0]=s(a[0]))&&(a[1]=s(a[1])),a}(h);var g=h.slice(0);u.encryptBlock(g,0);for(var w=0;w>>2]|=B<<24-E%4*8,s.sigBytes+=B},unpad:function(s){s.sigBytes-=255&s.words[s.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(S,I,n){"use strict";n(2222),S.exports=function(c){return c.pad.Iso10126={pad:function(s,l){var f=4*l,a=f-s.sigBytes%f;s.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(s){s.sigBytes-=255&s.words[s.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(S,I,n){"use strict";n(2222),S.exports=function(c){return c.pad.Iso97971={pad:function(s,l){s.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(s,l)},unpad:function(s){c.pad.ZeroPadding.unpad(s),s.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(S,I,n){"use strict";S.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(S,I,n){"use strict";S.exports=function(c){return c.pad.ZeroPadding={pad:function(s,l){var f=4*l;s.clamp(),s.sigBytes+=f-(s.sigBytes%f||f)},unpad:function(s){var l=s.words,f=s.sigBytes-1;for(f=s.sigBytes-1;f>=0;f--)if(l[f>>>2]>>>24-f%4*8&255){s.sigBytes=f+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(S,I,n){"use strict";n(2222),S.exports=function(c){return f=(s=(r=c).lib).WordArray,E=(a=r.algo).HMAC,u=a.PBKDF2=(l=s.Base).extend({cfg:l.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,h){for(var g=this.cfg,w=E.create(g.hasher,e),Q=f.create(),m=f.create([1]),Y=Q.words,y=m.words,d=g.keySize,v=g.iterations;Y.length>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],Q=this._C=[h[2]<<16|h[2]>>>16,4294901760&h[0]|65535&h[1],h[3]<<16|h[3]>>>16,4294901760&h[1]|65535&h[2],h[0]<<16|h[0]>>>16,4294901760&h[2]|65535&h[3],h[1]<<16|h[1]>>>16,4294901760&h[3]|65535&h[0]];this._b=0;for(var m=0;m<4;m++)C.call(this);for(m=0;m<8;m++)Q[m]^=w[m+4&7];if(g){var Y=g.words,y=Y[0],d=Y[1],v=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),R=v>>>16|4294901760&D,N=D<<16|65535&v;for(Q[0]^=v,Q[1]^=R,Q[2]^=D,Q[3]^=N,Q[4]^=v,Q[5]^=R,Q[6]^=D,Q[7]^=N,m=0;m<4;m++)C.call(this)}},_doProcessBlock:function(h,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),h[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,h=this._C,g=0;g<8;g++)B[g]=h[g];for(h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+h[g],Q=65535&w,m=w>>>16;E[g]=((Q*Q>>>17)+Q*m>>>15)+m*m^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}r.RabbitLegacy=l._createHelper(u)}(),c.RabbitLegacy}(n(757),n(7508),n(3440),n(3839),n(1582))},5323:function(S,I,n){"use strict";S.exports=function(c){return function(){var r=c,l=r.lib.StreamCipher,a=[],B=[],E=[],u=r.algo.Rabbit=l.extend({_doReset:function(){for(var h=this._key.words,g=this.cfg.iv,w=0;w<4;w++)h[w]=16711935&(h[w]<<8|h[w]>>>24)|4278255360&(h[w]<<24|h[w]>>>8);var Q=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],m=this._C=[h[2]<<16|h[2]>>>16,4294901760&h[0]|65535&h[1],h[3]<<16|h[3]>>>16,4294901760&h[1]|65535&h[2],h[0]<<16|h[0]>>>16,4294901760&h[2]|65535&h[3],h[1]<<16|h[1]>>>16,4294901760&h[3]|65535&h[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)m[w]^=Q[w+4&7];if(g){var Y=g.words,y=Y[0],d=Y[1],v=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),R=v>>>16|4294901760&D,N=D<<16|65535&v;for(m[0]^=v,m[1]^=R,m[2]^=D,m[3]^=N,m[4]^=v,m[5]^=R,m[6]^=D,m[7]^=N,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(h,g){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),h[g+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,h=this._C,g=0;g<8;g++)B[g]=h[g];for(h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+h[g],Q=65535&w,m=w>>>16;E[g]=((Q*Q>>>17)+Q*m>>>15)+m*m^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}r.Rabbit=l._createHelper(u)}(),c.Rabbit}(n(757),n(7508),n(3440),n(3839),n(1582))},4640:function(S,I,n){"use strict";n(1539),n(8674),S.exports=function(c){return function(){var r=c,l=r.lib.StreamCipher,f=r.algo,a=f.RC4=l.extend({_doReset:function(){for(var C=this._key,e=C.words,h=C.sigBytes,g=this._S=[],w=0;w<256;w++)g[w]=w;w=0;for(var Q=0;w<256;w++){var m=w%h,y=g[w];g[w]=g[Q=(Q+g[w]+(e[m>>>2]>>>24-m%4*8&255))%256],g[Q]=y}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=B.call(this)},keySize:8,ivSize:0});function B(){for(var u=this._S,C=this._i,e=this._j,h=0,g=0;g<4;g++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,h|=u[(u[C]+u[e])%256]<<24-8*g}return this._i=C,this._j=e,h}r.RC4=l._createHelper(a);var E=f.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)B.call(this)}});r.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(S,I,n){"use strict";S.exports=function(c){return function(r){var s=c,l=s.lib,f=l.WordArray,a=l.Hasher,B=s.algo,E=f.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=f.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=f.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),e=f.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=f.create([0,1518500249,1859775393,2400959708,2840853838]),g=f.create([1352829926,1548603684,1836072691,2053994217,0]),w=B.RIPEMD160=a.extend({_doReset:function(){this._hash=f.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(R,N){for(var F=0;F<16;F++){var b=N+F,P=R[b];R[b]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}var gA,xA,FA,_,pA,uA,dA,SA,zA,XA,X,eA=this._hash.words,sA=h.words,q=g.words,BA=E.words,MA=u.words,lA=C.words,cA=e.words;for(uA=gA=eA[0],dA=xA=eA[1],SA=FA=eA[2],zA=_=eA[3],XA=pA=eA[4],F=0;F<80;F+=1)X=gA+R[N+BA[F]]|0,X+=F<16?Q(xA,FA,_)+sA[0]:F<32?m(xA,FA,_)+sA[1]:F<48?Y(xA,FA,_)+sA[2]:F<64?y(xA,FA,_)+sA[3]:d(xA,FA,_)+sA[4],X=(X=v(X|=0,lA[F]))+pA|0,gA=pA,pA=_,_=v(FA,10),FA=xA,xA=X,X=uA+R[N+MA[F]]|0,X+=F<16?d(dA,SA,zA)+q[0]:F<32?y(dA,SA,zA)+q[1]:F<48?Y(dA,SA,zA)+q[2]:F<64?m(dA,SA,zA)+q[3]:Q(dA,SA,zA)+q[4],X=(X=v(X|=0,cA[F]))+XA|0,uA=XA,XA=zA,zA=v(SA,10),SA=dA,dA=X;X=eA[1]+FA+zA|0,eA[1]=eA[2]+_+XA|0,eA[2]=eA[3]+pA+uA|0,eA[3]=eA[4]+gA+dA|0,eA[4]=eA[0]+xA+SA|0,eA[0]=X},_doFinalize:function(){var R=this._data,N=R.words,F=8*this._nDataBytes,b=8*R.sigBytes;N[b>>>5]|=128<<24-b%32,N[14+(b+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),R.sigBytes=4*(N.length+1),this._process();for(var P=this._hash,eA=P.words,sA=0;sA<5;sA++){var q=eA[sA];eA[sA]=16711935&(q<<8|q>>>24)|4278255360&(q<<24|q>>>8)}return P},clone:function(){var R=a.clone.call(this);return R._hash=this._hash.clone(),R}});function Q(D,R,N){return D^R^N}function m(D,R,N){return D&R|~D&N}function Y(D,R,N){return(D|~R)^N}function y(D,R,N){return D&N|R&~N}function d(D,R,N){return D^(R|~N)}function v(D,R){return D<>>32-R}s.RIPEMD160=a._createHelper(w),s.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(S,I,n){"use strict";S.exports=function(c){return l=(s=(r=c).lib).WordArray,B=[],E=r.algo.SHA1=(f=s.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var h=this._hash.words,g=h[0],w=h[1],Q=h[2],m=h[3],Y=h[4],y=0;y<80;y++){if(y<16)B[y]=0|C[e+y];else{var d=B[y-3]^B[y-8]^B[y-14]^B[y-16];B[y]=d<<1|d>>>31}var v=(g<<5|g>>>27)+Y+B[y];v+=y<20?1518500249+(w&Q|~w&m):y<40?1859775393+(w^Q^m):y<60?(w&Q|w&m|Q&m)-1894007588:(w^Q^m)-899497514,Y=m,m=Q,Q=w<<30|w>>>2,w=g,g=v}h[0]=h[0]+g|0,h[1]=h[1]+w|0,h[2]=h[2]+Q|0,h[3]=h[3]+m|0,h[4]=h[4]+Y|0},_doFinalize:function(){var C=this._data,e=C.words,h=8*this._nDataBytes,g=8*C.sigBytes;return e[g>>>5]|=128<<24-g%32,e[14+(g+64>>>9<<4)]=Math.floor(h/4294967296),e[15+(g+64>>>9<<4)]=h,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=f.clone.call(this);return C._hash=this._hash.clone(),C}}),r.SHA1=f._createHelper(E),r.HmacSHA1=f._createHmacHelper(E),c.SHA1;var r,s,l,f,B,E}(n(757))},6876:function(S,I,n){"use strict";S.exports=function(c){return l=(r=c).lib.WordArray,B=(f=r.algo).SHA224=(a=f.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}}),r.SHA224=a._createHelper(B),r.HmacSHA224=a._createHmacHelper(B),c.SHA224;var r,l,f,a,B}(n(757),n(8921))},8921:function(S,I,n){"use strict";n(7042),S.exports=function(c){return function(r){var s=c,l=s.lib,f=l.WordArray,a=l.Hasher,B=s.algo,E=[],u=[];!function(){function h(m){for(var Y=r.sqrt(m),y=2;y<=Y;y++)if(!(m%y))return!1;return!0}function g(m){return 4294967296*(m-(0|m))|0}for(var w=2,Q=0;Q<64;)h(w)&&(Q<8&&(E[Q]=g(r.pow(w,.5))),u[Q]=g(r.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=B.SHA256=a.extend({_doReset:function(){this._hash=new f.init(E.slice(0))},_doProcessBlock:function(g,w){for(var Q=this._hash.words,m=Q[0],Y=Q[1],y=Q[2],d=Q[3],v=Q[4],D=Q[5],R=Q[6],N=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|g[w+F];else{var b=C[F-15],eA=C[F-2];C[F]=((b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3)+C[F-7]+((eA<<15|eA>>>17)^(eA<<13|eA>>>19)^eA>>>10)+C[F-16]}var BA=m&Y^m&y^Y&y,cA=N+((v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25))+(v&D^~v&R)+u[F]+C[F];N=R,R=D,D=v,v=d+cA|0,d=y,y=Y,Y=m,m=cA+(((m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22))+BA)|0}Q[0]=Q[0]+m|0,Q[1]=Q[1]+Y|0,Q[2]=Q[2]+y|0,Q[3]=Q[3]+d|0,Q[4]=Q[4]+v|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+R|0,Q[7]=Q[7]+N|0},_doFinalize:function(){var g=this._data,w=g.words,Q=8*this._nDataBytes,m=8*g.sigBytes;return w[m>>>5]|=128<<24-m%32,w[14+(m+64>>>9<<4)]=r.floor(Q/4294967296),w[15+(m+64>>>9<<4)]=Q,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=a._createHelper(e),s.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(S,I,n){"use strict";n(7042),S.exports=function(c){return function(r){var s=c,l=s.lib,f=l.WordArray,a=l.Hasher,E=s.x64.Word,u=s.algo,C=[],e=[],h=[];!function(){for(var Q=1,m=0,Y=0;Y<24;Y++){C[Q+5*m]=(Y+1)*(Y+2)/2%64;var d=(2*Q+3*m)%5;Q=m%5,m=d}for(Q=0;Q<5;Q++)for(m=0;m<5;m++)e[Q+5*m]=m+(2*Q+3*m)%5*5;for(var v=1,D=0;D<24;D++){for(var R=0,N=0,F=0;F<7;F++){if(1&v){var b=(1<>>24)|4278255360&(D<<24|D>>>8),(N=y[v]).high^=R=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),N.low^=D}for(var F=0;F<24;F++){for(var b=0;b<5;b++){for(var P=0,eA=0,sA=0;sA<5;sA++)P^=(N=y[b+5*sA]).high,eA^=N.low;var q=g[b];q.high=P,q.low=eA}for(b=0;b<5;b++){var BA=g[(b+4)%5],MA=g[(b+1)%5],lA=MA.high,cA=MA.low;for(P=BA.high^(lA<<1|cA>>>31),eA=BA.low^(cA<<1|lA>>>31),sA=0;sA<5;sA++)(N=y[b+5*sA]).high^=P,N.low^=eA}for(var gA=1;gA<25;gA++){var xA=(N=y[gA]).high,FA=N.low,_=C[gA];_<32?(P=xA<<_|FA>>>32-_,eA=FA<<_|xA>>>32-_):(P=FA<<_-32|xA>>>64-_,eA=xA<<_-32|FA>>>64-_);var pA=g[e[gA]];pA.high=P,pA.low=eA}var uA=g[0],dA=y[0];for(uA.high=dA.high,uA.low=dA.low,b=0;b<5;b++)for(sA=0;sA<5;sA++){var SA=g[gA=b+5*sA],zA=g[(b+1)%5+5*sA],XA=g[(b+2)%5+5*sA];(N=y[gA]).high=SA.high^~zA.high&XA.high,N.low=SA.low^~zA.low&XA.low}var N,X=h[F];(N=y[0]).high^=X.high,N.low^=X.low}},_doFinalize:function(){var m=this._data,Y=m.words,d=8*m.sigBytes,v=32*this.blockSize;Y[d>>>5]|=1<<24-d%32,Y[(r.ceil((d+1)/v)*v>>>5)-1]|=128,m.sigBytes=4*Y.length,this._process();for(var D=this._state,R=this.cfg.outputLength/8,N=R/8,F=[],b=0;b>>24)|4278255360&(eA<<24|eA>>>8),F.push(sA=16711935&(sA<<8|sA>>>24)|4278255360&(sA<<24|sA>>>8)),F.push(eA)}return new f.init(F,R)},clone:function(){for(var m=a.clone.call(this),Y=m._state=this._state.slice(0),y=0;y<25;y++)Y[y]=Y[y].clone();return m}});s.SHA3=a._createHelper(w),s.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(S,I,n){"use strict";S.exports=function(c){return l=(s=(r=c).x64).Word,f=s.WordArray,E=(a=r.algo).SHA384=(B=a.SHA512).extend({_doReset:function(){this._hash=new f.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var C=B._doFinalize.call(this);return C.sigBytes-=16,C}}),r.SHA384=B._createHelper(E),r.HmacSHA384=B._createHmacHelper(E),c.SHA384;var r,s,l,f,a,B,E}(n(757),n(2601),n(7991))},7991:function(S,I,n){"use strict";var r;r=function(c){return function(){var r=c,l=r.lib.Hasher,f=r.x64,a=f.Word,B=f.WordArray,E=r.algo;function u(){return a.create.apply(a,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var g=0;g<80;g++)e[g]=u()}();var h=E.SHA512=l.extend({_doReset:function(){this._hash=new B.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var m=this._hash.words,Y=m[0],y=m[1],d=m[2],v=m[3],D=m[4],R=m[5],N=m[6],F=m[7],b=Y.high,P=Y.low,eA=y.high,sA=y.low,q=d.high,BA=d.low,MA=v.high,lA=v.low,cA=D.high,gA=D.low,xA=R.high,FA=R.low,_=N.high,pA=N.low,uA=F.high,dA=F.low,SA=b,zA=P,XA=eA,X=sA,O=q,$=BA,W=MA,hA=lA,DA=cA,nA=gA,EA=xA,GA=FA,it=_,st=pA,TA=uA,at=dA,It=0;It<80;It++){var mt,wt,OA=e[It];if(It<16)wt=OA.high=0|w[Q+2*It],mt=OA.low=0|w[Q+2*It+1];else{var VA=e[It-15],tt=VA.high,mA=VA.low,ht=(mA>>>1|tt<<31)^(mA>>>8|tt<<24)^(mA>>>7|tt<<25),Tt=e[It-2],HA=Tt.high,H=Tt.low,z=(H>>>19|HA<<13)^(H<<3|HA>>>29)^(H>>>6|HA<<26),QA=e[It-7],iA=e[It-16],Yt=iA.low;OA.high=wt=(wt=(wt=((tt>>>1|mA<<31)^(tt>>>8|mA<<24)^tt>>>7)+QA.high+((mt=ht+QA.low)>>>0>>0?1:0))+((HA>>>19|H<<13)^(HA<<3|H>>>29)^HA>>>6)+((mt+=z)>>>0>>0?1:0))+iA.high+((mt+=Yt)>>>0>>0?1:0),OA.low=mt}var oe,j=DA&EA^~DA&it,qA=nA&GA^~nA&st,kA=SA&XA^SA&O^XA&O,lt=(zA>>>28|SA<<4)^(zA<<30|SA>>>2)^(zA<<25|SA>>>7),Lt=C[It],Ge=Lt.low,ne=TA+((DA>>>14|nA<<18)^(DA>>>18|nA<<14)^(DA<<23|nA>>>9))+((oe=at+((nA>>>14|DA<<18)^(nA>>>18|DA<<14)^(nA<<23|DA>>>9)))>>>0>>0?1:0),Fe=lt+(zA&X^zA&$^X&$);TA=it,at=st,it=EA,st=GA,EA=DA,GA=nA,DA=W+(ne=(ne=(ne=ne+j+((oe+=qA)>>>0>>0?1:0))+Lt.high+((oe+=Ge)>>>0>>0?1:0))+wt+((oe+=mt)>>>0>>0?1:0))+((nA=hA+oe|0)>>>0>>0?1:0)|0,W=O,hA=$,O=XA,$=X,XA=SA,X=zA,SA=ne+(((SA>>>28|zA<<4)^(SA<<30|zA>>>2)^(SA<<25|zA>>>7))+kA+(Fe>>>0>>0?1:0))+((zA=oe+Fe|0)>>>0>>0?1:0)|0}P=Y.low=P+zA,Y.high=b+SA+(P>>>0>>0?1:0),sA=y.low=sA+X,y.high=eA+XA+(sA>>>0>>0?1:0),BA=d.low=BA+$,d.high=q+O+(BA>>>0<$>>>0?1:0),lA=v.low=lA+hA,v.high=MA+W+(lA>>>0>>0?1:0),gA=D.low=gA+nA,D.high=cA+DA+(gA>>>0>>0?1:0),FA=R.low=FA+GA,R.high=xA+EA+(FA>>>0>>0?1:0),pA=N.low=pA+st,N.high=_+it+(pA>>>0>>0?1:0),dA=F.low=dA+at,F.high=uA+TA+(dA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,m=8*this._nDataBytes,Y=8*w.sigBytes;return Q[Y>>>5]|=128<<24-Y%32,Q[30+(Y+128>>>10<<5)]=Math.floor(m/4294967296),Q[31+(Y+128>>>10<<5)]=m,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});r.SHA512=l._createHelper(h),r.HmacSHA512=l._createHmacHelper(h)}(),c.SHA512},S.exports=r(n(757),n(2601))},8437:function(S,I,n){"use strict";n(7042),S.exports=function(c){return function(){var r=c,s=r.lib,l=s.WordArray,f=s.BlockCipher,a=r.algo,B=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],E=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],e=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=f.extend({_doReset:function(){for(var y=this._key.words,d=[],v=0;v<56;v++){var D=B[v]-1;d[v]=y[D>>>5]>>>31-D%32&1}for(var R=this._subKeys=[],N=0;N<16;N++){var F=R[N]=[],b=u[N];for(v=0;v<24;v++)F[v/6|0]|=d[(E[v]-1+b)%28]<<31-v%6,F[4+(v/6|0)]|=d[28+(E[v+24]-1+b)%28]<<31-v%6;for(F[0]=F[0]<<1|F[0]>>>31,v=1;v<7;v++)F[v]=F[v]>>>4*(v-1)+3;F[7]=F[7]<<5|F[7]>>>27}var P=this._invSubKeys=[];for(v=0;v<16;v++)P[v]=R[15-v]},encryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._subKeys)},decryptBlock:function(Y,y){this._doCryptBlock(Y,y,this._invSubKeys)},_doCryptBlock:function(Y,y,d){this._lBlock=Y[y],this._rBlock=Y[y+1],g.call(this,4,252645135),g.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),g.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=d[v],R=this._lBlock,N=this._rBlock,F=0,b=0;b<8;b++)F|=C[b][((N^D[b])&e[b])>>>0];this._lBlock=N,this._rBlock=R^F}var P=this._lBlock;this._lBlock=this._rBlock,this._rBlock=P,g.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),Y[y]=this._lBlock,Y[y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function g(m,Y){var y=(this._lBlock>>>m^this._rBlock)&Y;this._rBlock^=y,this._lBlock^=y<>>m^this._lBlock)&Y;this._lBlock^=y,this._rBlock^=y<192.");var d=y.slice(0,2),v=y.length<4?y.slice(0,2):y.slice(2,4),D=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=h.createEncryptor(l.create(d)),this._des2=h.createEncryptor(l.create(v)),this._des3=h.createEncryptor(l.create(D))},encryptBlock:function(Y,y){this._des1.encryptBlock(Y,y),this._des2.decryptBlock(Y,y),this._des3.encryptBlock(Y,y)},decryptBlock:function(Y,y){this._des3.decryptBlock(Y,y),this._des2.encryptBlock(Y,y),this._des1.decryptBlock(Y,y)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=f._createHelper(Q)}(),c.TripleDES}(n(757),n(7508),n(3440),n(3839),n(1582))},2601:function(S,I,n){"use strict";n(7042),S.exports=function(c){return f=(l=c.lib).Base,a=l.WordArray,(B=c.x64={}).Word=f.extend({init:function(e,h){this.high=e,this.low=h}}),B.WordArray=f.extend({init:function(e,h){e=this.words=e||[],this.sigBytes=null!=h?h:8*e.length},toX32:function(){for(var e=this.words,h=e.length,g=[],w=0;w=B.length?{done:!0}:{done:!1,value:B[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(B,E){(null==E||E>B.length)&&(E=B.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,m,h.tags[Y]];case 13:w=h.stateTable[1][d],Q=null;case 15:0!==w&&null==Q&&(Q=y),h.accepting[w]&&(m=y),0===w&&(w=1);case 18:y++,D.next=5;break;case 21:if(!(null!=Q&&null!=m&&m>=Q)){D.next=24;break}return D.next=24,[Q,m,h.tags[w]];case 24:case"end":return D.stop()}},g)}),e},E.apply=function(C,e){for(var g,h=c(this.match(C));!(g=h()).done;)for(var d,w=g.value,Q=w[0],m=w[1],y=c(w[2]);!(d=y()).done;){var v=d.value;"function"==typeof e[v]&&e[v](Q,m,C.slice(Q,m+1))}},B}()},8478:function(S,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var r=n(3857),s=n(2635);S.exports=function(){function l(a){var B;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(B=0;B<4;B++)u+=String.fromCharCode(this.data[this.pos++]);switch(u){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(E);break;case"IDAT":for(B=0;B0)for(B=0;Bthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(B,E){return r.readFile(B,function(u,C){return new l(C).decode(function(h){return E(h)})})},l.load=function(B){return new l(r.readFileSync(B))};var f=l.prototype;return f.read=function(B){for(var E=new Array(B),u=0;u=2147483648)throw new RangeError('The value "'+B+'" is invalid for option "size"');var C=s(B);return E&&0!==E.length?"string"==typeof u?C.fill(E,u):C.fill(E):C.fill(0),C}),!l.kStringMaxLength)try{l.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch(B){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),S.exports=l},3361:function(S,I,n){"use strict";function c(g,w){var Q=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);w&&(m=m.filter(function(Y){return Object.getOwnPropertyDescriptor(g,Y).enumerable})),Q.push.apply(Q,m)}return Q}function s(g,w,Q){return w in g?Object.defineProperty(g,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):g[w]=Q,g}function f(g,w){for(var Q=0;Q0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(Q){var m={data:Q,next:this.head};0===this.length&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var m=this.head,Y=""+m.data;m=m.next;)Y+=Q+m.data;return Y}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var m=E.allocUnsafe(Q>>>0),Y=this.head,y=0;Y;)h(Y.data,m,y),y+=Y.data.length,Y=Y.next;return m}},{key:"consume",value:function(Q,m){var Y;return Qd.length?d.length:Q;if(y+=v===d.length?d:d.slice(0,Q),0==(Q-=v)){v===d.length?(++Y,this.head=m.next?m.next:this.tail=null):(this.head=m,m.data=d.slice(v));break}++Y}return this.length-=Y,y}},{key:"_getBuffer",value:function(Q){var m=E.allocUnsafe(Q),Y=this.head,y=1;for(Y.data.copy(m),Q-=Y.data.length;Y=Y.next;){var d=Y.data,v=Q>d.length?d.length:Q;if(d.copy(m,m.length-Q,0,v),0==(Q-=v)){v===d.length?(++y,this.head=Y.next?Y.next:this.tail=null):(this.head=Y,Y.data=d.slice(v));break}++y}return this.length-=y,m}},{key:e,value:function(Q,m){return C(this,function r(g){for(var w=1;wvA.length)&&(J=vA.length);for(var U=0,Z=new Array(J);U=vA.length?{done:!0}:{done:!1,value:vA[Z++]}},e:function(Et){throw Et},f:K}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var At,fA=!0,IA=!1;return{s:function(){U=vA[Symbol.iterator]()},n:function(){var Et=U.next();return fA=Et.done,Et},e:function(Et){IA=!0,At=Et},f:function(){try{!fA&&null!=U.return&&U.return()}finally{if(IA)throw At}}}}var FA=function(){function vA(){h(this,vA)}return w(vA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),vA}(),_=function(){function vA(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,vA),this._items={},this.limits="boolean"!=typeof J.limits||J.limits}return w(vA,[{key:"add",value:function(U,Z){return this._items[U]=Z}},{key:"get",value:function(U){return this._items[U]}},{key:"toString",value:function(){var U=this,Z=Object.keys(this._items).sort(function(Qt,vt){return U._compareKeys(Qt,vt)}),K=["<<"];if(this.limits&&Z.length>1){var IA=Z[Z.length-1];K.push(" /Limits ".concat(zA.convert([this._dataForKey(Z[0]),this._dataForKey(IA)])))}K.push(" /".concat(this._keysName()," ["));var rt,At=xA(Z);try{for(At.s();!(rt=At.n()).done;){var Et=rt.value;K.push(" ".concat(zA.convert(this._dataForKey(Et))," ").concat(zA.convert(this._items[Et])))}}catch(Qt){At.e(Qt)}finally{At.f()}return K.push("]"),K.push(">>"),K.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),vA}(),pA=function(J,U){return(Array(U+1).join("0")+J).slice(-U)},uA=/[\n\r\t\b\f()\\]/g,dA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},SA=function(J){var U=J.length;if(1&U)throw new Error("Buffer length must be even");for(var Z=0,K=U-1;Z1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof U)return"/".concat(U);if(U instanceof String){for(var K=U,fA=!1,IA=0,At=K.length;IA127){fA=!0;break}var rt;return rt=fA?SA(r.from("\ufeff".concat(K),"utf16le")):r.from(K.valueOf(),"ascii"),K=(K=Z?Z(rt).toString("binary"):rt.toString("binary")).replace(uA,function(jt){return dA[jt]}),"(".concat(K,")")}if(r.isBuffer(U))return"<".concat(U.toString("hex"),">");if(U instanceof FA||U instanceof _)return U.toString();if(U instanceof Date){var Et="D:".concat(pA(U.getUTCFullYear(),4))+pA(U.getUTCMonth()+1,2)+pA(U.getUTCDate(),2)+pA(U.getUTCHours(),2)+pA(U.getUTCMinutes(),2)+pA(U.getUTCSeconds(),2)+"Z";return Z&&(Et=(Et=Z(r.from(Et,"ascii")).toString("binary")).replace(uA,function(jt){return dA[jt]})),"(".concat(Et,")")}if(Array.isArray(U)){var Qt=U.map(function(jt){return vA.convert(jt,Z)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(U)){var vt=["<<"];for(var Ft in U){var St=U[Ft];vt.push("/".concat(Ft," ").concat(vA.convert(St,Z)))}return vt.push(">>"),vt.join("\n")}return"number"==typeof U?vA.number(U):"".concat(U)}},{key:"number",value:function(U){if(U>-1e21&&U<1e21)return Math.round(1e6*U)/1e6;throw new Error("unsupported number: ".concat(U))}}]),vA}(),XA=function(vA){y(U,vA);var J=F(U);function U(Z,K){var fA,IA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(this,U),(fA=J.call(this)).document=Z,fA.id=K,fA.data=IA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(U,[{key:"write",value:function(K){if(r.isBuffer(K)||(K=r.from(K+"\n","binary")),this.uncompressedLength+=K.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(K),this.data.Length+=K.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(K){return K&&this.write(K),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var K=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=r.concat(this.buffer),this.compress&&(this.buffer=l.default.deflateSync(this.buffer)),K&&(this.buffer=K(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(zA.convert(this.data,K)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),U}(FA),X={top:72,left:72,bottom:72,right:72},O={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},$=function(){function vA(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,vA),this.document=J,this.size=U.size||"letter",this.layout=U.layout||"portrait",this.margins="number"==typeof U.margin?{top:U.margin,left:U.margin,bottom:U.margin,right:U.margin}:U.margins||X;var Z=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=Z["portrait"===this.layout?0:1],this.height=Z["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources}),this.markings=[]}return w(vA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(U){return this.content.write(U)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var U=this.resources.data;return null!=U.Font?U.Font:U.Font={}}},{key:"xobjects",get:function(){var U=this.resources.data;return null!=U.XObject?U.XObject:U.XObject={}}},{key:"ext_gstates",get:function(){var U=this.resources.data;return null!=U.ExtGState?U.ExtGState:U.ExtGState={}}},{key:"patterns",get:function(){var U=this.resources.data;return null!=U.Pattern?U.Pattern:U.Pattern={}}},{key:"colorSpaces",get:function(){var U=this.resources.data;return U.ColorSpace||(U.ColorSpace={})}},{key:"annotations",get:function(){var U=this.dictionary.data;return null!=U.Annots?U.Annots:U.Annots=[]}},{key:"structParentTreeKey",get:function(){var U=this.dictionary.data;return null!=U.StructParents?U.StructParents:U.StructParents=this.document.createStructParentTreeNextKey()}}]),vA}(),W=function(vA){y(U,vA);var J=F(U);function U(){return h(this,U),J.apply(this,arguments)}return w(U,[{key:"_compareKeys",value:function(K,fA){return K.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(K){return new String(K)}}]),U}(_);function hA(vA,J){if(vA=J[fA]&&vA<=J[fA+1])return!0;vA>J[fA+1]?U=K+1:Z=K-1}return!1}var DA=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],nA=function(J){return hA(J,DA)},EA=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],it=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],TA=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],at=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],It=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],mt=function(J){return hA(J,it)||hA(J,It)||hA(J,TA)||hA(J,at)},wt=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],OA=function(J){return hA(J,wt)},VA=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],tt=function(J){return hA(J,VA)},mA=function(J){return hA(J,it)},dt=function(J){return hA(J,EA)},ht=function(J){return J.codePointAt(0)},Tt=function(J){return J[0]},HA=function(J){return J[J.length-1]};function H(vA){for(var J=[],U=vA.length,Z=0;Z=55296&&K<=56319&&U>Z+1){var fA=vA.charCodeAt(Z+1);if(fA>=56320&&fA<=57343){J.push(1024*(K-55296)+fA-56320+65536),Z+=1;continue}}J.push(K)}return J}function k(vA){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof vA)throw new TypeError("Expected string.");if(0===vA.length)return"";var U=H(vA).map(function(vt){return mA(vt)?32:vt}).filter(function(vt){return!dt(vt)}),Z=String.fromCodePoint.apply(null,U).normalize("NFKC"),K=H(Z);if(K.some(mt))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==J.allowUnassigned&&K.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var At=K.some(OA),rt=K.some(tt);if(At&&rt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var Et=OA(ht(Tt(Z))),Qt=OA(ht(HA(Z)));if(At&&(!Et||!Qt))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return Z}var z=function(){function vA(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(this,vA),!U.ownerPassword&&!U.userPassword)throw new Error("None of owner password and user password is defined.");this.document=J,this._setupEncryption(U)}return w(vA,null,[{key:"generateFileID",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z="".concat(U.CreationDate.getTime(),"\n");for(var K in U)!U.hasOwnProperty(K)||(Z+="".concat(K,": ").concat(U[K].valueOf(),"\n"));return Xt(f.default.MD5(Z))}},{key:"generateRandomWordArray",value:function(U){return f.default.lib.WordArray.random(U)}},{key:"create",value:function(U){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Z.ownerPassword||Z.userPassword?new vA(U,Z):null}}]),w(vA,[{key:"_setupEncryption",value:function(U){switch(U.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}var Z={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,Z,U);break;case 5:this._setupEncryptionV5(Z,U)}this.dictionary=this.document.ref(Z)}},{key:"_setupEncryptionV1V2V4",value:function(U,Z,K){var fA,IA;switch(U){case 1:fA=2,this.keyBits=40,IA=function QA(){var vA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-64;return vA.printing&&(J|=4),vA.modifying&&(J|=8),vA.copying&&(J|=16),vA.annotating&&(J|=32),J}(K.permissions);break;case 2:fA=3,this.keyBits=128,IA=CA(K.permissions);break;case 4:fA=4,this.keyBits=128,IA=CA(K.permissions)}var Qt,At=zt(K.userPassword),rt=K.ownerPassword?zt(K.ownerPassword):At,Et=function gt(vA,J,U,Z){for(var K=Z,fA=vA>=3?51:1,IA=0;IA=3?20:1;for(var Et=0;Et=3?51:1,rt=0;rt=2&&(Z.Length=this.keyBits),4===U&&(Z.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},Z.StmF="StdCF",Z.StrF="StdCF"),Z.R=fA,Z.O=Xt(Et),Z.U=Xt(Qt),Z.P=IA}},{key:"_setupEncryptionV5",value:function(U,Z){this.keyBits=256;var K=CA(Z.permissions),fA=xt(Z.userPassword),IA=Z.ownerPassword?xt(Z.ownerPassword):fA;this.encryptionKey=function KA(vA){return vA(32)}(vA.generateRandomWordArray);var At=function j(vA,J){var U=J(8),Z=J(8);return f.default.SHA256(vA.clone().concat(U)).concat(U).concat(Z)}(fA,vA.generateRandomWordArray),Et=function qA(vA,J,U){var Z=f.default.SHA256(vA.clone().concat(J)),K={mode:f.default.mode.CBC,padding:f.default.pad.NoPadding,iv:f.default.lib.WordArray.create(null,16)};return f.default.AES.encrypt(U,Z,K).ciphertext}(fA,f.default.lib.WordArray.create(At.words.slice(10,12),8),this.encryptionKey),Qt=function kA(vA,J,U){var Z=U(8),K=U(8);return f.default.SHA256(vA.clone().concat(Z).concat(J)).concat(Z).concat(K)}(IA,At,vA.generateRandomWordArray),Ft=function yA(vA,J,U,Z){var K=f.default.SHA256(vA.clone().concat(J).concat(U)),fA={mode:f.default.mode.CBC,padding:f.default.pad.NoPadding,iv:f.default.lib.WordArray.create(null,16)};return f.default.AES.encrypt(Z,K,fA).ciphertext}(IA,f.default.lib.WordArray.create(Qt.words.slice(10,12),8),At,this.encryptionKey),St=function lt(vA,J,U){var Z=f.default.lib.WordArray.create([Lt(vA),4294967295,1415668834],12).concat(U(4));return f.default.AES.encrypt(Z,J,{mode:f.default.mode.ECB,padding:f.default.pad.NoPadding}).ciphertext}(K,this.encryptionKey,vA.generateRandomWordArray);U.V=5,U.Length=this.keyBits,U.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},U.StmF="StdCF",U.StrF="StdCF",U.R=5,U.O=Xt(Qt),U.OE=Xt(Ft),U.U=Xt(At),U.UE=Xt(Et),U.P=K,U.Perms=Xt(St)}},{key:"getEncryptFn",value:function(U,Z){var K,IA;if(this.version<5&&(K=this.encryptionKey.clone().concat(f.default.lib.WordArray.create([(255&U)<<24|(65280&U)<<8|U>>8&65280|255&Z,(65280&Z)<<16],5))),1===this.version||2===this.version){var fA=f.default.MD5(K);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(Et){return Xt(f.default.RC4.encrypt(f.default.lib.WordArray.create(Et),fA).ciphertext)}}IA=4===this.version?f.default.MD5(K.concat(f.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var At=vA.generateRandomWordArray(16),rt={mode:f.default.mode.CBC,padding:f.default.pad.Pkcs7,iv:At};return function(Et){return Xt(At.clone().concat(f.default.AES.encrypt(f.default.lib.WordArray.create(Et),IA,rt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),vA}();function CA(){var vA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-3904;return"lowResolution"===vA.printing&&(J|=4),"highResolution"===vA.printing&&(J|=2052),vA.modifying&&(J|=8),vA.copying&&(J|=16),vA.annotating&&(J|=32),vA.fillingForms&&(J|=256),vA.contentAccessibility&&(J|=512),vA.documentAssembly&&(J|=1024),J}function zt(){for(var vA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=r.alloc(32),U=vA.length,Z=0;Z255)throw new Error("Password contains one or more invalid characters.");J[Z]=K,Z++}for(;Z<32;)J[Z]=Ge[Z-U],Z++;return f.default.lib.WordArray.create(J)}function xt(){var vA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";vA=unescape(encodeURIComponent(k(vA)));for(var J=Math.min(127,vA.length),U=r.alloc(J),Z=0;Z>8&65280|vA>>24&255}function Xt(vA){for(var J=[],U=0;U>8*(3-U%4)&255);return r.from(J)}var kt,Gt,$t,le,vn,Mn,Ge=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],oe=zA.number,ne=function(){function vA(J){h(this,vA),this.doc=J,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(vA,[{key:"stop",value:function(U,Z,K){if(null==K&&(K=1),Z=this.doc._normalizeColor(Z),0===this.stops.length)if(3===Z.length)this._colorSpace="DeviceRGB";else if(4===Z.length)this._colorSpace="DeviceCMYK";else{if(1!==Z.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==Z.length||"DeviceCMYK"===this._colorSpace&&4!==Z.length||"DeviceGray"===this._colorSpace&&1!==Z.length)throw new Error("All gradient stops must use the same color space");return K=Math.max(0,Math.min(1,K)),this.stops.push([U,Z,K]),this}},{key:"setTransform",value:function(U,Z,K,fA,IA,At){return this.transform=[U,Z,K,fA,IA,At],this}},{key:"embed",value:function(U){var Z,K=this.stops.length;if(0!==K){this.embedded=!0,this.matrix=U;var fA=this.stops[K-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var IA=[],At=[],rt=[],Et=0;Et>16,U>>8&255,255&U]}else Jn[J]&&(J=Jn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(Z){return Z/255}):4===J.length&&(J=J.map(function(Z){return Z/100})),J):null},_setColor:function(J,U){return J instanceof an?(J.apply(U),!0):Array.isArray(J)&&J[0]instanceof An?(J[0].apply(U,J[1]),!0):this._setColorCore(J,U)},_setColorCore:function(J,U){if(!(J=this._normalizeColor(J)))return!1;var Z=U?"SCN":"scn",K=this._getColorSpace(J);return this._setColorSpace(K,U),J=J.join(" "),this.addContent("".concat(J," ").concat(Z)),!0},_setColorSpace:function(J,U){var Z=U?"CS":"cs";return this.addContent("/".concat(J," ").concat(Z))},_getColorSpace:function(J){return 4===J.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(J,U){return this._setColor(J,!1)&&this.fillOpacity(U),this._fillColor=[J,U],this},strokeColor:function(J,U){return this._setColor(J,!0)&&this.strokeOpacity(U),this},opacity:function(J){return this._doOpacity(J,J),this},fillOpacity:function(J){return this._doOpacity(J,null),this},strokeOpacity:function(J){return this._doOpacity(null,J),this},_doOpacity:function(J,U){var Z,K;if(null!=J||null!=U){null!=J&&(J=Math.max(0,Math.min(1,J))),null!=U&&(U=Math.max(0,Math.min(1,U)));var fA="".concat(J,"_").concat(U);if(this._opacityRegistry[fA]){var IA=b(this._opacityRegistry[fA],2);Z=IA[0],K=IA[1]}else{Z={Type:"ExtGState"},null!=J&&(Z.ca=J),null!=U&&(Z.CA=U),(Z=this.ref(Z)).end();var At=++this._opacityCount;K="Gs".concat(At),this._opacityRegistry[fA]=[Z,K]}return this.page.ext_gstates[K]=Z,this.addContent("/".concat(K," gs"))}},linearGradient:function(J,U,Z,K){return new Ne(this,J,U,Z,K)},radialGradient:function(J,U,Z,K,fA,IA){return new on(this,J,U,Z,K,fA,IA)},pattern:function(J,U,Z,K){return new An(this,J,U,Z,K)}},Jn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};kt=Gt=$t=le=vn=Mn=0;var Tn={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},Sn={M:function(J,U){return $t=le=null,vn=kt=U[0],Mn=Gt=U[1],J.moveTo(kt,Gt)},m:function(J,U){return $t=le=null,vn=kt+=U[0],Mn=Gt+=U[1],J.moveTo(kt,Gt)},C:function(J,U){return kt=U[4],Gt=U[5],$t=U[2],le=U[3],J.bezierCurveTo.apply(J,P(U))},c:function(J,U){return J.bezierCurveTo(U[0]+kt,U[1]+Gt,U[2]+kt,U[3]+Gt,U[4]+kt,U[5]+Gt),$t=kt+U[2],le=Gt+U[3],kt+=U[4],Gt+=U[5]},S:function(J,U){return null===$t&&($t=kt,le=Gt),J.bezierCurveTo(kt-($t-kt),Gt-(le-Gt),U[0],U[1],U[2],U[3]),$t=U[0],le=U[1],kt=U[2],Gt=U[3]},s:function(J,U){return null===$t&&($t=kt,le=Gt),J.bezierCurveTo(kt-($t-kt),Gt-(le-Gt),kt+U[0],Gt+U[1],kt+U[2],Gt+U[3]),$t=kt+U[0],le=Gt+U[1],kt+=U[2],Gt+=U[3]},Q:function(J,U){return $t=U[0],le=U[1],J.quadraticCurveTo(U[0],U[1],kt=U[2],Gt=U[3])},q:function(J,U){return J.quadraticCurveTo(U[0]+kt,U[1]+Gt,U[2]+kt,U[3]+Gt),$t=kt+U[0],le=Gt+U[1],kt+=U[2],Gt+=U[3]},T:function(J,U){return null===$t?($t=kt,le=Gt):($t=kt-($t-kt),le=Gt-(le-Gt)),J.quadraticCurveTo($t,le,U[0],U[1]),$t=kt-($t-kt),le=Gt-(le-Gt),kt=U[0],Gt=U[1]},t:function(J,U){return null===$t?($t=kt,le=Gt):($t=kt-($t-kt),le=Gt-(le-Gt)),J.quadraticCurveTo($t,le,kt+U[0],Gt+U[1]),kt+=U[0],Gt+=U[1]},A:function(J,U){return ZA(J,kt,Gt,U),kt=U[5],Gt=U[6]},a:function(J,U){return U[5]+=kt,U[6]+=Gt,ZA(J,kt,Gt,U),kt=U[5],Gt=U[6]},L:function(J,U){return $t=le=null,J.lineTo(kt=U[0],Gt=U[1])},l:function(J,U){return $t=le=null,J.lineTo(kt+=U[0],Gt+=U[1])},H:function(J,U){return $t=le=null,J.lineTo(kt=U[0],Gt)},h:function(J,U){return $t=le=null,J.lineTo(kt+=U[0],Gt)},V:function(J,U){return $t=le=null,J.lineTo(kt,Gt=U[0])},v:function(J,U){return $t=le=null,J.lineTo(kt,Gt+=U[0])},Z:function(J){return J.closePath(),kt=vn,Gt=Mn},z:function(J){return J.closePath(),kt=vn,Gt=Mn}},ZA=function(J,U,Z,K){var Zt,fA=b(K,7),jt=xA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],U,Z));try{for(jt.s();!(Zt=jt.n()).done;){var Ce=et.apply(void 0,P(Zt.value));J.bezierCurveTo.apply(J,P(Ce))}}catch(me){jt.e(me)}finally{jt.f()}},YA=function(J,U,Z,K,fA,IA,At,rt,Et){var Qt=At*(Math.PI/180),vt=Math.sin(Qt),Ft=Math.cos(Qt);Z=Math.abs(Z),K=Math.abs(K);var St=($t=Ft*(rt-J)*.5+vt*(Et-U)*.5)*$t/(Z*Z)+(le=Ft*(Et-U)*.5-vt*(rt-J)*.5)*le/(K*K);St>1&&(Z*=St=Math.sqrt(St),K*=St);var jt=Ft/Z,Zt=vt/Z,Ee=-vt/K,Ce=Ft/K,me=jt*rt+Zt*Et,sn=Ee*rt+Ce*Et,Me=jt*J+Zt*U,We=Ee*J+Ce*U,Ze=1/((Me-me)*(Me-me)+(We-sn)*(We-sn))-.25;Ze<0&&(Ze=0);var dn=Math.sqrt(Ze);IA===fA&&(dn=-dn);var Xn=.5*(me+Me)-dn*(We-sn),Ai=.5*(sn+We)+dn*(Me-me),Pn=Math.atan2(sn-Ai,me-Xn),jn=Math.atan2(We-Ai,Me-Xn)-Pn;jn<0&&1===IA?jn+=2*Math.PI:jn>0&&0===IA&&(jn-=2*Math.PI);for(var si=Math.ceil(Math.abs(jn/(.5*Math.PI+.001))),Ii=[],ti=0;ti0&&(K[K.length]=+fA),Z[Z.length]={cmd:U,args:K},K=[],fA="",IA=!1),U=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&IA){if(0===fA.length)continue;K.length===At?(Z[Z.length]={cmd:U,args:K},K=[+fA],"M"===U&&(U="L"),"m"===U&&(U="l")):K[K.length]=+fA,IA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(IA=!0)}}catch(vt){rt.e(vt)}finally{rt.f()}return fA.length>0&&(K.length===At?(Z[Z.length]={cmd:U,args:K},K=[+fA],"M"===U&&(U="L"),"m"===U&&(U="l")):K[K.length]=+fA),Z[Z.length]={cmd:U,args:K},Z}(Z);!function(J,U){kt=Gt=$t=le=vn=Mn=0;for(var Z=0;Z1&&void 0!==arguments[1]?arguments[1]:{},Z=J;if(Array.isArray(J)||(J=[J,U.space||J]),!J.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(Z),", ").concat(JSON.stringify(U),") invalid, lengths must be numeric and greater than zero"));return J=J.map(PA).join(" "),this.addContent("[".concat(J,"] ").concat(PA(U.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(J,U){return this.addContent("".concat(PA(J)," ").concat(PA(U)," m"))},lineTo:function(J,U){return this.addContent("".concat(PA(J)," ").concat(PA(U)," l"))},bezierCurveTo:function(J,U,Z,K,fA,IA){return this.addContent("".concat(PA(J)," ").concat(PA(U)," ").concat(PA(Z)," ").concat(PA(K)," ").concat(PA(fA)," ").concat(PA(IA)," c"))},quadraticCurveTo:function(J,U,Z,K){return this.addContent("".concat(PA(J)," ").concat(PA(U)," ").concat(PA(Z)," ").concat(PA(K)," v"))},rect:function(J,U,Z,K){return this.addContent("".concat(PA(J)," ").concat(PA(U)," ").concat(PA(Z)," ").concat(PA(K)," re"))},roundedRect:function(J,U,Z,K,fA){null==fA&&(fA=0);var IA=(fA=Math.min(fA,.5*Z,.5*K))*(1-LA);return this.moveTo(J+fA,U),this.lineTo(J+Z-fA,U),this.bezierCurveTo(J+Z-IA,U,J+Z,U+IA,J+Z,U+fA),this.lineTo(J+Z,U+K-fA),this.bezierCurveTo(J+Z,U+K-IA,J+Z-IA,U+K,J+Z-fA,U+K),this.lineTo(J+fA,U+K),this.bezierCurveTo(J+IA,U+K,J,U+K-IA,J,U+K-fA),this.lineTo(J,U+fA),this.bezierCurveTo(J,U+IA,J+IA,U,J+fA,U),this.closePath()},ellipse:function(J,U,Z,K){null==K&&(K=Z);var fA=Z*LA,IA=K*LA,At=(J-=Z)+2*Z,rt=(U-=K)+2*K,Et=J+Z,Qt=U+K;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-IA,Et-fA,U,Et,U),this.bezierCurveTo(Et+fA,U,At,Qt-IA,At,Qt),this.bezierCurveTo(At,Qt+IA,Et+fA,rt,Et,rt),this.bezierCurveTo(Et-fA,rt,J,Qt+IA,J,Qt),this.closePath()},circle:function(J,U,Z){return this.ellipse(J,U,Z)},arc:function(J,U,Z,K,fA,IA){null==IA&&(IA=!1);var At=2*Math.PI,rt=.5*Math.PI,Et=fA-K;Math.abs(Et)>At?Et=At:0!==Et&&IA!==Et<0&&(Et=(IA?-1:1)*At+Et);var vt=Math.ceil(Math.abs(Et)/rt),Ft=Et/vt,St=Ft/rt*LA*Z,jt=K,Zt=-Math.sin(jt)*St,Ee=Math.cos(jt)*St,Ce=J+Math.cos(jt)*Z,me=U+Math.sin(jt)*Z;this.moveTo(Ce,me);for(var sn=0;sn1&&void 0!==arguments[1]?arguments[1]:{},K=J*Math.PI/180,fA=Math.cos(K),IA=Math.sin(K),At=Z=0;if(null!=U.origin){var rt=b(U.origin,2),Qt=(At=rt[0])*IA+(Z=rt[1])*fA;At-=At*fA-Z*IA,Z-=Qt}return this.transform(fA,IA,-IA,fA,At,Z)},scale:function(J,U){var K,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==U&&(U=J),"object"==typeof U&&(Z=U,U=J);var fA=K=0;if(null!=Z.origin){var IA=b(Z.origin,2);fA=IA[0],K=IA[1],fA-=J*fA,K-=U*K}return this.transform(J,0,0,U,fA,K)}},$A={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},bA=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/),ot=function(){function vA(J){h(this,vA),this.contents=J,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var U=0;U<=255;U++)this.charWidths[U]=this.glyphWidths[bA[U]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(Z){return+Z}),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}return w(vA,null,[{key:"open",value:function(U){return new vA(e.readFileSync(U,"utf8"))}}]),w(vA,[{key:"parse",value:function(){var K,U="",Z=xA(this.contents.split("\n"));try{for(Z.s();!(K=Z.n()).done;){var IA,At,fA=K.value;if(IA=fA.match(/^Start(\w+)/))U=IA[1];else if(IA=fA.match(/^End(\w+)/))U="";else switch(U){case"FontMetrics":var rt=(IA=fA.match(/(^\w+)\s+(.*)/))[1],Et=IA[2];(At=this.attributes[rt])?(Array.isArray(At)||(At=this.attributes[rt]=[At]),At.push(Et)):this.attributes[rt]=Et;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Qt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Qt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(IA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[IA[1]+"\0"+IA[2]]=parseInt(IA[3]))}}}catch(vt){Z.e(vt)}finally{Z.f()}}},{key:"encodeText",value:function(U){for(var Z=[],K=0,fA=U.length;K>8,rt=0;this.font.post.isFixedPitch&&(rt|=1),1<=At&&At<=7&&(rt|=2),rt|=4,10===At&&(rt|=8),this.font.head.macStyle.italic&&(rt|=64);var Qt=[1,2,3,4,5,6].map(function(Zt){return String.fromCharCode((K.id.charCodeAt(Zt)||73)+17)}).join("")+"+"+this.font.postscriptName,vt=this.font.bbox,Ft=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:rt,FontBBox:[vt.minX*this.scale,vt.minY*this.scale,vt.maxX*this.scale,vt.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});fA?Ft.data.FontFile3=IA:Ft.data.FontFile2=IA,Ft.end();var St={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:Ft,W:[0,this.widths]};fA||(St.Subtype="CIDFontType2",St.CIDToGIDMap="Identity");var jt=this.document.ref(St);return jt.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[jt],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var At,K=this.document.ref(),fA=[],IA=xA(this.unicode);try{for(IA.s();!(At=IA.n()).done;){var vt,Et=[],Qt=xA(At.value);try{for(Qt.s();!(vt=Qt.n()).done;){var Ft=vt.value;Ft>65535&&(Et.push(Pt((Ft-=65536)>>>10&1023|55296)),Ft=56320|1023&Ft),Et.push(Pt(Ft))}}catch(St){Qt.e(St)}finally{Qt.f()}fA.push("<".concat(Et.join(" "),">"))}}catch(St){IA.e(St)}finally{IA.f()}return K.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n1 beginbfrange\n<0000> <".concat(Pt(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),K}}]),U}(WA),qt=function(){function vA(){h(this,vA)}return w(vA,null,[{key:"open",value:function(U,Z,K,fA){var IA;if("string"==typeof Z){if(Nt.isStandardFont(Z))return new Nt(U,Z,fA);Z=e.readFileSync(Z)}if(r.isBuffer(Z)?IA=a.default.create(Z,K):Z instanceof Uint8Array?IA=a.default.create(r.from(Z),K):Z instanceof ArrayBuffer&&(IA=a.default.create(r.from(new Uint8Array(Z)),K)),null==IA)throw new Error("Not a supported font format or standard PDF font.");return new Kt(U,IA,fA)}}]),vA}(),re={initFonts:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},J&&this.font(J)},font:function(J,U,Z){var K,fA;if("number"==typeof U&&(Z=U,U=null),"string"==typeof J&&this._registeredFonts[J]){K=J;var IA=this._registeredFonts[J];J=IA.src,U=IA.family}else"string"!=typeof(K=U||J)&&(K=null);if(null!=Z&&this.fontSize(Z),fA=this._fontFamilies[K])return this._font=fA,this;var At="F".concat(++this._fontCount);return this._font=qt.open(this,J,U,At),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(K&&(this._fontFamilies[K]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(J){return this._fontSize=J,this},currentLineHeight:function(J){return null==J&&(J=!1),this._font.lineHeight(this._fontSize,J)},registerFont:function(J,U,Z){return this._registeredFonts[J]={src:U,family:Z},this}},Ct=function(vA){y(U,vA);var J=F(U);function U(Z,K){var fA;return h(this,U),(fA=J.call(this)).document=Z,fA.indent=K.indent||0,fA.characterSpacing=K.characterSpacing||0,fA.wordSpacing=0===K.wordSpacing,fA.columns=K.columns||1,fA.columnGap=null!=K.columnGap?K.columnGap:18,fA.lineWidth=(K.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=K.ellipsis,fA.continuedX=0,fA.features=K.features,null!=K.height?(fA.height=K.height,fA.maxY=fA.startY+K.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(IA){var At=fA.continuedX||fA.indent;return fA.document.x+=At,fA.lineWidth-=At,fA.once("line",function(){if(fA.document.x-=At,fA.lineWidth+=At,IA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!IA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(IA){var At=IA.align;return"justify"===At&&(IA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=IA.paragraphGap||0,IA.align=At,fA.lastLine=!1})}),fA}return w(U,[{key:"wordWidth",value:function(K){return this.document.widthOfString(K,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(K,fA){for(var IA,At=new E.default(K),rt=null,Et=Object.create(null);IA=At.nextBreak();){var Qt,vt=K.slice((null!=rt?rt.position:void 0)||0,IA.position),Ft=null!=Et[vt]?Et[vt]:Et[vt]=this.wordWidth(vt);if(Ft>this.lineWidth+this.continuedX)for(var St=rt,jt={};vt.length;){var Zt,Ee;Ft>this.spaceLeft?(Zt=Math.ceil(this.spaceLeft/(Ft/vt.length)),Ee=(Ft=this.wordWidth(vt.slice(0,Zt)))<=this.spaceLeft&&Ztthis.spaceLeft&&Zt>0;Ce||Ee;)Ce?Ce=(Ft=this.wordWidth(vt.slice(0,--Zt)))>this.spaceLeft&&Zt>0:(Ce=(Ft=this.wordWidth(vt.slice(0,++Zt)))>this.spaceLeft&&Zt>0,Ee=Ft<=this.spaceLeft&&Ztthis.maxY||At>this.maxY)&&this.nextSection();var rt="",Et=0,Qt=0,vt=0,Ft=this.document.y,St=function(){return fA.textWidth=Et+IA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=IA.lineWidth,Ft=IA.document.y,IA.emit("line",rt,fA,IA),vt++};return this.emit("sectionStart",fA,this),this.eachWord(K,function(jt,Zt,Ee,Ce){if((null==Ce||Ce.required)&&(IA.emit("firstLine",fA,IA),IA.spaceLeft=IA.lineWidth),Zt<=IA.spaceLeft&&(rt+=jt,Et+=Zt,Qt++),Ee.required||Zt>IA.spaceLeft){var me=IA.document.currentLineHeight(!0);if(null!=IA.height&&IA.ellipsis&&IA.document.y+2*me>IA.maxY&&IA.column>=IA.columns){for(!0===IA.ellipsis&&(IA.ellipsis="\u2026"),rt=rt.replace(/\s+$/,""),Et=IA.wordWidth(rt+IA.ellipsis);rt&&Et>IA.lineWidth;)rt=rt.slice(0,-1).replace(/\s+$/,""),Et=IA.wordWidth(rt+IA.ellipsis);Et<=IA.lineWidth&&(rt+=IA.ellipsis),Et=IA.wordWidth(rt)}return Ee.required&&(Zt>IA.spaceLeft&&(St(),rt=jt,Et=Zt,Qt=1),IA.emit("lastLine",fA,IA)),St(),IA.document.y+me>IA.maxY&&!IA.nextSection()?(Qt=0,rt="",!1):Ee.required?(IA.spaceLeft=IA.lineWidth,rt="",Et=0,Qt=0):(IA.spaceLeft=IA.lineWidth-Zt,rt=jt,Et=Zt,Qt=1)}return IA.spaceLeft-=Zt}),Qt>0&&(this.emit("lastLine",fA,this),St()),this.emit("sectionEnd",fA,this),!0===fA.continued?(vt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=Ft):this.document.x=this.startX}},{key:"nextSection",value:function(K){if(this.emit("sectionEnd",K,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,P(this.document._fillColor)),this.emit("pageBreak",K,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",K,this);return this.emit("sectionStart",K,this),!0}}]),U}(B.EventEmitter),Rt=zA.number,Wt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(J){return this._lineGap=J,this},moveDown:function(J){return null==J&&(J=1),this.y+=this.currentLineHeight(!0)*J+this._lineGap,this},moveUp:function(J){return null==J&&(J=1),this.y-=this.currentLineHeight(!0)*J+this._lineGap,this},_text:function(J,U,Z,K,fA){var IA=this;K=this._initOptions(U,Z,K),J=null==J?"":"".concat(J),K.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var At=function(){K.structParent&&K.structParent.add(IA.struct(K.structType||"P",[IA.markStructureContent(K.structType||"P")]))};if(K.width){var rt=this._wrapper;rt||((rt=new Ct(this,K)).on("line",fA),rt.on("firstLine",At)),this._wrapper=K.continued?rt:null,this._textOptions=K.continued?K:null,rt.wrap(J,K)}else{var Qt,Et=xA(J.split("\n"));try{for(Et.s();!(Qt=Et.n()).done;){var vt=Qt.value;At(),fA(vt,K)}}catch(Ft){Et.e(Ft)}finally{Et.f()}}return this},text:function(J,U,Z,K){return this._text(J,U,Z,K,this._line)},widthOfString:function(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(J,this._fontSize,U.features)+(U.characterSpacing||0)*(J.length-1)},heightOfString:function(J,U){var Z=this,K=this.x,fA=this.y;(U=this._initOptions(U)).height=1/0;var IA=U.lineGap||this._lineGap||0;this._text(J,this.x,this.y,U,function(){return Z.y+=Z.currentLineHeight(!0)+IA});var At=this.y-fA;return this.x=K,this.y=fA,At},list:function(J,U,Z,K,fA){var IA=this,At=(K=this._initOptions(U,Z,K)).listType||"bullet",rt=Math.round(this._font.ascender/1e3*this._fontSize),Et=rt/2,Qt=K.bulletRadius||rt/3,vt=K.textIndent||("bullet"===At?5*Qt:2*rt),Ft=K.bulletIndent||("bullet"===At?8*Qt:2*rt),St=1,jt=[],Zt=[],Ee=[];!function Me(We){for(var Qn=1,Ze=0;Ze0&&void 0!==arguments[0]?arguments[0]:{},U=arguments.length>1?arguments[1]:void 0,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(Z=J,J=null);var K=Object.assign({},Z);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===K[fA]&&(K[fA]=this._textOptions[fA]);return null!=J&&(this.x=J),null!=U&&(this.y=U),!1!==K.lineBreak&&(null==K.width&&(K.width=this.page.width-this.x-this.page.margins.right),K.width=Math.max(K.width,0)),K.columns||(K.columns=0),null==K.columnGap&&(K.columnGap=18),K},_line:function(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Z=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,U);var K=U.lineGap||this._lineGap||0;return Z?this.y+=this.currentLineHeight(!0)+K:this.x+=this.widthOfString(J)},_fragment:function(J,U,Z,K){var IA,At,rt,Et,Qt,vt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var St=K.wordSpacing||0,jt=K.characterSpacing||0;if(K.width)switch(K.align||"left"){case"right":Qt=this.widthOfString(J.replace(/\s+$/,""),K),U+=K.lineWidth-Qt;break;case"center":U+=K.lineWidth/2-K.textWidth/2;break;case"justify":vt=J.trim().split(/\s+/),Qt=this.widthOfString(J.replace(/\s+/g,""),K);var Zt=this.widthOfString(" ")+jt;St=Math.max(0,(K.lineWidth-Qt)/Math.max(1,vt.length-1)-Zt)}if("number"==typeof K.baseline)IA=-K.baseline;else{switch(K.baseline){case"svg-middle":IA=.5*this._font.xHeight;break;case"middle":case"svg-central":IA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":IA=this._font.descender;break;case"alphabetic":IA=0;break;case"mathematical":IA=.5*this._font.ascender;break;case"hanging":IA=.8*this._font.ascender;break;default:IA=this._font.ascender}IA=IA/1e3*this._fontSize}var We,Ee=K.textWidth+St*(K.wordCount-1)+jt*(J.length-1);if(null!=K.link&&this.link(U,Z,Ee,this.currentLineHeight(),K.link),null!=K.goTo&&this.goTo(U,Z,Ee,this.currentLineHeight(),K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",U,Z,null),K.underline){this.save(),K.stroke||this.strokeColor.apply(this,P(this._fillColor||[]));var Ce=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ce);var me=Z+this.currentLineHeight()-Ce;this.moveTo(U,me),this.lineTo(U+Ee,me),this.stroke(),this.restore()}if(K.strike){this.save(),K.stroke||this.strokeColor.apply(this,P(this._fillColor||[]));var sn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(sn);var Me=Z+this.currentLineHeight()/2;this.moveTo(U,Me),this.lineTo(U+Ee,Me),this.stroke(),this.restore()}this.save(),K.oblique&&(We="number"==typeof K.oblique?-Math.tan(K.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,U,Z),this.transform(1,0,We,1,-We*IA,0),this.transform(1,0,0,1,-U,-Z)),this.transform(1,0,0,-1,0,this.page.height),Z=this.page.height-Z-IA,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 ".concat(Rt(U)," ").concat(Rt(Z)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Rt(this._fontSize)," Tf"));var Qn=K.fill&&K.stroke?2:K.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),jt&&this.addContent("".concat(Rt(jt)," Tc")),St){vt=J.trim().split(/\s+/),St+=this.widthOfString(" ")+jt,St*=1e3/this._fontSize,At=[],Et=[];var dn,Ze=xA(vt);try{for(Ze.s();!(dn=Ze.n()).done;){var Pn=b(this._font.encode(dn.value,K.features),2),jn=Pn[1];At=At.concat(Pn[0]),Et=Et.concat(jn);var si={},Ii=Et[Et.length-1];for(var ti in Ii)si[ti]=Ii[ti];si.xAdvance+=St,Et[Et.length-1]=si}}catch(Wi){Ze.e(Wi)}finally{Ze.f()}}else{var qn=b(this._font.encode(J,K.features),2);At=qn[0],Et=qn[1]}var ki=this._fontSize/1e3,vi=[],ji=0,Ki=!1,fr=function(_n){if(ji<_n){var Jr=At.slice(ji,_n).join(""),Or=Et[_n-1].xAdvance-Et[_n-1].advanceWidth;vi.push("<".concat(Jr,"> ").concat(Rt(-Or)))}return ji=_n},Vi=function(_n){if(fr(_n),vi.length>0)return fA.addContent("[".concat(vi.join(" "),"] TJ")),vi.length=0};for(rt=0;rt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof U&&(K=U,U=null),U=null!=(Qt=null!=U?U:K.x)?Qt:this.x,Z=null!=(vt=null!=Z?Z:K.y)?vt:this.y,"string"==typeof J&&(rt=this._imageRegistry[J]),rt||(rt=J.width&&J.height?J:this.openImage(J)),rt.obj||rt.embed(this),null==this.page.xobjects[rt.label]&&(this.page.xobjects[rt.label]=rt.obj);var Ft=K.width||rt.width,St=K.height||rt.height;if(K.width&&!K.height){var jt=Ft/rt.width;Ft=rt.width*jt,St=rt.height*jt}else if(K.height&&!K.width){var Zt=St/rt.height;Ft=rt.width*Zt,St=rt.height*Zt}else if(K.scale)Ft=rt.width*K.scale,St=rt.height*K.scale;else if(K.fit){var Ee=b(K.fit,2);(Et=rt.width/rt.height)>(At=Ee[0])/(fA=Ee[1])?(Ft=At,St=At/Et):(St=fA,Ft=fA*Et)}else if(K.cover){var Ce=b(K.cover,2);(Et=rt.width/rt.height)>(At=Ce[0])/(fA=Ce[1])?(St=fA,Ft=fA*Et):(Ft=At,St=At/Et)}return(K.fit||K.cover)&&("center"===K.align?U=U+At/2-Ft/2:"right"===K.align&&(U=U+At-Ft),"center"===K.valign?Z=Z+fA/2-St/2:"bottom"===K.valign&&(Z=Z+fA-St)),null!=K.link&&this.link(U,Z,Ft,St,K.link),null!=K.goTo&&this.goTo(U,Z,Ft,St,K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",U,Z,null),this.y===Z&&(this.y+=St),this.save(),this.transform(Ft,0,0,-St,U,Z+St),this.addContent("/".concat(rt.label," Do")),this.restore(),this},openImage:function(J){var U;return"string"==typeof J&&(U=this._imageRegistry[J]),U||(U=ue.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=U)),U}},Je={annotate:function(J,U,Z,K,fA){for(var IA in fA.Type="Annot",fA.Rect=this._convertRect(J,U,Z,K),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var At=fA[IA];fA[IA[0].toUpperCase()+IA.slice(1)]=At}var rt=this.ref(fA);return this.page.annotations.push(rt),rt.end(),this},note:function(J,U,Z,K,fA){var IA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return IA.Subtype="Text",IA.Contents=new String(fA),IA.Name="Comment",null==IA.color&&(IA.color=[243,223,92]),this.annotate(J,U,Z,K,IA)},goTo:function(J,U,Z,K,fA){var IA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return IA.Subtype="Link",IA.A=this.ref({S:"GoTo",D:new String(fA)}),IA.A.end(),this.annotate(J,U,Z,K,IA)},link:function(J,U,Z,K,fA){var IA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(IA.Subtype="Link","number"==typeof fA){var At=this._root.data.Pages.data;if(!(fA>=0&&fA4&&void 0!==arguments[4]?arguments[4]:{},At=b(this._convertRect(J,U,Z,K),4),rt=At[0],Et=At[1],Qt=At[2],vt=At[3];return fA.QuadPoints=[rt,vt,Qt,vt,rt,Et,Qt,Et],fA.Contents=new String,this.annotate(J,U,Z,K,fA)},highlight:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(J,U,Z,K,fA)},underline:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,U,Z,K,fA)},strike:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,U,Z,K,fA)},lineAnnotation:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[J,this.page.height-U,Z,this.page.height-K],this.annotate(J,U,Z,K,fA)},rectAnnotation:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,U,Z,K,fA)},ellipseAnnotation:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,U,Z,K,fA)},textAnnotation:function(J,U,Z,K,fA){var IA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return IA.Subtype="FreeText",IA.Contents=new String(fA),IA.DA=new String,this.annotate(J,U,Z,K,IA)},fileAnnotation:function(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},IA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},At=this.file(fA.src,Object.assign({hidden:!0},fA));return IA.Subtype="FileAttachment",IA.FS=At,IA.Contents?IA.Contents=new String(IA.Contents):At.data.Desc&&(IA.Contents=At.data.Desc),this.annotate(J,U,Z,K,IA)},_convertRect:function(J,U,Z,K){var fA=U;U+=K;var IA=J+Z,At=b(this._ctm,6),rt=At[0],Et=At[1],Qt=At[2],vt=At[3],Ft=At[4],St=At[5];return[J=rt*J+Qt*U+Ft,U=Et*J+vt*U+St,IA=rt*IA+Qt*fA+Ft,fA=Et*IA+vt*fA+St]}},Ue=function(){function vA(J,U,Z,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};h(this,vA),this.document=J,this.options=fA,this.outlineData={},null!==K&&(this.outlineData.Dest=[K.dictionary,"Fit"]),null!==U&&(this.outlineData.Parent=U),null!==Z&&(this.outlineData.Title=new String(Z)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(vA,[{key:"addItem",value:function(U){var K=new vA(this.document,this.dictionary,U,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(K),K}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var Z=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=Z.dictionary;for(var K=0,fA=this.children.length;K0&&(IA.outlineData.Prev=this.children[K-1].dictionary),K0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Pe=function(){function vA(J,U){h(this,vA),this.refs=[{pageRef:J,mcid:U}]}return w(vA,[{key:"push",value:function(U){var Z=this;U.refs.forEach(function(K){return Z.refs.push(K)})}}]),vA}(),nn=function(){function vA(J,U){var Z=this,K=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;h(this,vA),this.document=J,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=J.ref({S:U});var IA=this.dictionary.data;(Array.isArray(K)||this._isValidChild(K))&&(fA=K,K={}),void 0!==K.title&&(IA.T=new String(K.title)),void 0!==K.lang&&(IA.Lang=new String(K.lang)),void 0!==K.alt&&(IA.Alt=new String(K.alt)),void 0!==K.expanded&&(IA.E=new String(K.expanded)),void 0!==K.actual&&(IA.ActualText=new String(K.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(At){return Z.add(At)}),this.end())}return w(vA,[{key:"add",value:function(U){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(U))throw new Error("Invalid structure element child");return U instanceof vA&&(U.setParent(this.dictionary),this._attached&&U.setAttached()),U instanceof Pe&&this._addContentToParentTree(U),"function"==typeof U&&this._attached&&(U=this._contentForClosure(U)),this._children.push(U),this}},{key:"_addContentToParentTree",value:function(U){var Z=this;U.refs.forEach(function(K){var fA=K.pageRef,IA=K.mcid;Z.document.getStructParentTree().get(fA.data.StructParents)[IA]=Z.dictionary})}},{key:"setParent",value:function(U){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=U,this._flush()}},{key:"setAttached",value:function(){var U=this;this._attached||(this._children.forEach(function(Z,K){Z instanceof vA&&Z.setAttached(),"function"==typeof Z&&(U._children[K]=U._contentForClosure(Z))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(U){return U instanceof vA}).forEach(function(U){return U.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(U){return U instanceof vA||U instanceof Pe||"function"==typeof U}},{key:"_contentForClosure",value:function(U){var Z=this.document.markStructureContent(this.dictionary.data.S);return U(),this.document.endMarkedContent(),this._addContentToParentTree(Z),Z}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(U){return"function"!=typeof U&&(!(U instanceof vA)||U._isFlushable())})}},{key:"_flush",value:function(){var U=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(Z){return U._flushChild(Z)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(U){var Z=this;U instanceof vA&&this.dictionary.data.K.push(U.dictionary),U instanceof Pe&&U.refs.forEach(function(K){var fA=K.pageRef,IA=K.mcid;Z.dictionary.data.Pg||(Z.dictionary.data.Pg=fA),Z.dictionary.data.K.push(Z.dictionary.data.Pg===fA?IA:{Type:"MCR",Pg:fA,MCID:IA})})}}]),vA}(),Fn=function(vA){y(U,vA);var J=F(U);function U(){return h(this,U),J.apply(this,arguments)}return w(U,[{key:"_compareKeys",value:function(K,fA){return parseInt(K)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(K){return parseInt(K)}}]),U}(_),ln={initMarkings:function(J){this.structChildren=[],J.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===J||U&&U.mcid){var Z=0;for(this.page.markings.forEach(function(fA){(Z||fA.structContent||"Artifact"===fA.tag)&&Z++});Z--;)this.endMarkedContent()}if(!U)return this.page.markings.push({tag:J}),this.addContent("/".concat(J," BMC")),this;this.page.markings.push({tag:J,options:U});var K={};return void 0!==U.mcid&&(K.MCID=U.mcid),"Artifact"===J&&("string"==typeof U.type&&(K.Type=U.type),Array.isArray(U.bbox)&&(K.BBox=[U.bbox[0],this.page.height-U.bbox[3],U.bbox[2],this.page.height-U.bbox[1]]),Array.isArray(U.attached)&&U.attached.every(function(fA){return"string"==typeof fA})&&(K.Attached=U.attached)),"Span"===J&&(U.lang&&(K.Lang=new String(U.lang)),U.alt&&(K.Alt=new String(U.alt)),U.expanded&&(K.E=new String(U.expanded)),U.actual&&(K.ActualText=new String(U.actual))),this.addContent("/".concat(J," ").concat(zA.convert(K)," BDC")),this},markStructureContent:function(J){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Z=this.getStructParentTree().get(this.page.structParentTreeKey),K=Z.length;Z.push(null),this.markContent(J,Y(Y({},U),{},{mcid:K}));var fA=new Pe(this.page.dictionary,K);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(J){return new nn(this,J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(J){var U=this.getStructTreeRoot();return J.setParent(U),J.setAttached(),this.structChildren.push(J),U.data.K||(U.data.K=[]),U.data.K.push(J.dictionary),this},initPageMarkings:function(J){var U=this;J.forEach(function(Z){if(Z.structContent){var K=Z.structContent,fA=U.markStructureContent(Z.tag,Z.options);K.push(fA),U.page.markings.slice(-1)[0].structContent=K}else U.markContent(Z.tag,Z.options)})},endPageMarkings:function(J){var U=J.markings;return U.forEach(function(){return J.write("EMC")}),J.markings=[],U},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Fn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var J=this.getStructTreeRoot(),U=J.data.ParentTreeNextKey++;return J.data.ParentTree.add(U,[]),U},endMarkings:function(){var J=this._root.data.StructTreeRoot;J&&(J.end(),this.structChildren.forEach(function(U){return U.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},mn={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},Yn={left:0,center:1,right:2},tn={value:"V",defaultValue:"DV"},En={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},un_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},un_percent={nDec:0,sepComma:!1},$n={initForm:function(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();var J={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};J.DR.Font[this._font.id]=this._font.ref();var U=this.ref(J);return this._root.data.AcroForm=U,this},endAcroForm:function(){var J=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var U=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(Z){U[Z]=J._acroform.fonts[Z]}),this._root.data.AcroForm.data.Fields.forEach(function(Z){J._endChild(Z)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var U=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(Z){U._endChild(Z)}),J.end()),this},formField:function(J){var Z=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),K=this.ref(Z);return this._addToParent(K),K},formAnnotation:function(J,U,Z,K,fA,IA){var rt=this._fieldDict(J,U,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return rt.Subtype="Widget",void 0===rt.F&&(rt.F=4),this.annotate(Z,K,fA,IA,rt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,U,Z,K,fA){return this.formAnnotation(J,"text",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,U,Z,K,fA){return this.formAnnotation(J,"pushButton",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,U,Z,K,fA){return this.formAnnotation(J,"combo",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,U,Z,K,fA){return this.formAnnotation(J,"list",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,U,Z,K,fA){return this.formAnnotation(J,"radioButton",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,U,Z,K,fA){return this.formAnnotation(J,"checkbox",U,Z,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(J){var U=J.data.Parent;return U?(U.data.Kids||(U.data.Kids=[]),U.data.Kids.push(J)):this._root.data.AcroForm.data.Fields.push(J),this},_fieldDict:function(J,U){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var K=Object.assign({},Z);return null!==U&&(K=this._resolveType(U,Z)),K=this._resolveFlags(K),K=this._resolveJustify(K),K=this._resolveFont(K),K=this._resolveStrings(K),K=this._resolveColors(K),(K=this._resolveFormat(K)).T=new String(J),K.parent&&(K.Parent=K.parent,delete K.parent),K},_resolveType:function(J,U){if("text"===J)U.FT="Tx";else if("pushButton"===J)U.FT="Btn",U.pushButton=!0;else if("radioButton"===J)U.FT="Btn",U.radioButton=!0;else if("checkbox"===J)U.FT="Btn";else if("combo"===J)U.FT="Ch",U.combo=!0;else{if("list"!==J)throw new Error("Invalid form annotation type '".concat(J,"'"));U.FT="Ch"}return U},_resolveFormat:function(J){var U=J.format;if(U&&U.type){var Z,K,fA="";if(void 0!==En[U.type])Z="AFSpecial_Keystroke",K="AFSpecial_Format",fA=En[U.type];else{var IA=U.type.charAt(0).toUpperCase()+U.type.slice(1);if(Z="AF".concat(IA,"_Keystroke"),K="AF".concat(IA,"_Format"),"date"===U.type)Z+="Ex",fA=String(U.param);else if("time"===U.type)fA=String(U.param);else if("number"===U.type){var At=Object.assign({},un_number,U);fA=String([String(At.nDec),At.sepComma?"0":"1",'"'+At.negStyle+'"',"null",'"'+At.currency+'"',String(At.currencyPrepend)].join(","))}else if("percent"===U.type){var rt=Object.assign({},un_percent,U);fA=String([String(rt.nDec),rt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(Z,"(").concat(fA,");"))},J.AA.F={S:"JavaScript",JS:new String("".concat(K,"(").concat(fA,");"))}}return delete J.format,J},_resolveColors:function(J){var U=this._normalizeColor(J.backgroundColor);return U&&(J.MK||(J.MK={}),J.MK.BG=U),(U=this._normalizeColor(J.borderColor))&&(J.MK||(J.MK={}),J.MK.BC=U),delete J.backgroundColor,delete J.borderColor,J},_resolveFlags:function(J){var U=0;return Object.keys(J).forEach(function(Z){mn[Z]&&(U|=mn[Z],delete J[Z])}),0!==U&&(J.Ff=J.Ff?J.Ff:0,J.Ff|=U),J},_resolveJustify:function(J){var U=0;return void 0!==J.align&&("number"==typeof Yn[J.align]&&(U=Yn[J.align]),delete J.align),0!==U&&(J.Q=U),J},_resolveFont:function(J){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){J.DR={Font:{}};var U=J.fontSize||0;J.DR.Font[this._font.id]=this._font.ref(),J.DA=new String("/".concat(this._font.id," ").concat(U," Tf 0 g"))}return J},_resolveStrings:function(J){var U=[];function Z(K){if(Array.isArray(K))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};U.name=U.name||J;var K,Z={Type:"EmbeddedFile",Params:{}};if(!J)throw new Error("No src specified");if(r.isBuffer(J))K=J;else if(J instanceof ArrayBuffer)K=r.from(new Uint8Array(J));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(J))fA[1]&&(Z.Subtype=fA[1].replace("/","#2F")),K=r.from(fA[2],"base64");else{if(!(K=e.readFileSync(J)))throw new Error("Could not read contents of file at filepath ".concat(J));var IA=e.statSync(J),rt=IA.ctime;Z.Params.CreationDate=IA.birthtime,Z.Params.ModDate=rt}}U.creationDate instanceof Date&&(Z.Params.CreationDate=U.creationDate),U.modifiedDate instanceof Date&&(Z.Params.ModDate=U.modifiedDate),U.type&&(Z.Subtype=U.type.replace("/","#2F"));var Qt,Et=f.default.MD5(f.default.lib.WordArray.create(new Uint8Array(K)));Z.Params.CheckSum=new String(Et),Z.Params.Size=K.byteLength,this._fileRegistry||(this._fileRegistry={});var vt=this._fileRegistry[U.name];vt&&Pi(Z,vt)?Qt=vt.ref:((Qt=this.ref(Z)).end(K),this._fileRegistry[U.name]=Y(Y({},Z),{},{ref:Qt}));var Ft={Type:"Filespec",F:new String(U.name),EF:{F:Qt},UF:new String(U.name)};U.description&&(Ft.Desc=new String(U.description));var St=this.ref(Ft);return St.end(),U.hidden||this.addNamedEmbeddedFile(U.name,St),St}};function Pi(vA,J){return vA.Subtype===J.Subtype&&vA.Params.CheckSum.toString()===J.Params.CheckSum.toString()&&vA.Params.Size===J.Params.Size&&vA.Params.CreationDate===J.Params.CreationDate&&vA.Params.ModDate===J.Params.ModDate}var oi=function(vA){y(U,vA);var J=F(U);function U(){var Z,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(h(this,U),(Z=J.call(this,K)).options=K,K.pdfVersion){case"1.4":Z.version=1.4;break;case"1.5":Z.version=1.5;break;case"1.6":Z.version=1.6;break;case"1.7":case"1.7ext3":Z.version=1.7;break;default:Z.version=1.3}Z.compress=null==Z.options.compress||Z.options.compress,Z._pageBuffer=[],Z._pageBufferStart=0,Z._offsets=[],Z._waiting=0,Z._ended=!1,Z._offset=0;var fA=Z.ref({Type:"Pages",Count:0,Kids:[]}),IA=Z.ref({Dests:new W});if(Z._root=Z.ref({Type:"Catalog",Pages:fA,Names:IA}),Z.options.lang&&(Z._root.data.Lang=new String(Z.options.lang)),Z.page=null,Z.initColor(),Z.initVector(),Z.initFonts(K.font),Z.initText(),Z.initImages(),Z.initOutline(),Z.initMarkings(K),Z.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},Z.options.info)for(var At in Z.options.info)Z.info[At]=Z.options.info[At];return Z.options.displayTitle&&(Z._root.data.ViewerPreferences=Z.ref({DisplayDocTitle:!0})),Z._id=z.generateFileID(Z.info),Z._security=z.create(R(Z),K),Z._write("%PDF-".concat(Z.version)),Z._write("%\xff\xff\xff\xff"),!1!==Z.options.autoFirstPage&&Z.addPage(),Z}return w(U,[{key:"addPage",value:function(K){null==K&&(K=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,K),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}},{key:"continueOnNewPage",value:function(K){var fA=this.endPageMarkings(this.page);return this.addPage(K),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(K){var fA;if(!(fA=this._pageBuffer[K-this._pageBufferStart]))throw new Error("switchToPage(".concat(K,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var K=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=K.length;var IA,fA=xA(K);try{for(fA.s();!(IA=fA.n()).done;){var At=IA.value;this.endPageMarkings(At),At.end()}}catch(rt){fA.e(rt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(K){for(var fA=arguments.length,IA=new Array(fA>1?fA-1:0),At=1;At>b&q]},getCombiningClass:function(DA){var nA=d.get(DA);return y.combiningClasses[nA>>P&BA]},getScript:function(DA){var nA=d.get(DA);return y.scripts[nA>>eA&MA]},getEastAsianWidth:function(DA){var nA=d.get(DA);return y.eaw[nA>>10&lA]},getNumericValue:function(DA){var nA=d.get(DA),EA=1023&nA;if(0===EA)return null;if(EA<=50)return EA-1;if(EA<480)return((EA>>4)-12)/(1+(15&EA));if(EA<768){nA=(EA>>5)-14;for(var st=2+(31&EA);st>0;)nA*=10,st--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:dA,isPunctuation:SA,isLowerCase:zA,isUpperCase:XA,isTitleCase:X,isWhiteSpace:O,isBaseForm:$,isMark:W});I.default=Q},4781:function(S,I,n){"use strict";n(7042),n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=n(311),s=n(1753).swap32LE;S.exports=function(){function D(N){var F="function"==typeof N.readUInt32BE&&"function"==typeof N.slice;if(F||N instanceof Uint8Array){var b;if(F)this.highStart=N.readUInt32LE(0),this.errorValue=N.readUInt32LE(4),b=N.readUInt32LE(8),N=N.slice(12);else{var P=new DataView(N.buffer);this.highStart=P.getUint32(0,!0),this.errorValue=P.getUint32(4,!0),b=P.getUint32(8,!0),N=N.subarray(12)}N=c(N,new Uint8Array(b)),N=c(N,new Uint8Array(b)),s(N),this.data=new Uint32Array(N.buffer)}else{var eA=N;this.data=eA.data,this.highStart=eA.highStart,this.errorValue=eA.errorValue}}return D.prototype.get=function(F){return F<0||F>1114111?this.errorValue:F<55296||F>56319&&F<=65535?this.data[(this.data[F>>5]<<2)+(31&F)]:F<=65535?this.data[(this.data[2048+(F-55296>>5)]<<2)+(31&F)]:F>11)]+(F>>5&63)]<<2)+(31&F)]:this.data[this.data.length-4]},D}()},1753:function(S,I,n){"use strict";n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],r=function(a,B,E){var u=a[B];a[B]=a[E],a[E]=u};S.exports={swap32LE:function(a){c&&function(a){for(var B=a.length,E=0;E/)){for(;ot=$A();)WA.childNodes.push(ot),ot.parentNode=WA,WA.textContent+=3===ot.nodeType||4===ot.nodeType?ot.nodeValue:ot.textContent;return(bA=et.match(/^<\/([\w:.-]+)\s*>/,!0))?(bA[1]===WA.nodeName||(ae('parseXml: tag not matching, opening "'+WA.nodeName+'" & closing "'+bA[1]+'"'),LA=!0),WA):(ae('parseXml: tag not matching, opening "'+WA.nodeName+'" & not closing'),LA=!0,WA)}if(et.match(/^\/>/))return WA;ae('parseXml: tag could not be parsed "'+WA.nodeName+'"'),LA=!0}else{if(bA=et.match(/^/))return new YA(null,8,bA,LA);if(bA=et.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,bA,LA);if(bA=et.match(/^/))return new YA(null,10,bA,LA);if(bA=et.match(/^/,!0))return new YA("#cdata-section",4,bA[1],LA);if(bA=et.match(/^([^<]+)/,!0))return new YA("#text",3,q(bA[1]),LA)}};PA=JA();)1!==PA.nodeType||UA?(1===PA.nodeType||3===PA.nodeType&&""!==PA.nodeValue.trim())&&ae("parseXml: data after document end has been discarded"):UA=PA;return et.matchAll()&&ae("parseXml: parsing error"),UA}function q(ZA){return ZA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,et,UA,PA){return et?String.fromCharCode(parseInt(et,10)):UA?String.fromCharCode(parseInt(UA,16)):PA&&C[PA]?String.fromCharCode(C[PA]):YA})}function BA(ZA){var YA,et;return ZA=(ZA||"").trim(),(YA=E[ZA])?et=[YA.slice(),1]:(YA=ZA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[4]=parseFloat(YA[4]),YA[1]<256&&YA[2]<256&&YA[3]<256&&YA[4]<=1&&(et=[YA.slice(1,4),YA[4]])):(YA=ZA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(et=[YA.slice(1,4),1])):(YA=ZA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(YA[1]=2.55*parseFloat(YA[1]),YA[2]=2.55*parseFloat(YA[2]),YA[3]=2.55*parseFloat(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(et=[YA.slice(1,4),1])):(YA=ZA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?et=[[parseInt(YA[1],16),parseInt(YA[2],16),parseInt(YA[3],16)],1]:(YA=ZA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(et=[[17*parseInt(YA[1],16),17*parseInt(YA[2],16),17*parseInt(YA[3],16)],1]),on?on(et,ZA):et}function MA(ZA,YA,et){var UA=ZA[0].slice(),PA=ZA[1]*YA;if(et){for(var LA=0;LA=0;YA--)ZA=lA(Jn[YA].savedMatrix,ZA);return ZA}function xA(){return(new VA).M(0,0).L(s.page.width,0).L(s.page.width,s.page.height).L(0,s.page.height).transform(FA(gA())).getBoundingBox()}function FA(ZA){var YA=ZA[0]*ZA[3]-ZA[1]*ZA[2];return[ZA[3]/YA,-ZA[1]/YA,-ZA[2]/YA,ZA[0]/YA,(ZA[2]*ZA[5]-ZA[3]*ZA[4])/YA,(ZA[1]*ZA[4]-ZA[0]*ZA[5])/YA]}function _(ZA){var YA=zA(ZA[0]),et=zA(ZA[1]),UA=zA(ZA[2]),PA=zA(ZA[3]),LA=zA(ZA[4]),JA=zA(ZA[5]);if(SA(YA*PA-et*UA,0))return[YA,et,UA,PA,LA,JA]}function pA(ZA){var YA=ZA[2]||0,et=ZA[1]||0,UA=ZA[0]||0;if(dA(YA,0)&&dA(et,0))return[];if(dA(YA,0))return[-UA/et];var PA=et*et-4*YA*UA;return SA(PA,0)&&PA>0?[(-et+Math.sqrt(PA))/(2*YA),(-et-Math.sqrt(PA))/(2*YA)]:dA(PA,0)?[-et/(2*YA)]:[]}function uA(ZA,YA){return(YA[0]||0)+(YA[1]||0)*ZA+(YA[2]||0)*ZA*ZA+(YA[3]||0)*ZA*ZA*ZA}function dA(ZA,YA){return Math.abs(ZA-YA)<1e-10}function SA(ZA,YA){return Math.abs(ZA-YA)>=1e-10}function zA(ZA){return ZA>-1e21&&ZA<1e21?Math.round(1e6*ZA)/1e6:0}function X(ZA){for(var UA,YA=new mt((ZA||"").trim()),et=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var PA=UA[1],LA=[],JA=new mt(UA[2].trim()),$A=void 0;$A=JA.matchNumber();)LA.push(Number($A)),JA.matchSeparator();if("matrix"===PA&&6===LA.length)et=lA(et,[LA[0],LA[1],LA[2],LA[3],LA[4],LA[5]]);else if("translate"===PA&&2===LA.length)et=lA(et,[1,0,0,1,LA[0],LA[1]]);else if("translate"===PA&&1===LA.length)et=lA(et,[1,0,0,1,LA[0],0]);else if("scale"===PA&&2===LA.length)et=lA(et,[LA[0],0,0,LA[1],0,0]);else if("scale"===PA&&1===LA.length)et=lA(et,[LA[0],0,0,LA[0],0,0]);else if("rotate"===PA&&3===LA.length){var bA=LA[0]*Math.PI/180;et=lA(et,[1,0,0,1,LA[1],LA[2]],[Math.cos(bA),Math.sin(bA),-Math.sin(bA),Math.cos(bA),0,0],[1,0,0,1,-LA[1],-LA[2]])}else if("rotate"===PA&&1===LA.length){var ot=LA[0]*Math.PI/180;et=lA(et,[Math.cos(ot),Math.sin(ot),-Math.sin(ot),Math.cos(ot),0,0])}else if("skewX"===PA&&1===LA.length){var WA=LA[0]*Math.PI/180;et=lA(et,[1,0,Math.tan(WA),1,0,0])}else{if("skewY"!==PA||1!==LA.length)return;var pt=LA[0]*Math.PI/180;et=lA(et,[1,Math.tan(pt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return et}function O(ZA,YA,et,UA,PA,LA){var JA=(ZA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=JA[1]||JA[4]||"meet",WA=YA/UA,pt=et/PA,Nt={Min:0,Mid:.5,Max:1}[JA[2]||"Mid"]-(LA||0),Pt={Min:0,Mid:.5,Max:1}[JA[3]||"Mid"]-(LA||0);return"slice"===$A?pt=WA=Math.max(WA,pt):"meet"===$A&&(pt=WA=Math.min(WA,pt)),[WA,0,0,pt,Nt*(YA-UA*WA),Pt*(et-PA*pt)]}function $(ZA){var YA=Object.create(null);ZA=(ZA||"").trim().split(/;/);for(var et=0;ethe&&(Ot=he,he=Be,Be=Ot),_t>ue&&(Ot=ue,ue=_t,_t=Ot);for(var ye=pA(Nt),Je=0;Je=0&&ye[Je]<=1){var Ue=uA(ye[Je],WA);Uehe&&(he=Ue)}for(var Ye=pA(Pt),Pe=0;Pe=0&&Ye[Pe]<=1){var nn=uA(Ye[Pe],pt);nn<_t&&(_t=nn),nn>ue&&(ue=nn)}return[Be,_t,he,ue]},this.getPointAtLength=function(Ot){if(dA(Ot,0))return this.startPoint;if(dA(Ot,this.totalLength))return this.endPoint;if(!(Ot<0||Ot>this.totalLength))for(var Be=1;Be<=ot;Be++){var _t=Kt[Be-1],he=Kt[Be];if(_t<=Ot&&Ot<=he){var ue=(Be-(he-Ot)/(he-_t))/ot,ye=uA(ue,WA),Je=uA(ue,pt),Ue=uA(ue,Nt),Ye=uA(ue,Pt);return[ye,Je,Math.atan2(Ye,Ue)]}}}},OA=function(YA,et,UA,PA){this.totalLength=Math.sqrt((UA-YA)*(UA-YA)+(PA-et)*(PA-et)),this.startPoint=[YA,et,Math.atan2(PA-et,UA-YA)],this.endPoint=[UA,PA,Math.atan2(PA-et,UA-YA)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){var JA=LA/this.totalLength||0;return[this.startPoint[0]+JA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+JA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},VA=function ZA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var LA,JA,$A,YA=0,et=0,UA=0,PA=0;this.move=function(bA,ot){return YA=UA=bA,et=PA=ot,null},this.line=function(bA,ot){var WA=new OA(UA,PA,bA,ot);return UA=bA,PA=ot,WA},this.curve=function(bA,ot,WA,pt,Nt,Pt){var Kt=new wt(UA,PA,bA,ot,WA,pt,Nt,Pt);return UA=Nt,PA=Pt,Kt},this.close=function(){var bA=new OA(UA,PA,YA,et);return UA=YA,PA=et,bA},this.addCommand=function(bA){this.pathCommands.push(bA);var ot=this[bA[0]].apply(this,bA.slice(3));ot&&(ot.hasStart=bA[1],ot.hasEnd=bA[2],this.startPoint=this.startPoint||ot.startPoint,this.endPoint=ot.endPoint,this.pathSegments.push(ot),this.totalLength+=ot.totalLength)},this.M=function(bA,ot){return this.addCommand(["move",!0,!0,bA,ot]),LA="M",this},this.m=function(bA,ot){return this.M(UA+bA,PA+ot)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),LA="Z",this},this.L=function(bA,ot){return this.addCommand(["line",!0,!0,bA,ot]),LA="L",this},this.l=function(bA,ot){return this.L(UA+bA,PA+ot)},this.H=function(bA){return this.L(bA,PA)},this.h=function(bA){return this.L(UA+bA,PA)},this.V=function(bA){return this.L(UA,bA)},this.v=function(bA){return this.L(UA,PA+bA)},this.C=function(bA,ot,WA,pt,Nt,Pt){return this.addCommand(["curve",!0,!0,bA,ot,WA,pt,Nt,Pt]),LA="C",JA=WA,$A=pt,this},this.c=function(bA,ot,WA,pt,Nt,Pt){return this.C(UA+bA,PA+ot,UA+WA,PA+pt,UA+Nt,PA+Pt)},this.S=function(bA,ot,WA,pt){return this.C(UA+("C"===LA?UA-JA:0),PA+("C"===LA?PA-$A:0),bA,ot,WA,pt)},this.s=function(bA,ot,WA,pt){return this.C(UA+("C"===LA?UA-JA:0),PA+("C"===LA?PA-$A:0),UA+bA,PA+ot,UA+WA,PA+pt)},this.Q=function(bA,ot,WA,pt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(bA-UA),PA+2/3*(ot-PA),WA+2/3*(bA-WA),pt+2/3*(ot-pt),WA,pt]),LA="Q",JA=bA,$A=ot,this},this.q=function(bA,ot,WA,pt){return this.Q(UA+bA,PA+ot,UA+WA,PA+pt)},this.T=function(bA,ot){return this.Q(UA+("Q"===LA?UA-JA:0),PA+("Q"===LA?PA-$A:0),bA,ot)},this.t=function(bA,ot){return this.Q(UA+("Q"===LA?UA-JA:0),PA+("Q"===LA?PA-$A:0),UA+bA,PA+ot)},this.A=function(bA,ot,WA,pt,Nt,Pt,Kt){if(dA(bA,0)||dA(ot,0))this.addCommand(["line",!0,!0,Pt,Kt]);else{WA*=Math.PI/180,bA=Math.abs(bA),ot=Math.abs(ot),pt=1*!!pt,Nt=1*!!Nt;var qt=Math.cos(WA)*(UA-Pt)/2+Math.sin(WA)*(PA-Kt)/2,re=Math.cos(WA)*(PA-Kt)/2-Math.sin(WA)*(UA-Pt)/2,Ct=qt*qt/(bA*bA)+re*re/(ot*ot);Ct>1&&(bA*=Math.sqrt(Ct),ot*=Math.sqrt(Ct));var Rt=Math.sqrt(Math.max(0,bA*bA*ot*ot-bA*bA*re*re-ot*ot*qt*qt)/(bA*bA*re*re+ot*ot*qt*qt)),Wt=(pt===Nt?-1:1)*Rt*bA*re/ot,Ot=(pt===Nt?1:-1)*Rt*ot*qt/bA,Be=Math.cos(WA)*Wt-Math.sin(WA)*Ot+(UA+Pt)/2,_t=Math.sin(WA)*Wt+Math.cos(WA)*Ot+(PA+Kt)/2,he=Math.atan2((re-Ot)/ot,(qt-Wt)/bA),ue=Math.atan2((-re-Ot)/ot,(-qt-Wt)/bA);0===Nt&&ue-he>0?ue-=2*Math.PI:1===Nt&&ue-he<0&&(ue+=2*Math.PI);for(var ye=Math.ceil(Math.abs(ue-he)/(Math.PI/Hn)),Je=0;JebA[2]&&(bA[2]=pt[2]),pt[1]bA[3]&&(bA[3]=pt[3]);return bA[0]===1/0&&(bA[0]=0),bA[1]===1/0&&(bA[1]=0),bA[2]===-1/0&&(bA[2]=0),bA[3]===-1/0&&(bA[3]=0),bA},this.getPointAtLength=function(bA){if(bA>=0&&bA<=this.totalLength){for(var ot,WA=0;WAPA.selector.specificity||(YA[LA]=PA.css[LA],et[LA]=PA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(LA){if("function"==typeof YA.getAttribute)return YA.getAttribute(LA)},this.resolveUrl=function(LA){var JA=(LA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=JA[1]||JA[3]||JA[5]||JA[7],bA=JA[2]||JA[4]||JA[6]||JA[8];if(bA){if(!$A){var ot=l.getElementById(bA);if(ot)return-1===this.stack.indexOf(ot)?ot:void ae('SVGtoPDF: loop of circular references for id "'+bA+'"')}if(An){var WA=kt[$A];if(!WA){(function XA(ZA){return"object"==typeof ZA&&null!==ZA&&"number"==typeof ZA.length})(WA=An($A))||(WA=[WA]);for(var pt=0;pt=0&&$A[3]>=0?$A:JA},this.getPercent=function(LA,JA){var $A=this.attr(LA),bA=new mt(($A||"").trim()),pt=bA.matchNumber();return!pt||(bA.match("%")&&(pt*=.01),bA.matchAll())?JA:Math.max(0,Math.min(1,pt))},this.chooseValue=function(LA){for(var JA=0;JA=0&&(bA=WA);break;case"stroke-miterlimit":null!=(WA=parseFloat($A))&&WA>=1&&(bA=WA);break;case"word-spacing":case"letter-spacing":bA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(bA=this.computeLength($A,this.getViewport()))&&bA<0)for(var re=this.get("stroke-dasharray"),Ct=0;Ct0?JA:this.ref?this.ref.getChildren():[]},this.getPaint=function(JA,$A,bA,ot){var WA="userSpaceOnUse"!==this.attr("patternUnits"),pt="objectBoundingBox"===this.attr("patternContentUnits"),Nt=this.getLength("x",WA?1:this.getParentVWidth(),0),Pt=this.getLength("y",WA?1:this.getParentVHeight(),0),Kt=this.getLength("width",WA?1:this.getParentVWidth(),0),qt=this.getLength("height",WA?1:this.getParentVHeight(),0);pt&&!WA?(Nt=(Nt-JA[0])/(JA[2]-JA[0])||0,Pt=(Pt-JA[1])/(JA[3]-JA[1])||0,Kt=Kt/(JA[2]-JA[0])||0,qt=qt/(JA[3]-JA[1])||0):!pt&&WA&&(Nt=JA[0]+Nt*(JA[2]-JA[0]),Pt=JA[1]+Pt*(JA[3]-JA[1]),Kt*=JA[2]-JA[0],qt*=JA[3]-JA[1]);var re=this.getViewbox("viewBox",[0,0,Kt,qt]),Rt=lA(O((this.attr("preserveAspectRatio")||"").trim(),Kt,qt,re[2],re[3],0),[1,0,0,1,-re[0],-re[1]]),Wt=X(this.attr("patternTransform"));if(pt&&(Wt=lA([JA[2]-JA[0],0,0,JA[3]-JA[1],JA[0],JA[1]],Wt)),(Wt=_(Wt=lA(Wt,[1,0,0,1,Nt,Pt])))&&(Rt=_(Rt))&&(Kt=zA(Kt))&&(qt=zA(qt))){var Ot=w([0,0,Kt,qt]);return s.transform.apply(s,Rt),this.drawChildren(bA,ot),Q(Ot),[y(Ot,Kt,qt,Wt),$A]}return UA?[UA[0],UA[1]*$A]:void 0},this.getVWidth=function(){var JA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("width",JA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,$A,0])[2]},this.getVHeight=function(){var JA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("height",JA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,$A])[3]}},RA=function ZA(YA,et,UA){tt.call(this,YA,et),this.allowedChildren=["stop"],this.ref=function(){var JA=this.getUrl("href")||this.getUrl("xlink:href");if(JA&&JA.nodeName===YA.nodeName)return new ZA(JA,et,UA)}.call(this);var PA=this.attr;this.attr=function(JA){var $A=PA.call(this,JA);return null!=$A||"href"===JA||"xlink:href"===JA?$A:this.ref?this.ref.attr(JA):null};var LA=this.getChildren;this.getChildren=function(){var JA=LA.call(this);return JA.length>0?JA:this.ref?this.ref.getChildren():[]},this.getPaint=function(JA,$A,bA,ot){var WA=this.getChildren();if(0!==WA.length){if(1===WA.length){var pt=WA[0],Nt=pt.get("stop-color");return"none"===Nt?void 0:MA(Nt,pt.get("stop-opacity")*$A,ot)}var re,Ct,Rt,Wt,Ot,Be,Pt="userSpaceOnUse"!==this.attr("gradientUnits"),Kt=X(this.attr("gradientTransform")),qt=this.attr("spreadMethod"),_t=0,he=0,ue=1;if(Pt&&(Kt=lA([JA[2]-JA[0],0,0,JA[3]-JA[1],JA[0],JA[1]],Kt)),Kt=_(Kt)){if("linearGradient"===this.name)Ct=this.getLength("x1",Pt?1:this.getVWidth(),0),Rt=this.getLength("x2",Pt?1:this.getVWidth(),Pt?1:this.getVWidth()),Wt=this.getLength("y1",Pt?1:this.getVHeight(),0),Ot=this.getLength("y2",Pt?1:this.getVHeight(),0);else{Rt=this.getLength("cx",Pt?1:this.getVWidth(),Pt?.5:.5*this.getVWidth()),Ot=this.getLength("cy",Pt?1:this.getVHeight(),Pt?.5:.5*this.getVHeight()),Be=this.getLength("r",Pt?1:this.getViewport(),Pt?.5:.5*this.getViewport()),Ct=this.getLength("fx",Pt?1:this.getVWidth(),Rt),Wt=this.getLength("fy",Pt?1:this.getVHeight(),Ot),Be<0&&ae("SvgElemGradient: negative r value");var ye=Math.sqrt(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2)),Je=1;ye>Be&&(Ct=Rt+(Ct-Rt)*(Je=Be/ye),Wt=Ot+(Wt-Ot)*Je),Be=Math.max(Be,ye*Je*1.000001)}if("reflect"===qt||"repeat"===qt){var Ue=FA(Kt),Ye=cA([JA[0],JA[1]],Ue),Pe=cA([JA[2],JA[1]],Ue),nn=cA([JA[2],JA[3]],Ue),Fn=cA([JA[0],JA[3]],Ue);"linearGradient"===this.name?(_t=Math.max((Ye[0]-Rt)*(Rt-Ct)+(Ye[1]-Ot)*(Ot-Wt),(Pe[0]-Rt)*(Rt-Ct)+(Pe[1]-Ot)*(Ot-Wt),(nn[0]-Rt)*(Rt-Ct)+(nn[1]-Ot)*(Ot-Wt),(Fn[0]-Rt)*(Rt-Ct)+(Fn[1]-Ot)*(Ot-Wt))/(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2)),he=Math.max((Ye[0]-Ct)*(Ct-Rt)+(Ye[1]-Wt)*(Wt-Ot),(Pe[0]-Ct)*(Ct-Rt)+(Pe[1]-Wt)*(Wt-Ot),(nn[0]-Ct)*(Ct-Rt)+(nn[1]-Wt)*(Wt-Ot),(Fn[0]-Ct)*(Ct-Rt)+(Fn[1]-Wt)*(Wt-Ot))/(Math.pow(Rt-Ct,2)+Math.pow(Ot-Wt,2))):_t=Math.sqrt(Math.max(Math.pow(Ye[0]-Rt,2)+Math.pow(Ye[1]-Ot,2),Math.pow(Pe[0]-Rt,2)+Math.pow(Pe[1]-Ot,2),Math.pow(nn[0]-Rt,2)+Math.pow(nn[1]-Ot,2),Math.pow(Fn[0]-Rt,2)+Math.pow(Fn[1]-Ot,2)))/Be-1,_t=Math.ceil(_t+.5),ue=(he=Math.ceil(he+.5))+1+_t}re="linearGradient"===this.name?s.linearGradient(Ct-he*(Rt-Ct),Wt-he*(Ot-Wt),Rt+_t*(Rt-Ct),Ot+_t*(Ot-Wt)):s.radialGradient(Ct,Wt,0,Rt,Ot,Be+_t*Be);for(var ln=0;ln0&&re.stop((ln+0)/ue,un[0],un[1]),re.stop((ln+mn)/(_t+he+1),un[0],un[1]),tn===WA.length-1&&mn<1&&re.stop((ln+1)/ue,un[0],un[1])}return re.setTransform.apply(re,Kt),[re,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},iA=function(YA,et){mA.call(this,YA,et),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(UA,PA){if("hidden"!==this.get("visibility")&&this.shape){if(s.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),b(u.white),s.fill(this.get("clip-rule"));else{var JA;this.mask()&&(JA=w(xA()));var $A=this.shape.getSubPaths(),bA=this.getFill(UA,PA),ot=this.getStroke(UA,PA),WA=this.get("stroke-width"),pt=this.get("stroke-linecap");if(bA||ot){if(bA&&b(bA),ot){for(var Nt=0;Nt<$A.length;Nt++)if(dA($A[Nt].totalLength,0)&&("square"===pt||"round"===pt)&&WA>0&&$A[Nt].startPoint&&$A[Nt].startPoint.length>1){var Pt=$A[Nt].startPoint[0],Kt=$A[Nt].startPoint[1];b(ot),"square"===pt?s.rect(Pt-.5*WA,Kt-.5*WA,WA,WA):"round"===pt&&s.circle(Pt,Kt,.5*WA),s.fill()}var qt=this.get("stroke-dasharray"),re=this.get("stroke-dashoffset");if(SA(this.dashScale,1)){for(var Ct=0;Ct0&&$A[Rt].insertInDocument();bA&&ot?s.fillAndStroke(this.get("fill-rule")):bA?s.fill(this.get("fill-rule")):ot&&s.stroke()}var Wt=this.get("marker-start"),Ot=this.get("marker-mid"),Be=this.get("marker-end");if("none"!==Wt||"none"!==Ot||"none"!==Be){var _t=this.shape.getMarkers();if("none"!==Wt&&new lt(Wt,null).drawMarker(!1,PA,_t[0],WA),"none"!==Ot)for(var ue=1;ue<_t.length-1;ue++)new lt(Ot,null).drawMarker(!1,PA,_t[ue],WA);"none"!==Be&&new lt(Be,null).drawMarker(!1,PA,_t[_t.length-1],WA)}JA&&(Q(JA),m(JA))}s.restore()}}},gt=function(YA,et){iA.call(this,YA,et);var UA=this.getLength("x",this.getVWidth(),0),PA=this.getLength("y",this.getVHeight(),0),LA=this.getLength("width",this.getVWidth(),0),JA=this.getLength("height",this.getVHeight(),0),$A=this.getLength("rx",this.getVWidth()),bA=this.getLength("ry",this.getVHeight());void 0===$A&&void 0===bA?$A=bA=0:void 0===$A&&void 0!==bA?$A=bA:void 0!==$A&&void 0===bA&&(bA=$A),LA>0&&JA>0?$A&&bA?($A=Math.min($A,.5*LA),bA=Math.min(bA,.5*JA),this.shape=(new VA).M(UA+$A,PA).L(UA+LA-$A,PA).A($A,bA,0,0,1,UA+LA,PA+bA).L(UA+LA,PA+JA-bA).A($A,bA,0,0,1,UA+LA-$A,PA+JA).L(UA+$A,PA+JA).A($A,bA,0,0,1,UA,PA+JA-bA).L(UA,PA+bA).A($A,bA,0,0,1,UA+$A,PA).Z()):this.shape=(new VA).M(UA,PA).L(UA+LA,PA).L(UA+LA,PA+JA).L(UA,PA+JA).Z():this.shape=new VA},Yt=function(YA,et){iA.call(this,YA,et);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),LA=this.getLength("r",this.getViewport(),0);this.shape=LA>0?(new VA).M(UA+LA,PA).A(LA,LA,0,0,1,UA-LA,PA).A(LA,LA,0,0,1,UA+LA,PA).Z():new VA},j=function(YA,et){iA.call(this,YA,et);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),LA=this.getLength("rx",this.getVWidth(),0),JA=this.getLength("ry",this.getVHeight(),0);this.shape=LA>0&&JA>0?(new VA).M(UA+LA,PA).A(LA,JA,0,0,1,UA-LA,PA).A(LA,JA,0,0,1,UA+LA,PA).Z():new VA},qA=function(YA,et){iA.call(this,YA,et);var UA=this.getLength("x1",this.getVWidth(),0),PA=this.getLength("y1",this.getVHeight(),0),LA=this.getLength("x2",this.getVWidth(),0),JA=this.getLength("y2",this.getVHeight(),0);this.shape=(new VA).M(UA,PA).L(LA,JA)},kA=function(YA,et){iA.call(this,YA,et);var UA=this.getNumberList("points");this.shape=new VA;for(var PA=0;PA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},lt=function(YA,et){dt.call(this,YA,et);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),PA=this.getLength("markerHeight",this.getParentVHeight(),3),LA=this.getViewbox("viewBox",[0,0,UA,PA]);this.getVWidth=function(){return LA[2]},this.getVHeight=function(){return LA[3]},this.drawMarker=function(JA,$A,bA,ot){s.save();var WA=this.attr("orient"),pt=this.attr("markerUnits"),Nt="auto"===WA?bA[2]:(parseFloat(WA)||0)*Math.PI/180,Pt="userSpaceOnUse"===pt?1:ot;s.transform(Math.cos(Nt)*Pt,Math.sin(Nt)*Pt,-Math.sin(Nt)*Pt,Math.cos(Nt)*Pt,bA[0],bA[1]);var Ct,Kt=this.getLength("refX",this.getVWidth(),0),qt=this.getLength("refY",this.getVHeight(),0),re=O(this.attr("preserveAspectRatio"),UA,PA,LA[2],LA[3],.5);"hidden"===this.get("overflow")&&s.rect(re[0]*(LA[0]+LA[2]/2-Kt)-UA/2,re[3]*(LA[1]+LA[3]/2-qt)-PA/2,UA,PA).clip(),s.transform.apply(s,re),s.translate(-Kt,-qt),this.get("opacity")<1&&!JA&&(Ct=w(xA())),this.drawChildren(JA,$A),Ct&&(Q(Ct),s.fillOpacity(this.get("opacity")),m(Ct)),s.restore()}},zt=function(YA,et){dt.call(this,YA,et),this.useMask=function(UA){var PA=w(xA());s.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&s.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),s.restore(),Q(PA),Y(PA,!0)}},xt=function(YA,et){dt.call(this,YA,et),this.useMask=function(UA){var LA,JA,$A,bA,PA=w(xA());s.save(),"userSpaceOnUse"===this.attr("maskUnits")?(LA=this.getLength("x",this.getVWidth(),-.1*(UA[2]-UA[0])+UA[0]),JA=this.getLength("y",this.getVHeight(),-.1*(UA[3]-UA[1])+UA[1]),$A=this.getLength("width",this.getVWidth(),1.2*(UA[2]-UA[0])),bA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(LA=this.getLength("x",this.getVWidth(),-.1)*(UA[2]-UA[0])+UA[0],JA=this.getLength("y",this.getVHeight(),-.1)*(UA[3]-UA[1])+UA[1],$A=this.getLength("width",this.getVWidth(),1.2)*(UA[2]-UA[0]),bA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),s.rect(LA,JA,$A,bA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&s.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),s.restore(),Q(PA),Y(PA,!0)}},Lt=function(YA,et){mA.call(this,YA,et),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new VA,PA=0;PA Tj")}s.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+it(this._font.font,this._font.size)),UA,PA)},this.decorate=function(UA,PA,LA,JA){var $A=this.getFill(LA,JA),bA=this.getStroke(LA,JA);$A&&b($A),bA&&(P(bA),s.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")).dash(this.get("stroke-dasharray"),{phase:this.get("stroke-dashoffset")}));for(var ot=0,WA=this._pos;ot0?JA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((LA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===LA.nodeName){var $A=new KA(LA,this);this.pathObject=$A.shape.clone().transform($A.get("transform")),this.pathLength=this.chooseValue($A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},ne=function(YA,et){Lt.call(this,YA,et),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var bA,ot,PA="",LA=YA.textContent,JA=[],$A=[],WA=0,pt=0;function Nt(){if($A.length)for(var Ct=$A[$A.length-1],Ot={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[bA+ot]*(Ct.x+Ct.width-$A[0].x)||0,Be=0;Be<$A.length;Be++)$A[Be].x-=Ot;$A=[]}function qt(Ct){var Rt=Ct.pathObject,Wt=Ct.pathLength,Ot=Ct.pathScale;if(Rt)for(var Be=Ct.getLength("startOffset",Wt,0),_t=0;_tWt||he<0)Ct._pos[_t].hidden=!0;else{var ue=Rt.getPointAtLength(he*Ot);SA(Ot,1)&&(Ct._pos[_t].scale*=Ot,Ct._pos[_t].width*=Ot),Ct._pos[_t].x=ue[0]-.5*Ct._pos[_t].width*Math.cos(ue[2])-Ct._pos[_t].y*Math.sin(ue[2]),Ct._pos[_t].y=ue[1]-.5*Ct._pos[_t].width*Math.sin(ue[2])+Ct._pos[_t].y*Math.cos(ue[2]),Ct._pos[_t].rotate=ue[2]+Ct._pos[_t].rotate,Ct._pos[_t].continuous=!1}}else for(var ye=0;ye0&&ue<1/0)for(var ye=0;ye=2)for(var Je=(Rt-(he-_t))/(Ct.length-1),Ue=0;Ue0?m-4:m;for(D=0;D>16&255,y[d++]=w>>8&255,y[d++]=255&w;return 2===Y&&(w=c[g.charCodeAt(D)]<<2|c[g.charCodeAt(D+1)]>>4,y[d++]=255&w),1===Y&&(w=c[g.charCodeAt(D)]<<10|c[g.charCodeAt(D+1)]<<4|c[g.charCodeAt(D+2)]>>2,y[d++]=w>>8&255,y[d++]=255&w),y},I.fromByteArray=function h(g){for(var w,Q=g.length,m=Q%3,Y=[],y=16383,d=0,v=Q-m;dv?v:d+y));return 1===m?Y.push(n[(w=g[Q-1])>>2]+n[w<<4&63]+"=="):2===m&&Y.push(n[(w=(g[Q-2]<<8)+g[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),Y.join("")};for(var n=[],c=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=s.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=g.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(g){return n[g>>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]}function e(g,w,Q){for(var Y=[],y=w;y0},s.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var l=this.buf_ptr_,f=this.input_.read(this.buf_,l,I);if(f<0)throw new Error("Unexpected end of input");if(f=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},s.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&r[l];return this.bit_pos_+=l,f},S.exports=s},7080:function(S,I){I.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),I.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},6450:function(S,I,n){var r=n(6154).g,s=n(6154).j,l=n(4181),f=n(5139),a=n(966).h,B=n(966).g,E=n(7080),u=n(8435),C=n(2973),v=1080,R=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),F=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),b=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),P=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function eA($){var W;return 0===$.readBits(1)?16:(W=$.readBits(3))>0?17+W:(W=$.readBits(3))>0?8+W:17}function sA($){if($.readBits(1)){var W=$.readBits(3);return 0===W?1:$.readBits(W)+(1<1&&0===EA)throw new Error("Invalid size byte");W.meta_block_length|=EA<<8*nA}}else for(nA=0;nA4&&0===GA)throw new Error("Invalid size nibble");W.meta_block_length|=GA<<4*nA}return++W.meta_block_length,!W.input_end&&!W.is_metadata&&(W.is_uncompressed=$.readBits(1)),W}function MA($,W,hA){var nA;return hA.fillBitWindow(),(nA=$[W+=hA.val_>>>hA.bit_pos_&255].bits-8)>0&&(hA.bit_pos_+=8,W+=$[W].value,W+=hA.val_>>>hA.bit_pos_&(1<>=1,++TA;for(it=0;it0;++it){var dt,tt=R[it],mA=0;DA.fillBitWindow(),DA.bit_pos_+=VA[mA+=DA.val_>>>DA.bit_pos_&15].bits,mt[tt]=dt=VA[mA].value,0!==dt&&(wt-=32>>dt,++OA)}if(1!==OA&&0!==wt)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function lA($,W,hA,DA){for(var nA=0,EA=8,GA=0,it=0,st=32768,TA=[],at=0;at<32;at++)TA.push(new a(0,0));for(B(TA,0,5,$,18);nA0;){var mt,It=0;if(DA.readMoreInput(),DA.fillBitWindow(),DA.bit_pos_+=TA[It+=DA.val_>>>DA.bit_pos_&31].bits,(mt=255&TA[It].value)<16)GA=0,hA[nA++]=mt,0!==mt&&(EA=mt,st-=32768>>mt);else{var OA,VA,wt=mt-14,tt=0;if(16===mt&&(tt=EA),it!==tt&&(GA=0,it=tt),OA=GA,GA>0&&(GA-=2,GA<<=wt),nA+(VA=(GA+=DA.readBits(wt)+3)-OA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var mA=0;mA>>5]),this.htrees=new Uint32Array(W)}function uA($,W){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;W.readMoreInput();var it=hA.num_htrees=sA(W)+1,st=hA.context_map=new Uint8Array($);if(it<=1)return hA;for(W.readBits(1)&&(nA=W.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");st[GA]=0,++GA}else st[GA]=TA-nA,++GA}return W.readBits(1)&&function _($,W){var DA,hA=new Uint8Array(256);for(DA=0;DA<256;++DA)hA[DA]=DA;for(DA=0;DA=$&&(at-=$),DA[hA]=at,nA[it+(1&EA[st])]=at,++EA[st]}function SA($,W,hA,DA,nA,EA){var TA,GA=nA+1,it=hA&nA,st=EA.pos_&l.IBUF_MASK;if(W<8||EA.bit_pos_+(W<<3)0;)EA.readMoreInput(),DA[it++]=EA.readBits(8),it===GA&&($.write(DA,GA),it=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)DA[it]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++it,--W;if(st+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var at=l.IBUF_MASK+1-st,It=0;It=GA)for($.write(DA,GA),it-=GA,It=0;It=GA;){if(EA.input_.read(DA,it,TA=GA-it)W.buffer.length){var ae=new Uint8Array(DA+H);ae.set(W.buffer),W.buffer=ae}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(zA(ht);H>0;--H)ht.readMoreInput(),ht.readBits(8);else if(0!==H){if(k){ht.bit_pos_=ht.bit_pos_+7&-8,SA(W,H,DA,at,TA,ht),DA+=H;continue}for(hA=0;hA<3;++hA)CA[hA]=sA(ht)+1,CA[hA]>=2&&(cA(CA[hA]+2,mA,hA*v,ht),cA(26,dt,hA*v,ht),z[hA]=gA(dt,hA*v,ht),iA[hA]=1);for(ht.readMoreInput(),j=(1<<(gt=ht.readBits(2)))-1,qA=(Yt=16+(ht.readBits(4)<0;){var on,An,Hn,Jn,kt,Gt,$t,le,Mn,Tn,Zn,fi;for(ht.readMoreInput(),0===z[1]&&(dA(CA[1],mA,1,QA,RA,iA,ht),z[1]=gA(dt,v,ht),yn=tt[1].htrees[QA[1]]),--z[1],(An=(on=MA(tt[1].codes,yn,ht))>>6)>=2?(An-=2,$t=-1):$t=0,Jn=u.kCopyRangeLut[An]+(7&on),kt=u.kInsertLengthPrefixCode[Hn=u.kInsertRangeLut[An]+(on>>3&7)].offset+ht.readBits(u.kInsertLengthPrefixCode[Hn].nbits),Gt=u.kCopyLengthPrefixCode[Jn].offset+ht.readBits(u.kCopyLengthPrefixCode[Jn].nbits),OA=at[DA-1&TA],VA=at[DA-2&TA],Mn=0;Mn4?3:Gt-2))]],ht))>=Yt&&(fi=($t-=Yt)&j,$t=Yt+((Sn=(2+(1&($t>>=gt))<<(Zn=1+($t>>1)))-4)+ht.readBits(Zn)<(it=DA=f.minDictionaryWordLength&&Gt<=f.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+DA+" distance: "+le+" len: "+Gt+" bytes left: "+H);var Sn=f.offsetsByLength[Gt],ZA=le-it-1,YA=f.sizeBitsByLength[Gt],PA=ZA>>YA;if(Sn+=(ZA&(1<=It){W.write(at,st);for(var JA=0;JA0&&(mt[3&wt]=le,++wt),Gt>H)throw new Error("Invalid backward reference. pos: "+DA+" distance: "+le+" len: "+Gt+" bytes left: "+H);for(Mn=0;Mn>=1;return(f&B-1)+B}function s(f,a,B,E,u){do{f[a+(E-=B)]=new n(u.bits,u.value)}while(E>0)}function l(f,a,B){for(var E=1<0;--R[h])s(f,a+w,Q,d,new n(255&h,65535&D[g++])),w=r(w,h);for(Y=v-1,m=-1,h=B+1,Q=2;h<=c;++h,Q<<=1)for(;R[h]>0;--R[h])(w&Y)!==m&&(a+=d,v+=d=1<<(y=l(R,h,B)),f[C+(m=w&Y)]=new n(y+B&255,a-C-m&65535)),s(f,a+(w>>B),Q,d,new n(h-B&255,65535&D[g++])),w=r(w,h);return v}},8435:function(S,I){function n(c,r){this.offset=c,this.nbits=r}I.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],I.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],I.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],I.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],I.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},6154:function(S,I){function n(r){this.buffer=r,this.pos=0}function c(r){this.buffer=r,this.pos=0}n.prototype.read=function(r,s,l){this.pos+l>this.buffer.length&&(l=this.buffer.length-this.pos);for(var f=0;fthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(r.subarray(0,s),this.pos),this.pos+=s,s},I.j=c},2973:function(S,I,n){var c=n(5139),h=10,g=11;function N(P,eA,sA){this.prefix=new Uint8Array(P.length),this.transform=eA,this.suffix=new Uint8Array(sA.length);for(var q=0;q'),new N("",0,"\n"),new N("",3,""),new N("",0,"]"),new N("",0," for "),new N("",14,""),new N("",2,""),new N("",0," a "),new N("",0," that "),new N(" ",h,""),new N("",0,". "),new N(".",0,""),new N(" ",0,", "),new N("",15,""),new N("",0," with "),new N("",0,"'"),new N("",0," from "),new N("",0," by "),new N("",16,""),new N("",17,""),new N(" the ",0,""),new N("",4,""),new N("",0,". The "),new N("",g,""),new N("",0," on "),new N("",0," as "),new N("",0," is "),new N("",7,""),new N("",1,"ing "),new N("",0,"\n\t"),new N("",0,":"),new N(" ",0,". "),new N("",0,"ed "),new N("",20,""),new N("",18,""),new N("",6,""),new N("",0,"("),new N("",h,", "),new N("",8,""),new N("",0," at "),new N("",0,"ly "),new N(" the ",0," of "),new N("",5,""),new N("",9,""),new N(" ",h,", "),new N("",h,'"'),new N(".",0,"("),new N("",g," "),new N("",h,'">'),new N("",0,'="'),new N(" ",0,"."),new N(".com/",0,""),new N(" the ",0," of the "),new N("",h,"'"),new N("",0,". This "),new N("",0,","),new N(".",0," "),new N("",h,"("),new N("",h,"."),new N("",0," not "),new N(" ",0,'="'),new N("",0,"er "),new N(" ",g," "),new N("",0,"al "),new N(" ",g,""),new N("",0,"='"),new N("",g,'"'),new N("",h,". "),new N(" ",0,"("),new N("",0,"ful "),new N(" ",h,". "),new N("",0,"ive "),new N("",0,"less "),new N("",g,"'"),new N("",0,"est "),new N(" ",h,"."),new N("",g,'">'),new N(" ",0,"='"),new N("",h,","),new N("",0,"ize "),new N("",g,"."),new N("\xc2\xa0",0,""),new N(" ",0,","),new N("",h,'="'),new N("",g,'="'),new N("",0,"ous "),new N("",g,", "),new N("",h,"='"),new N(" ",h,","),new N(" ",g,'="'),new N(" ",g,", "),new N("",g,","),new N("",g,"("),new N("",g,". "),new N(" ",g,"."),new N("",g,"='"),new N(" ",g,". "),new N(" ",h,'="'),new N(" ",g,"='"),new N(" ",h,"='")];function b(P,eA){return P[eA]<192?(P[eA]>=97&&P[eA]<=122&&(P[eA]^=32),1):P[eA]<224?(P[eA+1]^=32,2):(P[eA+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(P,eA,sA,q,BA){var _,MA=F[BA].prefix,lA=F[BA].suffix,cA=F[BA].transform,gA=cA<12?0:cA-11,xA=0,FA=eA;gA>q&&(gA=q);for(var pA=0;pA0;){var uA=b(P,_);_+=uA,q-=uA}for(var dA=0;dAI.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=h,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,s(this.init_done,"close before init"),s(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?f.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&a.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(h,g,w,Q,m,Y,y){return this._write(!0,h,g,w,Q,m,Y,y)},e.prototype.writeSync=function(h,g,w,Q,m,Y,y){return this._write(!1,h,g,w,Q,m,Y,y)},e.prototype._write=function(h,g,w,Q,m,Y,y,d){if(s.equal(arguments.length,8),s(this.init_done,"write before init"),s(this.mode!==I.NONE,"already finalized"),s.equal(!1,this.write_in_progress,"write already in progress"),s.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,s.equal(!1,void 0===g,"must provide flush value"),this.write_in_progress=!0,g!==I.Z_NO_FLUSH&&g!==I.Z_PARTIAL_FLUSH&&g!==I.Z_SYNC_FLUSH&&g!==I.Z_FULL_FLUSH&&g!==I.Z_FINISH&&g!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=c.alloc(0),m=0,Q=0),this.strm.avail_in=m,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=d,this.strm.output=Y,this.strm.next_out=y,this.flush=g,!h)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return r.nextTick(function(){v._process(),v._after()}),this},e.prototype._afterSync=function(){var h=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,h]},e.prototype._process=function(){var h=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=f.deflate(this.strm,this.flush);break;case I.UNZIP:switch(this.strm.avail_in>0&&(h=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===h)break;if(31!==this.strm.input[h]){this.mode=I.INFLATE;break}if(this.gzip_id_bytes_read=1,h++,1===this.strm.avail_in)break;case 1:if(null===h)break;139===this.strm.input[h]?(this.gzip_id_bytes_read=2,this.mode=I.GUNZIP):this.mode=I.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===I.Z_DATA_ERROR&&(this.err=I.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===I.GUNZIP&&this.err===I.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var h=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,h),this.pending_close&&this.close()}},e.prototype._error=function(h){this.strm.msg&&(h=this.strm.msg),this.onerror(h,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(h,g,w,Q,m){s(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),s(h>=8&&h<=15,"invalid windowBits"),s(g>=-1&&g<=9,"invalid compression level"),s(w>=1&&w<=9,"invalid memlevel"),s(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,h,w,Q,m),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(h,g,w,Q,m){switch(this.level=h,this.windowBits=g,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new l,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=f.deflateInit2(this.strm,this.level,I.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:case I.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=m,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=f.deflateSetDictionary(this.strm,this.dictionary)}this.err!==I.Z_OK&&this._error("Failed to set dictionary")}},e.prototype._reset=function(){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:case I.GZIP:this.err=f.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==I.Z_OK&&this._error("Failed to reset stream")},I.Zlib=e},2635:function(S,I,n){"use strict";var c=n(4155),r=n(8823).Buffer,s=n(2830).Transform,l=n(4505),f=n(9539),a=n(9282).ok,B=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";l.Z_MIN_WINDOWBITS=8,l.Z_MAX_WINDOWBITS=15,l.Z_DEFAULT_WINDOWBITS=15,l.Z_MIN_CHUNK=64,l.Z_MAX_CHUNK=1/0,l.Z_DEFAULT_CHUNK=16384,l.Z_MIN_MEMLEVEL=1,l.Z_MAX_MEMLEVEL=9,l.Z_DEFAULT_MEMLEVEL=8,l.Z_MIN_LEVEL=-1,l.Z_MAX_LEVEL=9,l.Z_DEFAULT_LEVEL=l.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(l),C=0;C=B?pA=new RangeError(E):_=r.concat(lA,cA),lA=[],q.close(),MA(pA,_)}q.on("error",function xA(_){q.removeListener("end",FA),q.removeListener("readable",gA),MA(_)}),q.on("end",FA),q.end(BA),gA()}function Y(q,BA){if("string"==typeof BA&&(BA=r.from(BA)),!r.isBuffer(BA))throw new TypeError("Not a string or buffer");return q._processChunk(BA,q._finishFlushFlag)}function y(q){if(!(this instanceof y))return new y(q);P.call(this,q,l.DEFLATE)}function d(q){if(!(this instanceof d))return new d(q);P.call(this,q,l.INFLATE)}function v(q){if(!(this instanceof v))return new v(q);P.call(this,q,l.GZIP)}function D(q){if(!(this instanceof D))return new D(q);P.call(this,q,l.GUNZIP)}function R(q){if(!(this instanceof R))return new R(q);P.call(this,q,l.DEFLATERAW)}function N(q){if(!(this instanceof N))return new N(q);P.call(this,q,l.INFLATERAW)}function F(q){if(!(this instanceof F))return new F(q);P.call(this,q,l.UNZIP)}function b(q){return q===l.Z_NO_FLUSH||q===l.Z_PARTIAL_FLUSH||q===l.Z_SYNC_FLUSH||q===l.Z_FULL_FLUSH||q===l.Z_FINISH||q===l.Z_BLOCK}function P(q,BA){var MA=this;if(this._opts=q=q||{},this._chunkSize=q.chunkSize||I.Z_DEFAULT_CHUNK,s.call(this,q),q.flush&&!b(q.flush))throw new Error("Invalid flush flag: "+q.flush);if(q.finishFlush&&!b(q.finishFlush))throw new Error("Invalid flush flag: "+q.finishFlush);if(this._flushFlag=q.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==q.finishFlush?q.finishFlush:l.Z_FINISH,q.chunkSize&&(q.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+q.chunkSize);if(q.windowBits&&(q.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+q.windowBits);if(q.level&&(q.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+q.level);if(q.memLevel&&(q.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+q.memLevel);if(q.strategy&&q.strategy!=I.Z_FILTERED&&q.strategy!=I.Z_HUFFMAN_ONLY&&q.strategy!=I.Z_RLE&&q.strategy!=I.Z_FIXED&&q.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+q.strategy);if(q.dictionary&&!r.isBuffer(q.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(BA);var lA=this;this._hadError=!1,this._handle.onerror=function(xA,FA){eA(lA),lA._hadError=!0;var _=new Error(xA);_.errno=FA,_.code=I.codes[FA],lA.emit("error",_)};var cA=I.Z_DEFAULT_COMPRESSION;"number"==typeof q.level&&(cA=q.level);var gA=I.Z_DEFAULT_STRATEGY;"number"==typeof q.strategy&&(gA=q.strategy),this._handle.init(q.windowBits||I.Z_DEFAULT_WINDOWBITS,cA,q.memLevel||I.Z_DEFAULT_MEMLEVEL,gA,q.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=cA,this._strategy=gA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function eA(q,BA){BA&&c.nextTick(BA),q._handle&&(q._handle.close(),q._handle=null)}function sA(q){q.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),I.Deflate=y,I.Inflate=d,I.Gzip=v,I.Gunzip=D,I.DeflateRaw=R,I.InflateRaw=N,I.Unzip=F,I.createDeflate=function(q){return new y(q)},I.createInflate=function(q){return new d(q)},I.createDeflateRaw=function(q){return new R(q)},I.createInflateRaw=function(q){return new N(q)},I.createGzip=function(q){return new v(q)},I.createGunzip=function(q){return new D(q)},I.createUnzip=function(q){return new F(q)},I.deflate=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new y(BA),q,MA)},I.deflateSync=function(q,BA){return Y(new y(BA),q)},I.gzip=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new v(BA),q,MA)},I.gzipSync=function(q,BA){return Y(new v(BA),q)},I.deflateRaw=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new R(BA),q,MA)},I.deflateRawSync=function(q,BA){return Y(new R(BA),q)},I.unzip=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new F(BA),q,MA)},I.unzipSync=function(q,BA){return Y(new F(BA),q)},I.inflate=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new d(BA),q,MA)},I.inflateSync=function(q,BA){return Y(new d(BA),q)},I.gunzip=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new D(BA),q,MA)},I.gunzipSync=function(q,BA){return Y(new D(BA),q)},I.inflateRaw=function(q,BA,MA){return"function"==typeof BA&&(MA=BA,BA={}),m(new N(BA),q,MA)},I.inflateRawSync=function(q,BA){return Y(new N(BA),q)},f.inherits(P,s),P.prototype.params=function(q,BA,MA){if(qI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+q);if(BA!=I.Z_FILTERED&&BA!=I.Z_HUFFMAN_ONLY&&BA!=I.Z_RLE&&BA!=I.Z_FIXED&&BA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+BA);if(this._level!==q||this._strategy!==BA){var lA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(lA._handle,"zlib binding closed"),lA._handle.params(q,BA),lA._hadError||(lA._level=q,lA._strategy=BA,MA&&MA())})}else c.nextTick(MA)},P.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},P.prototype._flush=function(q){this._transform(r.alloc(0),"",q)},P.prototype.flush=function(q,BA){var MA=this,lA=this._writableState;("function"==typeof q||void 0===q&&!BA)&&(BA=q,q=l.Z_FULL_FLUSH),lA.ended?BA&&c.nextTick(BA):lA.ending?BA&&this.once("end",BA):lA.needDrain?BA&&this.once("drain",function(){return MA.flush(q,BA)}):(this._flushFlag=q,this.write(r.alloc(0),"",BA))},P.prototype.close=function(q){eA(this,q),c.nextTick(sA,this)},P.prototype._transform=function(q,BA,MA){var lA,cA=this._writableState,xA=(cA.ending||cA.ended)&&(!q||cA.length===q.length);return null===q||r.isBuffer(q)?this._handle?(xA?lA=this._finishFlushFlag:(lA=this._flushFlag,q.length>=cA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(q,lA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},P.prototype._processChunk=function(q,BA,MA){var lA=q&&q.length,cA=this._chunkSize-this._offset,gA=0,xA=this,FA="function"==typeof MA;if(!FA){var uA,_=[],pA=0;this.on("error",function(X){uA=X}),a(this._handle,"zlib binding closed");do{var dA=this._handle.writeSync(BA,q,gA,lA,this._buffer,this._offset,cA)}while(!this._hadError&&XA(dA[0],dA[1]));if(this._hadError)throw uA;if(pA>=B)throw eA(this),new RangeError(E);var SA=r.concat(_,pA);return eA(this),SA}a(this._handle,"zlib binding closed");var zA=this._handle.write(BA,q,gA,lA,this._buffer,this._offset,cA);function XA(X,O){if(this&&(this.buffer=null,this.callback=null),!xA._hadError){var $=cA-O;if(a($>=0,"have should not go down"),$>0){var W=xA._buffer.slice(xA._offset,xA._offset+$);xA._offset+=$,FA?xA.push(W):(_.push(W),pA+=W.length)}if((0===O||xA._offset>=xA._chunkSize)&&(cA=xA._chunkSize,xA._offset=0,xA._buffer=r.allocUnsafe(xA._chunkSize)),0===O){if(gA+=lA-X,lA=X,!FA)return!0;var hA=xA._handle.write(BA,q,gA,lA,xA._buffer,xA._offset,xA._chunkSize);return hA.callback=XA,void(hA.buffer=q)}if(!FA)return!1;MA()}}zA.buffer=q,zA.callback=XA},f.inherits(y,P),f.inherits(d,P),f.inherits(v,P),f.inherits(D,P),f.inherits(R,P),f.inherits(N,P),f.inherits(F,P)},1924:function(S,I,n){"use strict";var c=n(210),r=n(5559),s=r(c("String.prototype.indexOf"));S.exports=function(f,a){var B=c(f,!!a);return"function"==typeof B&&s(f,".prototype.")>-1?r(B):B}},5559:function(S,I,n){"use strict";var c=n(8612),r=n(210),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),f=r("%Reflect.apply%",!0)||c.call(l,s),a=r("%Object.getOwnPropertyDescriptor%",!0),B=r("%Object.defineProperty%",!0),E=r("%Math.max%");if(B)try{B({},"a",{value:1})}catch(C){B=null}S.exports=function(e){var h=f(c,l,arguments);return a&&B&&a(h,"length").configurable&&B(h,"length",{value:1+E(0,e.length-(arguments.length-1))}),h};var u=function(){return f(c,s,arguments)};B?B(S.exports,"apply",{value:u}):S.exports.apply=u},6313:function(S,I,n){var c=n(8823).Buffer,r=function(){"use strict";function s(u,C,e,h){"object"==typeof C&&(e=C.depth,h=C.prototype,C=C.circular);var w=[],Q=[],m=void 0!==c;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function Y(y,d){if(null===y)return null;if(0==d)return y;var v,D;if("object"!=typeof y)return y;if(s.__isArray(y))v=[];else if(s.__isRegExp(y))v=new RegExp(y.source,E(y)),y.lastIndex&&(v.lastIndex=y.lastIndex);else if(s.__isDate(y))v=new Date(y.getTime());else{if(m&&c.isBuffer(y))return v=c.allocUnsafe?c.allocUnsafe(y.length):new c(y.length),y.copy(v),v;void 0===h?(D=Object.getPrototypeOf(y),v=Object.create(D)):(v=Object.create(h),D=h)}if(C){var R=w.indexOf(y);if(-1!=R)return Q[R];w.push(y),Q.push(v)}for(var N in y){var F;D&&(F=Object.getOwnPropertyDescriptor(D,N)),(!F||null!=F.set)&&(v[N]=Y(y[N],d-1))}return v}(u,e)}function l(u){return Object.prototype.toString.call(u)}function E(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return s.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},s.__objToStr=l,s.__isDate=function f(u){return"object"==typeof u&&"[object Date]"===l(u)},s.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},s.__isRegExp=function B(u){return"object"==typeof u&&"[object RegExp]"===l(u)},s.__getRegExpFlags=E,s}();S.exports&&(S.exports=r)},4667:function(S,I,n){n(2479);var c=n(857);S.exports=c.Object.values},7633:function(S,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);S.exports=c.Promise},3867:function(S,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),S.exports=c},9662:function(S,I,n){var c=n(7854),r=n(614),s=n(6330),l=c.TypeError;S.exports=function(f){if(r(f))return f;throw l(s(f)+" is not a function")}},9483:function(S,I,n){var c=n(7854),r=n(4411),s=n(6330),l=c.TypeError;S.exports=function(f){if(r(f))return f;throw l(s(f)+" is not a constructor")}},6077:function(S,I,n){var c=n(7854),r=n(614),s=c.String,l=c.TypeError;S.exports=function(f){if("object"==typeof f||r(f))return f;throw l("Can't set "+s(f)+" as a prototype")}},1223:function(S,I,n){var c=n(5112),r=n(30),s=n(3070),l=c("unscopables"),f=Array.prototype;null==f[l]&&s.f(f,l,{configurable:!0,value:r(null)}),S.exports=function(a){f[l][a]=!0}},1530:function(S,I,n){"use strict";var c=n(8710).charAt;S.exports=function(r,s,l){return s+(l?c(r,s).length:1)}},5787:function(S,I,n){var c=n(7854),r=n(7976),s=c.TypeError;S.exports=function(l,f){if(r(f,l))return l;throw s("Incorrect invocation")}},9670:function(S,I,n){var c=n(7854),r=n(111),s=c.String,l=c.TypeError;S.exports=function(f){if(r(f))return f;throw l(s(f)+" is not an object")}},1048:function(S,I,n){"use strict";var c=n(7908),r=n(1400),s=n(6244),l=Math.min;S.exports=[].copyWithin||function(a,B){var E=c(this),u=s(E),C=r(a,u),e=r(B,u),h=arguments.length>2?arguments[2]:void 0,g=l((void 0===h?u:r(h,u))-e,u-C),w=1;for(e0;)e in E?E[C]=E[e]:delete E[C],C+=w,e+=w;return E}},1285:function(S,I,n){"use strict";var c=n(7908),r=n(1400),s=n(6244);S.exports=function(f){for(var a=c(this),B=s(a),E=arguments.length,u=r(E>1?arguments[1]:void 0,B),C=E>2?arguments[2]:void 0,e=void 0===C?B:r(C,B);e>u;)a[u++]=f;return a}},8533:function(S,I,n){"use strict";var c=n(2092).forEach,s=n(9341)("forEach");S.exports=s?[].forEach:function(f){return c(this,f,arguments.length>1?arguments[1]:void 0)}},7745:function(S){S.exports=function(I,n){for(var c=0,r=n.length,s=new I(r);r>c;)s[c]=n[c++];return s}},8457:function(S,I,n){"use strict";var c=n(7854),r=n(9974),s=n(6916),l=n(7908),f=n(3411),a=n(7659),B=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),h=c.Array;S.exports=function(w){var Q=l(w),m=B(this),Y=arguments.length,y=Y>1?arguments[1]:void 0,d=void 0!==y;d&&(y=r(y,Y>2?arguments[2]:void 0));var R,N,F,b,P,eA,v=e(Q),D=0;if(!v||this==h&&a(v))for(R=E(Q),N=m?new this(R):h(R);R>D;D++)eA=d?y(Q[D],D):Q[D],u(N,D,eA);else for(P=(b=C(Q,v)).next,N=m?new this:[];!(F=s(P,b)).done;D++)eA=d?f(b,y,[F.value,D],!0):F.value,u(N,D,eA);return N.length=D,N}},1318:function(S,I,n){var c=n(5656),r=n(1400),s=n(6244),l=function(f){return function(a,B,E){var h,u=c(a),C=s(u),e=r(E,C);if(f&&B!=B){for(;C>e;)if((h=u[e++])!=h)return!0}else for(;C>e;e++)if((f||e in u)&&u[e]===B)return f||e||0;return!f&&-1}};S.exports={includes:l(!0),indexOf:l(!1)}},2092:function(S,I,n){var c=n(9974),r=n(1702),s=n(8361),l=n(7908),f=n(6244),a=n(5417),B=r([].push),E=function(u){var C=1==u,e=2==u,h=3==u,g=4==u,w=6==u,Q=7==u,m=5==u||w;return function(Y,y,d,v){for(var sA,q,D=l(Y),R=s(D),N=c(y,d),F=f(R),b=0,P=v||a,eA=C?P(Y,F):e||Q?P(Y,0):void 0;F>b;b++)if((m||b in R)&&(q=N(sA=R[b],b,D),u))if(C)eA[b]=q;else if(q)switch(u){case 3:return!0;case 5:return sA;case 6:return b;case 2:B(eA,sA)}else switch(u){case 4:return!1;case 7:B(eA,sA)}return w?-1:h||g?g:eA}};S.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)}},6583:function(S,I,n){"use strict";var c=n(2104),r=n(5656),s=n(9303),l=n(6244),f=n(9341),a=Math.min,B=[].lastIndexOf,E=!!B&&1/[1].lastIndexOf(1,-0)<0,u=f("lastIndexOf");S.exports=E||!u?function(h){if(E)return c(B,this,arguments)||0;var g=r(this),w=l(g),Q=w-1;for(arguments.length>1&&(Q=a(Q,s(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in g&&g[Q]===h)return Q||0;return-1}:B},1194:function(S,I,n){var c=n(7293),r=n(5112),s=n(7392),l=r("species");S.exports=function(f){return s>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[f](Boolean).foo})}},9341:function(S,I,n){"use strict";var c=n(7293);S.exports=function(r,s){var l=[][r];return!!l&&c(function(){l.call(null,s||function(){throw 1},1)})}},3671:function(S,I,n){var c=n(7854),r=n(9662),s=n(7908),l=n(8361),f=n(6244),a=c.TypeError,B=function(E){return function(u,C,e,h){r(C);var g=s(u),w=l(g),Q=f(g),m=E?Q-1:0,Y=E?-1:1;if(e<2)for(;;){if(m in w){h=w[m],m+=Y;break}if(m+=Y,E?m<0:Q<=m)throw a("Reduce of empty array with no initial value")}for(;E?m>=0:Q>m;m+=Y)m in w&&(h=C(h,w[m],m,g));return h}};S.exports={left:B(!1),right:B(!0)}},206:function(S,I,n){var c=n(1702);S.exports=c([].slice)},4362:function(S,I,n){var c=n(206),r=Math.floor,s=function(a,B){var E=a.length,u=r(E/2);return E<8?l(a,B):f(a,s(c(a,0,u),B),s(c(a,u),B),B)},l=function(a,B){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},f=function(a,B,E,u){for(var C=B.length,e=E.length,h=0,g=0;h1?arguments[1]:void 0);eA=eA?eA.next:b.first;)for(P(eA.value,eA.key,this);eA&&eA.removed;)eA=eA.previous},has:function(F){return!!R(this,F)}}),s(d,m?{get:function(F){var b=R(this,F);return b&&b.value},set:function(F,b){return D(this,0===F?0:F,b)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&c(d,"size",{get:function(){return v(this).size}}),y},setStrong:function(w,Q,m){var Y=Q+" Iterator",y=g(Q),d=g(Y);B(w,Q,function(v,D){h(this,{type:Y,target:v,state:y(v),kind:D,last:void 0})},function(){for(var v=d(this),D=v.kind,R=v.last;R&&R.removed;)R=R.previous;return v.target&&(v.last=R=R?R.next:v.state.first)?"keys"==D?{value:R.key,done:!1}:"values"==D?{value:R.value,done:!1}:{value:[R.key,R.value],done:!1}:(v.target=void 0,{value:void 0,done:!0})},m?"entries":"values",!m,!0),E(Q)}}},7710:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(1702),l=n(4705),f=n(1320),a=n(2423),B=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),h=n(7072),g=n(8003),w=n(9587);S.exports=function(Q,m,Y){var y=-1!==Q.indexOf("Map"),d=-1!==Q.indexOf("Weak"),v=y?"set":"add",D=r[Q],R=D&&D.prototype,N=D,F={},b=function(lA){var cA=s(R[lA]);f(R,lA,"add"==lA?function(xA){return cA(this,0===xA?0:xA),this}:"delete"==lA?function(gA){return!(d&&!C(gA))&&cA(this,0===gA?0:gA)}:"get"==lA?function(xA){return d&&!C(xA)?void 0:cA(this,0===xA?0:xA)}:"has"==lA?function(xA){return!(d&&!C(xA))&&cA(this,0===xA?0:xA)}:function(xA,FA){return cA(this,0===xA?0:xA,FA),this})};if(l(Q,!u(D)||!(d||R.forEach&&!e(function(){(new D).entries().next()}))))N=Y.getConstructor(m,Q,y,v),a.enable();else if(l(Q,!0)){var eA=new N,sA=eA[v](d?{}:-0,1)!=eA,q=e(function(){eA.has(1)}),BA=h(function(lA){new D(lA)}),MA=!d&&e(function(){for(var lA=new D,cA=5;cA--;)lA[v](cA,cA);return!lA.has(-0)});BA||((N=m(function(lA,cA){E(lA,R);var gA=w(new D,lA,N);return null!=cA&&B(cA,gA[v],{that:gA,AS_ENTRIES:y}),gA})).prototype=R,R.constructor=N),(q||MA)&&(b("delete"),b("has"),y&&b("get")),(MA||sA)&&b(v),d&&R.clear&&delete R.clear}return F[Q]=N,c({global:!0,forced:N!=D},F),g(N,Q),d||Y.setStrong(N,Q,y),N}},9920:function(S,I,n){var c=n(2597),r=n(3887),s=n(1236),l=n(3070);S.exports=function(f,a){for(var B=r(a),E=l.f,u=s.f,C=0;C"+C+""}},4994:function(S,I,n){"use strict";var c=n(3383).IteratorPrototype,r=n(30),s=n(9114),l=n(8003),f=n(7497),a=function(){return this};S.exports=function(B,E,u){var C=E+" Iterator";return B.prototype=r(c,{next:s(1,u)}),l(B,C,!1,!0),f[C]=a,B}},8880:function(S,I,n){var c=n(9781),r=n(3070),s=n(9114);S.exports=c?function(l,f,a){return r.f(l,f,s(1,a))}:function(l,f,a){return l[f]=a,l}},9114:function(S){S.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(S,I,n){"use strict";var c=n(4948),r=n(3070),s=n(9114);S.exports=function(l,f,a){var B=c(f);B in l?r.f(l,B,s(0,a)):l[B]=a}},8709:function(S,I,n){"use strict";var c=n(7854),r=n(9670),s=n(2140),l=c.TypeError;S.exports=function(f){if(r(this),"string"===f||"default"===f)f="string";else if("number"!==f)throw l("Incorrect hint");return s(this,f)}},654:function(S,I,n){"use strict";var c=n(2109),r=n(6916),s=n(1913),l=n(6530),f=n(614),a=n(4994),B=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),h=n(5112),g=n(7497),w=n(3383),Q=l.PROPER,m=l.CONFIGURABLE,Y=w.IteratorPrototype,y=w.BUGGY_SAFARI_ITERATORS,d=h("iterator"),v="keys",D="values",R="entries",N=function(){return this};S.exports=function(F,b,P,eA,sA,q,BA){a(P,b,eA);var pA,uA,dA,MA=function(SA){if(SA===sA&&FA)return FA;if(!y&&SA in gA)return gA[SA];switch(SA){case v:case D:case R:return function(){return new P(this,SA)}}return function(){return new P(this)}},lA=b+" Iterator",cA=!1,gA=F.prototype,xA=gA[d]||gA["@@iterator"]||sA&&gA[sA],FA=!y&&xA||MA(sA),_="Array"==b&&gA.entries||xA;if(_&&(pA=B(_.call(new F)))!==Object.prototype&&pA.next&&(!s&&B(pA)!==Y&&(E?E(pA,Y):f(pA[d])||e(pA,d,N)),u(pA,lA,!0,!0),s&&(g[lA]=N)),Q&&sA==D&&xA&&xA.name!==D&&(!s&&m?C(gA,"name",D):(cA=!0,FA=function(){return r(xA,this)})),sA)if(uA={values:MA(D),keys:q?FA:MA(v),entries:MA(R)},BA)for(dA in uA)(y||cA||!(dA in gA))&&e(gA,dA,uA[dA]);else c({target:b,proto:!0,forced:y||cA},uA);return(!s||BA)&&gA[d]!==FA&&e(gA,d,FA,{name:sA}),g[b]=FA,uA}},7235:function(S,I,n){var c=n(857),r=n(2597),s=n(6061),l=n(3070).f;S.exports=function(f){var a=c.Symbol||(c.Symbol={});r(a,f)||l(a,f,{value:s.f(f)})}},9781:function(S,I,n){var c=n(7293);S.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(S,I,n){var c=n(7854),r=n(111),s=c.document,l=r(s)&&r(s.createElement);S.exports=function(f){return l?s.createElement(f):{}}},8324:function(S){S.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(S,I,n){var r=n(317)("span").classList,s=r&&r.constructor&&r.constructor.prototype;S.exports=s===Object.prototype?void 0:s},8886:function(S,I,n){var r=n(8113).match(/firefox\/(\d+)/i);S.exports=!!r&&+r[1]},7871:function(S){S.exports="object"==typeof window},256:function(S,I,n){var c=n(8113);S.exports=/MSIE|Trident/.test(c)},1528:function(S,I,n){var c=n(8113),r=n(7854);S.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==r.Pebble},6833:function(S,I,n){var c=n(8113);S.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(S,I,n){var c=n(4326),r=n(7854);S.exports="process"==c(r.process)},1036:function(S,I,n){var c=n(8113);S.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(S,I,n){var c=n(5005);S.exports=c("navigator","userAgent")||""},7392:function(S,I,n){var B,E,c=n(7854),r=n(8113),s=c.process,l=c.Deno,f=s&&s.versions||l&&l.version,a=f&&f.v8;a&&(E=(B=a.split("."))[0]>0&&B[0]<4?1:+(B[0]+B[1])),!E&&r&&(!(B=r.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=r.match(/Chrome\/(\d+)/))&&(E=+B[1]),S.exports=E},8008:function(S,I,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);S.exports=!!r&&+r[1]},748:function(S){S.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(S,I,n){var c=n(7293),r=n(9114);S.exports=!c(function(){var s=Error("a");return!("stack"in s)||(Object.defineProperty(s,"stack",r(1,7)),7!==s.stack)})},2109:function(S,I,n){var c=n(7854),r=n(1236).f,s=n(8880),l=n(1320),f=n(3505),a=n(9920),B=n(4705);S.exports=function(E,u){var w,Q,m,Y,y,C=E.target,e=E.global,h=E.stat;if(w=e?c:h?c[C]||f(C,{}):(c[C]||{}).prototype)for(Q in u){if(Y=u[Q],m=E.noTargetGet?(y=r(w,Q))&&y.value:w[Q],!B(e?Q:C+(h?".":"#")+Q,E.forced)&&void 0!==m){if(typeof Y==typeof m)continue;a(Y,m)}(E.sham||m&&m.sham)&&s(Y,"sham",!0),l(w,Q,Y,E)}}},7293:function(S){S.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(S,I,n){"use strict";n(4916);var c=n(1702),r=n(1320),s=n(2261),l=n(7293),f=n(5112),a=n(8880),B=f("species"),E=RegExp.prototype;S.exports=function(u,C,e,h){var g=f(u),w=!l(function(){var y={};return y[g]=function(){return 7},7!=""[u](y)}),Q=w&&!l(function(){var y=!1,d=/a/;return"split"===u&&((d={}).constructor={},d.constructor[B]=function(){return d},d.flags="",d[g]=/./[g]),d.exec=function(){return y=!0,null},d[g](""),!y});if(!w||!Q||e){var m=c(/./[g]),Y=C(g,""[u],function(y,d,v,D,R){var N=c(y),F=d.exec;return F===s||F===E.exec?w&&!R?{done:!0,value:m(d,v,D)}:{done:!0,value:N(v,d,D)}:{done:!1}});r(String.prototype,u,Y[0]),r(E,g,Y[1])}h&&a(E[g],"sham",!0)}},6677:function(S,I,n){var c=n(7293);S.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(S){var I=Function.prototype,n=I.apply,r=I.call;S.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?r.bind(n):function(){return r.apply(n,arguments)})},9974:function(S,I,n){var c=n(1702),r=n(9662),s=c(c.bind);S.exports=function(l,f){return r(l),void 0===f?l:s?s(l,f):function(){return l.apply(f,arguments)}}},7065:function(S,I,n){"use strict";var c=n(7854),r=n(1702),s=n(9662),l=n(111),f=n(2597),a=n(206),B=c.Function,E=r([].concat),u=r([].join),C={},e=function(h,g,w){if(!f(C,g)){for(var Q=[],m=0;m]*>)/g,E=/\$([$&'`]|\d{1,2})/g;S.exports=function(u,C,e,h,g,w){var Q=e+u.length,m=h.length,Y=E;return void 0!==g&&(g=r(g),Y=B),f(w,Y,function(y,d){var v;switch(l(d,0)){case"$":return"$";case"&":return u;case"`":return a(C,0,e);case"'":return a(C,Q);case"<":v=g[a(d,1,-1)];break;default:var D=+d;if(0===D)return y;if(D>m){var R=s(D/10);return 0===R?y:R<=m?void 0===h[R-1]?l(d,1):h[R-1]+l(d,1):y}v=h[D-1]}return void 0===v?"":v})}},7854:function(S,I,n){var c=function(r){return r&&r.Math==Math&&r};S.exports=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(S,I,n){var c=n(1702),r=n(7908),s=c({}.hasOwnProperty);S.exports=Object.hasOwn||function(f,a){return s(r(f),a)}},3501:function(S){S.exports={}},842:function(S,I,n){var c=n(7854);S.exports=function(r,s){var l=c.console;l&&l.error&&(1==arguments.length?l.error(r):l.error(r,s))}},490:function(S,I,n){var c=n(5005);S.exports=c("document","documentElement")},4664:function(S,I,n){var c=n(9781),r=n(7293),s=n(317);S.exports=!c&&!r(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1179:function(S,I,n){var r=n(7854).Array,s=Math.abs,l=Math.pow,f=Math.floor,a=Math.log,B=Math.LN2;S.exports={pack:function(C,e,h){var v,D,R,g=r(h),w=8*h-e-1,Q=(1<>1,Y=23===e?l(2,-24)-l(2,-77):0,y=C<0||0===C&&1/C<0?1:0,d=0;for((C=s(C))!=C||C===1/0?(D=C!=C?1:0,v=Q):(v=f(a(C)/B),C*(R=l(2,-v))<1&&(v--,R*=2),(C+=v+m>=1?Y/R:Y*l(2,1-m))*R>=2&&(v++,R/=2),v+m>=Q?(D=0,v=Q):v+m>=1?(D=(C*R-1)*l(2,e),v+=m):(D=C*l(2,m-1)*l(2,e),v=0));e>=8;g[d++]=255&D,D/=256,e-=8);for(v=v<0;g[d++]=255&v,v/=256,w-=8);return g[--d]|=128*y,g},unpack:function(C,e){var v,h=C.length,g=8*h-e-1,w=(1<>1,m=g-7,Y=h-1,y=C[Y--],d=127&y;for(y>>=7;m>0;d=256*d+C[Y],Y--,m-=8);for(v=d&(1<<-m)-1,d>>=-m,m+=e;m>0;v=256*v+C[Y],Y--,m-=8);if(0===d)d=1-Q;else{if(d===w)return v?NaN:y?-1/0:1/0;v+=l(2,e),d-=Q}return(y?-1:1)*v*l(2,d-e)}}},8361:function(S,I,n){var c=n(7854),r=n(1702),s=n(7293),l=n(4326),f=c.Object,a=r("".split);S.exports=s(function(){return!f("z").propertyIsEnumerable(0)})?function(B){return"String"==l(B)?a(B,""):f(B)}:f},9587:function(S,I,n){var c=n(614),r=n(111),s=n(7674);S.exports=function(l,f,a){var B,E;return s&&c(B=f.constructor)&&B!==a&&r(E=B.prototype)&&E!==a.prototype&&s(l,E),l}},2788:function(S,I,n){var c=n(1702),r=n(614),s=n(5465),l=c(Function.toString);r(s.inspectSource)||(s.inspectSource=function(f){return l(f)}),S.exports=s.inspectSource},8340:function(S,I,n){var c=n(111),r=n(8880);S.exports=function(s,l){c(l)&&"cause"in l&&r(s,"cause",l.cause)}},2423:function(S,I,n){var c=n(2109),r=n(1702),s=n(3501),l=n(111),f=n(2597),a=n(3070).f,B=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,h=u("meta"),g=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,h,{value:{objectID:"O"+g++,weakData:{}}})},v=S.exports={enable:function(){v.enable=function(){},e=!0;var D=B.f,R=r([].splice),N={};N[h]=1,D(N).length&&(B.f=function(F){for(var b=D(F),P=0,eA=b.length;Pb;b++)if((eA=MA(Q[b]))&&E(w,eA))return eA;return new g(!1)}N=u(Q,F)}for(sA=N.next;!(q=s(sA,N)).done;){try{eA=MA(q.value)}catch(lA){e(N,"throw",lA)}if("object"==typeof eA&&eA&&E(w,eA))return eA}return new g(!1)}},9212:function(S,I,n){var c=n(6916),r=n(9670),s=n(8173);S.exports=function(l,f,a){var B,E;r(l);try{if(!(B=s(l,"return"))){if("throw"===f)throw a;return a}B=c(B,l)}catch(u){E=!0,B=u}if("throw"===f)throw a;if(E)throw B;return r(B),a}},3383:function(S,I,n){"use strict";var C,e,h,c=n(7293),r=n(614),s=n(30),l=n(9518),f=n(1320),a=n(5112),B=n(1913),E=a("iterator"),u=!1;[].keys&&("next"in(h=[].keys())?(e=l(l(h)))!==Object.prototype&&(C=e):u=!0),null==C||c(function(){var w={};return C[E].call(w)!==w})?C={}:B&&(C=s(C)),r(C[E])||f(C,E,function(){return this}),S.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(S){S.exports={}},6244:function(S,I,n){var c=n(7466);S.exports=function(r){return c(r.length)}},5948:function(S,I,n){var Q,m,Y,y,d,v,D,R,c=n(7854),r=n(9974),s=n(1236).f,l=n(261).set,f=n(6833),a=n(1528),B=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,h=c.Promise,g=s(c,"queueMicrotask"),w=g&&g.value;w||(Q=function(){var N,F;for(E&&(N=e.domain)&&N.exit();m;){F=m.fn,m=m.next;try{F()}catch(b){throw m?y():Y=void 0,b}}Y=void 0,N&&N.enter()},f||E||B||!u||!C?!a&&h&&h.resolve?((D=h.resolve(void 0)).constructor=h,R=r(D.then,D),y=function(){R(Q)}):E?y=function(){e.nextTick(Q)}:(l=r(l,c),y=function(){l(Q)}):(d=!0,v=C.createTextNode(""),new u(Q).observe(v,{characterData:!0}),y=function(){v.data=d=!d})),S.exports=w||function(N){var F={fn:N,next:void 0};Y&&(Y.next=F),m||(m=F,y()),Y=F}},3366:function(S,I,n){var c=n(7854);S.exports=c.Promise},133:function(S,I,n){var c=n(7392),r=n(7293);S.exports=!!Object.getOwnPropertySymbols&&!r(function(){var s=Symbol();return!String(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(S,I,n){var c=n(7854),r=n(614),s=n(2788),l=c.WeakMap;S.exports=r(l)&&/native code/.test(s(l))},8523:function(S,I,n){"use strict";var c=n(9662),r=function(s){var l,f;this.promise=new s(function(a,B){if(void 0!==l||void 0!==f)throw TypeError("Bad Promise constructor");l=a,f=B}),this.resolve=c(l),this.reject=c(f)};S.exports.f=function(s){return new r(s)}},6277:function(S,I,n){var c=n(1340);S.exports=function(r,s){return void 0===r?arguments.length<2?"":s:c(r)}},3929:function(S,I,n){var c=n(7854),r=n(7850),s=c.TypeError;S.exports=function(l){if(r(l))throw s("The method doesn't accept regular expressions");return l}},7023:function(S,I,n){var r=n(7854).isFinite;S.exports=Number.isFinite||function(l){return"number"==typeof l&&r(l)}},1574:function(S,I,n){"use strict";var c=n(9781),r=n(1702),s=n(6916),l=n(7293),f=n(1956),a=n(5181),B=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,h=r([].concat);S.exports=!C||l(function(){if(c&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},w={},Q=Symbol(),m="abcdefghijklmnopqrst";return g[Q]=7,m.split("").forEach(function(Y){w[Y]=Y}),7!=C({},g)[Q]||f(C({},w)).join("")!=m})?function(w,Q){for(var m=E(w),Y=arguments.length,y=1,d=a.f,v=B.f;Y>y;)for(var b,D=u(arguments[y++]),R=d?h(f(D),d(D)):f(D),N=R.length,F=0;N>F;)b=R[F++],(!c||s(v,D,b))&&(m[b]=D[b]);return m}:C},30:function(S,I,n){var Y,c=n(9670),r=n(6048),s=n(748),l=n(3501),f=n(490),a=n(317),B=n(6200),C="prototype",e="script",h=B("IE_PROTO"),g=function(){},w=function(d){return"<"+e+">"+d+""},Q=function(d){d.write(w("")),d.close();var v=d.parentWindow.Object;return d=null,v},y=function(){try{Y=new ActiveXObject("htmlfile")}catch(v){}y="undefined"!=typeof document?document.domain&&Y?Q(Y):function(){var D,d=a("iframe");return d.style.display="none",f.appendChild(d),d.src=String("javascript:"),(D=d.contentWindow.document).open(),D.write(w("document.F=Object")),D.close(),D.F}():Q(Y);for(var d=s.length;d--;)delete y[C][s[d]];return y()};l[h]=!0,S.exports=Object.create||function(v,D){var R;return null!==v?(g[C]=c(v),R=new g,g[C]=null,R[h]=v):R=y(),void 0===D?R:r(R,D)}},6048:function(S,I,n){var c=n(9781),r=n(3070),s=n(9670),l=n(5656),f=n(1956);S.exports=c?Object.defineProperties:function(B,E){s(B);for(var g,u=l(E),C=f(E),e=C.length,h=0;e>h;)r.f(B,g=C[h++],u[g]);return B}},3070:function(S,I,n){var c=n(7854),r=n(9781),s=n(4664),l=n(9670),f=n(4948),a=c.TypeError,B=Object.defineProperty;I.f=r?B:function(u,C,e){if(l(u),C=f(C),l(e),s)try{return B(u,C,e)}catch(h){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(S,I,n){var c=n(9781),r=n(6916),s=n(5296),l=n(9114),f=n(5656),a=n(4948),B=n(2597),E=n(4664),u=Object.getOwnPropertyDescriptor;I.f=c?u:function(e,h){if(e=f(e),h=a(h),E)try{return u(e,h)}catch(g){}if(B(e,h))return l(!r(s.f,e,h),e[h])}},1156:function(S,I,n){var c=n(4326),r=n(5656),s=n(8006).f,l=n(206),f="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];S.exports.f=function(E){return f&&"Window"==c(E)?function(B){try{return s(B)}catch(E){return l(f)}}(E):s(r(E))}},8006:function(S,I,n){var c=n(6324),s=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(f){return c(f,s)}},5181:function(S,I){I.f=Object.getOwnPropertySymbols},9518:function(S,I,n){var c=n(7854),r=n(2597),s=n(614),l=n(7908),f=n(6200),a=n(8544),B=f("IE_PROTO"),E=c.Object,u=E.prototype;S.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(r(e,B))return e[B];var h=e.constructor;return s(h)&&e instanceof h?h.prototype:e instanceof E?u:null}},7976:function(S,I,n){var c=n(1702);S.exports=c({}.isPrototypeOf)},6324:function(S,I,n){var c=n(1702),r=n(2597),s=n(5656),l=n(1318).indexOf,f=n(3501),a=c([].push);S.exports=function(B,E){var h,u=s(B),C=0,e=[];for(h in u)!r(f,h)&&r(u,h)&&a(e,h);for(;E.length>C;)r(u,h=E[C++])&&(~l(e,h)||a(e,h));return e}},1956:function(S,I,n){var c=n(6324),r=n(748);S.exports=Object.keys||function(l){return c(l,r)}},5296:function(S,I){"use strict";var n={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,r=c&&!n.call({1:2},1);I.f=r?function(l){var f=c(this,l);return!!f&&f.enumerable}:n},7674:function(S,I,n){var c=n(1702),r=n(9670),s=n(6077);S.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,l=!1,f={};try{(a=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(f,[]),l=f instanceof Array}catch(B){}return function(E,u){return r(E),s(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(S,I,n){var c=n(9781),r=n(1702),s=n(1956),l=n(5656),a=r(n(5296).f),B=r([].push),E=function(u){return function(C){for(var m,e=l(C),h=s(e),g=h.length,w=0,Q=[];g>w;)m=h[w++],(!c||a(e,m))&&B(Q,u?[m,e[m]]:e[m]);return Q}};S.exports={entries:E(!0),values:E(!1)}},288:function(S,I,n){"use strict";var c=n(1694),r=n(648);S.exports=c?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(S,I,n){var c=n(7854),r=n(6916),s=n(614),l=n(111),f=c.TypeError;S.exports=function(a,B){var E,u;if("string"===B&&s(E=a.toString)&&!l(u=r(E,a))||s(E=a.valueOf)&&!l(u=r(E,a))||"string"!==B&&s(E=a.toString)&&!l(u=r(E,a)))return u;throw f("Can't convert object to primitive value")}},3887:function(S,I,n){var c=n(5005),r=n(1702),s=n(8006),l=n(5181),f=n(9670),a=r([].concat);S.exports=c("Reflect","ownKeys")||function(E){var u=s.f(f(E)),C=l.f;return C?a(u,C(E)):u}},857:function(S,I,n){var c=n(7854);S.exports=c},2534:function(S){S.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(S,I,n){var c=n(9670),r=n(111),s=n(8523);S.exports=function(l,f){if(c(l),r(f)&&f.constructor===l)return f;var a=s.f(l);return(0,a.resolve)(f),a.promise}},2248:function(S,I,n){var c=n(1320);S.exports=function(r,s,l){for(var f in s)c(r,f,s[f],l);return r}},1320:function(S,I,n){var c=n(7854),r=n(614),s=n(2597),l=n(8880),f=n(3505),a=n(2788),B=n(9909),E=n(6530).CONFIGURABLE,u=B.get,C=B.enforce,e=String(String).split("String");(S.exports=function(h,g,w,Q){var v,m=!!Q&&!!Q.unsafe,Y=!!Q&&!!Q.enumerable,y=!!Q&&!!Q.noTargetGet,d=Q&&void 0!==Q.name?Q.name:g;r(w)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s(w,"name")||E&&w.name!==d)&&l(w,"name",d),(v=C(w)).source||(v.source=e.join("string"==typeof d?d:""))),h!==c?(m?!y&&h[g]&&(Y=!0):delete h[g],Y?h[g]=w:l(h,g,w)):Y?h[g]=w:f(g,w)})(Function.prototype,"toString",function(){return r(this)&&u(this).source||a(this)})},7651:function(S,I,n){var c=n(7854),r=n(6916),s=n(9670),l=n(614),f=n(4326),a=n(2261),B=c.TypeError;S.exports=function(E,u){var C=E.exec;if(l(C)){var e=r(C,E,u);return null!==e&&s(e),e}if("RegExp"===f(E))return r(a,E,u);throw B("RegExp#exec called on incompatible receiver")}},2261:function(S,I,n){"use strict";var R,N,c=n(6916),r=n(1702),s=n(1340),l=n(7066),f=n(2999),a=n(2309),B=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,w=r("".charAt),Q=r("".indexOf),m=r("".replace),Y=r("".slice),y=(N=/b*/g,c(h,R=/a/,"a"),c(h,N,"a"),0!==R.lastIndex||0!==N.lastIndex),d=f.UNSUPPORTED_Y||f.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(y||v||d||u||C)&&(g=function(N){var sA,q,BA,MA,lA,cA,gA,F=this,b=E(F),P=s(N),eA=b.raw;if(eA)return eA.lastIndex=F.lastIndex,sA=c(g,eA,P),F.lastIndex=eA.lastIndex,sA;var xA=b.groups,FA=d&&F.sticky,_=c(l,F),pA=F.source,uA=0,dA=P;if(FA&&(_=m(_,"y",""),-1===Q(_,"g")&&(_+="g"),dA=Y(P,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(P,F.lastIndex-1))&&(pA="(?: "+pA+")",dA=" "+dA,uA++),q=new RegExp("^(?:"+pA+")",_)),v&&(q=new RegExp("^"+pA+"$(?!\\s)",_)),y&&(BA=F.lastIndex),MA=c(h,FA?q:F,dA),FA?MA?(MA.input=Y(MA.input,uA),MA[0]=Y(MA[0],uA),MA.index=F.lastIndex,F.lastIndex+=MA[0].length):F.lastIndex=0:y&&MA&&(F.lastIndex=F.global?MA.index+MA[0].length:BA),v&&MA&&MA.length>1&&c(e,MA[0],q,function(){for(lA=1;lAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$
c")})},4488:function(S,I,n){var r=n(7854).TypeError;S.exports=function(s){if(null==s)throw r("Can't call method on "+s);return s}},3505:function(S,I,n){var c=n(7854),r=Object.defineProperty;S.exports=function(s,l){try{r(c,s,{value:l,configurable:!0,writable:!0})}catch(f){c[s]=l}return l}},6340:function(S,I,n){"use strict";var c=n(5005),r=n(3070),s=n(5112),l=n(9781),f=s("species");S.exports=function(a){var B=c(a);l&&B&&!B[f]&&(0,r.f)(B,f,{configurable:!0,get:function(){return this}})}},8003:function(S,I,n){var c=n(3070).f,r=n(2597),l=n(5112)("toStringTag");S.exports=function(f,a,B){f&&!r(f=B?f:f.prototype,l)&&c(f,l,{configurable:!0,value:a})}},6200:function(S,I,n){var c=n(2309),r=n(9711),s=c("keys");S.exports=function(l){return s[l]||(s[l]=r(l))}},5465:function(S,I,n){var c=n(7854),r=n(3505),s="__core-js_shared__",l=c[s]||r(s,{});S.exports=l},2309:function(S,I,n){var c=n(1913),r=n(5465);(S.exports=function(s,l){return r[s]||(r[s]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(S,I,n){var c=n(9670),r=n(9483),l=n(5112)("species");S.exports=function(f,a){var E,B=c(f).constructor;return void 0===B||null==(E=c(B)[l])?a:r(E)}},3429:function(S,I,n){var c=n(7293);S.exports=function(r){return c(function(){var s=""[r]('"');return s!==s.toLowerCase()||s.split('"').length>3})}},8710:function(S,I,n){var c=n(1702),r=n(9303),s=n(1340),l=n(4488),f=c("".charAt),a=c("".charCodeAt),B=c("".slice),E=function(u){return function(C,e){var Q,m,h=s(l(C)),g=r(e),w=h.length;return g<0||g>=w?u?"":void 0:(Q=a(h,g))<55296||Q>56319||g+1===w||(m=a(h,g+1))<56320||m>57343?u?f(h,g):Q:u?B(h,g,g+2):m-56320+(Q-55296<<10)+65536}};S.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(S,I,n){"use strict";var c=n(7854),r=n(9303),s=n(1340),l=n(4488),f=c.RangeError;S.exports=function(B){var E=s(l(this)),u="",C=r(B);if(C<0||C==1/0)throw f("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(E+=E))1&C&&(u+=E);return u}},6091:function(S,I,n){var c=n(6530).PROPER,r=n(7293),s=n(1361);S.exports=function(f){return r(function(){return!!s[f]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[f]()||c&&s[f].name!==f})}},3111:function(S,I,n){var c=n(1702),r=n(4488),s=n(1340),l=n(1361),f=c("".replace),a="["+l+"]",B=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var h=s(r(e));return 1&C&&(h=f(h,B,"")),2&C&&(h=f(h,E,"")),h}};S.exports={start:u(1),end:u(2),trim:u(3)}},261:function(S,I,n){var R,N,F,b,c=n(7854),r=n(2104),s=n(9974),l=n(614),f=n(2597),a=n(7293),B=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),h=c.setImmediate,g=c.clearImmediate,w=c.process,Q=c.Dispatch,m=c.Function,Y=c.MessageChannel,y=c.String,d=0,v={},D="onreadystatechange";try{R=c.location}catch(BA){}var P=function(BA){if(f(v,BA)){var MA=v[BA];delete v[BA],MA()}},eA=function(BA){return function(){P(BA)}},sA=function(BA){P(BA.data)},q=function(BA){c.postMessage(y(BA),R.protocol+"//"+R.host)};(!h||!g)&&(h=function(MA){var lA=E(arguments,1);return v[++d]=function(){r(l(MA)?MA:m(MA),void 0,lA)},N(d),d},g=function(MA){delete v[MA]},e?N=function(BA){w.nextTick(eA(BA))}:Q&&Q.now?N=function(BA){Q.now(eA(BA))}:Y&&!C?(b=(F=new Y).port2,F.port1.onmessage=sA,N=s(b.postMessage,b)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&R&&"file:"!==R.protocol&&!a(q)?(N=q,c.addEventListener("message",sA,!1)):N=D in u("script")?function(BA){B.appendChild(u("script"))[D]=function(){B.removeChild(this),P(BA)}}:function(BA){setTimeout(eA(BA),0)}),S.exports={set:h,clear:g}},863:function(S,I,n){var c=n(1702);S.exports=c(1..valueOf)},1400:function(S,I,n){var c=n(9303),r=Math.max,s=Math.min;S.exports=function(l,f){var a=c(l);return a<0?r(a+f,0):s(a,f)}},7067:function(S,I,n){var c=n(7854),r=n(9303),s=n(7466),l=c.RangeError;S.exports=function(f){if(void 0===f)return 0;var a=r(f),B=s(a);if(a!==B)throw l("Wrong length or index");return B}},5656:function(S,I,n){var c=n(8361),r=n(4488);S.exports=function(s){return c(r(s))}},9303:function(S){var I=Math.ceil,n=Math.floor;S.exports=function(c){var r=+c;return r!=r||0===r?0:(r>0?n:I)(r)}},7466:function(S,I,n){var c=n(9303),r=Math.min;S.exports=function(s){return s>0?r(c(s),9007199254740991):0}},7908:function(S,I,n){var c=n(7854),r=n(4488),s=c.Object;S.exports=function(l){return s(r(l))}},4590:function(S,I,n){var c=n(7854),r=n(3002),s=c.RangeError;S.exports=function(l,f){var a=r(l);if(a%f)throw s("Wrong offset");return a}},3002:function(S,I,n){var c=n(7854),r=n(9303),s=c.RangeError;S.exports=function(l){var f=r(l);if(f<0)throw s("The argument can't be less than 0");return f}},7593:function(S,I,n){var c=n(7854),r=n(6916),s=n(111),l=n(2190),f=n(8173),a=n(2140),B=n(5112),E=c.TypeError,u=B("toPrimitive");S.exports=function(C,e){if(!s(C)||l(C))return C;var g,h=f(C,u);if(h){if(void 0===e&&(e="default"),g=r(h,C,e),!s(g)||l(g))return g;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(S,I,n){var c=n(7593),r=n(2190);S.exports=function(s){var l=c(s,"string");return r(l)?l:l+""}},1694:function(S,I,n){var s={};s[n(5112)("toStringTag")]="z",S.exports="[object z]"===String(s)},1340:function(S,I,n){var c=n(7854),r=n(648),s=c.String;S.exports=function(l){if("Symbol"===r(l))throw TypeError("Cannot convert a Symbol value to a string");return s(l)}},6330:function(S,I,n){var r=n(7854).String;S.exports=function(s){try{return r(s)}catch(l){return"Object"}}},9843:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(6916),l=n(9781),f=n(3832),a=n(2094),B=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),h=n(7466),g=n(7067),w=n(4590),Q=n(4948),m=n(2597),Y=n(648),y=n(111),d=n(2190),v=n(30),D=n(7976),R=n(7674),N=n(8006).f,F=n(7321),b=n(2092).forEach,P=n(6340),eA=n(3070),sA=n(1236),q=n(9909),BA=n(9587),MA=q.get,lA=q.set,cA=eA.f,gA=sA.f,xA=Math.round,FA=r.RangeError,_=B.ArrayBuffer,pA=_.prototype,uA=B.DataView,dA=a.NATIVE_ARRAY_BUFFER_VIEWS,SA=a.TYPED_ARRAY_CONSTRUCTOR,zA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,X=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,W="BYTES_PER_ELEMENT",hA="Wrong length",DA=function(TA,at){O(TA);for(var It=0,mt=at.length,wt=new TA(mt);mt>It;)wt[It]=at[It++];return wt},nA=function(TA,at){cA(TA,at,{get:function(){return MA(this)[at]}})},EA=function(TA){var at;return D(pA,TA)||"ArrayBuffer"==(at=Y(TA))||"SharedArrayBuffer"==at},GA=function(TA,at){return $(TA)&&!d(at)&&at in TA&&e(+at)&&at>=0},it=function(at,It){return It=Q(It),GA(at,It)?u(2,at[It]):gA(at,It)},st=function(at,It,mt){return It=Q(It),!(GA(at,It)&&y(mt)&&m(mt,"value"))||m(mt,"get")||m(mt,"set")||mt.configurable||m(mt,"writable")&&!mt.writable||m(mt,"enumerable")&&!mt.enumerable?cA(at,It,mt):(at[It]=mt.value,at)};l?(dA||(sA.f=it,eA.f=st,nA(X,"buffer"),nA(X,"byteOffset"),nA(X,"byteLength"),nA(X,"length")),c({target:"Object",stat:!0,forced:!dA},{getOwnPropertyDescriptor:it,defineProperty:st}),S.exports=function(TA,at,It){var mt=TA.match(/\d+$/)[0]/8,wt=TA+(It?"Clamped":"")+"Array",OA="get"+TA,VA="set"+TA,tt=r[wt],mA=tt,dt=mA&&mA.prototype,ht={},H=function(k,z){cA(k,z,{get:function(){return function(k,z){var QA=MA(k);return QA.view[OA](z*mt+QA.byteOffset,!0)}(this,z)},set:function(QA){return function(k,z,QA){var CA=MA(k);It&&(QA=(QA=xA(QA))<0?0:QA>255?255:255&QA),CA.view[VA](z*mt+CA.byteOffset,QA,!0)}(this,z,QA)},enumerable:!0})};dA?f&&(mA=at(function(k,z,QA,CA){return E(k,dt),BA(y(z)?EA(z)?void 0!==CA?new tt(z,w(QA,mt),CA):void 0!==QA?new tt(z,w(QA,mt)):new tt(z):$(z)?DA(mA,z):s(F,mA,z):new tt(g(z)),k,mA)}),R&&R(mA,XA),b(N(tt),function(k){k in mA||C(mA,k,tt[k])}),mA.prototype=dt):(mA=at(function(k,z,QA,CA){E(k,dt);var gt,Yt,j,RA=0,iA=0;if(y(z)){if(!EA(z))return $(z)?DA(mA,z):s(F,mA,z);gt=z,iA=w(QA,mt);var qA=z.byteLength;if(void 0===CA){if(qA%mt||(Yt=qA-iA)<0)throw FA(hA)}else if((Yt=h(CA)*mt)+iA>qA)throw FA(hA);j=Yt/mt}else j=g(z),gt=new _(Yt=j*mt);for(lA(k,{buffer:gt,byteOffset:iA,byteLength:Yt,length:j,view:new uA(gt)});RA1?arguments[1]:void 0,m=void 0!==Q,Y=B(g);if(Y&&!E(Y))for(N=(R=a(g,Y)).next,g=[];!(D=r(N,R)).done;)g.push(D.value);for(m&&w>2&&(Q=c(Q,arguments[2])),d=f(g),v=new(u(h))(d),y=0;d>y;y++)v[y]=m?Q(g[y],y):g[y];return v}},6304:function(S,I,n){var c=n(2094),r=n(6707),s=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;S.exports=function(f){return l(r(f,f[s]))}},9711:function(S,I,n){var c=n(1702),r=0,s=Math.random(),l=c(1..toString);S.exports=function(f){return"Symbol("+(void 0===f?"":f)+")_"+l(++r+s,36)}},3307:function(S,I,n){var c=n(133);S.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(S,I,n){var c=n(5112);I.f=c},5112:function(S,I,n){var c=n(7854),r=n(2309),s=n(2597),l=n(9711),f=n(133),a=n(3307),B=r("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;S.exports=function(e){if(!s(B,e)||!f&&"string"!=typeof B[e]){var h="Symbol."+e;B[e]=f&&s(E,e)?E[e]:a&&u?u(h):C(h)}return B[e]}},1361:function(S){S.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},9170:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(7976),l=n(9518),f=n(7674),a=n(9920),B=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),h=n(408),g=n(6277),w=n(2914),Q=r.Error,m=[].push,Y=function(v,D){var R=s(y,this)?this:B(y),N=arguments.length>2?arguments[2]:void 0;f&&(R=f(new Q(void 0),l(R))),E(R,"message",g(D,"")),w&&E(R,"stack",C(R.stack,1)),e(R,N);var F=[];return h(v,m,{that:F}),E(R,"errors",F),R};f?f(Y,Q):a(Y,Q);var y=Y.prototype=B(Q.prototype,{constructor:u(1,Y),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:Y})},2222:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(7293),l=n(3157),f=n(111),a=n(7908),B=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),h=n(7392),g=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",m=r.TypeError,Y=h>=51||!s(function(){var D=[];return D[g]=!1,D.concat()[0]!==D}),y=C("concat"),d=function(D){if(!f(D))return!1;var R=D[g];return void 0!==R?!!R:l(D)};c({target:"Array",proto:!0,forced:!Y||!y},{concat:function(R){var P,eA,sA,q,BA,N=a(this),F=u(N,0),b=0;for(P=-1,sA=arguments.length;Pw)throw m(Q);for(eA=0;eA=w)throw m(Q);E(F,b++,BA)}return F.length=b,F}})},545:function(S,I,n){var c=n(2109),r=n(1048),s=n(1223);c({target:"Array",proto:!0},{copyWithin:r}),s("copyWithin")},3290:function(S,I,n){var c=n(2109),r=n(1285),s=n(1223);c({target:"Array",proto:!0},{fill:r}),s("fill")},7327:function(S,I,n){"use strict";var c=n(2109),r=n(2092).filter;c({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}})},1038:function(S,I,n){var c=n(2109),r=n(8457);c({target:"Array",stat:!0,forced:!n(7072)(function(f){Array.from(f)})},{from:r})},6699:function(S,I,n){"use strict";var c=n(2109),r=n(1318).includes,s=n(1223);c({target:"Array",proto:!0},{includes:function(f){return r(this,f,arguments.length>1?arguments[1]:void 0)}}),s("includes")},6992:function(S,I,n){"use strict";var c=n(5656),r=n(1223),s=n(7497),l=n(9909),f=n(654),a="Array Iterator",B=l.set,E=l.getterFor(a);S.exports=f(Array,"Array",function(u,C){B(this,{type:a,target:c(u),index:0,kind:C})},function(){var u=E(this),C=u.target,e=u.kind,h=u.index++;return!C||h>=C.length?(u.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:h,done:!1}:"values"==e?{value:C[h],done:!1}:{value:[h,C[h]],done:!1}},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},9600:function(S,I,n){"use strict";var c=n(2109),r=n(1702),s=n(8361),l=n(5656),f=n(9341),a=r([].join),B=s!=Object,E=f("join",",");c({target:"Array",proto:!0,forced:B||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(S,I,n){"use strict";var c=n(2109),r=n(2092).map;c({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}})},7042:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(3157),l=n(4411),f=n(111),a=n(1400),B=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),h=n(206),g=e("slice"),w=C("species"),Q=r.Array,m=Math.max;c({target:"Array",proto:!0,forced:!g},{slice:function(y,d){var F,b,P,v=E(this),D=B(v),R=a(y,D),N=a(void 0===d?D:d,D);if(s(v)&&((l(F=v.constructor)&&(F===Q||s(F.prototype))||f(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return h(v,R,N);for(b=new(void 0===F?Q:F)(m(N-R,0)),P=0;R3)){if(e)return!0;if(g)return g<603;var F,b,P,eA,N="";for(F=65;F<76;F++){switch(b=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:P=3;break;case 68:case 71:P=4;break;default:P=2}for(eA=0;eA<47;eA++)w.push({k:b+eA,v:P})}for(w.sort(function(sA,q){return q.v-sA.v}),eA=0;eAa(b)?1:-1}}(F)),sA=P.length,q=0;qw)throw e(Q);for(b=B(d,F),P=0;Pv-F+N;P--)delete d[P-1]}else if(N>F)for(P=v-F;P>D;P--)sA=P+N-1,(eA=P+F-1)in d?d[sA]=d[eA]:delete d[sA];for(P=0;P2)if(BA=m(BA),43===(MA=R(BA,0))||45===MA){if(88===(lA=R(BA,2))||120===lA)return NaN}else if(48===MA){switch(R(BA,1)){case 66:case 98:cA=2,gA=49;break;case 79:case 111:cA=8,gA=55;break;default:return+BA}for(FA=(xA=D(BA,2)).length,_=0;_gA)return NaN;return parseInt(xA,cA)}return+BA};if(l(Y,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var sA,b=function(BA){var MA=arguments.length<1?0:y(N(BA)),lA=this;return E(d,lA)&&e(function(){Q(lA)})?B(Object(MA),lA,b):MA},P=c?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),eA=0;P.length>eA;eA++)a(y,sA=P[eA])&&!a(b,sA)&&w(b,sA,g(y,sA));b.prototype=d,d.constructor=b,f(r,Y,b)}},3299:function(S,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(S,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(S,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(1702),l=n(9303),f=n(863),a=n(8415),B=n(7293),E=r.RangeError,u=r.String,C=Math.floor,e=s(a),h=s("".slice),g=s(1..toFixed),w=function(v,D,R){return 0===D?R:D%2==1?w(v,D-1,R*v):w(v*v,D/2,R)},m=function(v,D,R){for(var N=-1,F=R;++N<6;)v[N]=(F+=D*v[N])%1e7,F=C(F/1e7)},Y=function(v,D){for(var R=6,N=0;--R>=0;)v[R]=C((N+=v[R])/D),N=N%D*1e7},y=function(v){for(var D=6,R="";--D>=0;)if(""!==R||0===D||0!==v[D]){var N=u(v[D]);R=""===R?N:R+e("0",7-N.length)+N}return R};c({target:"Number",proto:!0,forced:B(function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)})||!B(function(){g({})})},{toFixed:function(D){var eA,sA,q,BA,R=f(this),N=l(D),F=[0,0,0,0,0,0],b="",P="0";if(N<0||N>20)throw E("Incorrect fraction digits");if(R!=R)return"NaN";if(R<=-1e21||R>=1e21)return u(R);if(R<0&&(b="-",R=-R),R>1e-21)if(sA=(eA=function(v){for(var D=0,R=v;R>=4096;)D+=12,R/=4096;for(;R>=2;)D+=1,R/=2;return D}(R*w(2,69,1))-69)<0?R*w(2,-eA,1):R/w(2,eA,1),sA*=4503599627370496,(eA=52-eA)>0){for(m(F,0,sA),q=N;q>=7;)m(F,1e7,0),q-=7;for(m(F,w(10,q,1),0),q=eA-1;q>=23;)Y(F,8388608),q-=23;Y(F,1<0?b+((BA=P.length)<=N?"0."+e("0",N-BA)+P:h(P,0,BA-N)+"."+h(P,BA-N)):b+P}})},9601:function(S,I,n){var c=n(2109),r=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},3371:function(S,I,n){var c=n(2109),r=n(6677),s=n(7293),l=n(111),f=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:s(function(){a(1)}),sham:!r},{freeze:function(u){return a&&l(u)?a(f(u)):u}})},5003:function(S,I,n){var c=n(2109),r=n(7293),s=n(5656),l=n(1236).f,f=n(9781),a=r(function(){l(1)});c({target:"Object",stat:!0,forced:!f||a,sham:!f},{getOwnPropertyDescriptor:function(u,C){return l(s(u),C)}})},9337:function(S,I,n){var c=n(2109),r=n(9781),s=n(3887),l=n(5656),f=n(1236),a=n(6135);c({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(E){for(var w,Q,u=l(E),C=f.f,e=s(u),h={},g=0;e.length>g;)void 0!==(Q=C(u,w=e[g++]))&&a(h,w,Q);return h}})},489:function(S,I,n){var c=n(2109),r=n(7293),s=n(7908),l=n(9518),f=n(8544);c({target:"Object",stat:!0,forced:r(function(){l(1)}),sham:!f},{getPrototypeOf:function(E){return l(s(E))}})},7941:function(S,I,n){var c=n(2109),r=n(7908),s=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){s(1)})},{keys:function(B){return s(r(B))}})},1539:function(S,I,n){var c=n(1694),r=n(1320),s=n(288);c||r(Object.prototype,"toString",s,{unsafe:!0})},2479:function(S,I,n){var c=n(2109),r=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return r(l)}})},7922:function(S,I,n){"use strict";var c=n(2109),r=n(6916),s=n(9662),l=n(8523),f=n(2534),a=n(408);c({target:"Promise",stat:!0},{allSettled:function(E){var u=this,C=l.f(u),e=C.resolve,h=C.reject,g=f(function(){var w=s(u.resolve),Q=[],m=0,Y=1;a(E,function(y){var d=m++,v=!1;Y++,r(w,u,y).then(function(D){v||(v=!0,Q[d]={status:"fulfilled",value:D},--Y||e(Q))},function(D){v||(v=!0,Q[d]={status:"rejected",reason:D},--Y||e(Q))})}),--Y||e(Q)});return g.error&&h(g.value),C.promise}})},4668:function(S,I,n){"use strict";var c=n(2109),r=n(9662),s=n(5005),l=n(6916),f=n(8523),a=n(2534),B=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,h=s("AggregateError"),g=f.f(e),w=g.resolve,Q=g.reject,m=a(function(){var Y=r(e.resolve),y=[],d=0,v=1,D=!1;B(C,function(R){var N=d++,F=!1;v++,l(Y,e,R).then(function(b){F||D||(D=!0,w(b))},function(b){F||D||(F=!0,y[N]=b,--v||Q(new h(y,E)))})}),--v||Q(new h(y,E))});return m.error&&Q(m.value),g.promise}})},7727:function(S,I,n){"use strict";var c=n(2109),r=n(1913),s=n(3366),l=n(7293),f=n(5005),a=n(614),B=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!s&&l(function(){s.prototype.finally.call({then:function(){}},function(){})})},{finally:function(h){var g=B(this,f("Promise")),w=a(h);return this.then(w?function(Q){return E(g,h()).then(function(){return Q})}:h,w?function(Q){return E(g,h()).then(function(){throw Q})}:h)}}),!r&&a(s)){var e=f("Promise").prototype.finally;s.prototype.finally!==e&&u(s.prototype,"finally",e,{unsafe:!0})}},8674:function(S,I,n){"use strict";var TA,at,It,mt,c=n(2109),r=n(1913),s=n(7854),l=n(5005),f=n(6916),a=n(3366),B=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),h=n(9662),g=n(614),w=n(111),Q=n(5787),m=n(2788),Y=n(408),y=n(7072),d=n(6707),v=n(261).set,D=n(5948),R=n(9478),N=n(842),F=n(8523),b=n(2534),P=n(9909),eA=n(4705),sA=n(5112),q=n(7871),BA=n(5268),MA=n(7392),lA=sA("species"),cA="Promise",gA=P.get,xA=P.set,FA=P.getterFor(cA),_=a&&a.prototype,pA=a,uA=_,dA=s.TypeError,SA=s.document,zA=s.process,XA=F.f,X=XA,O=!!(SA&&SA.createEvent&&s.dispatchEvent),$=g(s.PromiseRejectionEvent),W="unhandledrejection",st=!1,wt=eA(cA,function(){var z=m(pA),QA=z!==String(pA);if(!QA&&66===MA||r&&!uA.finally)return!0;if(MA>=51&&/native code/.test(z))return!1;var CA=new pA(function(gt){gt(1)}),RA=function(gt){gt(function(){},function(){})};return(CA.constructor={})[lA]=RA,!(st=CA.then(function(){})instanceof RA)||!QA&&q&&!$}),OA=wt||!y(function(z){pA.all(z).catch(function(){})}),VA=function(z){var QA;return!(!w(z)||!g(QA=z.then))&&QA},tt=function(z,QA){if(!z.notified){z.notified=!0;var CA=z.reactions;D(function(){for(var RA=z.value,iA=1==z.state,gt=0;CA.length>gt;){var KA,lt,zt,Yt=CA[gt++],j=iA?Yt.ok:Yt.fail,qA=Yt.resolve,kA=Yt.reject,yA=Yt.domain;try{j?(iA||(2===z.rejection&&Tt(z),z.rejection=1),!0===j?KA=RA:(yA&&yA.enter(),KA=j(RA),yA&&(yA.exit(),zt=!0)),KA===Yt.promise?kA(dA("Promise-chain cycle")):(lt=VA(KA))?f(lt,KA,qA,kA):qA(KA)):kA(RA)}catch(xt){yA&&!zt&&yA.exit(),kA(xt)}}z.reactions=[],z.notified=!1,QA&&!z.rejection&&dt(z)})}},mA=function(z,QA,CA){var RA,iA;O?((RA=SA.createEvent("Event")).promise=QA,RA.reason=CA,RA.initEvent(z,!1,!0),s.dispatchEvent(RA)):RA={promise:QA,reason:CA},!$&&(iA=s["on"+z])?iA(RA):z===W&&N("Unhandled promise rejection",CA)},dt=function(z){f(v,s,function(){var iA,QA=z.facade,CA=z.value;if(ht(z)&&(iA=b(function(){BA?zA.emit("unhandledRejection",CA,QA):mA(W,QA,CA)}),z.rejection=BA||ht(z)?2:1,iA.error))throw iA.value})},ht=function(z){return 1!==z.rejection&&!z.parent},Tt=function(z){f(v,s,function(){var QA=z.facade;BA?zA.emit("rejectionHandled",QA):mA("rejectionhandled",QA,z.value)})},HA=function(z,QA,CA){return function(RA){z(QA,RA,CA)}},H=function(z,QA,CA){z.done||(z.done=!0,CA&&(z=CA),z.value=QA,z.state=2,tt(z,!0))},k=function(z,QA,CA){if(!z.done){z.done=!0,CA&&(z=CA);try{if(z.facade===QA)throw dA("Promise can't be resolved itself");var RA=VA(QA);RA?D(function(){var iA={done:!1};try{f(RA,QA,HA(k,iA,z),HA(H,iA,z))}catch(gt){H(iA,gt,z)}}):(z.value=QA,z.state=1,tt(z,!1))}catch(iA){H({done:!1},iA,z)}}};if(wt&&(pA=function(QA){Q(this,uA),h(QA),f(TA,this);var CA=gA(this);try{QA(HA(k,CA),HA(H,CA))}catch(RA){H(CA,RA)}},(TA=function(QA){xA(this,{type:cA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=pA.prototype,{then:function(QA,CA){var RA=FA(this),iA=RA.reactions,gt=XA(d(this,pA));return gt.ok=!g(QA)||QA,gt.fail=g(CA)&&CA,gt.domain=BA?zA.domain:void 0,RA.parent=!0,iA[iA.length]=gt,0!=RA.state&&tt(RA,!1),gt.promise},catch:function(z){return this.then(void 0,z)}}),at=function(){var z=new TA,QA=gA(z);this.promise=z,this.resolve=HA(k,QA),this.reject=HA(H,QA)},F.f=XA=function(z){return z===pA||z===It?new at(z):X(z)},!r&&g(a)&&_!==Object.prototype)){mt=_.then,st||(B(_,"then",function(QA,CA){var RA=this;return new pA(function(iA,gt){f(mt,RA,iA,gt)}).then(QA,CA)},{unsafe:!0}),B(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(z){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:wt},{Promise:pA}),C(pA,cA,!1,!0),e(cA),It=l(cA),c({target:cA,stat:!0,forced:wt},{reject:function(QA){var CA=XA(this);return f(CA.reject,void 0,QA),CA.promise}}),c({target:cA,stat:!0,forced:r||wt},{resolve:function(QA){return R(r&&this===It?pA:this,QA)}}),c({target:cA,stat:!0,forced:OA},{all:function(QA){var CA=this,RA=XA(CA),iA=RA.resolve,gt=RA.reject,Yt=b(function(){var j=h(CA.resolve),qA=[],kA=0,yA=1;Y(QA,function(KA){var lt=kA++,zt=!1;yA++,f(j,CA,KA).then(function(xt){zt||(zt=!0,qA[lt]=xt,--yA||iA(qA))},gt)}),--yA||iA(qA)});return Yt.error&>(Yt.value),RA.promise},race:function(QA){var CA=this,RA=XA(CA),iA=RA.reject,gt=b(function(){var Yt=h(CA.resolve);Y(QA,function(j){f(Yt,CA,j).then(RA.resolve,iA)})});return gt.error&&iA(gt.value),RA.promise}})},2419:function(S,I,n){var c=n(2109),r=n(5005),s=n(2104),l=n(7065),f=n(9483),a=n(9670),B=n(111),E=n(30),u=n(7293),C=r("Reflect","construct"),e=Object.prototype,h=[].push,g=u(function(){function m(){}return!(C(function(){},[],m)instanceof m)}),w=!u(function(){C(function(){})}),Q=g||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(Y,y){f(Y),a(y);var d=arguments.length<3?Y:f(arguments[2]);if(w&&!g)return C(Y,y,d);if(Y==d){switch(y.length){case 0:return new Y;case 1:return new Y(y[0]);case 2:return new Y(y[0],y[1]);case 3:return new Y(y[0],y[1],y[2]);case 4:return new Y(y[0],y[1],y[2],y[3])}var v=[null];return s(h,v,y),new(s(l,Y,v))}var D=d.prototype,R=E(B(D)?D:e),N=s(Y,R,y);return B(N)?N:R}})},4916:function(S,I,n){"use strict";var c=n(2109),r=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},2087:function(S,I,n){var c=n(9781),r=n(3070),s=n(7066),l=n(7293),f=RegExp.prototype;c&&l(function(){return"sy"!==Object.getOwnPropertyDescriptor(f,"flags").get.call({dotAll:!0,sticky:!0})})&&r.f(f,"flags",{configurable:!0,get:s})},9714:function(S,I,n){"use strict";var c=n(1702),r=n(6530).PROPER,s=n(1320),l=n(9670),f=n(7976),a=n(1340),B=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],h=c(E);(B(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||r&&e.name!=u)&&s(RegExp.prototype,u,function(){var m=l(this),Y=a(m.source),y=m.flags;return"/"+Y+"/"+a(void 0===y&&f(C,m)&&!("flags"in C)?h(m):y)},{unsafe:!0})},189:function(S,I,n){"use strict";n(7710)("Set",function(s){return function(){return s(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(S,I,n){"use strict";var c=n(2109),r=n(8710).codeAt;c({target:"String",proto:!0},{codePointAt:function(l){return r(this,l)}})},4953:function(S,I,n){var c=n(2109),r=n(7854),s=n(1702),l=n(1400),f=r.RangeError,a=String.fromCharCode,B=String.fromCodePoint,E=s([].join);c({target:"String",stat:!0,forced:!!B&&1!=B.length},{fromCodePoint:function(e){for(var Q,h=[],g=arguments.length,w=0;g>w;){if(Q=+arguments[w++],l(Q,1114111)!==Q)throw f(Q+" is not a valid code point");h[w]=Q<65536?a(Q):a(55296+((Q-=65536)>>10),Q%1024+56320)}return E(h,"")}})},2023:function(S,I,n){"use strict";var c=n(2109),r=n(1702),s=n(3929),l=n(4488),f=n(1340),a=n(4964),B=r("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~B(f(l(this)),f(s(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(S,I,n){"use strict";var c=n(2109),r=n(4230);c({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return r(this,"i","","")}})},8783:function(S,I,n){"use strict";var c=n(8710).charAt,r=n(1340),s=n(9909),l=n(654),f="String Iterator",a=s.set,B=s.getterFor(f);l(String,"String",function(E){a(this,{type:f,string:r(E),index:0})},function(){var h,u=B(this),C=u.string,e=u.index;return e>=C.length?{value:void 0,done:!0}:(h=c(C,e),u.index+=h.length,{value:h,done:!1})})},9254:function(S,I,n){"use strict";var c=n(2109),r=n(4230);c({target:"String",proto:!0,forced:n(3429)("link")},{link:function(f){return r(this,"a","href",f)}})},6373:function(S,I,n){"use strict";var c=n(2109),r=n(7854),s=n(6916),l=n(1702),f=n(4994),a=n(4488),B=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),h=n(7850),g=n(7066),w=n(8173),Q=n(1320),m=n(7293),Y=n(5112),y=n(6707),d=n(1530),v=n(7651),D=n(9909),R=n(1913),N=Y("matchAll"),F="RegExp String",b=F+" Iterator",P=D.set,eA=D.getterFor(b),sA=RegExp.prototype,q=r.TypeError,BA=l(g),MA=l("".indexOf),lA=l("".matchAll),cA=!!lA&&!m(function(){lA("a",/./)}),gA=f(function(_,pA,uA,dA){P(this,{type:b,regexp:_,string:pA,global:uA,unicode:dA,done:!1})},F,function(){var _=eA(this);if(_.done)return{value:void 0,done:!0};var pA=_.regexp,uA=_.string,dA=v(pA,uA);return null===dA?{value:void 0,done:_.done=!0}:_.global?(""===E(dA[0])&&(pA.lastIndex=d(uA,B(pA.lastIndex),_.unicode)),{value:dA,done:!1}):(_.done=!0,{value:dA,done:!1})}),xA=function(FA){var uA,dA,SA,zA,XA,X,_=u(this),pA=E(FA);return uA=y(_,RegExp),void 0===(dA=_.flags)&&e(sA,_)&&!("flags"in sA)&&(dA=BA(_)),SA=void 0===dA?"":E(dA),zA=new uA(uA===RegExp?_.source:_,SA),XA=!!~MA(SA,"g"),X=!!~MA(SA,"u"),zA.lastIndex=B(_.lastIndex),new gA(zA,pA,XA,X)};c({target:"String",proto:!0,forced:cA},{matchAll:function(_){var uA,dA,SA,zA,pA=a(this);if(null!=_){if(h(_)&&(uA=E(a("flags"in sA?_.flags:BA(_))),!~MA(uA,"g")))throw q("`.matchAll` does not allow non-global regexes");if(cA)return lA(pA,_);if(void 0===(SA=w(_,N))&&R&&"RegExp"==C(_)&&(SA=xA),SA)return s(SA,_,pA)}else if(cA)return lA(pA,_);return dA=E(pA),zA=new RegExp(_,"g"),R?s(xA,zA,dA):zA[N](dA)}}),R||N in sA||Q(sA,N,xA)},4723:function(S,I,n){"use strict";var c=n(6916),r=n(7007),s=n(9670),l=n(7466),f=n(1340),a=n(4488),B=n(8173),E=n(1530),u=n(7651);r("match",function(C,e,h){return[function(w){var Q=a(this),m=null==w?void 0:B(w,C);return m?c(m,w,Q):new RegExp(w)[C](f(Q))},function(g){var w=s(this),Q=f(g),m=h(e,w,Q);if(m.done)return m.value;if(!w.global)return u(w,Q);var Y=w.unicode;w.lastIndex=0;for(var v,y=[],d=0;null!==(v=u(w,Q));){var D=f(v[0]);y[d]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),Y)),d++}return 0===d?null:y}]})},2481:function(S,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(S,I,n){"use strict";var c=n(2104),r=n(6916),s=n(1702),l=n(7007),f=n(7293),a=n(9670),B=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),h=n(1530),g=n(8173),w=n(647),Q=n(7651),Y=n(5112)("replace"),y=Math.max,d=Math.min,v=s([].concat),D=s([].push),R=s("".indexOf),N=s("".slice),F=function(sA){return void 0===sA?sA:String(sA)},b="$0"==="a".replace(/./,"$0"),P=!!/./[Y]&&""===/./[Y]("a","$0");l("replace",function(sA,q,BA){var MA=P?"$":"$0";return[function(cA,gA){var xA=e(this),FA=null==cA?void 0:g(cA,Y);return FA?r(FA,cA,xA,gA):r(q,C(xA),cA,gA)},function(lA,cA){var gA=a(this),xA=C(lA);if("string"==typeof cA&&-1===R(cA,MA)&&-1===R(cA,"$<")){var FA=BA(q,gA,xA,cA);if(FA.done)return FA.value}var _=B(cA);_||(cA=C(cA));var pA=gA.global;if(pA){var uA=gA.unicode;gA.lastIndex=0}for(var dA=[];;){var SA=Q(gA,xA);if(null===SA||(D(dA,SA),!pA))break;""===C(SA[0])&&(gA.lastIndex=h(xA,u(gA.lastIndex),uA))}for(var XA="",X=0,O=0;O=X&&(XA+=N(xA,X,W)+GA,X=W+$.length)}return XA+N(xA,X)}]},!!f(function(){var sA=/./;return sA.exec=function(){var q=[];return q.groups={a:"7"},q},"7"!=="".replace(sA,"$")})||!b||P)},3123:function(S,I,n){"use strict";var c=n(2104),r=n(6916),s=n(1702),l=n(7007),f=n(7850),a=n(9670),B=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),h=n(8173),g=n(206),w=n(7651),Q=n(2261),m=n(2999),Y=n(7293),y=m.UNSUPPORTED_Y,d=4294967295,v=Math.min,D=[].push,R=s(/./.exec),N=s(D),F=s("".slice),b=!Y(function(){var P=/(?:)/,eA=P.exec;P.exec=function(){return eA.apply(this,arguments)};var sA="ab".split(P);return 2!==sA.length||"a"!==sA[0]||"b"!==sA[1]});l("split",function(P,eA,sA){var q;return q="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(BA,MA){var lA=e(B(this)),cA=void 0===MA?d:MA>>>0;if(0===cA)return[];if(void 0===BA)return[lA];if(!f(BA))return r(eA,lA,BA,cA);for(var pA,uA,dA,gA=[],FA=0,_=new RegExp(BA.source,(BA.ignoreCase?"i":"")+(BA.multiline?"m":"")+(BA.unicode?"u":"")+(BA.sticky?"y":"")+"g");(pA=r(Q,_,lA))&&!((uA=_.lastIndex)>FA&&(N(gA,F(lA,FA,pA.index)),pA.length>1&&pA.index=cA));)_.lastIndex===pA.index&&_.lastIndex++;return FA===lA.length?(dA||!R(_,""))&&N(gA,""):N(gA,F(lA,FA)),gA.length>cA?g(gA,0,cA):gA}:"0".split(void 0,0).length?function(BA,MA){return void 0===BA&&0===MA?[]:r(eA,this,BA,MA)}:eA,[function(MA,lA){var cA=B(this),gA=null==MA?void 0:h(MA,P);return gA?r(gA,MA,cA,lA):r(q,e(cA),MA,lA)},function(BA,MA){var lA=a(this),cA=e(BA),gA=sA(q,lA,cA,MA,q!==eA);if(gA.done)return gA.value;var xA=E(lA,RegExp),FA=lA.unicode,pA=new xA(y?"^(?:"+lA.source+")":lA,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(y?"g":"y")),uA=void 0===MA?d:MA>>>0;if(0===uA)return[];if(0===cA.length)return null===w(pA,cA)?[cA]:[];for(var dA=0,SA=0,zA=[];SA2?arguments[2]:void 0)})},8927:function(S,I,n){"use strict";var c=n(2094),r=n(2092).every,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(S,I,n){"use strict";var c=n(2094),r=n(6916),s=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(B){var E=arguments.length;return r(s,l(this),B,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(S,I,n){"use strict";var c=n(2094),r=n(2092).filter,s=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(B){var E=r(l(this),B,arguments.length>1?arguments[1]:void 0);return s(this,E)})},7174:function(S,I,n){"use strict";var c=n(2094),r=n(2092).findIndex,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(S,I,n){"use strict";var c=n(2094),r=n(2092).find,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(S,I,n){n(9843)("Float32",function(r){return function(l,f,a){return r(this,l,f,a)}})},6495:function(S,I,n){n(9843)("Float64",function(r){return function(l,f,a){return r(this,l,f,a)}})},2846:function(S,I,n){"use strict";var c=n(2094),r=n(2092).forEach,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){r(s(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(S,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(S,I,n){"use strict";var c=n(2094),r=n(1318).includes,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(S,I,n){"use strict";var c=n(2094),r=n(1318).indexOf,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(S,I,n){n(9843)("Int16",function(r){return function(l,f,a){return r(this,l,f,a)}})},5125:function(S,I,n){n(9843)("Int32",function(r){return function(l,f,a){return r(this,l,f,a)}})},7145:function(S,I,n){n(9843)("Int8",function(r){return function(l,f,a){return r(this,l,f,a)}})},6319:function(S,I,n){"use strict";var c=n(7854),r=n(1702),s=n(6530).PROPER,l=n(2094),f=n(6992),B=n(5112)("iterator"),E=c.Uint8Array,u=r(f.values),C=r(f.keys),e=r(f.entries),h=l.aTypedArray,g=l.exportTypedArrayMethod,w=E&&E.prototype[B],Q=!!w&&"values"===w.name,m=function(){return u(h(this))};g("entries",function(){return e(h(this))}),g("keys",function(){return C(h(this))}),g("values",m,s&&!Q),g(B,m,s&&!Q)},8867:function(S,I,n){"use strict";var c=n(2094),r=n(1702),s=c.aTypedArray,l=c.exportTypedArrayMethod,f=r([].join);l("join",function(B){return f(s(this),B)})},7789:function(S,I,n){"use strict";var c=n(2094),r=n(2104),s=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(B){var E=arguments.length;return r(s,l(this),E>1?[B,arguments[1]]:[B])})},3739:function(S,I,n){"use strict";var c=n(2094),r=n(2092).map,s=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(B){return r(l(this),B,arguments.length>1?arguments[1]:void 0,function(E,u){return new(s(E))(u)})})},4483:function(S,I,n){"use strict";var c=n(2094),r=n(3671).right,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var B=arguments.length;return r(s(this),a,B,B>1?arguments[1]:void 0)})},9368:function(S,I,n){"use strict";var c=n(2094),r=n(3671).left,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var B=arguments.length;return r(s(this),a,B,B>1?arguments[1]:void 0)})},2056:function(S,I,n){"use strict";var c=n(2094),r=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,B=r(a).length,E=l(B/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=f(h),m=s(Q),Y=0;if(m+g>w)throw B("Wrong length");for(;Yg;)Q[g]=e[g++];return Q},s(function(){new Int8Array(1).slice()}))},7462:function(S,I,n){"use strict";var c=n(2094),r=n(2092).some,s=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return r(s(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(S,I,n){"use strict";var c=n(7854),r=n(1702),s=n(7293),l=n(9662),f=n(4362),a=n(2094),B=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,h=a.aTypedArray,g=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&r(w.prototype.sort),m=!(!Q||s(function(){Q(new w(2),null)})&&s(function(){Q(new w(2),{})})),Y=!!Q&&!s(function(){if(u)return u<74;if(B)return B<67;if(E)return!0;if(C)return C<602;var D,R,d=new w(516),v=e(516);for(D=0;D<516;D++)R=D%4,d[D]=515-D,v[D]=D-2*R+3;for(Q(d,function(N,F){return(N/4|0)-(F/4|0)}),D=0;D<516;D++)if(d[D]!==v[D])return!0});g("sort",function(v){return void 0!==v&&l(v),Y?Q(this,v):f(h(this),(d=v,function(v,D){return void 0!==d?+d(v,D)||0:D!=D?-1:v!=v?1:0===v&&0===D?1/v>0&&1/D<0?1:-1:v>D}));var d},!Y||m)},5021:function(S,I,n){"use strict";var c=n(2094),r=n(7466),s=n(1400),l=n(6304),f=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=f(this),e=C.length,h=s(E,e);return new(l(C))(C.buffer,C.byteOffset+h*C.BYTES_PER_ELEMENT,r((void 0===u?e:s(u,e))-h))})},2974:function(S,I,n){"use strict";var c=n(7854),r=n(2104),s=n(2094),l=n(7293),f=n(206),a=c.Int8Array,B=s.aTypedArray,E=s.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return r(u,C?f(B(this)):B(this),f(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(S,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,r=n(7293),s=n(7854),l=n(1702),f=s.Uint8Array,a=f&&f.prototype||{},B=[].toString,E=l([].join);r(function(){B.call({})})&&(B=function(){return E(this)}),c("toString",B,a.toString!=B)},8255:function(S,I,n){n(9843)("Uint16",function(r){return function(l,f,a){return r(this,l,f,a)}})},9135:function(S,I,n){n(9843)("Uint32",function(r){return function(l,f,a){return r(this,l,f,a)}})},2472:function(S,I,n){n(9843)("Uint8",function(r){return function(l,f,a){return r(this,l,f,a)}})},9743:function(S,I,n){n(9843)("Uint8",function(r){return function(l,f,a){return r(this,l,f,a)}},!0)},8628:function(S,I,n){n(9170)},5743:function(S,I,n){n(5837)},7314:function(S,I,n){n(7922)},6290:function(S,I,n){n(4668)},7479:function(S,I,n){"use strict";var c=n(2109),r=n(8523),s=n(2534);c({target:"Promise",stat:!0},{try:function(l){var f=r.f(this),a=s(l);return(a.error?f.reject:f.resolve)(a.value),f.promise}})},3728:function(S,I,n){n(6373)},4747:function(S,I,n){var c=n(7854),r=n(8324),s=n(8509),l=n(8533),f=n(8880),a=function(E){if(E&&E.forEach!==l)try{f(E,"forEach",l)}catch(u){E.forEach=l}};for(var B in r)r[B]&&a(c[B]&&c[B].prototype);a(s)},3948:function(S,I,n){var c=n(7854),r=n(8324),s=n(8509),l=n(6992),f=n(8880),a=n(5112),B=a("iterator"),E=a("toStringTag"),u=l.values,C=function(h,g){if(h){if(h[B]!==u)try{f(h,B,u)}catch(Q){h[B]=u}if(h[E]||f(h,E,g),r[g])for(var w in l)if(h[w]!==l[w])try{f(h,w,l[w])}catch(Q){h[w]=l[w]}}};for(var e in r)C(c[e]&&c[e].prototype,e);C(s,"DOMTokenList")},3753:function(S,I,n){"use strict";var c=n(2109),r=n(6916);c({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},1150:function(S,I,n){var c=n(7633);n(3948),S.exports=c},251:function(S,I,n){var c=n(2215),r=n(2584),s=n(609),l=n(8420),f=n(2847),a=n(8923),B=Date.prototype.getTime;function E(h,g,w){var Q=w||{};return!!(Q.strict?s(h,g):h===g)||(!h||!g||"object"!=typeof h&&"object"!=typeof g?Q.strict?s(h,g):h==g:function e(h,g,w){var Q,m;if(typeof h!=typeof g||u(h)||u(g)||h.prototype!==g.prototype||r(h)!==r(g))return!1;var Y=l(h),y=l(g);if(Y!==y)return!1;if(Y||y)return h.source===g.source&&f(h)===f(g);if(a(h)&&a(g))return B.call(h)===B.call(g);var d=C(h),v=C(g);if(d!==v)return!1;if(d||v){if(h.length!==g.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=R[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(h[m=D[Q]],g[m],w))return!1;return!0}(h,g,Q))}function u(h){return null==h}function C(h){return!(!h||"object"!=typeof h||"number"!=typeof h.length||"function"!=typeof h.copy||"function"!=typeof h.slice||h.length>0&&"number"!=typeof h[0])}S.exports=E},4289:function(S,I,n){"use strict";var c=n(2215),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,l=Array.prototype.concat,f=Object.defineProperty,E=f&&function(){var e={};try{for(var h in f(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(g){return!1}}(),u=function(e,h,g,w){h in e&&(!function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}(w)||!w())||(E?f(e,h,{configurable:!0,enumerable:!1,value:g,writable:!0}):e[h]=g)},C=function(e,h){var g=arguments.length>2?arguments[2]:{},w=c(h);r&&(w=l.call(w,Object.getOwnPropertySymbols(h)));for(var Q=0;Q0&&b.length>N&&!b.warned){b.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+b.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=d,P.type=v,P.count=b.length,function r(d){console&&console.warn&&console.warn(d)}(P)}return d}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(d,v,D){var R={fired:!1,wrapFn:void 0,target:d,type:v,listener:D},N=u.bind(R);return N.listener=D,R.wrapFn=N,N}function e(d,v,D){var R=d._events;if(void 0===R)return[];var N=R[v];return void 0===N?[]:"function"==typeof N?D?[N.listener||N]:[N]:D?function Q(d){for(var v=new Array(d.length),D=0;D0&&(b=D[0]),b instanceof Error)throw b;var P=new Error("Unhandled error."+(b?" ("+b.message+")":""));throw P.context=b,P}var eA=F[v];if(void 0===eA)return!1;if("function"==typeof eA)n(eA,this,D);else{var sA=eA.length,q=g(eA,sA);for(R=0;R=0;b--)if(R[b]===D||R[b].listener===D){P=R[b].listener,F=b;break}if(F<0)return this;0===F?R.shift():function w(d,v){for(;v+1=0;N--)this.removeListener(v,D[N]);return this},l.prototype.listeners=function(v){return e(this,v,!0)},l.prototype.rawListeners=function(v){return e(this,v,!1)},l.listenerCount=function(d,v){return"function"==typeof d.listenerCount?d.listenerCount(v):h.call(d,v)},l.prototype.listenerCount=h,l.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}},2536:function(S,I,n){var c=n(4275),r=n(7672);void 0===r.pdfMake&&(r.pdfMake=c),S.exports=c},7672:function(S,I,n){"use strict";S.exports=function(){if("object"==typeof globalThis)return globalThis;var c;try{c=this||new Function("return this")()}catch(r){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return c}()},9804:function(S){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;S.exports=function(r,s,l){if("[object Function]"!==n.call(s))throw new TypeError("iterator must be a function");var f=r.length;if(f===+f)for(var a=0;a1&&"boolean"!=typeof sA)throw new l('"allowMissing" argument must be a boolean');var q=F(eA),BA=q.length>0?q[0]:"",MA=b("%"+BA+"%",sA),lA=MA.name,cA=MA.value,gA=!1,xA=MA.alias;xA&&(BA=xA[0],d(q,y([0,1],xA)));for(var FA=1,_=!0;FA=q.length){var SA=a(cA,pA);cA=(_=!!SA)&&"get"in SA&&!("originalValue"in SA.get)?SA.get:cA[pA]}else _=Y(cA,pA),cA=cA[pA];_&&!gA&&(g[lA]=cA)}}return cA}},1405:function(S,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,r=n(5419);S.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&r()}},5419:function(S){"use strict";S.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},c=Symbol("test"),r=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(c in n[c]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var l=Object.getOwnPropertySymbols(n);if(1!==l.length||l[0]!==c||!Object.prototype.propertyIsEnumerable.call(n,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(n,c);if(42!==f.value||!0!==f.enumerable)return!1}return!0}},6410:function(S,I,n){"use strict";var c=n(5419);S.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(S,I,n){"use strict";var c=n(8612);S.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(S,I,n){"use strict";var c=n(7103).Buffer;I._dbcs=u;for(var r=-1,l=-10,f=-1e3,a=new Array(256),E=0;E<256;E++)a[E]=r;function u(g,w){if(this.encodingName=g.encodingName,!g)throw new Error("DBCS codec is called without the data.");if(!g.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=g.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var m=0;mf)throw new Error("gb18030 decode tables conflict at byte 2");for(var R=this.decodeTables[f-v[D]],N=129;N<=254;N++){if(R[N]===r)R[N]=f-y;else{if(R[N]===f-y)continue;if(R[N]>f)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[f-R[N]],b=48;b<=57;b++)F[b]===r&&(F[b]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var P={};if(g.encodeSkipVals)for(m=0;mw)return-1;for(var Q=0,m=g.length;Q>1);g[Y]<=w?Q=Y:m=Y}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(g){for(var w=[];g>0;g>>>=8)w.push(255&g);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],m=w.length-1;m>0;m--){var Y=Q[w[m]];if(Y==r)Q[w[m]]=f-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(Y<=f))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+g.toString(16));Q=this.decodeTables[f-Y]}}return Q},u.prototype._addDecodeChunk=function(g){var w=parseInt(g[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var m=1;m255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+g[0]+": too long"+w)},u.prototype._getEncodeBucket=function(g){var w=g>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(g,w){var Q=this._getEncodeBucket(g),m=255&g;Q[m]<=l?this.encodeTableSeq[l-Q[m]][-1]=w:Q[m]==r&&(Q[m]=w)},u.prototype._setEncodeSequence=function(g,w){var y,Q=g[0],m=this._getEncodeBucket(Q),Y=255&Q;m[Y]<=l?y=this.encodeTableSeq[l-m[Y]]:(y={},m[Y]!==r&&(y[-1]=m[Y]),m[Y]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(y));for(var d=1;d=0)this._setEncodeChar(v,D),Y=!0;else if(v<=f){var R=f-v;y[R]||(this._fillEncodeTable(R,D<<8>>>0,Q)?Y=!0:y[R]=!0)}else v<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-v],D),Y=!0)}return Y},C.prototype.write=function(g){for(var w=c.alloc(g.length*(this.gb18030?4:3)),Q=this.leadSurrogate,m=this.seqObj,Y=-1,y=0,d=0;;){if(-1===Y){if(y==g.length)break;var v=g.charCodeAt(y++)}else v=Y,Y=-1;if(55296<=v&&v<57344)if(v<56320){if(-1===Q){Q=v;continue}Q=v,v=r}else-1!==Q?(v=65536+1024*(Q-55296)+(v-56320),Q=-1):v=r;else-1!==Q&&(Y=v,v=r,Q=-1);var D=r;if(void 0!==m&&v!=r){var R=m[v];if("object"==typeof R){m=R;continue}"number"==typeof R?D=R:null==R&&void 0!==(R=m[-1])&&(D=R,Y=v),m=void 0}else if(v>=0){var N=this.encodeTable[v>>8];if(void 0!==N&&(D=N[255&v]),D<=l){m=this.encodeTableSeq[l-D];continue}if(D==r&&this.gb18030){var F=h(this.gb18030.uChars,v);if(-1!=F){D=this.gb18030.gbChars[F]+(v-this.gb18030.uChars[F]),w[d++]=129+Math.floor(D/12600),D%=12600,w[d++]=48+Math.floor(D/1260),D%=1260,w[d++]=129+Math.floor(D/10),w[d++]=48+(D%=10);continue}}}D===r&&(D=this.defaultCharSingleByte),D<256?w[d++]=D:D<65536?(w[d++]=D>>8,w[d++]=255&D):D<16777216?(w[d++]=D>>16,w[d++]=D>>8&255,w[d++]=255&D):(w[d++]=D>>>24,w[d++]=D>>>16&255,w[d++]=D>>>8&255,w[d++]=255&D)}return this.seqObj=m,this.leadSurrogate=Q,w.slice(0,d)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var g=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?g[w++]=Q:(g[w++]=Q>>8,g[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(g[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),g.slice(0,w)}},C.prototype.findIdx=h,e.prototype.write=function(g){for(var w=c.alloc(2*g.length),Q=this.nodeIdx,m=this.prevBytes,Y=this.prevBytes.length,y=-this.prevBytes.length,v=0,D=0;v=0?g[v]:m[v+Y];if(!((d=this.decodeTables[Q][R])>=0))if(d===r)d=this.defaultCharUnicode.charCodeAt(0),v=y;else if(-2===d){if(v>=3)var N=12600*(g[v-3]-129)+1260*(g[v-2]-48)+10*(g[v-1]-129)+(R-48);else N=12600*(m[v-3+Y]-129)+1260*((v-2>=0?g[v-2]:m[v-2+Y])-48)+10*((v-1>=0?g[v-1]:m[v-1+Y])-129)+(R-48);var F=h(this.gb18030.gbChars,N);d=this.gb18030.uChars[F]+N-this.gb18030.gbChars[F]}else{if(d<=f){Q=f-d;continue}if(!(d<=l))throw new Error("iconv-lite internal error: invalid decoding table value "+d+" at "+Q+"/"+R);for(var b=this.decodeTableSeq[l-d],P=0;P>8;d=b[b.length-1]}if(d>=65536){var eA=55296|(d-=65536)>>10;w[D++]=255&eA,w[D++]=eA>>8,d=56320|1023&d}w[D++]=255&d,w[D++]=d>>8,Q=0,y=v+1}return this.nodeIdx=Q,this.prevBytes=y>=0?Array.prototype.slice.call(g,y):m.slice(y+Y).concat(Array.prototype.slice.call(g)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var g="";this.prevBytes.length>0;){g+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(g+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,g}},5990:function(S,I,n){"use strict";S.exports={shiftjis:{type:"_dbcs",table:function(){return n(7014)},encodeAdd:{"\xa5":92,"\u203e":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(5633)},encodeAdd:{"\xa5":92,"\u203e":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(3336)}},gbk:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))},gb18030:function(){return n(6258)},encodeSkipVals:[128],encodeAdd:{"\u20ac":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(7348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(4284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(4284).concat(n(3480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},6934:function(S,I,n){"use strict";for(var c=[n(1025),n(7688),n(1279),n(758),n(9068),n(3769),n(7018),n(688),n(5990)],r=0;r>>6),C[e++]=128+(63&g)):(C[e++]=224+(g>>>12),C[e++]=128+(g>>>6&63),C[e++]=128+(63&g))}return C.slice(0,e)},B.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,h=this.accBytes,g="",w=0;w0&&(g+=this.defaultCharUnicode,e=0),Q<128?g+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,h=1):Q<240?(C=15&Q,e=2,h=1):g+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,h++,0==--e&&(g+=2===h&&C<128&&C>0||3===h&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):g+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=h,g},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(S,I,n){"use strict";var c=n(7103).Buffer;function r(f,a){if(!f)throw new Error("SBCS codec is called without the data.");if(!f.chars||128!==f.chars.length&&256!==f.chars.length)throw new Error("Encoding '"+f.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===f.chars.length){for(var B="",E=0;E<128;E++)B+=String.fromCharCode(E);f.chars=B+f.chars}this.decodeBuf=c.from(f.chars,"ucs2");var u=c.alloc(65536,a.defaultCharSingleByte.charCodeAt(0));for(E=0;E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7\u2219\u221a\u2592\u2500\u2502\u253c\u2524\u252c\u251c\u2534\u2510\u250c\u2514\u2518\u03b2\u221e\u03c6\xb1\xbd\xbc\u2248\xab\xbb\ufef7\ufef8\ufffd\ufffd\ufefb\ufefc\ufffd\xa0\xad\ufe82\xa3\xa4\ufe84\ufffd\ufffd\ufe8e\ufe8f\ufe95\ufe99\u060c\ufe9d\ufea1\ufea5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufed1\u061b\ufeb1\ufeb5\ufeb9\u061f\xa2\ufe80\ufe81\ufe83\ufe85\ufeca\ufe8b\ufe8d\ufe91\ufe93\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec1\ufec5\ufecb\ufecf\xa6\xac\xf7\xd7\ufec9\u0640\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufeef\ufef3\ufebd\ufecc\ufece\ufecd\ufee1\ufe7d\u0651\ufee5\ufee9\ufeec\ufef0\ufef2\ufed0\ufed5\ufef5\ufef6\ufedd\ufed9\ufef1\u25a0\ufffd"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xa4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0386\ufffd\xb7\xac\xa6\u2018\u2019\u0388\u2015\u0389\u038a\u03aa\u038c\ufffd\ufffd\u038e\u03ab\xa9\u038f\xb2\xb3\u03ac\xa3\u03ad\u03ae\u03af\u03ca\u0390\u03cc\u03cd\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xbd\u0398\u0399\xab\xbb\u2591\u2592\u2593\u2502\u2524\u039a\u039b\u039c\u039d\u2563\u2551\u2557\u255d\u039e\u039f\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u03a0\u03a1\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b1\u03b2\u03b3\u2518\u250c\u2588\u2584\u03b4\u03b5\u2580\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c2\u03c4\u0384\xad\xb1\u03c5\u03c6\u03c7\xa7\u03c8\u0385\xb0\xa8\u03c9\u03cb\u03b0\u03ce\u25a0\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\u203e\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\u0160\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\u017d\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\u0161\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\u017e\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\ufe88\xd7\xf7\uf8f6\uf8f5\uf8f4\uf8f7\ufe71\x88\u25a0\u2502\u2500\u2510\u250c\u2514\u2518\ufe79\ufe7b\ufe7d\ufe7f\ufe77\ufe8a\ufef0\ufef3\ufef2\ufece\ufecf\ufed0\ufef6\ufef8\ufefa\ufefc\xa0\uf8fa\uf8f9\uf8f8\xa4\uf8fb\ufe8b\ufe91\ufe97\ufe9b\ufe9f\ufea3\u060c\xad\ufea7\ufeb3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufeb7\u061b\ufebb\ufebf\ufeca\u061f\ufecb\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\ufec7\u0639\u063a\ufecc\ufe82\ufe84\ufe8e\ufed3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\ufed7\ufedb\ufedf\uf8fc\ufef5\ufef7\ufef9\ufefb\ufee3\ufee7\ufeec\ufee9\ufffd"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\xad\u040e\u040f\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\xa7\u045e\u045f"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e81\u0e82\u0e84\u0e87\u0e88\u0eaa\u0e8a\u0e8d\u0e94\u0e95\u0e96\u0e97\u0e99\u0e9a\u0e9b\u0e9c\u0e9d\u0e9e\u0e9f\u0ea1\u0ea2\u0ea3\u0ea5\u0ea7\u0eab\u0ead\u0eae\ufffd\ufffd\ufffd\u0eaf\u0eb0\u0eb2\u0eb3\u0eb4\u0eb5\u0eb6\u0eb7\u0eb8\u0eb9\u0ebc\u0eb1\u0ebb\u0ebd\ufffd\ufffd\ufffd\u0ec0\u0ec1\u0ec2\u0ec3\u0ec4\u0ec8\u0ec9\u0eca\u0ecb\u0ecc\u0ecd\u0ec6\ufffd\u0edc\u0edd\u20ad\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0ed0\u0ed1\u0ed2\u0ed3\u0ed4\u0ed5\u0ed6\u0ed7\u0ed8\u0ed9\ufffd\ufffd\xa2\xac\xa6\ufffd"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e48\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\u0e49\u0e4a\u0e4b\u20ac\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20ac\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\u20ac\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u2126\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\ufffd\xa9\u2044\xa4\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\xa2\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\xad\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\u0387\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\ufffd"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u015e\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\u0103\u015f\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\u0162\u0163\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macthai:{type:"_sbcs",chars:"\xab\xbb\u2026\uf88c\uf88f\uf892\uf895\uf898\uf88b\uf88e\uf891\uf894\uf897\u201c\u201d\uf899\ufffd\u2022\uf884\uf889\uf885\uf886\uf887\uf888\uf88a\uf88d\uf890\uf893\uf896\u2018\u2019\ufffd\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufeff\u200b\u2013\u2014\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u2122\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\xae\xa9\ufffd\ufffd\ufffd\ufffd"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\ufffd\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255a\u255b\u255c\u255d\u255e\u255f\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256a\u256b\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u255d\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u045e\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u040e\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8t:{type:"_sbcs",chars:"\u049b\u0493\u201a\u0492\u201e\u2026\u2020\u2021\ufffd\u2030\u04b3\u2039\u04b2\u04b7\u04b6\ufffd\u049a\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\ufffd\u203a\ufffd\ufffd\ufffd\ufffd\ufffd\u04ef\u04ee\u0451\xa4\u04e3\xa6\xa7\ufffd\ufffd\ufffd\xab\xac\xad\xae\ufffd\xb0\xb1\xb2\u0401\ufffd\u04e2\xb6\xb7\ufffd\u2116\ufffd\xbb\ufffd\ufffd\ufffd\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\ufffd\u0587\u0589)(\xbb\xab\u2014.\u055d,-\u058a\u2026\u055c\u055b\u055e\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053a\u056a\u053b\u056b\u053c\u056c\u053d\u056d\u053e\u056e\u053f\u056f\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054a\u057a\u054b\u057b\u054c\u057c\u054d\u057d\u054e\u057e\u054f\u057f\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055a\ufffd"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u049a\u04ba\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\u0459\u203a\u045a\u049b\u04bb\u045f\xa0\u04b0\u04b1\u04d8\xa4\u04e8\xa6\xa7\u0401\xa9\u0492\xab\xac\xad\xae\u04ae\xb0\xb1\u0406\u0456\u04e9\xb5\xb6\xb7\u0451\u2116\u0493\xbb\u04d9\u04a2\u04a3\u04af\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},tcvn:{type:"_sbcs",chars:"\0\xda\u1ee4\x03\u1eea\u1eec\u1eee\x07\b\t\n\v\f\r\x0e\x0f\x10\u1ee8\u1ef0\u1ef2\u1ef6\u1ef8\xdd\u1ef4\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0\u1ea2\xc3\xc1\u1ea0\u1eb6\u1eac\xc8\u1eba\u1ebc\xc9\u1eb8\u1ec6\xcc\u1ec8\u0128\xcd\u1eca\xd2\u1ece\xd5\xd3\u1ecc\u1ed8\u1edc\u1ede\u1ee0\u1eda\u1ee2\xd9\u1ee6\u0168\xa0\u0102\xc2\xca\xd4\u01a0\u01af\u0110\u0103\xe2\xea\xf4\u01a1\u01b0\u0111\u1eb0\u0300\u0309\u0303\u0301\u0323\xe0\u1ea3\xe3\xe1\u1ea1\u1eb2\u1eb1\u1eb3\u1eb5\u1eaf\u1eb4\u1eae\u1ea6\u1ea8\u1eaa\u1ea4\u1ec0\u1eb7\u1ea7\u1ea9\u1eab\u1ea5\u1ead\xe8\u1ec2\u1ebb\u1ebd\xe9\u1eb9\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\xec\u1ec9\u1ec4\u1ebe\u1ed2\u0129\xed\u1ecb\xf2\u1ed4\u1ecf\xf5\xf3\u1ecd\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u1edd\u1edf\u1ee1\u1edb\u1ee3\xf9\u1ed6\u1ee7\u0169\xfa\u1ee5\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\xfd\u1ef5\u1ed0"},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10ef\u10f0\u10f1\u10f2\u10f3\u10f4\u10f5\u10f6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10f1\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10f2\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10f3\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10f4\u10ef\u10f0\u10f5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04ee\u0493\u201e\u2026\u04b6\u04ae\u04b2\u04af\u04a0\u04e2\u04a2\u049a\u04ba\u04b8\u0497\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u04b3\u04b7\u04a1\u04e3\u04a3\u049b\u04bb\u04b9\xa0\u040e\u045e\u0408\u04e8\u0498\u04b0\xa7\u0401\xa9\u04d8\xab\xac\u04ef\xae\u049c\xb0\u04b1\u0406\u0456\u0499\u04e9\xb6\xb7\u0451\u2116\u04d9\xbb\u0458\u04aa\u04ab\u049d\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},viscii:{type:"_sbcs",chars:"\0\x01\u1eb2\x03\x04\u1eb4\u1eaa\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\u1ef6\x15\x16\x17\x18\u1ef8\x1a\x1b\x1c\x1d\u1ef4\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u1ea0\u1eae\u1eb0\u1eb6\u1ea4\u1ea6\u1ea8\u1eac\u1ebc\u1eb8\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1ee2\u1eda\u1edc\u1ede\u1eca\u1ece\u1ecc\u1ec8\u1ee6\u0168\u1ee4\u1ef2\xd5\u1eaf\u1eb1\u1eb7\u1ea5\u1ea7\u1ea9\u1ead\u1ebd\u1eb9\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ed1\u1ed3\u1ed5\u1ed7\u1ee0\u01a0\u1ed9\u1edd\u1edf\u1ecb\u1ef0\u1ee8\u1eea\u1eec\u01a1\u1edb\u01af\xc0\xc1\xc2\xc3\u1ea2\u0102\u1eb3\u1eb5\xc8\xc9\xca\u1eba\xcc\xcd\u0128\u1ef3\u0110\u1ee9\xd2\xd3\xd4\u1ea1\u1ef7\u1eeb\u1eed\xd9\xda\u1ef9\u1ef5\xdd\u1ee1\u01b0\xe0\xe1\xe2\xe3\u1ea3\u0103\u1eef\u1eab\xe8\xe9\xea\u1ebb\xec\xed\u0129\u1ec9\u0111\u1ef1\xf2\xf3\xf4\xf5\u1ecf\u1ecd\u1ee5\xf9\xfa\u0169\u1ee7\xfd\u1ee3\u1eee"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4\u02cb\u02c6\xa8\u02dc\xd9\xdb\u20a4\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7\u0192\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5\u0160\u0161\xda\u0178\xff\xde\xfe\xb7\xb5\xb6\xbe\u2014\xbc\xbd\xaa\xba\xab\u25a0\xbb\xb1\ufffd"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},ascii:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},tis620:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"}}},3769:function(S){"use strict";S.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\u20ac\u25a0\xa0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2514\u2534\u252c\u251c\u2500\u253c\u2563\u2551\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xa7\u2557\u255d\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90\u0651\u0652\xf4\xa4\u0640\xfb\xf9\u0621\u0622\u0623\u0624\xa3\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0636\u0637\u0638\u0639\u063a\u0641\xb5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u2261\u064b\u064c\u064d\u064e\u064f\u0650\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},1279:function(S,I,n){"use strict";var c=n(7103).Buffer;function r(){}function s(){}function l(){this.overflowByte=-1}function f(u,C){this.iconv=C}function a(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function B(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function E(u,C){var e=[],h=0,g=0,w=0;A:for(var Q=0;Q=100)break A}return w>g?"utf-16be":w1114111)&&(h=g),h>=65536){var w=55296|(h-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,h=56320|1023&h}return C[e++]=255&h,C[e++]=h>>8,e}function a(C,e){this.iconv=e}function B(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function E(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var h=[],g=0,w=0,Q=0,m=0,Y=0;A:for(var y=0;y16)&&Q++,(0!==h[3]||h[2]>16)&&w++,0===h[0]&&0===h[1]&&(0!==h[2]||0!==h[3])&&Y++,(0!==h[0]||0!==h[1])&&0===h[2]&&0===h[3]&&m++,h.length=0,++g>=100)break A}return Y-Q>m-w?"utf-32be":Y-Q0){for(;e0&&(m=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",m},I.utf7imap=h,h.prototype.encoder=g,h.prototype.decoder=w,h.prototype.bomAware=!0,g.prototype.write=function(m){for(var Y=this.inBase64,y=this.base64Accum,d=this.base64AccumIdx,v=c.alloc(5*m.length+10),D=0,R=0;R0&&(D+=v.write(y.slice(0,d).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),d=0),v[D++]=C,Y=!1),Y||(v[D++]=N,N===e&&(v[D++]=C))):(Y||(v[D++]=e,Y=!0),Y&&(y[d++]=N>>8,y[d++]=255&N,d==y.length&&(D+=v.write(y.toString("base64").replace(/\//g,","),D),d=0)))}return this.inBase64=Y,this.base64AccumIdx=d,v.slice(0,D)},g.prototype.end=function(){var m=c.alloc(10),Y=0;return this.inBase64&&(this.base64AccumIdx>0&&(Y+=m.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),Y),this.base64AccumIdx=0),m[Y++]=C,this.inBase64=!1),m.slice(0,Y)};var Q=B.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(m){for(var Y="",y=0,d=this.inBase64,v=this.base64Accum,D=0;D0&&(m=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",m}},5395:function(S,I){"use strict";function c(s,l){this.encoder=s,this.addBOM=!0}function r(s,l){this.decoder=s,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(s){return this.addBOM&&(s="\ufeff"+s,this.addBOM=!1),this.encoder.write(s)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=r,r.prototype.write=function(s){var l=this.decoder.write(s);return this.pass||!l||("\ufeff"===l[0]&&(l=l.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),l},r.prototype.end=function(){return this.decoder.end()}},4914:function(S,I,n){"use strict";var l,c=n(7103).Buffer,r=n(5395),s=S.exports;s.encodings=null,s.defaultCharUnicode="\ufffd",s.defaultCharSingleByte="?",s.encode=function(a,B,E){a=""+(a||"");var u=s.getEncoder(B,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},s.decode=function(a,B,E){"string"==typeof a&&(s.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),s.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=s.getDecoder(B,E),C=u.write(a),e=u.end();return e?C+e:C},s.encodingExists=function(a){try{return s.getCodec(a),!0}catch(B){return!1}},s.toEncoding=s.encode,s.fromEncoding=s.decode,s._codecDataCache={},s.getCodec=function(a){s.encodings||(s.encodings=n(6934));for(var B=s._canonicalizeEncoding(a),E={};;){var u=s._codecDataCache[B];if(u)return u;var C=s.encodings[B];switch(typeof C){case"string":B=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=B),B=C.type;break;case"function":return E.encodingName||(E.encodingName=B),u=new C(E,s),s._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+B+"')")}}},s._canonicalizeEncoding=function(f){return(""+f).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},s.getEncoder=function(a,B){var E=s.getCodec(a),u=new E.encoder(B,E);return E.bomAware&&B&&B.addBOM&&(u=new r.PrependBOM(u,B)),u},s.getDecoder=function(a,B){var E=s.getCodec(a),u=new E.decoder(B,E);return E.bomAware&&!(B&&!1===B.stripBOM)&&(u=new r.StripBOM(u,B)),u},s.enableStreamingAPI=function(a){if(!s.supportsStreams){var B=n(8044)(a);s.IconvLiteEncoderStream=B.IconvLiteEncoderStream,s.IconvLiteDecoderStream=B.IconvLiteDecoderStream,s.encodeStream=function(u,C){return new s.IconvLiteEncoderStream(s.getEncoder(u,C),C)},s.decodeStream=function(u,C){return new s.IconvLiteDecoderStream(s.getDecoder(u,C),C)},s.supportsStreams=!0}};try{l=n(5832)}catch(f){}l&&l.Transform?s.enableStreamingAPI(l):s.encodeStream=s.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(S,I,n){"use strict";var c=n(7103).Buffer;S.exports=function(r){var s=r.Transform;function l(a,B){this.conv=a,(B=B||{}).decodeStrings=!1,s.call(this,B)}function f(a,B){this.conv=a,(B=B||{}).encoding=this.encoding="utf8",s.call(this,B)}return(l.prototype=Object.create(s.prototype,{constructor:{value:l}}))._transform=function(a,B,E){if("string"!=typeof a)return E(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u),E()}catch(C){E(C)}},l.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B),a()}catch(E){a(E)}},l.prototype.collect=function(a){var B=[];return this.on("error",a),this.on("data",function(E){B.push(E)}),this.on("end",function(){a(null,c.concat(B))}),this},(f.prototype=Object.create(s.prototype,{constructor:{value:f}}))._transform=function(a,B,E){if(!(c.isBuffer(a)||a instanceof Uint8Array))return E(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u,this.encoding),E()}catch(C){E(C)}},f.prototype._flush=function(a){try{var B=this.conv.end();B&&B.length&&this.push(B,this.encoding),a()}catch(E){a(E)}},f.prototype.collect=function(a){var B="";return this.on("error",a),this.on("data",function(E){B+=E}),this.on("end",function(){a(null,B)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:f}}},645:function(S,I){I.read=function(n,c,r,s,l){var f,a,B=8*l-s-1,E=(1<>1,C=-7,e=r?l-1:0,h=r?-1:1,g=n[c+e];for(e+=h,f=g&(1<<-C)-1,g>>=-C,C+=B;C>0;f=256*f+n[c+e],e+=h,C-=8);for(a=f&(1<<-C)-1,f>>=-C,C+=s;C>0;a=256*a+n[c+e],e+=h,C-=8);if(0===f)f=1-u;else{if(f===E)return a?NaN:1/0*(g?-1:1);a+=Math.pow(2,s),f-=u}return(g?-1:1)*a*Math.pow(2,f-s)},I.write=function(n,c,r,s,l,f){var a,B,E,u=8*f-l-1,C=(1<>1,h=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,g=s?0:f-1,w=s?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(B=isNaN(c)?1:0,a=C):(a=Math.floor(Math.log(c)/Math.LN2),c*(E=Math.pow(2,-a))<1&&(a--,E*=2),(c+=a+e>=1?h/E:h*Math.pow(2,1-e))*E>=2&&(a++,E/=2),a+e>=C?(B=0,a=C):a+e>=1?(B=(c*E-1)*Math.pow(2,l),a+=e):(B=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[r+g]=255&B,g+=w,B/=256,l-=8);for(a=a<0;n[r+g]=255&a,g+=w,a/=256,u-=8);n[r+g-w]|=128*Q}},5717:function(S){S.exports="function"==typeof Object.create?function(n,c){c&&(n.super_=c,n.prototype=Object.create(c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,c){if(c){n.super_=c;var r=function(){};r.prototype=c.prototype,n.prototype=new r,n.prototype.constructor=n}}},2584:function(S,I,n){"use strict";var c=n(6410)(),s=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===s(E)},f=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==s(E)&&"[object Function]"===s(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=f,S.exports=a?l:f},8923:function(S,I,n){"use strict";var c=Date.prototype.getDay,s=Object.prototype.toString,f=n(6410)();S.exports=function(B){return"object"==typeof B&&null!==B&&(f?function(B){try{return c.call(B),!0}catch(E){return!1}}(B):"[object Date]"===s.call(B))}},8662:function(S,I,n){"use strict";var B,c=Object.prototype.toString,r=Function.prototype.toString,s=/^\s*(?:function)?\*/,l=n(6410)(),f=Object.getPrototypeOf;S.exports=function(u){if("function"!=typeof u)return!1;if(s.test(r.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!f)return!1;if(void 0===B){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();B=!!e&&f(e)}return f(u)===B}},8611:function(S){"use strict";S.exports=function(n){return n!=n}},360:function(S,I,n){"use strict";var c=n(5559),r=n(4289),s=n(8611),l=n(9415),f=n(6743),a=c(l(),Number);r(a,{getPolyfill:l,implementation:s,shim:f}),S.exports=a},9415:function(S,I,n){"use strict";var c=n(8611);S.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(S,I,n){"use strict";var c=n(4289),r=n(9415);S.exports=function(){var l=r();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(S,I,n){"use strict";var s,l,f,a,c=n(1924),r=n(6410)();if(r){s=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),f={};var B=function(){throw f};a={toString:B,valueOf:B},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=B)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;S.exports=r?function(h){if(!h||"object"!=typeof h)return!1;var g=u(h,"lastIndex");if(!g||!s(g,"value"))return!1;try{l(h,a)}catch(Q){return Q===f}}:function(h){return!(!h||"object"!=typeof h&&"function"!=typeof h)&&"[object RegExp]"===E(h)}},5692:function(S,I,n){"use strict";var c=n(9804),r=n(3083),s=n(1924),l=s("Object.prototype.toString"),f=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,B=r(),E=s("Array.prototype.indexOf",!0)||function(Q,m){for(var Y=0;Y-1}return!!e&&function(Q){var m=!1;return c(C,function(Y,y){if(!m)try{m=Y.call(Q)===y}catch(d){}}),m}(Q)}},4244:function(S){"use strict";var I=function(n){return n!=n};S.exports=function(c,r){return 0===c&&0===r?1/c==1/r:!!(c===r||I(c)&&I(r))}},609:function(S,I,n){"use strict";var c=n(4289),r=n(5559),s=n(4244),l=n(5624),f=n(2281),a=r(l(),Object);c(a,{getPolyfill:l,implementation:s,shim:f}),S.exports=a},5624:function(S,I,n){"use strict";var c=n(4244);S.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(S,I,n){"use strict";var c=n(5624),r=n(4289);S.exports=function(){var l=c();return r(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(S,I,n){"use strict";var c;if(!Object.keys){var r=Object.prototype.hasOwnProperty,s=Object.prototype.toString,l=n(1414),f=Object.prototype.propertyIsEnumerable,a=!f.call({toString:null},"toString"),B=f.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(g){var w=g.constructor;return w&&w.prototype===g},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var g in window)try{if(!C["$"+g]&&r.call(window,g)&&null!==window[g]&&"object"==typeof window[g])try{u(window[g])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,m="[object Function]"===s.call(w),Y=l(w),y=Q&&"[object String]"===s.call(w),d=[];if(!Q&&!m&&!Y)throw new TypeError("Object.keys called on a non-object");var v=B&&m;if(y&&w.length>0&&!r.call(w,0))for(var D=0;D0)for(var R=0;R=0&&"[object Function]"===I.call(c.callee)),s}},4236:function(S,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c(l,f){return Object.prototype.hasOwnProperty.call(l,f)}I.assign=function(l){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var a=f.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var B in a)c(a,B)&&(l[B]=a[B])}}return l},I.shrinkBuf=function(l,f){return l.length===f?l:l.subarray?l.subarray(0,f):(l.length=f,l)};var r={arraySet:function(l,f,a,B,E){if(f.subarray&&l.subarray)l.set(f.subarray(a,a+B),E);else for(var u=0;u>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{f=f+(l=l+c[s++]|0)|0}while(--a);l%=65521,f%=65521}return l|f<<16|0}},1619:function(S){"use strict";S.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:function(S){"use strict";var n=function I(){for(var r,s=[],l=0;l<256;l++){r=l;for(var f=0;f<8;f++)r=1&r?3988292384^r>>>1:r>>>1;s[l]=r}return s}();S.exports=function c(r,s,l,f){var a=n,B=f+l;r^=-1;for(var E=f;E>>8^a[255&(r^s[E])];return-1^r}},405:function(S,I,n){"use strict";var Tt,c=n(4236),r=n(342),s=n(6069),l=n(2869),f=n(8898),g=-2,xA=258,FA=262,X=666;function nA(j,qA){return j.msg=f[qA],qA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var qA=j.length;--qA>=0;)j[qA]=0}function it(j){var qA=j.state,kA=qA.pending;kA>j.avail_out&&(kA=j.avail_out),0!==kA&&(c.arraySet(j.output,qA.pending_buf,qA.pending_out,kA,j.next_out),j.next_out+=kA,qA.pending_out+=kA,j.total_out+=kA,j.avail_out-=kA,qA.pending-=kA,0===qA.pending&&(qA.pending_out=0))}function st(j,qA){r._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,qA),j.block_start=j.strstart,it(j.strm)}function TA(j,qA){j.pending_buf[j.pending++]=qA}function at(j,qA){j.pending_buf[j.pending++]=qA>>>8&255,j.pending_buf[j.pending++]=255&qA}function It(j,qA,kA,yA){var KA=j.avail_in;return KA>yA&&(KA=yA),0===KA?0:(j.avail_in-=KA,c.arraySet(qA,j.input,j.next_in,KA,kA),1===j.state.wrap?j.adler=s(j.adler,qA,KA,kA):2===j.state.wrap&&(j.adler=l(j.adler,qA,KA,kA)),j.next_in+=KA,j.total_in+=KA,KA)}function mt(j,qA){var KA,lt,kA=j.max_chain_length,yA=j.strstart,zt=j.prev_length,xt=j.nice_match,Lt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Xt=j.window,Ge=j.w_mask,oe=j.prev,ne=j.strstart+xA,Fe=Xt[yA+zt-1],He=Xt[yA+zt];j.prev_length>=j.good_match&&(kA>>=2),xt>j.lookahead&&(xt=j.lookahead);do{if(Xt[(KA=qA)+zt]===He&&Xt[KA+zt-1]===Fe&&Xt[KA]===Xt[yA]&&Xt[++KA]===Xt[yA+1]){yA+=2,KA++;do{}while(Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&Xt[++yA]===Xt[++KA]&&yAzt){if(j.match_start=qA,zt=lt,lt>=xt)break;Fe=Xt[yA+zt-1],He=Xt[yA+zt]}}}while((qA=oe[qA&Ge])>Lt&&0!=--kA);return zt<=j.lookahead?zt:j.lookahead}function wt(j){var kA,yA,KA,lt,zt,qA=j.w_size;do{if(lt=j.window_size-j.lookahead-j.strstart,j.strstart>=qA+(qA-FA)){c.arraySet(j.window,j.window,qA,qA,0),j.match_start-=qA,j.strstart-=qA,j.block_start-=qA,kA=yA=j.hash_size;do{KA=j.head[--kA],j.head[kA]=KA>=qA?KA-qA:0}while(--yA);kA=yA=qA;do{KA=j.prev[--kA],j.prev[kA]=KA>=qA?KA-qA:0}while(--yA);lt+=qA}if(0===j.strm.avail_in)break;if(yA=It(j.strm,j.window,j.strstart+j.lookahead,lt),j.lookahead+=yA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[zt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(yA=r._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){j.match_length--;do{j.strstart++,j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<4096)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){KA=j.strstart+j.lookahead-3,yA=r._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;do{++j.strstart<=KA&&(j.ins_h=(j.ins_h<15&&(zt=2,yA-=16),KA<1||KA>9||8!==kA||yA<8||yA>15||qA<0||qA>9||lt<0||lt>4)return nA(j,g);8===yA&&(yA=9);var xt=new H;return j.state=xt,xt.strm=j,xt.wrap=zt,xt.gzhead=null,xt.w_bits=yA,xt.w_size=1<j.pending_buf_size-5&&(kA=j.pending_buf_size-5);;){if(j.lookahead<=1){if(wt(j),0===j.lookahead&&0===qA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var yA=j.block_start+kA;if((0===j.strstart||j.strstart>=yA)&&(j.lookahead=j.strstart-yA,j.strstart=yA,st(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&st(j,!1),1)}),new ht(4,4,8,4,VA),new ht(4,5,16,8,VA),new ht(4,6,32,32,VA),new ht(4,4,16,16,tt),new ht(8,16,32,32,tt),new ht(8,16,128,128,tt),new ht(8,32,128,256,tt),new ht(32,128,258,1024,tt),new ht(32,258,258,4096,tt)],I.deflateInit=function RA(j,qA){return CA(j,qA,8,15,8,0)},I.deflateInit2=CA,I.deflateReset=z,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,qA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=qA,0):g},I.deflate=function iA(j,qA){var kA,yA,KA,lt;if(!j||!j.state||qA>5||qA<0)return j?nA(j,g):g;if(yA=j.state,!j.output||!j.input&&0!==j.avail_in||yA.status===X&&4!==qA)return nA(j,0===j.avail_out?-5:g);if(yA.strm=j,kA=yA.last_flush,yA.last_flush=qA,42===yA.status)if(2===yA.wrap)j.adler=0,TA(yA,31),TA(yA,139),TA(yA,8),yA.gzhead?(TA(yA,(yA.gzhead.text?1:0)+(yA.gzhead.hcrc?2:0)+(yA.gzhead.extra?4:0)+(yA.gzhead.name?8:0)+(yA.gzhead.comment?16:0)),TA(yA,255&yA.gzhead.time),TA(yA,yA.gzhead.time>>8&255),TA(yA,yA.gzhead.time>>16&255),TA(yA,yA.gzhead.time>>24&255),TA(yA,9===yA.level?2:yA.strategy>=2||yA.level<2?4:0),TA(yA,255&yA.gzhead.os),yA.gzhead.extra&&yA.gzhead.extra.length&&(TA(yA,255&yA.gzhead.extra.length),TA(yA,yA.gzhead.extra.length>>8&255)),yA.gzhead.hcrc&&(j.adler=l(j.adler,yA.pending_buf,yA.pending,0)),yA.gzindex=0,yA.status=69):(TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,0),TA(yA,9===yA.level?2:yA.strategy>=2||yA.level<2?4:0),TA(yA,3),yA.status=113);else{var zt=8+(yA.w_bits-8<<4)<<8;zt|=(yA.strategy>=2||yA.level<2?0:yA.level<6?1:6===yA.level?2:3)<<6,0!==yA.strstart&&(zt|=32),zt+=31-zt%31,yA.status=113,at(yA,zt),0!==yA.strstart&&(at(yA,j.adler>>>16),at(yA,65535&j.adler)),j.adler=1}if(69===yA.status)if(yA.gzhead.extra){for(KA=yA.pending;yA.gzindex<(65535&yA.gzhead.extra.length)&&(yA.pending!==yA.pending_buf_size||(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),it(j),KA=yA.pending,yA.pending!==yA.pending_buf_size));)TA(yA,255&yA.gzhead.extra[yA.gzindex]),yA.gzindex++;yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),yA.gzindex===yA.gzhead.extra.length&&(yA.gzindex=0,yA.status=73)}else yA.status=73;if(73===yA.status)if(yA.gzhead.name){KA=yA.pending;do{if(yA.pending===yA.pending_buf_size&&(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),it(j),KA=yA.pending,yA.pending===yA.pending_buf_size)){lt=1;break}lt=yA.gzindexKA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),0===lt&&(yA.gzindex=0,yA.status=91)}else yA.status=91;if(91===yA.status)if(yA.gzhead.comment){KA=yA.pending;do{if(yA.pending===yA.pending_buf_size&&(yA.gzhead.hcrc&&yA.pending>KA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),it(j),KA=yA.pending,yA.pending===yA.pending_buf_size)){lt=1;break}lt=yA.gzindexKA&&(j.adler=l(j.adler,yA.pending_buf,yA.pending-KA,KA)),0===lt&&(yA.status=103)}else yA.status=103;if(103===yA.status&&(yA.gzhead.hcrc?(yA.pending+2>yA.pending_buf_size&&it(j),yA.pending+2<=yA.pending_buf_size&&(TA(yA,255&j.adler),TA(yA,j.adler>>8&255),j.adler=0,yA.status=113)):yA.status=113),0!==yA.pending){if(it(j),0===j.avail_out)return yA.last_flush=-1,0}else if(0===j.avail_in&&EA(qA)<=EA(kA)&&4!==qA)return nA(j,-5);if(yA.status===X&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==yA.lookahead||0!==qA&&yA.status!==X){var Lt=2===yA.strategy?function dt(j,qA){for(var kA;;){if(0===j.lookahead&&(wt(j),0===j.lookahead)){if(0===qA)return 1;break}if(j.match_length=0,kA=r._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,kA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(yA,qA):3===yA.strategy?function mA(j,qA){for(var kA,yA,KA,lt,zt=j.window;;){if(j.lookahead<=xA){if(wt(j),j.lookahead<=xA&&0===qA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(yA=zt[KA=j.strstart-1])===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]){lt=j.strstart+xA;do{}while(yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&yA===zt[++KA]&&KAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(kA=r._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(kA=r._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),kA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===qA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(yA,qA):Tt[yA.level].func(yA,qA);if((3===Lt||4===Lt)&&(yA.status=X),1===Lt||3===Lt)return 0===j.avail_out&&(yA.last_flush=-1),0;if(2===Lt&&(1===qA?r._tr_align(yA):5!==qA&&(r._tr_stored_block(yA,0,0,!1),3===qA&&(GA(yA.head),0===yA.lookahead&&(yA.strstart=0,yA.block_start=0,yA.insert=0))),it(j),0===j.avail_out))return yA.last_flush=-1,0}return 4!==qA?0:yA.wrap<=0?1:(2===yA.wrap?(TA(yA,255&j.adler),TA(yA,j.adler>>8&255),TA(yA,j.adler>>16&255),TA(yA,j.adler>>24&255),TA(yA,255&j.total_in),TA(yA,j.total_in>>8&255),TA(yA,j.total_in>>16&255),TA(yA,j.total_in>>24&255)):(at(yA,j.adler>>>16),at(yA,65535&j.adler)),it(j),yA.wrap>0&&(yA.wrap=-yA.wrap),0!==yA.pending?0:1)},I.deflateEnd=function gt(j){var qA;return j&&j.state?42!==(qA=j.state.status)&&69!==qA&&73!==qA&&91!==qA&&103!==qA&&113!==qA&&qA!==X?nA(j,g):(j.state=null,113===qA?nA(j,-3):0):g},I.deflateSetDictionary=function Yt(j,qA){var yA,KA,lt,zt,xt,Lt,Xt,Ge,kA=qA.length;if(!j||!j.state||2===(zt=(yA=j.state).wrap)||1===zt&&42!==yA.status||yA.lookahead)return g;for(1===zt&&(j.adler=s(j.adler,qA,kA,0)),yA.wrap=0,kA>=yA.w_size&&(0===zt&&(GA(yA.head),yA.strstart=0,yA.block_start=0,yA.insert=0),Ge=new c.Buf8(yA.w_size),c.arraySet(Ge,qA,kA-yA.w_size,yA.w_size,0),qA=Ge,kA=yA.w_size),xt=j.avail_in,Lt=j.next_in,Xt=j.input,j.avail_in=kA,j.next_in=0,j.input=qA,wt(yA);yA.lookahead>=3;){KA=yA.strstart,lt=yA.lookahead-2;do{yA.ins_h=(yA.ins_h<>>=R=D>>>24,m-=R,0==(R=D>>>16&255))sA[B++]=65535&D;else{if(!(16&R)){if(0==(64&R)){D=Y[(65535&D)+(Q&(1<>>=R,m-=R),m<15&&(Q+=eA[f++]<>>=R=D>>>24,m-=R,!(16&(R=D>>>16&255))){if(0==(64&R)){D=y[(65535&D)+(Q&(1<C){r.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=R,m-=R,F>(R=B-E)){if((R=F-R)>h&&l.sane){r.msg="invalid distance too far back",l.mode=30;break A}if(b=0,P=w,0===g){if(b+=e-R,R2;)sA[B++]=P[b++],sA[B++]=P[b++],sA[B++]=P[b++],N-=3;N&&(sA[B++]=P[b++],N>1&&(sA[B++]=P[b++]))}else{b=B-F;do{sA[B++]=sA[b++],sA[B++]=sA[b++],sA[B++]=sA[b++],N-=3}while(N>2);N&&(sA[B++]=sA[b++],N>1&&(sA[B++]=sA[b++]))}break}}break}}while(f>3)<<3))-1,r.next_in=f-=N,r.next_out=B,r.avail_in=f>>24&255)+(CA>>>8&65280)+((65280&CA)<<8)+((255&CA)<<24)}function It(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mt(CA){var RA;return CA&&CA.state?(CA.total_in=CA.total_out=(RA=CA.state).total=0,CA.msg="",RA.wrap&&(CA.adler=1&RA.wrap),RA.mode=1,RA.last=0,RA.havedict=0,RA.dmax=32768,RA.head=null,RA.hold=0,RA.bits=0,RA.lencode=RA.lendyn=new c.Buf32(852),RA.distcode=RA.distdyn=new c.Buf32(592),RA.sane=1,RA.back=-1,0):Q}function wt(CA){var RA;return CA&&CA.state?((RA=CA.state).wsize=0,RA.whave=0,RA.wnext=0,mt(CA)):Q}function OA(CA,RA){var iA,gt;return!CA||!CA.state||(gt=CA.state,RA<0?(iA=0,RA=-RA):(iA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==gt.window&>.wbits!==RA&&(gt.window=null),gt.wrap=iA,gt.wbits=RA,wt(CA))}function VA(CA,RA){var iA,gt;return CA?(gt=new It,CA.state=gt,gt.window=null,0!==(iA=OA(CA,RA))&&(CA.state=null),iA):Q}var dt,ht,mA=!0;function Tt(CA){if(mA){var RA;for(dt=new c.Buf32(512),ht=new c.Buf32(32),RA=0;RA<144;)CA.lens[RA++]=8;for(;RA<256;)CA.lens[RA++]=9;for(;RA<280;)CA.lens[RA++]=7;for(;RA<288;)CA.lens[RA++]=8;for(f(1,CA.lens,0,288,dt,0,CA.work,{bits:9}),RA=0;RA<32;)CA.lens[RA++]=5;f(2,CA.lens,0,32,ht,0,CA.work,{bits:5}),mA=!1}CA.lencode=dt,CA.lenbits=9,CA.distcode=ht,CA.distbits=5}function HA(CA,RA,iA,gt){var Yt,j=CA.state;return null===j.window&&(j.wsize=1<=j.wsize?(c.arraySet(j.window,RA,iA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Yt=j.wsize-j.wnext)>gt&&(Yt=gt),c.arraySet(j.window,RA,iA-gt,Yt,j.wnext),(gt-=Yt)?(c.arraySet(j.window,RA,iA-gt,gt,0),j.wnext=gt,j.whave=j.wsize):(j.wnext+=Yt,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,iA.check=s(iA.check,Ne,2,0),KA=0,lt=0,iA.mode=2;break}if(iA.flags=0,iA.head&&(iA.head.done=!1),!(1&iA.wrap)||(((255&KA)<<8)+(KA>>8))%31){CA.msg="incorrect header check",iA.mode=30;break}if(8!=(15&KA)){CA.msg="unknown compression method",iA.mode=30;break}if(lt-=4,ae=8+(15&(KA>>>=4)),0===iA.wbits)iA.wbits=ae;else if(ae>iA.wbits){CA.msg="invalid window size",iA.mode=30;break}iA.dmax=1<>8&1),512&iA.flags&&(Ne[0]=255&KA,Ne[1]=KA>>>8&255,iA.check=s(iA.check,Ne,2,0)),KA=0,lt=0,iA.mode=3;case 3:for(;lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>8&255,Ne[2]=KA>>>16&255,Ne[3]=KA>>>24&255,iA.check=s(iA.check,Ne,4,0)),KA=0,lt=0,iA.mode=4;case 4:for(;lt<16;){if(0===kA)break A;kA--,KA+=gt[j++]<>8),512&iA.flags&&(Ne[0]=255&KA,Ne[1]=KA>>>8&255,iA.check=s(iA.check,Ne,2,0)),KA=0,lt=0,iA.mode=5;case 5:if(1024&iA.flags){for(;lt<16;){if(0===kA)break A;kA--,KA+=gt[j++]<>>8&255,iA.check=s(iA.check,Ne,2,0)),KA=0,lt=0}else iA.head&&(iA.head.extra=null);iA.mode=6;case 6:if(1024&iA.flags&&((Lt=iA.length)>kA&&(Lt=kA),Lt&&(iA.head&&(ae=iA.head.extra_len-iA.length,iA.head.extra||(iA.head.extra=new Array(iA.head.extra_len)),c.arraySet(iA.head.extra,gt,j,Lt,ae)),512&iA.flags&&(iA.check=s(iA.check,gt,Lt,j)),kA-=Lt,j+=Lt,iA.length-=Lt),iA.length))break A;iA.length=0,iA.mode=7;case 7:if(2048&iA.flags){if(0===kA)break A;Lt=0;do{ae=gt[j+Lt++],iA.head&&ae&&iA.length<65536&&(iA.head.name+=String.fromCharCode(ae))}while(ae&&Lt>9&1,iA.head.done=!0),CA.adler=iA.check=0,iA.mode=12;break;case 10:for(;lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=7<,lt-=7<,iA.mode=27;break}for(;lt<3;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=1)){case 0:iA.mode=14;break;case 1:if(Tt(iA),iA.mode=20,6===RA){KA>>>=2,lt-=2;break A}break;case 2:iA.mode=17;break;case 3:CA.msg="invalid block type",iA.mode=30}KA>>>=2,lt-=2;break;case 14:for(KA>>>=7<,lt-=7<lt<32;){if(0===kA)break A;kA--,KA+=gt[j++]<>>16^65535)){CA.msg="invalid stored block lengths",iA.mode=30;break}if(iA.length=65535&KA,KA=0,lt=0,iA.mode=15,6===RA)break A;case 15:iA.mode=16;case 16:if(Lt=iA.length){if(Lt>kA&&(Lt=kA),Lt>yA&&(Lt=yA),0===Lt)break A;c.arraySet(Yt,gt,j,Lt,qA),kA-=Lt,j+=Lt,yA-=Lt,qA+=Lt,iA.length-=Lt;break}iA.mode=12;break;case 17:for(;lt<14;){if(0===kA)break A;kA--,KA+=gt[j++]<>>=5)),lt-=5,iA.ncode=4+(15&(KA>>>=5)),KA>>>=4,lt-=4,iA.nlen>286||iA.ndist>30){CA.msg="too many length or distance symbols",iA.mode=30;break}iA.have=0,iA.mode=18;case 18:for(;iA.have>>=3,lt-=3}for(;iA.have<19;)iA.lens[Hn[iA.have++]]=0;if(iA.lencode=iA.lendyn,iA.lenbits=7,an=f(0,iA.lens,0,19,iA.lencode,0,iA.work,on={bits:iA.lenbits}),iA.lenbits=on.bits,an){CA.msg="invalid code lengths set",iA.mode=30;break}iA.have=0,iA.mode=19;case 19:for(;iA.have>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=ne,lt-=ne,iA.lens[iA.have++]=He;else{if(16===He){for(An=ne+2;lt>>=ne,lt-=ne,0===iA.have){CA.msg="invalid bit length repeat",iA.mode=30;break}ae=iA.lens[iA.have-1],Lt=3+(3&KA),KA>>>=2,lt-=2}else if(17===He){for(An=ne+3;lt>>=ne)),KA>>>=3,lt-=3}else{for(An=ne+7;lt>>=ne)),KA>>>=7,lt-=7}if(iA.have+Lt>iA.nlen+iA.ndist){CA.msg="invalid bit length repeat",iA.mode=30;break}for(;Lt--;)iA.lens[iA.have++]=ae}}if(30===iA.mode)break;if(0===iA.lens[256]){CA.msg="invalid code -- missing end-of-block",iA.mode=30;break}if(iA.lenbits=9,an=f(1,iA.lens,0,iA.nlen,iA.lencode,0,iA.work,on={bits:iA.lenbits}),iA.lenbits=on.bits,an){CA.msg="invalid literal/lengths set",iA.mode=30;break}if(iA.distbits=6,iA.distcode=iA.distdyn,an=f(2,iA.lens,iA.nlen,iA.ndist,iA.distcode,0,iA.work,on={bits:iA.distbits}),iA.distbits=on.bits,an){CA.msg="invalid distances set",iA.mode=30;break}if(iA.mode=20,6===RA)break A;case 20:iA.mode=21;case 21:if(kA>=6&&yA>=258){CA.next_out=qA,CA.avail_out=yA,CA.next_in=j,CA.avail_in=kA,iA.hold=KA,iA.bits=lt,l(CA,xt),qA=CA.next_out,Yt=CA.output,yA=CA.avail_out,j=CA.next_in,gt=CA.input,kA=CA.avail_in,KA=iA.hold,lt=iA.bits,12===iA.mode&&(iA.back=-1);break}for(iA.back=0;Fe=(oe=iA.lencode[KA&(1<>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>ze)])>>>16&255,He=65535&oe,!(ze+(ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=ze,lt-=ze,iA.back+=ze}if(KA>>>=ne,lt-=ne,iA.back+=ne,iA.length=He,0===Fe){iA.mode=26;break}if(32&Fe){iA.back=-1,iA.mode=12;break}if(64&Fe){CA.msg="invalid literal/length code",iA.mode=30;break}iA.extra=15&Fe,iA.mode=22;case 22:if(iA.extra){for(An=iA.extra;lt>>=iA.extra,lt-=iA.extra,iA.back+=iA.extra}iA.was=iA.length,iA.mode=23;case 23:for(;Fe=(oe=iA.distcode[KA&(1<>>16&255,He=65535&oe,!((ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>ze)])>>>16&255,He=65535&oe,!(ze+(ne=oe>>>24)<=lt);){if(0===kA)break A;kA--,KA+=gt[j++]<>>=ze,lt-=ze,iA.back+=ze}if(KA>>>=ne,lt-=ne,iA.back+=ne,64&Fe){CA.msg="invalid distance code",iA.mode=30;break}iA.offset=He,iA.extra=15&Fe,iA.mode=24;case 24:if(iA.extra){for(An=iA.extra;lt>>=iA.extra,lt-=iA.extra,iA.back+=iA.extra}if(iA.offset>iA.dmax){CA.msg="invalid distance too far back",iA.mode=30;break}iA.mode=25;case 25:if(0===yA)break A;if(iA.offset>(Lt=xt-yA)){if((Lt=iA.offset-Lt)>iA.whave&&iA.sane){CA.msg="invalid distance too far back",iA.mode=30;break}Xt=Lt>iA.wnext?iA.wsize-(Lt-=iA.wnext):iA.wnext-Lt,Lt>iA.length&&(Lt=iA.length),Ge=iA.window}else Ge=Yt,Xt=qA-iA.offset,Lt=iA.length;Lt>yA&&(Lt=yA),yA-=Lt,iA.length-=Lt;do{Yt[qA++]=Ge[Xt++]}while(--Lt);0===iA.length&&(iA.mode=21);break;case 26:if(0===yA)break A;Yt[qA++]=iA.length,yA--,iA.mode=21;break;case 27:if(iA.wrap){for(;lt<32;){if(0===kA)break A;kA--,KA|=gt[j++]<=1&&0===dA[b];b--);if(P>b&&(P=b),0===b)return Y[y++]=20971520,Y[y++]=20971520,v.bits=1,0;for(F=1;F0&&(0===g||1!==b))return-1;for(SA[1]=0,R=1;R852||2===g&&BA>592)return 1;for(;;){X=R-sA,d[N]uA?(O=zA[XA+d[N]],$=_[pA+d[N]]):(O=96,$=0),lA=1<>sA)+(cA-=lA)]=X<<24|O<<16|$|0}while(0!==cA);for(lA=1<>=1;if(0!==lA?(MA&=lA-1,MA+=lA):MA=0,N++,0==--dA[R]){if(R===b)break;R=w[Q+d[N]]}if(R>P&&(MA&xA)!==gA){for(0===sA&&(sA=P),FA+=F,q=1<<(eA=R-sA);eA+sA852||2===g&&BA>592)return 1;Y[gA=MA&xA]=P<<24|eA<<16|FA-y|0}}return 0!==MA&&(Y[FA+MA]=4194304|R-sA<<24),v.bits=P,0}},8898:function(S){"use strict";S.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:function(S,I,n){"use strict";var c=n(4236);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var g=256,w=286,Q=30,y=15,b=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],eA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BA=new Array(576);a(BA);var MA=new Array(60);a(MA);var lA=new Array(512);a(lA);var cA=new Array(256);a(cA);var gA=new Array(29);a(gA);var _,pA,uA,xA=new Array(Q);function FA(H,k,z,QA,CA){this.static_tree=H,this.extra_bits=k,this.extra_base=z,this.elems=QA,this.max_length=CA,this.has_stree=H&&H.length}function dA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function SA(H){return H<256?lA[H]:lA[256+(H>>>7)]}function zA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function XA(H,k,z){H.bi_valid>16-z?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=z-16):(H.bi_buf|=k<>>=1,z<<=1}while(--k>0);return z>>>1}function hA(H,k,z){var RA,iA,QA=new Array(16),CA=0;for(RA=1;RA<=y;RA++)QA[RA]=CA=CA+z[RA-1]<<1;for(iA=0;iA<=k;iA++){var gt=H[2*iA+1];0!==gt&&(H[2*iA]=O(QA[gt]++,gt))}}function nA(H){var k;for(k=0;k8?zA(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function it(H,k,z,QA){var CA=2*k,RA=2*z;return H[CA]>1;iA>=1;iA--)st(H,z,iA);j=RA;do{iA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],st(H,z,1),gt=H.heap[1],H.heap[--H.heap_max]=iA,H.heap[--H.heap_max]=gt,z[2*j]=z[2*iA]+z[2*gt],H.depth[j]=(H.depth[iA]>=H.depth[gt]?H.depth[iA]:H.depth[gt])+1,z[2*iA+1]=z[2*gt+1]=j,H.heap[1]=j++,st(H,z,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function W(H,k){var j,qA,kA,yA,KA,lt,z=k.dyn_tree,QA=k.max_code,CA=k.stat_desc.static_tree,RA=k.stat_desc.has_stree,iA=k.stat_desc.extra_bits,gt=k.stat_desc.extra_base,Yt=k.stat_desc.max_length,zt=0;for(yA=0;yA<=y;yA++)H.bl_count[yA]=0;for(z[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(yA=z[2*z[2*(qA=H.heap[j])+1]+1]+1)>Yt&&(yA=Yt,zt++),z[2*qA+1]=yA,!(qA>QA)&&(H.bl_count[yA]++,KA=0,qA>=gt&&(KA=iA[qA-gt]),H.opt_len+=(lt=z[2*qA])*(yA+KA),RA&&(H.static_len+=lt*(CA[2*qA+1]+KA)));if(0!==zt){do{for(yA=Yt-1;0===H.bl_count[yA];)yA--;H.bl_count[yA]--,H.bl_count[yA+1]+=2,H.bl_count[Yt]--,zt-=2}while(zt>0);for(yA=Yt;0!==yA;yA--)for(qA=H.bl_count[yA];0!==qA;)!((kA=H.heap[--j])>QA)&&(z[2*kA+1]!==yA&&(H.opt_len+=(yA-z[2*kA+1])*z[2*kA],z[2*kA+1]=yA),qA--)}}(H,k),hA(z,Yt,H.bl_count)}function It(H,k,z){var QA,RA,CA=-1,iA=k[1],gt=0,Yt=7,j=4;for(0===iA&&(Yt=138,j=3),k[2*(z+1)+1]=65535,QA=0;QA<=z;QA++)RA=iA,iA=k[2*(QA+1)+1],!(++gt>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function VA(H){var z,k=4093624447;for(z=0;z<=31;z++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*z])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(z=32;z=3&&0===H.bl_tree[2*sA[k]+1];k--);return H.opt_len+=3*(k+1)+5+5+4,k}(H),(RA=H.static_len+3+7>>>3)<=(CA=H.opt_len+3+7>>>3)&&(CA=RA)):CA=RA=z+5,z+4<=CA&&-1!==k?dt(H,k,z,QA):4===H.strategy||RA===CA?(XA(H,2+(QA?1:0),3),TA(H,BA,MA)):(XA(H,4+(QA?1:0),3),function OA(H,k,z,QA){var CA;for(XA(H,k-257,5),XA(H,z-1,5),XA(H,QA-4,4),CA=0;CA>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&k,H.pending_buf[H.l_buf+H.last_lit]=255&z,H.last_lit++,0===k?H.dyn_ltree[2*z]++:(H.matches++,k--,H.dyn_ltree[2*(cA[z]+g+1)]++,H.dyn_dtree[2*SA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function ht(H){XA(H,2,3),X(H,256,BA),function $(H){16===H.bi_valid?(zA(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(H)}},2292:function(S){"use strict";S.exports=function I(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4155:function(S){var n,c,I=S.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(w){if(n===setTimeout)return setTimeout(w,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(m){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(w){n=r}try{c="function"==typeof clearTimeout?clearTimeout:s}catch(w){c=s}}();var E,a=[],B=!1,u=-1;function C(){!B||!E||(B=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!B){var w=l(C);B=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var m=1;m=0;--xA){var FA=this.tryEntries[xA],_=FA.completion;if("root"===FA.tryLoc)return gA("end");if(FA.tryLoc<=this.prev){var pA=r.call(FA,"catchLoc"),uA=r.call(FA,"finallyLoc");if(pA&&uA){if(this.prev=0;--gA){var xA=this.tryEntries[gA];if(xA.tryLoc<=this.prev&&r.call(xA,"finallyLoc")&&this.prev=0;--cA){var gA=this.tryEntries[cA];if(gA.finallyLoc===lA)return this.complete(gA.completion,gA.afterLoc),sA(gA),Q}},catch:function(lA){for(var cA=this.tryEntries.length-1;cA>=0;--cA){var gA=this.tryEntries[cA];if(gA.tryLoc===lA){var xA=gA.completion;if("throw"===xA.type){var FA=xA.arg;sA(gA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(lA,cA,gA){return this.delegate={iterator:BA(lA),resultName:cA,nextLoc:gA},"next"===this.method&&(this.arg=s),Q}},n}(S.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(S){"use strict";var I=Object,n=TypeError;S.exports=function(){if(null!=this&&this!==I(this))throw new n("RegExp.prototype.flags getter called on non-object");var r="";return this.hasIndices&&(r+="d"),this.global&&(r+="g"),this.ignoreCase&&(r+="i"),this.multiline&&(r+="m"),this.dotAll&&(r+="s"),this.unicode&&(r+="u"),this.sticky&&(r+="y"),r}},2847:function(S,I,n){"use strict";var c=n(4289),r=n(5559),s=n(3697),l=n(1721),f=n(2753),a=r(l());c(a,{getPolyfill:l,implementation:s,shim:f}),S.exports=a},1721:function(S,I,n){"use strict";var c=n(3697),r=n(4289).supportsDescriptors,s=Object.getOwnPropertyDescriptor;S.exports=function(){if(r&&"gim"===/a/gim.flags){var f=s(RegExp.prototype,"flags");if(f&&"function"==typeof f.get&&"boolean"==typeof/a/.dotAll)return f.get}return c}},2753:function(S,I,n){"use strict";var c=n(4289).supportsDescriptors,r=n(1721),s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,f=TypeError,a=Object.getPrototypeOf,B=/a/;S.exports=function(){if(!c||!a)throw new f("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=r(),C=a(B),e=s(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(S,I,n){var c=n(8823).Buffer;!function(r){r.parser=function(X,O){return new l(X,O)},r.SAXParser=l,r.SAXStream=e,r.createStream=function C(X,O){return new e(X,O)},r.MAX_BUFFER_LENGTH=65536;var E,s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(X,O){if(!(this instanceof l))return new l(X,O);var $=this;(function a(X){for(var O=0,$=s.length;O<$;O++)X[s[O]]=""})($),$.q=$.c="",$.bufferCheckPosition=r.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!X,$.noscript=!(!X&&!$.opt.noscript),$.state=P.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?r.XML_ENTITIES:r.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(m)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),sA($,"onready")}r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(X){function O(){}return O.prototype=X,new O}),Object.keys||(Object.keys=function(X){var O=[];for(var $ in X)X.hasOwnProperty($)&&O.push($);return O}),l.prototype={end:function(){cA(this)},write:function XA(X){var O=this;if(this.error)throw this.error;if(O.closed)return lA(O,"Cannot write after close. Assign an onready handler.");if(null===X)return cA(O);"object"==typeof X&&(X=X.toString());for(var $=0,W="";W=zA(X,$++),O.c=W,W;)switch(O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++),O.state){case P.BEGIN:if(O.state=P.BEGIN_WHITESPACE,"\ufeff"===W)continue;SA(O,W);continue;case P.BEGIN_WHITESPACE:SA(O,W);continue;case P.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;W&&"<"!==W&&"&"!==W;)(W=zA(X,$++))&&O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++);O.textNode+=X.substring(hA,$-1)}"<"!==W||O.sawRoot&&O.closedRoot&&!O.strict?(!D(W)&&(!O.sawRoot||O.closedRoot)&&gA(O,"Text data outside of root node."),"&"===W?O.state=P.TEXT_ENTITY:O.textNode+=W):(O.state=P.OPEN_WAKA,O.startTagPosition=O.position);continue;case P.SCRIPT:"<"===W?O.state=P.SCRIPT_ENDING:O.script+=W;continue;case P.SCRIPT_ENDING:"/"===W?O.state=P.CLOSE_TAG:(O.script+="<"+W,O.state=P.SCRIPT);continue;case P.OPEN_WAKA:"!"===W?(O.state=P.SGML_DECL,O.sgmlDecl=""):D(W)||(F(Y,W)?(O.state=P.OPEN_TAG,O.tagName=W):"/"===W?(O.state=P.CLOSE_TAG,O.tagName=""):"?"===W?(O.state=P.PROC_INST,O.procInstName=O.procInstBody=""):(gA(O,"Unencoded <"),O.startTagPosition+1"===W?(q(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=P.TEXT):(R(W)&&(O.state=P.SGML_DECL_QUOTED),O.sgmlDecl+=W);continue;case P.SGML_DECL_QUOTED:W===O.q&&(O.state=P.SGML_DECL,O.q=""),O.sgmlDecl+=W;continue;case P.DOCTYPE:">"===W?(O.state=P.TEXT,q(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=W,"["===W?O.state=P.DOCTYPE_DTD:R(W)&&(O.state=P.DOCTYPE_QUOTED,O.q=W));continue;case P.DOCTYPE_QUOTED:O.doctype+=W,W===O.q&&(O.q="",O.state=P.DOCTYPE);continue;case P.DOCTYPE_DTD:O.doctype+=W,"]"===W?O.state=P.DOCTYPE:R(W)&&(O.state=P.DOCTYPE_DTD_QUOTED,O.q=W);continue;case P.DOCTYPE_DTD_QUOTED:O.doctype+=W,W===O.q&&(O.state=P.DOCTYPE_DTD,O.q="");continue;case P.COMMENT:"-"===W?O.state=P.COMMENT_ENDING:O.comment+=W;continue;case P.COMMENT_ENDING:"-"===W?(O.state=P.COMMENT_ENDED,O.comment=MA(O.opt,O.comment),O.comment&&q(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+W,O.state=P.COMMENT);continue;case P.COMMENT_ENDED:">"!==W?(gA(O,"Malformed comment"),O.comment+="--"+W,O.state=P.COMMENT):O.state=P.TEXT;continue;case P.CDATA:"]"===W?O.state=P.CDATA_ENDING:O.cdata+=W;continue;case P.CDATA_ENDING:"]"===W?O.state=P.CDATA_ENDING_2:(O.cdata+="]"+W,O.state=P.CDATA);continue;case P.CDATA_ENDING_2:">"===W?(O.cdata&&q(O,"oncdata",O.cdata),q(O,"onclosecdata"),O.cdata="",O.state=P.TEXT):"]"===W?O.cdata+="]":(O.cdata+="]]"+W,O.state=P.CDATA);continue;case P.PROC_INST:"?"===W?O.state=P.PROC_INST_ENDING:D(W)?O.state=P.PROC_INST_BODY:O.procInstName+=W;continue;case P.PROC_INST_BODY:if(!O.procInstBody&&D(W))continue;"?"===W?O.state=P.PROC_INST_ENDING:O.procInstBody+=W;continue;case P.PROC_INST_ENDING:">"===W?(q(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=P.TEXT):(O.procInstBody+="?"+W,O.state=P.PROC_INST_BODY);continue;case P.OPEN_TAG:F(y,W)?O.tagName+=W:(xA(O),">"===W?pA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:(D(W)||gA(O,"Invalid character in tag name"),O.state=P.ATTRIB));continue;case P.OPEN_TAG_SLASH:">"===W?(pA(O,!0),uA(O)):(gA(O,"Forward-slash in opening tag not followed by >"),O.state=P.ATTRIB);continue;case P.ATTRIB:if(D(W))continue;">"===W?pA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:F(Y,W)?(O.attribName=W,O.attribValue="",O.state=P.ATTRIB_NAME):gA(O,"Invalid attribute name");continue;case P.ATTRIB_NAME:"="===W?O.state=P.ATTRIB_VALUE:">"===W?(gA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),pA(O)):D(W)?O.state=P.ATTRIB_NAME_SAW_WHITE:F(y,W)?O.attribName+=W:gA(O,"Invalid attribute name");continue;case P.ATTRIB_NAME_SAW_WHITE:if("="===W)O.state=P.ATTRIB_VALUE;else{if(D(W))continue;gA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",q(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===W?pA(O):F(Y,W)?(O.attribName=W,O.state=P.ATTRIB_NAME):(gA(O,"Invalid attribute name"),O.state=P.ATTRIB)}continue;case P.ATTRIB_VALUE:if(D(W))continue;R(W)?(O.q=W,O.state=P.ATTRIB_VALUE_QUOTED):(gA(O,"Unquoted attribute value"),O.state=P.ATTRIB_VALUE_UNQUOTED,O.attribValue=W);continue;case P.ATTRIB_VALUE_QUOTED:if(W!==O.q){"&"===W?O.state=P.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=W;continue}_(O),O.q="",O.state=P.ATTRIB_VALUE_CLOSED;continue;case P.ATTRIB_VALUE_CLOSED:D(W)?O.state=P.ATTRIB:">"===W?pA(O):"/"===W?O.state=P.OPEN_TAG_SLASH:F(Y,W)?(gA(O,"No whitespace between attributes"),O.attribName=W,O.attribValue="",O.state=P.ATTRIB_NAME):gA(O,"Invalid attribute name");continue;case P.ATTRIB_VALUE_UNQUOTED:if(!N(W)){"&"===W?O.state=P.ATTRIB_VALUE_ENTITY_U:O.attribValue+=W;continue}_(O),">"===W?pA(O):O.state=P.ATTRIB;continue;case P.CLOSE_TAG:if(O.tagName)">"===W?uA(O):F(y,W)?O.tagName+=W:O.script?(O.script+=""===W?uA(O):gA(O,"Invalid characters in closing tag");continue;case P.TEXT_ENTITY:case P.ATTRIB_VALUE_ENTITY_Q:case P.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case P.TEXT_ENTITY:nA=P.TEXT,EA="textNode";break;case P.ATTRIB_VALUE_ENTITY_Q:nA=P.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case P.ATTRIB_VALUE_ENTITY_U:nA=P.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===W?(O[EA]+=dA(O),O.entity="",O.state=nA):F(O.entity.length?v:d,W)?O.entity+=W:(gA(O,"Invalid character in entity name"),O[EA]+="&"+O.entity+W,O.entity="",O.state=nA);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&function f(X){for(var O=Math.max(r.MAX_BUFFER_LENGTH,10),$=0,W=0,hA=s.length;WO)switch(s[W]){case"textNode":BA(X);break;case"cdata":q(X,"oncdata",X.cdata),X.cdata="";break;case"script":q(X,"onscript",X.script),X.script="";break;default:lA(X,"Max buffer length exceeded: "+s[W])}$=Math.max($,DA)}X.bufferCheckPosition=r.MAX_BUFFER_LENGTH-$+X.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function B(X){BA(X),""!==X.cdata&&(q(X,"oncdata",X.cdata),X.cdata=""),""!==X.script&&(q(X,"onscript",X.script),X.script="")}(this)}};try{E=n(2830).Stream}catch(X){E=function(){}}var u=r.EVENTS.filter(function(X){return"error"!==X&&"end"!==X});function e(X,O){if(!(this instanceof e))return new e(X,O);E.apply(this),this._parser=new l(X,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(W){$.emit("error",W),$._parser.error=null},this._decoder=null,u.forEach(function(W){Object.defineProperty($,"on"+W,{get:function(){return $._parser["on"+W]},set:function(hA){if(!hA)return $.removeAllListeners(W),$._parser["on"+W]=hA,hA;$.on(W,hA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(E.prototype,{constructor:{value:e}})).write=function(X){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(X)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},e.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},e.prototype.on=function(X,O){var $=this;return!$._parser["on"+X]&&-1!==u.indexOf(X)&&($._parser["on"+X]=function(){var W=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,X),$.emit.apply($,W)}),E.prototype.on.call($,X,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",m={xml:w,xmlns:Q},Y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function D(X){return" "===X||"\n"===X||"\r"===X||"\t"===X}function R(X){return'"'===X||"'"===X}function N(X){return">"===X||D(X)}function F(X,O){return X.test(O)}function b(X,O){return!F(X,O)}var X,O,$,P=0;for(var eA in r.STATE={BEGIN:P++,BEGIN_WHITESPACE:P++,TEXT:P++,TEXT_ENTITY:P++,OPEN_WAKA:P++,SGML_DECL:P++,SGML_DECL_QUOTED:P++,DOCTYPE:P++,DOCTYPE_QUOTED:P++,DOCTYPE_DTD:P++,DOCTYPE_DTD_QUOTED:P++,COMMENT_STARTING:P++,COMMENT:P++,COMMENT_ENDING:P++,COMMENT_ENDED:P++,CDATA:P++,CDATA_ENDING:P++,CDATA_ENDING_2:P++,PROC_INST:P++,PROC_INST_BODY:P++,PROC_INST_ENDING:P++,OPEN_TAG:P++,OPEN_TAG_SLASH:P++,ATTRIB:P++,ATTRIB_NAME:P++,ATTRIB_NAME_SAW_WHITE:P++,ATTRIB_VALUE:P++,ATTRIB_VALUE_QUOTED:P++,ATTRIB_VALUE_CLOSED:P++,ATTRIB_VALUE_UNQUOTED:P++,ATTRIB_VALUE_ENTITY_Q:P++,ATTRIB_VALUE_ENTITY_U:P++,CLOSE_TAG:P++,CLOSE_TAG_SAW_WHITE:P++,SCRIPT:P++,SCRIPT_ENDING:P++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(X){var O=r.ENTITIES[X],$="number"==typeof O?String.fromCharCode(O):O;r.ENTITIES[X]=$}),r.STATE)r.STATE[r.STATE[eA]]=eA;function sA(X,O,$){X[O]&&X[O]($)}function q(X,O,$){X.textNode&&BA(X),sA(X,O,$)}function BA(X){X.textNode=MA(X.opt,X.textNode),X.textNode&&sA(X,"ontext",X.textNode),X.textNode=""}function MA(X,O){return X.trim&&(O=O.trim()),X.normalize&&(O=O.replace(/\s+/g," ")),O}function lA(X,O){return BA(X),X.trackPosition&&(O+="\nLine: "+X.line+"\nColumn: "+X.column+"\nChar: "+X.c),O=new Error(O),X.error=O,sA(X,"onerror",O),X}function cA(X){return X.sawRoot&&!X.closedRoot&&gA(X,"Unclosed root tag"),X.state!==P.BEGIN&&X.state!==P.BEGIN_WHITESPACE&&X.state!==P.TEXT&&lA(X,"Unexpected end"),BA(X),X.c="",X.closed=!0,sA(X,"onend"),l.call(X,X.strict,X.opt),X}function gA(X,O){if("object"!=typeof X||!(X instanceof l))throw new Error("bad call to strictFail");X.strict&&lA(X,O)}function xA(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var O=X.tags[X.tags.length-1]||X,$=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&($.ns=O.ns),X.attribList.length=0,q(X,"onopentagstart",$)}function FA(X,O){var W=X.indexOf(":")<0?["",X]:X.split(":"),hA=W[0],DA=W[1];return O&&"xmlns"===X&&(hA="xmlns",DA=""),{prefix:hA,local:DA}}function _(X){if(X.strict||(X.attribName=X.attribName[X.looseCase]()),-1!==X.attribList.indexOf(X.attribName)||X.tag.attributes.hasOwnProperty(X.attribName))X.attribName=X.attribValue="";else{if(X.opt.xmlns){var O=FA(X.attribName,!0),W=O.local;if("xmlns"===O.prefix)if("xml"===W&&X.attribValue!==w)gA(X,"xml: prefix must be bound to "+w+"\nActual: "+X.attribValue);else if("xmlns"===W&&X.attribValue!==Q)gA(X,"xmlns: prefix must be bound to "+Q+"\nActual: "+X.attribValue);else{var hA=X.tag,DA=X.tags[X.tags.length-1]||X;hA.ns===DA.ns&&(hA.ns=Object.create(DA.ns)),hA.ns[W]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,q(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}}function pA(X,O){if(X.opt.xmlns){var $=X.tag,W=FA(X.tagName);$.prefix=W.prefix,$.local=W.local,$.uri=$.ns[W.prefix]||"",$.prefix&&!$.uri&&(gA(X,"Unbound namespace prefix: "+JSON.stringify(X.tagName)),$.uri=W.prefix),$.ns&&(X.tags[X.tags.length-1]||X).ns!==$.ns&&Object.keys($.ns).forEach(function(wt){q(X,"onopennamespace",{prefix:wt,uri:$.ns[wt]})});for(var DA=0,nA=X.attribList.length;DA",X.tagName="",void(X.state=P.SCRIPT);q(X,"onscript",X.script),X.script=""}var O=X.tags.length,$=X.tagName;X.strict||($=$[X.looseCase]());for(var W=$;O--&&X.tags[O].name!==W;)gA(X,"Unexpected close tag");if(O<0)return gA(X,"Unmatched closing tag: "+X.tagName),X.textNode+="",void(X.state=P.TEXT);X.tagName=$;for(var DA=X.tags.length;DA-- >O;){var nA=X.tag=X.tags.pop();X.tagName=X.tag.name,q(X,"onclosetag",X.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];X.opt.xmlns&&nA.ns!==(X.tags[X.tags.length-1]||X).ns&&Object.keys(nA.ns).forEach(function(st){q(X,"onclosenamespace",{prefix:st,uri:nA.ns[st]})})}0===O&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=P.TEXT}function dA(X){var W,O=X.entity,$=O.toLowerCase(),hA="";return X.ENTITIES[O]?X.ENTITIES[O]:X.ENTITIES[$]?X.ENTITIES[$]:("#"===(O=$).charAt(0)&&("x"===O.charAt(1)?(O=O.slice(2),hA=(W=parseInt(O,16)).toString(16)):(O=O.slice(1),hA=(W=parseInt(O,10)).toString(10))),O=O.replace(/^0+/,""),isNaN(W)||hA.toLowerCase()!==O?(gA(X,"Invalid character entity"),"&"+X.entity+";"):String.fromCodePoint(W))}function SA(X,O){"<"===O?(X.state=P.OPEN_WAKA,X.startTagPosition=X.position):D(O)||(gA(X,"Non-whitespace before first tag."),X.textNode=O,X.state=P.TEXT)}function zA(X,O){var $="";return O1114111||O(st)!==st)throw RangeError("Invalid code point: "+st);st<=65535?hA.push(st):hA.push(55296+((st-=65536)>>10),st%1024+56320),(EA+1===GA||hA.length>W)&&(it+=X.apply(null,hA),hA.length=0)}return it},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(S,I,n){S.exports=s;var c=n(7187).EventEmitter;function s(){c.call(this)}n(5717)(s,c),s.Readable=n(6577),s.Writable=n(323),s.Duplex=n(8656),s.Transform=n(4473),s.PassThrough=n(2366),s.finished=n(1086),s.pipeline=n(6472),s.Stream=s,s.prototype.pipe=function(l,f){var a=this;function B(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",B),l.on("drain",E),!l._isStdio&&(!f||!1!==f.end)&&(a.on("end",C),a.on("close",e));var u=!1;function C(){u||(u=!0,l.end())}function e(){u||(u=!0,"function"==typeof l.destroy&&l.destroy())}function h(w){if(g(),0===c.listenerCount(this,"error"))throw w}function g(){a.removeListener("data",B),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",h),l.removeListener("error",h),a.removeListener("end",g),a.removeListener("close",g),l.removeListener("close",g)}return a.on("error",h),l.on("error",h),a.on("end",g),a.on("close",g),l.on("close",g),l.emit("pipe",a),l}},8106:function(S){"use strict";var n={};function c(a,B,E){E||(E=Error);var C=function(e){function h(g,w,Q){return e.call(this,function u(e,h,g){return"string"==typeof B?B:B(e,h,g)}(g,w,Q))||this}return function I(a,B){a.prototype=Object.create(B.prototype),a.prototype.constructor=a,a.__proto__=B}(h,e),h}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function r(a,B){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(B," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(B," ").concat(a[0]," or ").concat(a[1]):"of ".concat(B," ").concat(a[0])}return"of ".concat(B," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,B){return'The value "'+B+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,B,E){var u,C;if("string"==typeof B&&function s(a,B,E){return a.substr(!E||E<0?0:+E,B.length)===B}(B,"not ")?(u="must not be",B=B.replace(/^not /,"")):u="must be",function l(a,B,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-B.length,E)===B}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(r(B,"type"));else{var e=function f(a,B,E){return"number"!=typeof E&&(E=0),!(E+B.length>a.length)&&-1!==a.indexOf(B,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(r(B,"type"))}return C+". Received type ".concat(typeof E)},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),S.exports.q=n},8656:function(S,I,n){"use strict";var c=n(4155),r=Object.keys||function(e){var h=[];for(var g in e)h.push(g);return h};S.exports=E;var s=n(6577),l=n(323);n(5717)(E,s);for(var f=r(l.prototype),a=0;a0)if("string"!=typeof EA&&!TA.objectMode&&Object.getPrototypeOf(EA)!==a.prototype&&(EA=function E(nA){return a.from(nA)}(EA)),it)TA.endEmitted?F(nA,new v):BA(nA,TA,EA,!0);else if(TA.ended)F(nA,new y);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?BA(nA,TA,EA,!1):pA(nA,TA)):BA(nA,TA,EA,!1)}else it||(TA.reading=!1,pA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function cA(nA){return nA>=lA?nA=lA:(nA--,nA|=nA>>>1,nA|=nA>>>2,nA|=nA>>>4,nA|=nA>>>8,nA|=nA>>>16,nA++),nA}(nA)),nA<=EA.length?nA:EA.ended?EA.length:(EA.needReadable=!0,0))}function FA(nA){var EA=nA._readableState;e("emitReadable",EA.needReadable,EA.emittedReadable),EA.needReadable=!1,EA.emittedReadable||(e("emitReadable",EA.flowing),EA.emittedReadable=!0,c.nextTick(_,nA))}function _(nA){var EA=nA._readableState;e("emitReadable_",EA.destroyed,EA.length,EA.ended),!EA.destroyed&&(EA.length||EA.ended)&&(nA.emit("readable"),EA.emittedReadable=!1),EA.needReadable=!EA.flowing&&!EA.ended&&EA.length<=EA.highWaterMark,O(nA)}function pA(nA,EA){EA.readingMore||(EA.readingMore=!0,c.nextTick(uA,nA,EA))}function uA(nA,EA){for(;!EA.reading&&!EA.ended&&(EA.length0,EA.resumeScheduled&&!EA.paused?EA.flowing=!0:nA.listenerCount("data")>0&&nA.resume()}function zA(nA){e("readable nexttick read 0"),nA.read(0)}function X(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),O(nA),EA.flowing&&!EA.reading&&nA.read(0)}function O(nA){var EA=nA._readableState;for(e("flow",EA.flowing);EA.flowing&&null!==nA.read(););}function $(nA,EA){return 0===EA.length?null:(EA.objectMode?GA=EA.buffer.shift():!nA||nA>=EA.length?(GA=EA.decoder?EA.buffer.join(""):1===EA.buffer.length?EA.buffer.first():EA.buffer.concat(EA.length),EA.buffer.clear()):GA=EA.buffer.consume(nA,EA.decoder),GA);var GA}function W(nA){var EA=nA._readableState;e("endReadable",EA.endEmitted),EA.endEmitted||(EA.ended=!0,c.nextTick(hA,EA,nA))}function hA(nA,EA){if(e("endReadableNT",nA.endEmitted,nA.length),!nA.endEmitted&&0===nA.length&&(nA.endEmitted=!0,EA.readable=!1,EA.emit("end"),nA.autoDestroy)){var GA=EA._writableState;(!GA||GA.autoDestroy&&GA.finished)&&EA.destroy()}}function DA(nA,EA){for(var GA=0,it=nA.length;GA=EA.highWaterMark:EA.length>0)||EA.ended))return e("read: emitReadable",EA.length,EA.ended),0===EA.length&&EA.ended?W(this):FA(this),null;if(0===(nA=gA(nA,EA))&&EA.ended)return 0===EA.length&&W(this),null;var st,it=EA.needReadable;return e("need readable",it),(0===EA.length||EA.length-nA0?$(nA,EA):null)?(EA.needReadable=EA.length<=EA.highWaterMark,nA=0):(EA.length-=nA,EA.awaitDrain=0),0===EA.length&&(EA.ended||(EA.needReadable=!0),GA!==nA&&EA.ended&&W(this)),null!==st&&this.emit("data",st),st},sA.prototype._read=function(nA){F(this,new d("_read()"))},sA.prototype.pipe=function(nA,EA){var GA=this,it=this._readableState;switch(it.pipesCount){case 0:it.pipes=nA;break;case 1:it.pipes=[it.pipes,nA];break;default:it.pipes.push(nA)}it.pipesCount+=1,e("pipe count=%d opts=%j",it.pipesCount,EA);var TA=EA&&!1===EA.end||nA===c.stdout||nA===c.stderr?ht:It;function at(Tt,HA){e("onunpipe"),Tt===GA&&HA&&!1===HA.hasUnpiped&&(HA.hasUnpiped=!0,function OA(){e("cleanup"),nA.removeListener("close",mA),nA.removeListener("finish",dt),nA.removeListener("drain",mt),nA.removeListener("error",tt),nA.removeListener("unpipe",at),GA.removeListener("end",It),GA.removeListener("end",ht),GA.removeListener("data",VA),wt=!0,it.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&mt()}())}function It(){e("onend"),nA.end()}it.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",at);var mt=function dA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&l(nA,"data")&&(GA.flowing=!0,O(nA))}}(GA);nA.on("drain",mt);var wt=!1;function VA(Tt){e("ondata");var HA=nA.write(Tt);e("dest.write",HA),!1===HA&&((1===it.pipesCount&&it.pipes===nA||it.pipesCount>1&&-1!==DA(it.pipes,nA))&&!wt&&(e("false write response, pause",it.awaitDrain),it.awaitDrain++),GA.pause())}function tt(Tt){e("onerror",Tt),ht(),nA.removeListener("error",tt),0===l(nA,"error")&&F(nA,Tt)}function mA(){nA.removeListener("finish",dt),ht()}function dt(){e("onfinish"),nA.removeListener("close",mA),ht()}function ht(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",VA),function P(nA,EA,GA){if("function"==typeof nA.prependListener)return nA.prependListener(EA,GA);nA._events&&nA._events[EA]?Array.isArray(nA._events[EA])?nA._events[EA].unshift(GA):nA._events[EA]=[GA,nA._events[EA]]:nA.on(EA,GA)}(nA,"error",tt),nA.once("close",mA),nA.once("finish",dt),nA.emit("pipe",GA),it.flowing||(e("pipe resume"),GA.resume()),nA},sA.prototype.unpipe=function(nA){var EA=this._readableState,GA={hasUnpiped:!1};if(0===EA.pipesCount)return this;if(1===EA.pipesCount)return nA&&nA!==EA.pipes||(nA||(nA=EA.pipes),EA.pipes=null,EA.pipesCount=0,EA.flowing=!1,nA&&nA.emit("unpipe",this,GA)),this;if(!nA){var it=EA.pipes,st=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==it.flowing&&this.resume()):"readable"===nA&&!it.endEmitted&&!it.readableListening&&(it.readableListening=it.needReadable=!0,it.flowing=!1,it.emittedReadable=!1,e("on readable",it.length,it.reading),it.length?FA(this):it.reading||c.nextTick(zA,this)),GA},sA.prototype.removeListener=function(nA,EA){var GA=f.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(SA,this),GA},sA.prototype.removeAllListeners=function(nA){var EA=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(SA,this),EA},sA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function XA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,c.nextTick(X,nA,EA))}(this,nA)),nA.paused=!1,this},sA.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},sA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,it=!1;for(var st in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var at=GA.decoder.end();at&&at.length&&EA.push(at)}EA.push(null)}),nA.on("data",function(at){e("wrapped data"),GA.decoder&&(at=GA.decoder.write(at)),GA.objectMode&&null==at||!(GA.objectMode||at&&at.length)||EA.push(at)||(it=!0,nA.pause())}),nA)void 0===this[st]&&"function"==typeof nA[st]&&(this[st]=function(It){return function(){return nA[It].apply(nA,arguments)}}(st));for(var TA=0;TA-1))throw new R($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(eA.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(eA.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),eA.prototype._write=function(O,$,W){W(new m("_write()"))},eA.prototype._writev=null,eA.prototype.end=function(O,$,W){var hA=this._writableState;return"function"==typeof O?(W=O,O=null,$=null):"function"==typeof $&&(W=$,$=null),null!=O&&this.write(O,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function XA(O,$,W){$.ending=!0,zA(O,$),W&&($.finished?c.nextTick(W):O.once("finish",W)),$.ended=!0,O.writable=!1}(this,hA,W),this},Object.defineProperty(eA.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(eA.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),eA.prototype.destroy=e.destroy,eA.prototype._undestroy=e.undestroy,eA.prototype._destroy=function(O,$){$(O)}},828:function(S,I,n){"use strict";var r,c=n(4155);function s(d,v,D){return v in d?Object.defineProperty(d,v,{value:D,enumerable:!0,configurable:!0,writable:!0}):d[v]=D,d}var l=n(1086),f=Symbol("lastResolve"),a=Symbol("lastReject"),B=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function h(d,v){return{value:d,done:v}}function g(d){var v=d[f];if(null!==v){var D=d[e].read();null!==D&&(d[u]=null,d[f]=null,d[a]=null,v(h(D,!1)))}}function w(d){c.nextTick(g,d)}var m=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((s(r={get stream(){return this[e]},next:function(){var v=this,D=this[B];if(null!==D)return Promise.reject(D);if(this[E])return Promise.resolve(h(void 0,!0));if(this[e].destroyed)return new Promise(function(b,P){c.nextTick(function(){v[B]?P(v[B]):b(h(void 0,!0))})});var N,R=this[u];if(R)N=new Promise(function Q(d,v){return function(D,R){d.then(function(){v[E]?D(h(void 0,!0)):v[C](D,R)},R)}}(R,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(h(F,!1));N=new Promise(this[C])}return this[u]=N,N}},Symbol.asyncIterator,function(){return this}),s(r,"return",function(){var v=this;return new Promise(function(D,R){v[e].destroy(null,function(N){N?R(N):D(h(void 0,!0))})})}),r),m);S.exports=function(v){var D,R=Object.create(Y,(s(D={},e,{value:v,writable:!0}),s(D,f,{value:null,writable:!0}),s(D,a,{value:null,writable:!0}),s(D,B,{value:null,writable:!0}),s(D,E,{value:v._readableState.endEmitted,writable:!0}),s(D,C,{value:function(F,b){var P=R[e].read();P?(R[u]=null,R[f]=null,R[a]=null,F(h(P,!1))):(R[f]=F,R[a]=b)},writable:!0}),D));return R[u]=null,l(v,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var F=R[a];return null!==F&&(R[u]=null,R[f]=null,R[a]=null,F(N)),void(R[B]=N)}var b=R[f];null!==b&&(R[u]=null,R[f]=null,R[a]=null,b(h(void 0,!0))),R[E]=!0}),v.on("readable",w.bind(null,R)),R}},1029:function(S,I,n){"use strict";var c=n(4155);function s(E,u){a(E,u),l(E)}function l(E){E._writableState&&!E._writableState.emitClose||E._readableState&&!E._readableState.emitClose||E.emit("close")}function a(E,u){E.emit("error",u)}S.exports={destroy:function r(E,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,E)):c.nextTick(a,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(g){!u&&g?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(s,C,g)):c.nextTick(s,C,g):u?(c.nextTick(l,C),u(g)):c.nextTick(l,C)}),this)},undestroy:function f(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function B(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(S,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function s(){}S.exports=function f(a,B,E){if("function"==typeof B)return f(a,null,B);B||(B={}),E=function r(a){var B=!1;return function(){if(!B){B=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(N){Y||(Y=N),N&&y.forEach(u),!D&&(y.forEach(u),m(Y))})});return w.reduce(C)}},94:function(S,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;S.exports={getHighWaterMark:function s(l,f,a,B){var E=function r(l,f,a){return null!=l.highWaterMark?l.highWaterMark:f?l[a]:null}(f,B,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(B?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(S,I,n){S.exports=n(7187).EventEmitter},1818:function(S,I,n){var c,s;void 0!==(s="function"==typeof(c=function(){"use strict";function f(e,h,g){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,h,g)},w.onerror=function(){console.error("could not download file")},w.send()}function a(e){var h=new XMLHttpRequest;h.open("HEAD",e,!1);try{h.send()}catch(g){}return 200<=h.status&&299>=h.status}function B(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(g){var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(h)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,u=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=E.saveAs||("object"!=typeof window||window!==E?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,h,g){var w=E.URL||E.webkitURL,Q=document.createElement("a");Q.download=h=h||e.name||"download",Q.rel="noopener","string"==typeof e?(Q.href=e,Q.origin===location.origin?B(Q):a(Q.href)?f(e,h,g):B(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){B(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,h,g){if(h=h||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function l(e,h){return void 0===h?h={autoBom:!1}:"object"!=typeof h&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,g),h);else if(a(e))f(e,h,g);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){B(w)})}}:function(e,h,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return f(e,h,g);var Q="application/octet-stream"===e.type,m=/constructor/i.test(E.HTMLElement)||E.safari,Y=/CriOS\/[\d]+/.test(navigator.userAgent);if((Y||Q&&m||u)&&"undefined"!=typeof FileReader){var y=new FileReader;y.onloadend=function(){var D=y.result;D=Y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},y.readAsDataURL(e)}else{var d=E.URL||E.webkitURL,v=d.createObjectURL(e);w?w.location=v:location.href=v,w=null,setTimeout(function(){d.revokeObjectURL(v)},4e4)}});E.saveAs=C.saveAs=C,S.exports=C})?c.apply(I,[]):c)&&(S.exports=s)},2553:function(S,I,n){"use strict";var c=n(1750).Buffer,r=c.isEncoding||function(y){switch((y=""+y)&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(y){var d;switch(this.encoding=function l(y){var d=function s(y){if(!y)return"utf8";for(var d;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(d)return;y=(""+y).toLowerCase(),d=!0}}(y);if("string"!=typeof d&&(c.isEncoding===r||!r(y)))throw new Error("Unknown encoding: "+y);return d||y}(y),this.encoding){case"utf16le":this.text=h,this.end=g,d=4;break;case"utf8":this.fillLast=u,d=4;break;case"base64":this.text=w,this.end=Q,d=3;break;default:return this.write=m,void(this.end=Y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(d)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function u(y){var d=this.lastTotal-this.lastNeed,v=function E(y,d,v){if(128!=(192&d[0]))return y.lastNeed=0,"\ufffd";if(y.lastNeed>1&&d.length>1){if(128!=(192&d[1]))return y.lastNeed=1,"\ufffd";if(y.lastNeed>2&&d.length>2&&128!=(192&d[2]))return y.lastNeed=2,"\ufffd"}}(this,y);return void 0!==v?v:this.lastNeed<=y.length?(y.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,d,0,y.length),void(this.lastNeed-=y.length))}function h(y,d){if((y.length-d)%2==0){var v=y.toString("utf16le",d);if(v){var D=v.charCodeAt(v.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",d,y.length-1)}function g(y){var d=y&&y.length?this.write(y):"";return this.lastNeed?d+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):d}function w(y,d){var v=(y.length-d)%3;return 0===v?y.toString("base64",d):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",d,y.length-v))}function Q(y){var d=y&&y.length?this.write(y):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function m(y){return y.toString(this.encoding)}function Y(y){return y&&y.length?this.write(y):""}I.s=f,f.prototype.write=function(y){if(0===y.length)return"";var d,v;if(this.lastNeed){if(void 0===(d=this.fillLast(y)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v=0?(R>0&&(y.lastNeed=R-1),R):--D=0?(R>0&&(y.lastNeed=R-2),R):--D=0?(R>0&&(2===R?R=0:y.lastNeed=R-3),R):0}(this,y,d);if(!this.lastNeed)return y.toString("utf8",d);this.lastTotal=v;var D=y.length-(v-this.lastNeed);return y.copy(this.lastChar,0,D),y.toString("utf8",d,D)},f.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},311:function(S){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function r(N,F){this.source=N,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var s=new c,l=new c,f=new Uint8Array(30),a=new Uint16Array(30),B=new Uint8Array(30),E=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=new c,e=new Uint8Array(320);function h(N,F,b,P){var eA,sA;for(eA=0;eA>>=1,F}function Y(N,F,b){if(!F)return b;for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>16-F;return N.tag>>>=F,N.bitcount-=F,P+b}function y(N,F){for(;N.bitcount<24;)N.tag|=N.source[N.sourceIndex++]<>>=1,++eA,b+=F.table[eA],P-=F.table[eA]}while(P>=0);return N.tag=sA,N.bitcount-=eA,F.trans[b+P]}function d(N,F,b){var P,eA,sA,q,BA,MA;for(P=Y(N,5,257),eA=Y(N,5,1),sA=Y(N,4,4),q=0;q<19;++q)e[q]=0;for(q=0;q8;)N.sourceIndex--,N.bitcount-=8;if((F=256*(F=N.source[N.sourceIndex+1])+N.source[N.sourceIndex])!==(65535&~(256*N.source[N.sourceIndex+3]+N.source[N.sourceIndex+2])))return-3;for(N.sourceIndex+=4,P=F;P;--P)N.dest[N.destLen++]=N.source[N.sourceIndex++];return N.bitcount=0,0}(function g(N,F){var b;for(b=0;b<7;++b)N.table[b]=0;for(N.table[7]=24,N.table[8]=152,N.table[9]=112,b=0;b<24;++b)N.trans[b]=256+b;for(b=0;b<144;++b)N.trans[24+b]=b;for(b=0;b<8;++b)N.trans[168+b]=280+b;for(b=0;b<112;++b)N.trans[176+b]=144+b;for(b=0;b<5;++b)F.table[b]=0;for(F.table[5]=32,b=0;b<32;++b)F.trans[b]=b})(s,l),h(f,a,4,3),h(B,E,2,1),f[28]=0,a[28]=258,S.exports=function R(N,F){var P,sA,b=new r(N,F);do{switch(P=m(b),Y(b,2,0)){case 0:sA=D(b);break;case 1:sA=v(b,s,l);break;case 2:d(b,b.ltree,b.dtree),sA=v(b,b.ltree,b.dtree);break;default:sA=-3}if(0!==sA)throw new Error("Data error")}while(!P);return b.destLen=tA.length?{done:!0}:{done:!1,value:tA[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(tA,G){(null==G||G>tA.length)&&(G=tA.length);for(var V=0,p=new Array(G);V0?rA[0]:"value";if(AA.has(jA))return AA.get(jA);var ct=x.apply(this,rA);return AA.set(jA,ct),ct}return Object.defineProperty(this,G,{value:aA}),aA}}}}D.registerFormat=function(tA){R.push(tA)},D.openSync=function(tA,G){var V=v.readFileSync(tA);return D.create(V,G)},D.open=function(tA,G,V){"function"==typeof G&&(V=G,G=null),v.readFile(tA,function(p,x){if(p)return V(p);try{var L=D.create(x,G)}catch(AA){return V(AA)}return V(null,L)})},D.create=function(tA,G){for(var V=0;V>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(tA){return(tA.length-tA._currentOffset)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(eA,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(lA,"numRecords")}}),gA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,cA,{type:"parent",lazy:!0})}),xA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(gA,"numSubtables")}),FA=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),_=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),pA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(pA,function(tA){return tA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(tA){return tA.parent.maxp.numGlyphs-tA.parent.hhea.numberOfMetrics})}),dA=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function SA(tA,G,V){return void 0===V&&(V=0),1===tA&&XA[V]?XA[V]:zA[tA][G]}var zA=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],XA={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},X=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],O=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(tA){return SA(tA.platformID,tA.encodingID,tA.languageID)}),{type:"parent",relativeTo:function(G){return G.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(G){return G.stringOffset}})}),W=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),hA=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];W.process=function(tA){for(var p,G={},V=B(this.records);!(p=V()).done;){var x=p.value,L=X[x.platformID][x.languageID];null==L&&null!=this.langTags&&x.languageID>=32768&&(L=this.langTags[x.languageID-32768].tag),null==L&&(L=x.platformID+"-"+x.languageID);var AA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==G[AA]&&(G[AA]={});var aA=G[AA];x.nameID>=256&&(aA=aA[x.nameID]||(aA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof aA[L])&&(aA[L]=x.string)}this.records=G},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var tA=[];for(var G in this.records){var V=this.records[G];"fontFeatures"!==G&&(tA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(G),length:c.byteLength(V.en,"utf16le"),string:V.en}),"postscriptName"===G&&tA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(G),length:V.en.length,string:V.en}))}this.records=tA,this.count=tA.length,this.stringOffset=W.size(this,null,!1)}};var DA=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),nA=DA.versions;nA[3]=nA[4]=nA[2];var EA=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(tA){return tA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),it=new e.Struct({instructions:new e.Array(e.uint8)}),st=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});st.process=function(){if(0===this.version)for(var tA=0;tA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),at=new e.Array(new e.Buffer),It=function(){function tA(V){this.type=V}var G=tA.prototype;return G.getCFFVersion=function(p){for(;p&&!p.hdrSize;)p=p.parent;return p?p.version:-1},G.decode=function(p,x){var AA=this.getCFFVersion(x)>=2?p.readUInt32BE():p.readUInt16BE();if(0===AA)return[];var oA,aA=p.readUInt8();if(1===aA)oA=e.uint8;else if(2===aA)oA=e.uint16;else if(3===aA)oA=e.uint24;else{if(4!==aA)throw new Error("Bad offset size in CFFIndex: ".concat(aA," ").concat(p.pos));oA=e.uint32}for(var rA=[],NA=p.pos+(AA+1)*aA-1,jA=oA.decode(p),ct=0;ct>4;if(15===AA)break;x+=wt[AA];var aA=15&L;if(15===aA)break;x+=wt[aA]}return parseFloat(x)}return null},tA.size=function(V){return V.forceLarge&&(V=32768),(0|V)!==V?1+Math.ceil(((""+V).length+1)/2):-107<=V&&V<=107?1:108<=V&&V<=1131||-1131<=V&&V<=-108?2:-32768<=V&&V<=32767?3:5},tA.encode=function(V,p){var x=Number(p);if(p.forceLarge)return V.writeUInt8(29),V.writeInt32BE(x);if((0|x)===x)return-107<=x&&x<=107?V.writeUInt8(x+139):108<=x&&x<=1131?(V.writeUInt8(247+((x-=108)>>8)),V.writeUInt8(255&x)):-1131<=x&&x<=-108?(V.writeUInt8(251+((x=-x-108)>>8)),V.writeUInt8(255&x)):-32768<=x&&x<=32767?(V.writeUInt8(28),V.writeInt16BE(x)):(V.writeUInt8(29),V.writeInt32BE(x));V.writeUInt8(30);for(var L=""+x,AA=0;AAL;)x.pop()},tA}(),null],[19,"Subrs",new mA(new It,{type:"local"}),null]]),HA=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],z=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],RA=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),iA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,RA,{type:"parent"})}),gt=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,RA),count:e.uint16,langSysRecords:new e.Array(iA,"count")}),Yt=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,gt,{type:"parent"})}),j=new e.Array(Yt,e.uint16),qA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),kA=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,qA,{type:"parent"})}),yA=new e.Array(kA,e.uint16),KA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function lt(tA){var G=new e.Struct({lookupType:e.uint16,flags:KA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,tA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(V){return V.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,G),e.uint16)}var zt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),xt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(zt,"rangeCount")}}),Lt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Xt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Lt,"classRangeCount")}}),Ge=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),oe=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),ne=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(tA){return tA.glyphCount-1}),lookupRecords:new e.Array(oe,"lookupCount")}),Fe=new e.Array(new e.Pointer(e.uint16,ne),e.uint16),He=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(tA){return tA.glyphCount-1}),lookupRecords:new e.Array(oe,"lookupCount")}),ze=new e.Array(new e.Pointer(e.uint16,He),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,Fe),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),classDef:new e.Pointer(e.uint16,Xt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,ze),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,xt),"glyphCount"),lookupRecords:new e.Array(oe,"lookupCount")}}),xn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(tA){return tA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(oe,"lookupCount")}),ae=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),an=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ae),"chainCount")},2:{coverage:new e.Pointer(e.uint16,xt),backtrackClassDef:new e.Pointer(e.uint16,Xt),inputClassDef:new e.Pointer(e.uint16,Xt),lookaheadClassDef:new e.Pointer(e.uint16,Xt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ae),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,xt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,xt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,xt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(oe,"lookupCount")}}),Ne=new e.Fixed(16,"BE",14),on=new e.Struct({startCoord:Ne,peakCoord:Ne,endCoord:Ne}),An=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(on,"axisCount"),"regionCount")}),Hn=new e.Struct({shortDeltas:new e.Array(e.int16,function(tA){return tA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(tA){return tA.parent.regionIndexCount-tA.parent.shortDeltaCount}),deltas:function(G){return G.shortDeltas.concat(G.regionDeltas)}}),Jn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Hn,"itemCount")}),kt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,An),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,Jn),"variationDataCount")}),Gt=new e.VersionedStruct(e.uint16,{1:(r={axisIndex:e.uint16},r.axisIndex=e.uint16,r.filterRangeMinValue=Ne,r.filterRangeMaxValue=Ne,r)}),$t=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,Gt),"conditionCount")}),le=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,qA,{type:"parent"})}),vn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(le,"substitutionCount")}),Mn=new e.Struct({conditionSet:new e.Pointer(e.uint32,$t,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,vn,{type:"parent"})}),Tn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(Mn,"featureVariationRecordCount")}),Zn=function(){function tA(V,p){this.predefinedOps=V,this.type=p}var G=tA.prototype;return G.decode=function(p,x,L){return this.predefinedOps[L[0]]?this.predefinedOps[L[0]]:this.type.decode(p,x,L)},G.size=function(p,x){return this.type.size(p,x)},G.encode=function(p,x,L){var AA=this.predefinedOps.indexOf(x);return-1!==AA?AA:this.type.encode(p,x,L)},tA}(),fi=function(tA){function G(){return tA.call(this,"UInt8")||this}return f(G,tA),G.prototype.decode=function(x){return 127&e.uint8.decode(x)},G}(e.Number),Sn=new e.Struct({first:e.uint16,nLeft:e.uint8}),ZA=new e.Struct({first:e.uint16,nLeft:e.uint16}),et=new Zn([H,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new mA(new e.VersionedStruct(new fi,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Sn,"nRanges")}}),{lazy:!0})),UA=function(tA){function G(){return tA.apply(this,arguments)||this}return f(G,tA),G.prototype.decode=function(x,L){for(var AA=h.resolveLength(this.length,x,L),aA=0,oA=[];aA=2?null:p=2||this.isCIDFont)return null;var x=this.topDict.charset;if(Array.isArray(x))return x[p];if(0===p)return".notdef";switch(p-=1,x.version){case 0:return this.string(x.glyphs[p]);case 1:case 2:for(var L=0;L>1;if(p=x[aA+1].first))return x[aA].fd;L=aA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},G.privateDictForGlyph=function(p){if(this.topDict.FDSelect){var x=this.fdForGlyph(p);return this.topDict.FDArray[x]?this.topDict.FDArray[x].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},l(tA,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),tA}(),Ct=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Rt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(Ct,"numVertOriginYMetrics")}),Wt=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Ot=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),Be=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),_t=function(){},he=function(){},ye=(new e.VersionedStruct("version",{1:{metrics:Ot,data:_t},2:{metrics:Ot,data:he},5:{data:he},6:{metrics:Wt,data:_t},7:{metrics:Wt,data:he},8:{metrics:Ot,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Be,"numComponents")},9:{metrics:Wt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Be,"numComponents")},17:{metrics:Ot,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:Wt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Je=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Ue=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(tA){return tA.parent.lastGlyphIndex-tA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:Wt},3:{offsetArray:new e.Array(e.uint16,function(tA){return tA.parent.lastGlyphIndex-tA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Je,function(tA){return tA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:Wt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),Ye=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Ue)}),Pe=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(Ye,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:ye,vert:ye,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),nn=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Pe,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(tA){return tA.parent.parent.maxp.numGlyphs+1})}),ln=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,Fn),"numImgTables")}),mn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),Yn=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),tn=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(Yn,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(mn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),En=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),un=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(En,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new e.Pointer(e.uint32,new e.Array(e.uint32,"numPalettes")),offsetPaletteLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPaletteEntries"))}}),$n=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Ge)}}),Ui=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,$n),"baseCoordCount")}),Pi=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,$n,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,$n,{type:"parent"})}),oi=new e.Struct({minCoord:new e.Pointer(e.uint16,$n),maxCoord:new e.Pointer(e.uint16,$n),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Pi,"featMinMaxCount")}),Nn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,oi,{type:"parent"})}),Un=new e.Struct({baseValues:new e.Pointer(e.uint16,Ui),defaultMinMax:new e.Pointer(e.uint16,oi),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(Nn,"baseLangSysCount")}),vA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Un,{type:"parent"})}),J=new e.Array(vA,e.uint16),U=new e.Array(new e.String(4),e.uint16),Z=new e.Struct({baseTagList:new e.Pointer(e.uint16,U),baseScriptList:new e.Pointer(e.uint16,J)}),K=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,Z),vertAxis:new e.Pointer(e.uint16,Z)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,kt)}}),fA=new e.Array(e.uint16,e.uint16),IA=new e.Struct({coverage:new e.Pointer(e.uint16,xt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),At=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Ge)}}),rt=new e.Array(new e.Pointer(e.uint16,At),e.uint16),Et=new e.Struct({coverage:new e.Pointer(e.uint16,xt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,rt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,xt),"markSetCount")}),vt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Xt),attachList:new e.Pointer(e.uint16,IA),ligCaretList:new e.Pointer(e.uint16,Et),markAttachClassDef:new e.Pointer(e.uint16,Xt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,kt)}}),Ft=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),St={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),yPlaDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),xAdvDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}}),yAdvDevice:new e.Pointer(e.uint16,Ge,{type:"global",relativeTo:function(G){return G.rel}})},jt=function(){function tA(V){void 0===V&&(V="valueFormat"),this.key=V}var G=tA.prototype;return G.buildStruct=function(p){for(var x=p;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var L={rel:function(){return x._startOffset}},AA=x[this.key];for(var aA in AA)AA[aA]&&(L[aA]=St[aA]);return new e.Struct(L)}},G.size=function(p,x){return this.buildStruct(x).size(p,x)},G.decode=function(p,x){var L=this.buildStruct(x).decode(p,x);return delete L.rel,L},tA}(),Zt=new e.Struct({secondGlyph:e.uint16,value1:new jt("valueFormat1"),value2:new jt("valueFormat2")}),Ee=new e.Array(Zt,e.uint16),Ce=new e.Struct({value1:new jt("valueFormat1"),value2:new jt("valueFormat2")}),me=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,Ge),yDeviceTable:new e.Pointer(e.uint16,Ge)}}),sn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,me,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,me,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,me,{type:"parent"})}),We=new e.Array(Me,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,me),function(tA){return tA.parent.classCount}),Ze=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,me),function(tA){return tA.parent.parent.classCount}),Xn=new e.Array(dn,e.uint16),Ai=new e.Array(new e.Pointer(e.uint16,Xn),e.uint16),Pn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,value:new jt},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat:Ft,valueCount:e.uint16,values:new e.LazyArray(new jt,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),valueFormat1:Ft,valueFormat2:Ft,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,Ee),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,xt),valueFormat1:Ft,valueFormat2:Ft,classDef1:new e.Pointer(e.uint16,Xt),classDef2:new e.Pointer(e.uint16,Xt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ce,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,xt),entryExitCount:e.uint16,entryExitRecords:new e.Array(sn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,xt),baseCoverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,We),baseArray:new e.Pointer(e.uint16,Ze)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,xt),ligatureCoverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,We),ligatureArray:new e.Pointer(e.uint16,Ai)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,xt),mark2Coverage:new e.Pointer(e.uint16,xt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,We),mark2Array:new e.Pointer(e.uint16,Ze)},7:yn,8:an,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Pn)}});Pn.versions[9].extension.type=Pn;var Ji=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,yA),lookupList:new e.Pointer(e.uint16,new lt(Pn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Tn)}}),jn=new e.Array(e.uint16,e.uint16),si=jn,Ii=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(tA){return tA.compCount-1})}),ti=new e.Array(new e.Pointer(e.uint16,Ii),e.uint16),hi=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,xt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,xt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,jn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,si),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,ti),"count")},5:yn,6:an,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,hi)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,xt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,xt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,xt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});hi.versions[7].extension.type=hi;var Oi=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,yA),lookupList:new e.Pointer(e.uint16,new lt(hi))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Tn)}}),qn=new e.Array(e.uint16,e.uint16),ki=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,qn),shrinkageDisableGSUB:new e.Pointer(e.uint16,qn),shrinkageEnableGPOS:new e.Pointer(e.uint16,qn),shrinkageDisableGPOS:new e.Pointer(e.uint16,qn),shrinkageJstfMax:new e.Pointer(e.uint16,new lt(Pn)),extensionEnableGSUB:new e.Pointer(e.uint16,qn),extensionDisableGSUB:new e.Pointer(e.uint16,qn),extensionEnableGPOS:new e.Pointer(e.uint16,qn),extensionDisableGPOS:new e.Pointer(e.uint16,qn),extensionJstfMax:new e.Pointer(e.uint16,new lt(Pn))}),vi=new e.Array(new e.Pointer(e.uint16,ki),e.uint16),ji=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,vi)}),Ki=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,vi),langSysCount:e.uint16,langSysRecords:new e.Array(ji,"langSysCount")}),fr=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Ki,{type:"parent"})}),Vi=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(fr,"scriptCount")}),Wi=new e.Struct({entry:new(function(){function tA(V){this._size=V}var G=tA.prototype;return G.decode=function(p,x){switch(this.size(0,x)){case 1:return p.readUInt8();case 2:return p.readUInt16BE();case 3:return p.readUInt24BE();case 4:return p.readUInt32BE()}},G.size=function(p,x){return h.resolveLength(this._size,null,x)},tA}())(function(tA){return 1+((48&tA.parent.entryFormat)>>4)}),outerIndex:function(G){return G.entry>>1+(15&G.parent.entryFormat)},innerIndex:function(G){return G.entry&(1<<1+(15&G.parent.entryFormat))-1}}),_n=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Wi,"mapCount")}),Jr=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,kt),advanceWidthMapping:new e.Pointer(e.uint32,_n),LSBMapping:new e.Pointer(e.uint32,_n),RSBMapping:new e.Pointer(e.uint32,_n)}),Or=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),go=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),ca=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(Or,"usNumSigs"),signatureBlocks:new e.Array(go,"usNumSigs")}),Bo=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),uo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(Bo,"numRanges")}),fo=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(tA){return tA.parent.parent.maxp.numGlyphs})}),ho=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(fo,"numRecords")}),Eo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),ga=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(G){return G.offsets.length&&Math.max.apply(Math,G.offsets)}}),wo=new e.Struct({off:function(G){return G._startOffset-G.parent.parent._startOffset},len:function(G){return G.parent.rowWidth/2*((G.parent.leftTable.max-G.off)/G.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),Ba=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Eo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,ga,{type:"parent"}),rightTable:new e.Pointer(e.uint16,ga,{type:"parent"}),array:new e.Pointer(e.uint16,wo,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(tA){return tA.leftClassCount*tA.rightClassCount})}}),ua=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:Ba,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:Ba,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})}}),Co=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(ua,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(ua,"nTables")}}),fa=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),Qo=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),po=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),Mo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),mo=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(Mo,"recs")}),Io=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(po,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(mo,"numRecs")}),vo=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),Do=new e.Struct({advance:e.uint16,bearing:e.int16}),yo=new e.Struct({metrics:new e.LazyArray(Do,function(tA){return tA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(tA){return tA.parent.maxp.numGlyphs-tA.parent.vhea.numberOfMetrics})}),ha=new e.Fixed(16,"BE",14),xo=new e.Struct({fromCoord:ha,toCoord:ha}),Fo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(xo,"pairCount")}),Yo=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(Fo,"axisCount")}),To=function(){function tA(V,p,x){this.type=V,this.stream=p,this.parent=x,this.base=this.stream.pos,this._items=[]}var G=tA.prototype;return G.getItem=function(p){if(null==this._items[p]){var x=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*p,this._items[p]=this.type.decode(this.stream,this.parent),this.stream.pos=x}return this._items[p]},G.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},tA}(),ei=function(tA){function G(p){return tA.call(this,p,0)||this}return f(G,tA),G.prototype.decode=function(x,L){return new To(this.type,x,L)},G}(e.Array),Ei=function(G){void 0===G&&(G=e.uint16),G=new(function(){function aA(rA){this.type=rA}var oA=aA.prototype;return oA.decode=function(NA,jA){return this.type.decode(NA,jA=jA.parent.parent)},oA.size=function(NA,jA){return this.type.size(NA,jA=jA.parent.parent)},oA.encode=function(NA,jA,ct){return this.type.encode(NA,jA,ct=ct.parent.parent)},aA}())(G);var p=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),x=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:G}),L=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(G,function(aA){return aA.lastGlyph-aA.firstGlyph+1}),{type:"parent"})}),AA=new e.Struct({glyph:e.uint16,value:G});return new e.VersionedStruct(e.uint16,{0:{values:new ei(G)},2:{binarySearchHeader:p,segments:new e.Array(x,function(aA){return aA.binarySearchHeader.nUnits})},4:{binarySearchHeader:p,segments:new e.Array(L,function(aA){return aA.binarySearchHeader.nUnits})},6:{binarySearchHeader:p,segments:new e.Array(AA,function(aA){return aA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(G,"count")}})};function hr(tA,G){void 0===tA&&(tA={}),void 0===G&&(G=e.uint16);var V=Object.assign({newState:e.uint16,flags:e.uint16},tA),p=new e.Struct(V),x=new ei(new e.Array(e.uint16,function(AA){return AA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new Ei(G)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new ei(p))})}var No=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new Ei(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new Ei(e.uint16)}}),Ea=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:No}),Uo=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(G){return G.parent.parent.parent.name.records.fontFeatures[G.nameIndex]}}),wa=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(Uo,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameIndex]}}),Ri=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(wa,"featureNameCount")}),ci=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]}}),Di=new e.Struct({nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(tA){return tA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(tA){return tA.parent.instanceSize-tA._currentOffset>0})}),Po=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(ci,"axisCount"),instance:new e.Array(Di,"instanceCount")}),Ro=new e.Fixed(16,"BE",14),Lo=function(){function tA(){}return tA.decode=function(V,p){return p.flags?V.readUInt32BE():2*V.readUInt16BE()},tA}(),bo=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(Ro,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(Lo,"void",{relativeTo:function(G){return G.offsetToData},allowNull:!1}),function(tA){return tA.glyphCount+1})}),zo=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function So(tA,G){void 0===tA&&(tA={}),void 0===G&&(G=e.uint16);var V=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),p=Object.assign({newStateOffset:e.uint16,newState:function(oA){return(oA.newStateOffset-(oA.parent.stateArray.base-oA.parent._startOffset))/oA.parent.nClasses},flags:e.uint16},tA),x=new e.Struct(p),L=new ei(new e.Array(e.uint8,function(aA){return aA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,V),stateArray:new e.Pointer(e.uint16,L),entryTable:new e.Pointer(e.uint16,new ei(x))})}}),Go=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),Ho=new e.Array(Go,e.uint32),Jo=new e.VersionedStruct("actionType",{0:{lowerLimit:e.fixed32,upperLimit:e.fixed32,order:e.uint16,glyphs:new e.Array(e.uint16,e.uint16)},1:{addGlyph:e.uint16},2:{substThreshold:e.fixed32,addGlyph:e.uint16,substGlyph:e.uint16},3:{},4:{variationAxis:e.uint32,minimumLimit:e.fixed32,noStretchValue:e.fixed32,maximumLimit:e.fixed32},5:{flags:e.uint16,glyph:e.uint16}}),Oo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Jo,padding:new e.Reserved(e.uint8,function(tA){return tA.actionLength-tA._currentOffset})}),ko=new e.Array(Oo,e.uint32),jo=new e.Struct({lookupTable:new Ei(new e.Pointer(e.uint16,ko))}),Ca=new e.Struct({classTable:new e.Pointer(e.uint16,zo,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,jo,{type:"parent"}),widthDeltaClusters:new Ei(new e.Pointer(e.uint16,Ho,{type:"parent",relativeTo:function(G){return G.wdcOffset}}))}),Ko=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,Ca),vertical:new e.Pointer(e.uint16,Ca)}),Vo={action:e.uint16},Wo={markIndex:e.uint16,currentIndex:e.uint16},Qa={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},Zo=new e.Struct({items:new ei(new e.Pointer(e.uint32,new Ei))}),Xo=new e.VersionedStruct("type",{0:{stateTable:new hr},1:{stateTable:new hr(Wo),substitutionTable:new e.Pointer(e.uint32,Zo)},2:{stateTable:new hr(Vo),ligatureActions:new e.Pointer(e.uint32,new ei(e.uint32)),components:new e.Pointer(e.uint32,new ei(e.uint16)),ligatureList:new e.Pointer(e.uint32,new ei(e.uint16))},4:{lookupTable:new Ei},5:{stateTable:new hr(Qa),insertionActions:new e.Pointer(e.uint32,new ei(e.uint16))}}),qo=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Xo,padding:new e.Reserved(e.uint8,function(tA){return tA.length-tA._currentOffset})}),_o=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),$o=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(_o,"nFeatureEntries"),subtables:new e.Array(qo,"nSubtables")}),As=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array($o,"nChains")}),ts=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),es=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new Ei(ts)}),ce={};ce.cmap=xA,ce.head=FA,ce.hhea=_,ce.hmtx=uA,ce.maxp=dA,ce.name=W,ce["OS/2"]=DA,ce.post=EA,ce.fpgm=it,ce.loca=st,ce.prep=TA,ce["cvt "]=GA,ce.glyf=at,ce["CFF "]=re,ce.CFF2=re,ce.VORG=Rt,ce.EBLC=nn,ce.CBLC=ce.EBLC,ce.sbix=ln,ce.COLR=tn,ce.CPAL=un,ce.BASE=K,ce.GDEF=vt,ce.GPOS=Ji,ce.GSUB=Oi,ce.JSTF=Vi,ce.HVAR=Jr,ce.DSIG=ca,ce.gasp=uo,ce.hdmx=ho,ce.kern=Co,ce.LTSH=fa,ce.PCLT=Qo,ce.VDMX=Io,ce.vhea=vo,ce.vmtx=yo,ce.avar=Yo,ce.bsln=Ea,ce.feat=Ri,ce.fvar=Po,ce.gvar=bo,ce.just=Ko,ce.morx=As,ce.opbd=es;var wi,ns=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),Er=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array(ns,"numTables")});function wr(tA,G){for(var V=0,p=tA.length-1;V<=p;){var x=V+p>>1,L=G(tA[x]);if(L<0)p=x-1;else{if(!(L>0))return x;V=x+1}}return-1}function Li(tA,G){for(var V=[];tA>1;if(poA.endCode.get(jA))){var ct=oA.idRangeOffset.get(jA),_A=void 0;if(0===ct)_A=p+oA.idDelta.get(jA);else{var ut=ct/2+(p-oA.startCode.get(jA))-(oA.segCount-jA);0!==(_A=oA.glyphIndexArray.get(ut)||0)&&(_A+=oA.idDelta.get(jA))}return 65535&_A}rA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return oA.glyphIndices.get(p-oA.firstCode)||0;case 12:case 13:for(var Mt=0,yt=oA.nGroups-1;Mt<=yt;){var Jt=Mt+yt>>1,te=oA.groups.get(Jt);if(pte.endCharCode))return 12===oA.version?te.glyphID+(p-te.startCharCode):te.glyphID;Mt=Jt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(oA.version))}},G.getVariationSelector=function(p,x){if(!this.uvs)return 0;var L=this.uvs.varSelectors.toArray(),AA=wr(L,function(oA){return x-oA.varSelector}),aA=L[AA];return-1!==AA&&aA.defaultUVS&&(AA=wr(aA.defaultUVS,function(oA){return poA.startUnicodeValue+oA.additionalCount?1:0})),-1!==AA&&aA.nonDefaultUVS&&-1!==(AA=wr(aA.nonDefaultUVS,function(oA){return p-oA.unicodeValue}))?aA.nonDefaultUVS[AA].glyphID:0},G.getCharacterSet=function(){var p=this.cmap;switch(p.version){case 0:return Li(0,p.codeMap.length);case 4:for(var x=[],L=p.endCode.toArray(),AA=0;AA=Ae.glyphID&&p<=Ae.glyphID+(Ae.endCharCode-Ae.startCharCode)&&yt.push(Ae.startCharCode+(p-Ae.glyphID))}return yt;case 13:for(var Qe,se=[],fe=B(x.groups.toArray());!(Qe=fe()).done;){var de=Qe.value;p===de.glyphID&&se.push.apply(se,Li(de.startCharCode,de.endCharCode+1))}return se;default:throw new Error("Unknown cmap format ".concat(x.version))}},tA}()).prototype,"getCharacterSet",[b],Object.getOwnPropertyDescriptor(wi.prototype,"getCharacterSet"),wi.prototype),F(wi.prototype,"codePointsForGlyph",[b],Object.getOwnPropertyDescriptor(wi.prototype,"codePointsForGlyph"),wi.prototype),wi),jr=function(){function tA(V){this.kern=V.kern}var G=tA.prototype;return G.process=function(p,x){for(var L=0;L=0&&(rA=NA.pairs[jA].value);break;case 2:var _A=0;x>=NA.rightTable.firstGlyph&&x=NA.leftTable.firstGlyph&&p=NA.glyphCount||x>=NA.glyphCount)return 0;rA=NA.kernValue[NA.kernIndex[NA.leftClass[p]*NA.rightClassCount+NA.rightClass[x]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(oA.format))}oA.coverage.override?L=rA:L+=rA}}return L},tA}(),is=function(){function tA(V){this.font=V}var G=tA.prototype;return G.positionGlyphs=function(p,x){for(var L=0,AA=0,aA=0;aA1&&(oA.minX+=(aA.codePoints.length-1)*oA.width/aA.codePoints.length);for(var rA=-x[L].xAdvance,NA=0,jA=this.font.unitsPerEm/16,ct=L+1;ct<=AA;ct++){var _A=p[ct],ut=_A.cbox,Mt=x[ct],yt=this.getCombiningClass(_A.codePoints[0]);if("Not_Reordered"!==yt){switch(Mt.xOffset=Mt.yOffset=0,yt){case"Double_Above":case"Double_Below":Mt.xOffset+=oA.minX-ut.width/2-ut.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":Mt.xOffset+=oA.minX-ut.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":Mt.xOffset+=oA.maxX-ut.width-ut.minX;break;default:Mt.xOffset+=oA.minX+(oA.width-ut.width)/2-ut.minX}switch(yt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===yt||"Attached_Below"===yt)&&(oA.minY+=jA),Mt.yOffset=-oA.minY-ut.maxY,oA.minY+=ut.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":("Attached_Above"===yt||"Attached_Above_Right"===yt)&&(oA.maxY+=jA),Mt.yOffset=oA.maxY-ut.minY,oA.maxY+=ut.height}Mt.xAdvance=Mt.yAdvance=0,Mt.xOffset+=rA,Mt.yOffset+=NA}else rA-=Mt.xAdvance,NA-=Mt.yAdvance}},G.getCombiningClass=function(p){var x=w.getCombiningClass(p);if(3584==(-256&p))if("Not_Reordered"===x)switch(p){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===p)return"Below_Right";switch(x){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return x},tA}(),bi=function(){function tA(V,p,x,L){void 0===V&&(V=1/0),void 0===p&&(p=1/0),void 0===x&&(x=-1/0),void 0===L&&(L=-1/0),this.minX=V,this.minY=p,this.maxX=x,this.maxY=L}var G=tA.prototype;return G.addPoint=function(p,x){Math.abs(p)!==1/0&&(pthis.maxX&&(this.maxX=p)),Math.abs(x)!==1/0&&(xthis.maxY&&(this.maxY=x))},G.copy=function(){return new tA(this.minX,this.minY,this.maxX,this.maxY)},l(tA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),tA}(),zi={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Kr={};for(var Vr in zi){var Wr=zi[Vr];if(Array.isArray(Wr))for(var da,rs=B(Wr);!(da=rs()).done;)Kr[da.value]=Vr;else Kr[Wr]=Vr}var cs={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function pa(tA){return cs[tA]?"rtl":"ltr"}for(var gs=function(){function tA(G,V,p,x,L){if(this.glyphs=G,this.positions=null,this.script=p,this.language=x||null,this.direction=L||pa(p),this.features={},Array.isArray(V))for(var aA,AA=B(V);!(aA=AA()).done;)this.features[aA.value]=!0;else"object"==typeof V&&(this.features=V)}return l(tA,[{key:"advanceWidth",get:function(){for(var x,V=0,p=B(this.positions);!(x=p()).done;)V+=x.value.xAdvance;return V}},{key:"advanceHeight",get:function(){for(var x,V=0,p=B(this.positions);!(x=p()).done;)V+=x.value.yAdvance;return V}},{key:"bbox",get:function(){for(var V=new bi,p=0,x=0,L=0;L>1]).firstGlyph)return null;if(paA.lastGlyph))return 2===this.table.version?aA.value:aA.values[p-aA.firstGlyph];x=AA+1}}return null;case 6:for(var oA=0,rA=this.table.binarySearchHeader.nUnits-1;oA<=rA;){var AA,aA;if(65535===(aA=this.table.segments[AA=oA+rA>>1]).glyph)return null;if(paA.glyph))return aA.value;oA=AA+1}}return null;case 8:return this.table.values[p-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},G.glyphsForValue=function(p){var x=[];switch(this.table.version){case 2:case 4:for(var AA,L=B(this.table.segments);!(AA=L()).done;){var aA=AA.value;if(2===this.table.version&&aA.value===p)x.push.apply(x,Li(aA.firstGlyph,aA.lastGlyph+1));else for(var oA=0;oA=-1;){var rA=null,NA=1,jA=!0;aA===p.length||-1===aA?NA=0:65535===(rA=p[aA]).id?NA=2:null==(NA=this.lookupTable.lookup(rA.id))&&(NA=1);var ct=this.stateTable.stateArray.getItem(AA),ut=this.stateTable.entryTable.getItem(ct[NA]);0!==NA&&2!==NA&&(L(rA,ut,aA),jA=!(16384&ut.flags)),AA=ut.newState,jA&&(aA+=oA)}return p},G.traverse=function(p,x,L){if(void 0===x&&(x=0),void 0===L&&(L=new Set),!L.has(x)){L.add(x);for(var AA=this.stateTable,aA=AA.nClasses,rA=AA.entryTable,NA=AA.stateArray.getItem(x),jA=4;jA=0;)65535===p[yt].id&&p.splice(yt,1),yt--;return p},G.processSubtable=function(p,x){if(this.subtable=p,this.glyphs=x,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var L=this.getStateMachine(p),AA=this.getProcessor();return L.process(this.glyphs,!!(4194304&this.subtable.coverage),AA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},G.getStateMachine=function(p){return new ws(p.table.stateTable)},G.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},G.processIndicRearragement=function(p,x,L){32768&x.flags&&(this.firstGlyph=L),8192&x.flags&&(this.lastGlyph=L),function Ys(tA,G,V,p){switch(G){case 0:return tA;case 1:return Rn(tA,[V,1],[p,0]);case 2:return Rn(tA,[V,0],[p,1]);case 3:return Rn(tA,[V,1],[p,1]);case 4:return Rn(tA,[V,2],[p,0]);case 5:return Rn(tA,[V,2],[p,0],!0,!1);case 6:return Rn(tA,[V,0],[p,2]);case 7:return Rn(tA,[V,0],[p,2],!1,!0);case 8:return Rn(tA,[V,1],[p,2]);case 9:return Rn(tA,[V,1],[p,2],!1,!0);case 10:return Rn(tA,[V,2],[p,1]);case 11:return Rn(tA,[V,2],[p,1],!0,!1);case 12:return Rn(tA,[V,2],[p,2]);case 13:return Rn(tA,[V,2],[p,2],!0,!1);case 14:return Rn(tA,[V,2],[p,2],!1,!0);case 15:return Rn(tA,[V,2],[p,2],!0,!0);default:throw new Error("Unknown verb: ".concat(G))}}(this.glyphs,15&x.flags,this.firstGlyph,this.lastGlyph)},G.processContextualSubstitution=function(p,x,L){var AA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var aA=AA.getItem(x.markIndex);(rA=new Mr(aA).lookup((p=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(rA,p.codePoints))}if(65535!==x.currentIndex){var rA,NA=AA.getItem(x.currentIndex);(rA=new Mr(NA).lookup((p=this.glyphs[L]).id))&&(this.glyphs[L]=this.font.getGlyph(rA,p.codePoints))}32768&x.flags&&(this.markedGlyph=L)},G.processLigature=function(p,x,L){if(32768&x.flags&&this.ligatureStack.push(L),8192&x.flags){for(var AA,aA=this.subtable.table.ligatureActions,oA=this.subtable.table.components,rA=this.subtable.table.ligatureList,NA=x.action,jA=!1,ct=0,_A=[],ut=[];!jA;){var Mt,yt=this.ligatureStack.pop();(Mt=_A).unshift.apply(Mt,this.glyphs[yt].codePoints);var Jt=aA.getItem(NA++);jA=!!(2147483648&Jt);var te=!!(1073741824&Jt),Ae=(1073741823&Jt)<<2>>2;if(ct+=oA.getItem(Ae+=this.glyphs[yt].id),jA||te){var fe=rA.getItem(ct);this.glyphs[yt]=this.font.getGlyph(fe,_A),ut.push(yt),ct=0,_A=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(AA=this.ligatureStack).push.apply(AA,ut)}},G.processNoncontextualSubstitutions=function(p,x,L){var AA=new Mr(p.table.lookupTable);for(L=0;L>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(L,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},G.getSupportedFeatures=function(){for(var L,p=[],x=B(this.morx.chains);!(L=x()).done;)for(var oA,aA=B(L.value.features);!(oA=aA()).done;){var rA=oA.value;p.push([rA.featureType,rA.featureSetting])}return p},G.generateInputs=function(p){return this.inputCache||this.generateInputCache(),this.inputCache[p]||[]},G.generateInputCache=function(){this.inputCache={};for(var x,p=B(this.morx.chains);!(x=p()).done;)for(var oA,L=x.value,AA=L.defaultFlags,aA=B(L.subtables);!(oA=aA()).done;){var rA=oA.value;rA.subFeatureFlags&AA&&this.generateInputsForSubtable(rA)}},G.generateInputsForSubtable=function(p){var x=this;if(2===p.type){if(4194304&p.coverage)throw new Error("Reverse subtable, not supported.");this.subtable=p,this.ligatureStack=[];var AA=this.getStateMachine(p),aA=this.getProcessor(),oA=[],rA=[];this.glyphs=[],AA.traverse({enter:function(jA,ct){var _A=x.glyphs;rA.push({glyphs:_A.slice(),ligatureStack:x.ligatureStack.slice()});var ut=x.font.getGlyph(jA);oA.push(ut),_A.push(oA[oA.length-1]),aA(_A[_A.length-1],ct,_A.length-1);for(var Mt=0,yt=0,Jt=0;Jt<_A.length&&Mt<=1;Jt++)65535!==_A[Jt].id&&(Mt++,yt=_A[Jt].id);if(1===Mt){var te=oA.map(function(se){return se.id}),Ae=x.inputCache[yt];Ae?Ae.push(te):x.inputCache[yt]=[te]}},exit:function(){var jA=rA.pop();x.glyphs=jA.glyphs,x.ligatureStack=jA.ligatureStack,oA.pop()}})}},tA}()).prototype,"getStateMachine",[b],Object.getOwnPropertyDescriptor(Xi.prototype,"getStateMachine"),Xi.prototype),Xi);function Rn(tA,G,V,p,x){void 0===p&&(p=!1),void 0===x&&(x=!1);var L=tA.splice(V[0]-(V[1]-1),V[1]);x&&L.reverse();var AA=tA.splice.apply(tA,[G[0],G[1]].concat(L));return p&&AA.reverse(),tA.splice.apply(tA,[V[0]-(G[1]-1),0].concat(AA)),tA}var Ts=function(){function tA(V){this.font=V,this.morxProcessor=new Fs(V),this.fallbackPosition=!1}var G=tA.prototype;return G.substitute=function(p){"rtl"===p.direction&&p.glyphs.reverse(),this.morxProcessor.process(p.glyphs,function us(tA){var G={};for(var V in tA){var p;(p=Qr[V])&&(null==G[p[0]]&&(G[p[0]]={}),G[p[0]][p[1]]=tA[V])}return G}(p.features))},G.getAvailableFeatures=function(p,x){return function fs(tA){var G={};if(Array.isArray(tA))for(var V=0;V0&&p.applyFeatures(oA,x,L)}},tA}(),Ns=["rvrn"],Us=["ccmp","locl","rlig","mark","mkmk"],Ps=["frac","numr","dnom"],Rs=["calt","clig","liga","rclt","curs","kern"],Ls={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Ci=function(){function tA(){}return tA.plan=function(V,p,x){this.planPreprocessing(V),this.planFeatures(V),this.planPostprocessing(V,x),V.assignGlobalFeatures(p),this.assignFeatures(V,p)},tA.planPreprocessing=function(V){V.add({global:[].concat(Ns,Ls[V.direction]),local:Ps})},tA.planFeatures=function(V){},tA.planPostprocessing=function(V,p){V.add([].concat(Us,Rs)),V.setFeatureOverrides(p)},tA.assignFeatures=function(V,p){for(var x=0;x0&&w.isDigit(p[AA-1].codePoints[0]);)p[AA-1].features.numr=!0,p[AA-1].features.frac=!0,AA--;for(;aAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},G.next=function(){return this.move(1)},G.prev=function(){return this.move(-1)},G.peek=function(p){void 0===p&&(p=1);var x=this.index,L=this.increment(p);return this.index=x,L},G.peekIndex=function(p){void 0===p&&(p=1);var x=this.index;this.increment(p);var L=this.index;return this.index=x,L},G.increment=function(p){void 0===p&&(p=1);var x=p<0?-1:1;for(p=Math.abs(p);p--;)this.move(x);return this.glyphs[this.index]},l(tA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),tA}(),Os=["DFLT","dflt","latn"],pi=function(){function tA(V,p){this.font=V,this.table=p,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=V._variationProcessor?this.findVariationsIndex(V._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var G=tA.prototype;return G.findScript=function(p){if(null==this.table.scriptList)return null;Array.isArray(p)||(p=[p]);for(var L,x=B(p);!(L=x()).done;)for(var oA,AA=L.value,aA=B(this.table.scriptList);!(oA=aA()).done;){var rA=oA.value;if(rA.tag===AA)return rA}return null},G.selectScript=function(p,x,L){var aA,AA=!1;if(!this.script||p!==this.scriptTag){if((aA=this.findScript(p))||(aA=this.findScript(Os)),!aA)return this.scriptTag;this.scriptTag=aA.tag,this.script=aA.script,this.language=null,this.languageTag=null,AA=!0}if((!L||L!==this.direction)&&(this.direction=L||pa(p)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var rA,oA=B(this.script.langSysRecords);!(rA=oA()).done;){var NA=rA.value;if(NA.tag===x){this.language=NA.langSys,this.languageTag=NA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),AA=!0}if(AA&&(this.features={},this.language))for(var ct,jA=B(this.language.featureIndexes);!(ct=jA()).done;){var _A=ct.value,ut=this.table.featureList[_A],Mt=this.substituteFeatureForVariations(_A);this.features[ut.tag]=Mt||ut.feature}return this.scriptTag},G.lookupsForFeatures=function(p,x){void 0===p&&(p=[]);for(var aA,L=[],AA=B(p);!(aA=AA()).done;){var oA=aA.value,rA=this.features[oA];if(rA)for(var jA,NA=B(rA.lookupListIndexes);!(jA=NA()).done;){var ct=jA.value;x&&-1!==x.indexOf(ct)||L.push({feature:oA,index:ct,lookup:this.table.lookupList.get(ct)})}}return L.sort(function(_A,ut){return _A.index-ut.index}),L},G.substituteFeatureForVariations=function(p){if(-1===this.variationsIndex)return null;for(var aA,AA=B(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(aA=AA()).done;){var oA=aA.value;if(oA.featureIndex===p)return oA.alternateFeatureTable}return null},G.findVariationsIndex=function(p){var x=this.table.featureVariations;if(!x)return-1;for(var L=x.featureVariationRecords,AA=0;AA=0})},G.getClassID=function(p,x){switch(x.version){case 1:var L=p-x.startGlyph;if(L>=0&&L0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),tA}(),Ya=function(tA){function G(){return tA.apply(this,arguments)||this}return f(G,tA),G.planFeatures=function(p){p.add(["ljmo","vjmo","tjmo"],!1)},G.assignFeatures=function(p,x){for(var L=0,AA=0;AAFi){var ct=Ar(V,AA,p.features);ct.features.tjmo=!0,jA.push(ct)}return tA.splice.apply(tA,[G,1].concat(jA)),G+jA.length-1}function o0(tA,G,V){var oA,rA,NA,jA,p=tA[G],L=$i(tA[G].codePoints[0]),AA=tA[G-1].codePoints[0],aA=$i(AA);if(4===aA&&3===L)oA=AA,jA=p;else{2===L?(rA=tA[G-1],NA=p):(rA=tA[G-2],NA=tA[G-1],jA=p);var ct=rA.codePoints[0],_A=NA.codePoints[0];(function(G){return 4352<=G&&G<=4370})(ct)&&function(G){return 4449<=G&&G<=4469}(_A)&&(oA=Gi+28*(21*(ct-4352)+(_A-4449)))}var ut=jA&&jA.codePoints[0]||Fi;if(null!=oA&&(ut===Fi||function(G){return 1<=G&&G<=4546}(ut))){var Mt=oA+(ut-Fi);if(V.hasGlyphForCodePoint(Mt)){var yt=2===aA?3:2;return tA.splice(G-yt+1,yt,Ar(V,Mt,p.features)),G-yt+1}}return rA&&(rA.features.ljmo=!0),NA&&(NA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===aA?(Pa(tA,G-1,V),G+1):G}function l0(tA,G,V){var p=tA[G];if(0!==V.glyphForCodePoint(tA[G].codePoints[0]).advanceWidth){var AA=function s0(tA){switch($i(tA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(tA[G-1].codePoints[0]);return tA.splice(G,1),tA.splice(G-AA,0,p)}}function c0(tA,G,V){var p=tA[G],x=tA[G].codePoints[0];if(V.hasGlyphForCodePoint(9676)){var L=Ar(V,9676,p.features),AA=0===V.glyphForCodePoint(x).advanceWidth?G:G+1;tA.splice(AA,0,L),G++}return G}var Sr={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},Ie_X=1,Ie_N=8,Ie_H=16,Ie_ZWNJ=32,Ie_ZWJ=64,Ie_M=128,Ie_RS=8192,Ie_Repha=32768,Ie_Ra=65536,Ie_CM=1<<17,ie={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},d0=2|Ie_Ra|Ie_CM|4|2048|4096,Ra=Ie_ZWJ|Ie_ZWNJ,tr=Ie_H|16384,La={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ie.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ie.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ie.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ie.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ie.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ie.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ie.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ie.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ie.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ie.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ie.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},p0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},M0=Sr.decompositions,ba=new Q(c("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4GXwLrHJ5bDy4DG8A14LvgZrAZbAF3gns0z18ALgY/B78C94NHwBPgabAE/AX8DbwM5sF/QX0yD5vFcU/wVnAgWAoOAyvAceBE8CGwBpwGzgJfAF8BXwXfAFeC68EmsBlsAXeCreA+8CB4DDwF/gh2gd3gFfAGmKxn2QzYC+wHDgRLweFgJTgWrKrnuq/GcQ04jV6fheN54EJwEbgcXAG+Q8O/j+Mt4DZwB9haz8t9Hz3a8iCN/xiOvwRP0evH6fE68AzOH+Ke2eWYhw3PcGnuxvkr4A3QaGRZB7wFLAEHg2XgiEZ/fHKcp/ceBh/A+cngFPCpRm6vM3E8l8a5gN67GMdvgqsbeX2ap9yI601gM7gN3AG20mfuo8cdOP6GpvdUg9oKxz839GV90RDO2/glxN1B790NXsN1rZll7WYRdw+c70uvTwIHNAfTO0RyL5TDmnnbc3lmRQI9UnM0dD5eovfz4FpJ/BNpXNYWV+N6Lfg0hY97JK1vn+Pur9DoQur2F7m436bHDUK8C5t5/8vruo4+97WmXG+GLmzEiBF+PDwEOowYMWLEiBEjRoxYeBw5BDqIPEfXut9yWN+vVNxfrnnmWqR/PdgENoMt4E5wD9gOHgCPgifBs2BXM99b2o3jP8F/wMRUlrXAHNgHvH0q3895J46HguXgWHAGLctmLv9VuL96qnp7jxgxYsSbCbJvuRZ97/tqxT59VVRtixEjRsThBG7OSt5zzoPT0M+cBc4T5noXOs79TqLHeZrHUeCSqeJ96gacXy2kecNU8V6Hh7yXuQlhtw7B/PO1RTkr52Aj8JNFZjYg3gOKuC/g/v6Ls2wNuAY8urg//PcIb+6RZXuDNeCS6SzbBrJWlh0DLiFHco8ed9IjzzvaWfa9sZzTcf6D9mCcnbg3PlNcH4fzS8F2MDaLdQG4dLZIJxbbaZqv4ri8k58f3+mPs66T6/TTzqDeI0aMGDGiHP5dcR8ce/xxYcWi6vOfr725uRzcjnngXVOD61Hync+9uL+Nmyfej/NHpvL56A5Jeuz7uyfo+pqcPz2Vf1NH0ttJ03pekt8SmuY/EPYy9zzbN319ym/9TL6ZIt9MHCXRdxJtoAkWTRdz472n87D9cTwYLJvuz++I6WIePo/zE8AHp4v8WLyP0nufnM6/+zoDx8+DL08P6r9+urheRtO+jD6/cdrsx3mqu8w+xH4PScKIXa5D2jeCm8Et4DbwI/BjcC/4BXgI/Bb8DuwEu8Bu8Ap4A9RaRZptnO8J9gUHgEPAoWA5OLY1qMO90GEV7q+mYWtxPBWcIYnL4p+DsPNbxfVFOP86uAr8DNc34HgTDb8Vx9sVaRFI/LtagzYjnCqpb908EX87eBA8Bh4Hf2jle/9/wvGFVv787rrZZy8h7qtgDOuFOmiBuXYRvg/O9wMHgXeB97SLspk4sq0OI/q9v13+ek+sh3zYSRp9jrYorw9ll1/GRzR+KotYZSHf8laVP2lvpA/8OGdPMk59hqtXZ+L8nHbxvWwqO65ryu+fT3VZz+l4dET7L0R072ljsMyzTpaJqQxsbL8M9WajY789DO85XMp/Dcp3Qztdn+9qf/a97ZWK8PXc3G+TpC/nv8Mncy7ZvICF302P5O+aNiOtLdTXd+D4Q7DVwfcvWvx9zTEJ/o5iG3R8YAjGNFseha5PGuZKz7b7xxXbOrXMcu5eJSo//rXdH/73Enz6L1q/X+fyIu8wZGtNBmkjkzNZNgP2AvuBg2bysKUzduXn/66JtNeN4PCZvO0/x7Ujdn4VnYOvRJzjZ/I+9sQZeftX2Tc1RPcPz/Tf4/si0g+t5Mq+kfZjZL34Mc5ul3PPnE7TOxvHK2qDaZ+L++db2HyYqMo/qVnb/P8uH8/rmnFxR0k6DCu/rjj/RxT7KGUSWgbd+LMQuEgYB1zsk2qtvJD8v5AhdfdttbEunSxbcJD9Zf7chqp1Hlbe7FK1/aPVTfp7FgtC1yGGiSncFK/DhZvi+epZta0WWjlsfDZMyPRdSPrryqSSKnXx1bkq/Ye9TlRpk7Lrjq1UrfdC9X+MtKqwP6+3a/4pJFUZF0pZZpv91MYjMBaRRXbxpho5zQmUY3F+Pt4o7rvQrBXPdm00TaE24uMadaM2meLSI7iu071t3er3b6ZLi8JEde3qw+6zGv+ycF5kaRBh/m1T/7Yl/mMyTuMwadP4xL9ifjJpNwbvDZRJ8G8vnqV/Wf12aa/kyOdl69+BspTsXzGueE6E+JfZnvmXIfNPW+FfXkjb1YmqPNpnLP3b61fHCj/X5tzGANf2y3yqvC7Jv7btV4TVbdammI9l/g0dS5lNxLrk2j9r8xjjxhBQnygg0lgg/bOrfyct+udJi/Yrk0lFnxC7f+5kRbsNmcexfrubt0X/rGvLqrGSnYv3ZPHEe8r7lvMvUfi2LOu/2dg8LrRtQt2yfcv8r5IU70VkIs6nbebUXf0M/o7Znl39Sdoz+X1oEb5N8ffF67qhPfPP6eoUbxf+GRf/6sRnvaSdmw+Bf1VxmbD+2sa//DU7t/Gv2PfKpKdrBP92Ojk+IvqX16ks/2qxbL8EZnc2HqsgYuqPuzZV+I3RbujbDm+T0PmWCVO/5jqftp1zy+wSA6s0JWtp2z5e1oZV+yMsjB3ZXolsv0Ulrv01v3/iKrF94Qtbt9siCnmeb6fjjf59KnLk1xaEbvtvFnFirGvEOqmycQrbm/IMsXd3P28uh4nM3swXRER717OiX8kc7K2qqyn2p3maFGU/aruP5VCv+PraoTYU8yUmmbDwcYo6pusnM486xdoga4dkPCb1pK7Sfc6ebvkd4qeAtQcd/N63bB3lU3dlUnUf38VyvqCqK7JxlNSd7lydrDlm+/uqHiRvl30Nrp/n9zpkZRjoJ3V1diyP05rIYXHYs+w+D5+WMS8b5gZtKcuX0KT5d/WwtB97VnyvY6rjMukI56HI0rFJPwt8PjT/1OXzSbcMeEmdh294qvKK4rNu7j4n3LNZg8TKXwafv025U+XvKjHsT8Q7/7LGaJt9lAh7Asz3uv0XEX6t0duDoWN/93wmh92XpUHmCKb9GALbG+rZP3AfNbQPKKv/jpF/bP0JXfuW1QYk7dhljcyvk5mw+933Hpo1g26PQ2ZP6zVmTJt47P25jncD9vPwGS+q9QS/V6RaY8j8K8LmvUr9HfYCpH5OWL9lZY+Sv6pesHCJHbtrf9k6etZvf0G1L0ja4cAe1UT/s3zdCe3/Q5/n372wMc97/E1Qh0Tbmfwh3m/V9On72tNnrCF1sJkVe1EyXMdBa7+lHMsk44zMF6St9e2djNnbm8ybpHkq+gbbemMaH0UZmD8obKGrk7r+nt+3bE7o83YZp/vqOKdv6PzJNN6mTJsI/51XR7i2ZrGA5B6zFwnjzxmqPjaGfW3tZNrz1eljq29mOOqeCfF/irRt87PNw0uXSVAvrmOMNT569MptsYaV0sic/wbY13e8hPrb9K2ySUJ0j6G/Lu0U4qpTrR23jMp6m5hU+YTaWCeh9aIsm/rqUHV4bFv42kgnZdfH1PUj1D7DVH9d8khRN1zFRl/+/TW//qxL1uH83+mk3H+SvRtS2TDU90nX2TpM6/1xzZpZtoYdK763dqlz0f6uNeFehcs+H/nbGP77MpX06n/ofpzP+tVmTUvRtVuX/cjS67OE5kRBrxyJ+w/dPo7r+9cO1160e3gqu0S2uW7PjN/L6ns/UfMf10Lai87frJ+3KndAfc8yTf1M3T4s6qm4/yh7/2GSkG8UMw//DvRLgbYZSEOxr0LCWvRdjfh9XGzfqN4NivfZd7rsmFp08zmbssrKJEuTfVMZopdpbuwSrhNv3/N2s+0PDG3KNB6RMrFvJHv6B85HXObAoWsd3zm3i+6uZYytv+5+pohbpo6+tpZJFfmGlrcMf4c8b1Pe2OUIsaXJrinCTfaxtZOt+NYnU3hIfQlN20Z/1+dt7JaqLsbIzycNWZmrlNg2Dc2/LJ1T+T6WrrYSml4Ku7ik7yIx2opJD51vU9UfVRmrqL8u/olZj0PyCLV5irxcdKoi/6rKb8qTrHsnhW9jyZH/nSpeWDzxd9769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=","base64")),m0=new m({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),wn=function(tA){function G(){return tA.apply(this,arguments)||this}return f(G,tA),G.planFeatures=function(p){p.addStage(I0),p.addStage(["locl","ccmp"]),p.addStage(D0),p.addStage("nukt"),p.addStage("akhn"),p.addStage("rphf",!1),p.addStage("rkrf"),p.addStage("pref",!1),p.addStage("blwf",!1),p.addStage("abvf",!1),p.addStage("half",!1),p.addStage("pstf",!1),p.addStage("vatu"),p.addStage("cjct"),p.addStage("cfar",!1),p.addStage(y0),p.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),p.unicodeScript=function os(tA){return Kr[tA]}(p.script),p.indicConfig=La[p.unicodeScript]||La.Default,p.isOldSpec=p.indicConfig.hasOldSpec&&"2"!==p.script[p.script.length-1]},G.assignFeatures=function(p,x){for(var L=function(oA){var rA=x[oA].codePoints[0],NA=p0[rA]||M0[rA];if(NA){var jA=NA.map(function(ct){var _A=p.font.glyphForCodePoint(ct);return new gi(p.font,_A.id,[ct],x[oA].features)});x.splice.apply(x,[oA,1].concat(jA))}},AA=x.length-1;AA>=0;AA--)L(AA)},G}(Ci);function $r(tA){return ba.get(tA.codePoints[0])>>8}function Aa(tA){return 1<<(255&ba.get(tA.codePoints[0]))}N(wn,"zeroMarkWidths","NONE");var Nr=function(G,V,p,x){this.category=G,this.position=V,this.syllableType=p,this.syllable=x};function I0(tA,G){for(var L,V=0,p=0,x=B(m0.match(G.map($r)));!(L=x()).done;){var AA=L.value,aA=AA[0],oA=AA[1],rA=AA[2];if(aA>p){++V;for(var NA=p;NAJt);break;case"First":for(var de=(yt=rA)+1;deqe&&!(Yi(G[je])||Bn&&G[je].shaperInfo.category===Ie_H);je--);if(G[je].shaperInfo.category!==Ie_H&&je>qe){var we=G[qe];G.splice.apply(G,[qe,0].concat(G.splice(qe+1,je-qe))),G[je]=we}break}for(var en=ie.Start,Re=rA;RerA;rn--)if(G[rn-1].shaperInfo.position!==ie.Pre_M){Te.position=G[rn-1].shaperInfo.position;break}}else Te.position!==ie.SMVD&&(en=Te.position)}for(var zn=yt,fn=yt+1;fnrA&&!Yi(G[Gn]))}}}}function y0(tA,G,V){for(var p=V.indicConfig,x=tA._layoutEngine.engine.GSUBProcessor.features,L=0,AA=Ur(G,0);L=ie.Base_C){if(aA&&oA+1ie.Base_C&&oA--;break}if(oA===AA&&LL&&!(G[jA].shaperInfo.category&(Ie_M|tr));)jA--;ri(G[jA])&&G[jA].shaperInfo.position!==ie.Pre_M?jA+1L;ct--)if(G[ct-1].shaperInfo.position===ie.Pre_M){var _A=ct-1;_AL&&G[Mt].shaperInfo.position===ie.SMVD;)Mt--;if(ri(G[Mt]))for(var te=oA+1;teL&&!(G[fe-1].shaperInfo.category&(Ie_M|tr));)fe--;if(fe>L&&G[fe-1].shaperInfo.category===Ie_M)for(var Qe=se,de=oA+1;deL&&ri(G[fe-1])&&fe=tA.length)return G;for(var V=tA[G].shaperInfo.syllable;++G=0;AA--)L(AA)},G}(Ci);function Ga(tA){return F0.get(tA.codePoints[0])}N(pe,"zeroMarkWidths","BEFORE_GPOS");var T0=function(G,V,p){this.category=G,this.syllableType=V,this.syllable=p};function S0(tA,G){for(var x,V=0,p=B(Y0.match(G.map(Ga)));!(x=p()).done;){var L=x.value,AA=L[0],aA=L[1],oA=L[2];++V;for(var rA=AA;rA<=aA;rA++)G[rA].shaperInfo=new T0(x0[Ga(G[rA])],oA[0],V);for(var NA="R"===G[AA].shaperInfo.category?1:Math.min(3,aA-AA),jA=AA;jA1)for(L=p+1;L=tA.length)return G;for(var V=tA[G].shaperInfo.syllable;++G=0;On--)this.glyphs.splice(fe[On],1);return this.glyphs[this.glyphIterator.index]=ge,!0}}return!1;case 5:return this.applyContext(L);case 6:return this.applyChainingContext(L);case 7:return this.applyLookup(L.lookupType,L.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},G}(pi),z0=function(tA){function G(){return tA.apply(this,arguments)||this}f(G,tA);var V=G.prototype;return V.applyPositionValue=function(x,L){var AA=this.positions[this.glyphIterator.peekIndex(x)];null!=L.xAdvance&&(AA.xAdvance+=L.xAdvance),null!=L.yAdvance&&(AA.yAdvance+=L.yAdvance),null!=L.xPlacement&&(AA.xOffset+=L.xPlacement),null!=L.yPlacement&&(AA.yOffset+=L.yPlacement);var aA=this.font._variationProcessor,oA=this.font.GDEF&&this.font.GDEF.itemVariationStore;aA&&oA&&(L.xPlaDevice&&(AA.xOffset+=aA.getDelta(oA,L.xPlaDevice.a,L.xPlaDevice.b)),L.yPlaDevice&&(AA.yOffset+=aA.getDelta(oA,L.yPlaDevice.a,L.yPlaDevice.b)),L.xAdvDevice&&(AA.xAdvance+=aA.getDelta(oA,L.xAdvDevice.a,L.xAdvDevice.b)),L.yAdvDevice&&(AA.yAdvance+=aA.getDelta(oA,L.yAdvDevice.a,L.yAdvDevice.b)))},V.applyLookup=function(x,L){switch(x){case 1:var AA=this.coverageIndex(L.coverage);if(-1===AA)return!1;switch(L.version){case 1:this.applyPositionValue(0,L.value);break;case 2:this.applyPositionValue(0,L.values.get(AA))}return!0;case 2:var aA=this.glyphIterator.peek();if(!aA)return!1;var oA=this.coverageIndex(L.coverage);if(-1===oA)return!1;switch(L.version){case 1:for(var jA,NA=B(L.pairSets.get(oA));!(jA=NA()).done;){var ct=jA.value;if(ct.secondGlyph===aA.id)return this.applyPositionValue(0,ct.value1),this.applyPositionValue(1,ct.value2),!0}return!1;case 2:var _A=this.getClassID(this.glyphIterator.cur.id,L.classDef1),ut=this.getClassID(aA.id,L.classDef2);if(-1===_A||-1===ut)return!1;var Mt=L.classRecords.get(_A).get(ut);return this.applyPositionValue(0,Mt.value1),this.applyPositionValue(1,Mt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Jt=this.glyphs[yt];if(!Jt)return!1;var te=L.entryExitRecords[this.coverageIndex(L.coverage)];if(!te||!te.exitAnchor)return!1;var Ae=L.entryExitRecords[this.coverageIndex(L.coverage,Jt.id)];if(!Ae||!Ae.entryAnchor)return!1;var se=this.getAnchor(Ae.entryAnchor),fe=this.getAnchor(te.exitAnchor),Qe=this.positions[this.glyphIterator.index],de=this.positions[yt];switch(this.direction){case"ltr":Qe.xAdvance=fe.x+Qe.xOffset;var Oe=se.x+de.xOffset;de.xAdvance-=Oe,de.xOffset-=Oe;break;case"rtl":Qe.xAdvance-=Oe=fe.x+Qe.xOffset,Qe.xOffset-=Oe,de.xAdvance=se.x+de.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,Qe.yOffset=se.y-fe.y):(Jt.cursiveAttachment=this.glyphIterator.index,Qe.yOffset=fe.y-se.y),!0;case 4:var gn=this.coverageIndex(L.markCoverage);if(-1===gn)return!1;for(var ke=this.glyphIterator.index;--ke>=0&&(this.glyphs[ke].isMark||this.glyphs[ke].ligatureComponent>0););if(ke<0)return!1;var ge=this.coverageIndex(L.baseCoverage,this.glyphs[ke].id);if(-1===ge)return!1;var Bn=L.markArray[gn];return this.applyAnchor(Bn,L.baseArray[ge][Bn.class],ke),!0;case 5:var je=this.coverageIndex(L.markCoverage);if(-1===je)return!1;for(var we=this.glyphIterator.index;--we>=0&&this.glyphs[we].isMark;);if(we<0)return!1;var en=this.coverageIndex(L.ligatureCoverage,this.glyphs[we].id);if(-1===en)return!1;var Re=L.ligatureArray[en],Te=this.glyphIterator.cur,rn=this.glyphs[we],zn=rn.ligatureID&&rn.ligatureID===Te.ligatureID&&Te.ligatureComponent>0?Math.min(Te.ligatureComponent,rn.codePoints.length)-1:rn.codePoints.length-1,fn=L.markArray[je];return this.applyAnchor(fn,Re[zn][fn.class],we),!0;case 6:var On=this.coverageIndex(L.mark1Coverage);if(-1===On)return!1;var Kn=this.glyphIterator.peekIndex(-1),Dn=this.glyphs[Kn];if(!Dn||!Dn.isMark)return!1;var pn=this.glyphIterator.cur,Vn=!1;if(pn.ligatureID===Dn.ligatureID?pn.ligatureID?pn.ligatureComponent===Dn.ligatureComponent&&(Vn=!0):Vn=!0:(pn.ligatureID&&!pn.ligatureComponent||Dn.ligatureID&&!Dn.ligatureComponent)&&(Vn=!0),!Vn)return!1;var Wn=this.coverageIndex(L.mark2Coverage,Dn.id);if(-1===Wn)return!1;var ve=L.mark1Array[On];return this.applyAnchor(ve,L.mark2Array[Wn][ve.class],Kn),!0;case 7:return this.applyContext(L);case 8:return this.applyChainingContext(L);case 9:return this.applyLookup(L.lookupType,L.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},V.applyAnchor=function(x,L,AA){var aA=this.getAnchor(L),oA=this.getAnchor(x.markAnchor),NA=this.positions[this.glyphIterator.index];NA.xOffset=aA.x-oA.x,NA.yOffset=aA.y-oA.y,this.glyphIterator.cur.markAttachment=AA},V.getAnchor=function(x){var L=x.xCoordinate,AA=x.yCoordinate,aA=this.font._variationProcessor,oA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return aA&&oA&&(x.xDeviceTable&&(L+=aA.getDelta(oA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(AA+=aA.getDelta(oA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:L,y:AA}},V.applyFeatures=function(x,L,AA){tA.prototype.applyFeatures.call(this,x,L,AA);for(var aA=0;aA>16;if(0===x)switch(p>>8){case 0:return 173===p;case 3:return 847===p;case 6:return 1564===p;case 23:return 6068<=p&&p<=6069;case 24:return 6155<=p&&p<=6158;case 32:return 8203<=p&&p<=8207||8234<=p&&p<=8238||8288<=p&&p<=8303;case 254:return 65024<=p&&p<=65039||65279===p;case 255:return 65520<=p&&p<=65528;default:return!1}else switch(x){case 1:return 113824<=p&&p<=113827||119155<=p&&p<=119162;case 14:return 917504<=p&&p<=921599;default:return!1}},G.getAvailableFeatures=function(p,x){var L=[];return this.engine&&L.push.apply(L,this.engine.getAvailableFeatures(p,x)),this.font.kern&&-1===L.indexOf("kern")&&L.push("kern"),L},G.stringsForGlyph=function(p){for(var aA,x=new Set,AA=B(this.font._cmapProcessor.codePointsForGlyph(p));!(aA=AA()).done;)x.add(String.fromCodePoint(aA.value));if(this.engine&&this.engine.stringsForGlyph)for(var NA,rA=B(this.engine.stringsForGlyph(p));!(NA=rA()).done;)x.add(NA.value);return Array.from(x)},tA}(),J0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Rr=function(){function tA(){this.commands=[],this._bbox=null,this._cbox=null}var G=tA.prototype;return G.toFunction=function(){var p=this;return function(x){p.commands.forEach(function(L){return x[L.command].apply(x,L.args)})}},G.toSVG=function(){return this.commands.map(function(x){var L=x.args.map(function(AA){return Math.round(100*AA)/100});return"".concat(J0[x.command]).concat(L.join(" "))}).join("")},G.mapPoints=function(p){for(var AA,x=new tA,L=B(this.commands);!(AA=L()).done;){for(var aA=AA.value,oA=[],rA=0;rA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var G=tA.prototype;return G._getPath=function(){return new Rr},G._getCBox=function(){return this.path.cbox},G._getBBox=function(){return this.path.bbox},G._getTableMetrics=function(p){if(this.id0)oA=Math.abs(NA.typoAscender-NA.typoDescender),rA=NA.typoAscender-p.maxY;else{var jA=this._font.hhea;oA=Math.abs(jA.ascent-jA.descent),rA=jA.ascent-p.maxY}return this._font._variationProcessor&&this._font.HVAR&&(L+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:L,advanceHeight:oA,leftBearing:AA,topBearing:rA}},G.getScaledPath=function(p){return this.path.scale(1/this._font.unitsPerEm*p)},G._getName=function(){var p=this._font.post;if(!p)return null;switch(p.version){case 1:return er[this.id];case 2:var x=p.glyphNameIndex[this.id];return x0?this._decodeSimple(oA,AA):oA.numberOfContours<0&&this._decodeComposite(oA,AA,aA),oA},V._decodeSimple=function(x,L){x.points=[];var AA=new e.Array(e.uint16,x.numberOfContours).decode(L);x.instructions=new e.Array(e.uint8,e.uint16).decode(L);for(var aA=[],oA=AA[AA.length-1]+1;aA.length=0,0,0);x.points.push(_A)}var ut=0;for(ct=0;ct>1,rA.length=0}function Bn(je,we){Jt&&oA.closePath(),oA.moveTo(je,we),Jt=!0}return function je(){for(;L.pos1&&ke(),ut+=rA.shift(),Bn(_A,ut);break;case 5:for(;rA.length>=2;)_A+=rA.shift(),ut+=rA.shift(),oA.lineTo(_A,ut);break;case 6:case 7:for(var en=6===we;rA.length>=1;)en?_A+=rA.shift():ut+=rA.shift(),oA.lineTo(_A,ut),en=!en;break;case 8:for(;rA.length>0;){var ve=_A+rA.shift(),Le=ut+rA.shift(),Se=ve+rA.shift(),_e=Le+rA.shift();_A=Se+rA.shift(),ut=_e+rA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut)}break;case 10:var Re=rA.pop()+Qe,Te=fe[Re];if(Te){yt[Re]=!0;var rn=L.pos,zn=aA;L.pos=Te.offset,aA=Te.offset+Te.length,je(),L.pos=rn,aA=zn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;rA.length>0&&ke(),Jt&&(oA.closePath(),Jt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");Oe=rA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!gn)throw new Error("blend operator in non-variation font");for(var fn=gn.getBlendVector(de,Oe),In=rA.pop(),On=In*fn.length,Kn=rA.length-On,Dn=Kn-In,pn=0;pn>3;break;case 21:rA.length>2&&ke(),_A+=rA.shift(),ut+=rA.shift(),Bn(_A,ut);break;case 22:rA.length>1&&ke(),Bn(_A+=rA.shift(),ut);break;case 24:for(;rA.length>=8;)ve=_A+rA.shift(),Le=ut+rA.shift(),Se=ve+rA.shift(),_e=Le+rA.shift(),_A=Se+rA.shift(),ut=_e+rA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);_A+=rA.shift(),ut+=rA.shift(),oA.lineTo(_A,ut);break;case 25:for(;rA.length>=8;)_A+=rA.shift(),ut+=rA.shift(),oA.lineTo(_A,ut);ve=_A+rA.shift(),Le=ut+rA.shift(),Se=ve+rA.shift(),_e=Le+rA.shift(),_A=Se+rA.shift(),ut=_e+rA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);break;case 26:for(rA.length%2&&(_A+=rA.shift());rA.length>=4;)ve=_A,Le=ut+rA.shift(),Se=ve+rA.shift(),_e=Le+rA.shift(),_A=Se,ut=_e+rA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut);break;case 27:for(rA.length%2&&(ut+=rA.shift());rA.length>=4;)ve=_A+rA.shift(),Le=ut,Se=ve+rA.shift(),_e=Le+rA.shift(),_A=Se+rA.shift(),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut=_e);break;case 28:rA.push(L.readInt16BE());break;case 29:Re=rA.pop()+Ae,(Te=te[Re])&&(Mt[Re]=!0,rn=L.pos,zn=aA,L.pos=Te.offset,aA=Te.offset+Te.length,je(),L.pos=rn,aA=zn);break;case 30:case 31:for(en=31===we;rA.length>=4;)en?(ve=_A+rA.shift(),Le=ut,Se=ve+rA.shift(),_e=Le+rA.shift(),ut=_e+rA.shift(),_A=Se+(1===rA.length?rA.shift():0)):(ve=_A,Le=ut+rA.shift(),Se=ve+rA.shift(),_e=Le+rA.shift(),_A=Se+rA.shift(),ut=_e+(1===rA.length?rA.shift():0)),oA.bezierCurveTo(ve,Le,Se,_e,_A,ut),en=!en;break;case 12:switch(we=L.readUInt8()){case 3:var Ke=rA.pop(),hn=rA.pop();rA.push(Ke&&hn?1:0);break;case 4:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke||hn?1:0);break;case 5:Ke=rA.pop(),rA.push(Ke?0:1);break;case 9:Ke=rA.pop(),rA.push(Math.abs(Ke));break;case 10:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke+hn);break;case 11:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke-hn);break;case 12:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke/hn);break;case 14:Ke=rA.pop(),rA.push(-Ke);break;case 15:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke===hn?1:0);break;case 18:rA.pop();break;case 20:var ia=rA.pop(),Gn=rA.pop();NA[Gn]=ia;break;case 21:Gn=rA.pop(),rA.push(NA[Gn]||0);break;case 22:var ra=rA.pop(),aa=rA.pop(),Jl=rA.pop(),Ol=rA.pop();rA.push(Jl<=Ol?ra:aa);break;case 23:rA.push(Math.random());break;case 24:Ke=rA.pop(),hn=rA.pop(),rA.push(Ke*hn);break;case 26:Ke=rA.pop(),rA.push(Math.sqrt(Ke));break;case 27:Ke=rA.pop(),rA.push(Ke,Ke);break;case 28:Ke=rA.pop(),hn=rA.pop(),rA.push(hn,Ke);break;case 29:(Gn=rA.pop())<0?Gn=0:Gn>rA.length-1&&(Gn=rA.length-1),rA.push(rA[Gn]);break;case 30:var zr=rA.pop(),nr=rA.pop();if(nr>=0)for(;nr>0;){for(var oa=rA[zr-1],Gr=zr-2;Gr>=0;Gr--)rA[Gr+1]=rA[Gr];rA[0]=oa,nr--}else for(;nr<0;){oa=rA[0];for(var Hr=0;Hr<=zr;Hr++)rA[Hr]=rA[Hr+1];rA[zr-1]=oa,nr++}break;case 34:ve=_A+rA.shift(),Le=ut,Se=ve+rA.shift(),_e=Le+rA.shift();var ir=Se+rA.shift(),rr=_e,ar=ir+rA.shift(),or=rr,sr=ar+rA.shift(),lr=or,cr=sr+rA.shift(),gr=lr;_A=cr,ut=gr,oA.bezierCurveTo(ve,Le,Se,_e,ir,rr),oA.bezierCurveTo(ar,or,sr,lr,cr,gr);break;case 35:for(var Mi=[],oo=0;oo<=5;oo++)_A+=rA.shift(),ut+=rA.shift(),Mi.push(_A,ut);oA.bezierCurveTo.apply(oA,Mi.slice(0,6)),oA.bezierCurveTo.apply(oA,Mi.slice(6)),rA.shift();break;case 36:ve=_A+rA.shift(),Le=ut+rA.shift(),Se=ve+rA.shift(),or=rr=_e=Le+rA.shift(),sr=(ar=(ir=Se+rA.shift())+rA.shift())+rA.shift(),lr=or+rA.shift(),cr=sr+rA.shift(),_A=cr,ut=gr=lr,oA.bezierCurveTo(ve,Le,Se,_e,ir,rr),oA.bezierCurveTo(ar,or,sr,lr,cr,gr);break;case 37:var sa=_A,so=ut;Mi=[];for(var lo=0;lo<=4;lo++)_A+=rA.shift(),ut+=rA.shift(),Mi.push(_A,ut);Math.abs(_A-sa)>Math.abs(ut-so)?(_A+=rA.shift(),ut=so):(_A=sa,ut+=rA.shift()),Mi.push(_A,ut),oA.bezierCurveTo.apply(oA,Mi.slice(0,6)),oA.bezierCurveTo.apply(oA,Mi.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(we))}break;default:throw new Error("Unknown op: ".concat(we))}else if(we<247)rA.push(we-139);else if(we<251){var la=L.readUInt8();rA.push(256*(we-247)+la+108)}else we<255?(la=L.readUInt8(),rA.push(256*-(we-251)-la-108)):rA.push(L.readInt32BE()/65536)}}(),Jt&&oA.closePath(),oA},G}(Lr),il=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(tA){return tA.parent.buflen-tA._currentOffset})}),rl=function(tA){function G(){return tA.apply(this,arguments)||this}f(G,tA);var V=G.prototype;return V.getImageForSize=function(x){for(var L=0;L=x)break}var aA=AA.imageOffsets,oA=aA[this.id],rA=aA[this.id+1];return oA===rA?null:(this._font.stream.pos=oA,il.decode(this._font.stream,{buflen:rA-oA}))},V.render=function(x,L){var AA=this.getImageForSize(L);null!=AA&&x.image(AA.data,{height:L,x:AA.originX,y:L/this._font.unitsPerEm*(this.bbox.minY-AA.originY)}),this._font.sbix.flags.renderOutlines&&tA.prototype.render.call(this,x,L)},G}(br),Va=function(G,V){this.glyph=G,this.color=V},al=function(tA){function G(){return tA.apply(this,arguments)||this}f(G,tA);var V=G.prototype;return V._getBBox=function(){for(var x=new bi,L=0;L>1;if(this.id<(rA=L.baseGlyphRecord[oA]).gid)aA=oA-1;else{if(!(this.id>rA.gid)){var NA=rA;break}AA=oA+1}}if(null==NA){var jA=this._font._getBaseGlyph(this.id);return[new Va(jA,ct={red:0,green:0,blue:0,alpha:255})]}for(var _A=[],ut=NA.firstLayerIndex;ut=1&&x[L]=L.glyphCount)){var AA=L.offsets[p];if(AA!==L.offsets[p+1]){var aA=this.font.stream;if(aA.pos=AA,!(aA.pos>=aA.length)){var oA=aA.readUInt16BE(),rA=AA+aA.readUInt16BE();if(32768&oA){var NA=aA.pos;aA.pos=rA;var jA=this.decodePoints();rA=aA.pos,aA.pos=NA}var ct=x.map(function(fn){return fn.copy()});oA&=4095;for(var _A=0;_A=L.globalCoordCount)throw new Error("Invalid gvar table");yt=L.globalCoords[4095&Mt]}if(16384&Mt){for(var te=[],Ae=0;AeMath.max(0,x[NA]))return 0;rA=(rA*aA[NA]+Number.EPSILON)/(x[NA]+Number.EPSILON)}else{if(aA[NA]AA[NA])return 0;rA=aA[NA]oA)){var NA=AA,jA=AA;for(AA++;AA<=oA;)L[AA]&&(this.deltaInterpolate(jA+1,AA-1,jA,AA,x,p),jA=AA),AA++;jA===NA?this.deltaShift(aA,oA,jA,x,p):(this.deltaInterpolate(jA+1,oA,jA,NA,x,p),NA>0&&this.deltaInterpolate(aA,NA-1,jA,NA,x,p)),AA=oA+1}}},G.deltaInterpolate=function(p,x,L,AA,aA,oA){if(!(p>x))for(var rA=["x","y"],NA=0;NAaA[AA][jA]){var ct=L;L=AA,AA=ct}var _A=aA[L][jA],ut=aA[AA][jA],Mt=oA[L][jA],yt=oA[AA][jA];if(_A!==ut||Mt===yt)for(var Jt=_A===ut?0:(yt-Mt)/(ut-_A),te=p;te<=x;te++){var Ae=aA[te][jA];Ae<=_A?Ae+=Mt-_A:Ae>=ut?Ae+=yt-ut:Ae=Mt+(Ae-_A)*Jt,oA[te][jA]=Ae}}},G.deltaShift=function(p,x,L,AA,aA){var oA=aA[L].x-AA[L].x,rA=aA[L].y-AA[L].y;if(0!==oA||0!==rA)for(var NA=p;NA<=x;NA++)NA!==L&&(aA[NA].x+=oA,aA[NA].y+=rA)},G.getAdvanceAdjustment=function(p,x){var L,AA;if(x.advanceWidthMapping){var aA=p;aA>=x.advanceWidthMapping.mapCount&&(aA=x.advanceWidthMapping.mapCount-1);var rA=x.advanceWidthMapping.mapData[aA];L=rA.outerIndex,AA=rA.innerIndex}else L=0,AA=p;return this.getDelta(x.itemVariationStore,L,AA)},G.getDelta=function(p,x,L){if(x>=p.itemVariationData.length)return 0;var AA=p.itemVariationData[x];if(L>=AA.deltaSets.length)return 0;for(var aA=AA.deltaSets[L],oA=this.getBlendVector(p,x),rA=0,NA=0;NA_A.peakCoord||_A.peakCoord>_A.endCoord||_A.startCoord<0&&_A.endCoord>0&&0!==_A.peakCoord||0===_A.peakCoord?1:AA[ct]<_A.startCoord||AA[ct]>_A.endCoord?0:AA[ct]===_A.peakCoord?1:AA[ct]<_A.peakCoord?(AA[ct]-_A.startCoord+Number.EPSILON)/(_A.peakCoord-_A.startCoord+Number.EPSILON):(_A.endCoord-AA[ct]+Number.EPSILON)/(_A.endCoord-_A.peakCoord+Number.EPSILON)}aA[oA]=rA}return this.blendVectors.set(L,aA),aA},tA}(),hl=Promise.resolve(),_a=function(){function tA(V){this.font=V,this.glyphs=[],this.mapping={},this.includeGlyph(0)}var G=tA.prototype;return G.includeGlyph=function(p){return"object"==typeof p&&(p=p.id),null==this.mapping[p]&&(this.glyphs.push(p),this.mapping[p]=this.glyphs.length-1),this.mapping[p]},G.encodeStream=function(){var p=this,x=new e.EncodeStream;return hl.then(function(){return p.encode(x),x.end()}),x},tA}(),$a=function(){function tA(){}return tA.size=function(V){return V>=0&&V<=255?1:2},tA.encode=function(V,p){p>=0&&p<=255?V.writeUInt8(p):V.writeInt16BE(p)},tA}(),Ao=new e.Struct({numberOfContours:e.int16,xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,endPtsOfContours:new e.Array(e.uint16,"numberOfContours"),instructions:new e.Array(e.uint8,e.uint16),flags:new e.Array(e.uint8,0),xPoints:new e.Array($a,0),yPoints:new e.Array($a,0)}),Ml=function(){function tA(){}var G=tA.prototype;return G.encodeSimple=function(p,x){void 0===x&&(x=[]);for(var L=[],AA=[],aA=[],oA=[],rA=0,NA=0,jA=0,ct=0,_A=0,ut=0;ut0&&(oA.push(rA),rA=0),oA.push(Ae),ct=Ae),NA=Jt,jA=te,_A++}"closePath"===Mt.command&&L.push(_A-1)}p.commands.length>1&&"closePath"!==p.commands[p.commands.length-1].command&&L.push(_A-1);var de=p.bbox,Oe={numberOfContours:L.length,xMin:de.minX,yMin:de.minY,xMax:de.maxX,yMax:de.maxY,endPtsOfContours:L,instructions:x,flags:oA,xPoints:AA,yPoints:aA},gn=Ao.size(Oe),ke=4-gn%4,ge=new e.EncodeStream(gn+ke);return Ao.encode(ge,Oe),0!==ke&&ge.fill(0,ke),ge.buffer},G._encodePoint=function(p,x,L,AA,aA,oA){var rA=p-x;return p===x?AA|=oA:(-255<=rA&&rA<=255&&(AA|=aA,rA<0?rA=-rA:AA|=oA),L.push(rA)),AA},tA}(),ml=function(tA){function G(p){var x;return(x=tA.call(this,p)||this).glyphEncoder=new Ml,x}f(G,tA);var V=G.prototype;return V._addGlyph=function(x){var L=this.font.getGlyph(x),AA=L._decode(),aA=this.font.loca.offsets[x],oA=this.font.loca.offsets[x+1],rA=this.font._getTableStream("glyf");rA.pos+=aA;var NA=rA.readBuffer(oA-aA);if(AA&&AA.numberOfContours<0){NA=c.from(NA);for(var ct,jA=B(AA.components);!(ct=jA()).done;){var _A=ct.value;x=this.includeGlyph(_A.glyphID),NA.writeUInt16BE(x,_A.pos)}}else AA&&this.font._variationProcessor&&(NA=this.glyphEncoder.encodeSimple(L.path,AA.instructions));return this.glyf.push(NA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:L.advanceWidth,bearing:L._getMetrics().leftBearing}),this.offset+=NA.length,this.glyf.length-1},V.encode=function(x){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var L=0;L255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},AA=Object.assign({},this.cff.topDict);AA.Private=null,AA.charset=L,AA.Encoding=null,AA.CharStrings=this.charstrings;for(var aA=0,oA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];aA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,L)})}}tA.probe=function(p){var x=p.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var G=tA.prototype;return G.setDefaultLanguage=function(p){void 0===p&&(p=null),this.defaultLanguage=p},G._getTable=function(p){if(!(p.tag in this._tables))try{this._tables[p.tag]=this._decodeTable(p)}catch(x){D.logErrors&&(console.error("Error decoding table ".concat(p.tag)),console.error(x.stack))}return this._tables[p.tag]},G._getTableStream=function(p){var x=this.directory.tables[p];return x?(this.stream.pos=x.offset,this.stream):null},G._decodeDirectory=function(){return this.directory=Er.decode(this.stream,{_startOffset:0})},G._decodeTable=function(p){var x=this.stream.pos,L=this._getTableStream(p.tag),AA=ce[p.tag].decode(L,this,p.length);return this.stream.pos=x,AA},G.getName=function(p,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var L=this.name&&this.name.records[p];return L&&(L[x]||L[this.defaultLanguage]||L[D.defaultLanguage]||L.en||L[Object.keys(L)[0]])||null},G.hasGlyphForCodePoint=function(p){return!!this._cmapProcessor.lookup(p)},G.glyphForCodePoint=function(p){return this.getGlyph(this._cmapProcessor.lookup(p),[p])},G.glyphsForString=function(p){for(var x=[],L=p.length,AA=0,aA=-1,oA=-1;AA<=L;){var rA=0,NA=0;if(AA>>6&3},transformed:function(G){return"glyf"===G.tag||"loca"===G.tag?0===G.transformVersion:0!==G.transformVersion},transformLength:new e.Optional(eo,function(tA){return tA.transformed})}),no=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(Fl,"numTables")});no.process=function(){for(var tA={},G=0;G0){for(var rA=[],NA=0,jA=0;jA>7);if((rA&=127)<10)aA=0,oA=ai(rA,((14&rA)<<7)+G.readUInt8());else if(rA<20)aA=ai(rA,((rA-10&14)<<7)+G.readUInt8()),oA=0;else if(rA<84)aA=ai(rA,1+(48&(jA=rA-20))+((ct=G.readUInt8())>>4)),oA=ai(rA>>1,1+((12&jA)<<2)+(15&ct));else if(rA<120){var jA;aA=ai(rA,1+((jA=rA-84)/12<<8)+G.readUInt8()),oA=ai(rA>>1,1+(jA%12>>2<<8)+G.readUInt8())}else if(rA<124){var ct=G.readUInt8(),_A=G.readUInt8();aA=ai(rA,(ct<<4)+(_A>>4)),oA=ai(rA>>1,((15&_A)<<8)+G.readUInt8())}else aA=ai(rA,G.readUInt16BE()),oA=ai(rA>>1,G.readUInt16BE());L.push(new ui(NA,!1,x+=aA,p+=oA))}return L}var Ul=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Pl=function(){function tA(V){if(this.stream=V,"ttcf"!==V.readString(4))throw new Error("Not a TrueType collection");this.header=Ul.decode(V)}return tA.probe=function(p){return"ttcf"===p.toString("ascii",0,4)},tA.prototype.getFont=function(p){for(var L,x=B(this.header.offsets);!(L=x()).done;){var AA=L.value,aA=new e.DecodeStream(this.stream.buffer);aA.pos=AA;var oA=new Ti(aA);if(oA.postscriptName===p)return oA}return null},l(tA,[{key:"fonts",get:function(){for(var L,p=[],x=B(this.header.offsets);!(L=x()).done;){var AA=L.value,aA=new e.DecodeStream(this.stream.buffer);aA.pos=AA,p.push(new Ti(aA))}return p}}]),tA}(),Rl=new e.String(e.uint8),Ll=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),bl=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Ll,function(tA){return tA.maxTypeIndex+1}),{type:"parent"})}),zl=new e.Struct({length:e.uint16,types:new e.Array(bl,function(tA){return tA.length+1})}),Gl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,zl),nameListOffset:new e.Pointer(e.uint16,"void")}),ao=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Gl),dataLength:e.uint32,mapLength:e.uint32}),Hl=function(){function tA(V){this.stream=V,this.header=ao.decode(this.stream);for(var x,p=B(this.header.map.typeList.types);!(x=p()).done;){for(var aA,L=x.value,AA=B(L.refList);!(aA=AA()).done;){var oA=aA.value;oA.nameOffset>=0?(this.stream.pos=oA.nameOffset+this.header.map.nameListOffset,oA.name=Rl.decode(this.stream)):oA.name=null}"sfnt"===L.name&&(this.sfnt=L)}}return tA.probe=function(p){var x=new e.DecodeStream(p);try{var L=ao.decode(x)}catch(rA){return!1}for(var aA,AA=B(L.map.typeList.types);!(aA=AA()).done;)if("sfnt"===aA.value.name)return!0;return!1},tA.prototype.getFont=function(p){if(!this.sfnt)return null;for(var L,x=B(this.sfnt.refList);!(L=x()).done;){var oA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+L.value.dataOffset+4)),rA=new Ti(oA);if(rA.postscriptName===p)return rA}return null},l(tA,[{key:"fonts",get:function(){for(var L,p=[],x=B(this.sfnt.refList);!(L=x()).done;){var oA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+L.value.dataOffset+4));p.push(new Ti(oA))}return p}}]),tA}();D.registerFormat(Ti),D.registerFormat(Dl),D.registerFormat(io),D.registerFormat(Pl),D.registerFormat(Hl),S.exports=D},7337:function(S,I,n){"use strict";var c=n(4781),r=n(9742),s=n(2055),l=s.BK,f=s.CR,a=s.LF,B=s.NL,E=s.SG,u=s.WJ,C=s.SP,e=s.ZWJ,h=s.BA,g=s.HY,w=s.NS,Q=s.AI,m=s.AL,Y=s.CJ,y=s.HL,d=s.RI,v=s.SA,D=s.XX,R=n(8383),N=R.DI_BRK,F=R.IN_BRK,b=R.CI_BRK,P=R.CP_BRK,sA=R.pairTable,BA=new c(r.toByteArray("AAgOAAAAAACA3QAAAe0OEvHtnXuMXUUdx+d2d2/33r237V3YSoFC11r6IGgbRFBEfFF5KCVCMYKFaKn8AYqmwUeqECFabUGQipUiNCkgSRElUkKwJRWtwSpJrZpCI4E2NQqiBsFGwWL8Tu6Md3Z23o9zbund5JM5c+b1m9/85nnOuXtTHyFrwXpwL9gBngTPgj+Dv4H9Ae4B0N9PSAMcDqaB0X57urmIs8AQ72SEnQ4+ABaBxWAJWAquENJ9BtdfANeCleBGcCv4NvgeuBv8AGwCm8FWlpbzOPw7wC7wFNgDngMvgpfAq2DCACF10ACHgaPAzIF2+PFwT2Th1P8OuO8FZ4MPggvAxWAp+A6VHe5ysILFvx7u6oF2+Wvg3g7uYvlT+TbC/TH4CdgCtoGtfW3/E2An8++Gu5eleR7uP8B+8BoLf4LFH6i23Vp1rB5a1Q7TGMeCUYYY18RcxF0gxT8H5b3dIw8X3iPkdxauPwQWgyVgWbVT30/h+mrwZan8r8L/FcEWVsJ/E1grpKXcwdLdI9y/H9cPgUerbbun0PadCHcbjQd+D55mafcx9y9wXwKvCLJUJiLdRH09ef4xupqE/KeCY8Bx4M3gbeBdYCE4G3wYXASWgGXgSibTcuaugHs9WA3WgNvBBha2Ee4D4GFNPTYL9x/D9XaJXwnXvwW7wDPgTzQd2A9eAwODhDTBCJgOZoETwEngtEFmF3DPAouY/0K4Swb9dbaMpbkS7nKP9CsCyrpOSrNK8K9kNnYL7q0DGwbb/XnjoDv3gQfBZvBz8GvwO/AHdr3Pkv4F4fplj3J79OgRBx8HypajR48ePXr06NGjx8HFv7pABhX/HRx7HqKjr9Y+y6PXg7X2WRoPm1Kzpz8CcWaweLPhHt/fPq95C65PZnmfDnchOLfWPo/7OLgQ15ewdJ+E++na2PMhyudw72bDGc01CP8aWAm+Dr4BVoHV4IZeWC+sF9YL64UlD1sD1oE7au0z0zK5p1YuZde/R49uJnYdez/62EPgkVr4c7pHkfYXivTbcW8n2A32gOekOH+F/5/gAOivE9IArXpbrmlwR+vljz9bJrV552RCvgQ2GXgRzJ9CyGVTxofdLd17Gv6jW4RcAG5ote/9FO4B8NZhQs4DN4O9kOFY6OFSsB48C/qGCFkAyERCzh9q+0WuA2sqHX4m+Smv4t6RjXYelItwvQ7sBtOahHwU3NYcn+5Q4pFmRz89evTocajxStM898/FfLSgrg8/sT5+zcLDTkXY+6S0C+E/l907SXO+Rt/Lujrxe1kmztPU70JDvSmXILwJWS9TxLuC3VtuycPGCoV+VfD41yvKW6W4d1O9/S5YtZ+Qtbi+k/m/D/eHYBPzb4G7DfyS+enZ42/qnXPFp+pjZdgD/yX0XcV6+93DF+H+G5AhtcxPIs/BoY5cg0g7RRGXx/8Ewo8Y6vhp/Bnwz2F5zId7CgunZ6Dv1uTF0585pNY7P9NdhPCPDI1Ncyn8l4OrwHKwguVB12WrNPnpoPW5BWluA3eCuxRl3cfyfFCom43NBjkeQ9h2Tzlzs7PL5CmD3UwHew26+KMm7AVHu8hJaL1fTtj29L3E/wi6oPvWvkY7bAjucKOYtpymKWdGo/3e5KxGR8YTGvmfZ4XW46RGmnMIG6excs6Ae46nPuh7pGXbvm/fOB91vLhRXvkmlkKuK8BnFTb8xYL6TyqugbzXJZCZ9tlVrO9+C+53G5134A8G1htsjdbvXoT/KEBPmwq04dS2v6UxNnxbAXV5gul4Z6J+tMtBZtv4+Qzy2Ndof+fwPHP/zsbg/QFz02tIM4B9ZRO0mp379NxxBpgD5gv3T8H16eAMcCZYxMIWw/2YEG8pri9n/qvgfr45fm67VtjPzmbpVrJ7NzL3VrjvF/Jdh+sN3M/cB+A+LOV/bVNdX13b0G9KtmrSHCo8jvqfGjFu7WiWP37E8s2+yv8ZwVbYRgvMAm9kvMkhjStzAZbIBGIR+ngAy2NSZ9f0Hv2bIIShCckU5k5sb+OdGGQ0BKqSPzeE1WFCgWXK5dO2rDD/COn9zTvEUfXJ4zT3c9DP2oH2+ZoAtc9RBr/mY0SLdGyap+Nxh6W0In2Sn5C8/W00c/7dXn63we1DtAHud9WZbFNimmFL2iIoqt8eDPQHptERIkNoO8prFVvblm13OaG6oGM+n7P4/RrRz2HdTktotxHFdZW5tvm72UWEtm9dQF6n++hU1FmVFL++L2Nsdt3/1IVrWaacda4Se91t+pHDVXF5HFd9pG7X14NNyePr6wkfPTRI+H6qDPvLqRM5DR2beZ8W95Divq0IWXXyy/d18Yq09ZhyY/fyPjafY37yta8ybD9l3W15+crXYhQ5rsj2Wkb7iDadon1c+tKI4p5NR6HjPl/vqvLm92uK8lTjWNntkwJTu9hkiJmHVf3S1V5UOii6PWL1nVqOkP5QI/b2L2o+Kqr/h9i0bHNl9HudnKn0btKBbZzItQ7n47Drmutg6P+ubZK7/5va0PU8XZS56DP4Isci07gUo3/fscdlfMyp6xR6dy0vt/275K1bJ8qkHI99bdK3v4vt4Gtzs7sEWa5aZH4NDz3yfWG368bXLlQ6GZYQ7/UL1y3mryroZ+nkZwK28SD1vlt+7sNd+lcR3Ji1RKq1WcvhftFzousYxftH7Ngu2pZubcGfD8eMizp5Y/uha/m69NNK5siSOapkcq2lTOOGvE4y9aPclFl20eXTvwoZO374ymob90Jx3Zfk2h/I849q7VNE+WXsj+ZFlJ96Xcd1PyD4ue2J69/Q9V+u9uPrQC7/sHRftjE+n+eQP2Ztl5Kc+0TX/WND8vP2iF23xO7lfO3XtKfLhUm/PE6Ze78RD/3Fknr8i907yWsoUx+M3S+0SNjcHyu7qg6+aYvqF671TLXfTzU+2uaTnOOzbFc+7yHoZE59npIL175kay/ZxlKMH6a+NSJdl90XKXytpbMpTr/kP5zJfqxQDzneYWTstxh9pPPdYJ/CL8alTBag+fFvHFXtQMutWxBloOUMMHS6GWSyVYS4pvgmexXtVjc/TFWk9ZnnZLt3+caI10/8Xkb+hsYlfeh+QOyPNQN1S7hv2nqivEVSj/Ex+1lu73Ib1olbu4jpfN4ddbWbHN+/mcpWfUem+g7RhK4833SuepHbN0d5PjKF1kUll3xPFc5d+btTW9uqdCHXwaQ7kw252ENIW9vKTdEfTLox+VPYT6r8XXUWq7tYuXyZnEAG+ic+pwyVdRLDp8wcOp0kEZNXzLyqw3f+yEkjMI1sFznk8ulDKcoKlcFVlz75qPyu9+U8YuvnqnfXNDn6t6neNr3xfHj4JEU500ma8SSkjjodptBlTLurbI7rTxUnhcxF6d9W76KRbd6G3DdVNj2qia/qD3KY2O90elLJocpHJc90Q7kqVLqaLlGUjYj+Pg00jD8Xk+Wnf5UAN8c8HGrvXKYi+4irnsoo09ctU29Fll2UraSyaxnTOar8DFw+w60St+cRNlzfm9E9y9CNUTZM5/7iOTWR6imOgaKf/pn6hJw/f8dDdS6u0tNhDN1ZOlGUoauTrqyQNvCd21Mjy8N/T7AixBkQrm3tRKS0tngDwrWYzobuLFwXV3WfP5uR9TGTXdvc3BRVjq18l3rbwmaS8c9QByR4m3Sb/lPVX2V/M4naDkV79GFmJDad2NaLOdpBpxsbvs+/YubgVPO5bn3h+75BahnEOU/EVb+yTL7vQeTQp04GH/twfTYaCv9ehe8XXdZ0Ic+IY94Hcik/9h0Zk35c7MdWXo737HM/y6dllPENj9zeuvq7vMMYam88fZnfU7nOHznf6/AdP+W8ffXv2q6uelDlE1N/Wx+Prb/MG8ARBVJ0eb7rz5Tf6sl5l/G9nizDnJLJudZoaNqU/hbsCPH73dhu+03aWPiZhW9/yLHf8IGvT1OtzwZJ56yG/7YvX5sSdn+yof6x5av2ebxcV1dOZ9pDVgSXys/36uLzG1s5Nvj7pKo9axm2zsueylxeT1lWlQ4rkuuzx5f3+VXPPGIhgbLnKp/rtiJdcz2lOtMpAtMZV27E/kRttyaF83dFbf3NdYwXx6sZpH0uVkZ/VslmOrspa24V1+O56u3TdmXpQdaJy36wLPm4LZVR7jyp/CLOmULtzeWZoqstuLS9rhzTmqwIe3LVia0f2OSP3c/71Ec8V0itv6JtONbOXdb3Oc5YdcTaQVFzRWg7+z6HydnHy+qPoWO+j1yq8anofifWl7ri97chNiq/z6KyM37t8333sJR/SF/3bUvd+z+8nV3KNPWfIvt3mfNZijFAZT8xfXSekLfOtl3rHCuPzxrEdT7U9UvRjn3HKV5/XTuo2i3n+E3L5L+3yN+TkH+z07ZGDlkviuXLcX3aL7b+8m+duhCzJonp/yF9wabPItZhJmJ/N8pVfvn31Fok7PeiYsalFON4bPnyuOO7Ru2G+S52fqB5DAt55bJtXf2LtJdQParCVevHlqcufduvKJuQ5yxxvA/Zw6W0l5D3+nz7a4wdieXxd+FS2SjPN7Z9XXDRp62/dMv4GTM22uwx1/iTe7zTUSfjf1Mqld36EHv2xvPoprMnGfGvIiDHk+/x+EQTP7fMOjl928f0/855OTnaJ5XeQsevVHNojO5147ePXLH681mDqOBhqef/Ivp+7PMF1Vxs02kMITLK30zp/k+FbX1RdP/w1b2OMt9hiR1bKLHfZ+XWT+4+ahqzVM8iUug81r5tfTf3+JB6DPFpk1zllLUu9523cpPLdlR6zTVP+bShGFd1lh/Td33rVdT44WqTtjqktOtc87osc8x5hM9vyLrK49v+Pvmp7De0/vyvLJvk1C3+1OOyLyG/aSSud1L/TlLq/BoZ5M2xNj66IFRlT9fcT4GqDYosQ3df/G0zlR5U4UVzjAJZPpW8NlLI5lOejzwq+eS4rnWZbsjTx7ZUrq4sXdrQPmAa82Pb0HVuyZl3rrrZ7Nal/ULzdy0zBUXrMaQcU18v6ncmxd9eM/1fkdQ24Tvu+paZ2q5S6z13+anlTyVfrv4aWz/desfFfn3WEj727rNGKHJdlqsM1VompjzT+shXv7F75dj3J3K3qY7QM7DcZ2L/Aw==")),MA=function(FA){switch(FA){case Q:case v:case E:case D:return m;case Y:return w;default:return FA}},lA=function(FA){switch(FA){case a:case B:return l;case C:return u;default:return FA}},cA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};S.exports=function(){function xA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var FA=xA.prototype;return FA.nextCodePoint=function(){var pA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=pA&&pA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(pA-55296)+(uA-56320)+65536):pA},FA.nextCharClass=function(){return MA(BA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case B:return this.curClass=l,!1;case f:return this.curClass=f,!1}return null},FA.getPairTableBreak=function(pA){var uA=!1;switch(sA[this.curClass][this.nextClass]){case N:uA=!0;break;case F:uA=pA===C;break;case b:if(!(uA=pA===C))return!1;break;case P:if(pA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==g&&this.curClass!==h?this.LB21a=this.curClass===y:(uA=!1,this.LB21a=!1),this.curClass===d?(this.LB30a++,2==this.LB30a&&this.nextClass===d&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},FA.nextBreak=function(){if(null==this.curClass){var pA=this.nextCharClass();this.curClass=lA(pA),this.nextClass=pA,this.LB8a=pA===e,this.LB30a=0}for(;this.pos=XA)return $;switch($){case"%s":return String(zA[SA++]);case"%d":return Number(zA[SA++]);case"%j":try{return JSON.stringify(zA[SA++])}catch(W){return"[Circular]"}default:return $}}),O=zA[SA];SA=3&&(SA.depth=arguments[2]),arguments.length>=4&&(SA.colors=arguments[3]),y(dA)?SA.showHidden=dA:dA&&I._extend(SA,dA),F(SA.showHidden)&&(SA.showHidden=!1),F(SA.depth)&&(SA.depth=2),F(SA.colors)&&(SA.colors=!1),F(SA.customInspect)&&(SA.customInspect=!0),SA.colors&&(SA.stylize=E),e(SA,uA,SA.depth)}function E(uA,dA){var SA=B.styles[dA];return SA?"\x1b["+B.colors[SA][0]+"m"+uA+"\x1b["+B.colors[SA][1]+"m":uA}function u(uA,dA){return uA}function e(uA,dA,SA){if(uA.customInspect&&dA&&q(dA.inspect)&&dA.inspect!==I.inspect&&(!dA.constructor||dA.constructor.prototype!==dA)){var zA=dA.inspect(SA,uA);return R(zA)||(zA=e(uA,zA,SA)),zA}var XA=function h(uA,dA){if(F(dA))return uA.stylize("undefined","undefined");if(R(dA)){var SA="'"+JSON.stringify(dA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(SA,"string")}return D(dA)?uA.stylize(""+dA,"number"):y(dA)?uA.stylize(""+dA,"boolean"):d(dA)?uA.stylize("null","null"):void 0}(uA,dA);if(XA)return XA;var X=Object.keys(dA),O=function C(uA){var dA={};return uA.forEach(function(SA,zA){dA[SA]=!0}),dA}(X);if(uA.showHidden&&(X=Object.getOwnPropertyNames(dA)),sA(dA)&&(X.indexOf("message")>=0||X.indexOf("description")>=0))return g(dA);if(0===X.length){if(q(dA))return uA.stylize("[Function"+(dA.name?": "+dA.name:"")+"]","special");if(b(dA))return uA.stylize(RegExp.prototype.toString.call(dA),"regexp");if(eA(dA))return uA.stylize(Date.prototype.toString.call(dA),"date");if(sA(dA))return g(dA)}var EA,W="",hA=!1,DA=["{","}"];return Y(dA)&&(hA=!0,DA=["[","]"]),q(dA)&&(W=" [Function"+(dA.name?": "+dA.name:"")+"]"),b(dA)&&(W=" "+RegExp.prototype.toString.call(dA)),eA(dA)&&(W=" "+Date.prototype.toUTCString.call(dA)),sA(dA)&&(W=" "+g(dA)),0!==X.length||hA&&0!=dA.length?SA<0?b(dA)?uA.stylize(RegExp.prototype.toString.call(dA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(dA),EA=hA?function w(uA,dA,SA,zA,XA){for(var X=[],O=0,$=dA.length;O<$;++O)xA(dA,String(O))?X.push(Q(uA,dA,SA,zA,String(O),!0)):X.push("");return XA.forEach(function(W){W.match(/^\d+$/)||X.push(Q(uA,dA,SA,zA,W,!0))}),X}(uA,dA,SA,O,X):X.map(function(GA){return Q(uA,dA,SA,O,GA,hA)}),uA.seen.pop(),function m(uA,dA,SA){return uA.reduce(function(X,O){return O.indexOf("\n"),X+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?SA[0]+(""===dA?"":dA+"\n ")+" "+uA.join(",\n ")+" "+SA[1]:SA[0]+dA+" "+uA.join(", ")+" "+SA[1]}(EA,W,DA)):DA[0]+W+DA[1]}function g(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,dA,SA,zA,XA,X){var O,$,W;if((W=Object.getOwnPropertyDescriptor(dA,XA)||{value:dA[XA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),xA(zA,XA)||(O="["+XA+"]"),$||(uA.seen.indexOf(W.value)<0?($=d(SA)?e(uA,W.value,null):e(uA,W.value,SA-1)).indexOf("\n")>-1&&($=X?$.split("\n").map(function(hA){return" "+hA}).join("\n").substr(2):"\n"+$.split("\n").map(function(hA){return" "+hA}).join("\n")):$=uA.stylize("[Circular]","special")),F(O)){if(X&&XA.match(/^\d+$/))return $;(O=JSON.stringify(""+XA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.substr(1,O.length-2),O=uA.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=uA.stylize(O,"string"))}return O+": "+$}function Y(uA){return Array.isArray(uA)}function y(uA){return"boolean"==typeof uA}function d(uA){return null===uA}function D(uA){return"number"==typeof uA}function R(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function b(uA){return P(uA)&&"[object RegExp]"===MA(uA)}function P(uA){return"object"==typeof uA&&null!==uA}function eA(uA){return P(uA)&&"[object Date]"===MA(uA)}function sA(uA){return P(uA)&&("[object Error]"===MA(uA)||uA instanceof Error)}function q(uA){return"function"==typeof uA}function MA(uA){return Object.prototype.toString.call(uA)}function lA(uA){return uA<10?"0"+uA.toString(10):uA.toString(10)}I.debuglog=function(uA){if(uA=uA.toUpperCase(),!l[uA])if(f.test(uA)){var dA=c.pid;l[uA]=function(){var SA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,dA,SA)}}else l[uA]=function(){};return l[uA]},I.inspect=B,B.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},B.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=Y,I.isBoolean=y,I.isNull=d,I.isNullOrUndefined=function v(uA){return null==uA},I.isNumber=D,I.isString=R,I.isSymbol=function N(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=b,I.types.isRegExp=b,I.isObject=P,I.isDate=eA,I.types.isDate=eA,I.isError=sA,I.types.isNativeError=sA,I.isFunction=q,I.isPrimitive=function BA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var cA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gA(){var uA=new Date,dA=[lA(uA.getHours()),lA(uA.getMinutes()),lA(uA.getSeconds())].join(":");return[uA.getDate(),cA[uA.getMonth()],dA].join(" ")}function xA(uA,dA){return Object.prototype.hasOwnProperty.call(uA,dA)}I.log=function(){console.log("%s - %s",gA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,dA){if(!dA||!P(dA))return uA;for(var SA=Object.keys(dA),zA=SA.length;zA--;)uA[SA[zA]]=dA[SA[zA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,dA){if(!uA){var SA=new Error("Promise was rejected with a falsy value");SA.reason=uA,uA=SA}return dA(uA)}I.promisify=function(dA){if("function"!=typeof dA)throw new TypeError('The "original" argument must be of type Function');if(FA&&dA[FA]){var SA;if("function"!=typeof(SA=dA[FA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(SA,FA,{value:SA,enumerable:!1,writable:!1,configurable:!0}),SA}function SA(){for(var zA,XA,X=new Promise(function(W,hA){zA=W,XA=hA}),O=[],$=0;$1?D.attr[v[1]]:D.val},r.prototype.toString=function(d){return this.toStringWithIndent("",d)},r.prototype.toStringWithIndent=function(d,v){var D=d+"<"+this.name,R=v&&v.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+Y(this.attr[F])+'"');if(1===this.children.length&&"element"!==this.children[0].type)D+=">"+this.children[0].toString(v)+"";else if(this.children.length){D+=">"+R;for(var b=d+(v&&v.compressed?"":" "),P=0,eA=this.children.length;P"}else v&&v.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?D+="/>":D+=">":D+="/>";return D},s.prototype.toString=function(d){return y(Y(this.text),d)},s.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},l.prototype.toString=function(d){return""},l.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},f.prototype.toString=function(d){return"\x3c!--"+y(Y(this.comment),d)+"--\x3e"},f.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},r.prototype.type="element",s.prototype.type="text",l.prototype.type="cdata",f.prototype.type="comment",function m(d,v){for(var D in v)v.hasOwnProperty(D)&&(d[D]=v[D])}(a.prototype,r.prototype),a.prototype._opentag=function(d){void 0===this.children?r.call(this,d):r.prototype._opentag.apply(this,arguments)},a.prototype._doctype=function(d){this.doctype+=d};var B=null;function u(){B[0]&&B[0]._opentag.apply(B[0],arguments)}function C(){B[0]&&B[0]._closetag.apply(B[0],arguments)}function e(){B[0]&&B[0]._text.apply(B[0],arguments)}function h(){B[0]&&B[0]._cdata.apply(B[0],arguments)}function g(){B[0]&&B[0]._comment.apply(B[0],arguments)}function w(){B[0]&&B[0]._doctype.apply(B[0],arguments)}function Q(){B[0]&&B[0]._error.apply(B[0],arguments)}function Y(d){return d.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function y(d,v){var D=d;return v&&v.trimmed&&d.length>25&&(D=D.substring(0,25).trim()+"\u2026"),v&&v.preserveWhitespace||(D=D.trim()),D}S.exports&&!n.g.xmldocAssumeBrowser?S.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(S,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function r(s){this.fs=s,this.resolving={}}r.prototype.resolve=function(s,l){if(!this.resolving[s]){var f=this;this.resolving[s]=new Promise(function(a,B){0===s.toLowerCase().indexOf("https://")||0===s.toLowerCase().indexOf("http://")?function(s,l){return new Promise(function(f,a){var B=new XMLHttpRequest;for(var E in B.open("GET",s,!0),l)B.setRequestHeader(E,l[E]);B.responseType="arraybuffer",B.onreadystatechange=function(){4===B.readyState&&(B.status>=200&&B.status<300||setTimeout(function(){a(new TypeError('Failed to fetch (url: "'+s+'")'))},0))},B.onload=function(){B.status>=200&&B.status<300&&f(B.response)},B.onerror=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+s+'")'))},0)},B.ontimeout=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+s+'")'))},0)},B.send()})}(s,l).then(function(E){f.fs.writeFileSync(s,E),a()},function(E){B(E)}):a()})}return this.resolving[s]},r.prototype.resolved=function(){var s=this;return new Promise(function(l,f){Promise.all(Object.values(s.resolving)).then(function(){l()},function(a){f(a)})})},S.exports=r},4275:function(S,I,n){"use strict";var c=n(8823).Buffer,r=n(6225).isFunction,s=n(6225).isUndefined,a=(n(6225),n(1818).saveAs),B={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,h,g){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=h||B,this.vfs=g}E.prototype._createDoc=function(C,e){var h=function(R){return"object"==typeof R?{url:R.url,headers:R.headers}:{url:R,headers:{}}};C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var w=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!r(e))return w.createPdfKitDocument(this.docDefinition,C);var Y=new(n(6255))(n(3857));for(var y in this.fonts)if(this.fonts.hasOwnProperty(y)){if(this.fonts[y].normal){var d=h(this.fonts[y].normal);Y.resolve(d.url,d.headers),this.fonts[y].normal=d.url}this.fonts[y].bold&&(d=h(this.fonts[y].bold),Y.resolve(d.url,d.headers),this.fonts[y].bold=d.url),this.fonts[y].italics&&(d=h(this.fonts[y].italics),Y.resolve(d.url,d.headers),this.fonts[y].italics=d.url),this.fonts[y].bolditalics&&(d=h(this.fonts[y].bolditalics),Y.resolve(d.url,d.headers),this.fonts[y].bolditalics=d.url)}if(this.docDefinition.images)for(var v in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(v)&&(d=h(this.docDefinition.images[v]),Y.resolve(d.url,d.headers),this.docDefinition.images[v]=d.url);var D=this;Y.resolved().then(function(){var R=w.createPdfKitDocument(D.docDefinition,C);e(R)},function(R){throw R})},E.prototype._flushDoc=function(C,e){var g,h=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)h.push(w)}),C.on("end",function(){g=c.concat(h),e(g,C._pdfMakePages)}),C.end()},E.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var h=this;this._createDoc(C,function(g){h._flushDoc(g,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(g){if("InvalidStateError"===g.name){var h=new Uint8Array(C);e=new Blob([h.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},E.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},E.prototype._openPdf=function(C,e){e||(e=this._openWindow());try{this.getBlob(function(h){var w=(window.URL||window.webkitURL).createObjectURL(h);e.location.href=w},C)}catch(h){throw e.close(),h}},E.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},E.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},E.prototype.download=function(C,e,h){r(C)&&(s(e)||(h=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(g){a(g,C),r(e)&&e()},h)},E.prototype.getBase64=function(C,e){if(!C)throw"getBase64 is an async method and needs a callback argument";this.getBuffer(function(h){C(h.toString("base64"))},e)},E.prototype.getDataUrl=function(C,e){if(!C)throw"getDataUrl is an async method and needs a callback argument";this.getBuffer(function(h){C("data:application/pdf;base64,"+h.toString("base64"))},e)},E.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var h=this;this.getBuffer(function(g){var w=h._bufferToBlob(g);C(w)},e)},E.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var h=this;this._createDoc(e,function(g){h._flushDoc(g,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!r(e))return this._createDoc(C);this._createDoc(C,function(g){e(g)})},S.exports={createPdf:function(C,e,h,g){if(!function u(){try{var C=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(C,e),42===C.foo()}catch(h){return!1}}())throw"Your browser does not provide the level of support needed";return new E(C,e||n.g.pdfMake.tableLayouts,h||n.g.pdfMake.fonts,g||n.g.pdfMake.vfs)}}},3857:function(S,I,n){"use strict";var r=n(8823).Buffer;function s(){this.fileSystem={},this.dataSystem={}}function l(f){return 0===f.indexOf("/")&&(f=f.substring("/".length)),0===f.indexOf("/")&&(f=f.substring(1)),f}s.prototype.existsSync=function(f){return f=l(f),void 0!==this.fileSystem[f]||void 0!==this.dataSystem[f]},s.prototype.readFileSync=function(f,a){f=l(f);var B=this.dataSystem[f];if("string"==typeof B&&"utf8"===a)return B;if(B)return new r(B,"string"==typeof B?"base64":void 0);var E=this.fileSystem[f];if(E)return E;throw"File '"+f+"' not found in virtual file system"},s.prototype.writeFileSync=function(f,a){this.fileSystem[l(f)]=a},s.prototype.bindFS=function(f){this.dataSystem=f||{}},S.exports=new s},4498:function(S,I,n){"use strict";var c=n(6225).isString;function s(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}S.exports={buildColumnWidths:function r(a,B){var E=[],u=0,C=0,e=[],h=0,g=0,w=[],Q=B;a.forEach(function(D){s(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),h=Math.max(h,D._minWidth),g=Math.max(g,D._maxWidth)):w.push(D)}),w.forEach(function(D){c(D.width)&&/\d+%/.test(D.width)&&(D.width=parseFloat(D.width)*Q/100),D._calcWidth=D.width=B)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=h});else{if(Y0){var v=B/e.length;e.forEach(function(D){D._calcWidth=v})}}},measureMinMax:function f(a){for(var B={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;b--){var eA=w.styleStack.styleDictionary[N[b]];for(var sA in eA)eA.hasOwnProperty(sA)&&(F[sA]=eA[sA])}return F}function d(N){return f(N)?N=[N,N,N,N]:B(N)&&2===N.length&&(N=[N[0],N[1],N[0],N[1]]),N}var v=[void 0,void 0,void 0,void 0];if(g.style){var R=y(B(g.style)?g.style:[g.style]);R&&(v=Y(R,v)),R.margin&&(v=d(R.margin))}return v=Y(g,v),g.margin&&(v=d(g.margin)),void 0===v[0]&&void 0===v[1]&&void 0===v[2]&&void 0===v[3]?null:v}(),g.columns)return Q(w.measureColumns(g));if(g.stack)return Q(w.measureVerticalContainer(g));if(g.ul)return Q(w.measureUnorderedList(g));if(g.ol)return Q(w.measureOrderedList(g));if(g.table)return Q(w.measureTable(g));if(void 0!==g.text)return Q(w.measureLeaf(g));if(g.toc)return Q(w.measureToc(g));if(g.image)return Q(w.measureImage(g));if(g.svg)return Q(w.measureSVG(g));if(g.canvas)return Q(w.measureCanvas(g));if(g.qr)return Q(w.measureQr(g));throw"Unrecognized document structure: "+JSON.stringify(g,E)});function Q(Y){var y=Y._margin;return y&&(Y._minWidth+=y[0]+y[2],Y._maxWidth+=y[0]+y[2]),Y}},h.prototype.convertIfBase64Image=function(g){if(/^data:image\/(jpeg|jpg|png);base64,/.test(g.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=g.image,g.image=w}},h.prototype.measureImageWithDimensions=function(g,w){if(g.fit){var Q=w.width/w.height>g.fit[0]/g.fit[1]?g.fit[0]/w.width:g.fit[1]/w.height;g._width=g._minWidth=g._maxWidth=w.width*Q,g._height=w.height*Q}else g._width=g._minWidth=g._maxWidth=g.width||w.width,g._height=g.height||w.height*g._width/w.width,f(g.maxWidth)&&g.maxWidthg._width&&(g._width=g._minWidth=g._maxWidth=g.minWidth,g._height=g._width*w.height/w.width),f(g.minHeight)&&g.minHeight>g._height&&(g._height=g.minHeight,g._width=g._minWidth=g._maxWidth=g._height*w.width/w.height);g._alignment=this.styleStack.getProperty("alignment")},h.prototype.measureImage=function(g){this.images&&this.convertIfBase64Image(g);var w=this.imageMeasure.measureImage(g.image);return this.measureImageWithDimensions(g,w),g},h.prototype.measureSVG=function(g){var w=this.svgMeasure.measureSVG(g.svg);return this.measureImageWithDimensions(g,w),g.font=this.styleStack.getProperty("font"),g.svg=this.svgMeasure.writeDimensions(g.svg,{width:g._width,height:g._height}),g},h.prototype.measureLeaf=function(g){g._textRef&&g._textRef._textNodeRef.text&&(g.text=g._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(g);var Q=this.textTools.buildInlines(g.text,w);return g._inlines=Q.items,g._minWidth=Q.minWidth,g._maxWidth=Q.maxWidth,g},h.prototype.measureToc=function(g){if(g.toc.title&&(g.toc.title=this.measureNode(g.toc.title)),g.toc._items.length>0){for(var w=[],Q=g.toc.textStyle||{},m=g.toc.numberStyle||Q,Y=g.toc.textMargin||[0,0,0,0],y=0,d=g.toc._items.length;y=26?F((b/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[b%26>>0]}(N-1)}function y(N){if(N<1||N>4999)return N.toString();var eA,F=N,b={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},P="";for(eA in b)for(;F>=b[eA];)P+=eA,F-=b[eA];return P}var v;switch(Q){case"none":v=null;break;case"upper-alpha":v=Y(g).toUpperCase();break;case"lower-alpha":v=Y(g);break;case"upper-roman":v=y(g);break;case"lower-roman":v=y(g).toLowerCase();break;default:v=function d(N){return N.toString()}(g)}if(null===v)return{};m&&(B(m)?(m[0]&&(v=m[0]+v),m[1]&&(v+=m[1]),v+=" "):v+=m+" ");var D={text:v},R=w.getProperty("markerColor");return R&&(D.color=R),{_inlines:this.textTools.buildInlines(D,w).items}},h.prototype.measureUnorderedList=function(g){var w=this.styleStack.clone(),Q=g.ul;g.type=g.type||"disc",g._gapSize=this.gapSizeForList(),g._minWidth=0,g._maxWidth=0;for(var m=0,Y=Q.length;m0?w.length-1:0;return g._minWidth=Y.min+g._gap*y,g._maxWidth=Y.max+g._gap*y,g},h.prototype.measureTable=function(g){(function BA(MA){if(MA.table.widths||(MA.table.widths="auto"),l(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(sA(v,Q,D.colSpan),w.push({col:Q,span:D.colSpan,minWidth:D._minWidth,maxWidth:D._maxWidth})):(d._minWidth=Math.max(d._minWidth,D._minWidth),d._maxWidth=Math.max(d._maxWidth,D._maxWidth))),D.rowSpan&&D.rowSpan>1&&q(g.table,m,Q,D.rowSpan)}}!function P(){for(var MA,lA,cA=0,gA=w.length;cA0)for(MA=_/xA.span,lA=0;lA0)for(MA=pA/xA.span,lA=0;lAE.page?B:E.page>B.page?E:B.y>E.y?B:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,B.bottomMost)},s.prototype.markEnding=function(B){this.page=B._columnEndingContext.page,this.x=B._columnEndingContext.x,this.y=B._columnEndingContext.y,this.availableWidth=B._columnEndingContext.availableWidth,this.availableHeight=B._columnEndingContext.availableHeight,this.lastColumnWidth=B._columnEndingContext.lastColumnWidth},s.prototype.saveContextInEndingCell=function(B){B._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},s.prototype.completeColumnGroup=function(B){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;B&&(E.page===E.bottomMost.page?E.y+B>u&&(u=E.y+B):u+=B),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,B&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},s.prototype.addMargin=function(B,E){this.x+=B,this.availableWidth-=B+(E||0)},s.prototype.moveDown=function(B){return this.y+=B,this.availableHeight-=B,this.availableHeight>0},s.prototype.initializePage=function(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right},s.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},s.prototype.moveTo=function(B,E){null!=B&&(this.x=B,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=E&&(this.y=E,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},s.prototype.moveToRelative=function(B,E){null!=B&&(this.x=this.x+B),null!=E&&(this.y=this.y+E)},s.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth})},s.prototype.endDetachedBlock=function(){var B=this.snapshots.pop();this.x=B.x,this.y=B.y,this.availableWidth=B.availableWidth,this.availableHeight=B.availableHeight,this.page=B.page,this.endingCell=B.endingCell,this.lastColumnWidth=B.lastColumnWidth};var f=function(B,E){return(E=function l(B,E){return void 0===B?E:r(B)&&"landscape"===B.toLowerCase()?"landscape":"portrait"}(E,B.pageSize.orientation))!==B.pageSize.orientation?{orientation:E,width:B.pageSize.height,height:B.pageSize.width}:{orientation:B.pageSize.orientation,width:B.pageSize.width,height:B.pageSize.height}};s.prototype.moveToNextPage=function(B){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var h=this.availableWidth,g=this.getCurrentPage().pageSize.orientation,w=f(this.getCurrentPage(),B);this.addPage(w),g===w.orientation&&(this.availableWidth=h)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},s.prototype.addPage=function(B){var E={items:[],pageSize:B};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},s.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},s.prototype.getCurrentPosition=function(){var B=this.getCurrentPage().pageSize,E=B.height-this.pageMargins.top-this.pageMargins.bottom,u=B.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:B.orientation,pageInnerHeight:E,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/E,horizontalRatio:(this.x-this.pageMargins.left)/u}},S.exports=s},1196:function(S,I,n){"use strict";var c=n(4775),r=n(6225).isNumber,s=n(6225).pack,l=n(6225).offsetVector,f=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function B(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}a.prototype.addLine=function(u,C,e){var h=u.getHeight(),g=this.context,w=g.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(g.availableHeight0&&u.inlines[0].alignment,g=0;switch(h){case"right":g=C-e;break;case"center":g=(C-e)/2}if(g&&(u.x=(u.x||0)+g),"justify"===h&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,m=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=h.x+u._x,u.y=h.y,this.alignImage(u),B(g,{type:e||"image",item:u},C),h.moveDown(u._height),w)},a.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},a.prototype.addQr=function(u,C){var e=this.context,h=e.getCurrentPage(),g=this.getCurrentPositionOnPage();if(!h||void 0===u.absolutePosition&&e.availableHeightg.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var m=function E(u){var C=new c(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);m._node&&(m._node.positions[0].pageNumber=g.page+1),m.x=(m.x||0)+(C?u.xOffset||0:g.x),m.y=(m.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:"line",item:m});break;case"vector":var Y=s(Q.item);l(Y,C?u.xOffset||0:g.x,e?u.yOffset||0:g.y),w.items.push({type:"vector",item:Y});break;case"image":case"svg":var y=s(Q.item);y.x=(y.x||0)+(C?u.xOffset||0:g.x),y.y=(y.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:Q.type,item:y})}}),h||g.moveDown(u.height),0))},a.prototype.pushContext=function(u,C){void 0===u&&(C=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom,u=this.context.availableWidth),r(u)&&(u=new f({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},a.prototype.popContext=function(){this.context=this.contextStack.pop()},a.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},S.exports=a},2249:function(S,I,n){"use strict";var c=n(6225).isArray;function s(l,f){for(var a in this.fonts={},this.pdfKitDoc=f,this.fontCache={},l)if(l.hasOwnProperty(a)){var B=l[a];this.fonts[a]={normal:B.normal,bold:B.bold,italics:B.italics,bolditalics:B.bolditalics}}}s.prototype.getFontType=function(l,f){return function r(l,f){var a="normal";return l&&f?a="bolditalics":l?a="bold":f&&(a="italics"),a}(l,f)},s.prototype.getFontFile=function(l,f,a){var B=this.getFontType(f,a);return this.fonts[l]&&this.fonts[l][B]?this.fonts[l][B]:null},s.prototype.provideFont=function(l,f,a){var B=this.getFontType(f,a);if(null===this.getFontFile(l,f,a))throw new Error("Font '"+l+"' in style '"+B+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][B]){var E=this.fonts[l][B];c(E)||(E=[E]),this.fontCache[l][B]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][B]},S.exports=s},6225:function(S){"use strict";function r(g){return Array.isArray(g)}S.exports={isString:function I(g){return"string"==typeof g||g instanceof String},isNumber:function n(g){return"number"==typeof g||g instanceof Number},isBoolean:function c(g){return"boolean"==typeof g},isArray:r,isFunction:function s(g){return"function"==typeof g},isObject:function l(g){return null!==g&&"object"==typeof g},isNull:function f(g){return null===g},isUndefined:function a(g){return void 0===g},pack:function B(){for(var g={},w=0,Q=arguments.length;w0})).forEach(function(W){var hA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(DA){void 0!==W[DA]&&(hA[DA]=W[DA])}),hA.startPosition=W.positions[0],hA.pageNumbers=Array.from(new Set(W.positions.map(function(DA){return DA.pageNumber}))),hA.pages=pA.length,hA.stack=C(W.stack),W.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var dA=_[uA];if("before"!==dA.pageBreak&&!dA.pageBreakCalculated){dA.pageBreakCalculated=!0;var SA=dA.nodeInfo.pageNumbers[0],zA=[],XA=[],X=[];if(cA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(SA)>-1&&zA.push(_[O].nodeInfo),cA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(SA+1)>-1&&XA.push(_[O].nodeInfo);if(cA.length>3)for(O=0;O-1&&X.push(_[O].nodeInfo);if(cA(dA.nodeInfo,zA,XA,X))return dA.pageBreak="before",!0}}return!1}this.docPreprocessor=new r,this.docMeasure=new s(b,P,eA,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var FA=this.tryLayoutDocument(F,b,P,eA,sA,q,BA,MA,lA);gA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(pA){pA.resetXY()}),FA=this.tryLayoutDocument(F,b,P,eA,sA,q,BA,MA,lA);return FA.pages},R.prototype.tryLayoutDocument=function(F,b,P,eA,sA,q,BA,MA,lA,cA){this.linearNodeList=[],F=this.docPreprocessor.preprocessDocument(F),F=this.docMeasure.measureDocument(F),this.writer=new f(new l(this.pageSize,this.pageMargins),this.tracker);var gA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){gA.addBackground(sA)}),this.addBackground(sA),this.processNode(F),this.addHeadersAndFooters(q,BA),null!=lA&&this.addWatermark(lA,b,eA),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},R.prototype.addBackground=function(F){var b=Y(F)?F:function(){return F},P=this.writer.context(),eA=P.getCurrentPage().pageSize,sA=b(P.page+1,eA);sA&&(this.writer.beginUnbreakableBlock(eA.width,eA.height),sA=this.docPreprocessor.preprocessDocument(sA),this.processNode(this.docMeasure.measureDocument(sA)),this.writer.commitUnbreakableBlock(0,0),P.backgroundLength[P.page]+=sA.positions.length)},R.prototype.addStaticRepeatable=function(F,b){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},b)},R.prototype.addDynamicRepeatable=function(F,b){for(var eA=0,sA=this.writer.context().pages.length;eA1;)_.push({fontSize:SA}),(pA=FA.sizeOfRotatedText(gA.text,gA.angle,_)).width>cA.width?SA=(uA+(dA=SA))/2:pA.widthcA.height?(uA+(dA=SA))/2:((uA=SA)+dA)/2),_.pop();return SA}(this.pageSize,F,b));var eA={text:F.text,font:b.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};eA._size=function MA(cA,gA){var xA=new y(gA),FA=new d(null,{font:cA.font,bold:cA.bold,italics:cA.italics});return FA.push({fontSize:cA.fontSize}),{size:xA.sizeOfString(cA.text,FA),rotatedSize:xA.sizeOfRotatedText(cA.text,cA.angle,FA)}}(F,b);for(var sA=this.writer.context().pages,q=0,BA=sA.length;q0;lA--)MA.push(BA);return MA}(F._gap);eA&&(P-=(eA.length-1)*F._gap),a.buildColumnWidths(b,P);var sA=this.processRow(b,b,eA);D(F.positions,sA.positions)},R.prototype.processRow=function(F,b,P,eA,sA,q){var BA=this,MA=[],lA=[];return this.tracker.auto("pageChanged",function cA(FA){for(var _,pA=0,uA=MA.length;pA1)for(var SA=1;SAFA?P[FA]:0}function xA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var pA=sA+FA.rowSpan-1;if(pA>=eA.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return eA[pA][_]}return null}},R.prototype.processList=function(F,b){var q,P=this,eA=F?b.ol:b.ul,sA=b._gapSize;this.writer.context().addMargin(sA.width),this.tracker.auto("lineAdded",function BA(MA){if(q){var lA=q;if(q=null,lA.canvas){var cA=lA.canvas[0];w(cA,-lA._minWidth,0),P.writer.addVector(cA)}else if(lA._inlines){var gA=new E(P.pageSize.width);gA.addInline(lA._inlines[0]),gA.x=-lA._minWidth,gA.y=MA.getAscenderHeight()-gA.getAscenderHeight(),P.writer.addLine(gA,!0)}}},function(){eA.forEach(function(MA){q=MA.listMarker,P.processNode(MA),D(b.positions,MA.positions)})}),this.writer.context().addMargin(-sA.width)},R.prototype.processTable=function(F){var b=new B(F);b.beginTable(this.writer);for(var P=F.table.heights,eA=0,sA=F.table.body.length;eA0&&(P.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||sA);){var q=!1,BA=F._inlines.shift();if(sA=!1,!BA.noWrap&&BA.text.length>1&&BA.width>P.getAvailableWidth()){var MA=BA.width/BA.text.length,lA=Math.floor(P.getAvailableWidth()/MA);if(lA<1&&(lA=1),lA0){var u=B.pages[0];if(u.xOffset=f,u.yOffset=a,E>1)if(void 0!==f||void 0!==a)u.height=B.getCurrentPage().pageSize.height-B.pageMargins.top-B.pageMargins.bottom;else{u.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var C=0,e=this.repeatables.length;CXA.item.y2?XA.item.y1:XA.item.y2:0}(XA)}var SA=N(pA||40),zA=SA.top;return _.forEach(function(XA){XA.items.forEach(function(X){var O=dA(X);O>zA&&(zA=O)})}),zA+=SA.bottom}function R(_,pA){_&&"auto"===_.height&&(_.height=1/0);var dA=function b(_){if(C(_)){var pA=l[_.toUpperCase()];if(!pA)throw"Page size "+_+" not recognized";return{width:pA[0],height:pA[1]}}return _}(_||"A4");return function uA(SA){return!!C(SA)&&("portrait"===(SA=SA.toLowerCase())&&dA.width>dA.height||"landscape"===SA&&dA.widthdA.height?"landscape":"portrait",dA}function N(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(g(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function P(_,pA){_.pageSize.orientation!==(pA.options.size[0]>pA.options.size[1]?"landscape":"portrait")&&(pA.options.size=[pA.options.size[1],pA.options.size[0]])}function sA(_,pA){var uA=_;return pA.sup&&(uA-=.75*pA.fontSize),pA.sub&&(uA+=.35*pA.fontSize),uA}function q(_,pA,uA,dA,SA){function zA(st,TA){var at,It,mt=new E(null);if(w(st.positions))throw"Page reference id not found";var wt=st.positions[0].pageNumber.toString();switch(TA.text=wt,at=mt.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),It=TA.width-at,TA.width=at,TA.alignment){case"right":TA.x+=It;break;case"center":TA.x+=It/2}}_._pageNodeRef&&zA(_._pageNodeRef,_.inlines[0]),pA=pA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();B.drawBackground(_,pA,uA,dA,SA);for(var $=0,W=_.inlines.length;$1){var XA=_.points[0],X=_.points[_.points.length-1];(_.closePath||XA.x===X.x&&XA.y===X.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&dA){var O=1/(_.linearGradient.length-1);for(SA=0;SA<_.linearGradient.length;SA++)dA.stop(SA*O,_.linearGradient[SA]);_.color=dA}Q(_.color)&&(_.color=m(_.color,pA));var $=e(_.fillOpacity)?_.fillOpacity:1,W=e(_.strokeOpacity)?_.strokeOpacity:1;_.color&&_.lineColor?(uA.fillColor(_.color,$),uA.strokeColor(_.lineColor,W),uA.fillAndStroke()):_.color?(uA.fillColor(_.color,$),uA.fill()):(uA.strokeColor(_.lineColor||"black",W),uA.stroke())}function lA(_,pA,uA,dA){var SA=e(_.opacity)?_.opacity:1;if(dA.opacity(SA),_.cover){var zA=_.cover.align||"center",XA=_.cover.valign||"center",X=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;dA.save(),dA.rect(_.x,_.y,X,O).clip(),dA.image(_.image,_.x,_.y,{cover:[X,O],align:zA,valign:XA}),dA.restore()}else dA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&dA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(dA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),dA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&dA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function cA(_,pA,uA,dA,SA){var zA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);zA.fontCallback=function(XA,X,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),W=function(_,pA,uA){for(var dA=0;dA-1&&(zA=zA.slice(0,XA)),uA.height===1/0){var X=D(zA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,X]}var O=function FA(_,pA){var uA={};return Object.keys(_).forEach(function(dA){var SA=_[dA];uA[dA]=pA.pattern(SA.boundingBox,SA.xStep,SA.yStep,SA.pattern,SA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function eA(_,pA,uA,dA,SA){uA._pdfMakePages=_,uA.addPage();var zA=0;SA&&_.forEach(function(DA){zA+=DA.items.length});var XA=0;SA=SA||function(){};for(var X=0;X<_.length;X++){X>0&&(P(_[X],uA),uA.addPage(uA.options));for(var O=_[X],$=0,W=O.items.length;$=128?285:0);var m=[[]];for(w=0;w<30;++w){for(var Y=m[w],y=[],d=0;d<=w;++d)y.push(g[(d6},eA=function(X,O){var $=-8&function(X){var O=I[X],$=16*X*X+128*X+64;return F(X)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(X),W=I[X];return $-8*W[0][O]*W[1][O]},sA=function(X,O){switch(O){case 1:return X<10?10:X<27?12:14;case 2:return X<10?9:X<27?11:13;case 4:return X<10?8:16;case 8:return X<10?8:X<27?10:12}},q=function(X,O,$){var W=eA(X,$)-4-sA(X,O);switch(O){case 1:return 3*(W/10|0)+(W%10<4?0:W%10<7?1:2);case 2:return 2*(W/11|0)+(W%11<6?0:1);case 4:return W/8|0;case 8:return W/13|0}},lA=function(X,O){for(var $=X.slice(0),W=X.length,hA=O.length,DA=0;DA=0)for(var EA=0;EA=0;--DA)hA>>W+DA&1&&(hA^=$<>nA&1;return X},uA=function(X){for(var DA=function(OA){for(var VA=0,tt=0;tt=5&&(VA+=OA[tt]-5+3);for(tt=5;tt=4*mA||OA[tt+1]>=4*mA)&&(VA+=40)}return VA},nA=X.length,EA=0,GA=0,it=0;it=nA){for(hA.push(DA|TA>>(at-=nA));at>=8;)hA.push(TA>>(at-=8)&255);DA=0,nA=8}at>0&&(DA|=(TA&(1<>3);nA=function(X,O,$){for(var W=[],hA=X.length/O|0,DA=0,nA=O-X.length%O,EA=0;EA>dt&1,hA[mt+mA][wt+dt]=1};for(nA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),nA($-8,0,8,9,[256,127,65,93,93,93,65,127]),nA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),DA=9;DA<$-8;++DA)W[6][DA]=W[DA][6]=1&~DA,hA[6][DA]=hA[DA][6]=1;var EA=O[2],GA=EA.length;for(DA=0;DA>It++&1,hA[DA][$-11+TA]=hA[$-11+TA][DA]=1}return{matrix:W,reserved:hA}}(O),GA=EA.matrix,it=EA.reserved;if(function(X,O,$){for(var W=X.length,hA=0,DA=-1,nA=W-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=DA<0?W-1:0,GA=0;GAnA-2;--it)O[EA][it]||(X[EA][it]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=DA}DA=-DA}}(GA,it,nA),hA<0){_(GA,it,0),pA(GA,0,W,0);var st=0,TA=uA(GA);for(_(GA,it,0),hA=1;hA<8;++hA){_(GA,it,hA),pA(GA,0,W,hA);var at=uA(GA);TA>at&&(TA=at,st=hA),_(GA,it,hA)}hA=st}return _(GA,it,hA),pA(GA,0,W,hA),GA};function SA(X,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,DA={L:1,M:0,Q:3,H:2}[(O.eccLevel||"L").toUpperCase()],nA=O.mode?$[O.mode.toLowerCase()]:-1,EA="mask"in O?O.mask:-1;if(nA<0)nA="string"==typeof X?X.match(f)?1:X.match(B)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(X=function(X,O){switch(X){case 1:return O.match(f)?O:null;case 2:return O.match(a)?O.toUpperCase():null;case 4:if("string"==typeof O){for(var $=[],W=0;W>6,128|63&hA):hA<65536?$.push(224|hA>>12,128|hA>>6&63,128|63&hA):$.push(240|hA>>18,128|hA>>12&63,128|hA>>6&63,128|63&hA)}return $}return O}}(nA,X)))throw"invalid data format";if(DA<0||DA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(X.length<=q(hA,nA,DA));++hA);if(hA>40)throw"too large data for the Qr format"}else if(hA<1||hA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=EA&&(EA<0||EA>8))throw"invalid mask";return dA(X,hA,nA,DA,EA)}S.exports={measure:function XA(X){var O=function zA(X,O){var $=[],W=O.background||"#fff",hA=O.foreground||"#000",DA=SA(X,O),nA=DA.length,EA=Math.floor(O.fit?O.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:W});for(var it=0;it0;)this.styleOverrides.pop()},f.prototype.autopush=function(a){if(c(a))return 0;var B=[];a.style&&(B=r(a.style)?a.style:[a.style]);for(var E=0,u=B.length;E0&&this.pop(E),u},f.prototype.getProperty=function(a){if(this.styleOverrides)for(var B=this.styleOverrides.length-1;B>=0;B--){var E=this.styleOverrides[B];if(c(E)){var u=this.styleDictionary[E];if(u&&!s(u[a])&&!l(u[a]))return u[a]}else if(!s(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},S.exports=f},7601:function(S,I,n){"use strict";var c=n(6513);function r(f){var a=parseFloat(f);if("number"==typeof a&&!isNaN(a))return a}function s(f){var a;try{a=new c.XmlDocument(f)}catch(B){throw new Error("SVGMeasure: "+B)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(f){var a=s(f),B=r(a.attr.width),E=r(a.attr.height);if((null==B||null==E)&&"string"==typeof a.attr.viewBox){var u=a.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+a.attr.viewBox+"'");null==B&&(B=r(u[2])),null==E&&(E=r(u[3]))}return{width:B,height:E}},l.prototype.writeDimensions=function(f,a){var B=s(f);return B.attr.width=""+a.width,B.attr.height=""+a.height,B.toString()},S.exports=l},9342:function(S,I,n){"use strict";var c=n(4498),r=n(6225).isFunction,s=n(6225).isNumber;function l(f){this.tableNode=f}l.prototype.beginTable=function(f){var a,B,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,B=f.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,B),this.tableWidth=a._offsets.total+function u(){var h=0;return a.table.widths.forEach(function(g){h+=g._calcWidth}),h}(),this.rowSpanData=function C(){var h=[],g=0,w=0;h.push({left:0,rowSpan:0});for(var Q=0,m=E.tableNode.table.body[0].length;Q0&&D(g+d,Q,0,m.border[0]),void 0!==m.border[2]&&D(g+d,Q+y-1,2,m.border[2]);for(var v=0;v0&&D(g,Q+v,1,m.border[1]),void 0!==m.border[3]&&D(g+Y-1,Q+v,3,m.border[3])}}function D(R,N,F,b){var P=h[R][N];P.border=P.border||{},P.border[F]=b}}(this.tableNode.table.body),this.drawHorizontalLine(0,f)},l.prototype.onRowBreak=function(f,a){var B=this;return function(){var E=B.rowPaddingTop+(B.headerRows?0:B.topLineWidth);a.context().availableHeight-=B.reservedAtBottom,a.context().moveDown(E)}},l.prototype.beginRow=function(f,a){this.topLineWidth=this.layout.hLineWidth(f,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(f,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(f+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(f,this.tableNode),this.rowCallback=this.onRowBreak(f,a),a.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&a.beginUnbreakableBlock(),this.rowTopY=a.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,a.context().availableHeight-=this.reservedAtBottom,a.context().moveDown(this.rowPaddingTop)},l.prototype.drawHorizontalLine=function(f,a,B){var E=this.layout.hLineWidth(f,this.tableNode);if(E){var C,u=this.layout.hLineStyle(f,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,m,e=E/2,h=null,g=this.tableNode.table.body,Y=0,y=this.rowSpanData.length;Y0&&(N=(w=g[f-1][Y]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),fb;)h.width+=this.rowSpanData[Y+b++].width||0;Y+=b-1}else if(w&&w.colSpan&&N){for(;w.colSpan>b;)h.width+=this.rowSpanData[Y+b++].width||0;Y+=b-1}else if(Q&&Q.colSpan&&R){for(;Q.colSpan>b;)h.width+=this.rowSpanData[Y+b++].width||0;Y+=b-1}else h.width+=this.rowSpanData[Y].width||0}var P=(B||0)+e;v&&h&&h.width&&(a.addVector({type:"line",x1:h.left,x2:h.left+h.width,y1:P,y2:P,lineWidth:E,dash:C,lineColor:D},!1,B),h=null,D=null,w=null,Q=null,m=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(f,a,B,E,u,C,e){var h=this.layout.vLineWidth(E,this.tableNode);if(0!==h){var w,g=this.layout.vLineStyle(E,this.tableNode);g&&g.dash&&(w=g.dash);var m,Y,y,Q=this.tableNode.table.body;if(E>0&&(m=Q[C][e])&&m.borderColor&&(m.border?m.border[2]:this.layout.defaultBorder)&&(y=m.borderColor[2]),null==y&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=B&&B.length>0,m=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?B[0].prevPage:e}),Q)for(u=0,E=B.length;u0&&!this.headerRows,N=R?0:this.topLineWidth,F=w[d].y0,b=w[d].y1;for(D&&(b+=this.rowPaddingBottom),a.context().page!=w[d].page&&(a.context().page=w[d].page,this.reservedAtBottom=0),u=0,E=g.length;u0&&!P&&(P=(q=m[f][sA-1]).border?q.border[2]:this.layout.defaultBorder),sA+11)for(var XA=1;XA1)for(XA=1;XA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(f+1,a),this.headerRows&&f===this.headerRows-1&&(this.headerRepeatable=a.currentBlockToRepeatable()),this.dontBreakRows&&a.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(f,a)},function(){a.commitUnbreakableBlock()}),this.headerRepeatable&&(f===this.rowsWithoutPageBreak-1||f===this.tableNode.table.body.length-1)&&(a.commitUnbreakableBlock(),a.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},S.exports=l},3497:function(S,I,n){"use strict";var c=n(6225).isArray,r=n(6225).isPattern,s=n(6225).getPattern;function f(E,u,C,e){var w=E.inlines[0],Q=function h(){for(var gA=0,xA=0,FA=E.inlines.length;xAgA?xA:gA;return E.inlines[gA]}(),m=function g(){for(var gA=0,xA=0,FA=E.inlines.length;xA=0&&r.splice(s,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),r=this.events[n];!r||r.forEach(function(s){s.apply(this,c)})},I.prototype.auto=function(n,c,r){this.startTracking(n,c),r(),this.stopTracking(n,c)},S.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(S,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"==typeof globalThis?n.g:globalThis;S.exports=function(){for(var l=[],f=0;f{var Ni=function(Ut){"use strict";var Ln,Bt=Object.prototype,Vt=Bt.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},ft=A.iterator||"@@iterator",S=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,b,P){return Object.defineProperty(F,b,{value:P,enumerable:!0,configurable:!0,writable:!0}),F[b]}try{n({},"")}catch(F){n=function(b,P,eA){return b[P]=eA}}function c(F,b,P,eA){var q=Object.create((b&&b.prototype instanceof E?b:E).prototype),BA=new D(eA||[]);return q._invoke=function Y(F,b,P){var eA=s;return function(q,BA){if(eA===f)throw new Error("Generator is already running");if(eA===a){if("throw"===q)throw BA;return N()}for(P.method=q,P.arg=BA;;){var MA=P.delegate;if(MA){var lA=y(MA,P);if(lA){if(lA===B)continue;return lA}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if(eA===s)throw eA=a,P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);eA=f;var cA=r(F,b,P);if("normal"===cA.type){if(eA=P.done?a:l,cA.arg===B)continue;return{value:cA.arg,done:P.done}}"throw"===cA.type&&(eA=a,P.method="throw",P.arg=cA.arg)}}}(F,P,BA),q}function r(F,b,P){try{return{type:"normal",arg:F.call(b,P)}}catch(eA){return{type:"throw",arg:eA}}}Ut.wrap=c;var s="suspendedStart",l="suspendedYield",f="executing",a="completed",B={};function E(){}function u(){}function C(){}var e={};n(e,ft,function(){return this});var h=Object.getPrototypeOf,g=h&&h(h(R([])));g&&g!==Bt&&Vt.call(g,ft)&&(e=g);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(b){n(F,b,function(P){return this._invoke(b,P)})})}function m(F,b){function P(q,BA,MA,lA){var cA=r(F[q],F,BA);if("throw"!==cA.type){var gA=cA.arg,xA=gA.value;return xA&&"object"==typeof xA&&Vt.call(xA,"__await")?b.resolve(xA.__await).then(function(FA){P("next",FA,MA,lA)},function(FA){P("throw",FA,MA,lA)}):b.resolve(xA).then(function(FA){gA.value=FA,MA(gA)},function(FA){return P("throw",FA,MA,lA)})}lA(cA.arg)}var eA;this._invoke=function sA(q,BA){function MA(){return new b(function(lA,cA){P(q,BA,lA,cA)})}return eA=eA?eA.then(MA,MA):MA()}}function y(F,b){var P=F.iterator[b.method];if(P===Ln){if(b.delegate=null,"throw"===b.method){if(F.iterator.return&&(b.method="return",b.arg=Ln,y(F,b),"throw"===b.method))return B;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return B}var eA=r(P,F.iterator,b.arg);if("throw"===eA.type)return b.method="throw",b.arg=eA.arg,b.delegate=null,B;var sA=eA.arg;return sA?sA.done?(b[F.resultName]=sA.value,b.next=F.nextLoc,"return"!==b.method&&(b.method="next",b.arg=Ln),b.delegate=null,B):sA:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,B)}function d(F){var b={tryLoc:F[0]};1 in F&&(b.catchLoc=F[1]),2 in F&&(b.finallyLoc=F[2],b.afterLoc=F[3]),this.tryEntries.push(b)}function v(F){var b=F.completion||{};b.type="normal",delete b.arg,F.completion=b}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(d,this),this.reset(!0)}function R(F){if(F){var b=F[ft];if(b)return b.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var P=-1,eA=function sA(){for(;++P=0;--eA){var sA=this.tryEntries[eA],q=sA.completion;if("root"===sA.tryLoc)return P("end");if(sA.tryLoc<=this.prev){var BA=Vt.call(sA,"catchLoc"),MA=Vt.call(sA,"finallyLoc");if(BA&&MA){if(this.prev=0;--P){var eA=this.tryEntries[P];if(eA.tryLoc<=this.prev&&Vt.call(eA,"finallyLoc")&&this.prev=0;--b){var P=this.tryEntries[b];if(P.finallyLoc===F)return this.complete(P.completion,P.afterLoc),v(P),B}},catch:function(F){for(var b=this.tryEntries.length-1;b>=0;--b){var P=this.tryEntries[b];if(P.tryLoc===F){var eA=P.completion;if("throw"===eA.type){var sA=eA.arg;v(P)}return sA}}throw new Error("illegal catch attempt")},delegateYield:function(F,b,P){return this.delegate={iterator:R(F),resultName:b,nextLoc:P},"next"===this.method&&(this.arg=Ln),B}},Ut}(ur.exports);try{regeneratorRuntime=Ni}catch(Ut){"object"==typeof globalThis?globalThis.regeneratorRuntime=Ni:Function("r","regeneratorRuntime = r")(Ni)}},7757:(ur,Ni,Ut)=>{ur.exports=Ut(4979)}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index e2a84eed..522a3876 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.31d6322513f9b4d7.js b/frontend/main.31d6322513f9b4d7.js new file mode 100644 index 00000000..ef8f4d44 --- /dev/null +++ b/frontend/main.31d6322513f9b4d7.js @@ -0,0 +1 @@ +var Ew=Object.defineProperty,ww=Object.defineProperties,Sw=Object.getOwnPropertyDescriptors,XC=Object.getOwnPropertySymbols,Lw=Object.prototype.hasOwnProperty,Tw=Object.prototype.propertyIsEnumerable,JC=(He,j,p)=>j in He?Ew(He,j,{enumerable:!0,configurable:!0,writable:!0,value:p}):He[j]=p,ws=(He,j)=>{for(var p in j||(j={}))Lw.call(j,p)&&JC(He,p,j[p]);if(XC)for(var p of XC(j))Tw.call(j,p)&&JC(He,p,j[p]);return He},qC=(He,j)=>ww(He,Sw(j));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(He,j,p)=>{"use strict";p.d(j,{Acd:()=>d3,Aq:()=>oc,B$L:()=>gC,BDt:()=>os,CgH:()=>J9,DL8:()=>Z9,FJU:()=>DC,FVb:()=>kC,FlN:()=>y2,FpQ:()=>G9,HLz:()=>Lc,KOR:()=>r6,Krp:()=>_f,Mdf:()=>bs,N2j:()=>fi,NBC:()=>QC,NMJ:()=>Fs,OS1:()=>vl,Psp:()=>_i,SJh:()=>ei,Sbq:()=>g,Ssp:()=>V9,SuH:()=>fg,TmZ:()=>m2,USL:()=>T8,Vfw:()=>B,X5K:()=>BC,XsY:()=>yu,ZhI:()=>ce,aj4:()=>l8,am0:()=>jo,b7W:()=>B2,byT:()=>Pf,co4:()=>uu,dLy:()=>Zo,dT$:()=>Y3,eHv:()=>lC,gNZ:()=>SC,hkK:()=>xC,hnx:()=>MC,iOm:()=>Z7,kXW:()=>Cu,kZ_:()=>Fl,koM:()=>Ts,mh3:()=>j3,nNP:()=>I0,pZi:()=>A8,q7m:()=>ks,qO$:()=>V3,r8p:()=>J8,sqG:()=>fd,uli:()=>xf,vqe:()=>zh,wn1:()=>Ff,wyP:()=>KC,xf3:()=>tg,yOe:()=>Gc});var g={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M169.4 278.6C175.6 284.9 183.8 288 192 288s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25s-32.75-12.5-45.25 0L192 210.8L54.63 73.38c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25L169.4 278.6zM329.4 265.4L192 402.8L54.63 265.4c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25l160 160C175.6 476.9 183.8 480 192 480s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25S341.9 252.9 329.4 265.4z"]},B={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M54.63 246.6L192 109.3l137.4 137.4C335.6 252.9 343.8 256 352 256s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25l-160-160c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25S42.13 259.1 54.63 246.6zM214.6 233.4c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0L192 301.3l137.4 137.4C335.6 444.9 343.8 448 352 448s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25L214.6 233.4z"]},ei={prefix:"fas",iconName:"arrow-right-from-bracket",icon:[512,512,["sign-out"],"f08b","M160 416H96c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h64c17.67 0 32-14.33 32-32S177.7 32 160 32H96C42.98 32 0 74.98 0 128v256c0 53.02 42.98 96 96 96h64c17.67 0 32-14.33 32-32S177.7 416 160 416zM502.6 233.4l-128-128c-12.51-12.51-32.76-12.49-45.25 0c-12.5 12.5-12.5 32.75 0 45.25L402.8 224H192C174.3 224 160 238.3 160 256s14.31 32 32 32h210.8l-73.38 73.38c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0l128-128C515.1 266.1 515.1 245.9 502.6 233.4z"]},ce={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M416 32h-64c-17.67 0-32 14.33-32 32s14.33 32 32 32h64c17.67 0 32 14.33 32 32v256c0 17.67-14.33 32-32 32h-64c-17.67 0-32 14.33-32 32s14.33 32 32 32h64c53.02 0 96-42.98 96-96V128C512 74.98 469 32 416 32zM342.6 233.4l-128-128c-12.51-12.51-32.76-12.49-45.25 0c-12.5 12.5-12.5 32.75 0 45.25L242.8 224H32C14.31 224 0 238.3 0 256s14.31 32 32 32h210.8l-73.38 73.38c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0l128-128C355.1 266.1 355.1 245.9 342.6 233.4z"]},os={prefix:"fas",iconName:"bolt",icon:[384,512,[9889,"zap"],"f0e7","M240.5 224H352C365.3 224 377.3 232.3 381.1 244.7C386.6 257.2 383.1 271.3 373.1 280.1L117.1 504.1C105.8 513.9 89.27 514.7 77.19 505.9C65.1 497.1 60.7 481.1 66.59 467.4L143.5 288H31.1C18.67 288 6.733 279.7 2.044 267.3C-2.645 254.8 .8944 240.7 10.93 231.9L266.9 7.918C278.2-1.92 294.7-2.669 306.8 6.114C318.9 14.9 323.3 30.87 317.4 44.61L240.5 224z"]},fi={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 432C32 458.5 53.49 480 80 480h352c26.51 0 48-21.49 48-48V160H32V432zM160 236C160 229.4 165.4 224 172 224h168C346.6 224 352 229.4 352 236v8C352 250.6 346.6 256 340 256h-168C165.4 256 160 250.6 160 244V236zM480 32H32C14.31 32 0 46.31 0 64v48C0 120.8 7.188 128 16 128h480C504.8 128 512 120.8 512 112V64C512 46.31 497.7 32 480 32z"]},d3={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128363,128226],"f0a1","M480 179.6C498.6 188.4 512 212.1 512 240C512 267.9 498.6 291.6 480 300.4V448C480 460.9 472.2 472.6 460.2 477.6C448.3 482.5 434.5 479.8 425.4 470.6L381.7 426.1C333.7 378.1 268.6 352 200.7 352H192V480C192 497.7 177.7 512 160 512H96C78.33 512 64 497.7 64 480V352C28.65 352 0 323.3 0 288V192C0 156.7 28.65 128 64 128H200.7C268.6 128 333.7 101 381.7 53.02L425.4 9.373C434.5 .2215 448.3-2.516 460.2 2.437C472.2 7.39 480 19.06 480 32V179.6zM200.7 192H192V288H200.7C280.5 288 357.2 317.8 416 371.3V108.7C357.2 162.2 280.5 192 200.7 192V192z"]},Ts={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM128 128C128 110.3 142.3 96 160 96H352C369.7 96 384 110.3 384 128C384 145.7 369.7 160 352 160H160C142.3 160 128 145.7 128 128zM288 192C305.7 192 320 206.3 320 224C320 241.7 305.7 256 288 256H160C142.3 256 128 241.7 128 224C128 206.3 142.3 192 160 192H288zM416 288C433.7 288 448 302.3 448 320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320C128 302.3 142.3 288 160 288H416z"]},vl={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},fd={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},V3={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C201.7 512 151.2 495 109.7 466.1C95.2 455.1 91.64 436 101.8 421.5C111.9 407 131.8 403.5 146.3 413.6C177.4 435.3 215.2 448 256 448C362 448 448 362 448 256C448 149.1 362 64 256 64C202.1 64 155 85.46 120.2 120.2L151 151C166.1 166.1 155.4 192 134.1 192H24C10.75 192 0 181.3 0 168V57.94C0 36.56 25.85 25.85 40.97 40.97L74.98 74.98C121.3 28.69 185.3 0 255.1 0L256 0zM256 128C269.3 128 280 138.7 280 152V246.1L344.1 311C354.3 320.4 354.3 335.6 344.1 344.1C335.6 354.3 320.4 354.3 311 344.1L239 272.1C234.5 268.5 232 262.4 232 256V152C232 138.7 242.7 128 256 128V128z"]},Y3={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M414.8 40.79L286.8 488.8C281.9 505.8 264.2 515.6 247.2 510.8C230.2 505.9 220.4 488.2 225.2 471.2L353.2 23.21C358.1 6.216 375.8-3.624 392.8 1.232C409.8 6.087 419.6 23.8 414.8 40.79H414.8zM518.6 121.4L630.6 233.4C643.1 245.9 643.1 266.1 630.6 278.6L518.6 390.6C506.1 403.1 485.9 403.1 473.4 390.6C460.9 378.1 460.9 357.9 473.4 345.4L562.7 256L473.4 166.6C460.9 154.1 460.9 133.9 473.4 121.4C485.9 108.9 506.1 108.9 518.6 121.4V121.4zM166.6 166.6L77.25 256L166.6 345.4C179.1 357.9 179.1 378.1 166.6 390.6C154.1 403.1 133.9 403.1 121.4 390.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4L121.4 121.4C133.9 108.9 154.1 108.9 166.6 121.4C179.1 133.9 179.1 154.1 166.6 166.6V166.6z"]},j3={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M160 80C160 112.8 140.3 140.1 112 153.3V241.1C130.8 230.2 152.7 224 176 224H272C307.3 224 336 195.3 336 160V153.3C307.7 140.1 288 112.8 288 80C288 35.82 323.8 0 368 0C412.2 0 448 35.82 448 80C448 112.8 428.3 140.1 400 153.3V160C400 230.7 342.7 288 272 288H176C140.7 288 112 316.7 112 352V358.7C140.3 371 160 399.2 160 432C160 476.2 124.2 512 80 512C35.82 512 0 476.2 0 432C0 399.2 19.75 371 48 358.7V153.3C19.75 140.1 0 112.8 0 80C0 35.82 35.82 0 80 0C124.2 0 160 35.82 160 80V80zM80 104C93.25 104 104 93.25 104 80C104 66.75 93.25 56 80 56C66.75 56 56 66.75 56 80C56 93.25 66.75 104 80 104zM368 56C354.7 56 344 66.75 344 80C344 93.25 354.7 104 368 104C381.3 104 392 93.25 392 80C392 66.75 381.3 56 368 56zM80 456C93.25 456 104 445.3 104 432C104 418.7 93.25 408 80 408C66.75 408 56 418.7 56 432C56 445.3 66.75 456 80 456z"]},Fl={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"]},m2={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.49 21.49 32 48 32H144C170.5 32 192 53.49 192 80V96H384V80C384 53.49 405.5 32 432 32H528C554.5 32 576 53.49 576 80V176C576 202.5 554.5 224 528 224H432C405.5 224 384 202.5 384 176V160H192V176C192 177.7 191.9 179.4 191.7 180.1L272 288H368C394.5 288 416 309.5 416 336V432C416 458.5 394.5 480 368 480H272C245.5 480 224 458.5 224 432V336C224 334.3 224.1 332.6 224.3 331L144 224H48C21.49 224 0 202.5 0 176V80z"]},ks={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"]},y2={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96h-48C42.75 96 32 106.8 32 120V224C14.33 224 0 238.3 0 256c0 17.67 14.33 32 31.1 32L32 392C32 405.3 42.75 416 56 416h48C117.3 416 128 405.3 128 392v-272C128 106.8 117.3 96 104 96zM456 32h-48C394.8 32 384 42.75 384 56V224H256V56C256 42.75 245.3 32 232 32h-48C170.8 32 160 42.75 160 56v400C160 469.3 170.8 480 184 480h48C245.3 480 256 469.3 256 456V288h128v168c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V56C480 42.75 469.3 32 456 32zM608 224V120C608 106.8 597.3 96 584 96h-48C522.8 96 512 106.8 512 120v272c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V288c17.67 0 32-14.33 32-32C640 238.3 625.7 224 608 224z"]},r6={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M48.01 319.1h351.1c41.62 0 63.49-49.63 35.37-80.38l-175.1-192.1c-19-20.62-51.75-20.62-70.75 0L12.64 239.6C-15.48 270.2 6.393 319.1 48.01 319.1zM399.1 384H48.01c-26.39 0-47.99 21.59-47.99 47.98C.0117 458.4 21.61 480 48.01 480h351.1c26.39 0 47.99-21.6 47.99-47.99C447.1 405.6 426.4 384 399.1 384z"]},bs={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"]},oc={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},Lc={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 64C238.3 64 224 78.33 224 96C224 113.7 238.3 128 256 128C273.7 128 288 113.7 288 96C288 78.33 273.7 64 256 64zM256 416C291.3 416 320 387.3 320 352C320 334.6 313.1 318.9 301.9 307.4L365.1 161.7C371.3 149.5 365.8 135.4 353.7 130C341.5 124.7 327.4 130.2 322 142.3L257.9 288C257.3 288 256.6 287.1 256 287.1C220.7 287.1 192 316.7 192 352C192 387.3 220.7 416 256 416V416zM144 112C126.3 112 112 126.3 112 144C112 161.7 126.3 176 144 176C161.7 176 176 161.7 176 144C176 126.3 161.7 112 144 112zM96 288C113.7 288 128 273.7 128 256C128 238.3 113.7 224 96 224C78.33 224 64 238.3 64 256C64 273.7 78.33 288 96 288zM416 224C398.3 224 384 238.3 384 256C384 273.7 398.3 288 416 288C433.7 288 448 273.7 448 256C448 238.3 433.7 224 416 224z"]},B2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"]},Gc={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M0 383.9l64 .0404c17.75 0 32-14.29 32-32.03V128.3L0 128.3V383.9zM48 320.1c8.75 0 16 7.118 16 15.99c0 8.742-7.25 15.99-16 15.99S32 344.8 32 336.1C32 327.2 39.25 320.1 48 320.1zM348.8 64c-7.941 0-15.66 2.969-21.52 8.328L228.9 162.3C228.8 162.5 228.8 162.7 228.6 162.7C212 178.3 212.3 203.2 226.5 218.7c12.75 13.1 39.38 17.62 56.13 2.75C282.8 221.3 282.9 221.3 283 221.2l79.88-73.1c6.5-5.871 16.75-5.496 22.62 1c6 6.496 5.5 16.62-1 22.62l-26.12 23.87L504 313.7c2.875 2.496 5.5 4.996 7.875 7.742V127.1c-40.98-40.96-96.48-63.88-154.4-63.88L348.8 64zM334.6 217.4l-30 27.49c-29.75 27.11-75.25 24.49-101.8-4.371C176 211.2 178.1 165.7 207.3 138.9L289.1 64H282.5C224.7 64 169.1 87.08 128.2 127.9L128 351.8l18.25 .0369l90.5 81.82c27.5 22.37 67.75 18.12 90-9.246l18.12 15.24c15.88 12.1 39.38 10.5 52.38-5.371l31.38-38.6l5.374 4.498c13.75 11 33.88 9.002 45-4.748l9.538-11.78c11.12-13.75 9.036-33.78-4.694-44.93L334.6 217.4zM544 128.4v223.6c0 17.62 14.25 32.05 31.1 32.05L640 384V128.1L544 128.4zM592 352c-8.75 0-16-7.246-16-15.99c0-8.875 7.25-15.99 16-15.99S608 327.2 608 336.1C608 344.8 600.8 352 592 352z"]},zh={prefix:"fas",iconName:"infinity",icon:[640,512,[9854,8734],"f534","M494.9 96.01c-38.78 0-75.22 15.09-102.6 42.5L320 210.8L247.8 138.5c-27.41-27.41-63.84-42.5-102.6-42.5C65.11 96.01 0 161.1 0 241.1v29.75c0 80.03 65.11 145.1 145.1 145.1c38.78 0 75.22-15.09 102.6-42.5L320 301.3l72.23 72.25c27.41 27.41 63.84 42.5 102.6 42.5C574.9 416 640 350.9 640 270.9v-29.75C640 161.1 574.9 96.01 494.9 96.01zM202.5 328.3c-15.31 15.31-35.69 23.75-57.38 23.75C100.4 352 64 315.6 64 270.9v-29.75c0-44.72 36.41-81.13 81.14-81.13c21.69 0 42.06 8.438 57.38 23.75l72.23 72.25L202.5 328.3zM576 270.9c0 44.72-36.41 81.13-81.14 81.13c-21.69 0-42.06-8.438-57.38-23.75l-72.23-72.25l72.23-72.25c15.31-15.31 35.69-23.75 57.38-23.75C539.6 160 576 196.4 576 241.1V270.9z"]},_f={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z"]},xf={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M470.6 425.4C483.1 437.9 483.1 458.1 470.6 470.6C458.1 483.1 437.9 483.1 425.4 470.6L412.1 458.2C369.6 491.9 315.2 512 255.1 512C196.8 512 142.4 491.9 99.02 458.2L86.63 470.6C74.13 483.1 53.87 483.1 41.37 470.6C28.88 458.1 28.88 437.9 41.37 425.4L53.76 412.1C20.07 369.6 0 315.2 0 255.1C0 196.8 20.07 142.4 53.76 99.02L41.37 86.63C28.88 74.13 28.88 53.87 41.37 41.37C53.87 28.88 74.13 28.88 86.63 41.37L99.02 53.76C142.4 20.07 196.8 0 255.1 0C315.2 0 369.6 20.07 412.1 53.76L425.4 41.37C437.9 28.88 458.1 28.88 470.6 41.37C483.1 53.87 483.1 74.13 470.6 86.63L458.2 99.02C491.9 142.4 512 196.8 512 255.1C512 315.2 491.9 369.6 458.2 412.1L470.6 425.4zM309.3 354.5C293.4 363.1 275.3 368 255.1 368C236.7 368 218.6 363.1 202.7 354.5L144.8 412.5C176.1 434.9 214.5 448 255.1 448C297.5 448 335.9 434.9 367.2 412.5L309.3 354.5zM448 255.1C448 214.5 434.9 176.1 412.5 144.8L354.5 202.7C363.1 218.6 368 236.7 368 256C368 275.3 363.1 293.4 354.5 309.3L412.5 367.2C434.9 335.9 448 297.5 448 256V255.1zM255.1 63.1C214.5 63.1 176.1 77.14 144.8 99.5L202.7 157.5C218.6 148.9 236.7 143.1 255.1 143.1C275.3 143.1 293.4 148.9 309.3 157.5L367.2 99.5C335.9 77.14 297.5 63.1 256 63.1H255.1zM157.5 309.3C148.9 293.4 143.1 275.3 143.1 255.1C143.1 236.7 148.9 218.6 157.5 202.7L99.5 144.8C77.14 176.1 63.1 214.5 63.1 255.1C63.1 297.5 77.14 335.9 99.5 367.2L157.5 309.3zM255.1 207.1C229.5 207.1 207.1 229.5 207.1 255.1C207.1 282.5 229.5 303.1 255.1 303.1C282.5 303.1 304 282.5 304 255.1C304 229.5 282.5 207.1 255.1 207.1z"]},I0={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Pf={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"]},Ff={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},uu={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M252 208C252 196.1 260.1 188 272 188H288C299 188 308 196.1 308 208V276H312C323 276 332 284.1 332 296C332 307 323 316 312 316H264C252.1 316 244 307 244 296C244 284.1 252.1 276 264 276H268V227.6C258.9 225.7 252 217.7 252 208zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H64C28.65 448 0 419.3 0 384V128C0 92.65 28.65 64 64 64H512zM128 384C128 348.7 99.35 320 64 320V384H128zM64 192C99.35 192 128 163.3 128 128H64V192zM512 384V320C476.7 320 448 348.7 448 384H512zM512 128H448C448 163.3 476.7 192 512 192V128zM288 144C226.1 144 176 194.1 176 256C176 317.9 226.1 368 288 368C349.9 368 400 317.9 400 256C400 194.1 349.9 144 288 144z"]},l8={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M48.66 79.13C128.4 100.9 208.2 80.59 288 60.25C375 38.08 462 15.9 549 48.38C565.9 54.69 576 71.62 576 89.66V399.5C576 423.4 550.4 439.2 527.3 432.9C447.6 411.1 367.8 431.4 288 451.7C200.1 473.9 113.1 496.1 26.97 463.6C10.06 457.3 0 440.4 0 422.3V112.5C0 88.59 25.61 72.83 48.66 79.13L48.66 79.13zM287.1 352C332.2 352 368 309 368 255.1C368 202.1 332.2 159.1 287.1 159.1C243.8 159.1 207.1 202.1 207.1 255.1C207.1 309 243.8 352 287.1 352zM63.1 416H127.1C127.1 380.7 99.35 352 63.1 352V416zM63.1 143.1V207.1C99.35 207.1 127.1 179.3 127.1 143.1H63.1zM512 303.1C476.7 303.1 448 332.7 448 368H512V303.1zM448 95.1C448 131.3 476.7 159.1 512 159.1V95.1H448z"]},Cu={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M400 0C426.5 0 448 21.49 448 48V144C448 170.5 426.5 192 400 192H352V224H608C625.7 224 640 238.3 640 256C640 273.7 625.7 288 608 288H512V320H560C586.5 320 608 341.5 608 368V464C608 490.5 586.5 512 560 512H400C373.5 512 352 490.5 352 464V368C352 341.5 373.5 320 400 320H448V288H192V320H240C266.5 320 288 341.5 288 368V464C288 490.5 266.5 512 240 512H80C53.49 512 32 490.5 32 464V368C32 341.5 53.49 320 80 320H128V288H32C14.33 288 0 273.7 0 256C0 238.3 14.33 224 32 224H288V192H240C213.5 192 192 170.5 192 144V48C192 21.49 213.5 0 240 0H400zM256 64V128H384V64H256zM224 448V384H96V448H224zM416 384V448H544V384H416z"]},yu={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M224 263.3C224.2 233.3 238.4 205.2 262.4 187.2L499.1 9.605C517.7-4.353 543.6-2.965 560.7 12.9C577.7 28.76 580.8 54.54 568.2 74.07L406.5 324.1C391.3 347.7 366.6 363.2 339.3 367.1L224 263.3zM320 400C320 461.9 269.9 512 208 512H64C46.33 512 32 497.7 32 480C32 462.3 46.33 448 64 448H68.81C86.44 448 98.4 429.1 96.59 411.6C96.2 407.8 96 403.9 96 400C96 339.6 143.9 290.3 203.7 288.1L319.8 392.5C319.9 394.1 320 397.5 320 400V400z"]},Z7={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M184 88C184 118.9 158.9 144 128 144C97.07 144 72 118.9 72 88C72 57.07 97.07 32 128 32C158.9 32 184 57.07 184 88zM208.4 196.3C178.7 222.7 160 261.2 160 304C160 338.3 171.1 369.8 192 394.5V416C192 433.7 177.7 448 160 448H96C78.33 448 64 433.7 64 416V389.2C26.16 371.2 0 332.7 0 288C0 226.1 50.14 176 112 176H144C167.1 176 190.2 183.5 208.4 196.3V196.3zM64 245.7C54.04 256.9 48 271.8 48 288C48 304.2 54.04 319.1 64 330.3V245.7zM448 416V394.5C468 369.8 480 338.3 480 304C480 261.2 461.3 222.7 431.6 196.3C449.8 183.5 472 176 496 176H528C589.9 176 640 226.1 640 288C640 332.7 613.8 371.2 576 389.2V416C576 433.7 561.7 448 544 448H480C462.3 448 448 433.7 448 416zM576 330.3C585.1 319.1 592 304.2 592 288C592 271.8 585.1 256.9 576 245.7V330.3zM568 88C568 118.9 542.9 144 512 144C481.1 144 456 118.9 456 88C456 57.07 481.1 32 512 32C542.9 32 568 57.07 568 88zM256 96C256 60.65 284.7 32 320 32C355.3 32 384 60.65 384 96C384 131.3 355.3 160 320 160C284.7 160 256 131.3 256 96zM448 304C448 348.7 421.8 387.2 384 405.2V448C384 465.7 369.7 480 352 480H288C270.3 480 256 465.7 256 448V405.2C218.2 387.2 192 348.7 192 304C192 242.1 242.1 192 304 192H336C397.9 192 448 242.1 448 304zM256 346.3V261.7C246 272.9 240 287.8 240 304C240 320.2 246 335.1 256 346.3zM384 261.7V346.3C393.1 335 400 320.2 400 304C400 287.8 393.1 272.9 384 261.7z"]},T8={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 73.39c-12.5-12.5-32.75-12.5-45.25 0l-320 320c-12.5 12.5-12.5 32.75 0 45.25C15.63 444.9 23.81 448 32 448s16.38-3.125 22.62-9.375l320-320C387.1 106.1 387.1 85.89 374.6 73.39zM64 192c35.3 0 64-28.72 64-64S99.3 64.01 64 64.01S0 92.73 0 128S28.7 192 64 192zM320 320c-35.3 0-64 28.72-64 64s28.7 64 64 64s64-28.72 64-64S355.3 320 320 320z"]},Fs={prefix:"fas",iconName:"person-arrow-down-to-line",icon:[640,512,[],"e538","M144 48C144 21.49 165.5 0 192 0C218.5 0 240 21.49 240 48C240 74.51 218.5 96 192 96C165.5 96 144 74.51 144 48zM120 256.9L91.43 304.5C82.33 319.6 62.67 324.5 47.52 315.4C32.37 306.3 27.47 286.7 36.57 271.5L94.85 174.6C112.2 145.7 143.4 128 177.1 128H206.9C240.6 128 271.8 145.7 289.2 174.6L347.4 271.5C356.5 286.7 351.6 306.3 336.5 315.4C321.3 324.5 301.7 319.6 292.6 304.5L264 256.9V448H608C625.7 448 640 462.3 640 480C640 497.7 625.7 512 608 512H32C14.33 512 0 497.7 0 480C0 462.3 14.33 448 32 448H120L120 256.9zM200 448V352H184V448H200zM393.4 326.6C380.9 314.1 380.9 293.9 393.4 281.4C405.9 268.9 426.1 268.9 438.6 281.4L464 306.7V64C464 46.33 478.3 32 496 32C513.7 32 528 46.33 528 64V306.7L553.4 281.4C565.9 268.9 586.1 268.9 598.6 281.4C611.1 293.9 611.1 314.1 598.6 326.6L518.6 406.6C506.1 419.1 485.9 419.1 473.4 406.6L393.4 326.6z"]},A8={prefix:"fas",iconName:"person-arrow-up-from-line",icon:[640,512,[],"e539","M144 48C144 21.49 165.5 0 192 0C218.5 0 240 21.49 240 48C240 74.51 218.5 96 192 96C165.5 96 144 74.51 144 48zM120 256.9L91.43 304.5C82.33 319.6 62.67 324.5 47.52 315.4C32.37 306.3 27.47 286.7 36.57 271.5L94.85 174.6C112.2 145.7 143.4 128 177.1 128H206.9C240.6 128 271.8 145.7 289.2 174.6L347.4 271.5C356.5 286.7 351.6 306.3 336.5 315.4C321.3 324.5 301.7 319.6 292.6 304.5L264 256.9V448H608C625.7 448 640 462.3 640 480C640 497.7 625.7 512 608 512H32C14.33 512 0 497.7 0 480C0 462.3 14.33 448 32 448H120L120 256.9zM200 448V352H184V448H200zM598.6 121.4C611.1 133.9 611.1 154.1 598.6 166.6C586.1 179.1 565.9 179.1 553.4 166.6L528 141.3V384C528 401.7 513.7 416 496 416C478.3 416 464 401.7 464 384V141.3L438.6 166.6C426.1 179.1 405.9 179.1 393.4 166.6C380.9 154.1 380.9 133.9 393.4 121.4L473.4 41.37C485.9 28.88 506.1 28.88 518.6 41.37L598.6 121.4z"]},jo={prefix:"fas",iconName:"person-circle-xmark",icon:[576,512,[],"e543","M208 48C208 74.51 186.5 96 160 96C133.5 96 112 74.51 112 48C112 21.49 133.5 0 160 0C186.5 0 208 21.49 208 48zM152 352V480C152 497.7 137.7 512 120 512C102.3 512 88 497.7 88 480V256.9L59.43 304.5C50.33 319.6 30.67 324.5 15.52 315.4C.3696 306.3-4.531 286.7 4.573 271.5L62.85 174.6C80.2 145.7 111.4 128 145.1 128H174.9C208.6 128 239.8 145.7 257.2 174.6L302.1 249.3C285.1 266.9 273.4 287.7 265.5 310.8C263.6 308.9 261.1 306.8 260.6 304.5L232 256.9V480C232 497.7 217.7 512 200 512C182.3 512 168 497.7 168 480V352L152 352zM288 368C288 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368C576 447.5 511.5 512 432 512C352.5 512 288 447.5 288 368zM491.3 331.3C497.6 325.1 497.6 314.9 491.3 308.7C485.1 302.4 474.9 302.4 468.7 308.7L432 345.4L395.3 308.7C389.1 302.4 378.9 302.4 372.7 308.7C366.4 314.9 366.4 325.1 372.7 331.3L409.4 368L372.7 404.7C366.4 410.9 366.4 421.1 372.7 427.3C378.9 433.6 389.1 433.6 395.3 427.3L432 390.6L468.7 427.3C474.9 433.6 485.1 433.6 491.3 427.3C497.6 421.1 497.6 410.9 491.3 404.7L454.6 368L491.3 331.3z"]},J8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},_i={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M204.3 32.01H96c-52.94 0-96 43.06-96 96c0 17.67 14.31 31.1 32 31.1s32-14.32 32-31.1c0-17.64 14.34-32 32-32h108.3C232.8 96.01 256 119.2 256 147.8c0 19.72-10.97 37.47-30.5 47.33L127.8 252.4C117.1 258.2 112 268.7 112 280v40c0 17.67 14.31 31.99 32 31.99s32-14.32 32-31.99V298.3L256 251.3c39.47-19.75 64-59.42 64-103.5C320 83.95 268.1 32.01 204.3 32.01zM144 400c-22.09 0-40 17.91-40 40s17.91 39.1 40 39.1s40-17.9 40-39.1S166.1 400 144 400z"]},Zo={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M13.97 2.196C22.49-1.72 32.5-.3214 39.62 5.778L80 40.39L120.4 5.778C129.4-1.926 142.6-1.926 151.6 5.778L192 40.39L232.4 5.778C241.4-1.926 254.6-1.926 263.6 5.778L304 40.39L344.4 5.778C351.5-.3214 361.5-1.72 370 2.196C378.5 6.113 384 14.63 384 24V488C384 497.4 378.5 505.9 370 509.8C361.5 513.7 351.5 512.3 344.4 506.2L304 471.6L263.6 506.2C254.6 513.9 241.4 513.9 232.4 506.2L192 471.6L151.6 506.2C142.6 513.9 129.4 513.9 120.4 506.2L80 471.6L39.62 506.2C32.5 512.3 22.49 513.7 13.97 509.8C5.456 505.9 0 497.4 0 488V24C0 14.63 5.456 6.112 13.97 2.196V2.196zM96 144C87.16 144 80 151.2 80 160C80 168.8 87.16 176 96 176H288C296.8 176 304 168.8 304 160C304 151.2 296.8 144 288 144H96zM96 368H288C296.8 368 304 360.8 304 352C304 343.2 296.8 336 288 336H96C87.16 336 80 343.2 80 352C80 360.8 87.16 368 96 368zM96 240C87.16 240 80 247.2 80 256C80 264.8 87.16 272 96 272H288C296.8 272 304 264.8 304 256C304 247.2 296.8 240 288 240H96z"]},V9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 160h319.9l.0791 72c0 9.547 5.652 18.19 14.41 22c8.754 3.812 18.93 2.078 25.93-4.406l112-104c10.24-9.5 10.24-25.69 0-35.19l-112-104c-6.992-6.484-17.17-8.217-25.93-4.408c-8.758 3.816-14.41 12.46-14.41 22L351.9 96H32C14.31 96 0 110.3 0 127.1S14.31 160 32 160zM480 352H160.1L160 279.1c0-9.547-5.652-18.19-14.41-22C136.9 254.2 126.7 255.9 119.7 262.4l-112 104c-10.24 9.5-10.24 25.69 0 35.19l112 104c6.992 6.484 17.17 8.219 25.93 4.406C154.4 506.2 160 497.5 160 488L160.1 416H480c17.69 0 32-14.31 32-32S497.7 352 480 352z"]},G9={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M320 256C302.3 256 288 270.3 288 288C288 305.7 302.3 320 320 320H416C469 320 512 362.1 512 416C512 469 469 512 416 512H139.6C148.3 502.1 158.9 489.4 169.6 475.2C175.9 466.8 182.4 457.6 188.6 448H416C433.7 448 448 433.7 448 416C448 398.3 433.7 384 416 384H320C266.1 384 223.1 341 223.1 288C223.1 234.1 266.1 192 320 192H362.1C340.2 161.5 320 125.4 320 96C320 42.98 362.1 0 416 0C469 0 512 42.98 512 96C512 160 416 256 416 256H320zM416 128C433.7 128 448 113.7 448 96C448 78.33 433.7 64 416 64C398.3 64 384 78.33 384 96C384 113.7 398.3 128 416 128zM118.3 487.8C118.1 488 117.9 488.2 117.7 488.4C113.4 493.4 109.5 497.7 106.3 501.2C105.9 501.6 105.5 502 105.2 502.4C99.5 508.5 96 512 96 512C96 512 0 416 0 352C0 298.1 42.98 255.1 96 255.1C149 255.1 192 298.1 192 352C192 381.4 171.8 417.5 149.9 448C138.1 463.2 127.7 476.9 118.3 487.8L118.3 487.8zM95.1 384C113.7 384 127.1 369.7 127.1 352C127.1 334.3 113.7 320 95.1 320C78.33 320 63.1 334.3 63.1 352C63.1 369.7 78.33 384 95.1 384z"]},Z9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z"]},J9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},tg={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 288H32c-17.62 0-32 14.38-32 32v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32v-128C512 302.4 497.6 288 480 288zM352 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S365.3 408 352 408zM416 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S429.3 408 416 408zM480 32H32C14.38 32 0 46.38 0 64v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32V64C512 46.38 497.6 32 480 32zM352 152c-13.25 0-24-10.75-24-24S338.8 104 352 104S376 114.8 376 128S365.3 152 352 152zM416 152c-13.25 0-24-10.75-24-24S402.8 104 416 104S440 114.8 440 128S429.3 152 416 152z"]},fg={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M223.1 32C223.1 14.33 238.3 0 255.1 0C273.7 0 288 14.33 288 32H441.4C445.6 32 449.7 33.69 452.7 36.69L500.7 84.69C506.9 90.93 506.9 101.1 500.7 107.3L452.7 155.3C449.7 158.3 445.6 160 441.4 160H63.1C46.33 160 31.1 145.7 31.1 128V64C31.1 46.33 46.33 32 63.1 32L223.1 32zM480 320C480 337.7 465.7 352 448 352H70.63C66.38 352 62.31 350.3 59.31 347.3L11.31 299.3C5.065 293.1 5.065 282.9 11.31 276.7L59.31 228.7C62.31 225.7 66.38 223.1 70.63 223.1H223.1V191.1H288V223.1H448C465.7 223.1 480 238.3 480 255.1V320zM255.1 512C238.3 512 223.1 497.7 223.1 480V384H288V480C288 497.7 273.7 512 255.1 512z"]},lC={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"]},gC={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64C179.8 64 144 99.82 144 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80V144C80 64.47 144.5 0 224 0C281.5 0 331 33.69 354.1 82.27C361.7 98.23 354.9 117.3 338.1 124.9C322.1 132.5 303.9 125.7 296.3 109.7C283.4 82.63 255.9 64 224 64H224zM256 384C273.7 384 288 369.7 288 352C288 334.3 273.7 320 256 320H192C174.3 320 160 334.3 160 352C160 369.7 174.3 384 192 384H256z"]},xC={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M274.7 304H173.3C77.61 304 0 381.6 0 477.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM632.3 134.4c-9.703-9-24.91-8.453-33.92 1.266l-87.05 93.75l-38.39-38.39c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l56 56C499.5 285.5 505.6 288 512 288h.4375c6.531-.125 12.72-2.891 17.16-7.672l104-112C642.6 158.6 642 143.4 632.3 134.4z"]},MC={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.63 0-144 64.38-144 144s64.38 144 144 144s144-64.38 144-144S575.6 224 496 224zM544 384h-54.25C484.4 384 480 379.6 480 374.3V304c0-8.836 7.164-16 16-16c8.838 0 16 7.164 16 16v48h32c8.838 0 16 7.164 16 15.1S552.8 384 544 384zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 368c0-19.3 3.221-37.82 8.961-55.2C311.9 307.2 293.6 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H395C349.7 480.2 320 427.6 320 368z"]},SC={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M425.1 482.6c-2.303-1.25-4.572-2.559-6.809-3.93l-7.818 4.493c-6.002 3.504-12.83 5.352-19.75 5.352c-10.71 0-21.13-4.492-28.97-12.75c-18.41-20.09-32.29-44.15-40.22-69.9c-5.352-18.06 2.343-36.87 17.83-45.24l8.018-4.669c-.0664-2.621-.0664-5.242 0-7.859l-7.655-4.461c-12.3-6.953-19.4-19.66-19.64-33.38C305.6 306.3 290.4 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H413.3c5.727 0 10.9-1.727 15.66-4.188c-2.271-4.984-3.86-10.3-3.86-16.06V482.6zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM610.5 373.3c2.625-14 2.625-28.5 0-42.5l25.75-15c3-1.625 4.375-5.125 3.375-8.5c-6.75-21.5-18.25-41.13-33.25-57.38c-2.25-2.5-6-3.125-9-1.375l-25.75 14.88c-10.88-9.25-23.38-16.5-36.88-21.25V212.3c0-3.375-2.5-6.375-5.75-7c-22.25-5-45-4.875-66.25 0c-3.25 .625-5.625 3.625-5.625 7v29.88c-13.5 4.75-26 12-36.88 21.25L394.4 248.5c-2.875-1.75-6.625-1.125-9 1.375c-15 16.25-26.5 35.88-33.13 57.38c-1 3.375 .3751 6.875 3.25 8.5l25.75 15c-2.5 14-2.5 28.5 0 42.5l-25.75 15c-3 1.625-4.25 5.125-3.25 8.5c6.625 21.5 18.13 41 33.13 57.38c2.375 2.5 6 3.125 9 1.375l25.88-14.88c10.88 9.25 23.38 16.5 36.88 21.25v29.88c0 3.375 2.375 6.375 5.625 7c22.38 5 45 4.875 66.25 0c3.25-.625 5.75-3.625 5.75-7v-29.88c13.5-4.75 26-12 36.88-21.25l25.75 14.88c2.875 1.75 6.75 1.125 9-1.375c15-16.25 26.5-35.88 33.25-57.38c1-3.375-.3751-6.875-3.375-8.5L610.5 373.3zM496 400.5c-26.75 0-48.5-21.75-48.5-48.5s21.75-48.5 48.5-48.5c26.75 0 48.5 21.75 48.5 48.5S522.8 400.5 496 400.5z"]},DC={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M592 288H576V212.7c0-41.84-30.03-80.04-71.66-84.27C456.5 123.6 416 161.1 416 208V288h-16C373.6 288 352 309.6 352 336v128c0 26.4 21.6 48 48 48h192c26.4 0 48-21.6 48-48v-128C640 309.6 618.4 288 592 288zM496 432c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S513.6 432 496 432zM528 288h-64V208c0-17.62 14.38-32 32-32s32 14.38 32 32V288zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 336c0-8.672 1.738-16.87 4.303-24.7C308.6 306.6 291.9 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512h301.7C326.3 498.6 320 482.1 320 464V336z"]},kC={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM183.9 216c0-5.449 .9824-10.63 1.609-15.91C174.6 194.1 162.6 192 149.9 192H88.08C39.44 192 0 233.8 0 285.3C0 295.6 7.887 304 17.62 304h199.5C196.7 280.2 183.9 249.7 183.9 216zM128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM551.9 192h-61.84c-12.8 0-24.88 3.037-35.86 8.24C454.8 205.5 455.8 210.6 455.8 216c0 33.71-12.78 64.21-33.16 88h199.7C632.1 304 640 295.6 640 285.3C640 233.8 600.6 192 551.9 192z"]},BC={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"]},KC={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"]},QC={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]}},429:(He,j,p)=>{"use strict";p.d(j,{$2:()=>di,$A:()=>B,$W:()=>Y,BL:()=>C,BZ:()=>Ie,CN:()=>y,CX:()=>h,EG:()=>A,EK:()=>le,El:()=>X,HI:()=>_e,HJ:()=>T,HW:()=>Gt,I8:()=>M,JK:()=>ye,JX:()=>Pe,Lu:()=>E,Ly:()=>lt,My:()=>Kt,Ni:()=>u,Nr:()=>Te,OG:()=>n,QJ:()=>Z,RX:()=>D,Rd:()=>Ee,SN:()=>P,Sf:()=>_,TM:()=>t,UH:()=>W,UR:()=>c,VD:()=>he,WM:()=>te,WO:()=>r,Wi:()=>$,X3:()=>q,YP:()=>ne,YX:()=>I,Z8:()=>ae,ZH:()=>ie,Zu:()=>xe,_9:()=>At,_E:()=>V,aL:()=>ze,as:()=>g,bP:()=>mt,cQ:()=>ee,d7:()=>ot,dS:()=>jt,dh:()=>G,e9:()=>ht,eM:()=>De,en:()=>hi,g3:()=>k,g6:()=>be,i9:()=>pe,it:()=>_t,kL:()=>d,n7:()=>R,oF:()=>vt,oV:()=>x,oo:()=>a,p7:()=>Xe,pW:()=>S,pc:()=>ei,u0:()=>Q,uT:()=>Le,v_:()=>H,xH:()=>b,xS:()=>w,yl:()=>Ae,z:()=>re});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),b=(0,e.PH)(i.AB.RESET_CLN_STORE,(0,e.Ky)()),a=(0,e.PH)(i.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),y=(0,e.PH)(i.AB.FETCH_INFO_CLN,(0,e.Ky)()),h=(0,e.PH)(i.AB.SET_INFO_CLN,(0,e.Ky)()),P=(0,e.PH)(i.AB.FETCH_FEES_CLN),D=(0,e.PH)(i.AB.SET_FEES_CLN,(0,e.Ky)()),T=(0,e.PH)(i.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),M=(0,e.PH)(i.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(i.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(i.AB.SET_BALANCE_CLN,(0,e.Ky)()),k=(0,e.PH)(i.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(i.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),V=(0,e.PH)(i.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),Y=((0,e.PH)(i.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_PEERS_CLN)),ae=(0,e.PH)(i.AB.SET_PEERS_CLN,(0,e.Ky)()),X=(0,e.PH)(i.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),q=((0,e.PH)(i.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.ADD_PEER_CLN,(0,e.Ky)())),re=(0,e.PH)(i.AB.DETACH_PEER_CLN,(0,e.Ky)()),le=(0,e.PH)(i.AB.REMOVE_PEER_CLN,(0,e.Ky)()),ee=(0,e.PH)(i.AB.FETCH_PAYMENTS_CLN),_e=(0,e.PH)(i.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),x=(0,e.PH)(i.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),t=(0,e.PH)(i.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),r=(0,e.PH)(i.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),d=(0,e.PH)(i.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),c=(0,e.PH)(i.AB.FETCH_CHANNELS_CLN),g=(0,e.PH)(i.AB.SET_CHANNELS_CLN,(0,e.Ky)()),S=(0,e.PH)(i.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(i.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),C=(0,e.PH)(i.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),n=(0,e.PH)(i.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),_=(0,e.PH)(i.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),B=(0,e.PH)(i.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),R=(0,e.PH)(i.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),H=(0,e.PH)(i.AB.SET_LOOKUP_CLN,(0,e.Ky)()),Q=(0,e.PH)(i.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),Z=(0,e.PH)(i.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),te=(0,e.PH)(i.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),Te=(0,e.PH)(i.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ee=(0,e.PH)(i.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),ne=(0,e.PH)(i.AB.ADD_INVOICE_CLN,(0,e.Ky)()),ze=(0,e.PH)(i.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),be=(0,e.PH)(i.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),$=(0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),lt=((0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_UTXOS_CLN)),W=(0,e.PH)(i.AB.SET_UTXOS_CLN,(0,e.Ky)()),De=(0,e.PH)(i.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),he=(0,e.PH)(i.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Ae=(0,e.PH)(i.AB.FETCH_OFFERS_CLN),xe=(0,e.PH)(i.AB.SET_OFFERS_CLN,(0,e.Ky)()),G=(0,e.PH)(i.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),ie=(0,e.PH)(i.AB.ADD_OFFER_CLN,(0,e.Ky)()),pe=(0,e.PH)(i.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),ye=(0,e.PH)(i.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Le=(0,e.PH)(i.AB.FETCH_OFFER_BOOKMARKS_CLN),ot=(0,e.PH)(i.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),ht=(0,e.PH)(i.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),At=(0,e.PH)(i.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),hi=(0,e.PH)(i.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),jt=(0,e.PH)(i.AB.FETCH_SWAPS_CLN),Gt=(0,e.PH)(i.AB.SET_SWAPS_CLN,(0,e.Ky)()),di=(0,e.PH)(i.AB.FETCH_SWAP_PEERS_CLN),vt=(0,e.PH)(i.AB.SET_SWAP_PEERS_CLN,(0,e.Ky)()),mt=((0,e.PH)(i.AB.FETCH_SWAP_REQUESTS_CLN),(0,e.PH)(i.AB.SET_SWAP_REQUESTS_CLN,(0,e.Ky)())),Xe=(0,e.PH)(i.AB.SWAPOUT_CLN,(0,e.Ky)()),_t=(0,e.PH)(i.AB.ADD_SWAPOUT_CLN,(0,e.Ky)()),ei=(0,e.PH)(i.AB.SWAPIN_CLN,(0,e.Ky)()),Kt=(0,e.PH)(i.AB.ADD_SWAPIN_CLN,(0,e.Ky)()),Pe=(0,e.PH)(i.AB.GET_SWAP_CLN,(0,e.Ky)()),Ie=(0,e.PH)(i.AB.UPDATE_SWAP_STATE_CLN,(0,e.Ky)())},4947:(He,j,p)=>{"use strict";p.d(j,{J:()=>_e});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),h=p(262),P=p(2340),D=p(1786),T=p(5566),M=p(7731),A=p(7861),E=p(429),k=p(9828),w=p(1462),V=p(5e3),U=p(8138),Y=p(5620),ae=p(5986),X=p(62),de=p(5043),q=p(1402),re=p(7998),le=p(9808),ee=p(9445);let _e=(()=>{class x{constructor(r,d,c,g,S,I,C,n,_,B,R,H,Q){this.actions=r,this.httpClient=d,this.store=c,this.sessionService=g,this.commonService=S,this.logger=I,this.router=C,this.wsService=n,this.location=_,this.swapStatePipe=B,this.titleCasePipe=R,this.decimalPipe=H,this.datePipe=Q,this.CHILD_API_URL=P.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INFO_CLN),(0,b.z)(Z=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.INITIATED}})),this.store.dispatch((0,A.ac)({payload:M.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(M.pg.SET_SELECTED_NODE))),(0,y.U)(te=>(this.logger.info(te),te.chains&&te.chains.length&&te.chains[0]&&"object"==typeof te.chains[0]&&te.chains[0].hasOwnProperty("chain")&&(null==te?void 0:te.chains[0].chain)&&(null==te?void 0:te.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),this.store.dispatch((0,A.ts)()),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:M.pg.LOGOUT}):(this.initializeRemainingData(te,Z.payload.loadPage),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),{type:M.AB.SET_INFO_CLN,payload:te||{}}))),(0,h.K)(te=>{const Te=this.commonService.extractErrorCode(te),Ee="ETIMEDOUT"===Te?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(te);return this.router.navigate(["/error"],{state:{errorCode:Te,errorMessage:Ee}}),this.handleErrorWithoutAlert("FetchInfo",M.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Te,error:Ee}),(0,u.of)({type:M.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEES_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API))),(0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEES_CLN,payload:Z||{}})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchFees",M.m6.NO_SPINNER,"Fetching Fees Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEE_RATES_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/feeRates/"+Z.payload).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEE_RATES_CLN,payload:te||{}})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchFeeRates"+Z.payload,M.m6.NO_SPINNER,"Fetching Fee Rates Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.BALANCE_API))),(0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_BALANCE_CLN,payload:Z||{}})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:Z||{}})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_NEW_ADDRESS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+Z.payload.addressCode).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,A.uO)({payload:M.m6.GENERATE_NEW_ADDRESS})),{type:M.AB.SET_NEW_ADDRESS_CLN,payload:te&&te.address?te.address:{}})),(0,h.K)(te=>(this.handleErrorWithAlert("GenerateNewAddress",M.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+Z.payload.addressId,te),(0,u.of)({type:M.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_NEW_ADDRESS_CLN),(0,y.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PEERS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PEERS_CLN,payload:Z||[]})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchPeers",M.m6.NO_SPINNER,"Fetching Peers Failed.",Z),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_PEER_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API,{id:Z.payload.id}).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:te||[]})),{type:M.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:te.find(Te=>0===Z.payload.id.indexOf(Te.id?Te.id:""))}})),(0,h.K)(te=>(this.handleErrorWithoutAlert("SaveNewPeer",M.m6.CONNECT_PEER,"Peer Connection Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DETACH_PEER_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+Z.payload.id+"?force="+Z.payload.force).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,A.uO)({payload:M.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Peer Disconnected Successfully!"})),{type:M.AB.REMOVE_PEER_CLN,payload:{id:Z.payload.id}})),(0,h.K)(te=>(this.handleErrorWithAlert("PeerDisconnect",M.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+Z.payload.id,te),(0,u.of)({type:M.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_CHANNELS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listChannels"))),(0,y.U)(Z=>{this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.COMPLETED}}));const te={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return Z.forEach(Te=>{"CHANNELD_NORMAL"===Te.state?Te.connected?te.activeChannels.push(Te):te.inactiveChannels.push(Te):te.pendingChannels.push(Te)}),{type:M.AB.SET_CHANNELS_CLN,payload:te}}),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchChannels",M.m6.NO_SPINNER,"Fetching Channels Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_CHANNEL_CLN),(0,b.z)(Z=>{this.store.dispatch((0,A.ac)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.INITIATED}}));const te={id:Z.payload.peerId,satoshis:Z.payload.satoshis,feeRate:Z.payload.feeRate,announce:Z.payload.announce};return Z.payload.minconf&&(te.minconf=Z.payload.minconf),Z.payload.utxos&&(te.utxos=Z.payload.utxos),Z.payload.requestAmount&&(te.request_amt=Z.payload.requestAmount),Z.payload.compactLease&&(te.compact_lease=Z.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,te).pipe((0,y.U)(Te=>(this.logger.info(Te),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.FETCH_CHANNELS_CLN})),(0,h.K)(Te=>(this.handleErrorWithoutAlert("SaveNewChannel",M.m6.OPEN_CHANNEL,"Opening Channel Failed.",Te),(0,u.of)({type:M.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.UPDATE_CHANNEL_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/setChannelFee",{id:Z.payload.channelId,base:Z.payload.baseFeeMsat,ppm:Z.payload.feeRate}).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,A.uO)({payload:M.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,A.jW)("all"===Z.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:M.AB.FETCH_CHANNELS_CLN})),(0,h.K)(te=>(this.handleErrorWithAlert("UpdateChannel",M.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,te),(0,u.of)({type:M.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CLOSE_CHANNEL_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:Z.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/"+Z.payload.channelId+(Z.payload.force?"?force="+Z.payload.force:"")).pipe((0,y.U)(Te=>(this.logger.info(Te),this.store.dispatch((0,A.uO)({payload:Z.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,A.jW)({payload:"Channel Closed Successfully!"})),{type:M.AB.REMOVE_CHANNEL_CLN,payload:Z.payload})),(0,h.K)(Te=>(this.handleErrorWithAlert("CloseChannel",Z.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,Te),(0,u.of)({type:M.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PAYMENTS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API))),(0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PAYMENTS_CLN,payload:Z||[]})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchPayments",M.m6.NO_SPINNER,"Fetching Payments Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_INVOICE_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API+"/fetchOfferInvoice",Z.payload).pipe((0,y.U)(te=>{this.logger.info(te),setTimeout(()=>{this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.VD)({payload:te||{}}))},500)}),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchOfferInvoice",M.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",te),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_OFFER_INVOICE_CLN),(0,y.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SEND_PAYMENT_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,Z.payload).pipe((0,y.U)(te=>{this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.COMPLETED}}));let Te="Payment Sent Successfully!";te.saveToDBError&&(Te="Payment Sent Successfully but Offer Saving to Database Failed."),te.saveToDBResponse&&"NA"!==te.saveToDBResponse&&(this.store.dispatch((0,E.e9)({payload:te.saveToDBResponse})),Te="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.cQ)()),this.store.dispatch((0,A.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,A.jW)({payload:Te})),this.store.dispatch((0,E.TM)({payload:te.paymentResponse}))},1e3)}),(0,h.K)(te=>(this.logger.error("Error: "+JSON.stringify(te)),Z.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed.",te):this.handleErrorWithAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,te),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_QUERY_ROUTES_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.COMPLETED}})),{type:M.AB.SET_QUERY_ROUTES_CLN,payload:te})),(0,h.K)(te=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",M.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount,te),(0,u.of)({type:M.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_QUERY_ROUTES_CLN),(0,y.U)(Z=>Z.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.PEER_LOOKUP_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_NODE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+Z.payload).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_NODE})),{type:M.AB.SET_LOOKUP_CLN,payload:te})),(0,h.K)(te=>(this.handleErrorWithAlert("Lookup",M.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+Z.payload,te),(0,u.of)({type:M.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CHANNEL_LOOKUP_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:Z.payload.uiMessage})),{type:M.AB.SET_LOOKUP_CLN,payload:te})),(0,h.K)(te=>(Z.payload.showError?this.handleErrorWithAlert("Lookup",Z.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID,te):this.store.dispatch((0,A.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.v_)({payload:[]})),(0,u.of)({type:M.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.INVOICE_LOOKUP_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?label="+Z.payload).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_INVOICE})),te.invoices&&te.invoices.length&&te.invoices.length>0&&this.store.dispatch((0,E.aL)({payload:te.invoices[0]})),{type:M.AB.SET_LOOKUP_CLN,payload:te.invoices&&te.invoices.length&&te.invoices.length>0?te.invoices[0]:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("Lookup",M.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",te),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:M.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_LOOKUP_CLN),(0,y.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_FORWARDING_HISTORY_CLN),(0,b.z)(Z=>{const te=Z.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+te,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+Z.payload.status).pipe((0,y.U)(Te=>(this.logger.info(Te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+te,status:M.Bn.COMPLETED}})),Z.payload.status===M.OO.FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.FAILED,totalForwards:Te.length,listForwards:Te}})):Z.payload.status===M.OO.LOCAL_FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.LOCAL_FAILED,totalForwards:Te.length,listForwards:Te}})):Z.payload.status===M.OO.SETTLED&&this.store.dispatch((0,E.QJ)({payload:{status:M.OO.SETTLED,totalForwards:Te.length,listForwards:Te}})),{type:M.pg.VOID})),(0,h.K)(Te=>(this.handleErrorWithAlert("FetchForwardingHistory"+te,M.m6.NO_SPINNER,"Get "+Z.payload.status+" Forwarding History Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+Z.payload.status,Te),(0,u.of)({type:M.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_EXPIRED_INVOICE_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.INVOICES_API+(Z.payload?"?maxexpiry="+Z.payload:"")).pipe((0,y.U)(Te=>(this.logger.info(Te),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_INVOICE})),this.store.dispatch((0,A.jW)({payload:"Invoices Deleted Successfully!"})),{type:M.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,h.K)(Te=>(this.handleErrorWithAlert("DeleteInvoices",M.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+P.NZ.INVOICES_API,Te),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_INVOICE_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.ADD_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,{label:Z.payload.label,amount:Z.payload.amount,description:Z.payload.description,expiry:Z.payload.expiry,private:Z.payload.private}).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.ADD_INVOICE})),te.msatoshi=Z.payload.amount,te.label=Z.payload.label,te.expires_at=Math.round((new Date).getTime()/1e3+Z.payload.expiry),te.description=Z.payload.description,te.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:te,newlyAdded:!0,component:T.y}}}))},100),{type:M.AB.ADD_INVOICE_CLN,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("SaveNewInvoice",M.m6.ADD_INVOICE,"Add Invoice Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_OFFER_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.CREATE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API,{amount:Z.payload.amount,description:Z.payload.description,vendor:Z.payload.vendor}).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{offer:te,newlyAdded:!0,component:w.k}}}))},100),{type:M.AB.ADD_OFFER_CLN,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("SaveNewOffer",M.m6.CREATE_OFFER,"Create Offer Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INVOICES_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?num_max_invoices="+(Z.payload.num_max_invoices?Z.payload.num_max_invoices:1e6)+"&index_offset="+(Z.payload.index_offset?Z.payload.index_offset:0)+"&reversed="+(!Z.payload.reversed||Z.payload.reversed)).pipe((0,y.U)(ne=>(this.logger.info(ne),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.COMPLETED}})),{type:M.AB.SET_INVOICES_CLN,payload:ne})),(0,h.K)(ne=>(this.handleErrorWithoutAlert("FetchInvoices",M.m6.NO_SPINNER,"Fetching Invoices Failed.",ne),(0,u.of)({type:M.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFERS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFERS_CLN,payload:te.offers?te.offers:[]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchOffers",M.m6.NO_SPINNER,"Fetching Offers Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DISABLE_OFFER_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/"+Z.payload.offer_id).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,A.jW)({payload:"Offer Disabled Successfully!"})),{type:M.AB.UPDATE_OFFER_CLN,payload:{offer:te}})),(0,h.K)(te=>(this.handleErrorWithoutAlert("DisableOffer",M.m6.DISABLE_OFFER,"Disabling Offer Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmarks").pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFER_BOOKMARKS_CLN,payload:te||[]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",M.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_OFFER_BOOKMARK_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,A.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:M.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:Z.payload.bolt12}})),(0,h.K)(te=>(this.handleErrorWithAlert("DeleteOfferBookmark",M.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12,te),(0,u.of)({type:M.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_CHANNEL_TRANSACTION_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,Z.payload).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("SetChannelTransaction",M.m6.SEND_FUNDS,"Sending Fund Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_UTXOS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/utxos"))),(0,y.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.COMPLETED}})),{type:M.AB.SET_UTXOS_CLN,payload:Z.outputs||[]})),(0,h.K)(Z=>(this.handleErrorWithoutAlert("FetchUTXOs",M.m6.NO_SPINNER,"Fetching UTXOs Failed.",Z),(0,u.of)({type:M.pg.VOID}))))),this.swapGetCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_SWAP_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetSwap",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swap/"+Z.payload).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"GetSwap",status:M.Bn.COMPLETED}})),{type:M.AB.UPDATE_SWAP_STATE_CLN,payload:{swapId:Z.payload,state:te.current,type:1===te.type?M.hc.SWAP_IN:M.hc.SWAP_OUT}})),(0,h.K)(te=>(this.handleErrorWithoutAlert("GetSwap",M.m6.NO_SPINNER,"Getting Swap Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.swapsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAPS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwaps").pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAPS_CLN,payload:te||[]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swaps Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.swapPeersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_PEERS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapPeers").pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_PEERS_CLN,payload:te||[]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchSwapPeers",M.m6.NO_SPINNER,"Fetching Swap Peers Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.swapRequestsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_REQUESTS_CLN),(0,b.z)(Z=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapRequests").pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_REQUESTS_CLN,payload:te||[]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchSwapRequests",M.m6.NO_SPINNER,"Fetching Swap Requests Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapOutCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPOUT_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapOut",{amountSats:Z.payload.amountSats,shortChannelId:Z.payload.shortChannelId,asset:Z.payload.asset}).pipe((0,y.U)(te=>(this.logger.info(te),te.alias=Z.payload.alias,this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapout Initiated",message:this.reorderedSwapResponse(te)}}}))},100),{type:M.AB.ADD_SWAPOUT_CLN,message:[{key:"id",value:te.id,title:"Swap Id",width:100,type:M.Gi.STRING}]})),(0,h.K)(te=>(this.handleErrorWithoutAlert("PeerswapSwapout",M.m6.PEERSWAP_SWAPOUT,"Swapout Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapInCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPIN_CLN),(0,b.z)(Z=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapIn",{amountSats:Z.payload.amountSats,shortChannelId:Z.payload.shortChannelId,asset:Z.payload.asset}).pipe((0,y.U)(te=>(this.logger.info(te),te.alias=Z.payload.alias,this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapin Initiated",message:this.reorderedSwapResponse(te)}}}))},100),{type:M.AB.ADD_SWAPIN_CLN,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("PeerswapSwapin",M.m6.PEERSWAP_SWAPIN,"Swapin Failed.",te),(0,u.of)({type:M.pg.VOID})))))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(Z=>{Z.FetchInfo.status!==M.Bn.COMPLETED&&Z.FetchInfo.status!==M.Bn.ERROR||Z.FetchFees.status!==M.Bn.COMPLETED&&Z.FetchFees.status!==M.Bn.ERROR||Z.FetchChannels.status!==M.Bn.COMPLETED&&Z.FetchChannels.status!==M.Bn.ERROR||Z.FetchBalance.status!==M.Bn.COMPLETED&&Z.FetchBalance.status!==M.Bn.ERROR||Z.FetchLocalRemoteBalance.status!==M.Bn.COMPLETED&&Z.FetchLocalRemoteBalance.status!==M.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:M.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(Z=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(Z)),Z)switch(Z.event){case M.nM.INVOICE:this.logger.info(Z),Z&&Z.data&&Z.data.label&&this.store.dispatch((0,E.aL)({payload:Z.data}));break;case M.nM.SEND_PAYMENT:case M.nM.BLOCK_HEIGHT:this.logger.info(Z);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Z))}})}reorderedSwapResponse(r){const d=[[{key:"id",value:r.id,title:"Swap Id",width:100,type:M.Gi.STRING}],[{key:"state",value:this.swapStatePipe.transform(r.state||""),title:"State",width:50,type:M.Gi.STRING},{key:"role",value:this.titleCasePipe.transform(r.role),title:"Role",width:50,type:M.Gi.STRING}],[{key:"alias",value:r.alias,title:"Alias",width:50,type:M.Gi.STRING},{key:"short_channel_id",value:r.short_channel_id,title:"Short Channel ID",width:50,type:M.Gi.STRING}],[{key:"amount",value:this.decimalPipe.transform(r.amount),title:"Amount (Sats)",width:50,type:M.Gi.STRING},{key:"created_at",value:this.datePipe.transform(new Date(r.created_at||""),"dd/MMM/YYYY HH:mm"),title:"Created At",width:50,type:M.Gi.STRING}],[{key:"peer_node_id",value:r.peer_node_id,title:"Peer Node Id",width:100,type:M.Gi.STRING}],[{key:"initiator_node_id",value:r.initiator_node_id,title:"Initiator Node Id",width:100,type:M.Gi.STRING}]];return r.opening_tx_id&&d.push([{key:"opening_tx_id",value:r.opening_tx_id,title:"Opening Transaction Id",width:100,type:M.Gi.STRING}]),r.claim_tx_id&&d.push([{key:"claim_tx_id",value:r.claim_tx_id,title:"Claim Transaction Id",width:100,type:M.Gi.STRING}]),r.cancel_message&&d.push([{key:"cancel_message",value:r.cancel_message,title:"Cancel Message",width:100,type:M.Gi.STRING}]),d}initializeRemainingData(r,d){this.sessionService.setItem("clUnlocked","true");const c={identity_pubkey:r.id,alias:r.alias,testnet:"testnet"===r.network.toLowerCase(),chains:r.chains,uris:r.uris,version:r.version,api_version:r.api_version,numberOfPendingChannels:r.num_pending_channels};this.store.dispatch((0,A.ac)({payload:M.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:c}));let g=this.location.path();g.includes("/lnd/")?g=null==g?void 0:g.replace("/lnd/","/cln/"):g.includes("/ecl/")&&(g=null==g?void 0:g.replace("/ecl/","/cln/")),(g.includes("/login")||g.includes("/error")||""===g||"HOME"===d||g.includes("?access-key="))&&(g="/cln/home"),this.router.navigate([g]),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,E.HJ)({payload:"perkw"})),this.store.dispatch((0,E.HJ)({payload:"perkb"})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.Ly)()),this.store.dispatch((0,E.cQ)())}handleErrorWithoutAlert(r,d,c,g){if(this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(g)),401===g.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:d}));const S=this.commonService.extractErrorMessage(g,c);this.store.dispatch((0,E.Ni)({payload:{action:r,status:M.Bn.ERROR,statusCode:g.status.toString(),message:S}}))}}handleErrorWithAlert(r,d,c,g,S){if(this.logger.error(S),401===S.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:d}));const I=this.commonService.extractErrorMessage(S);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:S.status,message:I,URL:g},component:D.H}}})),this.store.dispatch((0,E.Ni)({payload:{action:r,status:M.Bn.ERROR,statusCode:S.status.toString(),message:I,URL:g}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(V.LFG(e.eX),V.LFG(U.eN),V.LFG(Y.yh),V.LFG(ae.m),V.LFG(X.v),V.LFG(de.mQ),V.LFG(q.F0),V.LFG(re.d),V.LFG(le.Ye),V.LFG(ee.rn),V.LFG(le.rS),V.LFG(le.JJ),V.LFG(le.uU))},x.\u0275prov=V.Yz7({token:x,factory:x.\u0275fac}),x})()},9828:(He,j,p)=>{"use strict";p.d(j,{Ao:()=>q,Bo:()=>U,EQ:()=>ee,Fl:()=>x,Ho:()=>t,Hz:()=>re,JG:()=>D,OL:()=>X,PP:()=>h,Rn:()=>w,T4:()=>E,Wi:()=>P,Wj:()=>V,Y_:()=>le,ZW:()=>k,ey:()=>b,gc:()=>A,hx:()=>M,jK:()=>de,lK:()=>ae,lw:()=>u,xQ:()=>Y,yA:()=>y,zm:()=>T});var e=p(5620);const i=(0,e.ZF)("cln"),u=(0,e.P1)(i,d=>d.nodeSettings),b=(0,e.P1)(i,d=>d.information),y=((0,e.P1)(i,d=>d.apisCallStatus.FetchInfo),(0,e.P1)(i,d=>d.apisCallStatus)),h=(0,e.P1)(i,d=>({payments:d.payments,apiCallStatus:d.apisCallStatus.FetchPayments})),P=(0,e.P1)(i,d=>({peers:d.peers,apiCallStatus:d.apisCallStatus.FetchPeers})),D=(0,e.P1)(i,d=>({fees:d.fees,apiCallStatus:d.apisCallStatus.FetchFees})),T=(0,e.P1)(i,d=>({feeRatesPerKB:d.feeRatesPerKB,apiCallStatus:d.apisCallStatus.FetchFeeRatesperkb})),M=(0,e.P1)(i,d=>({feeRatesPerKW:d.feeRatesPerKW,apiCallStatus:d.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(i,d=>({listInvoices:d.invoices,apiCallStatus:d.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,d=>({utxos:d.utxos,apiCallStatus:d.apisCallStatus.FetchUTXOs})),k=(0,e.P1)(i,d=>({activeChannels:d.activeChannels,pendingChannels:d.pendingChannels,inactiveChannels:d.inactiveChannels,apiCallStatus:d.apisCallStatus.FetchChannels})),w=(0,e.P1)(i,d=>({balance:d.balance,apiCallStatus:d.apisCallStatus.FetchBalance})),V=(0,e.P1)(i,d=>({localRemoteBalance:d.localRemoteBalance,apiCallStatus:d.apisCallStatus.FetchLocalRemoteBalance})),U=(0,e.P1)(i,d=>({forwardingHistory:d.forwardingHistory,apiCallStatus:d.apisCallStatus.FetchForwardingHistoryS})),Y=(0,e.P1)(i,d=>({failedForwardingHistory:d.failedForwardingHistory,apiCallStatus:d.apisCallStatus.FetchForwardingHistoryF})),ae=(0,e.P1)(i,d=>({localFailedForwardingHistory:d.localFailedForwardingHistory,apiCallStatus:d.apisCallStatus.FetchForwardingHistoryL})),X=(0,e.P1)(i,d=>({information:d.information,nodeSettings:d.nodeSettings,balance:d.balance})),de=(0,e.P1)(i,d=>({information:d.information,balance:d.balance,numPeers:d.peers.length})),q=(0,e.P1)(i,d=>({information:d.information,balance:d.balance})),re=(0,e.P1)(i,d=>({information:d.information,nodeSettings:d.nodeSettings,apisCallStatus:[d.apisCallStatus.FetchInfo,d.apisCallStatus.FetchForwardingHistoryS]})),le=(0,e.P1)(i,d=>({offers:d.offers,apiCallStatus:d.apisCallStatus.FetchOffers})),ee=(0,e.P1)(i,d=>({offersBookmarks:d.offersBookmarks,apiCallStatus:d.apisCallStatus.FetchOfferBookmarks})),x=(0,e.P1)(i,d=>({swapOuts:d.swapOuts,swapIns:d.swapIns,swapsCanceled:d.swapsCanceled,apiCallStatus:d.apisCallStatus.FetchSwaps})),t=(0,e.P1)(i,d=>({totalSwapPeers:d.totalSwapPeers,swapPeers:d.swapPeers,apiCallStatus:d.apisCallStatus.FetchSwapPeers}));(0,e.P1)(i,d=>({swapRequests:d.swapRequests,apiCallStatus:d.apisCallStatus.FetchSwapRequests}))},5566:(He,j,p)=>{"use strict";p.d(j,{y:()=>lt});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),h=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),V=p(9224),U=p(9444),Y=p(7238),ae=p(7423),X=p(4834),de=p(773),q=p(3390),re=p(6895);function le(W,De){if(1&W&&h._UZ(0,"qr-code",33),2&W){const he=h.oxw();h.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function ee(W,De){1&W&&(h.TgZ(0,"span",34),h._uU(1,"N/A"),h.qZA())}const _e=function(W){return{"mr-0":W}};function x(W,De){if(1&W&&h._UZ(0,"span",35),2&W){const he=h.oxw();h.Q6J("ngClass",h.VKq(1,_e,he.screenSize===he.screenSizeEnum.XS))}}function t(W,De){if(1&W&&h._UZ(0,"span",36),2&W){const he=h.oxw();h.Q6J("ngClass",h.VKq(1,_e,he.screenSize===he.screenSizeEnum.XS))}}function r(W,De){if(1&W&&h._UZ(0,"span",37),2&W){const he=h.oxw();h.Q6J("ngClass",h.VKq(1,_e,he.screenSize===he.screenSizeEnum.XS))}}function d(W,De){if(1&W&&h._UZ(0,"qr-code",33),2&W){const he=h.oxw();h.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function c(W,De){1&W&&(h.TgZ(0,"span",38),h._uU(1,"QR Code Not Applicable"),h.qZA())}function g(W,De){1&W&&h._UZ(0,"mat-divider",39),2&W&&h.Q6J("inset",!0)}function S(W,De){if(1&W&&(h.TgZ(0,"div",19)(1,"div",40),h._UZ(2,"fa-icon",41),h.TgZ(3,"span"),h._uU(4),h.qZA()()()),2&W){const he=h.oxw();h.xp6(2),h.Q6J("icon",he.faExclamationTriangle),h.xp6(2),h.Oqu(null==he.invoice?null:he.invoice.warning_capacity)}}function I(W,De){1&W&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function C(W,De){1&W&&h._UZ(0,"span",47)}const n=function(){return[]};function _(W,De){if(1&W&&(h.TgZ(0,"div",43)(1,"div",44)(2,"span",45),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,C,1,0,"span",46),h.qZA()()),2&W){const he=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,n).constructor(35))}}function B(W,De){if(1&W&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&W){const he=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats")}}function R(W,De){if(1&W&&(h.ynx(0),h.YNc(1,_,6,5,"div",42),h.YNc(2,B,3,3,"div",23),h.BQk()),2&W){const he=h.oxw();h.xp6(1),h.Q6J("ngIf",he.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!he.flgInvoicePaid)}}function H(W,De){1&W&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function Q(W,De){1&W&&h._UZ(0,"mat-spinner",49),2&W&&h.Q6J("diameter",20)}function Z(W,De){if(1&W&&(h.ynx(0),h.YNc(1,H,2,0,"span",23),h.YNc(2,Q,1,1,"mat-spinner",48),h.BQk()),2&W){const he=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==he.invoice?null:he.invoice.status)||!he.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==he.invoice?null:he.invoice.status)&&he.flgVersionCompatible)}}function te(W,De){if(1&W&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",25),h.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),h._uU(5,"Payment Hash"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",25),h.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),h._uU(12,"Label"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()()(),h._UZ(15,"mat-divider",25),h.qZA()),2&W){const he=h.oxw();h.xp6(7),h.Oqu(null==he.invoice?null:he.invoice.payment_hash),h.xp6(7),h.Oqu(null==he.invoice?null:he.invoice.label)}}function Te(W,De){1&W&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function Ee(W,De){1&W&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function ne(W,De){if(1&W){const he=h.EpF();h.TgZ(0,"button",50),h.NdJ("copied",function(xe){return h.CHM(he),h.oxw().onCopyPayment(xe)}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&W){const he=h.oxw();h.Q6J("payload",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))}}function ze(W,De){if(1&W){const he=h.EpF();h.TgZ(0,"button",51),h.NdJ("click",function(){return h.CHM(he),h.oxw().onClose()}),h._uU(1,"OK"),h.qZA()}}const be=function(W){return{"display-none":W}},$=function(W){return{"xs-scroll-y":W}},ke=function(W,De){return{"mt-2":W,"mt-1":De}};let lt=(()=>{class W{constructor(he,Ae,xe,G,ie,pe){this.dialogRef=he,this.data=Ae,this.logger=xe,this.commonService=G,this.snackBar=ie,this.store=pe,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(he=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(he.api_version,"0.6.0")}),this.store.select(y.gc).pipe((0,b.R)(this.unSubs[1])).subscribe(he=>{const Ae=this.invoice.status,xe=he.listInvoices.invoices||[];this.invoice=null==xe?void 0:xe.find(G=>G.payment_hash===this.invoice.payment_hash),Ae!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(he)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(he){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+he)}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}}return W.\u0275fac=function(he){return new(he||W)(h.Y36(e.so),h.Y36(e.WI),h.Y36(P.mQ),h.Y36(D.v),h.Y36(T.ux),h.Y36(M.yh))},W.\u0275cmp=h.Xpm({type:W,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(he,Ae){if(1&he&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,le,1,3,"qr-code",2),h.YNc(3,ee,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.YNc(10,x,1,3,"span",9),h.YNc(11,t,1,3,"span",10),h.YNc(12,r,1,3,"span",11),h.qZA()(),h.TgZ(13,"button",12),h.NdJ("click",function(){return Ae.onClose()}),h._uU(14,"X"),h.qZA()(),h.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),h.YNc(18,d,1,3,"qr-code",2),h.YNc(19,c,2,0,"span",16),h.qZA(),h.YNc(20,g,1,1,"mat-divider",17),h.YNc(21,S,5,2,"div",18),h.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),h._uU(25),h.qZA(),h.TgZ(26,"span",22),h._uU(27),h.ALo(28,"number"),h.YNc(29,I,2,0,"ng-container",23),h.qZA()(),h.TgZ(30,"div",20)(31,"h4",21),h._uU(32,"Amount Received"),h.qZA(),h.TgZ(33,"span",24),h.YNc(34,R,3,2,"ng-container",23),h.YNc(35,Z,3,2,"ng-container",23),h.qZA()()(),h._UZ(36,"mat-divider",25),h.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),h._uU(40,"Date Expiry"),h.qZA(),h.TgZ(41,"span",22),h._uU(42),h.ALo(43,"date"),h.qZA()(),h.TgZ(44,"div",20)(45,"h4",21),h._uU(46,"Date Settled"),h.qZA(),h.TgZ(47,"span",22),h._uU(48),h.ALo(49,"date"),h.qZA()()(),h._UZ(50,"mat-divider",25),h.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),h._uU(54,"Description"),h.qZA(),h.TgZ(55,"span",22),h._uU(56),h.qZA()()(),h._UZ(57,"mat-divider",25),h.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),h._uU(61),h.qZA(),h.TgZ(62,"span",24),h._uU(63),h.qZA()()(),h.YNc(64,te,16,2,"div",23),h.TgZ(65,"div",27)(66,"button",28),h.NdJ("click",function(){return Ae.onShowAdvanced()}),h.YNc(67,Te,2,0,"p",29),h.YNc(68,Ee,2,0,"ng-template",null,30,h.W1O),h.qZA(),h.YNc(70,ne,2,1,"button",31),h.YNc(71,ze,2,0,"button",32),h.qZA()()()()()),2&he){const xe=h.MAs(69);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Ae.invoice&&Ae.invoice.bolt11&&""!==(null==Ae.invoice?null:Ae.invoice.bolt11)||null!=Ae.invoice&&Ae.invoice.bolt12&&""!==(null==Ae.invoice?null:Ae.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(40,be,Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ae.invoice?null:Ae.invoice.bolt11)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt11)||(null==Ae.invoice?null:Ae.invoice.bolt12)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Ae.invoice&&Ae.invoice.bolt11||null!=Ae.invoice&&Ae.invoice.bolt12)),h.xp6(4),h.Q6J("icon",Ae.faReceipt),h.xp6(2),h.hij(" ",Ae.screenSize===Ae.screenSizeEnum.XS?Ae.newlyAdded?"Created":"Invoice":Ae.newlyAdded?"Invoice Created":"Invoice Information"," "),h.xp6(1),h.Q6J("ngIf","paid"===(null==Ae.invoice?null:Ae.invoice.status)),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==Ae.invoice?null:Ae.invoice.status)),h.xp6(1),h.Q6J("ngIf","expired"===(null==Ae.invoice?null:Ae.invoice.status)),h.xp6(3),h.Q6J("ngClass",h.VKq(42,$,Ae.screenSize===Ae.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Ae.invoice&&Ae.invoice.bolt11&&""!==(null==Ae.invoice?null:Ae.invoice.bolt11)||null!=Ae.invoice&&Ae.invoice.bolt12&&""!==(null==Ae.invoice?null:Ae.invoice.bolt12)?"center start":"center center")("ngClass",h.VKq(44,be,Ae.screenSize!==Ae.screenSizeEnum.XS&&Ae.screenSize!==Ae.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Ae.invoice?null:Ae.invoice.bolt11)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt11)||(null==Ae.invoice?null:Ae.invoice.bolt12)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Ae.invoice&&Ae.invoice.bolt11||null!=Ae.invoice&&Ae.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Ae.screenSize===Ae.screenSizeEnum.XS||Ae.screenSize===Ae.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngIf",null==Ae.invoice?null:Ae.invoice.warning_capacity),h.xp6(4),h.Oqu(Ae.screenSize===Ae.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij(" ",h.lcZ(28,32,(null==Ae.invoice?null:Ae.invoice.msatoshi)/1e3||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=Ae.invoice&&Ae.invoice.msatoshi)||"0"===(null==Ae.invoice?null:Ae.invoice.msatoshi)),h.xp6(5),h.Q6J("ngIf","paid"===(null==Ae.invoice?null:Ae.invoice.status)),h.xp6(1),h.Q6J("ngIf","paid"!==(null==Ae.invoice?null:Ae.invoice.status)),h.xp6(7),h.Oqu(h.xi3(43,34,1e3*(null==Ae.invoice?null:Ae.invoice.expires_at),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(49,37,1e3*(null==Ae.invoice?null:Ae.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.xp6(8),h.Oqu((null==Ae.invoice?null:Ae.invoice.description)||"-"),h.xp6(5),h.hij("",null!=Ae.invoice&&Ae.invoice.bolt12?"Bolt12":null!=Ae.invoice&&Ae.invoice.bolt11&&!Ae.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.xp6(2),h.Oqu((null==Ae.invoice?null:Ae.invoice.bolt11)||(null==Ae.invoice?null:Ae.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",Ae.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(46,ke,!Ae.showAdvanced,Ae.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Ae.showAdvanced)("ngIfElse",xe),h.xp6(3),h.Q6J("ngIf",(null==Ae.invoice?null:Ae.invoice.bolt11)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt11)||(null==Ae.invoice?null:Ae.invoice.bolt12)&&""!==(null==Ae.invoice?null:Ae.invoice.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Ae.invoice&&Ae.invoice.bolt11||null!=Ae.invoice&&Ae.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,V.dk,U.BN,Y.gM,ae.lW,V.dn,X.d,E.sg,de.Ou,q.h,re.y],pipes:[E.JJ,E.uU],styles:[""]}),W})()},1462:(He,j,p)=>{"use strict";p.d(j,{k:()=>H});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),h=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(8104),E=p(7093),k=p(9808),w=p(3322),V=p(159),U=p(9224),Y=p(9444),ae=p(7423),X=p(4834),de=p(3390),q=p(6895);function re(Q,Z){if(1&Q&&h._UZ(0,"qr-code",28),2&Q){const te=h.oxw();h.Q6J("value",null==te.offer?null:te.offer.bolt12)("size",te.qrWidth)("errorCorrectionLevel","L")}}function le(Q,Z){1&Q&&(h.TgZ(0,"span",29),h._uU(1,"N/A"),h.qZA())}function ee(Q,Z){if(1&Q&&h._UZ(0,"qr-code",28),2&Q){const te=h.oxw();h.Q6J("value",null==te.offer?null:te.offer.bolt12)("size",te.qrWidth)("errorCorrectionLevel","L")}}function _e(Q,Z){1&Q&&(h.TgZ(0,"span",30),h._uU(1,"QR Code Not Applicable"),h.qZA())}function x(Q,Z){1&Q&&h._UZ(0,"mat-divider",31),2&Q&&h.Q6J("inset",!0)}function t(Q,Z){1&Q&&h._UZ(0,"mat-divider",19)}function r(Q,Z){if(1&Q&&(h.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),h._uU(3,"Used"),h.qZA(),h.TgZ(4,"span",18),h._uU(5),h.qZA()(),h.TgZ(6,"div",16)(7,"h4",17),h._uU(8,"Single Use"),h.qZA(),h.TgZ(9,"span",18),h._uU(10),h.qZA()()()),2&Q){const te=h.oxw(2);h.xp6(5),h.hij(" ",null!=te.offer&&te.offer.used?null!=te.offer&&te.offer.used?"Yes":"No":"N/K"," "),h.xp6(5),h.hij(" ",null!=te.offer&&te.offer.single_use?null!=te.offer&&te.offer.single_use?"Yes":"No":"N/K"," ")}}function d(Q,Z){1&Q&&h._UZ(0,"mat-divider",19)}function c(Q,Z){if(1&Q&&(h.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),h._uU(3,"Vendor"),h.qZA(),h.TgZ(4,"span",34),h._uU(5),h.qZA()()()),2&Q){const te=h.oxw(2);h.xp6(5),h.Oqu((null==te.offerDecoded?null:te.offerDecoded.vendor)||(null==te.offerDecoded?null:te.offerDecoded.issuer))}}function g(Q,Z){if(1&Q&&(h.TgZ(0,"div"),h.YNc(1,t,1,0,"mat-divider",32),h.YNc(2,r,11,2,"div",33),h.YNc(3,d,1,0,"mat-divider",32),h.YNc(4,c,6,1,"div",33),h._UZ(5,"mat-divider",19),h.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),h._uU(9,"Offer ID"),h.qZA(),h.TgZ(10,"span",18),h._uU(11),h.qZA()()(),h._UZ(12,"mat-divider",19),h.qZA()),2&Q){const te=h.oxw();h.xp6(1),h.Q6J("ngIf",(null==te.offer?null:te.offer.used)||(null==te.offer?null:te.offer.single_use)),h.xp6(1),h.Q6J("ngIf",(null==te.offer?null:te.offer.used)||(null==te.offer?null:te.offer.single_use)),h.xp6(1),h.Q6J("ngIf",(null==te.offerDecoded?null:te.offerDecoded.vendor)||(null==te.offerDecoded?null:te.offerDecoded.issuer)),h.xp6(1),h.Q6J("ngIf",(null==te.offerDecoded?null:te.offerDecoded.vendor)||(null==te.offerDecoded?null:te.offerDecoded.issuer)),h.xp6(7),h.Oqu(te.offerDecoded.offer_id)}}function S(Q,Z){1&Q&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function I(Q,Z){1&Q&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function C(Q,Z){if(1&Q){const te=h.EpF();h.TgZ(0,"button",35),h.NdJ("copied",function(Ee){return h.CHM(te),h.oxw().onCopyOffer(Ee)}),h._uU(1,"Copy Offer"),h.qZA()}if(2&Q){const te=h.oxw();h.Q6J("payload",null==te.offer?null:te.offer.bolt12)}}function n(Q,Z){if(1&Q){const te=h.EpF();h.TgZ(0,"button",36),h.NdJ("click",function(){return h.CHM(te),h.oxw().onClose()}),h._uU(1,"OK"),h.qZA()}}const _=function(Q){return{"display-none":Q}},B=function(Q){return{"xs-scroll-y":Q}},R=function(Q,Z){return{"mt-2":Q,"mt-1":Z}};let H=(()=>{class Q{constructor(te,Te,Ee,ne,ze,be,$){this.dialogRef=te,this.data=Te,this.logger=Ee,this.commonService=ne,this.snackBar=ze,this.store=be,this.dataService=$,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(te=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(te.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,b.R)(this.unSubs[1])).subscribe(te=>{var Te;this.offerDecoded=te,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(Te=this.offerDecoded.amount_msat)||void 0===Te?void 0:Te.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(te){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+te)}ngOnDestroy(){this.unSubs.forEach(te=>{te.next(null),te.complete()})}}return Q.\u0275fac=function(te){return new(te||Q)(h.Y36(e.so),h.Y36(e.WI),h.Y36(P.mQ),h.Y36(D.v),h.Y36(T.ux),h.Y36(M.yh),h.Y36(A.D))},Q.\u0275cmp=h.Xpm({type:Q,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(te,Te){if(1&te&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,re,1,3,"qr-code",2),h.YNc(3,le,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return Te.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,ee,1,3,"qr-code",2),h.YNc(16,_e,2,0,"span",13),h.qZA(),h.YNc(17,x,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested (Sats)"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.qZA()(),h.TgZ(25,"div",16)(26,"h4",17),h._uU(27,"Active"),h.qZA(),h.TgZ(28,"span",18),h._uU(29),h.qZA()()(),h._UZ(30,"mat-divider",19),h.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),h._uU(34,"Description"),h.qZA(),h.TgZ(35,"span",18),h._uU(36),h.qZA()()(),h._UZ(37,"mat-divider",19),h.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),h._uU(41,"Offer Request"),h.qZA(),h.TgZ(42,"span",18),h._uU(43),h.qZA()()(),h.YNc(44,g,13,5,"div",21),h.TgZ(45,"div",22)(46,"button",23),h.NdJ("click",function(){return Te.onShowAdvanced()}),h.YNc(47,S,2,0,"p",24),h.YNc(48,I,2,0,"ng-template",null,25,h.W1O),h.qZA(),h.YNc(50,C,2,1,"button",26),h.YNc(51,n,2,0,"button",27),h.qZA()()()()()),2&te){const Ee=h.MAs(49);h.xp6(1),h.Q6J("fxLayoutAlign",null!=Te.offer&&Te.offer.bolt12&&""!==(null==Te.offer?null:Te.offer.bolt12)?"center start":"center center")("ngClass",h.VKq(24,_,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Te.offer?null:Te.offer.bolt12)&&""!==(null==Te.offer?null:Te.offer.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Te.offer&&Te.offer.bolt12)||""===(null==Te.offer?null:Te.offer.bolt12)),h.xp6(4),h.Q6J("icon",Te.faReceipt),h.xp6(2),h.Oqu(Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Offer":Te.newlyAdded?"Offer Created":"Offer Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(26,B,Te.screenSize===Te.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=Te.offer&&Te.offer.bolt12&&""!==(null==Te.offer?null:Te.offer.bolt12)?"center start":"center center")("ngClass",h.VKq(28,_,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==Te.offer?null:Te.offer.bolt12)&&""!==(null==Te.offer?null:Te.offer.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Te.offer&&Te.offer.bolt12)||""===(null==Te.offer?null:Te.offer.bolt12)),h.xp6(1),h.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),h.xp6(6),h.hij(" ",null!=Te.offerDecoded&&Te.offerDecoded.amount_msat&&0!==(null==Te.offerDecoded?null:Te.offerDecoded.amount)?h.lcZ(24,22,(null==Te.offerDecoded?null:Te.offerDecoded.amount)/1e3):"Open Offer"," "),h.xp6(6),h.hij(" ",null!=Te.offer&&Te.offer.active?null!=Te.offer&&Te.offer.active?"Active":"Inactive":"N/K"," "),h.xp6(7),h.hij(" ",null==Te.offerDecoded?null:Te.offerDecoded.description," "),h.xp6(7),h.Oqu(null==Te.offer?null:Te.offer.bolt12),h.xp6(1),h.Q6J("ngIf",Te.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(30,R,!Te.showAdvanced,Te.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",Ee),h.xp6(3),h.Q6J("ngIf",(null==Te.offer?null:Te.offer.bolt12)&&""!==(null==Te.offer?null:Te.offer.bolt12)),h.xp6(1),h.Q6J("ngIf",!(null!=Te.offer&&Te.offer.bolt12)||""===(null==Te.offer?null:Te.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,k.mk,w.oO,k.O5,V.uU,U.dk,Y.BN,ae.lW,U.dn,X.d,de.h,q.y],pipes:[k.JJ],styles:[""]}),Q})()},2994:(He,j,p)=>{"use strict";p.d(j,{$W:()=>Y,BL:()=>r,Bw:()=>w,CX:()=>h,DJ:()=>$,EK:()=>le,El:()=>X,Fd:()=>b,GD:()=>re,HG:()=>U,HI:()=>g,Iy:()=>R,Lf:()=>B,Nr:()=>Z,OG:()=>d,On:()=>V,QZ:()=>u,RX:()=>D,SN:()=>P,Sf:()=>ne,TM:()=>n,TW:()=>A,UR:()=>T,WM:()=>Q,WO:()=>S,YP:()=>Te,YX:()=>x,Z$:()=>te,Z8:()=>ae,Zr:()=>a,_E:()=>ee,aL:()=>Ee,cQ:()=>c,eN:()=>M,i:()=>E,iL:()=>k,iz:()=>y,kL:()=>I,mC:()=>_,n7:()=>ze,oV:()=>C,pW:()=>t,ti:()=>ke});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(i.lr.RESET_ECL_STORE,(0,e.Ky)()),a=(0,e.PH)(i.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),y=(0,e.PH)(i.lr.FETCH_INFO_ECL,(0,e.Ky)()),h=(0,e.PH)(i.lr.SET_INFO_ECL,(0,e.Ky)()),P=(0,e.PH)(i.lr.FETCH_FEES_ECL),D=(0,e.PH)(i.lr.SET_FEES_ECL,(0,e.Ky)()),T=(0,e.PH)(i.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),M=(0,e.PH)(i.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(i.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(i.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),k=(0,e.PH)(i.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(i.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),V=(0,e.PH)(i.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),U=(0,e.PH)(i.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),Y=(0,e.PH)(i.lr.FETCH_PEERS_ECL),ae=(0,e.PH)(i.lr.SET_PEERS_ECL,(0,e.Ky)()),X=(0,e.PH)(i.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),re=((0,e.PH)(i.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.DETACH_PEER_ECL,(0,e.Ky)())),le=(0,e.PH)(i.lr.REMOVE_PEER_ECL,(0,e.Ky)()),ee=(0,e.PH)(i.lr.GET_NEW_ADDRESS_ECL),x=((0,e.PH)(i.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),t=(0,e.PH)(i.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),r=(0,e.PH)(i.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),d=(0,e.PH)(i.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),c=(0,e.PH)(i.lr.FETCH_PAYMENTS_ECL),g=(0,e.PH)(i.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),S=(0,e.PH)(i.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(i.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),C=(0,e.PH)(i.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),n=(0,e.PH)(i.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),_=(0,e.PH)(i.lr.FETCH_TRANSACTIONS_ECL),B=(0,e.PH)(i.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),R=(0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),Q=((0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.FETCH_INVOICES_ECL)),Z=(0,e.PH)(i.lr.SET_INVOICES_ECL,(0,e.Ky)()),te=(0,e.PH)(i.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),Te=(0,e.PH)(i.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ee=(0,e.PH)(i.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),ne=(0,e.PH)(i.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),ze=(0,e.PH)(i.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),$=((0,e.PH)(i.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),ke=(0,e.PH)(i.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(He,j,p)=>{"use strict";p.d(j,{o:()=>le});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),h=p(262),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(7766),E=p(2994),k=p(2501),w=p(5e3),V=p(8138),U=p(5620),Y=p(5986),ae=p(62),X=p(5043),de=p(1402),q=p(7998),re=p(9808);let le=(()=>{class ee{constructor(x,t,r,d,c,g,S,I,C){this.actions=x,this.httpClient=t,this.store=r,this.sessionService=d,this.commonService=c,this.logger=g,this.router=S,this.wsService=I,this.location=C,this.CHILD_API_URL=P.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INFO_ECL),(0,b.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,M.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.ac)({payload:T.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(T.pg.SET_SELECTED_NODE))),(0,y.U)(_=>(this.logger.info(_),this.initializeRemainingData(_,n.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.GET_NODE_INFO})),{type:T.lr.SET_INFO_ECL,payload:_||{}})),(0,h.K)(_=>{const B=this.commonService.extractErrorCode(_),R=503===B?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(_);return this.router.navigate(["/error"],{state:{errorCode:B,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",T.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:B,error:R}),(0,u.of)({type:T.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_FEES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/fees").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.COMPLETED}})),{type:T.lr.SET_FEES_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchFees",T.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PAYMENTS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/payments").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",T.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_CHANNELS_ECL),(0,b.z)(n=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API).pipe((0,y.U)(_=>(this.logger.info(_),this.rawChannelsList=_,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:T.pg.VOID})),(0,h.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",T.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,u.of)({type:T.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/balance"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.COMPLETED}})),{type:T.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",T.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PEERS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PEERS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",T.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_NEW_ADDRESS_ECL),(0,b.z)(()=>(this.store.dispatch((0,M.ac)({payload:T.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,M.uO)({payload:T.m6.GENERATE_NEW_ADDRESS})),{type:T.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithAlert("GetNewAddress",T.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n),(0,u.of)({type:T.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_NEW_ADDRESS_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.COMPLETED}})),_=_||[],this.store.dispatch((0,M.uO)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:_})),{type:T.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:_.find(B=>B.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,h.K)(_=>(this.handleErrorWithoutAlert("SaveNewPeer",T.m6.CONNECT_PEER,"Peer Connection Failed.",_),(0,u.of)({type:T.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.DETACH_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,M.uO)({payload:T.m6.DISCONNECT_PEER})),this.store.dispatch((0,M.jW)({payload:"Disconnecting Peer!"})),{type:T.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,h.K)(_=>(this.handleErrorWithAlert("DisconnectPeer",T.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId,_),(0,u.of)({type:T.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,n.payload.feeRate&&n.payload.feeRate>0?{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private,fundingFeerateSatByte:n.payload.feeRate}:{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private}).pipe((0,y.U)(B=>(this.logger.info(B),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,M.uO)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.jW)({payload:"Channel Added Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",T.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,u.of)({type:T.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.UPDATE_CHANNEL_ECL),(0,b.z)(n=>{this.store.dispatch((0,M.ac)({payload:T.m6.UPDATE_CHAN_POLICY}));let _="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return _=n.payload.nodeIds?_+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?_+"&nodeId="+n.payload.nodeId:n.payload.channelIds?_+"&channelIds="+n.payload.channelIds:_+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/updateRelayFee"+_,{}).pipe((0,y.U)(B=>(this.logger.info(B),this.store.dispatch((0,M.uO)({payload:T.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,M.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,h.K)(B=>(this.handleErrorWithAlert("UpdateChannels",T.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,B),(0,u.of)({type:T.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CLOSE_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,y.U)(_=>(this.logger.info(_),setTimeout(()=>{this.store.dispatch((0,M.uO)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,M.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:T.pg.VOID})),(0,h.K)(_=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,_),(0,u.of)({type:T.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_QUERY_ROUTES_ECL),(0,b.z)(n=>this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,y.U)(_=>(this.logger.info(_),{type:T.lr.SET_QUERY_ROUTES_ECL,payload:_})),(0,h.K)(_=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",T.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,_),(0,u.of)({type:T.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_QUERY_ROUTES_ECL),(0,y.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_PAYMENT_ECL),(0,b.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,M.ac)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,n.payload).pipe((0,y.U)(_=>(this.logger.info(_),this.latestPaymentRes=_,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:T.pg.VOID})),(0,h.K)(_=>(this.logger.error("Error: "+JSON.stringify(_)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed.",_):this.handleErrorWithAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,_),(0,u.of)({type:T.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_TRANSACTIONS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.COMPLETED}})),{type:T.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",T.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_ONCHAIN_FUNDS_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n.payload).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:T.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:_})),(0,h.K)(_=>(this.handleErrorWithoutAlert("SendOnchainFunds",T.m6.SEND_FUNDS,"Sending Fund Failed.",_),(0,u.of)({type:T.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CREATE_INVOICE_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,n.payload).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.CREATE_INVOICE})),_.timestamp=Math.round((new Date).getTime()/1e3),_.expiresAt=Math.round(_.timestamp+n.payload.expireIn),_.description=n.payload.description,_.status="unpaid",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{invoice:_,newlyAdded:!0,component:A.R}}}))},100),{type:T.lr.ADD_INVOICE_ECL,payload:_})),(0,h.K)(_=>(this.handleErrorWithoutAlert("CreateInvoice",T.m6.CREATE_INVOICE,"Create Invoice Failed.",_),(0,u.of)({type:T.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INVOICES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.COMPLETED}})),{type:T.lr.SET_INVOICES_ECL,payload:n})),(0,h.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",T.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.PEER_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_NODE})),{type:T.lr.SET_LOOKUP_ECL,payload:_})),(0,h.K)(_=>(this.handleErrorWithAlert("Lookup",T.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload,_),(0,u.of)({type:T.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.INVOICE_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"/"+n.payload).pipe((0,y.U)(_=>(this.logger.info(_),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:_})),{type:T.lr.SET_LOOKUP_ECL,payload:_})),(0,h.K)(_=>(this.handleErrorWithoutAlert("Lookup",T.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",_),this.store.dispatch((0,M.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:T.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_LOOKUP_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,M.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==T.Bn.COMPLETED&&n.FetchInfo.status!==T.Bn.ERROR||n.FetchFees.status!==T.Bn.COMPLETED&&n.FetchFees.status!==T.Bn.ERROR||n.FetchOnchainBalance.status!==T.Bn.COMPLETED&&n.FetchOnchainBalance.status!==T.Bn.ERROR||n.FetchChannels.status!==T.Bn.COMPLETED&&n.FetchChannels.status!==T.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,M.uO)({payload:T.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{var _;this.logger.info("Received new message from the service: "+JSON.stringify(n));let B="";if(n)switch(n.type){case T.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,B="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(B));break;case T.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,B="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(B));break;case T.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:n}));break;case T.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,E.ti)({payload:n}));break;case T.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(_=this.rawChannelsList)||void 0===_?void 0:_.map(R=>(R.channelId===n.channelId&&R.nodeId===n.remoteNodeId&&(R.state=n.currentState),R)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,t=0,r=0,d={localBalance:0,remoteBalance:0},c=[];const g=[],S=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((C,n)=>{var _,B,R,H,Q;C&&("NORMAL"===C.state?(x=(C.toLocal||0)+(C.toRemote||0),t+=C.toLocal||0,r+=C.toRemote||0,C.balancedness=0===x?1:+(1-Math.abs(((C.toLocal||0)-(C.toRemote||0))/x)).toFixed(3),c.push(C),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(C.toLocal||0)):(null===(_=C.state)||void 0===_?void 0:_.includes("WAIT"))||(null===(B=C.state)||void 0===B?void 0:B.includes("CLOSING"))||(null===(R=C.state)||void 0===R?void 0:R.includes("SYNCING"))?(C.state=null===(H=C.state)||void 0===H?void 0:H.replace(/_/g," "),g.push(C),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(C.toLocal||0)):(C.state=null===(Q=C.state)||void 0===Q?void 0:Q.replace(/_/g," "),S.push(C),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(C.toLocal||0)))}),d={localBalance:t,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(g)),this.logger.info("Inactive Channels: "+JSON.stringify(S)),this.logger.info("Lightning Balances: "+JSON.stringify(d)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:g,inactive:S,balances:d,status:I})),this.store.dispatch((0,E.eN)({payload:c})),this.store.dispatch((0,E.TW)({payload:g})),this.store.dispatch((0,E.i)({payload:S})),this.store.dispatch((0,E.On)({payload:d})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(x,t){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:x.nodeId,alias:x.alias,testnet:"testnet"===x.network,chains:x.publicAddresses,uris:x.uris,version:x.version,numberOfPendingChannels:0};this.store.dispatch((0,M.ac)({payload:T.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,M._V)({payload:r}));let d=this.location.path();d.includes("/lnd/")?d=null==d?void 0:d.replace("/lnd/","/ecl/"):d.includes("/cln/")&&(d=null==d?void 0:d.replace("/cln/","/ecl/")),(d.includes("/login")||d.includes("/error")||""===d||"HOME"===t||d.includes("?access-key="))&&(d="/ecl/home"),this.router.navigate([d]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(x,t,r,d){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(d)),401===d.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,M.uO)({payload:t})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:d.status.toString(),message:this.commonService.extractErrorMessage(d,r)}})))}handleErrorWithAlert(x,t,r,d,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,M.uO)({payload:t}));const g=this.commonService.extractErrorMessage(c);this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:g,URL:d},component:D.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:c.status.toString(),message:g,URL:d}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return ee.\u0275fac=function(x){return new(x||ee)(w.LFG(e.eX),w.LFG(V.eN),w.LFG(U.yh),w.LFG(Y.m),w.LFG(ae.v),w.LFG(X.mQ),w.LFG(de.F0),w.LFG(q.d),w.LFG(re.Ye))},ee.\u0275prov=w.Yz7({token:ee,factory:ee.\u0275fac}),ee})()},2501:(He,j,p)=>{"use strict";p.d(j,{Bo:()=>E,Ef:()=>A,JG:()=>D,PP:()=>P,T$:()=>a,Xz:()=>T,dx:()=>M,kY:()=>k,pg:()=>u,yA:()=>h,yD:()=>b});var e=p(5620);const i=(0,e.ZF)("ecl"),u=(0,e.P1)(i,w=>w.nodeSettings),b=(0,e.P1)(i,w=>w.information),a=(0,e.P1)(i,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),h=((0,e.P1)(i,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(i,w=>w.apisCallStatus)),P=(0,e.P1)(i,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),T=(0,e.P1)(i,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),M=(0,e.P1)(i,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),k=(0,e.P1)(i,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(He,j,p)=>{"use strict";p.d(j,{R:()=>Ee});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(2501),h=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),V=p(9224),U=p(9444),Y=p(7423),ae=p(4834),X=p(773),de=p(3390),q=p(6895);function re(ne,ze){if(1&ne&&h._UZ(0,"qr-code",29),2&ne){const be=h.oxw();h.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function le(ne,ze){1&ne&&(h.TgZ(0,"span",30),h._uU(1,"N/A"),h.qZA())}function ee(ne,ze){if(1&ne&&h._UZ(0,"qr-code",29),2&ne){const be=h.oxw();h.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function _e(ne,ze){1&ne&&(h.TgZ(0,"span",31),h._uU(1,"QR Code Not Applicable"),h.qZA())}function x(ne,ze){1&ne&&h._UZ(0,"mat-divider",32),2&ne&&h.Q6J("inset",!0)}function t(ne,ze){1&ne&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function r(ne,ze){1&ne&&h._UZ(0,"span",38)}const d=function(){return[]};function c(ne,ze){if(1&ne&&(h.TgZ(0,"div",34)(1,"div",35)(2,"span",36),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,r,1,0,"span",37),h.qZA()()),2&ne){const be=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==be.invoice?null:be.invoice.amountSettled)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,d).constructor(35))}}function g(ne,ze){if(1&ne&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&ne){const be=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==be.invoice?null:be.invoice.amountSettled)," Sats")}}function S(ne,ze){if(1&ne&&(h.ynx(0),h.YNc(1,c,6,5,"div",33),h.YNc(2,g,3,3,"div",19),h.BQk()),2&ne){const be=h.oxw();h.xp6(1),h.Q6J("ngIf",be.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!be.flgInvoicePaid)}}function I(ne,ze){1&ne&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function C(ne,ze){1&ne&&h._UZ(0,"mat-spinner",40),2&ne&&h.Q6J("diameter",20)}function n(ne,ze){if(1&ne&&(h.ynx(0),h.YNc(1,I,2,0,"span",19),h.YNc(2,C,1,1,"mat-spinner",39),h.BQk()),2&ne){const be=h.oxw();h.xp6(1),h.Q6J("ngIf","unpaid"!==(null==be.invoice?null:be.invoice.status)||!be.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","unpaid"===(null==be.invoice?null:be.invoice.status)&&be.flgVersionCompatible)}}function _(ne,ze){if(1&ne&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",20),h.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),h._uU(5,"Date Expiry"),h.qZA(),h.TgZ(6,"span",18),h._uU(7),h.ALo(8,"date"),h.qZA()(),h.TgZ(9,"div",42)(10,"h4",17),h._uU(11,"Date Settled"),h.qZA(),h.TgZ(12,"span",21),h._uU(13),h.ALo(14,"date"),h.qZA()()(),h._UZ(15,"mat-divider",20),h.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),h._uU(19,"Payment Hash"),h.qZA(),h.TgZ(20,"span",21),h._uU(21),h.qZA()()(),h._UZ(22,"mat-divider",20),h.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),h._uU(26,"Node Id"),h.qZA(),h.TgZ(27,"span",21),h._uU(28),h.qZA()()(),h._UZ(29,"mat-divider",20),h.qZA()),2&ne){const be=h.oxw();h.xp6(7),h.Oqu(h.xi3(8,4,1e3*(null==be.invoice?null:be.invoice.expiresAt),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.xi3(14,7,1e3*(null==be.invoice?null:be.invoice.receivedAt),"dd/MMM/y HH:mm")),h.xp6(8),h.Oqu(null==be.invoice?null:be.invoice.paymentHash),h.xp6(7),h.Oqu(null==be.invoice?null:be.invoice.nodeId)}}function B(ne,ze){1&ne&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function R(ne,ze){1&ne&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function H(ne,ze){if(1&ne){const be=h.EpF();h.TgZ(0,"button",43),h.NdJ("copied",function(ke){return h.CHM(be),h.oxw().onCopyPayment(ke)}),h._uU(1,"Copy Invoice"),h.qZA()}if(2&ne){const be=h.oxw();h.Q6J("payload",null==be.invoice?null:be.invoice.serialized)}}function Q(ne,ze){if(1&ne){const be=h.EpF();h.TgZ(0,"button",44),h.NdJ("click",function(){return h.CHM(be),h.oxw().onClose()}),h._uU(1,"OK"),h.qZA()}}const Z=function(ne){return{"display-none":ne}},te=function(ne){return{"xs-scroll-y":ne}},Te=function(ne,ze){return{"mt-2":ne,"mt-1":ze}};let Ee=(()=>{class ne{constructor(be,$,ke,lt,W,De){this.dialogRef=be,this.data=$,this.logger=ke,this.commonService=lt,this.snackBar=W,this.store=De,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.yD).pipe((0,b.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.version,"0.5.0")}),this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(be=>{const $=this.invoice.status,ke=be.invoices&&be.invoices.length>0?be.invoices:[];this.invoice=(null==ke?void 0:ke.find(lt=>lt.paymentHash===this.invoice.paymentHash))||{},$!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(be)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(be){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return ne.\u0275fac=function(be){return new(be||ne)(h.Y36(e.so),h.Y36(e.WI),h.Y36(P.mQ),h.Y36(D.v),h.Y36(T.ux),h.Y36(M.yh))},ne.\u0275cmp=h.Xpm({type:ne,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(be,$){if(1&be&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,re,1,3,"qr-code",2),h.YNc(3,le,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return $.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,ee,1,3,"qr-code",2),h.YNc(16,_e,2,0,"span",13),h.qZA(),h.YNc(17,x,1,1,"mat-divider",14),h.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),h._uU(21,"Amount Requested"),h.qZA(),h.TgZ(22,"span",18),h._uU(23),h.ALo(24,"number"),h.YNc(25,t,2,0,"ng-container",19),h.qZA()(),h.TgZ(26,"div",16)(27,"h4",17),h._uU(28,"Amount Settled"),h.qZA(),h.TgZ(29,"span",18),h.YNc(30,S,3,2,"ng-container",19),h.YNc(31,n,3,2,"ng-container",19),h.qZA()()(),h._UZ(32,"mat-divider",20),h.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),h._uU(36,"Date Created"),h.qZA(),h.TgZ(37,"span",21),h._uU(38),h.ALo(39,"date"),h.qZA()(),h.TgZ(40,"div",16)(41,"h4",17),h._uU(42,"Status"),h.qZA(),h.TgZ(43,"span",21),h._uU(44),h.ALo(45,"titlecase"),h.qZA()()(),h._UZ(46,"mat-divider",20),h.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),h._uU(50,"Description"),h.qZA(),h.TgZ(51,"span",18),h._uU(52),h.qZA()()(),h._UZ(53,"mat-divider",20),h.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),h._uU(57,"Invoice"),h.qZA(),h.TgZ(58,"span",21),h._uU(59),h.qZA()()(),h.YNc(60,_,30,10,"div",19),h.TgZ(61,"div",23)(62,"button",24),h.NdJ("click",function(){return $.onShowAdvanced()}),h.YNc(63,B,2,0,"p",25),h.YNc(64,R,2,0,"ng-template",null,26,h.W1O),h.qZA(),h.YNc(66,H,2,1,"button",27),h.YNc(67,Q,2,0,"button",28),h.qZA()()()()()),2&be){const ke=h.MAs(65);h.xp6(1),h.Q6J("fxLayoutAlign",null!=$.invoice&&$.invoice.serialized&&""!==(null==$.invoice?null:$.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(33,Z,$.screenSize===$.screenSizeEnum.XS||$.screenSize===$.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized)),h.xp6(4),h.Q6J("icon",$.faReceipt),h.xp6(2),h.Oqu($.screenSize===$.screenSizeEnum.XS?$.newlyAdded?"Created":"Invoice":$.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(35,te,$.screenSize===$.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=$.invoice&&$.invoice.serialized&&""!==(null==$.invoice?null:$.invoice.serialized)?"center start":"center center")("ngClass",h.VKq(37,Z,$.screenSize!==$.screenSizeEnum.XS&&$.screenSize!==$.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",$.screenSize===$.screenSizeEnum.XS||$.screenSize===$.screenSizeEnum.SM),h.xp6(6),h.hij("",h.lcZ(24,26,(null==$.invoice?null:$.invoice.amount)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=$.invoice&&$.invoice.amount)||"0"===(null==$.invoice?null:$.invoice.amount)),h.xp6(5),h.Q6J("ngIf",null==$.invoice?null:$.invoice.amountSettled),h.xp6(1),h.Q6J("ngIf",!(null!=$.invoice&&$.invoice.amountSettled)),h.xp6(7),h.Oqu(h.xi3(39,28,1e3*(null==$.invoice?null:$.invoice.timestamp),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(h.lcZ(45,31,null==$.invoice?null:$.invoice.status)),h.xp6(8),h.Oqu((null==$.invoice?null:$.invoice.description)||"-"),h.xp6(7),h.Oqu((null==$.invoice?null:$.invoice.serialized)||"N/A"),h.xp6(1),h.Q6J("ngIf",$.showAdvanced),h.xp6(1),h.Q6J("ngClass",h.WLB(39,Te,!$.showAdvanced,$.showAdvanced)),h.xp6(2),h.Q6J("ngIf",!$.showAdvanced)("ngIfElse",ke),h.xp6(3),h.Q6J("ngIf",(null==$.invoice?null:$.invoice.serialized)&&""!==(null==$.invoice?null:$.invoice.serialized)),h.xp6(1),h.Q6J("ngIf",!(null!=$.invoice&&$.invoice.serialized)||""===(null==$.invoice?null:$.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,V.dk,U.BN,Y.lW,V.dn,ae.d,E.sg,X.Ou,de.h,q.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),ne})()},6523:(He,j,p)=>{"use strict";p.d(j,{$A:()=>hi,$W:()=>P,BL:()=>c,B_:()=>B,Bl:()=>ae,CX:()=>h,Cp:()=>I,EK:()=>E,El:()=>T,Fr:()=>ei,HI:()=>ke,JT:()=>a,Jl:()=>X,Jo:()=>_t,Lf:()=>ne,Ll:()=>b,Ly:()=>ze,Nr:()=>Z,OG:()=>g,PC:()=>u,QJ:()=>kt,RX:()=>Y,Rd:()=>k,Rv:()=>de,SN:()=>U,Sf:()=>At,TW:()=>_e,UH:()=>be,UR:()=>re,Vv:()=>S,WM:()=>Q,WO:()=>mt,Wi:()=>G,YP:()=>V,YX:()=>d,Z7:()=>ee,Z8:()=>D,Zh:()=>x,_E:()=>Ae,_L:()=>t,aL:()=>te,as:()=>le,cQ:()=>$,dV:()=>De,fu:()=>pe,kL:()=>Xe,ks:()=>q,mC:()=>Ee,n7:()=>jt,oV:()=>lt,pW:()=>r,qY:()=>Te,sQ:()=>y,tb:()=>_,u0:()=>vt,vV:()=>R,xG:()=>ht,y2:()=>Le,yZ:()=>Gt,z:()=>A});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),b=(0,e.PH)(i.uR.RESET_LND_STORE,(0,e.Ky)()),a=(0,e.PH)(i.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),y=(0,e.PH)(i.uR.FETCH_INFO_LND,(0,e.Ky)()),h=(0,e.PH)(i.uR.SET_INFO_LND,(0,e.Ky)()),P=(0,e.PH)(i.uR.FETCH_PEERS_LND),D=(0,e.PH)(i.uR.SET_PEERS_LND,(0,e.Ky)()),T=(0,e.PH)(i.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(i.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(i.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(i.uR.REMOVE_PEER_LND,(0,e.Ky)()),k=(0,e.PH)(i.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),V=((0,e.PH)(i.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.ADD_INVOICE_LND,(0,e.Ky)())),U=(0,e.PH)(i.uR.FETCH_FEES_LND),Y=(0,e.PH)(i.uR.SET_FEES_LND,(0,e.Ky)()),ae=(0,e.PH)(i.uR.FETCH_BLOCKCHAIN_BALANCE_LND),X=(0,e.PH)(i.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),de=(0,e.PH)(i.uR.FETCH_NETWORK_LND),q=(0,e.PH)(i.uR.SET_NETWORK_LND,(0,e.Ky)()),re=(0,e.PH)(i.uR.FETCH_CHANNELS_LND),le=(0,e.PH)(i.uR.SET_CHANNELS_LND,(0,e.Ky)()),ee=(0,e.PH)(i.uR.FETCH_PENDING_CHANNELS_LND),_e=(0,e.PH)(i.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),x=(0,e.PH)(i.uR.FETCH_CLOSED_CHANNELS_LND),t=(0,e.PH)(i.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),r=(0,e.PH)(i.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),d=(0,e.PH)(i.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),c=(0,e.PH)(i.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),g=(0,e.PH)(i.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),S=(0,e.PH)(i.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(i.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),_=((0,e.PH)(i.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.RESTORE_CHANNELS_LIST_LND)),B=(0,e.PH)(i.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),R=(0,e.PH)(i.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),Q=((0,e.PH)(i.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_INVOICES_LND,(0,e.Ky)())),Z=(0,e.PH)(i.uR.SET_INVOICES_LND,(0,e.Ky)()),te=(0,e.PH)(i.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),Te=(0,e.PH)(i.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ee=(0,e.PH)(i.uR.FETCH_TRANSACTIONS_LND),ne=(0,e.PH)(i.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),ze=(0,e.PH)(i.uR.FETCH_UTXOS_LND),be=(0,e.PH)(i.uR.SET_UTXOS_LND,(0,e.Ky)()),$=(0,e.PH)(i.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),ke=(0,e.PH)(i.uR.SET_PAYMENTS_LND,(0,e.Ky)()),lt=(0,e.PH)(i.uR.SEND_PAYMENT_LND,(0,e.Ky)()),De=((0,e.PH)(i.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Ae=((0,e.PH)(i.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),G=((0,e.PH)(i.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),pe=((0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GEN_SEED_LND,(0,e.Ky)())),Le=((0,e.PH)(i.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.INIT_WALLET_LND,(0,e.Ky)())),ht=((0,e.PH)(i.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),At=(0,e.PH)(i.uR.PEER_LOOKUP_LND,(0,e.Ky)()),hi=(0,e.PH)(i.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),jt=(0,e.PH)(i.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Gt=(0,e.PH)(i.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),vt=((0,e.PH)(i.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),kt=(0,e.PH)(i.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),mt=(0,e.PH)(i.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),Xe=(0,e.PH)(i.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),_t=(0,e.PH)(i.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ei=(0,e.PH)(i.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(He,j,p)=>{"use strict";p.d(j,{l:()=>_e});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),h=p(262),P=p(1365),D=p(2340),T=p(8627),M=p(1786),A=p(7731),E=p(7861),k=p(6523),w=p(6529),V=p(5e3),U=p(8138),Y=p(5620),ae=p(5043),X=p(62),de=p(5986),q=p(8966),re=p(1402),le=p(7998),ee=p(9808);let _e=(()=>{class x{constructor(r,d,c,g,S,I,C,n,_,B){this.actions=r,this.httpClient=d,this.store=c,this.logger=g,this.commonService=S,this.sessionService=I,this.dialog=C,this.router=n,this.wsService=_,this.location=B,this.CHILD_API_URL=D.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,b.z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,y.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,R.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,h.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const Q=this.commonService.extractErrorCode(H),Z=503===Q?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:Q,errorMessage:Z}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Q,error:Z})}return(0,u.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PEERS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:R||[]})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,h.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,h.K)(H=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey,H),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.INVOICES_API,{memo:R.payload.memo,amount:R.payload.invoiceValue,private:R.payload.private,expiry:R.payload.expiry}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(H.memo=R.payload.memo,H.value=R.payload.invoiceValue,H.expiry=R.payload.expiry,H.cltv_expiry="144",H.private=R.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:T.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,h.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,h.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,h.K)(H=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",H),(0,u.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(H=H+"&target_conf="+R.payload.targetConf),R.payload.satPerByte&&(H=H+"&sat_per_byte="+R.payload.satPerByte),this.httpClient.delete(H).pipe((0,y.U)(Q=>(this.logger.info(Q),this.store.dispatch((0,E.uO)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:Q.message}})),{type:A.pg.VOID})),(0,h.K)(Q=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,Q),(0,u.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:R.payload.showMessage+" "+H.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,h.K)(H=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,h.K)(H=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,h.K)(H=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.FEES_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:R||{}})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.BALANCE_API))),(0,y.U)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(R),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/info"))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:R||{}})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:R.channels||[]})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/pending").pipe((0,y.U)(R=>{this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const H={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return R&&(H.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(H.closing.num_channels=R.pending_closing_channels.length,H.total_channels=H.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach(Q=>{H.closing.limbo_balance=+H.closing.limbo_balance+(Q.channel.local_balance?+Q.channel.local_balance:0)})),R.pending_force_closing_channels&&(H.force_closing.num_channels=R.pending_force_closing_channels.length,H.total_channels=H.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach(Q=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+(Q.channel.local_balance?+Q.channel.local_balance:0)})),R.pending_open_channels&&(H.open.num_channels=R.pending_open_channels.length,H.total_channels=H.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach(Q=>{H.open.limbo_balance=+H.open.limbo_balance+(Q.channel.local_balance?+Q.channel.local_balance:0)})),R.waiting_close_channels&&(H.waiting_close.num_channels=R.waiting_close_channels.length,H.total_channels=H.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach(Q=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+(Q.channel.local_balance?+Q.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/closed").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(te.total_invoices=+(te.last_index_offset||0)),{type:A.uR.SET_INVOICES_LND,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",te),(0,u.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:R||[]})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(w.Q5)),(0,b.z)(([R,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:R||[]})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(te=>(this.logger.info(te),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:te})),(0,h.K)(te=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",te),(0,u.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const H={};return H.paymentReq=R.payload.paymentReq,R.payload.paymentAmount&&(H.paymentAmount=R.payload.paymentAmount),R.payload.outgoingChannel&&(H.outgoingChannel=R.payload.outgoingChannel.chan_id),R.payload.allowSelfPayment&&(H.allowSelfPayment=R.payload.allowSelfPayment),R.payload.lastHopPubkey&&(H.lastHopPubkey=R.payload.lastHopPubkey),R.payload.feeLimitType&&R.payload.feeLimitType!==A.Vc[0].id&&(H.feeLimit={},H.feeLimit[R.payload.feeLimitType]=R.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",H).pipe((0,y.U)(Q=>{if(this.logger.info(Q),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),Q.payment_error)return R.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:Q}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",Q.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",Q.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:A.IV,reversed:!0}})),R.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let Z="Payment Sent Successfully.";Q.payment_route&&Q.payment_route.total_fees_msat&&(Z="Payment sent successfully with the total fee "+Q.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:Z}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:Q}}),(0,h.K)(Q=>(this.logger.error("Error: "+JSON.stringify(Q)),R.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",Q),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,u.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(Q)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",Q):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",Q),(0,u.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,h.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,h.K)(H=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId,H),(0,u.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,h.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,y.U)(Q=>(this.logger.info(Q),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:Q})),(0,h.K)(Q=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+D.NZ.SWITCH_API,Q),(0,u.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,b.z)(R=>{let H=this.CHILD_API_URL+D.NZ.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(H).pipe((0,y.U)(Q=>(this.logger.info(Q),{type:A.uR.SET_QUERY_ROUTES_LND,payload:Q})),(0,h.K)(Q=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+D.NZ.NETWORK_API,Q),(0,u.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload).pipe((0,y.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,h.K)(H=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,b.z)(()=>this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,y.U)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:A.pg.VOID})),(0,h.K)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,u.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,h.K)(H=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/initwallet",H),(0,u.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,y.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,h.K)(H=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/unlockwallet",H),(0,u.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,h.K)(H=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,h.K)(H=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID,H),(0,u.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let H=this.CHILD_API_URL+D.NZ.INVOICES_API+"/lookup";return H=R.payload.paymentAddress&&""!==R.payload.paymentAddress?H+"?payment_addr="+R.payload.paymentAddress:H+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(H).pipe((0,y.U)(Q=>(this.logger.info(Q),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:Q})),{type:A.uR.SET_LOOKUP_LND,payload:Q})),(0,h.K)(Q=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",Q),R.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:Q}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,h.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,h.K)(R=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API,R),(0,u.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/alltransactions").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,h.K)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==A.Bn.COMPLETED&&R.FetchInfo.status!==A.Bn.ERROR||R.FetchFees.status!==A.Bn.COMPLETED&&R.FetchFees.status!==A.Bn.ERROR||R.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&R.FetchBalanceBlockchain.status!==A.Bn.ERROR||R.FetchAllChannels.status!==A.Bn.COMPLETED&&R.FetchAllChannels.status!==A.Bn.ERROR||R.FetchPendingChannels.status!==A.Bn.COMPLETED&&R.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===A.g8.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,k.aL)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(r,d){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:c}));let g=this.location.path();g.includes("/cln/")?g=null==g?void 0:g.replace("/cln/","/lnd/"):g.includes("/ecl/")&&(g=null==g?void 0:g.replace("/ecl/","/lnd/")),(g.includes("/unlock")||g.includes("/login")||g.includes("/error")||""===g||"HOME"===d||g.includes("?access-key="))&&(g="/lnd/home"),this.router.navigate([g]),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,d,c,g){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(g)),401===g.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:d})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:g.status.toString(),message:this.commonService.extractErrorMessage(g,c)}})))}handleErrorWithAlert(r,d,c,g,S){if(this.logger.error(S),401===S.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:d}));const I=this.commonService.extractErrorMessage(S);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:S.status,message:I,URL:g},component:M.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:S.status.toString(),message:I,URL:g}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(V.LFG(e.eX),V.LFG(U.eN),V.LFG(Y.yh),V.LFG(ae.mQ),V.LFG(X.v),V.LFG(de.m),V.LFG(q.uw),V.LFG(re.F0),V.LFG(le.d),V.LFG(ee.Ye))},x.\u0275prov=V.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(He,j,p)=>{"use strict";p.d(j,{$k:()=>u,Bo:()=>h,Ef:()=>A,JG:()=>D,N7:()=>X,P2:()=>V,PP:()=>P,Q5:()=>b,T4:()=>ae,Wi:()=>T,ZW:()=>E,_f:()=>q,bx:()=>re,dx:()=>M,l5:()=>de,ni:()=>w,qU:()=>U,yA:()=>y});var e=p(5620);const i=(0,e.ZF)("lnd"),u=(0,e.P1)(i,le=>le.nodeSettings),b=(0,e.P1)(i,le=>le.information),y=((0,e.P1)(i,le=>({information:le.information,apiCallStatus:le.apisCallStatus.FetchInfo})),(0,e.P1)(i,le=>le.apisCallStatus)),h=(0,e.P1)(i,le=>({forwardingHistory:le.forwardingHistory,apiCallStatus:le.apisCallStatus.FetchForwardingHistory})),P=(0,e.P1)(i,le=>({listPayments:le.listPayments,apiCallStatus:le.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,le=>({fees:le.fees,apiCallStatus:le.apisCallStatus.FetchFees})),T=(0,e.P1)(i,le=>({peers:le.peers,apiCallStatus:le.apisCallStatus.FetchPeers})),M=(0,e.P1)(i,le=>({transactions:le.transactions,apiCallStatus:le.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,le=>({listInvoices:le.listInvoices,apiCallStatus:le.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,le=>({channels:le.channels,channelsSummary:le.channelsSummary,lightningBalance:le.lightningBalance,apiCallStatus:le.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(i,le=>({channelsSummary:le.channelsSummary,pendingChannels:le.pendingChannels,closedChannels:le.closedChannels,apiCallStatus:le.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,le=>({pendingChannels:le.pendingChannels,pendingChannelsSummary:le.pendingChannelsSummary,apiCallStatus:le.apisCallStatus.FetchPendingChannels}))),V=(0,e.P1)(i,le=>({closedChannels:le.closedChannels,apiCallStatus:le.apisCallStatus.FetchClosedChannels})),U=(0,e.P1)(i,le=>({blockchainBalance:le.blockchainBalance,apiCallStatus:le.apisCallStatus.FetchBalanceBlockchain})),ae=((0,e.P1)(i,le=>({lightningBalance:le.lightningBalance,apiCallStatus:le.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,le=>({utxos:le.utxos,apiCallStatus:le.apisCallStatus.FetchUTXOs}))),X=(0,e.P1)(i,le=>({networkInfo:le.networkInfo,apiCallStatus:le.apisCallStatus.FetchNetwork})),de=(0,e.P1)(i,le=>({allLightningTransactions:le.allLightningTransactions,apiCallStatus:le.apisCallStatus.FetchLightningTransactions})),q=(0,e.P1)(i,le=>({channels:le.channels,pendingChannels:le.pendingChannels,closedChannels:le.closedChannels})),re=(0,e.P1)(i,le=>({information:le.information,nodeSettings:le.nodeSettings,apiCallStatus:le.apisCallStatus.FetchInfo}))},8627:(He,j,p)=>{"use strict";p.d(j,{v:()=>ie});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(6529),h=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),V=p(9224),U=p(9444),Y=p(7423),ae=p(4834),X=p(8129),de=p(773),q=p(1125),re=p(7238),le=p(5245),ee=p(3390),_e=p(6895);const x=["scrollContainer"];function t(pe,ye){if(1&pe&&h._UZ(0,"qr-code",32),2&pe){const Le=h.oxw();h.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function r(pe,ye){1&pe&&(h.TgZ(0,"span",33),h._uU(1,"N/A"),h.qZA())}function d(pe,ye){if(1&pe&&h._UZ(0,"qr-code",32),2&pe){const Le=h.oxw();h.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function c(pe,ye){1&pe&&(h.TgZ(0,"span",34),h._uU(1,"QR Code Not Applicable"),h.qZA())}function g(pe,ye){1&pe&&h._UZ(0,"mat-divider",22),2&pe&&h.Q6J("inset",!0)}function S(pe,ye){1&pe&&(h.ynx(0),h._uU(1," (zero amount) "),h.BQk())}function I(pe,ye){1&pe&&h._UZ(0,"span",40)}const C=function(){return[]};function n(pe,ye){if(1&pe&&(h.TgZ(0,"div",36)(1,"div",37)(2,"span",38),h._uU(3),h.ALo(4,"number"),h.qZA(),h.YNc(5,I,1,0,"span",39),h.qZA()()),2&pe){const Le=h.oxw(2);h.xp6(3),h.hij("",h.lcZ(4,2,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats"),h.xp6(2),h.Q6J("ngForOf",h.DdM(4,C).constructor(35))}}function _(pe,ye){if(1&pe&&(h.TgZ(0,"div"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&pe){const Le=h.oxw(2);h.xp6(1),h.hij("",h.lcZ(2,1,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats")}}function B(pe,ye){if(1&pe&&(h.ynx(0),h.YNc(1,n,6,5,"div",35),h.YNc(2,_,3,3,"div",21),h.BQk()),2&pe){const Le=h.oxw();h.xp6(1),h.Q6J("ngIf",Le.flgInvoicePaid),h.xp6(1),h.Q6J("ngIf",!Le.flgInvoicePaid)}}function R(pe,ye){1&pe&&(h.TgZ(0,"span"),h._uU(1,"-"),h.qZA())}function H(pe,ye){1&pe&&h._UZ(0,"mat-spinner",42),2&pe&&h.Q6J("diameter",20)}function Q(pe,ye){if(1&pe&&(h.ynx(0),h.YNc(1,R,2,0,"span",21),h.YNc(2,H,1,1,"mat-spinner",41),h.BQk()),2&pe){const Le=h.oxw();h.xp6(1),h.Q6J("ngIf","OPEN"!==(null==Le.invoice?null:Le.invoice.state)||!Le.flgVersionCompatible),h.xp6(1),h.Q6J("ngIf","OPEN"===(null==Le.invoice?null:Le.invoice.state)&&Le.flgVersionCompatible)}}const Z=function(pe){return{"mr-0":pe}};function te(pe,ye){if(1&pe&&h._UZ(0,"span",59),2&pe){const Le=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Z,Le.screenSize===Le.screenSizeEnum.XS))}}function Te(pe,ye){if(1&pe&&h._UZ(0,"span",60),2&pe){const Le=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Z,Le.screenSize===Le.screenSizeEnum.XS))}}function Ee(pe,ye){if(1&pe&&h._UZ(0,"span",61),2&pe){const Le=h.oxw(4);h.Q6J("ngClass",h.VKq(1,Z,Le.screenSize===Le.screenSizeEnum.XS))}}function ne(pe,ye){if(1&pe&&(h.TgZ(0,"div",48)(1,"div",53)(2,"span",54),h.YNc(3,te,1,3,"span",55),h.YNc(4,Te,1,3,"span",56),h.YNc(5,Ee,1,3,"span",57),h._uU(6),h.qZA(),h.TgZ(7,"span",58),h._uU(8),h.ALo(9,"number"),h.qZA()(),h._UZ(10,"mat-divider",22),h.qZA()),2&pe){const Le=ye.$implicit,ot=h.oxw(3);h.xp6(3),h.Q6J("ngIf","SETTLED"===Le.state),h.xp6(1),h.Q6J("ngIf","ACCEPTED"===Le.state),h.xp6(1),h.Q6J("ngIf","CANCELED"===Le.state),h.xp6(1),h.hij(" ",Le.chan_id," "),h.xp6(2),h.Oqu(h.xi3(9,6,+Le.amt_msat/1e3||0,ot.getDecimalFormat(Le))),h.xp6(2),h.Q6J("inset",!0)}}function ze(pe,ye){if(1&pe){const Le=h.EpF();h.TgZ(0,"div",17)(1,"mat-expansion-panel",46),h.NdJ("opened",function(){return h.CHM(Le),h.oxw(2).flgOpened=!0})("closed",function(){return h.CHM(Le),h.oxw(2).onExpansionClosed()}),h.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",47),h._uU(5,"HTLCs"),h.qZA()()(),h.TgZ(6,"div",48)(7,"div",49)(8,"span",50),h._uU(9,"Channel ID"),h.qZA(),h.TgZ(10,"span",51),h._uU(11,"Amount (Sats)"),h.qZA()(),h._UZ(12,"mat-divider",22),h.YNc(13,ne,11,9,"div",52),h.qZA()()()}if(2&pe){const Le=h.oxw(2);h.xp6(12),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngForOf",null==Le.invoice?null:Le.invoice.htlcs)}}function be(pe,ye){1&pe&&h._UZ(0,"mat-divider",22),2&pe&&h.Q6J("inset",!0)}function $(pe,ye){if(1&pe&&(h.TgZ(0,"div"),h._UZ(1,"mat-divider",22),h.TgZ(2,"div",17)(3,"div",23)(4,"h4",19),h._uU(5,"Preimage"),h.qZA(),h.TgZ(6,"span",24),h._uU(7),h.qZA()()(),h._UZ(8,"mat-divider",22),h.TgZ(9,"div",17)(10,"div",43)(11,"h4",19),h._uU(12,"State"),h.qZA(),h.TgZ(13,"span",24),h._uU(14),h.qZA()(),h.TgZ(15,"div",44)(16,"h4",19),h._uU(17,"Expiry"),h.qZA(),h.TgZ(18,"span",24),h._uU(19),h.qZA()(),h.TgZ(20,"div",44)(21,"h4",19),h._uU(22,"Private Routing Hints"),h.qZA(),h.TgZ(23,"span",24),h._uU(24),h.qZA()()(),h._UZ(25,"mat-divider",22),h.YNc(26,ze,14,2,"div",45),h.YNc(27,be,1,1,"mat-divider",14),h.qZA()),2&pe){const Le=h.oxw();h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==Le.invoice?null:Le.invoice.r_preimage)||"-"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==Le.invoice?null:Le.invoice.state),h.xp6(5),h.Oqu(null==Le.invoice?null:Le.invoice.expiry),h.xp6(5),h.Oqu(null!=Le.invoice&&Le.invoice.private?"Yes":"No"),h.xp6(1),h.Q6J("inset",!0),h.xp6(1),h.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0),h.xp6(1),h.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0)}}function ke(pe,ye){if(1&pe){const Le=h.EpF();h.TgZ(0,"div",62)(1,"button",63),h.NdJ("click",function(){return h.CHM(Le),h.oxw().onScrollDown()}),h.TgZ(2,"mat-icon",64),h._uU(3,"arrow_downward"),h.qZA()()()}}function lt(pe,ye){1&pe&&(h.TgZ(0,"p"),h._uU(1,"Show Advanced"),h.qZA())}function W(pe,ye){1&pe&&(h.TgZ(0,"p"),h._uU(1,"Hide Advanced"),h.qZA())}function De(pe,ye){if(1&pe){const Le=h.EpF();h.TgZ(0,"button",65),h.NdJ("copied",function(ht){return h.CHM(Le),h.oxw().onCopyPayment(ht)}),h._uU(1),h.qZA()}if(2&pe){const Le=h.oxw();h.Q6J("payload",null==Le.invoice?null:Le.invoice.payment_request),h.xp6(1),h.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function he(pe,ye){if(1&pe){const Le=h.EpF();h.TgZ(0,"button",66),h.NdJ("click",function(){return h.CHM(Le),h.oxw().onClose()}),h._uU(1,"OK"),h.qZA()}}const Ae=function(pe){return{"display-none":pe}},xe=function(pe){return{"xs-scroll-y":pe}},G=function(pe){return{"h-50":pe}};let ie=(()=>{class pe{constructor(Le,ot,ht,At,hi,jt){this.dialogRef=Le,this.data=ot,this.logger=ht,this.commonService=At,this.snackBar=hi,this.store=jt,this.faReceipt=i.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}set container(Le){Le&&(this.scrollContainer=Le)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.Q5).pipe((0,b.R)(this.unSubs[0])).subscribe(ot=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ot.version,"0.11.0")});const Le=JSON.parse(JSON.stringify(this.invoice));this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(ot=>{var ht,At,hi;const jt=null===(ht=this.invoice)||void 0===ht?void 0:ht.state,di=(ot.listInvoices.invoices||[]).find(vt=>vt.r_hash===Le.r_hash)||null;this.invoice=di,jt!==(null===(At=this.invoice)||void 0===At?void 0:At.state)&&"SETTLED"===(null===(hi=this.invoice)||void 0===hi?void 0:hi.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ot)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(Le){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Le)}getDecimalFormat(Le){return Le.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Le=>{Le.next(null),Le.complete()})}}return pe.\u0275fac=function(Le){return new(Le||pe)(h.Y36(e.so),h.Y36(e.WI),h.Y36(P.mQ),h.Y36(D.v),h.Y36(T.ux),h.Y36(M.yh))},pe.\u0275cmp=h.Xpm({type:pe,selectors:[["rtl-invoice-information"]],viewQuery:function(Le,ot){if(1&Le&&h.Gf(x,5),2&Le){let ht;h.iGM(ht=h.CRH())&&(ot.container=ht.first)}},decls:78,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Le,ot){if(1&Le&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,t,1,3,"qr-code",2),h.YNc(3,r,2,0,"span",3),h.qZA(),h.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),h._UZ(7,"fa-icon",7),h.TgZ(8,"span",8),h._uU(9),h.qZA()(),h.TgZ(10,"button",9),h.NdJ("click",function(){return ot.onClose()}),h._uU(11,"X"),h.qZA()(),h.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),h.YNc(15,d,1,3,"qr-code",2),h.YNc(16,c,2,0,"span",13),h.qZA(),h.YNc(17,g,1,1,"mat-divider",14),h.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),h._uU(23),h.qZA(),h.TgZ(24,"span",20),h._uU(25),h.ALo(26,"number"),h.YNc(27,S,2,0,"ng-container",21),h.qZA()(),h.TgZ(28,"div",18)(29,"h4",19),h._uU(30,"Amount Settled"),h.qZA(),h.TgZ(31,"span",20),h.YNc(32,B,3,2,"ng-container",21),h.YNc(33,Q,3,2,"ng-container",21),h.qZA()()(),h._UZ(34,"mat-divider",22),h.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),h._uU(38,"Date Created"),h.qZA(),h.TgZ(39,"span",20),h._uU(40),h.ALo(41,"date"),h.qZA()(),h.TgZ(42,"div",18)(43,"h4",19),h._uU(44,"Date Settled"),h.qZA(),h.TgZ(45,"span",20),h._uU(46),h.ALo(47,"date"),h.qZA()()(),h._UZ(48,"mat-divider",22),h.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),h._uU(52,"Memo"),h.qZA(),h.TgZ(53,"span",20),h._uU(54),h.qZA()()(),h._UZ(55,"mat-divider",22),h.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),h._uU(59,"Payment Request"),h.qZA(),h.TgZ(60,"span",24),h._uU(61),h.qZA()()(),h._UZ(62,"mat-divider",22),h.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),h._uU(66,"Payment Hash"),h.qZA(),h.TgZ(67,"span",24),h._uU(68),h.qZA()()(),h.YNc(69,$,28,9,"div",21),h.qZA()()(),h.YNc(70,ke,4,0,"div",25),h.TgZ(71,"div",26)(72,"button",27),h.NdJ("click",function(){return ot.onShowAdvanced()}),h.YNc(73,lt,2,0,"p",28),h.YNc(74,W,2,0,"ng-template",null,29,h.W1O),h.qZA(),h.YNc(76,De,2,2,"button",30),h.YNc(77,he,2,0,"button",31),h.qZA()()()),2&Le){const ht=h.MAs(75);h.xp6(1),h.Q6J("fxLayoutAlign",null!=ot.invoice&&ot.invoice.payment_request&&""!==(null==ot.invoice?null:ot.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(41,Ae,ot.screenSize===ot.screenSizeEnum.XS||ot.screenSize===ot.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ot.invoice?null:ot.invoice.payment_request)&&""!==(null==ot.invoice?null:ot.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=ot.invoice&&ot.invoice.payment_request)||""===(null==ot.invoice?null:ot.invoice.payment_request)),h.xp6(4),h.Q6J("icon",ot.faReceipt),h.xp6(2),h.Oqu(ot.screenSize===ot.screenSizeEnum.XS?ot.newlyAdded?"Created":"Invoice":ot.newlyAdded?"Invoice Created":"Invoice Information"),h.xp6(3),h.Q6J("ngClass",h.VKq(43,xe,ot.screenSize===ot.screenSizeEnum.XS)),h.xp6(2),h.Q6J("fxLayoutAlign",null!=ot.invoice&&ot.invoice.payment_request&&""!==(null==ot.invoice?null:ot.invoice.payment_request)?"center start":"center center")("ngClass",h.VKq(45,Ae,ot.screenSize!==ot.screenSizeEnum.XS&&ot.screenSize!==ot.screenSizeEnum.SM)),h.xp6(1),h.Q6J("ngIf",(null==ot.invoice?null:ot.invoice.payment_request)&&""!==(null==ot.invoice?null:ot.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=ot.invoice&&ot.invoice.payment_request)||""===(null==ot.invoice?null:ot.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",ot.screenSize===ot.screenSizeEnum.XS||ot.screenSize===ot.screenSizeEnum.SM),h.xp6(1),h.Q6J("ngClass",h.VKq(47,G,(null==ot.invoice?null:ot.invoice.htlcs)&&(null==ot.invoice?null:ot.invoice.htlcs.length)>0&&ot.showAdvanced)),h.xp6(5),h.Oqu(ot.screenSize===ot.screenSizeEnum.XS?"Amount":"Amount Requested"),h.xp6(2),h.hij("",h.lcZ(26,33,(null==ot.invoice?null:ot.invoice.value)||0)," Sats"),h.xp6(2),h.Q6J("ngIf",!(null!=ot.invoice&&ot.invoice.value)||"0"===(null==ot.invoice?null:ot.invoice.value)),h.xp6(5),h.Q6J("ngIf",(null==ot.invoice?null:ot.invoice.amt_paid_sat)&&"OPEN"!==(null==ot.invoice?null:ot.invoice.state)),h.xp6(1),h.Q6J("ngIf",!(null!=ot.invoice&&ot.invoice.amt_paid_sat)||"0"===(null==ot.invoice?null:ot.invoice.amt_paid_sat)),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu(h.xi3(41,35,1e3*(null==ot.invoice?null:ot.invoice.creation_date),"dd/MMM/y HH:mm")),h.xp6(6),h.Oqu(0!=+(null==ot.invoice?null:ot.invoice.settle_date)?h.xi3(47,38,1e3*+(null==ot.invoice?null:ot.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.xp6(2),h.Q6J("inset",!0),h.xp6(6),h.Oqu(null==ot.invoice?null:ot.invoice.memo),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==ot.invoice?null:ot.invoice.payment_request)||"N/A"),h.xp6(1),h.Q6J("inset",!0),h.xp6(6),h.Oqu((null==ot.invoice?null:ot.invoice.r_hash)||""),h.xp6(1),h.Q6J("ngIf",ot.showAdvanced),h.xp6(1),h.Q6J("ngIf",(null==ot.invoice?null:ot.invoice.htlcs)&&(null==ot.invoice?null:ot.invoice.htlcs.length)>0&&ot.showAdvanced&&ot.flgOpened),h.xp6(3),h.Q6J("ngIf",!ot.showAdvanced)("ngIfElse",ht),h.xp6(3),h.Q6J("ngIf",(null==ot.invoice?null:ot.invoice.payment_request)&&""!==(null==ot.invoice?null:ot.invoice.payment_request)),h.xp6(1),h.Q6J("ngIf",!(null!=ot.invoice&&ot.invoice.payment_request)||""===(null==ot.invoice?null:ot.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,V.dk,U.BN,Y.lW,V.dn,ae.d,X.$V,E.sg,de.Ou,q.ib,q.yz,q.yK,re.gM,le.Hw,ee.h,_e.y],pipes:[E.JJ,E.uU],styles:[""]}),pe})()},8878:(He,j,p)=>{"use strict";p.d(j,{g:()=>i});var e=p(1777);const i=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},1786:(He,j,p)=>{"use strict";p.d(j,{H:()=>M});var e=p(8966),i=p(5e3),u=p(5043),b=p(7093),a=p(9224),y=p(7423),h=p(9808),P=p(4834),D=p(3390);function T(A,E){if(1&A&&(i.TgZ(0,"p",14),i._uU(1),i.qZA()),2&A){const k=i.oxw();i.xp6(1),i.Oqu(k.data.titleMessage)}}let M=(()=>{class A{constructor(k,w,V){this.dialogRef=k,this.data=w,this.logger=V,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return A.\u0275fac=function(k){return new(k||A)(i.Y36(e.so),i.Y36(e.WI),i.Y36(u.mQ))},A.\u0275cmp=i.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,w){1&k&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return w.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7),i.YNc(10,T,2,1,"p",8),i.TgZ(11,"h4",9),i._uU(12,"Error Code"),i.qZA(),i.TgZ(13,"span"),i._uU(14),i.qZA(),i._UZ(15,"mat-divider",10),i.TgZ(16,"h4",9),i._uU(17,"Error Message"),i.qZA(),i.TgZ(18,"span",11),i._uU(19),i.qZA(),i._UZ(20,"mat-divider",10),i.TgZ(21,"h4",9),i._uU(22,"API URL"),i.qZA(),i.TgZ(23,"span",11),i._uU(24),i.qZA(),i._UZ(25,"mat-divider",10),i.TgZ(26,"div",12)(27,"button",13),i._uU(28,"OK"),i.qZA()()()()()()),2&k&&(i.xp6(5),i.Oqu(w.data.alertTitle||"ERROR"),i.xp6(5),i.Q6J("ngIf",w.data.titleMessage),i.xp6(4),i.Oqu(w.data.message.code),i.xp6(5),i.Oqu(w.errorMessage),i.xp6(5),i.Oqu(w.data.message.URL),i.xp6(3),i.Q6J("mat-dialog-close",!1))},directives:[b.xw,b.yH,a.dk,b.Wh,y.lW,a.dn,h.O5,P.d,D.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(He,j,p)=>{"use strict";p.d(j,{w:()=>P});var e=p(801),i=p(5e3),u=p(1402),b=p(7093),a=p(9444),y=p(9224),h=p(7423);let P=(()=>{class D{constructor(M){this.router=M,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return D.\u0275fac=function(M){return new(M||D)(i.Y36(u.F0))},D.\u0275cmp=i.Xpm({type:D,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(M,A){1&M&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Page Not Found"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),i._uU(9,"This page does not exist!"),i.qZA(),i.TgZ(10,"span",7)(11,"button",8),i.NdJ("click",function(){return A.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()()),2&M&&(i.xp6(1),i.Q6J("icon",A.faTimes))},directives:[b.xw,b.Wh,a.BN,y.a8,y.dn,b.yH,h.lW],encapsulation:2}),D})()},3390:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(e.SBq))},u.\u0275dir=e.lG2({type:u,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),u})()},6895:(He,j,p)=>{"use strict";p.d(j,{y:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(){this.copied=new e.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},y=>{this.copied.emit("Error could not copy text: "+JSON.stringify(y))})}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275dir=e.lG2({type:u,selectors:[["","rtlClipboard",""]],hostBindings:function(a,y){1&a&&e.NdJ("click",function(P){return y.onClick(P)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),u})()},9843:(He,j,p)=>{"use strict";p.d(j,{F:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.max?e.kI.max(+this.max)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","max",""]],inputs:{max:"max"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},6534:(He,j,p)=>{"use strict";p.d(j,{q:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.min?e.kI.min(+this.min)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","min",""]],inputs:{min:"min"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},9445:(He,j,p)=>{"use strict";p.d(j,{h9:()=>u,rn:()=>b});var e=p(5e3);let u=(()=>{class a{transform(h,P){var D,T;return null===(T=null===(D=null==h?void 0:h.replace(/(?:^\w|[A-Z]|\b\w)/g,(M,A)=>M.toUpperCase()))||void 0===D?void 0:D.replace(/\s+/g,""))||void 0===T?void 0:T.replace(/-/g," ")}}return a.\u0275fac=function(h){return new(h||a)},a.\u0275pipe=e.Yjl({name:"camelcase",type:a,pure:!0}),a})(),b=(()=>{class a{transform(h,P){return null==h?void 0:h.replace("State_","").replace("SwapInSender_","").replace("SwapOutSender_","").replace("SwapInReceiver_","").replace("SwapOutReceiver_","").replace("_"," ").replace(/(?:^\w|[A-Z]|\b\w)/g,(D,T)=>" "+D)}}return a.\u0275fac=function(h){return new(h||a)},a.\u0275pipe=e.Yjl({name:"swapState",type:a,pure:!0}),a})()},1643:(He,j,p)=>{"use strict";p.d(j,{QM:()=>y,a1:()=>a,eQ:()=>h,fY:()=>P});var e=p(4004),i=p(5e3),u=p(1402),b=p(5986);let a=(()=>{class D{constructor(M,A){this.router=M,this.sessionService=A}canActivate(M){return!(!this.sessionService.getItem("token")||"settings"!==M.url[0].path&&"auth"!==M.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(u.F0),i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),y=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.lndUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),h=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.clUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),P=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.eclUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})()},2218:(He,j,p)=>{"use strict";p.d(j,{X:()=>U});var e=p(1135),i=p(7579),u=p(9646),b=p(2843),a=p(2722),y=p(262),h=p(4004),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(5e3),E=p(8138),k=p(5043),w=p(5620),V=p(62);let U=(()=>{class Y{constructor(X,de,q,re){this.httpClient=X,this.logger=de,this.store=q,this.commonService=re,this.swapUrl="",this.swaps={},this.swapsChanged=new e.X({}),this.unSubs=[new i.x,new i.x,new i.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,M.ac)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[0])).subscribe({next:X=>{this.store.dispatch((0,M.uO)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swaps=X,this.swapsChanged.next(this.swaps)},error:X=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_BOLTZ_SWAPS,this.swapUrl,X))})}swapInfo(X){return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/swapInfo/"+X,this.httpClient.get(this.swapUrl).pipe((0,y.K)(de=>(0,u.of)(this.handleErrorWithAlert(T.m6.NO_SPINNER,this.swapUrl,de))))}serviceInfo(){return this.store.dispatch((0,M.ac)({payload:T.m6.GET_SERVICE_INFO})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[1]),(0,h.U)(X=>(this.store.dispatch((0,M.uO)({payload:T.m6.GET_SERVICE_INFO})),X)),(0,y.K)(X=>(0,u.of)(this.handleErrorWithAlert(T.m6.GET_SERVICE_INFO,this.swapUrl,X))))}swapOut(X,de){const q={amount:X,address:de};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,q).pipe((0,y.K)(re=>this.handleErrorWithoutAlert("Swap Out for Address: "+de,T.m6.NO_SPINNER,re)))}swapIn(X){const de={amount:X};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,de).pipe((0,y.K)(q=>this.handleErrorWithoutAlert("Swap In for Amount: "+X,T.m6.NO_SPINNER,q)))}handleErrorWithoutAlert(X,de,q){let re="";return this.logger.error("ERROR IN: "+X+"\n"+JSON.stringify(q)),this.store.dispatch((0,M.uO)({payload:de})),401===q.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())):503===q.status?(re="Unable to Connect to Boltz Server.",this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:X},component:D.H}}}))):re=this.commonService.extractErrorMessage(q),(0,b._)(()=>new Error(re))}handleErrorWithAlert(X,de,q){let re="";if(401===q.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())),this.logger.error(q),this.store.dispatch((0,M.uO)({payload:X})),401===q.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)());else if(503===q.status)re="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:de},component:D.H}}}))},100);else{re=this.commonService.extractErrorMessage(q);const le=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:le,message:re,URL:de},component:D.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(X=>{X.next(null),X.complete()})}}return Y.\u0275fac=function(X){return new(X||Y)(A.LFG(E.eN),A.LFG(k.mQ),A.LFG(w.yh),A.LFG(V.v))},Y.\u0275prov=A.Yz7({token:Y,factory:Y.\u0275fac}),Y})()},62:(He,j,p)=>{"use strict";p.d(j,{v:()=>M});var e=p(1135),i=p(9646),u=p(2843),b=p(5698),a=p(4004),y=p(262),h=p(7731),P=p(5e3),D=p(8104),T=p(5043);let M=(()=>{class A{constructor(k,w){this.dataService=k,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=h.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.Bn.UN_INITIATED,this.screenSize=h.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,w){this.containerSize={width:k,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,w,V,U="asc"){return k.sort("number"===V?"desc"===U?(Y,ae)=>+Y[w]>+ae[w]?-1:1:(Y,ae)=>+Y[w]>+ae[w]?1:-1:"desc"===U?(Y,ae)=>Y[w]>ae[w]?-1:1:(Y,ae)=>Y[w]>ae[w]?1:-1)}sortDescByKey(k,w){return k.sort((V,U)=>{const Y=+V[w],ae=+U[w];return Y>ae?-1:Y{const Y=+V[w],ae=+U[w];return Yae?1:0})}camelCase(k){var w,V;return null===(V=null===(w=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(U,Y)=>U.toUpperCase()))||void 0===w?void 0:w.replace(/\s+/g,""))||void 0===V?void 0:V.replace(/-/g," ")}titleCase(k,w,V){var U,Y;return w&&V&&""!==w&&""!==V&&(k=null==k?void 0:k.replace(new RegExp(w,"g"),V)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(U=k.split("\n"))||void 0===U?void 0:U.reduce((ae,X)=>ae+X.charAt(0).toUpperCase()+X.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(Y=k.split(" "))||void 0===Y?void 0:Y.reduce((ae,X)=>ae+X.charAt(0).toUpperCase()+X.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,w,V,U,Y){const ae=(new Date).valueOf();return Y&&U&&this.ratesAPIStatus!==h.Bn.INITIATED&&(w===h.NT.OTHER||V===h.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ae(this.ratesAPIStatus=h.Bn.COMPLETED,this.conversionData.data=X&&"object"==typeof X?X:X&&"string"==typeof X?JSON.parse(X):{},this.conversionData.last_fetched=ae,this.convertWithFiat(k,w,U))),(0,y.K)(X=>(this.ratesAPIStatus=h.Bn.ERROR,(0,u._)(()=>this.extractErrorMessage(X,"Currency Conversion Error.")))))):(0,i.of)(this.convertWithoutFiat(k,w))}convertWithoutFiat(k,w){const V={};switch(V[h.NT.SATS]=0,V[h.NT.BTC]=0,w){case h.NT.SATS:V[h.NT.SATS]=k,V[h.NT.BTC]=1e-8*k;break;case h.NT.BTC:V[h.NT.SATS]=1e8*k,V[h.NT.BTC]=k}return V}convertWithFiat(k,w,V){const U={unit:V,symbol:this.conversionData.data[V].symbol};switch(U[h.NT.SATS]=0,U[h.NT.BTC]=0,U[h.NT.OTHER]=0,w){case h.NT.SATS:U[h.NT.SATS]=k,U[h.NT.BTC]=1e-8*k,U[h.NT.OTHER]=1e-8*k*this.conversionData.data[V].last;break;case h.NT.BTC:U[h.NT.SATS]=1e8*k,U[h.NT.BTC]=k,U[h.NT.OTHER]=k*this.conversionData.data[V].last;break;case h.NT.OTHER:U[h.NT.SATS]=k/this.conversionData.data[V].last*1e8,U[h.NT.BTC]=k/this.conversionData.data[V].last,U[h.NT.OTHER]=k}return U}convertTime(k,w,V){switch(w){case h.Qk.SECS:switch(V){case h.Qk.MINS:k/=60;break;case h.Qk.HOURS:k/=3600;break;case h.Qk.DAYS:k/=86400}break;case h.Qk.MINS:switch(V){case h.Qk.SECS:k*=60;break;case h.Qk.HOURS:k/=60;break;case h.Qk.DAYS:k/=1440}break;case h.Qk.HOURS:switch(V){case h.Qk.SECS:k*=3600;break;case h.Qk.MINS:k*=60;break;case h.Qk.DAYS:k/=24}break;case h.Qk.DAYS:switch(V){case h.Qk.SECS:k=3600*k*24;break;case h.Qk.MINS:k=60*k*24;break;case h.Qk.HOURS:k*=24}}return k}downloadFile(k,w,V=".json",U=".csv"){let Y=new Blob;Y=".json"===V?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ae=document.createElement("a"),X=URL.createObjectURL(Y);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ae.setAttribute("target","_blank"),ae.setAttribute("href",X),ae.setAttribute("download",w+U),ae.style.visibility="hidden",document.body.appendChild(ae),ae.click(),document.body.removeChild(ae)}convertToCSV(k){const w=[];let V="",U="",Y="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((X,de)=>{for(const q in X)w.findIndex(re=>re===q)<0&&w.push(q)}),Y=w.join(",")+"\r\n",k.forEach(X=>{V="",w.forEach(de=>{var q;X.hasOwnProperty(de)?Array.isArray(X[de])?(U="",X[de].forEach((re,le)=>{var ee;U+="object"==typeof re?"("+(null===(ee=JSON.stringify(re))||void 0===ee?void 0:ee.replace(/\,/g,";"))+")":"("+re+")"}),V+=U+","):V+="object"==typeof X[de]?(null===(q=JSON.stringify(X[de]))||void 0===q?void 0:q.replace(/\,/g,";"))+",":X[de]+",":V+=","}),Y+=V.slice(0,-1)+"\r\n"}),Y}isVersionCompatible(k,w){var V;if(k){const U=(null===(V=k.trim())||void 0===V?void 0:V.replace("v","").split("-")[0].split("."))||[],Y=w.split(".");return+U[0]>+Y[0]||+U[0]==+Y[0]&&+U[1]>+Y[1]||+U[0]==+Y[0]&&+U[1]==+Y[1]&&+U[2]>=+Y[2]}return!1}extractErrorMessage(k,w="Unknown Error."){const V=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:w);return this.logger.info("Error Message: "+V),V}extractErrorCode(k,w=500){const V=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:w;return this.logger.info("Error Code: "+V),V}extractErrorNumber(k,w=500){const V=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:w;return this.logger.info("Error Number: "+V),V}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(k){return new(k||A)(P.LFG(D.D),P.LFG(T.mQ))},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(He,j,p)=>{"use strict";p.d(j,{$I:()=>r,$v:()=>k,AB:()=>Z,Bn:()=>n,Df:()=>Te,Dr:()=>T,Er:()=>a,Fq:()=>t,Gi:()=>q,HW:()=>le,H_:()=>Ee,IV:()=>h,IX:()=>B,JX:()=>I,LO:()=>y,NT:()=>de,OJ:()=>ae,OO:()=>be,Qk:()=>X,Qw:()=>c,TJ:()=>P,Vc:()=>M,Xr:()=>R,Xz:()=>b,Zs:()=>x,_t:()=>D,cu:()=>re,fO:()=>$,g8:()=>V,gB:()=>ze,gg:()=>g,hZ:()=>ne,hc:()=>d,kO:()=>C,lr:()=>te,m6:()=>_,nM:()=>w,n_:()=>Y,ol:()=>U,op:()=>S,p7:()=>_e,pg:()=>H,pt:()=>i,uA:()=>u,uR:()=>Q,vn:()=>A,wZ:()=>E,x$:()=>ee,z_:()=>ke});var e=p(6087);function i(W){const De=new e.ye;return De.itemsPerPageLabel=W+" per page:",De}const u=["Sats","BTC"],b={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],y=["SECS","MINS","HOURS","DAYS"],h=10,P=[5,10,25,100],D=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],T=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],M=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var k=(()=>{return(W=k||(k={})).PAYMENT_RECEIVED="payment-received",W.PAYMENT_RELAYED="payment-relayed",W.PAYMENT_SENT="payment-sent",W.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",W.PAYMENT_FAILED="payment-failed",W.CHANNEL_OPENED="channel-opened",W.CHANNEL_STATE_CHANGED="channel-state-changed",W.CHANNEL_CLOSED="channel-closed",k;var W})(),w=(()=>{return(W=w||(w={})).INVOICE="invoice",W.BLOCK_HEIGHT="block-height",W.SEND_PAYMENT="send-payment",w;var W})(),V=(()=>((V||(V={})).INVOICE="invoice",V))(),U=(()=>{return(W=U||(U={})).OPERATOR="OPERATOR",W.MERCHANT="MERCHANT",W.ALL="ALL",U;var W})(),Y=(()=>{return(W=Y||(Y={})).INFORMATION="Information",W.WARNING="Warning",W.ERROR="Error",W.SUCCESS="Success",W.CONFIRM="Confirm",Y;var W})(),ae=(()=>{return(W=ae||(ae={})).JWT="JWT",W.PASSWORD="PASSWORD",ae;var W})(),X=(()=>{return(W=X||(X={})).SECS="SECS",W.MINS="MINS",W.HOURS="HOURS",W.DAYS="DAYS",X;var W})(),de=(()=>{return(W=de||(de={})).SATS="Sats",W.BTC="BTC",W.OTHER="OTHER",de;var W})(),q=(()=>{return(W=q||(q={})).ARRAY="ARRAY",W.NUMBER="NUMBER",W.STRING="STRING",W.BOOLEAN="BOOLEAN",W.PASSWORD="PASSWORD",W.DATE="DATE",W.DATE_TIME="DATE_TIME",q;var W})(),re=(()=>{return(W=re||(re={})).XS="XS",W.SM="SM",W.MD="MD",W.LG="LG",W.XL="XL",re;var W})();const le={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},ee={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var _e=(()=>{return(W=_e||(_e={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",W.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",W.WIRE_INVALID_ONION_KEY="Invalid Onion Key",W.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",W.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",W.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",W.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",W.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",W.WIRE_FEE_INSUFFICIENT="Insufficient Fee",W.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",W.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",W.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",W.WIRE_CHANNEL_DISABLED="Channel Disabled",W.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",W.WIRE_INVALID_REALM="Invalid Realm",W.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",W.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",W.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",W.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",W.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",W.WIRE_MPP_TIMEOUT="MPP Timeout",W.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",W.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",_e;var W})(),x=(()=>{return(W=x||(x={})).CHANNELD_NORMAL="Active",W.OPENINGD="Opening",W.CHANNELD_AWAITING_LOCKIN="Pending Open",W.CHANNELD_SHUTTING_DOWN="Shutting Down",W.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",W.CLOSINGD_COMPLETE="Closed",W.AWAITING_UNILATERAL="Awaiting Unilateral Close",W.FUNDING_SPEND_SEEN="Funding Spend Seen",W.ONCHAIN="Onchain",W.DUALOPEND_OPEN_INIT="Dual Open Initialized",W.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var W})(),t=(()=>{return(W=t||(t={})).INITIATED="Initiated",W.PREIMAGE_REVEALED="Preimage Revealed",W.HTLC_PUBLISHED="HTLC Published",W.SUCCESS="Successful",W.FAILED="Failed",W.INVOICE_SETTLED="Invoice Settled",t;var W})(),r=(()=>{return(W=r||(r={})).LOOP_OUT="LOOP_OUT",W.LOOP_IN="LOOP_IN",r;var W})(),d=(()=>{return(W=d||(d={})).SWAP_OUT="SWAP_OUT",W.SWAP_IN="SWAP_IN",d;var W})(),c=(()=>{return(W=c||(c={}))["swap.created"]="Swap Created",W["swap.expired"]="Swap Expired",W["invoice.set"]="Invoice Set",W["invoice.paid"]="Invoice Paid",W["invoice.pending"]="Invoice Pending",W["invoice.settled"]="Invoice Settled",W["invoice.failedToPay"]="Invoice Failed To Pay",W["channel.created"]="Channel Created",W["transaction.failed"]="Transaction Failed",W["transaction.mempool"]="Transaction Mempool",W["transaction.claimed"]="Transaction Claimed",W["transaction.refunded"]="Transaction Refunded",W["transaction.confirmed"]="Transaction Confirmed",W["swap.refunded"]="Swap Refunded",W["swap.abandoned"]="Swap Abandoned",c;var W})();const g=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],S=["MONTHLY","YEARLY"];var I=(()=>{return(W=I||(I={})).LOOP="LOOP",W.BOLTZ="BOLTZ",W.OFFERS="OFFERS",W.PEERSWAP="PEERSWAP",I;var W})();const C=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(W=n||(n={})).UN_INITIATED="UN_INITIATED",W.INITIATED="INITIATED",W.COMPLETED="COMPLETED",W.ERROR="ERROR",n;var W})();const _={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",PEERSWAP_SWAPOUT:"Initializing Swapout...",PEERSWAP_SWAPIN:"Initializing Swapin...",LOG_OUT:"Logging Out..."};var B=(()=>{return(W=B||(B={})).INVOICE="INVOICE",W.OFFER="OFFER",W.KEYSEND="KEYSEND",B;var W})(),R=(()=>{return(W=R||(R={})).FEES="FEES",W.EVENTS="EVENTS",R;var W})(),H=(()=>{return(W=H||(H={})).VOID="VOID",W.SET_API_URL_ECL="SET_API_URL_ECL",W.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",W.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",W.RESET_ROOT_STORE="RESET_ROOT_STORE",W.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",W.OPEN_SNACK_BAR="OPEN_SNACKBAR",W.OPEN_SPINNER="OPEN_SPINNER",W.CLOSE_SPINNER="CLOSE_SPINNER",W.OPEN_ALERT="OPEN_ALERT",W.CLOSE_ALERT="CLOSE_ALERT",W.OPEN_CONFIRMATION="OPEN_CONFIRMATION",W.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",W.SHOW_PUBKEY="SHOW_PUBKEY",W.FETCH_CONFIG="FETCH_CONFIG",W.SHOW_CONFIG="SHOW_CONFIG",W.FETCH_STORE="FETCH_STORE",W.SET_STORE="SET_STORE",W.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",W.SET_RTL_CONFIG="SET_RTL_CONFIG",W.SAVE_SSO="SAVE_SSO",W.SAVE_SETTINGS="SAVE_SETTINGS",W.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",W.SET_SELECTED_NODE="SET_SELECTED_NODE",W.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",W.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",W.SET_NODE_DATA="SET_NODE_DATA",W.IS_AUTHORIZED="IS_AUTHORIZED",W.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",W.LOGIN="LOGIN",W.VERIFY_TWO_FA="VERIFY_TWO_FA",W.LOGOUT="LOGOUT",W.RESET_PASSWORD="RESET_PASSWORD",W.RESET_PASSWORD_RES="RESET_PASSWORD_RES",W.FETCH_FILE="FETCH_FILE",W.SHOW_FILE="SHOW_FILE",H;var W})(),Q=(()=>{return(W=Q||(Q={})).RESET_LND_STORE="RESET_LND_STORE",W.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",W.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",W.FETCH_INFO_LND="FETCH_INFO_LND",W.SET_INFO_LND="SET_INFO_LND",W.FETCH_PEERS_LND="FETCH_PEERS_LND",W.SET_PEERS_LND="SET_PEERS_LND",W.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",W.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",W.DETACH_PEER_LND="DETACH_PEER_LND",W.REMOVE_PEER_LND="REMOVE_PEER_LND",W.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",W.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",W.ADD_INVOICE_LND="ADD_INVOICE_LND",W.FETCH_FEES_LND="FETCH_FEES_LND",W.SET_FEES_LND="SET_FEES_LND",W.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",W.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",W.FETCH_NETWORK_LND="FETCH_NETWORK_LND",W.SET_NETWORK_LND="SET_NETWORK_LND",W.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",W.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",W.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",W.SET_CHANNELS_LND="SET_CHANNELS_LND",W.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",W.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",W.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",W.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",W.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",W.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",W.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",W.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",W.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",W.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",W.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",W.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",W.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",W.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",W.FETCH_INVOICES_LND="FETCH_INVOICES_LND",W.SET_INVOICES_LND="SET_INVOICES_LND",W.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",W.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",W.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",W.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",W.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",W.FETCH_UTXOS_LND="FETCH_UTXOS_LND",W.SET_UTXOS_LND="SET_UTXOS_LND",W.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",W.SET_PAYMENTS_LND="SET_PAYMENTS_LND",W.SEND_PAYMENT_LND="SEND_PAYMENT_LND",W.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",W.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",W.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",W.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",W.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",W.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",W.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",W.GEN_SEED_LND="GEN_SEED_LND",W.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",W.INIT_WALLET_LND="INIT_WALLET_LND",W.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",W.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",W.PEER_LOOKUP_LND="PEER_LOOKUP_LND",W.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",W.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",W.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",W.SET_LOOKUP_LND="SET_LOOKUP_LND",W.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",W.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",W.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",W.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",W.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",W.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",Q;var W})(),Z=(()=>{return(W=Z||(Z={})).RESET_CLN_STORE="RESET_CLN_STORE",W.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",W.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",W.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",W.SET_INFO_CLN="SET_INFO_CLN",W.FETCH_FEES_CLN="FETCH_FEES_CLN",W.SET_FEES_CLN="SET_FEES_CLN",W.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",W.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",W.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",W.SET_BALANCE_CLN="SET_BALANCE_CLN",W.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",W.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",W.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",W.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",W.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",W.SET_UTXOS_CLN="SET_UTXOS_CLN",W.FETCH_PEERS_CLN="FETCH_PEERS_CLN",W.SET_PEERS_CLN="SET_PEERS_CLN",W.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",W.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",W.ADD_PEER_CLN="ADD_PEER_CLN",W.DETACH_PEER_CLN="DETACH_PEER_CLN",W.REMOVE_PEER_CLN="REMOVE_PEER_CLN",W.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",W.SET_CHANNELS_CLN="SET_CHANNELS_CLN",W.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",W.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",W.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",W.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",W.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",W.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",W.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",W.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",W.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",W.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",W.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",W.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",W.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",W.SET_LOOKUP_CLN="SET_LOOKUP_CLN",W.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",W.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",W.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",W.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",W.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",W.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",W.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",W.SET_INVOICES_CLN="SET_INVOICES_CLN",W.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",W.ADD_INVOICE_CLN="ADD_INVOICE_CLN",W.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",W.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",W.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",W.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",W.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",W.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",W.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",W.SET_OFFERS_CLN="SET_OFFERS_CLN",W.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",W.ADD_OFFER_CLN="ADD_OFFER_CLN",W.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",W.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",W.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",W.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",W.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",W.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",W.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",W.FETCH_SWAPS_CLN="FETCH_SWAPS_CLN",W.SET_SWAPS_CLN="SET_SWAPS_CLN",W.FETCH_SWAP_PEERS_CLN="FETCH_SWAP_PEERS_CLN",W.SET_SWAP_PEERS_CLN="SET_SWAP_PEERS_CLN",W.FETCH_SWAP_REQUESTS_CLN="FETCH_SWAP_REQUESTS_CLN",W.SET_SWAP_REQUESTS_CLN="SET_SWAP_REQUESTS_CLN",W.GET_SWAP_CLN="GET_SWAP_CLN",W.UPDATE_SWAP_STATE_CLN="UPDATE_SWAP_STATE_CLN",W.SWAPOUT_CLN="SWAPOUT_CLN",W.ADD_SWAPOUT_CLN="ADD_SWAPOUT_CLN",W.SWAPIN_CLN="SWAPIN_CLN",W.ADD_SWAPIN_CLN="ADD_SWAPIN_CLN",Z;var W})(),te=(()=>{return(W=te||(te={})).RESET_ECL_STORE="RESET_ECL_STORE",W.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",W.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",W.FETCH_INFO_ECL="FETCH_INFO_ECL",W.SET_INFO_ECL="SET_INFO_ECL",W.FETCH_FEES_ECL="FETCH_FEES_ECL",W.SET_FEES_ECL="SET_FEES_ECL",W.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",W.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",W.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",W.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",W.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",W.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",W.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",W.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",W.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",W.FETCH_PEERS_ECL="FETCH_PEERS_ECL",W.SET_PEERS_ECL="SET_PEERS_ECL",W.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",W.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",W.ADD_PEER_ECL="ADD_PEER_ECL",W.DETACH_PEER_ECL="DETACH_PEER_ECL",W.REMOVE_PEER_ECL="REMOVE_PEER_ECL",W.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",W.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",W.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",W.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",W.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",W.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",W.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",W.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",W.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",W.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",W.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",W.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",W.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",W.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",W.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",W.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",W.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",W.SET_INVOICES_ECL="SET_INVOICES_ECL",W.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",W.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",W.ADD_INVOICE_ECL="ADD_INVOICE_ECL",W.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",W.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",W.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",W.SET_LOOKUP_ECL="SET_LOOKUP_ECL",W.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",W.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",te;var W})();const Te=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Ee=(()=>{return(W=Ee||(Ee={})).gossip_queries_ex="Gossip queries including additional information",W.option_anchor_outputs="Anchor outputs",W.option_data_loss_protect="Extra channel re-establish fields",W.var_onion_optin="Variable-length routing onion payloads",W.option_static_remotekey="Static key for remote output",W.option_support_large_channel="Create large channels",W.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",W.payment_secret="Payment secret field",W.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",W.basic_mpp="Basic multi-part payments",W.gossip_queries="More sophisticated gossip control",W.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",W.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",W.amp="AMP",Ee;var W})(),ne=(()=>{return(W=ne||(ne={}))["data-loss-protect"]="Extra channel re-establish fields",W["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",W["gossip-queries"]="More sophisticated gossip control",W["tlv-onion"]="Variable-length routing onion payloads",W["ext-gossip-queries"]="Gossip queries can include additional information",W["static-remote-key"]="Static key for remote output",W["payment-addr"]="Payment secret field",W["multi-path-payments"]="Basic multi-part payments",W["wumbo-channels"]="Wumbo Channels",W.anchors="Anchor outputs",W["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",W.amp="AMP",ne;var W})();const ze=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var be=(()=>{return(W=be||(be={})).OFFERED="offered",W.SETTLED="settled",W.FAILED="failed",W.LOCAL_FAILED="local_failed",be;var W})(),$=(()=>{return(W=$||($={})).SWAP_OUT="swap-out",W.SWAP_IN="swap-in",$;var W})(),ke=(()=>{return(W=ke||(ke={})).SENDER="sender",W.RECEIVER="receiver",ke;var W})()},8104:(He,j,p)=>{"use strict";p.d(j,{D:()=>le});var e=p(8138),i=p(1135),u=p(7579),b=p(2843),a=p(9646),y=p(590),h=p(5577),P=p(2722),D=p(4004),T=p(262),M=p(1365),A=p(2340),E=p(7731),k=p(1786),w=p(7861),V=p(6523),U=p(6529),Y=p(9828),ae=p(5e3),X=p(5620),de=p(5043),q=p(7261),re=p(9808);let le=(()=>{class ee{constructor(x,t,r,d,c){this.httpClient=x,this.store=t,this.logger=r,this.snackBar=d,this.titleCasePipe=c,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new i.X(null),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x],this.mapAliases=(g,S)=>(g&&g.length>0?g.forEach((I,C)=>{var n;if(S&&S.length>0)for(let _=0;_null!==r),(0,h.z)(r=>{let d=this.APIUrl+"/"+r+A.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(d=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(d).pipe((0,P.R)(this.unSubs[0]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),c)),(0,T.K)(c=>(t?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",d,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,h.z)(t=>{let r="",d="";return"ecl"===t?(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API+"/getsentinfos",d=E.m6.GET_SENT_PAYMENTS):"cln"===t?(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API,d=E.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API,d=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:d})),this.httpClient.post(r,{payments:x}).pipe((0,P.R)(this.unSubs[1]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:d})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",d,d+" Failed",r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,h.z)(r=>{if(t){const d=(new e.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/nodes",{params:d})}return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,h.z)(t=>{let r=this.APIUrl+"/"+t+A.NZ.MESSAGE_API+"/sign";return"cln"===t&&(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,P.R)(this.unSubs[2]),(0,D.U)(d=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),d)),(0,T.K)(d=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",r,d),(0,b._)(()=>new Error(this.extractErrorMessage(d))))))}))}verifyMessage(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,h.z)(r=>{let d=this.APIUrl+"/"+r+A.NZ.MESSAGE_API+"/verify";return"cln"===r&&(d=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(d,{message:x,signature:t}).pipe((0,P.R)(this.unSubs[3]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",d,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,t,r,d){return this.lnImplementationUpdated.pipe((0,y.P)(c=>null!==c),(0,h.z)(c=>{const g={txid:x,outputIndex:t};return r&&(g.targetConf=r),d&&(g.satPerByte=d),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+A.NZ.WALLET_API+"/bumpfee",g).pipe((0,P.R)(this.unSubs[4]),(0,D.U)(S=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),S)),(0,T.K)(S=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,S),(0,b._)(()=>new Error(this.extractErrorMessage(S))))))}))}labelUTXO(x,t,r=!0){return this.lnImplementationUpdated.pipe((0,y.P)(d=>null!==d),(0,h.z)(d=>{const c={txid:x,label:t,overwrite:r};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+d+A.NZ.WALLET_API+"/label",c).pipe((0,P.R)(this.unSubs[5]),(0,D.U)(g=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),g)),(0,T.K)(g=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,g),(0,b._)(()=>new Error(this.extractErrorMessage(g))))))}))}leaseUTXO(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,h.z)(r=>{const d={txid:x,outputIndex:t};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+A.NZ.WALLET_API+"/lease",d).pipe((0,P.R)(this.unSubs[6]),(0,D.U)(c=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,V.mC)()),this.store.dispatch((0,V.Ly)());const g=new Date(1e3*c.expiration),S=Math.round(g.getTime())-60*g.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(S).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,T.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,t,r,d){if("LND"===x){const c={end_time:r,start_time:t};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+A.NZ.SWITCH_API,c).pipe((0,P.R)(this.unSubs[7]),(0,M.M)(this.store.select(U._f)),(0,h.z)(([g,S])=>{if(g.forwarding_events){const I=[...S.channels,...S.closedChannels];g.forwarding_events.forEach(C=>{var n,_;if(I&&I.length>0)for(let B=0;B(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+A.NZ.SWITCH_API,g),(0,b._)(()=>new Error(this.extractErrorMessage(g))))))}return"CLN"===x?(this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+d).pipe((0,P.R)(this.unSubs[8]),(0,M.M)(this.store.select(Y.ZW)),(0,h.z)(([c,g])=>{const S=this.mapAliases(c,[...g.activeChannels,...g.pendingChannels,...g.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,a.of)(S)}),(0,T.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+d+"&start="+t+"&end="+r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,h.z)(t=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+t+A.NZ.NETWORK_API+"/listNodes"+x).pipe((0,P.R)(this.unSubs[9]),(0,h.z)(r=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,T.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,r),(0,b._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,y.P)(x=>null!==x),(0,h.z)(x=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+A.NZ.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,h.z)(t=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,a.of)(t))),(0,T.K)(t=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,t),(0,b._)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(x,t,r,d,c,g){return this.lnImplementationUpdated.pipe((0,y.P)(S=>null!==S),(0,h.z)(S=>{const I=x?{policy:x,policy_mod:t,lease_fee_base_msat:r,lease_fee_basis:d,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:g}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+S+A.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,P.R)(this.unSubs[11]),(0,D.U)(C=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+C.compact_lease+"!"})),C)),(0,T.K)(C=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,C),(0,b._)(()=>new Error(this.extractErrorMessage(C))))))}))}extractErrorMessage(x,t="Unknown Error."){return this.titleCasePipe.transform(x.error.text&&"string"==typeof x.error.text&&x.error.text.includes('')?"API Route Does Not Exist.":x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.error&&"string"==typeof x.error.error.error.error.error?x.error.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&"string"==typeof x.error.error.error.error?x.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&"string"==typeof x.error.error.error?x.error.error.error:x.error&&x.error.error&&"string"==typeof x.error.error?x.error.error:x.error&&"string"==typeof x.error?x.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.message&&"string"==typeof x.error.error.error.error.message?x.error.error.error.error.message:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.message&&"string"==typeof x.error.error.error.message?x.error.error.error.message:x.error&&x.error.error&&x.error.error.message&&"string"==typeof x.error.error.message?x.error.error.message:x.error&&x.error.message&&"string"==typeof x.error.message?x.error.message:x.message&&"string"==typeof x.message?x.message:t)}handleErrorWithoutAlert(x,t,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:t})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,t,r,d,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:t}));const g=this.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:g,URL:d},component:k.H}}})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:c.status.toString(),message:g,URL:d}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return ee.\u0275fac=function(x){return new(x||ee)(ae.LFG(e.eN),ae.LFG(X.yh),ae.LFG(de.mQ),ae.LFG(q.ux),ae.LFG(re.rS))},ee.\u0275prov=ae.Yz7({token:ee,factory:ee.\u0275fac}),ee})()},5043:(He,j,p)=>{"use strict";p.d(j,{LG:()=>h,mQ:()=>y});var e=p(2340),i=p(5e3);const{isDebugMode:u}=e.NZ,b=()=>null;let y=(()=>{class P{invokeConsoleMethod(T,M){}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})(),h=(()=>{class P{get info(){return u?console.log.bind(console):b}get warn(){return u?console.warn.bind(console):b}get error(){return u?console.error.bind(console):b}invokeConsoleMethod(T,M){(console[T]||console.log||b).apply(console,[M])}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})()},9107:(He,j,p)=>{"use strict";p.d(j,{W:()=>U});var e=p(8138),i=p(1135),u=p(7579),b=p(9646),a=p(2843),y=p(2722),h=p(262),P=p(4004),D=p(2340),T=p(7731),M=p(1786),A=p(7861),E=p(5e3),k=p(5043),w=p(5620),V=p(62);let U=(()=>{class Y{constructor(X,de,q,re){this.httpClient=X,this.logger=de,this.store=q,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new i.X([]),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:T.m6.GET_LOOP_SWAPS})),this.loopUrl=D.T5+D.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:X=>{this.store.dispatch((0,A.uO)({payload:T.m6.GET_LOOP_SWAPS})),this.swaps=X,this.swapsChanged.next(this.swaps)},error:X=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_LOOP_SWAPS,this.loopUrl,X))})}loopOut(X,de,q,re,le,ee,_e,x,t,r){const d={amount:X,targetConf:q,swapRoutingFee:re,minerFee:le,prepayRoutingFee:ee,prepayAmt:_e,swapFee:x,swapPublicationDeadline:t,destAddress:r};return""!==de&&(d.chanId=de),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,d).pipe((0,h.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+de,T.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(X=>this.handleErrorWithoutAlert("Loop Out Terms",T.m6.NO_SPINNER,X)))}getLoopOutQuote(X,de,q){let re=new e.LE;return re=re.append("targetConf",de.toString()),re=re.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/quote/"+X,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,y.R)(this.unSubs[1]),(0,P.U)(le=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),le)),(0,h.K)(le=>this.handleErrorWithoutAlert("Loop Out Quote",T.m6.GET_QUOTE,le)))}getLoopOutTermsAndQuotes(X){let de=new e.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,y.R)(this.unSubs[2]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,h.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}loopIn(X,de,q,re,le){const ee={amount:X,swapFee:de,minerFee:q,lastHop:re,externalHtlc:le};return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ee).pipe((0,h.K)(_e=>this.handleErrorWithoutAlert("Loop In",T.m6.NO_SPINNER,_e)))}getLoopInTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,h.K)(X=>this.handleErrorWithoutAlert("Loop In Terms",T.m6.NO_SPINNER,X)))}getLoopInQuote(X,de,q){let re=new e.LE;return re=re.append("targetConf",de.toString()),re=re.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/quote/"+X,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,y.R)(this.unSubs[3]),(0,P.U)(le=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),le)),(0,h.K)(le=>this.handleErrorWithoutAlert("Loop In Qoute",T.m6.GET_QUOTE,le)))}getLoopInTermsAndQuotes(X){let de=new e.LE;return de=de.append("targetConf",X.toString()),de=de.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:de}).pipe((0,y.R)(this.unSubs[4]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,h.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}getSwap(X){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/swap/"+X,this.httpClient.get(this.loopUrl).pipe((0,h.K)(de=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+X,T.m6.NO_SPINNER,de)))}handleErrorWithoutAlert(X,de,q){let re="";return this.logger.error("ERROR IN: "+X+"\n"+JSON.stringify(q)),this.store.dispatch((0,A.uO)({payload:de})),401===q.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===q.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:X},component:M.H}}}))):re=this.commonService.extractErrorMessage(q),(0,a._)(()=>new Error(re))}handleErrorWithAlert(X,de,q){let re="";if(this.logger.error(q),this.store.dispatch((0,A.uO)({payload:X})),401===q.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===q.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:de},component:M.H}}}))},100);else{re=this.commonService.extractErrorMessage(q);const le=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:le,message:re,URL:de},component:M.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(X=>{X.next(null),X.complete()})}}return Y.\u0275fac=function(X){return new(X||Y)(E.LFG(e.eN),E.LFG(k.mQ),E.LFG(w.yh),E.LFG(V.v))},Y.\u0275prov=E.Yz7({token:Y,factory:Y.\u0275fac}),Y})()},5986:(He,j,p)=>{"use strict";p.d(j,{m:()=>u});var e=p(7579),i=p(5e3);let u=(()=>{class b{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(y){return sessionStorage.getItem(y)}getAllItems(){return sessionStorage}setItem(y,h){sessionStorage.setItem(y,h),this.sessionSub.next(sessionStorage)}removeItem(y){sessionStorage.removeItem(y),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275prov=i.Yz7({token:b,factory:b.\u0275fac}),b})()},7998:(He,j,p)=>{"use strict";p.d(j,{d:()=>k});var e=p(1135),i=p(7579),u=p(2722),b=p(930),a=p(8306),y=p(727),h=p(4707);const P={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class T extends i.u{constructor(V,U){if(super(),this._socket=null,V instanceof a.y)this.destination=U,this.source=V;else{const Y=this._config=Object.assign({},P);if(this._output=new i.x,"string"==typeof V)Y.url=V;else for(const ae in V)V.hasOwnProperty(ae)&&(Y[ae]=V[ae]);if(!Y.WebSocketCtor&&WebSocket)Y.WebSocketCtor=WebSocket;else if(!Y.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new h.t}}lift(V){const U=new T(this._config,this.destination);return U.operator=V,U.source=this,U}_resetState(){this._socket=null,this.source||(this.destination=new h.t),this._output=new i.x}multiplex(V,U,Y){const ae=this;return new a.y(X=>{try{ae.next(V())}catch(q){X.error(q)}const de=ae.subscribe({next:q=>{try{Y(q)&&X.next(q)}catch(re){X.error(re)}},error:q=>X.error(q),complete:()=>X.complete()});return()=>{try{ae.next(U())}catch(q){X.error(q)}de.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:V,protocol:U,url:Y,binaryType:ae}=this._config,X=this._output;let de=null;try{de=U?new V(Y,U):new V(Y),this._socket=de,ae&&(this._socket.binaryType=ae)}catch(re){return void X.error(re)}const q=new y.w0(()=>{this._socket=null,de&&1===de.readyState&&de.close()});de.onopen=re=>{const{_socket:le}=this;if(!le)return de.close(),void this._resetState();const{openObserver:ee}=this._config;ee&&ee.next(re);const _e=this.destination;this.destination=b.Lv.create(x=>{if(1===de.readyState)try{const{serializer:t}=this._config;de.send(t(x))}catch(t){this.destination.error(t)}},x=>{const{closingObserver:t}=this._config;t&&t.next(void 0),x&&x.code?de.close(x.code,x.reason):X.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:x}=this._config;x&&x.next(void 0),de.close(),this._resetState()}),_e&&_e instanceof h.t&&q.add(_e.subscribe(this.destination))},de.onerror=re=>{this._resetState(),X.error(re)},de.onclose=re=>{de===this._socket&&this._resetState();const{closeObserver:le}=this._config;le&&le.next(re),re.wasClean?X.complete():X.error(re)},de.onmessage=re=>{try{const{deserializer:le}=this._config;X.next(le(re))}catch(le){X.error(le)}}}_subscribe(V){const{source:U}=this;return U?U.subscribe(V):(this._socket||this._connectSocket(),this._output.subscribe(V),V.add(()=>{const{_socket:Y}=this;0===this._output.observers.length&&(Y&&(1===Y.readyState||0===Y.readyState)&&Y.close(),this._resetState())}),V)}unsubscribe(){const{_socket:V}=this;V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState(),super.unsubscribe()}}var M=p(5e3),A=p(5043),E=p(5986);let k=(()=>{class w{constructor(U,Y){this.logger=U,this.sessionService=Y,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x]}connectWebSocket(U,Y){(!this.socket||this.socket.closed)&&(this.wsUrl=U,this.nodeIndex=Y,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new T({url:U,protocol:[this.sessionService.getItem("token")||"",Y]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var U;null===(U=this.socket)||void 0===U||U.pipe((0,u.R)(this.unSubs[1])).subscribe({next:Y=>{if((Y="string"==typeof Y?JSON.parse(Y):Y).error)this.handleError(Y.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Y)),Y.source){case"LND":this.lndWSMessages.next(Y);break;case"CLN":this.clWSMessages.next(Y);break;case"ECL":this.eclWSMessages.next(Y)}},error:Y=>this.handleError(Y),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(U){this.logger.error(U),this.clWSMessages.error(U),this.eclWSMessages.error(U),this.lndWSMessages.error(U),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(U){return new(U||w)(M.LFG(A.mQ),M.LFG(E.m))},w.\u0275prov=M.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(He,j,p)=>{"use strict";p.d(j,{m:()=>Fn});var e=p(9808),i=p(1402),u=p(3075),b=p(8138),a=p(9444),y=p(5e3),h=p(3270),P=p(3322),D=p(7093);p(3191);let it=(()=>{class Tt{}return Tt.\u0275fac=function(Ct){return new(Ct||Tt)},Tt.\u0275mod=y.oAB({type:Tt}),Tt.\u0275inj=y.cJS({imports:[[h.IR]]}),Tt})(),ue=(()=>{class Tt{constructor(Ct,Wt){(0,e.PM)(Wt)&&!Ct&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(Ct,Wt=[]){return{ngModule:Tt,providers:Ct.serverLoaded?[{provide:h.WU,useValue:Object.assign(Object.assign({},h.g5),Ct)},{provide:h.Bs,useValue:Wt,multi:!0},{provide:h.wY,useValue:!0}]:[{provide:h.WU,useValue:Object.assign(Object.assign({},h.g5),Ct)},{provide:h.Bs,useValue:Wt,multi:!0}]}}}return Tt.\u0275fac=function(Ct){return new(Ct||Tt)(y.LFG(h.wY),y.LFG(y.Lbi))},Tt.\u0275mod=y.oAB({type:Tt}),Tt.\u0275inj=y.cJS({imports:[[D.ae,P.aT,it],D.ae,P.aT,it]}),Tt})();var $e=p(5113),bt=p(508),Vt=p(8966),yi=p(1079),Li=p(7544),Ji=p(7423);p(449),p(5664);let Nn=(()=>{class Tt{}return Tt.\u0275fac=function(Ct){return new(Ct||Tt)},Tt.\u0275mod=y.oAB({type:Tt}),Tt.\u0275inj=y.cJS({imports:[[bt.BQ,bt.si],bt.BQ]}),Tt})();var Tn=p(9224),Kn=p(7446),gn=p(6856),wi=p(1125),ji=p(3954),yn=p(5245),Gn=p(7531),ar=p(4623),kr=p(2181),Pr=p(6087),ia=p(5899),sa=p(773),oa=p(9814),La=p(4107),Ta=p(2638),rr=p(2368);p(1159),p(6360),p(925),p(727),p(226);let da=(()=>{class Tt{}return Tt.\u0275fac=function(Ct){return new(Ct||Tt)},Tt.\u0275mod=y.oAB({type:Tt}),Tt.\u0275inj=y.cJS({imports:[[e.ez,bt.BQ],bt.BQ]}),Tt})();var qn=p(7261),ga=p(4847),Ma=p(5615),$n=p(2075),Jn=p(3251),Hr=p(4594),xr=p(7238),Fr=p(149),ha=p(6688),Aa=p(1210),Wn=p(159),Ze=p(8129),Mt=p(9776);let je=(()=>{class Tt extends Mt.Xj{_createContainer(){const Ct=document.createElement("div");Ct.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(Ct),this._containerElement=Ct}}return Tt.\u0275fac=function(){let ci;return function(Wt){return(ci||(ci=y.n5z(Tt)))(Wt||Tt)}}(),Tt.\u0275prov=y.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();var Ot=p(5043),ri=p(7731),Si=p(9445);const Ii={suppressScrollX:!1,suppressScrollY:!1};let nn=(()=>{class Tt extends bt.LF{format(Ct,Wt){if("input"===Wt){let ki=Ct.getDate().toString();return ki=+ki<10?"0"+ki:ki,ki+"/"+ri.gg[Ct.getMonth()].name.toUpperCase()+"/"+Ct.getFullYear()}return ri.gg[Ct.getMonth()].name.toUpperCase()+" "+Ct.getFullYear()}}return Tt.\u0275fac=function(){let ci;return function(Wt){return(ci||(ci=y.n5z(Tt)))(Wt||Tt)}}(),Tt.\u0275prov=y.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Yn={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let Fn=(()=>{class Tt{}return Tt.\u0275fac=function(Ct){return new(Ct||Tt)},Tt.\u0275mod=y.oAB({type:Tt}),Tt.\u0275inj=y.cJS({providers:[{provide:Ot.mQ,useClass:Ot.LG},{provide:Ze.op,useValue:Ii},{provide:qn.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Vt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:bt._A,useClass:nn},{provide:bt.sG,useValue:Yn},{provide:Mt.Xj,useClass:je},e.JJ,e.rS,e.uU,Si.rn],imports:[[e.ez,u.u5,u.UX,a.uH,ue,$e.xu,Vt.Is,Ji.ot,Nn,Tn.QW,Kn.p9,wi.To,ji.N6,gn.FA,bt.XK,yn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,xr.AV,Li.g,Pr.TU,Ma.T5,da,Jn.Nh,qn.ZX,yi.Bb,Aa.a4,Wn.OF,i.Bz,b.JF,Ze.Xd],u.u5,u.UX,a.uH,ue,$e.xu,Vt.Is,Ji.ot,Nn,Tn.QW,Kn.p9,wi.To,ji.N6,gn.FA,bt.XK,yn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,xr.AV,Li.g,Pr.TU,Ma.T5,da,Jn.Nh,qn.ZX,yi.Bb,Aa.a4,Wn.OF,Ze.Xd]}),Tt})()},7861:(He,j,p)=>{"use strict";p.d(j,{M6:()=>M,Q2:()=>w,QO:()=>c,Tm:()=>le,Uy:()=>q,XT:()=>X,_V:()=>_e,ac:()=>P,c0:()=>r,c1:()=>A,dc:()=>C,ey:()=>ae,fk:()=>re,jS:()=>ee,jW:()=>h,kS:()=>t,lC:()=>b,qR:()=>T,qi:()=>a,tj:()=>k,ts:()=>y,tw:()=>U,uO:()=>D,vI:()=>Y,x4:()=>S,yb:()=>E,zQ:()=>de});var e=p(5620),i=p(7731);(0,e.PH)(i.pg.VOID);const b=(0,e.PH)(i.pg.SET_API_URL_ECL,(0,e.Ky)()),a=(0,e.PH)(i.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),y=(0,e.PH)(i.pg.CLOSE_ALL_DIALOGS),h=(0,e.PH)(i.pg.OPEN_SNACK_BAR,(0,e.Ky)()),P=(0,e.PH)(i.pg.OPEN_SPINNER,(0,e.Ky)()),D=(0,e.PH)(i.pg.CLOSE_SPINNER,(0,e.Ky)()),T=(0,e.PH)(i.pg.OPEN_ALERT,(0,e.Ky)()),M=(0,e.PH)(i.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(i.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(i.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),k=(0,e.PH)(i.pg.SHOW_PUBKEY),w=(0,e.PH)(i.pg.FETCH_CONFIG,(0,e.Ky)()),U=((0,e.PH)(i.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(i.pg.UPDATE_SELECTED_NODE_OPTIONS)),Y=(0,e.PH)(i.pg.RESET_ROOT_STORE,(0,e.Ky)()),ae=(0,e.PH)(i.pg.FETCH_RTL_CONFIG),X=(0,e.PH)(i.pg.SET_RTL_CONFIG,(0,e.Ky)()),de=(0,e.PH)(i.pg.SAVE_SETTINGS,(0,e.Ky)()),q=(0,e.PH)(i.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(i.pg.SET_SELECTED_NODE,(0,e.Ky)()),le=(0,e.PH)(i.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),ee=(0,e.PH)(i.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),_e=(0,e.PH)(i.pg.SET_NODE_DATA,(0,e.Ky)()),t=((0,e.PH)(i.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(i.pg.LOGOUT)),r=(0,e.PH)(i.pg.RESET_PASSWORD,(0,e.Ky)()),c=((0,e.PH)(i.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(i.pg.IS_AUTHORIZED,(0,e.Ky)())),S=((0,e.PH)(i.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(i.pg.LOGIN,(0,e.Ky)())),C=((0,e.PH)(i.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(i.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(i.pg.SHOW_FILE,(0,e.Ky)())},3093:(He,j,p)=>{"use strict";p.d(j,{V:()=>pn});var e=p(6642),i=p(7579),u=p(9646),b=p(8306),a=p(4128),y=p(4004),h=p(5698),P=p(1365),D=p(5577),T=p(262),M=p(2722),A=p(2340),E=p(7731),k=p(8966),w=p(5e3),V=p(7093),U=p(773);let Y=(()=>{class Zt{constructor(qe,Nt){this.dialogRef=qe,this.data=Nt}}return Zt.\u0275fac=function(qe){return new(qe||Zt)(w.Y36(k.so),w.Y36(k.WI))},Zt.\u0275cmp=w.Xpm({type:Zt,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(qe,Nt){1&qe&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA()()()),2&qe&&(w.xp6(4),w.Oqu(Nt.data.titleMessage))},directives:[V.xw,V.Wh,U.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),Zt})();var ae=p(5043),X=p(7261),de=p(62),q=p(9808),re=p(3322),le=p(159),ee=p(9224),_e=p(7423),x=p(8129),t=p(5245),r=p(3390),d=p(6895),c=p(4834);const g=["scrollContainer"];function S(Zt,bi){if(1&Zt&&w._UZ(0,"qr-code",15),2&Zt){const qe=w.oxw();w.Q6J("value",qe.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(Zt,bi){1&Zt&&w.GkF(0)}const C=function(Zt){return{"h-40":Zt}};function n(Zt,bi){if(1&Zt&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Zt){const qe=w.oxw(),Nt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,C,qe.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Nt)}}function _(Zt,bi){1&Zt&&w.GkF(0)}function B(Zt,bi){if(1&Zt&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,_,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Zt){w.oxw();const qe=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",qe)}}function R(Zt,bi){1&Zt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function H(Zt,bi){1&Zt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function Q(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"div",20)(1,"button",21),w.NdJ("click",function(){return w.CHM(qe),w.oxw().onScroll()}),w.YNc(2,R,2,0,"mat-icon",22),w.YNc(3,H,2,0,"mat-icon",22),w.qZA()()}if(2&Zt){const qe=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===qe.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===qe.scrollDirection)}}function Z(Zt,bi){1&Zt&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&Zt&&w.Q6J("mat-dialog-close",!1)}function te(Zt,bi){1&Zt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Zt&&w.Q6J("mat-dialog-close",!1)}function Te(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function($t){return w.CHM(qe),w.oxw().onCopyField($t)}),w._uU(1),w.qZA()}if(2&Zt){const qe=w.oxw();w.Q6J("payload",qe.showCopyField),w.xp6(1),w.hij("Copy ",qe.showCopyName,"")}}function Ee(Zt,bi){1&Zt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Zt&&w.Q6J("mat-dialog-close",!1)}function ne(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function($t){return w.CHM(qe),w.oxw().onCopyField($t)}),w._uU(1),w.qZA()}if(2&Zt){const qe=w.oxw();w.Q6J("payload",qe.showQRField),w.xp6(1),w.hij("Copy ",qe.showQRName,"")}}function ze(Zt,bi){if(1&Zt&&w._UZ(0,"qr-code",15),2&Zt){const qe=w.oxw(2);w.Q6J("value",qe.showQRField)("size",200)("errorCorrectionLevel","L")}}function be(Zt,bi){if(1&Zt&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&Zt){const qe=w.oxw(2);w.xp6(1),w.Oqu(qe.data.titleMessage)}}function $(Zt,bi){1&Zt&&w._UZ(0,"span",46),2&Zt&&w.Q6J("innerHTML",bi.$implicit,w.oJD)}function ke(Zt,bi){if(1&Zt&&(w.ynx(0),w.YNc(1,$,1,1,"span",45),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",qe.value)}}function lt(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*qe.value,"dd/MMM/y HH:mm"))}}function W(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,qe.value,qe.digitsInfo?qe.digitsInfo:"1.0-3"))}}function De(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(qe.value?"True":"False")}}function he(Zt,bi){1&Zt&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Ae=function(Zt){return{"failed-status":Zt}};function xe(Zt,bi){if(1&Zt&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,he,2,0,"mat-icon",50),w.qZA()),2&Zt){const qe=w.oxw(3).$implicit,Nt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Ae,qe.value===Nt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",qe.value," "),w.xp6(1),w.Q6J("ngIf",qe.value===Nt.LoopStateEnum.FAILED)}}function G(Zt,bi){if(1&Zt&&w._uU(0),2&Zt){const qe=w.oxw(3).$implicit;w.Oqu(qe.value)}}function ie(Zt,bi){if(1&Zt&&(w.ynx(0),w.YNc(1,xe,3,5,"p",47),w.YNc(2,G,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&Zt){const qe=w.MAs(3),Nt=w.oxw(2).$implicit,$t=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===$t.data.openedBy&&"state"===Nt.key)("ngIfElse",qe)}}function pe(Zt,bi){if(1&Zt&&(w.TgZ(0,"span")(1,"span",42),w.YNc(2,ke,2,1,"ng-container",43),w.YNc(3,lt,3,4,"ng-container",43),w.YNc(4,W,3,4,"ng-container",43),w.YNc(5,De,2,1,"ng-container",43),w.YNc(6,ie,4,2,"ng-container",44),w.qZA()()),2&Zt){const qe=w.oxw().$implicit,Nt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",qe.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function ye(Zt,bi){1&Zt&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Le(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",37)(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,pe,7,5,"span",39),w.YNc(4,ye,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&Zt){const qe=bi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",qe.width),w.xp6(2),w.Oqu(qe.title),w.xp6(1),w.Q6J("ngIf",qe&&(!!qe.value||0===qe.value))("ngIfElse",Nt)}}function ot(Zt,bi){if(1&Zt&&(w.TgZ(0,"div")(1,"div",35),w.YNc(2,Le,7,4,"div",36),w.qZA()()),2&Zt){const qe=bi.$implicit;w.xp6(2),w.Q6J("ngForOf",qe)}}function ht(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",33),w.YNc(1,ot,3,1,"div",34),w.qZA()),2&Zt){const qe=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",qe.messageObjs)}}const At=function(Zt){return{"display-none":Zt}};function hi(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",27)(1,"div",28),w.YNc(2,ze,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,be,2,1,"p",30),w.YNc(5,ht,2,1,"div",31),w.qZA()()),2&Zt){const qe=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,At,""===qe.showQRField||qe.screenSize!==qe.screenSizeEnum.XS&&qe.screenSize!==qe.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==qe.showQRField),w.xp6(2),w.Q6J("ngIf",qe.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==qe.messageObjs?null:qe.messageObjs.length)>0)}}let jt=(()=>{class Zt{constructor(qe,Nt,$t,pi,Ri,Oi){this.dialogRef=qe,this.data=Nt,this.logger=$t,this.snackBar=pi,this.commonService=Ri,this.renderer=Oi,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(qe){qe&&(this.scrollContainer=qe,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Nt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Nt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(qe){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+qe)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return Zt.\u0275fac=function(qe){return new(qe||Zt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ae.mQ),w.Y36(X.ux),w.Y36(de.v),w.Y36(w.Qsj))},Zt.\u0275cmp=w.Xpm({type:Zt,selectors:[["rtl-alert-message"]],viewQuery:function(qe,Nt){if(1&qe&&w.Gf(g,5),2&qe){let $t;w.iGM($t=w.CRH())&&(Nt.container=$t.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(qe,Nt){1&qe&&(w.TgZ(0,"div",0)(1,"div",1),w.YNc(2,S,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),w._uU(7),w.qZA()(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Nt.onClose()}),w._uU(9,"X"),w.qZA()(),w.YNc(10,n,4,4,"ng-container",8),w.YNc(11,B,3,1,"ng-container",8),w.YNc(12,Q,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,Z,2,1,"button",11),w.YNc(15,te,2,1,"button",12),w.YNc(16,Te,2,2,"button",13),w.YNc(17,Ee,2,1,"button",12),w.YNc(18,ne,2,2,"button",13),w.qZA()()(),w.YNc(19,hi,6,6,"ng-template",null,14,w.W1O)),2&qe&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,At,""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(3),w.Q6J("ngIf",Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Nt.data.scrollable&&Nt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Nt.showQRField||""===Nt.showQRField)&&""===Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField))},directives:[V.xw,V.Wh,V.yH,q.mk,re.oO,q.O5,le.uU,ee.dk,_e.lW,ee.dn,x.$V,q.tP,t.Hw,r.h,k.ZT,d.y,q.sg,q.RF,q.n9,q.ED,c.d],pipes:[q.uU,q.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),Zt})();var Gt=p(801),di=p(7861),vt=p(5620),kt=p(3075),mt=p(9444),Xe=p(7322),_t=p(7531),ei=p(6534);function Kt(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",18),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Zt){const qe=w.oxw();w.xp6(1),w.Q6J("icon",qe.faExclamationTriangle),w.xp6(2),w.Oqu(qe.warningMessage)}}function Pe(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",20),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Zt){const qe=w.oxw();w.xp6(1),w.Q6J("icon",qe.faInfoCircle),w.xp6(2),w.Oqu(qe.informationMessage)}}function Ie(Zt,bi){if(1&Zt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Zt){const qe=w.oxw();w.xp6(1),w.Oqu(qe.data.titleMessage)}}function ce(Zt,bi){1&Zt&&w._UZ(0,"div",36),2&Zt&&w.Q6J("innerHTML",bi.$implicit,w.oJD)}function Me(Zt,bi){if(1&Zt&&(w.ynx(0,34),w.YNc(1,ce,1,1,"div",35),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",qe.value)}}function ut(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*qe.value,"dd/MMM/y HH:mm"))}}function ft(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,qe.value,"1.0-3"))}}function Rt(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===qe.value?"True":"False")}}function et(Zt,bi){if(1&Zt&&(w.ynx(0),w._uU(1),w.BQk()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.Oqu(qe.value)}}function Re(Zt,bi){if(1&Zt&&(w.TgZ(0,"span")(1,"span",30),w.YNc(2,Me,2,1,"ng-container",31),w.YNc(3,ut,3,4,"ng-container",32),w.YNc(4,ft,3,4,"ng-container",32),w.YNc(5,Rt,2,1,"ng-container",32),w.YNc(6,et,2,1,"ng-container",33),w.qZA()()),2&Zt){const qe=w.oxw().$implicit,Nt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",qe.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function Je(Zt,bi){1&Zt&&(w.TgZ(0,"span",37),w._uU(1,"\xa0"),w.qZA())}function Ke(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",25)(1,"h4",26),w._uU(2),w.qZA(),w.YNc(3,Re,7,5,"span",27),w.YNc(4,Je,2,0,"ng-template",null,28,w.W1O),w._UZ(6,"mat-divider",29),w.qZA()),2&Zt){const qe=bi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",qe.width),w.xp6(2),w.Oqu(qe.title),w.xp6(1),w.Q6J("ngIf",qe&&(!!qe.value||0===qe.value))("ngIfElse",Nt)}}function we(Zt,bi){if(1&Zt&&(w.TgZ(0,"div")(1,"div",23),w.YNc(2,Ke,7,4,"div",24),w.qZA()()),2&Zt){const qe=bi.$implicit;w.xp6(2),w.Q6J("ngForOf",qe)}}function Fe(Zt,bi){if(1&Zt&&(w.TgZ(0,"div"),w.YNc(1,we,3,1,"div",22),w.qZA()),2&Zt){const qe=w.oxw();w.xp6(1),w.Q6J("ngForOf",qe.messageObjs)}}function rt(Zt,bi){if(1&Zt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Zt){const qe=w.oxw(2);w.xp6(1),w.Oqu(qe.data.titleMessage)}}function at(Zt,bi){if(1&Zt&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&Zt){const qe=w.oxw(2).$implicit;w.xp6(1),w.hij("",qe.placeholder," is required.")}}function yt(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"mat-form-field",41)(1,"input",42),w.NdJ("ngModelChange",function($t){return w.CHM(qe),w.oxw().$implicit.inputValue=$t}),w.ALo(2,"lowercase"),w.qZA(),w.YNc(3,at,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA()()}if(2&Zt){const qe=w.oxw(),Nt=qe.$implicit,$t=qe.index;w.Q6J("fxFlex",Nt.width),w.xp6(1),w.MGl("name","input",$t,""),w.Q6J("autoFocus",0===$t)("placeholder",Nt.placeholder)("min",Nt.min)("step",Nt.step)("type",w.lcZ(2,11,Nt.inputType))("ngModel",Nt.inputValue)("tabindex",$t+1),w.xp6(2),w.Q6J("ngIf",!Nt.inputValue),w.xp6(2),w.Oqu(Nt.hintFunction?Nt.hintFunction(Nt.inputValue):Nt.hintText)}}function mi(Zt,bi){if(1&Zt&&(w.ynx(0),w.YNc(1,yt,6,13,"mat-form-field",40),w.BQk()),2&Zt){const qe=bi.$implicit,Nt=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!qe.advancedField||Nt.showAdvanced)}}function Xt(Zt,bi){if(1&Zt&&(w.TgZ(0,"div",38),w.YNc(1,rt,2,1,"p",10),w.TgZ(2,"div",39),w.YNc(3,mi,2,1,"ng-container",22),w.qZA()()),2&Zt){const qe=w.oxw();w.xp6(1),w.Q6J("ngIf",qe.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",qe.getInputs)}}function qt(Zt,bi){1&Zt&&(w.TgZ(0,"p"),w._uU(1,"Show Advanced"),w.qZA())}function Xi(Zt,bi){1&Zt&&(w.TgZ(0,"p"),w._uU(1,"Hide Advanced"),w.qZA())}function ui(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){return w.CHM(qe),w.oxw().onShowAdvanced()}),w.YNc(1,qt,2,0,"p",27),w.YNc(2,Xi,2,0,"ng-template",null,44,w.W1O),w.qZA()}if(2&Zt){const qe=w.MAs(3),Nt=w.oxw();w.xp6(1),w.Q6J("ngIf",!Nt.showAdvanced)("ngIfElse",qe)}}function si(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(qe);const $t=w.oxw();return $t.onClose($t.getInputs)}),w._uU(1),w.qZA()}if(2&Zt){const qe=w.oxw();w.xp6(1),w.Oqu(qe.yesBtnText)}}function qi(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){return w.CHM(qe),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&Zt){const qe=w.oxw();w.xp6(1),w.Oqu(qe.yesBtnText)}}let Gi=(()=>{class Zt{constructor(qe,Nt,$t,pi){this.dialogRef=qe,this.data=Nt,this.logger=$t,this.store=pi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(qe){if(qe&&this.getInputs&&this.getInputs.some(Nt=>void 0===Nt.inputValue))return!0;!this.showAdvanced&&qe.length&&(qe=null==qe?void 0:qe.reduce((Nt,$t)=>($t.advancedField||Nt.push($t),Nt),[])),this.store.dispatch((0,di.yb)({payload:qe}))}}return Zt.\u0275fac=function(qe){return new(qe||Zt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ae.mQ),w.Y36(vt.yh))},Zt.\u0275cmp=w.Xpm({type:Zt,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(qe,Nt){1&qe&&(w.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),w._uU(5),w.qZA()(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(7,"X"),w.qZA()(),w.TgZ(8,"mat-card-content",6)(9,"form",7),w.YNc(10,Kt,4,2,"div",8),w.YNc(11,Pe,4,2,"div",9),w.YNc(12,Ie,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Xt,4,2,"div",12),w.TgZ(15,"div",13)(16,"button",14),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,ui,4,2,"button",15),w.YNc(19,si,2,1,"button",16),w.YNc(20,qi,2,1,"button",17),w.qZA()()()()()),2&qe&&(w.xp6(5),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(5),w.Q6J("ngIf",Nt.warningMessage&&""!==Nt.warningMessage),w.xp6(1),w.Q6J("ngIf",Nt.informationMessage&&""!==Nt.informationMessage),w.xp6(1),w.Q6J("ngIf",Nt.data.titleMessage&&!Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Nt.messageObjs?null:Nt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(3),w.Oqu(Nt.noBtnText),w.xp6(1),w.Q6J("ngIf",Nt.hasAdvanced),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Nt.flgShowInput))},directives:[V.xw,V.yH,ee.dk,V.Wh,_e.lW,ee.dn,kt._Y,kt.JL,kt.F,q.O5,mt.BN,q.sg,q.RF,q.n9,q.ED,c.d,Xe.KE,_t.Nt,ei.q,kt.Fj,kt.Q7,r.h,kt.JJ,kt.On,Xe.TO,Xe.bx],pipes:[q.uU,q.JJ,q.i8],styles:[""]}),Zt})();var Ui=p(1786),Wi=p(4107),ct=p(508);function Ft(Zt,bi){if(1&Zt&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&Zt){const qe=bi.$implicit;w.Q6J("value",qe),w.xp6(1),w.hij(" ",qe.infoName," ")}}function pt(Zt,bi){if(1&Zt){const qe=w.EpF();w.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),w.NdJ("valueChange",function($t){return w.CHM(qe),w.oxw().selInfoType=$t}),w.YNc(3,Ft,2,2,"mat-option",22),w.qZA()()()}if(2&Zt){const qe=w.oxw();w.xp6(2),w.Q6J("value",qe.selInfoType),w.xp6(1),w.Q6J("ngForOf",qe.infoTypes)}}const it=function(Zt){return{"display-none":Zt}};let It=(()=>{class Zt{constructor(qe,Nt,$t,pi,Ri){this.dialogRef=qe,this.data=Nt,this.logger=$t,this.snackBar=pi,this.commonService=Ri,this.faReceipt=Gt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((qe,Nt)=>{this.infoTypes.push({infoID:Nt+1,infoKey:"node URI "+(Nt+1),infoName:"Node URI "+(Nt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(qe){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+qe)}}return Zt.\u0275fac=function(qe){return new(qe||Zt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ae.mQ),w.Y36(X.ux),w.Y36(de.v))},Zt.\u0275cmp=w.Xpm({type:Zt,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(qe,Nt){1&qe&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA()(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Nt.onClose()}),w._uU(10,"X"),w.qZA()(),w.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,pt,4,2,"div",12),w.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA()()(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18)(24,"button",19),w.NdJ("copied",function(pi){return Nt.onCopyPubkey(pi)}),w._uU(25),w.qZA()()()()()()),2&qe&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,it,Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Nt.faReceipt),w.xp6(2),w.Oqu(Nt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,it,Nt.screenSize!==Nt.screenSizeEnum.XS&&Nt.screenSize!==Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Nt.information.uris&&Nt.information.uris.length>0),w.xp6(4),w.Oqu(Nt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Nt.selInfoType.infoKey,""))},directives:[V.xw,V.Wh,V.yH,q.mk,re.oO,le.uU,ee.dk,mt.BN,_e.lW,ee.dn,q.O5,Xe.KE,Wi.gD,q.sg,ct.ey,c.d,r.h,d.y],styles:[""]}),Zt})();var ue=p(6523),$e=p(429),bt=p(2994),Vt=p(8377),yi=p(8138),Li=p(7998),Ji=p(5986),Yi=p(8104),an=p(1402);let pn=(()=>{class Zt{constructor(qe,Nt,$t,pi,Ri,Oi,dn,Nn,Tn,Kn,gn){this.actions=qe,this.httpClient=Nt,this.store=$t,this.logger=pi,this.wsService=Ri,this.sessionService=Oi,this.commonService=dn,this.dataService=Nn,this.dialog=Tn,this.snackBar=Kn,this.router=gn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new i.x,new i.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,y.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,y.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,y.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Y,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,y.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(ji=>{ji.componentInstance&&ji.componentInstance.data&&ji.componentInstance.data.titleMessage&&ji.componentInstance.data.titleMessage===wi.payload&&ji.close()})}catch(ji){this.logger.error(ji)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,y.U)(wi=>{const ji=JSON.parse(JSON.stringify(wi.payload));ji.width||(ji.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:jt,ji)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,y.U)(wi=>{const ji=JSON.parse(JSON.stringify(wi.payload));ji.width||(ji.width=this.confirmWidth),this.dialogRef=this.dialog.open(Gi,ji)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,h.q)(1),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,P.M)(this.store.select(Vt.R4)),(0,D.z)(([wi,ji])=>(this.sessionService.getItem("token")&&ji.identity_pubkey?this.store.dispatch((0,di.qR)({payload:{data:{information:ji,component:It}}})):this.snackBar.open("Node Pubkey does not exist."),(0,u.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,D.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,di.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,y.U)(wi=>{this.logger.info(wi),this.store.dispatch((0,di.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}}));let ji=null;return wi.nodes.forEach(yn=>{var Gn,ar;yn.settings.currencyUnits=[...E.uA,(null===(Gn=yn.settings)||void 0===Gn?void 0:Gn.currencyUnit)?null===(ar=yn.settings)||void 0===ar?void 0:ar.currencyUnit:""],+(yn.index||-1)===wi.selectedNodeIndex&&(ji=yn)}),ji?(this.store.dispatch((0,di.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:ji,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,T.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let ji=new b.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const yn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Gn=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});ji=(0,a.D)([yn,Gn])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?ji=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(ji=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return ji.pipe((0,y.U)(yn=>(this.logger.info(yn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:yn.length?yn[0].message+".":yn.message+"."})),(0,T.K)(yn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,yn.length?yn[0]:yn),(0,u.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,y.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:ji.message+"."})),(0,T.K)(ji=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,ji),(0,u.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,P.M)(this.store.select(Vt.Yj)),(0,y.U)(([wi,ji])=>{this.logger.info(wi),ji.enable2FA=!ji.enable2FA,this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.XT)({payload:ji}))}),(0,T.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,y.U)(ji=>(this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:ji})),(0,T.K)(ji=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,ji),(0,u.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,y.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:ji})),(0,T.K)(ji=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,ji),(0,u.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,ji])=>(this.store.dispatch((0,ue.Ll)({payload:null})),this.store.dispatch((0,$e.xH)({payload:null})),this.store.dispatch((0,bt.Fd)({payload:null})),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,y.U)(yn=>{this.logger.info(yn),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,yn)}),(0,T.K)(yn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,yn),+ji.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:yn.error&&yn.error.error?yn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,y.U)(ji=>{this.logger.info(ji),this.store.dispatch((0,di.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,T.K)(ji=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",ji),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,ji])=>(this.store.dispatch((0,di.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,y.U)(yn=>{this.logger.info(yn),this.store.dispatch((0,di.uO)({payload:E.m6.LOG_OUT})),+ji.sso.rtlSSO?window.location.href=ji.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,di._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,M.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,M.R)(this.unSubs[0]),(0,y.U)(ji=>(this.logger.info(ji),this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,di.jW)({payload:"Password Reset Successful!"})),this.SetToken(ji.token),{type:E.pg.RESET_PASSWORD_RES,payload:ji.token})),(0,T.K)(ji=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",ji),(0,u.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,D.z)(wi=>{var ji;return this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/updateSelNode/"+(null===(ji=wi.payload.currentLnNode)||void 0===ji?void 0:ji.index)+"/"+wi.payload.prevLnNodeIndex).pipe((0,y.U)(yn=>(this.logger.info(yn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,T.K)(yn=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",yn),(0,u.of)({type:E.pg.VOID}))))}))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const ji="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+ji).pipe((0,y.U)(yn=>(this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:yn})),(0,T.K)(yn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+ji,{status:this.commonService.extractErrorNumber(yn),error:{error:this.commonService.extractErrorCode(yn)}}),(0,u.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,y.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(qe,Nt){this.logger.info("Initializing node from RTL Effects.");const $t=Nt?"":"HOME";let pi={};if(pi=qe.settings.fiatConversion&&qe.settings.currencyUnit?{userPersona:qe.settings.userPersona,channelBackupPath:qe.settings.channelBackupPath,selCurrencyUnit:qe.settings.currencyUnit,currencyUnits:[...E.uA,qe.settings.currencyUnit],fiatConversion:qe.settings.fiatConversion,lnImplementation:qe.lnImplementation,swapServerUrl:qe.settings.swapServerUrl,boltzServerUrl:qe.settings.boltzServerUrl,enableOffers:qe.settings.enableOffers,enablePeerswap:qe.settings.enablePeerswap}:{userPersona:qe.settings.userPersona,channelBackupPath:qe.settings.channelBackupPath,selCurrencyUnit:qe.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:qe.settings.fiatConversion,lnImplementation:qe.lnImplementation,swapServerUrl:qe.settings.swapServerUrl,boltzServerUrl:qe.settings.boltzServerUrl,enableOffers:qe.settings.enableOffers,enablePeerswap:qe.settings.enablePeerswap},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,di.vI)({payload:qe})),this.store.dispatch((0,ue.Ll)({payload:pi})),this.store.dispatch((0,$e.xH)({payload:pi})),this.store.dispatch((0,bt.Fd)({payload:pi})),this.sessionService.getItem("token")){const Ri=qe.lnImplementation?qe.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ri);const Oi=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket((null==Oi?void 0:Oi.replace(/^http/,"ws"))+A.NZ.Web_SOCKET_API,qe.index?qe.index.toString():"-1"),Ri){case"CLN":this.store.dispatch((0,$e.CN)({payload:{loadPage:$t}}));break;case"ECL":this.store.dispatch((0,bt.iz)({payload:{loadPage:$t}}));break;default:this.store.dispatch((0,ue.sQ)({payload:{loadPage:$t}}))}}}SetToken(qe){qe?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",qe)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(qe,Nt){this.logger.info("Successfully Authorized!"),this.SetToken(Nt.token),this.sessionService.setItem("defaultPassword",qe),qe?(this.store.dispatch((0,di.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,di.ey)())}handleErrorWithoutAlert(qe,Nt,$t){this.logger.error("ERROR IN: "+qe+"\n"+JSON.stringify($t)),401===$t.status&&"Login"!==qe?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,di.uO)({payload:Nt})),this.store.dispatch((0,di.qi)({payload:{action:qe,status:E.Bn.ERROR,statusCode:$t.status?$t.status.toString():"",message:this.commonService.extractErrorMessage($t)}})))}handleErrorWithAlert(qe,Nt,$t,pi,Ri){if(this.logger.error(Ri),0===Ri.status&&Ri.statusText&&"Unknown Error"===Ri.statusText&&(Ri={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ri.status&&"Login"!==qe)this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,di.uO)({payload:Nt}));const Oi=this.commonService.extractErrorMessage(Ri);this.store.dispatch((0,di.qR)({payload:{data:{type:"ERROR",alertTitle:$t,message:{code:Ri.status?Ri.status:"Unknown Error",message:Oi,URL:pi},component:Ui.H}}})),this.store.dispatch((0,di.qi)({payload:{action:qe,status:E.Bn.ERROR,statusCode:Ri.status?Ri.status.toString():"",message:Oi,URL:pi}}))}}ngOnDestroy(){this.unSubs.forEach(qe=>{qe.next(null),qe.complete()})}}return Zt.\u0275fac=function(qe){return new(qe||Zt)(w.LFG(e.eX),w.LFG(yi.eN),w.LFG(vt.yh),w.LFG(ae.mQ),w.LFG(Li.d),w.LFG(Ji.m),w.LFG(de.v),w.LFG(Yi.D),w.LFG(k.uw),w.LFG(X.ux),w.LFG(an.F0))},Zt.\u0275prov=w.Yz7({token:Zt,factory:Zt.\u0275fac}),Zt})()},8377:(He,j,p)=>{"use strict";p.d(j,{R4:()=>y,Sr:()=>P,Yj:()=>a,dT:()=>b,gW:()=>D,ul:()=>h});var e=p(5620);const i=(0,e.ZF)("root"),b=((0,e.P1)(i,T=>T.apiURL),(0,e.P1)(i,T=>T.selNode)),a=(0,e.P1)(i,T=>T.appConfig),y=(0,e.P1)(i,T=>T.nodeData),h=(0,e.P1)(i,T=>T.apisCallStatus.Login),P=(0,e.P1)(i,T=>T.apisCallStatus.IsAuthorized),D=(0,e.P1)(i,T=>({nodeDate:T.nodeData,selNode:T.selNode}))},2340:(He,j,p)=>{"use strict";p.d(j,{NZ:()=>i,T5:()=>e,q4:()=>u});const e="./api",i={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",PEERSWAP_API:"/peerswap",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},u="0.13.1-beta"},5901:(He,j,p)=>{"use strict";var e=p(2313),i=p(5e3),u=p(6360),b=p(8138),a=p(5113),y=p(5620),h=p(6642),P=p(9565),D=p(7579),T=p(6451),M=p(4968),A=p(457),E=p(4986),k=p(2805);function w(ve=0,Qe=E.z){return ve<0&&(ve=0),(0,k.H)(ve,ve,Qe)}var V=p(9646),U=p(727),Y=p(4482),ae=p(5403),X=p(8737),de=p(3269),q=p(9672),le=p(9300),ee=p(8505),_e=p(3900),x=p(2722),t=p(8746),r=p(1884),d=p(4004);class c{}let g=(()=>{class ve{constructor(K,Ye){this._ngZone=Ye,this.timerStart$=new D.x,this.idleDetected$=new D.x,this.timeout$=new D.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,K&&this.setConfig(K)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,T.T)((0,M.R)(window,"mousemove"),(0,M.R)(window,"resize"),(0,M.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(ve,...Qe){var K,Ye;const zt=null!==(K=(0,de.yG)(Qe))&&void 0!==K?K:E.z,Ce=null!==(Ye=Qe[0])&&void 0!==Ye?Ye:null,ge=Qe[1]||1/0;return(0,Y.e)((fe,Ue)=>{let nt=[],Dt=!1;const Qt=Vi=>{const{buffer:xn,subs:zi}=Vi;zi.unsubscribe(),(0,X.P)(nt,Vi),Ue.next(xn),Dt&&ai()},ai=()=>{if(nt){const Vi=new U.w0;Ue.add(Vi);const zi={buffer:[],subs:Vi};nt.push(zi),(0,q.f)(Vi,zt,()=>Qt(zi),ve)}};null!==Ce&&Ce>=0?(0,q.f)(Ue,zt,ai,Ce,!0):Dt=!0,ai();const Ai=(0,ae.x)(Ue,Vi=>{const xn=nt.slice();for(const zi of xn){const{buffer:hn}=zi;hn.push(Vi),ge<=hn.length&&Qt(zi)}},()=>{for(;null==nt?void 0:nt.length;)Ue.next(nt.shift().buffer);null==Ai||Ai.unsubscribe(),Ue.complete(),Ue.unsubscribe()},void 0,()=>nt=null);fe.subscribe(Ai)})}(this.idleSensitivityMillisec),(0,le.h)(K=>!K.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,ee.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,_e.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,x.R)((0,T.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,ee.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,t.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,r.x)(),(0,_e.w)(K=>K?this.timer$:(0,V.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,le.h)(K=>!!K),(0,ee.b)(()=>this.isTimeout=!0),(0,d.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(K){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(K):console.error("Call stopWatching() before set config values")}setConfig(K){K.idle&&(this.idleMillisec=1e3*K.idle),K.ping&&(this.pingMillisec=1e3*K.ping),K.idleSensitivity&&(this.idleSensitivityMillisec=1e3*K.idleSensitivity),K.timeout&&(this.timeout=K.timeout)}setCustomActivityEvents(K){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=K:console.error("Call stopWatching() before set custom activity events")}setupTimer(K){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,V.of)(()=>new Date).pipe((0,d.U)(Ye=>Ye()),(0,_e.w)(Ye=>w(1e3).pipe((0,d.U)(()=>Math.round(((new Date).valueOf()-Ye.valueOf())/1e3)),(0,ee.b)(zt=>{zt>=K&&this.timeout$.next(!0)}))))})}setupPing(K){this.ping$=w(K).pipe((0,le.h)(()=>!this.isTimeout))}}return ve.\u0275fac=function(K){return new(K||ve)(i.LFG(c,8),i.LFG(i.R0b))},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),S=(()=>{class ve{static forRoot(K){return{ngModule:ve,providers:[{provide:c,useValue:K}]}}}return ve.\u0275fac=function(K){return new(K||ve)},ve.\u0275mod=i.oAB({type:ve}),ve.\u0275inj=i.cJS({imports:[[]]}),ve})();var I=p(1402),C=p(801),n=p(8377),_=p(7093),B=p(9444),R=p(9224),H=p(3251),Q=p(9808);const Z=function(){return{initial:!1}};function te(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[1].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,Z)),i.xp6(1),i.Oqu(K.links[1].name)}}function Te(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[2].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Ee=(()=>{class ve{constructor(K,Ye){this.store=K,this.router=Ye,this.faUserCog=C.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(Ye=>this.router.url.includes(Ye.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,le.h)(Ye=>Ye instanceof I.Av)).subscribe({next:Ye=>{const zt=this.links.find(Ce=>Ye.urlAfterRedirects.includes(Ce.link));this.activeLink=zt?zt.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(Ye=>{this.appConfig=Ye}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(Ye=>{this.showBitcoind=!1,this.selNode=Ye,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(I.F0))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Settings"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return Ye.activeLink=Ye.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,te,2,5,"div",7),i.YNc(11,Te,2,3,"div",8),i.qZA(),i.TgZ(12,"div",9),i._UZ(13,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",Ye.faUserCog),i.xp6(7),i.s9C("routerLink",Ye.links[0].link),i.Q6J("active",Ye.activeLink===Ye.links[0].link),i.xp6(1),i.Oqu(Ye.links[0].name),i.xp6(1),i.Q6J("ngIf",!+Ye.appConfig.sso.rtlSSO),i.xp6(1),i.Q6J("ngIf",Ye.showBitcoind))},directives:[_.xw,_.Wh,B.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,Q.O5,_.yH,I.lC],styles:[""]}),ve})();var ne=p(7731),ze=p(7861),be=p(5043),$=p(8129),ke=p(3075),lt=p(7322),W=p(4107),De=p(3390),he=p(508),Ae=p(7423);function xe(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-option",16),i._uU(1),i.qZA()),2&ve){const K=Qe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function G(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"form",2,3)(2,"div",4),i._UZ(3,"fa-icon",5),i.TgZ(4,"span",6),i._uU(5,"Default Node"),i.qZA()(),i.TgZ(6,"div",7)(7,"div",8),i._UZ(8,"fa-icon",9),i.TgZ(9,"span"),i._uU(10,"The setting will apply after RTL server restarts."),i.qZA()(),i.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw().appConfig.defaultNodeIndex=zt}),i.YNc(14,xe,2,3,"mat-option",12),i.qZA()()(),i.TgZ(15,"div",13)(16,"div",10)(17,"button",14),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetSettings()}),i._uU(18,"Reset"),i.qZA(),i.TgZ(19,"button",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onUpdateSettings()}),i._uU(20,"Update"),i.qZA()()()()()}if(2&ve){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faWindowRestore),i.xp6(5),i.Q6J("icon",K.faInfoCircle),i.xp6(5),i.Q6J("ngModel",K.appConfig.defaultNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}let ie=(()=>{class ve{constructor(K,Ye){this.logger=K,this.store=Ye,this.faInfoCircle=C.sqG,this.faWindowRestore=C.wyP,this.faPlus=C.r8p,this.previousDefaultNode=0,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(K)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,ze.zQ)({payload:{uiMessage:ne.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i.YNc(1,G,21,4,"form",1),i.qZA()),2&K&&(i.xp6(1),i.Q6J("ngIf",Ye.appConfig.nodes&&Ye.appConfig.nodes.length&&Ye.appConfig.nodes.length>0))},directives:[_.xw,_.yH,$.$V,Q.O5,ke._Y,ke.JL,ke.F,_.Wh,B.BN,lt.KE,W.gD,De.h,ke.JJ,ke.On,Q.sg,he.ey,Ae.lW],styles:[""]}),ve})();var pe=p(8012),ye=p(5698),Le=p(8966),ot=p(5768),ht=p(3093),At=p(7261),hi=p(5615),jt=p(7531),Gt=p(159),di=p(6895);const vt=["stepper"];function kt(ve,Qe){if(1&ve&&i._uU(0),2&ve){const K=i.oxw();i.Oqu(K.passwordFormLabel)}}function mt(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function Xe(ve,Qe){if(1&ve&&i._uU(0),2&ve){const K=i.oxw(2);i.Oqu(K.secretFormLabel)}}function _t(ve,Qe){if(1&ve&&i._UZ(0,"qr-code",32),2&ve){const K=i.oxw(2);i.Q6J("value",K.otpauth)("size",180)("errorCorrectionLevel","L")}}function ei(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Secret Code is required."),i.qZA())}function Kt(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-step",10)(1,"form",21),i.YNc(2,Xe,1,1,"ng-template",22),i.TgZ(3,"div",23),i.YNc(4,_t,1,3,"qr-code",24),i.qZA(),i.TgZ(5,"div",25),i._UZ(6,"fa-icon",26),i.TgZ(7,"span"),i._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.qZA()(),i.TgZ(9,"div",27)(10,"mat-form-field",1),i._UZ(11,"input",28),i.TgZ(12,"fa-icon",29),i.NdJ("copied",function(zt){return i.CHM(K),i.oxw().onCopySecret(zt)}),i.qZA(),i.YNc(13,ei,2,0,"mat-error",14),i.qZA()(),i.TgZ(14,"div",30)(15,"button",31),i._uU(16,"Next"),i.qZA()()()()}if(2&ve){const K=i.oxw();i.Q6J("stepControl",K.secretFormGroup)("editable",K.flgEditable),i.xp6(1),i.Q6J("formGroup",K.secretFormGroup),i.xp6(3),i.Q6J("ngIf",K.otpauth),i.xp6(2),i.Q6J("icon",K.faInfoCircle),i.xp6(6),i.Q6J("icon",K.faCopy)("payload",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret?null:K.secretFormGroup.controls.secret.value),i.xp6(1),i.Q6J("ngIf",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret||null==K.secretFormGroup.controls.secret.errors?null:K.secretFormGroup.controls.secret.errors.required)}}function Pe(ve,Qe){if(1&ve&&i._uU(0),2&ve){const K=i.oxw(2);i.Oqu(K.tokenFormLabel)}}function Ie(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}function ce(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is invalid."),i.qZA())}function Me(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),i._UZ(3,"input",36),i.YNc(4,Ie,2,0,"mat-error",14),i.YNc(5,ce,2,0,"mat-error",14),i.qZA()(),i.TgZ(6,"div",30)(7,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(8),i.qZA()()()}if(2&ve){const K=i.oxw(2);i.xp6(4),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.required),i.xp6(1),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.notValid),i.xp6(3),i.Oqu(null!=K.tokenFormGroup&&null!=K.tokenFormGroup.controls&&null!=K.tokenFormGroup.controls.token&&null!=K.tokenFormGroup.controls.token.errors&&K.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ut(ve,Qe){1&ve&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Success! You are all set."),i.qZA()())}function ft(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Pe,1,1,"ng-template",12),i.YNc(3,Me,9,3,"div",35),i.YNc(4,ut,3,0,"div",14),i.qZA()()),2&ve){const K=i.oxw();i.Q6J("stepControl",K.tokenFormGroup),i.xp6(1),i.Q6J("formGroup",K.tokenFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}function Rt(ve,Qe){if(1&ve&&i._uU(0),2&ve){const K=i.oxw(2);i.Oqu(K.disableFormLabel)}}function et(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",38),i._UZ(2,"fa-icon",26),i.TgZ(3,"span"),i._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.qZA()(),i.TgZ(5,"div",30)(6,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(7,"Disable"),i.qZA()()()}if(2&ve){const K=i.oxw(2);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function Re(ve,Qe){1&ve&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Two factor authentication removed from RTL."),i.qZA()())}function Je(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Rt,1,1,"ng-template",12),i.YNc(3,et,8,1,"div",35),i.YNc(4,Re,3,0,"div",14),i.qZA()()),2&ve){const K=i.oxw();i.Q6J("stepControl",K.disableFormGroup),i.xp6(1),i.Q6J("formGroup",K.disableFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}let Ke=(()=>{class ve{constructor(K,Ye,zt,Ce,ge,fe){this.dialogRef=K,this.data=Ye,this.store=zt,this.formBuilder=Ce,this.rtlEffects=ge,this.snackBar=fe,this.faExclamationTriangle=C.eHv,this.faCopy=C.kZ_,this.faInfoCircle=C.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[ke.kI.required]],password:["",[ke.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},ke.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",ke.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new D.x,new D.x]}ngOnInit(){var K,Ye;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(Ye=this.appConfig)||void 0===Ye?void 0:Ye.enable2FA)?"":this.generateSecret(),disabled:!0},ke.kI.required]})}generateSecret(){const K=ot.authenticator.generateSecret();return this.otpauth=ot.authenticator.keyuri("","Ride The Lightning (RTL)",K),K}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,ze.QO)({payload:pe(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ye.q)(1)).subscribe(K=>{"ERROR"!==K?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(K){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var K,Ye;if(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA)this.store.dispatch((0,ze.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ot.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,ze.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(Ye=this.appConfig)||void 0===Ye?void 0:Ye.enable2FA))}stepSelectionChanged(K){switch(K.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}K.selectedIndex{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(Le.so),i.Y36(Le.WI),i.Y36(y.yh),i.Y36(ke.qu),i.Y36(ht.V),i.Y36(At.ux))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-two-factor-auth"]],viewQuery:function(K,Ye){if(1&K&&i.Gf(vt,5),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.stepper=zt.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Setup Two Factor Authentication"),i.qZA()(),i.TgZ(6,"button",5),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),i.NdJ("selectionChange",function(Ce){return Ye.stepSelectionChanged(Ce)}),i.TgZ(12,"mat-step",10)(13,"form",11),i.YNc(14,kt,1,1,"ng-template",12),i.TgZ(15,"div",0)(16,"mat-form-field",1),i._UZ(17,"input",13),i.YNc(18,mt,2,0,"mat-error",14),i.qZA()(),i.TgZ(19,"div",15)(20,"button",16),i.NdJ("click",function(){return Ye.onAuthenticate()}),i._uU(21,"Confirm"),i.qZA()()()(),i.YNc(22,Kt,17,8,"mat-step",17),i.YNc(23,ft,5,4,"mat-step",18),i.YNc(24,Je,5,4,"mat-step",18),i.qZA(),i.TgZ(25,"div",19)(26,"button",20),i._uU(27),i.qZA()()()()()()),2&K&&(i.xp6(6),i.Q6J("mat-dialog-close",!1),i.xp6(4),i.Q6J("linear",!0),i.xp6(2),i.Q6J("stepControl",Ye.passwordFormGroup)("editable",Ye.flgEditable),i.xp6(1),i.Q6J("formGroup",Ye.passwordFormGroup),i.xp6(5),i.Q6J("ngIf",null==Ye.passwordFormGroup||null==Ye.passwordFormGroup.controls||null==Ye.passwordFormGroup.controls.password||null==Ye.passwordFormGroup.controls.password.errors?null:Ye.passwordFormGroup.controls.password.errors.required),i.xp6(4),i.Q6J("ngIf",!Ye.showDisableStepper),i.xp6(1),i.Q6J("ngIf",!Ye.showDisableStepper),i.xp6(1),i.Q6J("ngIf",Ye.showDisableStepper),i.xp6(2),i.Q6J("mat-dialog-close",!1),i.xp6(1),i.Oqu(Ye.flgValidated&&Ye.isTokenValid?"Close":"Cancel"))},directives:[_.xw,_.yH,R.dk,_.Wh,Ae.lW,Le.ZT,R.dn,hi.Vq,hi.C0,ke._Y,ke.JL,ke.sg,hi.VY,lt.KE,jt.Nt,ke.Fj,De.h,ke.JJ,ke.u,ke.Q7,Q.O5,lt.TO,Gt.uU,B.BN,lt.R9,di.y,hi.Ic],styles:[""]}),ve})();var we=p(5986),Fe=p(4834);const rt=["authForm"];function at(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Current password is required."),i.qZA())}function yt(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&ve){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorMsg)}}function mi(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&ve){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorConfirmMsg)}}function Xt(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"form",10,11)(2,"div",12),i._UZ(3,"fa-icon",4),i.TgZ(4,"span",5),i._uU(5,"Password"),i.qZA()(),i.TgZ(6,"mat-form-field")(7,"input",13),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw().currPassword=zt}),i.qZA(),i.YNc(8,at,2,0,"mat-error",14),i.qZA(),i.TgZ(9,"mat-form-field")(10,"input",15),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw().newPassword=zt}),i.qZA(),i.YNc(11,yt,2,1,"mat-error",14),i.qZA(),i.TgZ(12,"mat-form-field")(13,"input",16),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw().confirmPassword=zt}),i.qZA(),i.YNc(14,mi,2,1,"mat-error",14),i.qZA(),i.TgZ(15,"div",17)(16,"button",18),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetPassword()}),i._uU(17,"Reset"),i.qZA(),i.TgZ(18,"button",19),i.NdJ("click",function(){return i.CHM(K),i.oxw().onChangePassword()}),i._uU(19,"Change Password"),i.qZA()(),i.TgZ(20,"div",20),i._UZ(21,"mat-divider",21),i.qZA()()}if(2&ve){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faLock),i.xp6(4),i.Q6J("ngModel",K.currPassword),i.xp6(1),i.Q6J("ngIf",!K.currPassword),i.xp6(2),i.Q6J("ngModel",K.newPassword),i.xp6(1),i.Q6J("ngIf",K.matchOldAndNewPasswords()),i.xp6(2),i.Q6J("ngModel",K.confirmPassword),i.xp6(1),i.Q6J("ngIf",K.matchNewPasswords()),i.xp6(7),i.Q6J("inset",!0)}}let qt=(()=>{class ve{constructor(K,Ye,zt,Ce,ge){this.logger=K,this.store=Ye,this.actions=zt,this.router=Ce,this.sessionService=ge,this.faInfoCircle=C.sqG,this.faUserLock=C.FJU,this.faUserClock=C.hnx,this.faLock=C.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,le.h)(K=>K.type===ne.pg.RESET_PASSWORD_RES)).subscribe(K=>{var Ye;if(ne.kO.includes(this.currPassword.toLowerCase()))switch(null===(Ye=this.selNode.lnImplementation)||void 0===Ye?void 0:Ye.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||ne.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,ze.c0)({payload:{currPassword:pe(this.currPassword).toString(),newPassword:pe(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let K=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",K=!0):ne.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==ne.kO?void 0:ne.kO.reduce((Ye,zt,Ce)=>Ce{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(h.eX),i.Y36(I.F0),i.Y36(we.m))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-auth-settings"]],viewQuery:function(K,Ye){if(1&K&&i.Gf(rt,5),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.form=zt.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i.YNc(1,Xt,22,8,"form",1),i.TgZ(2,"div",2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Two Factor Authentication"),i.qZA()(),i.TgZ(7,"div",6),i._UZ(8,"fa-icon",7),i.TgZ(9,"span"),i._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){return Ye.on2FAuth()}),i._uU(13),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("ngIf",null==Ye.appConfig?null:Ye.appConfig.allowPasswordUpdate),i.xp6(3),i.Q6J("icon",Ye.faUserClock),i.xp6(4),i.Q6J("icon",Ye.faInfoCircle),i.xp6(5),i.Oqu(Ye.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[_.xw,_.yH,_.Wh,Q.O5,ke._Y,ke.JL,ke.F,B.BN,lt.KE,jt.Nt,ke.Fj,De.h,ke.Q7,ke.JJ,ke.On,lt.TO,Ae.lW,Fe.d],styles:[""]}),ve})();var Xi=p(4623);function ui(ve,Qe){1&ve&&i._UZ(0,"mat-divider",7)}function si(ve,Qe){if(1&ve&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,ui,1,0,"mat-divider",6),i.qZA()),2&ve){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function qi(ve,Qe){if(1&ve&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Gi(ve,Qe){if(1&ve&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ui(ve,Qe){1&ve&&i._UZ(0,"mat-divider",15),2&ve&&i.Q6J("inset",!0)}function Wi(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,qi,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Gi,2,1,"h4",12),i.qZA(),i.YNc(5,Ui,1,1,"mat-divider",13),i.qZA()),2&ve){const K=Qe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function ct(ve,Qe){if(1&ve&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Wi,6,3,"mat-list-item",9),i.qZA()()),2&ve){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let Ft=(()=>{class ve{constructor(K,Ye,zt){this.store=K,this.rtlEffects=Ye,this.router=zt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=C.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,le.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const Ye=K.data;this.fileFormat=K.format,this.configData=""===Ye||!Ye||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ye&&Ye&&"JSON"===this.fileFormat?Ye:"":Ye.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,si,5,4,"div",2),i.YNc(3,ct,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==Ye.configData&&"JSON"===Ye.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==Ye.configData&&("INI"===Ye.fileFormat||"HOCON"===Ye.fileFormat)))},directives:[_.xw,_.yH,_.Wh,Q.O5,Fe.d,Xi.i$,Q.sg,Xi.Tg,R.$j],pipes:[Q.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})();const pt=function(){return{initial:!1}};function it(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[1].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,pt)),i.xp6(1),i.Oqu(K.links[1].name)}}function It(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[2].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}function ue(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[3].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[3].link),i.Q6J("active",K.activeLink===K.links[3].link),i.xp6(1),i.Oqu(K.links[3].name)}}let $e=(()=>{class ve{constructor(K,Ye){this.store=K,this.router=Ye,this.faTools=C.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(Ye=>this.router.url.includes(Ye.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,le.h)(Ye=>Ye instanceof I.Av)).subscribe({next:Ye=>{const zt=this.links.find(Ce=>Ye.urlAfterRedirects.includes(Ce.link));this.activeLink=zt?zt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(Ye=>{var zt;switch(this.showLnConfig=!1,this.selNode=Ye,null===(zt=this.selNode.lnImplementation)||void 0===zt?void 0:zt.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(I.F0))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-node-config"]],decls:15,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Node Config"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return Ye.activeLink=Ye.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,it,2,5,"div",7),i.YNc(11,It,2,3,"div",8),i.YNc(12,ue,2,3,"div",8),i.qZA(),i.TgZ(13,"div",9),i._UZ(14,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",Ye.faTools),i.xp6(7),i.s9C("routerLink",Ye.links[0].link),i.Q6J("active",Ye.activeLink===Ye.links[0].link),i.xp6(1),i.Oqu(Ye.links[0].name),i.xp6(1),i.Q6J("ngIf","LND"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())||"CLN"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf",Ye.showLnConfig))},directives:[_.xw,_.Wh,B.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,Q.O5,_.yH,I.lC],styles:[""]}),ve})();function bt(ve,Qe){1&ve&&i._UZ(0,"mat-divider",7)}function Vt(ve,Qe){if(1&ve&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,bt,1,0,"mat-divider",6),i.qZA()),2&ve){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function yi(ve,Qe){if(1&ve&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Li(ve,Qe){if(1&ve&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ji(ve,Qe){1&ve&&i._UZ(0,"mat-divider",15),2&ve&&i.Q6J("inset",!0)}function Yi(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,yi,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Li,2,1,"h4",12),i.qZA(),i.YNc(5,Ji,1,1,"mat-divider",13),i.qZA()),2&ve){const K=Qe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function an(ve,Qe){if(1&ve&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Yi,6,3,"mat-list-item",9),i.qZA()()),2&ve){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let pn=(()=>{class ve{constructor(K,Ye,zt){this.store=K,this.rtlEffects=Ye,this.router=zt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=C.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,le.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const Ye=K.data;this.fileFormat=K.format,this.configData=""===Ye||!Ye||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Ye&&Ye&&"JSON"===this.fileFormat?Ye:"":Ye.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Vt,5,4,"div",2),i.YNc(3,an,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==Ye.configData&&"JSON"===Ye.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==Ye.configData&&("INI"===Ye.fileFormat||"HOCON"===Ye.fileFormat)))},directives:[_.xw,_.yH,_.Wh,Q.O5,Fe.d,Xi.i$,Q.sg,Xi.Tg,R.$j],pipes:[Q.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})();var Zt=p(2994),bi=p(429),qe=p(6523),Nt=p(62),$t=p(2368),pi=p(9814),Ri=p(3322);function Oi(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-option",35),i._uU(1),i.qZA()),2&ve){const K=Qe.$implicit;i.Q6J("value",K.id),i.xp6(1),i.hij(" ",K.id," ")}}function dn(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Currency unit is required."),i.qZA())}function Nn(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-radio-button",36),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&ve){const K=Qe.$implicit,Ye=i.oxw();i.Q6J("value",K)("checked",Ye.selNode.settings.userPersona===K),i.xp6(1),i.hij(" ",i.lcZ(2,3,K)," ")}}const Tn=function(ve){return{"mr-4":ve}};function Kn(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-radio-button",37),i._uU(1),i.qZA()),2&ve){const K=Qe.$implicit,Ye=i.oxw();i.Q6J("value",K)("ngClass",i.VKq(3,Tn,Ye.screenSize===Ye.screenSizeEnum.XS||Ye.screenSize===Ye.screenSizeEnum.SM)),i.xp6(1),i.hij("",K.name," ")}}const gn=function(ve){return{skin:!0,"selected-color":ve}};function wi(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"span",38)(1,"div",39),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().changeThemeColor(Ce.id)}),i.ALo(2,"lowercase"),i.qZA(),i._uU(3),i.qZA()}if(2&ve){const K=Qe.$implicit,Ye=i.oxw();i.xp6(1),i.Tol(i.lcZ(2,4,K.id)),i.Q6J("ngClass",i.VKq(6,gn,Ye.selectedThemeColor===K.id)),i.xp6(2),i.hij(" ",K.name," ")}}let ji=(()=>{class ve{constructor(K,Ye,zt){this.logger=K,this.commonService=Ye,this.store=zt,this.faExclamationTriangle=C.eHv,this.faMoneyBillAlt=C.co4,this.faPaintBrush=C.XsY,this.faInfoCircle=C.sqG,this.userPersonas=[ne.ol.OPERATOR,ne.ol.MERCHANT],this.currencyUnits=ne.Er,this.themeModes=ne.wZ.modes,this.themeColors=ne.wZ.themes,this.selectedThemeMode=ne.wZ.modes[0],this.selectedThemeColor=ne.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=ne.cu,this.unSubs=[new D.x,new D.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.selectedThemeMode=this.themeModes.find(Ye=>this.selNode.settings.themeMode===Ye.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(K)})}onCurrencyChange(K){this.selNode.settings.currencyUnits=[...ne.uA,K.value],this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(K,Ye){this.selNode.settings[K]=!this.selNode.settings[K]}changeThemeColor(K){this.selectedThemeColor=K,this.selNode.settings.themeColor=K}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,ze.zQ)({payload:{uiMessage:ne.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const K=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(Ye=>Ye.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,ze.fk)({payload:{uiMessage:ne.m6.NO_SPINNER,prevLnNodeIndex:+K,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Balance Display"),i.qZA()(),i.TgZ(7,"div",6)(8,"div",7),i._UZ(9,"fa-icon",8),i.TgZ(10,"span"),i._uU(11,"Fiat conversion calls "),i.TgZ(12,"strong")(13,"a",9),i._uU(14,"Blockchain.com"),i.qZA()(),i._uU(15," API to get conversion rates."),i.qZA()(),i.TgZ(16,"div",10)(17,"mat-slide-toggle",11),i.NdJ("ngModelChange",function(Ce){return Ye.selNode.settings.fiatConversion=Ce})("change",function(Ce){return Ye.selNode.settings.currencyUnit=Ce.checked?Ye.selNode.settings.currencyUnit:null}),i._uU(18,"Enable Fiat Conversion"),i.qZA(),i.TgZ(19,"mat-form-field")(20,"mat-select",12,13),i.NdJ("ngModelChange",function(Ce){return Ye.selNode.settings.currencyUnit=Ce})("selectionChange",function(Ce){return Ye.onCurrencyChange(Ce)}),i.YNc(22,Oi,2,2,"mat-option",14),i.qZA(),i.YNc(23,dn,2,0,"mat-error",15),i.qZA()()(),i.TgZ(24,"div",16)(25,"div",17)(26,"div",18),i._UZ(27,"fa-icon",4),i.TgZ(28,"span",5),i._uU(29,"Customization"),i.qZA()(),i.TgZ(30,"div",6)(31,"div",19)(32,"div",20),i._UZ(33,"fa-icon",8),i.TgZ(34,"span"),i._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),i.qZA()(),i.TgZ(36,"div",21)(37,"h4"),i._uU(38,"Dashboard Layout"),i.qZA(),i.TgZ(39,"mat-radio-group",22),i.NdJ("ngModelChange",function(Ce){return Ye.selNode.settings.userPersona=Ce}),i.YNc(40,Nn,3,5,"mat-radio-button",23),i.qZA()()(),i._UZ(41,"mat-divider",24),i.TgZ(42,"div",25)(43,"div",26)(44,"h4"),i._uU(45,"Mode"),i.qZA(),i.TgZ(46,"mat-radio-group",27),i.NdJ("ngModelChange",function(Ce){return Ye.selectedThemeMode=Ce})("change",function(){return Ye.chooseThemeMode()}),i.YNc(47,Kn,2,5,"mat-radio-button",28),i.qZA()()(),i._UZ(48,"mat-divider",24),i.TgZ(49,"div",25)(50,"div",29)(51,"h4"),i._uU(52,"Themes"),i.qZA(),i.TgZ(53,"div",30),i.YNc(54,wi,4,8,"span",31),i.qZA()()()()()()(),i.TgZ(55,"div",32)(56,"button",33),i.NdJ("click",function(){return Ye.onResetSettings()}),i._uU(57,"Reset"),i.qZA(),i.TgZ(58,"button",34),i.NdJ("click",function(){return Ye.onUpdateSettings()}),i._uU(59,"Update"),i.qZA()()()),2&K&&(i.xp6(4),i.Q6J("icon",Ye.faMoneyBillAlt),i.xp6(5),i.Q6J("icon",Ye.faExclamationTriangle),i.xp6(8),i.Q6J("ngModel",Ye.selNode.settings.fiatConversion),i.xp6(3),i.Q6J("ngModel",Ye.selNode.settings.currencyUnit)("disabled",!Ye.selNode.settings.fiatConversion)("required",Ye.selNode.settings.fiatConversion),i.xp6(2),i.Q6J("ngForOf",Ye.currencyUnits),i.xp6(1),i.Q6J("ngIf",Ye.selNode.settings.fiatConversion&&!Ye.selNode.settings.currencyUnit),i.xp6(4),i.Q6J("icon",Ye.faPaintBrush),i.xp6(6),i.Q6J("icon",Ye.faInfoCircle),i.xp6(6),i.Q6J("ngModel",Ye.selNode.settings.userPersona),i.xp6(1),i.Q6J("ngForOf",Ye.userPersonas),i.xp6(1),i.Q6J("inset",!0),i.xp6(5),i.Q6J("ngModel",Ye.selectedThemeMode),i.xp6(1),i.Q6J("ngForOf",Ye.themeModes),i.xp6(1),i.Q6J("inset",!0),i.xp6(6),i.Q6J("ngForOf",Ye.themeColors))},directives:[_.xw,_.yH,$.$V,ke._Y,ke.JL,ke.F,_.Wh,B.BN,$t.Rr,ke.JJ,ke.On,lt.KE,W.gD,De.h,ke.Q7,Q.sg,he.ey,Q.O5,lt.TO,pi.VQ,pi.U0,Fe.d,Q.mk,Ri.oO,Ae.lW],pipes:[Q.rS,Q.i8],styles:[""]}),ve})();function yn(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[0].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[0].link),i.Q6J("active",K.activeLink===K.links[0].link),i.xp6(1),i.Oqu(K.links[0].name)}}const Gn=function(){return{initial:!1}};function ar(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[1].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,Gn)),i.xp6(1),i.Oqu(K.links[1].name)}}function kr(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.activeLink=zt.links[2].link}),i._uU(1),i.qZA()}if(2&ve){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Pr=(()=>{class ve{constructor(K,Ye,zt){this.store=K,this.router=Ye,this.activatedRoute=zt,this.faLayerGroup=C.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(Ye=>this.router.url.includes(Ye.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,le.h)(Ye=>Ye instanceof I.Av)).subscribe({next:Ye=>{const zt=this.links.find(Ce=>Ye.urlAfterRedirects.includes(Ce.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:zt?zt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(Ye=>{this.selNode=Ye,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(I.F0),i.Y36(I.gz))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-services-settings"]],decls:13,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Services"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),i.YNc(8,yn,2,3,"div",6),i.YNc(9,ar,2,5,"div",7),i.YNc(10,kr,2,3,"div",6),i.qZA(),i.TgZ(11,"div",8),i._UZ(12,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",Ye.faLayerGroup),i.xp6(7),i.Q6J("ngIf","LND"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","LND"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==Ye.selNode||null==Ye.selNode.lnImplementation?null:Ye.selNode.lnImplementation.toUpperCase())))},directives:[_.xw,_.Wh,B.BN,R.a8,R.dn,H.BU,Q.O5,H.Nj,I.rH,_.yH,I.lC],styles:[""]}),ve})();const ia=["form"];function sa(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop server URL is required."),i.qZA())}function oa(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the loop server url with 'https://'."),i.qZA())}function La(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop macaroon path is required."),i.qZA())}let Ta=(()=>{class ve{constructor(K,Ye){this.logger=K,this.store=Ye,this.faInfoCircle=C.sqG,this.enableLoop=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableLoop=!(!K.settings.swapServerUrl||""===K.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(K)})}onEnableServiceChanged(K){this.enableLoop=K.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch((0,ze.jS)({payload:{uiMessage:ne.m6.UPDATE_LOOP_SETTINGS,service:ne.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-loop-service-settings"]],viewQuery:function(K,Ye){if(1&K&&i.Gf(ia,7),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.form=zt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,Ye){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"loopd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return Ye.enableLoop=Ce})("change",function(Ce){return Ye.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Loop Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return Ye.selNode.settings.swapServerUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),i.qZA(),i.YNc(22,sa,2,0,"mat-error",11),i.YNc(23,oa,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return Ye.selNode.authentication.swapMacaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),i.qZA(),i.YNc(28,La,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return Ye.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return Ye.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const zt=i.MAs(19);i.xp6(2),i.Q6J("icon",Ye.faInfoCircle),i.xp6(13),i.Q6J("ngModel",Ye.enableLoop),i.xp6(3),i.Q6J("ngModel",Ye.selNode.settings.swapServerUrl)("required",Ye.enableLoop)("disabled",!Ye.enableLoop),i.xp6(4),i.Q6J("ngIf",!Ye.selNode.settings.swapServerUrl&&Ye.enableLoop),i.xp6(1),i.Q6J("ngIf",(null==zt||null==zt.errors?null:zt.errors.invalid)&&Ye.enableLoop),i.xp6(2),i.Q6J("ngModel",Ye.selNode.authentication.swapMacaroonPath)("required",Ye.enableLoop)("disabled",!Ye.enableLoop),i.xp6(3),i.Q6J("ngIf",!Ye.selNode.authentication.swapMacaroonPath&&Ye.enableLoop)}},directives:[_.xw,_.yH,$.$V,B.BN,ke._Y,ke.JL,ke.F,_.Wh,$t.Rr,De.h,ke.JJ,ke.On,lt.KE,jt.Nt,ke.Fj,ke.Q7,lt.bx,Q.O5,lt.TO,Ae.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})();const rr=["form"];function Yr(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz server URL is required."),i.qZA())}function na(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the boltz server url with 'https://'."),i.qZA())}function Ra(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz macaroon path is required."),i.qZA())}let Jr=(()=>{class ve{constructor(K,Ye){this.logger=K,this.store=Ye,this.faInfoCircle=C.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableBoltz=!(!K.settings.boltzServerUrl||""===K.settings.boltzServerUrl.trim()),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(K)})}onEnableServiceChanged(K){this.enableBoltz=K.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,ze.jS)({payload:{uiMessage:ne.m6.UPDATE_BOLTZ_SETTINGS,service:ne.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(K,Ye){if(1&K&&i.Gf(rr,7),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.form=zt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,Ye){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"boltzd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return Ye.enableBoltz=Ce})("change",function(Ce){return Ye.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Boltz Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return Ye.serverUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),i.qZA(),i.YNc(22,Yr,2,0,"mat-error",11),i.YNc(23,na,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return Ye.macaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),i.qZA(),i.YNc(28,Ra,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return Ye.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return Ye.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const zt=i.MAs(19);i.xp6(2),i.Q6J("icon",Ye.faInfoCircle),i.xp6(13),i.Q6J("ngModel",Ye.enableBoltz),i.xp6(3),i.Q6J("ngModel",Ye.serverUrl)("required",Ye.enableBoltz)("disabled",!Ye.enableBoltz),i.xp6(4),i.Q6J("ngIf",(!Ye.serverUrl||""===Ye.serverUrl.trim())&&Ye.enableBoltz),i.xp6(1),i.Q6J("ngIf",(null==zt||null==zt.errors?null:zt.errors.invalid)&&Ye.enableBoltz),i.xp6(2),i.Q6J("ngModel",Ye.macaroonPath)("required",Ye.enableBoltz)("disabled",!Ye.enableBoltz),i.xp6(3),i.Q6J("ngIf",!Ye.macaroonPath&&Ye.enableBoltz)}},directives:[_.xw,_.yH,$.$V,B.BN,ke._Y,ke.JL,ke.F,_.Wh,$t.Rr,De.h,ke.JJ,ke.On,lt.KE,jt.Nt,ke.Fj,ke.Q7,lt.bx,Q.O5,lt.TO,Ae.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})();class Sr{constructor(Qe){this.help=Qe}}var cr=p(1125);function ma(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"mat-panel-description",9),i._UZ(5,"span",10),i.TgZ(6,"a",11),i._uU(7),i.qZA()()()),2&ve){const K=i.oxw().$implicit,Ye=i.oxw();i.xp6(3),i.Oqu(K.help.question),i.xp6(2),i.Q6J("innerHTML",K.help.answer,i.oJD),i.xp6(1),i.Q6J("routerLink",Ye.flgLoggedIn?Ye.LNPLink+K.help.link:"/login"),i.xp6(1),i.Oqu(Ye.flgLoggedIn?K.help.linkCaption:"Login to go to the page")}}function jr(ve,Qe){if(1&ve&&(i.TgZ(0,"div",6),i.YNc(1,ma,8,4,"mat-expansion-panel",7),i.qZA()),2&ve){const K=Qe.$implicit,Ye=i.oxw();i.xp6(1),i.Q6J("ngIf","ALL"===K.help.lnImplementation||K.help.lnImplementation===Ye.selNode.lnImplementation)}}let Dr=(()=>{class ve{constructor(K,Ye){this.store=K,this.sessionService=Ye,this.helpTopics=[],this.faQuestion=C.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],this.helpTopics.push(new Sr({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Sr({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Sr({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new Sr({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{var Ye;switch(this.selNode=K,null===(Ye=this.selNode.lnImplementation)||void 0===Ye?void 0:Ye.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.flgLoggedIn=!!K.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(y.yh),i.Y36(we.m))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span",3),i._uU(4,"Help"),i.qZA()(),i.TgZ(5,"div",4)(6,"div",0),i.YNc(7,jr,2,1,"div",5),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",Ye.faQuestion),i.xp6(5),i.Q6J("ngForOf",Ye.helpTopics))},directives:[_.xw,_.yH,_.Wh,B.BN,Q.sg,Q.O5,cr.ib,cr.yz,cr.yK,cr.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),ve})();var Nr=p(9841);function Ur(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}let gr=(()=>{class ve{constructor(K,Ye){this.dialogRef=K,this.store=Ye,this.faUserClock=C.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,ze.M6)({payload:{twoFAToken:this.token}}))}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(Le.so),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Two Factor Token"),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return Ye.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"form",7,8),i.NdJ("ngSubmit",function(){return Ye.onVerifyToken()}),i.TgZ(11,"mat-form-field")(12,"input",9),i.NdJ("ngModelChange",function(Ce){return Ye.token=Ce}),i.qZA(),i.YNc(13,Ur,2,0,"mat-error",10),i.qZA(),i.TgZ(14,"div",11)(15,"button",12),i._uU(16,"Verify Token"),i.qZA()()()()()()),2&K&&(i.xp6(12),i.Q6J("ngModel",Ye.token),i.xp6(1),i.Q6J("ngIf",!Ye.token))},directives:[_.xw,_.Wh,_.yH,R.dk,Ae.lW,R.dn,ke._Y,ke.JL,ke.F,lt.KE,jt.Nt,ke.Fj,De.h,ke.Q7,ke.JJ,ke.On,Q.O5,lt.TO],styles:[""]}),ve})();var Cr=p(5245);function ra(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function ca(ve,Qe){if(1&ve&&(i.TgZ(0,"p",21)(1,"mat-icon",22),i._uU(2,"close"),i.qZA(),i._uU(3),i.qZA()),2&ve){const K=i.oxw();i.xp6(3),i.hij(" ",K.loginErrorMessage," ")}}const da=function(ve){return{"padding-gap-large":ve}},qn=function(ve,Qe){return{"font-size-200":ve,"font-size-300":Qe}};let ga=(()=>{class ve{constructor(K,Ye,zt,Ce){this.logger=K,this.store=Ye,this.rtlEffects=zt,this.commonService=Ce,this.faUnlockAlt=C.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=ne.cu,this.loginErrorMessage="",this.apiCallStatusEnum=ne.Bn,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Nr.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([K,Ye])=>{this.loginErrorMessage="",K.status===ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof K.message?JSON.stringify(K.message):K.message),this.logger.error(K.message)),Ye.status===ne.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Ye.message?JSON.stringify(Ye.message):Ye.message),this.logger.error(Ye.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.appConfig=K,this.logger.info(K)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,ze.qR)({payload:{maxWidth:"35rem",data:{component:gr}}})),this.rtlEffects.closeAlert.pipe((0,ye.q)(1)).subscribe(K=>{K&&this.store.dispatch((0,ze.x4)({payload:{password:pe(this.password),defaultPassword:ne.kO.includes(this.password.toLowerCase()),twoFAToken:K.twoFAToken}}))})):this.store.dispatch((0,ze.x4)({payload:{password:pe(this.password),defaultPassword:ne.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(ht.V),i.Y36(Nt.v))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),i._UZ(5,"img",5),i.qZA(),i.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),i._uU(10,"Welcome"),i.qZA()()(),i.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),i.NdJ("ngModelChange",function(Ce){return Ye.password=Ce}),i.qZA(),i.TgZ(16,"mat-icon",15),i.NdJ("click",function(){return Ye.flgShow=!Ye.flgShow}),i._uU(17),i.qZA(),i.YNc(18,ra,2,0,"mat-error",16),i.qZA(),i.YNc(19,ca,4,1,"p",17),i.TgZ(20,"div",18)(21,"button",19),i.NdJ("click",function(){return Ye.resetData()}),i._uU(22,"Clear"),i.qZA(),i.TgZ(23,"button",20),i.NdJ("click",function(){return Ye.onLogin()}),i._uU(24,"Login"),i.qZA()()()()()()()()()),2&K&&(i.xp6(6),i.Q6J("ngClass",i.VKq(7,da,Ye.screenSize===Ye.screenSizeEnum.XS)),i.xp6(2),i.Q6J("ngClass",i.WLB(9,qn,Ye.screenSize===Ye.screenSizeEnum.XS,Ye.screenSize!==Ye.screenSizeEnum.XS)),i.xp6(7),i.Q6J("type",Ye.flgShow?"text":"password")("ngModel",Ye.password),i.xp6(2),i.Oqu(Ye.flgShow?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",!Ye.password),i.xp6(1),i.Q6J("ngIf",""!==Ye.loginErrorMessage))},directives:[_.xw,_.yH,_.Wh,R.a8,Q.mk,Ri.oO,R.dk,R.n5,R.dn,ke._Y,ke.JL,ke.F,lt.KE,jt.Nt,ke.Fj,De.h,ke.Q7,ke.JJ,ke.On,Cr.Hw,lt.R9,Q.O5,lt.TO,Ae.lW],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),ve})();var Ma=p(9442);let $n=(()=>{class ve{constructor(K,Ye){this.activatedRoute=K,this.router=Ye,this.error={errorCode:"",errorMessage:""},this.faTimes=C.NBC,this.unsubs=[new D.x,new D.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(K=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(I.gz),i.Y36(I.F0))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6),i.qZA()()(),i.TgZ(7,"mat-card-content",6)(8,"div",7),i._uU(9),i.qZA(),i.TgZ(10,"span",8)(11,"button",9),i.NdJ("click",function(){return Ye.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()),2&K&&(i.xp6(4),i.Q6J("icon",Ye.faTimes),i.xp6(2),i.hij("Error ",Ye.error.errorCode,""),i.xp6(3),i.Oqu(Ye.error.errorMessage))},directives:[_.xw,_.yH,_.Wh,R.a8,R.dk,R.n5,B.BN,R.dn,Ae.lW],encapsulation:2}),ve})();var Jn=p(1643),Hr=p(9828),xr=p(8104),Fr=p(6534),ha=p(9843);function Aa(ve,Qe){1&ve&&i._UZ(0,"span",16)}function Wn(ve,Qe){1&ve&&i._UZ(0,"span",17)}function Ze(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"form",18,4)(2,"div",19),i._UZ(3,"fa-icon",2),i.TgZ(4,"span"),i._uU(5,"Please ensure that "),i.TgZ(6,"strong"),i._uU(7,"experimental-offers"),i.qZA(),i._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(9,"strong")(10,"a",20),i._uU(11,"here"),i.qZA()(),i._uU(12," to learn more about Core Lightning offers."),i.qZA()(),i.TgZ(13,"h4",21),i._uU(14,"Description"),i.qZA(),i.TgZ(15,"span"),i._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),i.qZA(),i.TgZ(17,"h4",21),i._uU(18,"Links"),i.qZA(),i.TgZ(19,"span")(20,"a",22),i._uU(21,"Core lightning Bolt12"),i.qZA()(),i._UZ(22,"mat-divider",23),i.TgZ(23,"div",24),i._UZ(24,"fa-icon",2),i.TgZ(25,"span"),i._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),i.qZA()(),i.TgZ(27,"mat-slide-toggle",25),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(2).enableOffers=zt})("change",function(){return i.CHM(K),i.oxw(2).onUpdateFeature()}),i._uU(28),i.qZA()()}if(2&ve){const K=i.oxw(2);i.xp6(3),i.Q6J("icon",K.faInfoCircle),i.xp6(19),i.Q6J("inset",!0),i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(3),i.Q6J("ngModel",K.enableOffers),i.xp6(1),i.hij("Enable Offers ",K.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Mt(ve,Qe){if(1&ve&&(i.TgZ(0,"div")(1,"div",28),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"experimental-dual-fund"),i.qZA(),i._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(8,"strong")(9,"a",29),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about Core Lightning Liquidity Ads."),i.qZA()()()),2&ve){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function je(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-option",47),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&ve){const K=Qe.$implicit;i.Q6J("value",K),i.xp6(1),i.hij(" ",i.lcZ(2,2,K.id)," ")}}function Ot(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&ve){const K=i.oxw(4);i.xp6(1),i.hij("",K.selPolicyType.placeholder," is required.")}}function ri(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&ve){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be greater than or equal to ",K.selPolicyType.min,".")}}function Si(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&ve){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be less than or equal to ",K.selPolicyType.max,".")}}function Ii(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base fee is required."),i.qZA())}function nn(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base basis is required."),i.qZA())}function Yn(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing base fee is required."),i.qZA())}function Fn(ve,Qe){1&ve&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing fee rate is required."),i.qZA())}const Tt=function(ve,Qe){return{"alert-danger":ve,"alert-info":Qe}};function ci(ve,Qe){if(1&ve&&(i.TgZ(0,"h4",48)(1,"span",49),i._uU(2),i.qZA()()),2&ve){const K=i.oxw(4);i.xp6(1),i.Q6J("ngClass",i.WLB(2,Tt,!!K.updateMsg.error,!!K.updateMsg.data)),i.xp6(1),i.hij(" ",K.updateMsg.error&&""!==K.updateMsg.error?"Error: "+K.updateMsg.error||0:K.updateMsg.data&&""!==K.updateMsg.data?K.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function Ct(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"div",30)(1,"div",31),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),i.qZA()(),i.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).selPolicyType=zt})("selectionChange",function(){return i.CHM(K),i.oxw(3).policyMod=null}),i.YNc(8,je,3,4,"mat-option",35),i.qZA()(),i.TgZ(9,"mat-form-field",36)(10,"input",37,38),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).policyMod=zt}),i.qZA(),i.TgZ(12,"mat-hint"),i._uU(13),i.qZA(),i.YNc(14,Ot,2,1,"mat-error",26),i.YNc(15,ri,2,2,"mat-error",26),i.YNc(16,Si,2,2,"mat-error",26),i.qZA()(),i.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).leaseFeeBaseSat=zt}),i.qZA(),i.YNc(20,Ii,2,0,"mat-error",26),i.qZA(),i.TgZ(21,"mat-form-field",36)(22,"input",40),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).leaseFeeBasis=zt}),i.qZA(),i.YNc(23,nn,2,0,"mat-error",26),i.qZA()(),i.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).channelFeeMaxBaseSat=zt}),i.qZA(),i.YNc(27,Yn,2,0,"mat-error",26),i.qZA(),i.TgZ(28,"mat-form-field",36)(29,"input",42),i.NdJ("ngModelChange",function(zt){return i.CHM(K),i.oxw(3).channelFeeMaxProportional=zt}),i.qZA(),i.YNc(30,Fn,2,0,"mat-error",26),i.qZA()(),i.YNc(31,ci,3,5,"h4",43),i.TgZ(32,"div",44)(33,"button",45),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onResetPolicy()}),i._uU(34,"Reset"),i.qZA(),i.TgZ(35,"button",46),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onUpdateFundingPolicy()}),i._uU(36,"Update"),i.qZA()()()}if(2&ve){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(5),i.Q6J("ngModel",K.selPolicyType),i.xp6(1),i.Q6J("ngForOf",K.policyTypes),i.xp6(2),i.Q6J("ngModel",K.policyMod)("placeholder",K.selPolicyType.placeholder)("step","fixed"===K.selPolicyType.id?1e3:10)("min",K.selPolicyType.min)("max",K.selPolicyType.max),i.xp6(3),i.lnq("",K.selPolicyType.placeholder," should be between ",K.selPolicyType.min," and ",K.selPolicyType.max,""),i.xp6(1),i.Q6J("ngIf",!K.policyMod),i.xp6(1),i.Q6J("ngIf",K.policyModK.selPolicyType.max),i.xp6(3),i.Q6J("ngModel",K.leaseFeeBaseSat),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBaseSat),i.xp6(2),i.Q6J("ngModel",K.leaseFeeBasis),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBasis),i.xp6(3),i.Q6J("ngModel",K.channelFeeMaxBaseSat),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxBaseSat),i.xp6(2),i.Q6J("ngModel",K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",K.flgUpdateCalled)}}function Wt(ve,Qe){if(1&ve&&(i.TgZ(0,"form",18,4),i.YNc(2,Mt,12,1,"div",26),i.YNc(3,Ct,37,23,"div",27),i.qZA()),2&ve){const K=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!K.features[1].enabled),i.xp6(1),i.Q6J("ngIf",K.features[1].enabled)}}function ki(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-expansion-panel",9),i.NdJ("opened",function(){const Ce=i.CHM(K).index;return i.oxw().onPanelExpanded(Ce)}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),i._uU(4),i.qZA(),i.TgZ(5,"h4",11),i.YNc(6,Aa,1,0,"span",12),i.YNc(7,Wn,1,0,"span",13),i._uU(8),i.qZA()()(),i.TgZ(9,"div",14),i.YNc(10,Ze,29,5,"form",15),i.YNc(11,Wt,4,2,"form",15),i.qZA()()}if(2&ve){const K=Qe.$implicit,Ye=Qe.index;i.Q6J("expanded",!1),i.xp6(4),i.Oqu(K.name),i.xp6(2),i.Q6J("ngIf",K.enabled),i.xp6(1),i.Q6J("ngIf",!K.enabled),i.xp6(1),i.hij(" ",K.enabled?"Enabled":"Disabled"," "),i.xp6(2),i.Q6J("ngIf",0===Ye),i.xp6(1),i.Q6J("ngIf",1===Ye)}}let Ge=(()=>{class ve{constructor(K,Ye,zt,Ce){this.logger=K,this.store=Ye,this.dataService=zt,this.commonService=Ce,this.faInfoCircle=C.sqG,this.faExclamationTriangle=C.eHv,this.faCode=C.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=ne.gB,this.selPolicyType=ne.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:K=>{this.logger.info("Received List Configs: "+JSON.stringify(K)),this.features[1].enabled=!!K["experimental-dual-fund"]},error:K=>{this.logger.error("List Configs Error: "+JSON.stringify(K)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Hr.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.policyTypes[2].max=K.balance.totalBalance||1e3})}onPanelExpanded(K){1===K&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(Ye=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(Ye)),this.fundingPolicy=Ye,this.fundingPolicy.policy&&(this.selPolicyType=ne.gB.find(zt=>zt.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,ze.jS)({payload:{uiMessage:ne.m6.UPDATE_SETTING,service:ne.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,x.R)(this.unSubs[4])).subscribe({next:K=>{this.logger.info(K),this.fundingPolicy=K,this.updateMsg={data:"Compact Lease: "+K.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:K=>{this.logger.error(K),this.updateMsg={error:this.commonService.extractErrorMessage(K,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?ne.gB.find(K=>K.id===this.fundingPolicy.policy)||this.policyTypes[0]:ne.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(xr.D),i.Y36(Nt.v))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),i.qZA()(),i.TgZ(5,"form",3,4)(7,"div",5),i._UZ(8,"fa-icon",6),i.TgZ(9,"span",7),i._uU(10,"Features"),i.qZA()(),i.TgZ(11,"mat-accordion"),i.YNc(12,ki,12,7,"mat-expansion-panel",8),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",Ye.faInfoCircle),i.xp6(6),i.Q6J("icon",Ye.faCode),i.xp6(4),i.Q6J("ngForOf",Ye.features))},directives:[_.xw,_.yH,$.$V,B.BN,ke._Y,ke.JL,ke.F,_.Wh,cr.pp,Q.sg,cr.ib,cr.yz,cr.yK,Q.O5,Fe.d,$t.Rr,De.h,ke.JJ,ke.On,lt.KE,W.gD,he.ey,jt.Nt,ke.wV,ke.qQ,ke.Fd,ke.Fj,Fr.q,ha.F,ke.Q7,lt.bx,lt.TO,Q.mk,Ri.oO,Ae.lW],pipes:[Q.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})();const wt=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(508),p.e(515)]).then(p.bind(p,1515)).then(ve=>ve.LNDModule),canActivate:[Jn.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(508),p.e(706)]).then(p.bind(p,5706)).then(ve=>ve.CLNModule),canActivate:[Jn.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(508),p.e(258)]).then(p.bind(p,7258)).then(ve=>ve.ECLModule),canActivate:[Jn.a1]},{path:"settings",component:Ee,canActivate:[Jn.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ie,canActivate:[Jn.a1]},{path:"auth",component:qt,canActivate:[Jn.a1]},{path:"bconfig",component:Ft,canActivate:[Jn.a1]}]},{path:"config",component:$e,canActivate:[Jn.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:ji,canActivate:[Jn.a1]},{path:"services",component:Pr,canActivate:[Jn.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ta,canActivate:[Jn.a1]},{path:"boltz",component:Jr,canActivate:[Jn.a1]},{path:"peerswap",component:(()=>{class ve{constructor(K,Ye){this.logger=K,this.store=Ye,this.faInfoCircle=C.sqG,this.enablePeerswap=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enablePeerswap=!!(null==K?void 0:K.settings.enablePeerswap),this.logger.info(K)})}onUpdateService(){this.store.dispatch((0,ze.jS)({payload:{uiMessage:ne.m6.UPDATE_PEERSWAP_SETTINGS,service:ne.JX.PEERSWAP,settings:{enablePeerswap:this.enablePeerswap}}})),this.store.dispatch((0,qe.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,bi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Zt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(y.yh))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-peerswap-service-settings"]],decls:20,vars:2,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.peerswap.dev/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","peerswap",1,"mb-1",3,"ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"peerswap"),i.qZA(),i._uU(7," plugin is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about peerswap."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return Ye.enablePeerswap=Ce}),i._uU(16,"Enable Peerswap Service"),i.qZA()()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return Ye.onUpdateService()}),i._uU(19,"Update"),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",Ye.faInfoCircle),i.xp6(13),i.Q6J("ngModel",Ye.enablePeerswap))},directives:[_.xw,_.yH,$.$V,B.BN,ke._Y,ke.JL,ke.F,_.Wh,$t.Rr,De.h,ke.JJ,ke.On,Ae.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),ve})(),canActivate:[Jn.a1]}]},{path:"experimental",component:Ge,canActivate:[Jn.a1]},{path:"lnconfig",component:pn,canActivate:[Jn.a1]}]},{path:"help",component:Dr},{path:"login",component:ga},{path:"error",component:$n},{path:"**",component:Ma.w}]);var Ei=p(8750),Bi=p(8878),Rn=p(4594),sr=p(7238),Ca=p(2340),qr=p(2181);function $a(ve,Qe){if(1&ve&&(i.TgZ(0,"p",2),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3),i.qZA()()),2&ve){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faCode),i.xp6(2),i.hij("API Version: ",null==K.information?null:K.information.api_version,"")}}function Hi(ve,Qe){if(1&ve&&(i.TgZ(0,"a",11),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",12),i._uU(3,"Settings"),i.qZA()()),2&ve){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faUserCog)}}function Vn(ve,Qe){if(1&ve&&(i.TgZ(0,"a",13),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",14),i._uU(3,"Help"),i.qZA()()),2&ve){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faLifeRing)}}function ms(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"a",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onClick()}),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3,"Logout"),i.qZA()()}if(2&ve){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faEject)}}let _r=(()=>{class ve{constructor(K,Ye,zt,Ce,ge){this.logger=K,this.sessionService=Ye,this.store=zt,this.rtlEffects=Ce,this.actions=ge,this.faUserCog=C.gNZ,this.faCodeBranch=C.mh3,this.faCode=C.dT$,this.faCog=C.b7W,this.faLifeRing=C.uli,this.faEject=C.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],this.version=Ca.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{if(this.information=K,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ye=this.information.chains[0];this.informationChain.chain=Ye.chain,this.informationChain.network=Ye.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(K)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.showLogout=!!K.token,this.flgLoading=!!K.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,le.h)(K=>K.type===ne.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,ze.c1)({payload:{data:{type:ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{K&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(we.m),i.Y36(y.yh),i.Y36(ht.V),i.Y36(h.eX))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(K,Ye){if(1&K&&(i.TgZ(0,"mat-menu",0,1)(2,"p",2),i._UZ(3,"fa-icon",3),i.TgZ(4,"span"),i._uU(5),i.qZA()(),i.YNc(6,$a,4,2,"p",4),i.YNc(7,Hi,4,1,"a",5),i.YNc(8,Vn,4,1,"a",6),i.YNc(9,ms,4,1,"a",7),i.qZA(),i.TgZ(10,"button",8),i._UZ(11,"img",9),i.TgZ(12,"mat-icon",10),i._uU(13,"arrow_drop_down"),i.qZA()()),2&K){const zt=i.MAs(1);i.Q6J("overlapTrigger",!1),i.xp6(3),i.Q6J("icon",Ye.faCodeBranch),i.xp6(2),i.hij("Version: ",Ye.version,""),i.xp6(1),i.Q6J("ngIf",null==Ye.information?null:Ye.information.api_version),i.xp6(1),i.Q6J("ngIf",Ye.showLogout),i.xp6(1),i.Q6J("ngIf",Ye.showLogout),i.xp6(1),i.Q6J("ngIf",Ye.showLogout),i.xp6(1),i.Q6J("matMenuTriggerFor",zt)}},directives:[qr.VK,qr.OP,B.BN,Q.O5,I.yS,I.rH,Ae.lW,qr.p6,Cr.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),ve})();var ss=p(2638),Da=p(8258),dr=p(149);const Ia={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:C.HLz,link:"/lnd/home",userPersona:ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:C.nNP,link:"/lnd/onchain",userPersona:ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:C.BDt,link:"/lnd/connections",userPersona:ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:C.FVb,link:"/lnd/connections",userPersona:ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:C.Ssp,link:"/lnd/transactions",userPersona:ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:C.SuH,link:"/lnd/routing",userPersona:ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:C.koM,link:"/lnd/reports",userPersona:ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:C.wn1,link:"/lnd/graph",userPersona:ne.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:C.hkK,link:"/lnd/messages",userPersona:ne.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:C.q7m,link:"/lnd/channelbackup",userPersona:ne.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:C.TmZ,link:"/lnd/network",userPersona:ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:C.xf3,link:"/lnd/network",userPersona:ne.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:C.Krp,link:"/lnd/services/loop",userPersona:ne.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:C.vqe,link:"/lnd/services/loop",userPersona:ne.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/lnd/services/boltz",userPersona:ne.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:C.CgH,link:"/config",userPersona:ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:C.Psp,link:"/help",userPersona:ne.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:C.HLz,link:"/cln/home",userPersona:ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:C.nNP,link:"/cln/onchain",userPersona:ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:C.BDt,link:"/cln/connections",userPersona:ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:C.FVb,link:"/cln/connections",userPersona:ne.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:C.Acd,link:"/cln/liquidityads",userPersona:ne.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:C.Ssp,link:"/cln/transactions",userPersona:ne.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:C.SuH,link:"/cln/routing",userPersona:ne.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:C.koM,link:"/cln/reports",userPersona:ne.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:C.wn1,link:"/cln/graph",userPersona:ne.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:C.hkK,link:"/cln/messages",userPersona:ne.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:C.USL,link:"/cln/rates",userPersona:ne.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:C.xf3,link:"/cln/rates",userPersona:ne.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:C.Krp,link:"/cln/services/peerswap",userPersona:ne.ol.ALL,children:[{id:41,parentId:4,name:"Peerswap",iconType:"FA",icon:C.yOe,link:"/cln/services/peerswap",userPersona:ne.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:C.CgH,link:"/config",userPersona:ne.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:C.Psp,link:"/help",userPersona:ne.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:C.HLz,link:"/ecl/home",userPersona:ne.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:C.nNP,link:"/ecl/onchain",userPersona:ne.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:C.BDt,link:"/ecl/connections",userPersona:ne.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:C.FVb,link:"/ecl/connections",userPersona:ne.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:C.Ssp,link:"/ecl/transactions",userPersona:ne.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:C.SuH,link:"/ecl/routing",userPersona:ne.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:C.koM,link:"/ecl/reports",userPersona:ne.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:C.wn1,link:"/ecl/graph",userPersona:ne.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:C.CgH,link:"/config",userPersona:ne.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:C.Psp,link:"/help",userPersona:ne.ol.ALL}]};function _s(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-option",11),i._uU(1),i.qZA()),2&ve){const K=Qe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function os(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-select",9),i.NdJ("selectionChange",function(zt){return i.CHM(K),i.oxw().onNodeSelectionChange(zt.value)}),i.YNc(1,_s,2,3,"mat-option",10),i.qZA()}if(2&ve){const K=i.oxw();i.Q6J("value",K.selConfigNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}function is(ve,Qe){if(1&ve&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&ve){const K=i.oxw().$implicit;i.oxw(2);const Ye=i.MAs(11);i.xp6(1),i.Q6J("ngTemplateOutlet","boltzIconBlock"===K.icon?Ye:null)}}function Vr(ve,Qe){if(1&ve&&i._UZ(0,"fa-icon",23),2&ve){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function Oa(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function gt(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-tree-node",15)(1,"div",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onChildNavClicked(Ce)}),i.TgZ(2,"div",17),i.YNc(3,is,2,1,"span",18),i.YNc(4,Vr,1,1,"fa-icon",19),i.YNc(5,Oa,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()()()()}if(2&ve){const K=Qe.$implicit;i.s9C("routerLink",K.link),i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function se(ve,Qe){if(1&ve&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function me(ve,Qe){if(1&ve&&i._UZ(0,"fa-icon",23),2&ve){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function We(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function xt(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),i.YNc(3,se,2,1,"span",28),i.YNc(4,me,1,1,"fa-icon",19),i.YNc(5,We,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()(),i.TgZ(8,"button",29)(9,"mat-icon",30),i._uU(10),i.qZA()()(),i.TgZ(11,"div",31),i.GkF(12,32),i.qZA()()),2&ve){const K=Qe.$implicit,Ye=i.oxw(2);i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name),i.xp6(1),i.uIk("aria-label","toggle "+K.name),i.xp6(2),i.Oqu(Ye.treeControlNested.isExpanded(K)?"arrow_drop_up":"arrow_drop_down"),i.xp6(1),i.ekj("tree-children-invisible",!Ye.treeControlNested.isExpanded(K))}}function Ht(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-tree",5,12),i.YNc(2,gt,8,5,"mat-tree-node",13),i.YNc(3,xt,13,8,"mat-nested-tree-node",14),i.qZA()),2&ve){const K=i.oxw();i.Q6J("dataSource",K.navMenus)("treeControl",K.treeControlNested),i.xp6(3),i.Q6J("matTreeNodeDefWhen",K.hasChild)}}function ii(ve,Qe){if(1&ve&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function ni(ve,Qe){if(1&ve&&i._UZ(0,"fa-icon",36),2&ve){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function Ci(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-icon",37),i._uU(1),i.qZA()),2&ve){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.xp6(1),i.Oqu(K.icon)}}function Pi(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().onShowData(Ce)}),i.YNc(1,ii,2,1,"span",18),i.YNc(2,ni,1,2,"fa-icon",34),i.YNc(3,Ci,2,2,"mat-icon",35),i.TgZ(4,"span"),i._uU(5),i.qZA()()}if(2&ve){const K=Qe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function en(ve,Qe){if(1&ve&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&ve){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function ln(ve,Qe){if(1&ve&&i._UZ(0,"fa-icon",36),2&ve){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function En(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onClick(Ce)}),i.YNc(1,en,2,1,"span",28),i.YNc(2,ln,1,2,"fa-icon",34),i.TgZ(3,"span"),i._uU(4),i.qZA()()}if(2&ve){const K=Qe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(2),i.Oqu(K.name)}}function kn(ve,Qe){if(1&ve&&(i.TgZ(0,"mat-tree",5),i.YNc(1,En,5,3,"mat-tree-node",6),i.qZA()),2&ve){const K=i.oxw();i.Q6J("dataSource",K.navMenusLogout)("treeControl",K.treeControlLogout)}}function vn(ve,Qe){1&ve&&(i.O4$(),i.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),i._UZ(3,"circle",41)(4,"path",42)(5,"path",43),i.qZA()()())}let Sn=(()=>{class ve{constructor(K,Ye,zt,Ce,ge,fe){this.logger=K,this.commonService=Ye,this.sessionService=zt,this.store=Ce,this.actions=ge,this.rtlEffects=fe,this.ChildNavClicked=new i.vpe,this.faEject=C.KOR,this.faEye=C.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:C.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:C.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=ne.ol,this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x,new D.x],this.treeControlNested=new Da.VY(Ue=>Ue.children),this.treeControlLogout=new Da.VY(Ue=>Ue.children),this.treeControlShowData=new Da.VY(Ue=>Ue.children),this.navMenus=new dr.WX,this.navMenusLogout=new dr.WX,this.navMenusShowData=new dr.WX,this.hasChild=(Ue,nt)=>!!nt.children&&nt.children.length>0,this.version=Ca.q4,Ia.LNDChildren&&200===Ia.LNDChildren[Ia.LNDChildren.length-1].id&&Ia.LNDChildren.pop(),this.navMenus.data=Ia.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const K=this.sessionService.getItem("token");this.showLogout=!!K,this.flgLoading=!!K,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(Ye=>{this.appConfig=Ye}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(Ye=>{var zt,Ce;if(this.information=Ye.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ge=this.information.chains[0];this.informationChain.chain=ge.chain,this.informationChain.network=ge.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=Ye.selNode,this.settings=(null===(zt=this.selNode)||void 0===zt?void 0:zt.settings)||null,this.selConfigNodeIndex=+((null===(Ce=Ye.selNode)||void 0===Ce?void 0:Ce.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Ye)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(Ye=>{this.showLogout=!!Ye.token,this.flgLoading=!!Ye.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,le.h)(Ye=>Ye.type===ne.pg.LOGOUT)).subscribe(Ye=>{this.showLogout=!1})}onClick(K){"Logout"===K.name&&(this.store.dispatch((0,ze.c1)({payload:{data:{type:ne.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(Ye=>{Ye&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})),this.ChildNavClicked.emit(K)}onChildNavClicked(K){this.ChildNavClicked.emit(K)}filterSideMenuNodes(){var K,Ye;switch(null===(Ye=null===(K=this.selNode)||void 0===K?void 0:K.lnImplementation)||void 0===Ye?void 0:Ye.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.LNDChildren)),this.navMenus.data=null==K?void 0:K.filter(Ye=>{var zt,Ce;return Ye.children&&Ye.children.length?(Ye.children=null===(zt=Ye.children)||void 0===zt?void 0:zt.filter(ge=>{var fe,Ue,nt;return(ge.userPersona===ne.ol.ALL||ge.userPersona===(null===(fe=this.settings)||void 0===fe?void 0:fe.userPersona))&&"/lnd/services/loop"!==ge.link&&"/lnd/services/boltz"!==ge.link||"/lnd/services/loop"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/lnd/services/boltz"===ge.link&&(null===(nt=this.settings)||void 0===nt?void 0:nt.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),Ye.children.length>0):Ye.userPersona===ne.ol.ALL||Ye.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadCLNMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.CLNChildren)),this.navMenus.data=null==K?void 0:K.filter(Ye=>{var zt,Ce;return Ye.children&&Ye.children.length?(Ye.children=null===(zt=Ye.children)||void 0===zt?void 0:zt.filter(ge=>{var fe,Ue;return(ge.userPersona===ne.ol.ALL||ge.userPersona===(null===(fe=this.settings)||void 0===fe?void 0:fe.userPersona))&&"/cln/services/peerswap"!==ge.link||"/cln/services/peerswap"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.enablePeerswap)}),Ye.children.length>0):Ye.userPersona===ne.ol.ALL||Ye.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ia.ECLChildren))}onShowData(K){this.store.dispatch((0,ze.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(K){const Ye=this.selConfigNodeIndex;this.selConfigNodeIndex=K;const zt=this.appConfig.nodes.find(Ce=>+Ce.index===K);this.store.dispatch((0,ze.fk)({payload:{uiMessage:ne.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Ye,currentLnNode:zt||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(we.m),i.Y36(y.yh),i.Y36(h.eX),i.Y36(ht.V))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-side-navigation"]],viewQuery:function(K,Ye){if(1&K&&i.Gf(dr.gi,5),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.tree=zt.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,os,2,2,"mat-select",2),i._UZ(3,"mat-divider",3),i.YNc(4,Ht,4,3,"mat-tree",4),i._UZ(5,"mat-divider",3),i.TgZ(6,"mat-tree",5),i.YNc(7,Pi,6,4,"mat-tree-node",6),i.qZA()(),i.TgZ(8,"div",7),i.YNc(9,kn,2,2,"mat-tree",4),i.qZA()(),i.YNc(10,vn,6,0,"ng-template",null,8,i.W1O)),2&K&&(i.xp6(2),i.Q6J("ngIf",Ye.appConfig.nodes.length>1),i.xp6(2),i.Q6J("ngIf",null==Ye.settings?null:Ye.settings.lnServerUrl),i.xp6(2),i.Q6J("dataSource",Ye.navMenusShowData)("treeControl",Ye.treeControlShowData),i.xp6(3),i.Q6J("ngIf",Ye.showLogout))},directives:[_.xw,_.yH,_.Wh,$.$V,Q.O5,W.gD,Q.sg,he.ey,Fe.d,dr.gi,dr.fQ,dr.uo,dr.eu,I.Od,I.rH,Q.tP,B.BN,Cr.Hw,dr.GZ,Ae.lW,dr.Ar,sr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),ve})();var Qn=p(773);const Mr=["sideNavigation"],hr=["sideNavContent"];function Zr(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"button",13),i.NdJ("click",function(){return i.CHM(K),i.oxw().sideNavToggle()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&ve){const K=i.oxw();i.Q6J("matTooltip",K.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",K.smallScreen)}}function Gr(ve,Qe){1&ve&&(i.O4$(),i._UZ(0,"path",18))}function ur(ve,Qe){1&ve&&(i.O4$(),i._UZ(0,"path",19))}function zr(ve,Qe){if(1&ve){const K=i.EpF();i.TgZ(0,"button",14),i.NdJ("click",function(){i.CHM(K);const zt=i.oxw();return zt.flgSidenavPinned=!zt.flgSidenavPinned}),i.O4$(),i.TgZ(1,"svg",15),i.YNc(2,Gr,1,0,"path",16),i.YNc(3,ur,1,0,"path",17),i.qZA()()}if(2&ve){const K=i.oxw();i.Q6J("matTooltip",K.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.xp6(2),i.Q6J("ngIf",!K.flgSidenavPinned),i.xp6(1),i.Q6J("ngIf",K.flgSidenavPinned)}}function zn(ve,Qe){if(1&ve&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&ve){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"RTL - "+K.information.alias:"RTL")}}function fr(ve,Qe){if(1&ve&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&ve){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"Ride The Lightning - "+K.information.alias:"Ride The Lightning")}}function ka(ve,Qe){1&ve&&(i.TgZ(0,"div",20),i._UZ(1,"mat-spinner",21),i.TgZ(2,"h4"),i._uU(3,"Loading RTL..."),i.qZA()())}const tt=function(ve,Qe){return[ve,Qe]};let Et=(()=>{class ve{constructor(K,Ye,zt,Ce,ge,fe,Ue,nt,Dt){this.logger=K,this.commonService=Ye,this.store=zt,this.actions=Ce,this.userIdle=ge,this.router=fe,this.sessionService=Ue,this.breakpointObserver=nt,this.renderer=Dt,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.router.events.subscribe(K=>{K instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([a.u3.XSmall,a.u3.TabletPortrait,a.u3.Small,a.u3.Medium,a.u3.Large,a.u3.XLarge]).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{K.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(ne.cu.XS),this.smallScreen=!0):K.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(ne.cu.SM),this.smallScreen=!0):K.breakpoints[a.u3.Small]||K.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(ne.cu.MD),this.smallScreen=!1):K.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(ne.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(ne.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,ze.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.settings=K.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.appConfig=K}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{this.information=K,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,x.R)(this.unSubs[4]),(0,le.h)(K=>K.type===ne.pg.SET_RTL_CONFIG||K.type===ne.pg.LOGIN||K.type===ne.pg.LOGOUT)).subscribe(K=>{K.type===ne.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+K.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,ze.x4)({payload:{password:pe(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),K.type===ne.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),K.type===ne.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(K=>{this.logger.info("Counting Down: "+(11-K))}),this.userIdle.onTimeout().pipe((0,x.R)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,ze.ts)()),this.store.dispatch((0,ze.qR)({payload:{data:{type:ne.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,ze.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const K=window.location.href;return K.includes("access-key=")?K.substring(K.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(K){this.smallScreen&&this.sideNavigation.close()}copiedText(K){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+K)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return ve.\u0275fac=function(K){return new(K||ve)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh),i.Y36(h.eX),i.Y36(g),i.Y36(I.F0),i.Y36(we.m),i.Y36(a.Yg),i.Y36(i.Qsj))},ve.\u0275cmp=i.Xpm({type:ve,selectors:[["rtl-app"]],viewQuery:function(K,Ye){if(1&K&&(i.Gf(Mr,5),i.Gf(hr,5)),2&K){let zt;i.iGM(zt=i.CRH())&&(Ye.sideNavigation=zt.first),i.iGM(zt=i.CRH())&&(Ye.sideNavContent=zt.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(K,Ye){1&K&&(i.TgZ(0,"div",0),i.ALo(1,"lowercase"),i.ALo(2,"lowercase"),i.TgZ(3,"mat-toolbar",1)(4,"div"),i.YNc(5,Zr,3,2,"button",2),i.YNc(6,zr,4,3,"button",3),i.qZA(),i.TgZ(7,"div"),i.YNc(8,zn,2,1,"span",4),i.YNc(9,fr,2,1,"span",4),i.qZA(),i.TgZ(10,"div"),i._UZ(11,"rtl-top-menu"),i.qZA()(),i.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),i.NdJ("ChildNavClicked",function(Ce){return Ye.onNavigationClicked(Ce)}),i.qZA()(),i.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),i._UZ(19,"router-outlet",null,11),i.qZA()(),i._uU(21,"> "),i.qZA(),i.YNc(22,ka,4,0,"div",12),i.qZA()),2&K&&(i.Q6J("ngClass",i.WLB(12,tt,i.lcZ(1,8,Ye.settings.themeColor),i.lcZ(2,10,Ye.settings.themeMode))),i.xp6(5),i.Q6J("ngIf",Ye.flgLoggedIn),i.xp6(1),i.Q6J("ngIf",!Ye.smallScreen&&Ye.flgLoggedIn),i.xp6(2),i.Q6J("ngIf",Ye.smallScreen),i.xp6(1),i.Q6J("ngIf",!Ye.smallScreen),i.xp6(4),i.Q6J("opened",Ye.flgSideNavOpened&&Ye.flgLoggedIn)("mode",Ye.flgSidenavPinned&&!Ye.smallScreen?"side":"over"),i.xp6(9),i.Q6J("ngIf",!Ye.settings.themeColor))},directives:[_.xw,Q.mk,Ri.oO,Rn.Ye,_.Wh,Q.O5,Ae.lW,sr.gM,Cr.Hw,_r,ss.TM,ss.JX,$.$V,Sn,_.yH,ss.Rh,I.lC,Qn.Ou],pipes:[Q.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Bi.g]}}),ve})(),Lt=(()=>{class ve{constructor(K){this.sessionService=K}intercept(K,Ye){if(this.sessionService.getItem("token")){const zt=K.clone({headers:K.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Ye.handle(zt)}return Ye.handle(K)}}return ve.\u0275fac=function(K){return new(K||ve)(i.LFG(we.m))},ve.\u0275prov=i.Yz7({token:ve,factory:ve.\u0275fac}),ve})();var Pt=p(9107),Jt=p(7998),gi=p(2218),ti=p(711),fi=p(4947),Mi=p(3289);const Ki={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},$i={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},sn={apiURL:"",apisCallStatus:{Login:{status:ne.Bn.UN_INITIATED},IsAuthorized:{status:ne.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Ki,authentication:$i,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Ki,authentication:$i}]},nodeData:{}},bn=(0,y.Lq)(sn,(0,y.on)(ze.qi,(ve,{payload:Qe})=>{const K=JSON.parse(JSON.stringify(ve.apisCallStatus));return Qe.action&&(K[Qe.action]={status:Qe.status,statusCode:Qe.statusCode,message:Qe.message,URL:Qe.URL,filePath:Qe.filePath}),Object.assign(Object.assign({},ve),{apisCallStatus:K})}),(0,y.on)(ze.vI,(ve,{payload:Qe})=>Object.assign(Object.assign({},sn),{apisCallStatus:ve.apisCallStatus,appConfig:ve.appConfig,selNode:Qe})),(0,y.on)(ze.fk,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{selNode:Qe.currentLnNode})),(0,y.on)(ze.Tm,(ve,{payload:Qe})=>{const K=JSON.parse(JSON.stringify(ve.selNode));switch(Qe.service){case ne.JX.BOLTZ:K.settings.boltzServerUrl=Qe.settings.boltzServerUrl;break;case ne.JX.LOOP:K.settings.swapServerUrl=Qe.settings.swapServerUrl;break;case ne.JX.OFFERS:K.settings.enableOffers=Qe.settings.enableOffers;break;case ne.JX.PEERSWAP:K.settings.enablePeerswap=Qe.settings.enablePeerswap}return Object.assign(Object.assign({},ve),{selNode:K})}),(0,y.on)(ze._V,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{nodeData:Qe})),(0,y.on)(ze.XT,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{appConfig:Qe}))),jn={apisCallStatus:{FetchInfo:{status:ne.Bn.UN_INITIATED},FetchFees:{status:ne.Bn.UN_INITIATED},FetchPeers:{status:ne.Bn.UN_INITIATED},FetchClosedChannels:{status:ne.Bn.UN_INITIATED},FetchPendingChannels:{status:ne.Bn.UN_INITIATED},FetchAllChannels:{status:ne.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:ne.Bn.UN_INITIATED},FetchInvoices:{status:ne.Bn.UN_INITIATED},FetchPayments:{status:ne.Bn.UN_INITIATED},FetchForwardingHistory:{status:ne.Bn.UN_INITIATED},FetchUTXOs:{status:ne.Bn.UN_INITIATED},FetchTransactions:{status:ne.Bn.UN_INITIATED},FetchLightningTransactions:{status:ne.Bn.UN_INITIATED},FetchNetwork:{status:ne.Bn.UN_INITIATED}},nodeSettings:{userPersona:ne.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let In=!1,Kr=!1;const _a=(0,y.Lq)(jn,(0,y.on)(qe.PC,(ve,{payload:Qe})=>{const K=JSON.parse(JSON.stringify(ve.apisCallStatus));return Qe.action&&(K[Qe.action]={status:Qe.status,statusCode:Qe.statusCode,message:Qe.message,URL:Qe.URL,filePath:Qe.filePath}),Object.assign(Object.assign({},ve),{apisCallStatus:K})}),(0,y.on)(qe.JT,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{nodeSettings:Qe})),(0,y.on)(qe.Ll,(ve,{payload:Qe})=>Object.assign(Object.assign({},jn),{nodeSettings:Qe})),(0,y.on)(qe.CX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{information:Qe})),(0,y.on)(qe.Z8,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{peers:Qe})),(0,y.on)(qe.EK,(ve,{payload:Qe})=>{const K=[...ve.peers],Ye=ve.peers.findIndex(zt=>zt.pub_key===Qe.pubkey);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{peers:K})}),(0,y.on)(qe.YP,(ve,{payload:Qe})=>{var K;const Ye=ve.listInvoices;return null===(K=Ye.invoices)||void 0===K||K.unshift(Qe),Object.assign(Object.assign({},ve),{listInvoices:Ye})}),(0,y.on)(qe.aL,(ve,{payload:Qe})=>{var K;const Ye=ve.listInvoices;return Ye.invoices=null===(K=Ye.invoices)||void 0===K?void 0:K.map(zt=>zt.payment_request===Qe.payment_request?Qe:zt),Object.assign(Object.assign({},ve),{listInvoices:Ye})}),(0,y.on)(qe.qY,(ve,{payload:Qe})=>{var K;const Ye=ve.listPayments;return Ye.payments=null===(K=Ye.payments)||void 0===K?void 0:K.map(zt=>zt.payment_hash===Qe.payment_hash?Qe:zt),Object.assign(Object.assign({},ve),{listPayments:Ye})}),(0,y.on)(qe.RX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{fees:Qe})),(0,y.on)(qe._L,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{closedChannels:Qe})),(0,y.on)(qe.TW,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{pendingChannels:Qe.pendingChannels,pendingChannelsSummary:Qe.pendingChannelsSummary})),(0,y.on)(qe.as,(ve,{payload:Qe})=>{let K=0,Ye=0,zt=0,Ce=0,ge=0,fe=0;return Qe&&Qe.forEach(Ue=>{Ue.local_balance||(Ue.local_balance=0),!0===Ue.active?(ge+=+Ue.local_balance,zt+=1,Ue.local_balance?K=+K+ +Ue.local_balance:Ue.local_balance=0,Ue.remote_balance?Ye=+Ye+ +Ue.remote_balance:Ue.remote_balance=0):(fe+=+Ue.local_balance,Ce+=1)}),Object.assign(Object.assign({},ve),{channels:Qe,channelsSummary:{active:{num_channels:zt,capacity:ge},inactive:{num_channels:Ce,capacity:fe}},lightningBalance:{local:K,remote:Ye}})}),(0,y.on)(qe.OG,(ve,{payload:Qe})=>{const K=[...ve.channels],Ye=ve.channels.findIndex(zt=>zt.channel_point===Qe.channelPoint);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{channels:K})}),(0,y.on)(qe.Jl,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{blockchainBalance:Qe})),(0,y.on)(qe.ks,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{networkInfo:Qe})),(0,y.on)(qe.Nr,(ve,{payload:Qe})=>(Qe.total_invoices||(Qe.total_invoices=ve.listInvoices.total_invoices),Object.assign(Object.assign({},ve),{listInvoices:Qe}))),(0,y.on)(qe.Lf,(ve,{payload:Qe})=>{if(In=!0,Qe.length&&Kr){const K=[...ve.utxos];return K.forEach(Ye=>{const zt=Qe.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=Ye.outpoint)||void 0===ge?void 0:ge.txid_str)});Ye.label=zt&&zt.label?zt.label:""}),Object.assign(Object.assign({},ve),{utxos:K,transactions:Qe})}return Object.assign(Object.assign({},ve),{transactions:Qe})}),(0,y.on)(qe.UH,(ve,{payload:Qe})=>{if(Kr=!0,Qe.length&&In){const K=[...ve.transactions];Qe.forEach(Ye=>{const zt=K.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=Ye.outpoint)||void 0===ge?void 0:ge.txid_str)});Ye.label=zt&&zt.label?zt.label:""})}return Object.assign(Object.assign({},ve),{utxos:Qe})}),(0,y.on)(qe.HI,(ve,{payload:Qe})=>{const K={listInvoicesAll:ve.allLightningTransactions.listInvoicesAll,listPaymentsAll:Qe};return Object.assign(Object.assign({},ve),{listPayments:Qe,allLightningTransactions:K})}),(0,y.on)(qe.Fr,(ve,{payload:Qe})=>{const K={listInvoicesAll:Qe.listInvoicesAll,listPaymentsAll:ve.listPayments};return Object.assign(Object.assign({},ve),{allLightningTransactions:K})}),(0,y.on)(qe.QJ,(ve,{payload:Qe})=>{const K=[...ve.channels,...ve.closedChannels];let Ye=Qe.forwarding_events?JSON.parse(JSON.stringify(Qe)):{};return Ye.forwarding_events&&(Ye=ir(Ye,K)),Object.assign(Object.assign({},ve),{forwardingHistory:Ye})})),ir=(ve,Qe)=>(ve.forwarding_events.forEach(K=>{var Ye,zt;if(Qe&&Qe.length>0)for(let Ce=0;Ce{const K=JSON.parse(JSON.stringify(ve.apisCallStatus));return Qe.action&&(K[Qe.action]={status:Qe.status,statusCode:Qe.statusCode,message:Qe.message,URL:Qe.URL,filePath:Qe.filePath}),Object.assign(Object.assign({},ve),{apisCallStatus:K})}),(0,y.on)(bi.oo,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{nodeSettings:Qe})),(0,y.on)(bi.xH,(ve,{payload:Qe})=>Object.assign(Object.assign({},vr),{nodeSettings:Qe})),(0,y.on)(bi.CX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{information:Qe})),(0,y.on)(bi.RX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{fees:Qe})),(0,y.on)(bi.I8,(ve,{payload:Qe})=>Qe.perkb?Object.assign(Object.assign({},ve),{feeRatesPerKB:Qe}):Qe.perkw?Object.assign(Object.assign({},ve),{feeRatesPerKW:Qe}):Object.assign({},ve)),(0,y.on)(bi.Lu,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{balance:Qe})),(0,y.on)(bi.xS,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{localRemoteBalance:Qe})),(0,y.on)(bi.Z8,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{peers:Qe})),(0,y.on)(bi.X3,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{peers:[...ve.peers,Qe]})),(0,y.on)(bi.EK,(ve,{payload:Qe})=>{const K=[...ve.peers],Ye=ve.peers.findIndex(zt=>zt.id===Qe.id);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{peers:K})}),(0,y.on)(bi.as,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{activeChannels:Qe.activeChannels,pendingChannels:Qe.pendingChannels,inactiveChannels:Qe.inactiveChannels})),(0,y.on)(bi.OG,(ve,{payload:Qe})=>{const K=[...ve.peers];return K.forEach(Ye=>{Ye.id===Qe.id&&(Ye.connected=!1,delete Ye.netaddr)}),Object.assign(Object.assign({},ve),{peers:K})}),(0,y.on)(bi.HI,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{payments:Qe})),(0,y.on)(bi.QJ,(ve,{payload:Qe})=>{const K=[...ve.activeChannels,...ve.pendingChannels,...ve.inactiveChannels],Ye=Ir(Qe.listForwards,K);switch(Qe.listForwards=Ye,Qe.status){case ne.OO.SETTLED:const zt=ve.fees;return zt.totalTxCount=Qe.totalForwards||0,Object.assign(Object.assign({},ve),{fees:zt,forwardingHistory:Qe});case ne.OO.FAILED:return Object.assign(Object.assign({},ve),{failedForwardingHistory:Qe});case ne.OO.LOCAL_FAILED:return Object.assign(Object.assign({},ve),{localFailedForwardingHistory:Qe});default:return Object.assign({},ve)}}),(0,y.on)(bi.YP,(ve,{payload:Qe})=>{var K;const Ye=ve.invoices;return null===(K=Ye.invoices)||void 0===K||K.unshift(Qe),Object.assign(Object.assign({},ve),{invoices:Ye})}),(0,y.on)(bi.Nr,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{invoices:Qe})),(0,y.on)(bi.aL,(ve,{payload:Qe})=>{var K;const Ye=ve.invoices;return Ye.invoices=null===(K=Ye.invoices)||void 0===K?void 0:K.map(zt=>zt.label===Qe.label?Qe:zt),Object.assign(Object.assign({},ve),{invoices:Ye})}),(0,y.on)(bi.UH,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{utxos:Qe})),(0,y.on)(bi.Zu,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{offers:Qe})),(0,y.on)(bi.ZH,(ve,{payload:Qe})=>{const K=ve.offers;return null==K||K.unshift(Qe),Object.assign(Object.assign({},ve),{offers:K})}),(0,y.on)(bi.JK,(ve,{payload:Qe})=>{const K=[...ve.offers],Ye=ve.offers.findIndex(zt=>zt.offer_id===Qe.offer.offer_id);return Ye>-1&&K.splice(Ye,1,Qe.offer),Object.assign(Object.assign({},ve),{offers:K})}),(0,y.on)(bi.d7,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{offersBookmarks:Qe})),(0,y.on)(bi.e9,(ve,{payload:Qe})=>{const K=[...ve.offersBookmarks],Ye=K.findIndex(zt=>zt.bolt12===Qe.bolt12);if(Ye<0)null==K||K.unshift(Qe);else{const zt=Object.assign({},K[Ye]);zt.title=Qe.title,zt.amountmSat=Qe.amountmSat,zt.lastUpdatedAt=Qe.lastUpdatedAt,zt.description=Qe.description,zt.vendor=Qe.vendor,K.splice(Ye,1,zt)}return Object.assign(Object.assign({},ve),{offersBookmarks:K})}),(0,y.on)(bi.en,(ve,{payload:Qe})=>{const K=[...ve.offersBookmarks],Ye=ve.offersBookmarks.findIndex(zt=>zt.bolt12===Qe.bolt12);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{offersBookmarks:K})}),(0,y.on)(bi.HW,(ve,{payload:Qe})=>{var K,Ye;const zt=[],Ce=[],ge=[];for(let fe=Qe.length-1;fe>=0;fe--)Qe[fe].alias=(null===(Ye=null===(K=ve.peers)||void 0===K?void 0:K.find(Ue=>Ue.id===Qe[fe].peer_node_id))||void 0===Ye?void 0:Ye.alias)||Qe[fe].peer_node_id,"State_SwapCanceled"===Qe[fe].state?ge.push(Qe[fe]):Qe[fe].type===ne.fO.SWAP_OUT?zt.push(Qe[fe]):Ce.push(Qe[fe]);return Object.assign(Object.assign({},ve),{swapOuts:zt,swapIns:Ce,swapsCanceled:ge})}),(0,y.on)(bi.BZ,(ve,{payload:Qe})=>{if(Qe.type===ne.hc.SWAP_IN){const K=[...ve.swapIns],Ye=K.findIndex(zt=>zt.id===Qe.swapId);return Ye>-1&&(K[Ye].state=Qe.state),Object.assign(Object.assign({},ve),{swapIns:K})}if(Qe.type===ne.hc.SWAP_OUT){const K=[...ve.swapOuts],Ye=K.findIndex(zt=>zt.id===Qe.swapId);return Ye>-1&&(K[Ye].state=Qe.state),Object.assign(Object.assign({},ve),{swapOuts:K})}return Object.assign({},ve)}),(0,y.on)(bi.bP,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{swapRequests:Qe})),(0,y.on)(bi.oF,(ve,{payload:Qe})=>{const K=Qe.reduce((Ye,zt)=>{var Ce,ge,fe;const Ue=[];return zt.alias=(null===(ge=null===(Ce=ve.peers)||void 0===Ce?void 0:Ce.find(nt=>nt.id===zt.nodeid))||void 0===ge?void 0:ge.alias)||zt.nodeid,null===(fe=zt.channels)||void 0===fe||fe.forEach(nt=>Ue.push(Object.assign(Object.assign({},zt),nt))),[...Ye,...Ue]},[]);return Object.assign(Object.assign({},ve),{totalSwapPeers:Qe.length||0,swapPeers:K})}),(0,y.on)(bi.it,(ve,{payload:Qe})=>{const K=ve.swapOuts;return null==K||K.unshift(Qe),Object.assign(Object.assign({},ve),{swapOuts:K})}),(0,y.on)(bi.My,(ve,{payload:Qe})=>{const K=ve.swapIns;return null==K||K.unshift(Qe),Object.assign(Object.assign({},ve),{swapIns:K})})),Ir=(ve,Qe)=>(ve&&ve.length>0?ve.forEach((K,Ye)=>{var zt;if(Qe&&Qe.length>0)for(let Ce=0;Ce{const K=JSON.parse(JSON.stringify(ve.apisCallStatus));return Qe.action&&(K[Qe.action]={status:Qe.status,statusCode:Qe.statusCode,message:Qe.message,URL:Qe.URL,filePath:Qe.filePath}),Object.assign(Object.assign({},ve),{apisCallStatus:K})}),(0,y.on)(Zt.Zr,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{nodeSettings:Qe})),(0,y.on)(Zt.Fd,(ve,{payload:Qe})=>Object.assign(Object.assign({},Br),{nodeSettings:Qe})),(0,y.on)(Zt.CX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{information:Qe})),(0,y.on)(Zt.RX,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{fees:Qe})),(0,y.on)(Zt.eN,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{activeChannels:Qe})),(0,y.on)(Zt.TW,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{pendingChannels:Qe})),(0,y.on)(Zt.i,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{inactiveChannels:Qe})),(0,y.on)(Zt.HG,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{channelsStatus:Qe})),(0,y.on)(Zt.Bw,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{onchainBalance:Qe})),(0,y.on)(Zt.On,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{lightningBalance:Qe})),(0,y.on)(Zt.Z8,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{peers:Qe})),(0,y.on)(Zt.EK,(ve,{payload:Qe})=>{const K=[...ve.peers],Ye=ve.peers.findIndex(zt=>zt.nodeId===Qe.nodeId);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{peers:K})}),(0,y.on)(Zt.OG,(ve,{payload:Qe})=>{const K=[...ve.activeChannels],Ye=ve.activeChannels.findIndex(zt=>zt.channelId===Qe.channelId);return Ye>-1&&K.splice(Ye,1),Object.assign(Object.assign({},ve),{activeChannels:K})}),(0,y.on)(Zt.HI,(ve,{payload:Qe})=>{var K;if(Qe&&Qe.sent){const Ye=[...ve.activeChannels,...ve.pendingChannels,...ve.inactiveChannels];null===(K=Qe.sent)||void 0===K||K.map(zt=>{var Ce;const ge=ve.peers.find(fe=>fe.nodeId===zt.recipientNodeId);return zt.recipientNodeAlias=ge?ge.alias:zt.recipientNodeId,zt.parts&&(null===(Ce=zt.parts)||void 0===Ce||Ce.map(fe=>{const Ue=Ye.find(nt=>nt.channelId===fe.toChannelId);return fe.toChannelAlias=Ue?Ue.alias:fe.toChannelId,zt.parts})),Qe.sent})}if(Qe&&Qe.relayed){const Ye=[...ve.activeChannels,...ve.pendingChannels,...ve.inactiveChannels];Qe.relayed.forEach(zt=>{zt=za(zt,Ye)})}return Object.assign(Object.assign({},ve),{payments:Qe})}),(0,y.on)(Zt.Lf,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{transactions:Qe})),(0,y.on)(Zt.YP,(ve,{payload:Qe})=>{const K=ve.invoices;return null==K||K.unshift(Qe),Object.assign(Object.assign({},ve),{invoices:K})}),(0,y.on)(Zt.Nr,(ve,{payload:Qe})=>Object.assign(Object.assign({},ve),{invoices:Qe})),(0,y.on)(Zt.aL,(ve,{payload:Qe})=>{let K=ve.invoices;return K=null==K?void 0:K.map(Ye=>{if(Ye.paymentHash===Qe.paymentHash){if(Qe.hasOwnProperty("type")){const zt=JSON.parse(JSON.stringify(Ye));return zt.amountSettled=Qe.parts&&Qe.parts.length&&Qe.parts.length>0&&Qe.parts[0].amount?(Qe.parts[0].amount||0)/1e3:0,zt.receivedAt=Qe.parts&&Qe.parts.length&&Qe.parts.length>0&&Qe.parts[0].timestamp?Math.round((Qe.parts[0].timestamp||0)/1e3):0,zt.status="received",zt}return Qe}return Ye}),Object.assign(Object.assign({},ve),{invoices:K})}),(0,y.on)(Zt.DJ,(ve,{payload:Qe})=>{let K=ve.pendingChannels;return K=null==K?void 0:K.map(Ye=>{var zt;return Ye.channelId===Qe.channelId&&Ye.nodeId===Qe.remoteNodeId&&(Qe.currentState=null===(zt=Qe.currentState)||void 0===zt?void 0:zt.replace(/_/g," "),Ye.state=Qe.currentState),Ye}),Object.assign(Object.assign({},ve),{pendingChannels:K})}),(0,y.on)(Zt.ti,(ve,{payload:Qe})=>{var K,Ye,zt;const Ce=ve.payments,ge=za(Qe,[...ve.activeChannels,...ve.pendingChannels,...ve.inactiveChannels]);ge.amountIn=Math.round((Qe.amountIn||0)/1e3),ge.amountOut=Math.round((Qe.amountOut||0)/1e3),null===(K=Ce.relayed)||void 0===K||K.unshift(ge);const fe=(Qe.amountIn||0)-(Qe.amountOut||0),Ue={localBalance:ve.lightningBalance.localBalance+fe,remoteBalance:ve.lightningBalance.remoteBalance-fe},nt=ve.channelsStatus;nt.active&&(nt.active.capacity=((null===(zt=null===(Ye=ve.channelsStatus)||void 0===Ye?void 0:Ye.active)||void 0===zt?void 0:zt.capacity)||0)+fe);const Dt={daily_fee:(ve.fees.daily_fee||0)+fe,daily_txs:(ve.fees.daily_txs||0)+1,weekly_fee:(ve.fees.weekly_fee||0)+fe,weekly_txs:(ve.fees.weekly_txs||0)+1,monthly_fee:(ve.fees.monthly_fee||0)+fe,monthly_txs:(ve.fees.monthly_txs||0)+1},Qt=ve.activeChannels;let ai=!1,Ai=!1;for(const Vi of Qt){if(Vi.channelId===Qe.fromChannelId){ai=!0;const xn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)+ge.amountIn,Vi.toRemote=(Vi.toRemote||0)-ge.amountIn,Vi.balancedness=0===xn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/xn)).toFixed(3)}if(Vi.channelId===Qe.toChannelId){Ai=!0;const xn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)-ge.amountOut,Vi.toRemote=(Vi.toRemote||0)+ge.amountOut,Vi.balancedness=0===xn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/xn)).toFixed(3)}if(Ai&&ai)break}return Object.assign(Object.assign({},ve),{payments:Ce,lightningBalance:Ue,channelStatus:nt,fees:Dt,activeChannels:Qt})})),za=(ve,Qe)=>{var K,Ye,zt,Ce,ge,fe,Ue,nt,Dt,Qt,ai,Ai,Vi,xn;if("payment-relayed"===ve.type)if(Qe&&Qe.length>0)for(let zi=0;zi0)for(let zi=0;zi{var On;(null===(On=Qe[zi].channelId)||void 0===On?void 0:On.toString())===hn.channelId&&(hn.channelAlias=Qe[zi].alias?Qe[zi].alias:hn.channelId,hn.shortChannelId=Qe[zi].shortChannelId?Qe[zi].shortChannelId:"")}),null===(nt=ve.outgoing)||void 0===nt||nt.forEach(hn=>{var On;(null===(On=Qe[zi].channelId)||void 0===On?void 0:On.toString())===hn.channelId&&(hn.channelAlias=Qe[zi].alias?Qe[zi].alias:hn.channelId,hn.shortChannelId=Qe[zi].shortChannelId?Qe[zi].shortChannelId:"")}),zi===Qe.length-1&&(ve.incoming&&ve.incoming.length&&ve.incoming.length>0&&!ve.incoming[0].channelAlias&&(null===(Dt=ve.incoming)||void 0===Dt||Dt.forEach(hn=>{var On;hn.channelAlias=(null===(On=hn.channelId)||void 0===On?void 0:On.substring(0,17))+"...",hn.shortChannelId=""})),ve.outgoing&&ve.outgoing.length&&ve.outgoing.length>0&&!ve.outgoing[0].channelAlias&&(null===(Qt=ve.outgoing)||void 0===Qt||Qt.forEach(hn=>{var On;hn.channelAlias=(null===(On=hn.channelId)||void 0===On?void 0:On.substring(0,17))+"...",hn.shortChannelId=""})));else null===(ai=ve.incoming)||void 0===ai||ai.forEach(zi=>{var hn;zi.channelAlias=(null===(hn=zi.channelId)||void 0===hn?void 0:hn.substring(0,17))+"...",zi.shortChannelId=""}),null===(Ai=ve.outgoing)||void 0===Ai||Ai.forEach(zi=>{var hn;zi.channelAlias=(null===(hn=zi.channelId)||void 0===hn?void 0:hn.substring(0,17))+"...",zi.shortChannelId=""});ve.amountIn=(null===(Vi=ve.incoming)||void 0===Vi?void 0:Vi.reduce((zi,hn)=>zi+hn.amount,0))||0,ve.fromChannelId=ve.incoming&&ve.incoming.length?ve.incoming[0].channelId:"",ve.fromChannelAlias=ve.incoming&&ve.incoming.length?ve.incoming[0].channelAlias:"",ve.fromShortChannelId=ve.incoming&&ve.incoming.length?ve.incoming[0].shortChannelId:"",ve.amountOut=(null===(xn=ve.outgoing)||void 0===xn?void 0:xn.reduce((zi,hn)=>zi+hn.amount,0))||0,ve.toChannelId=ve.outgoing&&ve.outgoing.length?ve.outgoing[0].channelId:"",ve.toChannelAlias=ve.outgoing&&ve.outgoing.length?ve.outgoing[0].channelAlias:"",ve.toShortChannelId=ve.outgoing&&ve.outgoing.length?ve.outgoing[0].shortChannelId:""}return ve};let Qa=(()=>{class ve{}return ve.\u0275fac=function(K){return new(K||ve)},ve.\u0275mod=i.oAB({type:ve,bootstrap:[Et]}),ve.\u0275inj=i.cJS({providers:[{provide:b.TP,useClass:Lt,multi:!0},Jn.a1,we.m,xr.D,Jt.d,Pt.W,Nt.v,gi.X],imports:[[u.PW,Ei.m,wt,a.xu,e.t6,S.forRoot({idle:3590,timeout:10,ping:12e3}),y.Aw.forRoot({root:bn,lnd:_a,cln:pr,ecl:Na},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),h.sQ.forRoot([ht.V,ti.l,fi.J,Mi.o]),Ca.NZ.production?[]:P.FT.instrument()]]}),ve})();Ca.NZ.production&&(0,i.G48)(),e.q6().bootstrapModule(Qa).catch(ve=>console.log(ve))},7854:(He,j)=>{"use strict";function p(ne){return Object.keys(ne).map(ze=>ne[ze])}var ne;Object.defineProperty(j,"__esModule",{value:!0}),(ne=j.HashAlgorithms||(j.HashAlgorithms={})).SHA1="sha1",ne.SHA256="sha256",ne.SHA512="sha512";const e=p(j.HashAlgorithms);!function(ne){ne.ASCII="ascii",ne.BASE64="base64",ne.HEX="hex",ne.LATIN1="latin1",ne.UTF8="utf8"}(j.KeyEncodings||(j.KeyEncodings={}));const i=p(j.KeyEncodings);!function(ne){ne.HOTP="hotp",ne.TOTP="totp"}(j.Strategy||(j.Strategy={}));const u=p(j.Strategy),b=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(ne){return/^(\d+)$/.test(ne)}function y(ne,ze,be){return ne.length>=ze?ne:`${Array(ze+1).join(be)}${ne}`.slice(-1*ze)}function h(ne){const ze=`otpauth://${ne.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,be=[];if(u.indexOf(ne.type)<0)throw new Error(`Expecting options.type to be one of ${u.join(", ")}. Received ${ne.type}.`);if("hotp"===ne.type){if(null==ne.counter||"number"!=typeof ne.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');be.push(`&counter=${ne.counter}`)}return"totp"===ne.type&&ne.step&&be.push(`&period=${ne.step}`),ne.digits&&be.push(`&digits=${ne.digits}`),ne.algorithm&&be.push(`&algorithm=${ne.algorithm.toUpperCase()}`),ne.issuer&&be.push(`&issuer=${encodeURIComponent(ne.issuer)}`),ze.replace("{labelPrefix}",encodeURIComponent(ne.issuer||ne.accountName)).replace("{accountName}",encodeURIComponent(ne.accountName)).replace("{secret}",ne.secret).replace("{query}",be.join(""))}class P{constructor(ze={}){this._defaultOptions=Object.freeze(ws({},ze)),this._options=Object.freeze({})}create(ze={}){return new P(ze)}clone(ze={}){const be=this.create(ws(ws({},this._defaultOptions),ze));return be.options=this._options,be}get options(){return Object.freeze(ws(ws({},this._defaultOptions),this._options))}set options(ze){this._options=Object.freeze(ws(ws({},this._options),ze))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function D(ne){if("function"!=typeof ne.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ne.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ne.digits)throw new Error("Expecting options.digits to be a number.");if(!ne.algorithm||e.indexOf(ne.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${ne.algorithm}.`);if(!ne.encoding||i.indexOf(ne.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${i.join(", ")}. Received ${ne.encoding}.`)}const T=(ne,ze,be)=>Buffer.from(ze,be).toString("hex");function M(){return{algorithm:j.HashAlgorithms.SHA1,createHmacKey:T,createDigest:b,digits:6,encoding:j.KeyEncodings.ASCII}}function A(ne){const ze=ws(ws({},M()),ne);return D(ze),Object.freeze(ze)}function E(ne){return y(ne.toString(16),16,"0")}function k(ne,ze){const be=Buffer.from(ne,"hex"),$=15&be[be.length-1],lt=((127&be[$])<<24|(255&be[$+1])<<16|(255&be[$+2])<<8|255&be[$+3])%Math.pow(10,ze);return y(String(lt),ze,"0")}function V(ne,ze,be){const $=be.digest||function w(ne,ze,be){const $=E(ze),ke=be.createHmacKey(be.algorithm,ne,be.encoding);return be.createDigest(be.algorithm,ke,$)}(ne,ze,be);return k($,be.digits)}function U(ne,ze,be,$){return!!a(ne)&&ne===V(ze,be,$)}function Y(ne,ze,be,$,ke){return h({algorithm:ke.algorithm,digits:ke.digits,type:j.Strategy.HOTP,accountName:ne,counter:$,issuer:ze,secret:be})}class ae extends P{create(ze={}){return new ae(ze)}allOptions(){return A(this.options)}generate(ze,be){return V(ze,be,this.allOptions())}check(ze,be,$){return U(ze,be,$,this.allOptions())}verify(ze){if("object"!=typeof ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ze.token,ze.secret,ze.counter)}keyuri(ze,be,$,ke){return Y(ze,be,$,ke,this.allOptions())}}function X(ne){if("number"==typeof ne)return[Math.abs(ne),Math.abs(ne)];if(Array.isArray(ne)){const[ze,be]=ne;if("number"==typeof ze&&"number"==typeof be)return[Math.abs(ze),Math.abs(be)]}throw new Error("Expecting options.window to be an number or [number, number].")}function de(ne){if(D(ne),X(ne.window),"number"!=typeof ne.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ne.step)throw new Error("Expecting options.step to be a number.")}const q=(ne,ze,be)=>{const $=ne.length,ke=Buffer.from(ne,ze).toString("hex");if(${switch(ne){case j.HashAlgorithms.SHA1:return q(ze,be,20);case j.HashAlgorithms.SHA256:return q(ze,be,32);case j.HashAlgorithms.SHA512:return q(ze,be,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${ne}.`)}};function le(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:re,digits:6,encoding:j.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function ee(ne){const ze=ws(ws({},le()),ne);return de(ze),Object.freeze(ze)}function _e(ne,ze){return Math.floor(ne/ze/1e3)}function x(ne,ze){return V(ne,_e(ze.epoch,ze.step),ze)}function t(ne,ze,be,$){const ke=[];if(0===$)return ke;for(let lt=1;lt<=$;lt++)ke.push(ne+ze*lt*be);return ke}function r(ne,ze,be){const $=X(be),ke=1e3*ze;return{current:ne,past:t(ne,-1,ke,$[0]),future:t(ne,1,ke,$[1])}}function d(ne,ze,be){return!!a(ne)&&ne===x(ze,be)}function c(ne,ze,be,$){let ke=null;return ne.some((lt,W)=>!!d(ze,be,qC(ws({},$),{epoch:lt}))&&(ke=W+1,!0)),ke}function g(ne,ze,be){if(d(ne,ze,be))return 0;const $=r(be.epoch,be.step,be.window),ke=c($.past,ne,ze,be);return null!==ke?-1*ke:c($.future,ne,ze,be)}function S(ne,ze){return Math.floor(ne/1e3)%ze}function I(ne,ze){return ze-S(ne,ze)}function C(ne,ze,be,$){return h({algorithm:$.algorithm,digits:$.digits,step:$.step,type:j.Strategy.TOTP,accountName:ne,issuer:ze,secret:be})}class n extends ae{create(ze={}){return new n(ze)}allOptions(){return ee(this.options)}generate(ze){return x(ze,this.allOptions())}checkDelta(ze,be){return g(ze,be,this.allOptions())}check(ze,be){return"number"==typeof this.checkDelta(ze,be)}verify(ze){if("object"!=typeof ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ze.token,ze.secret)}timeRemaining(){const ze=this.allOptions();return I(ze.epoch,ze.step)}timeUsed(){const ze=this.allOptions();return S(ze.epoch,ze.step)}keyuri(ze,be,$){return C(ze,be,$,this.allOptions())}}function _(ne){if(de(ne),"function"!=typeof ne.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ne.keyEncoder&&"function"!=typeof ne.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function B(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:re,digits:6,encoding:j.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(ne){const ze=ws(ws({},B()),ne);return _(ze),Object.freeze(ze)}function H(ne,ze){return ze.keyEncoder(ne,ze.encoding)}function Q(ne,ze){return ze.keyDecoder(ne,ze.encoding)}function Z(ne,ze){return H(ze.createRandomBytes(ne,ze.encoding),ze)}function te(ne,ze){return x(Q(ne,ze),ze)}function Te(ne,ze,be){return g(ne,Q(ze,be),be)}class Ee extends n{create(ze={}){return new Ee(ze)}allOptions(){return R(this.options)}generate(ze){return te(ze,this.allOptions())}checkDelta(ze,be){return Te(ze,be,this.allOptions())}encode(ze){return H(ze,this.allOptions())}decode(ze){return Q(ze,this.allOptions())}generateSecret(ze=10){return Z(ze,this.allOptions())}}j.Authenticator=Ee,j.HASH_ALGORITHMS=e,j.HOTP=ae,j.KEY_ENCODINGS=i,j.OTP=P,j.STRATEGY=u,j.TOTP=n,j.authenticatorCheckWithWindow=Te,j.authenticatorDecoder=Q,j.authenticatorDefaultOptions=B,j.authenticatorEncoder=H,j.authenticatorGenerateSecret=Z,j.authenticatorOptionValidator=_,j.authenticatorOptions=R,j.authenticatorToken=te,j.createDigestPlaceholder=b,j.hotpCheck=U,j.hotpCounter=E,j.hotpCreateHmacKey=T,j.hotpDefaultOptions=M,j.hotpDigestToToken=k,j.hotpKeyuri=Y,j.hotpOptions=A,j.hotpOptionsValidator=D,j.hotpToken=V,j.isTokenValid=a,j.keyuri=h,j.objectValues=p,j.padStart=y,j.totpCheck=d,j.totpCheckByEpoch=c,j.totpCheckWithWindow=g,j.totpCounter=_e,j.totpCreateHmacKey=re,j.totpDefaultOptions=le,j.totpEpochAvailable=r,j.totpKeyuri=C,j.totpOptions=ee,j.totpOptionsValidator=de,j.totpPadSecret=q,j.totpTimeRemaining=I,j.totpTimeUsed=S,j.totpToken=x},6098:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));j.createDigest=(a,y,h)=>i.createHmac(a,Buffer.from(y,"hex")).update(Buffer.from(h,"hex")).digest().toString("hex"),j.createRandomBytes=(a,y)=>i.randomBytes(a).toString(y)},1415:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));j.keyDecoder=(a,y)=>i.decode(a).toString(y),j.keyEncoder=(a,y)=>i.encode(Buffer.from(a,y).toString("ascii")).toString().replace(/=/g,"")},842:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(6098),i=p(1415),u=p(7854);const b=new u.HOTP({createDigest:e.createDigest}),a=new u.TOTP({createDigest:e.createDigest}),y=new u.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:i.keyDecoder,keyEncoder:i.keyEncoder});j.authenticator=y,j.hotp=b,j.totp=a},7977:(He,j,p)=>{"use strict";const e=j;e.bignum=p(3854),e.define=p(9516).define,e.base=p(7813),e.constants=p(5459),e.decoders=p(196),e.encoders=p(1131)},9516:(He,j,p)=>{"use strict";const e=p(1131),i=p(196),u=p(3894);function a(y,h){this.name=y,this.body=h,this.decoders={},this.encoders={}}j.define=function(h,P){return new a(h,P)},a.prototype._createNamed=function(h){const P=this.name;function D(T){this._initNamed(T,P)}return u(D,h),D.prototype._initNamed=function(M,A){h.call(this,M,A)},new D(this)},a.prototype._getDecoder=function(h){return this.decoders.hasOwnProperty(h=h||"der")||(this.decoders[h]=this._createNamed(i[h])),this.decoders[h]},a.prototype.decode=function(h,P,D){return this._getDecoder(P).decode(h,D)},a.prototype._getEncoder=function(h){return this.encoders.hasOwnProperty(h=h||"der")||(this.encoders[h]=this._createNamed(e[h])),this.encoders[h]},a.prototype.encode=function(h,P,D){return this._getEncoder(P).encode(h,D)}},2769:(He,j,p)=>{"use strict";const e=p(3894),i=p(4919).b,u=p(2038).Buffer;function b(y,h){i.call(this,h),u.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function a(y,h){if(Array.isArray(y))this.length=0,this.value=y.map(function(P){return a.isEncoderBuffer(P)||(P=new a(P,h)),this.length+=P.length,P},this);else if("number"==typeof y){if(!(0<=y&&y<=255))return h.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if("string"==typeof y)this.value=y,this.length=u.byteLength(y);else{if(!u.isBuffer(y))return h.error("Unsupported type: "+typeof y);this.value=y,this.length=y.length}}e(b,i),j.C=b,b.isDecoderBuffer=function(h){return h instanceof b||"object"==typeof h&&u.isBuffer(h.base)&&"DecoderBuffer"===h.constructor.name&&"number"==typeof h.offset&&"number"==typeof h.length&&"function"==typeof h.save&&"function"==typeof h.restore&&"function"==typeof h.isEmpty&&"function"==typeof h.readUInt8&&"function"==typeof h.skip&&"function"==typeof h.raw},b.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},b.prototype.restore=function(h){const P=new b(this.base);return P.offset=h.offset,P.length=this.offset,this.offset=h.offset,i.prototype.restore.call(this,h.reporter),P},b.prototype.isEmpty=function(){return this.offset===this.length},b.prototype.readUInt8=function(h){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(h||"DecoderBuffer overrun")},b.prototype.skip=function(h,P){if(!(this.offset+h<=this.length))return this.error(P||"DecoderBuffer overrun");const D=new b(this.base);return D._reporterState=this._reporterState,D.offset=this.offset,D.length=this.offset+h,this.offset+=h,D},b.prototype.raw=function(h){return this.base.slice(h?h.offset:this.offset,this.length)},j.R=a,a.isEncoderBuffer=function(h){return h instanceof a||"object"==typeof h&&"EncoderBuffer"===h.constructor.name&&"number"==typeof h.length&&"function"==typeof h.join},a.prototype.join=function(h,P){return h||(h=u.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(D){D.join(h,P),P+=D.length}):("number"==typeof this.value?h[P]=this.value:"string"==typeof this.value?h.write(this.value,P):u.isBuffer(this.value)&&this.value.copy(h,P),P+=this.length)),h}},7813:(He,j,p)=>{"use strict";const e=j;e.Reporter=p(4919).b,e.DecoderBuffer=p(2769).C,e.EncoderBuffer=p(2769).R,e.Node=p(1430)},1430:(He,j,p)=>{"use strict";const e=p(4919).b,i=p(2769).R,u=p(2769).C,b=p(2391),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function P(T,M,A){const E={};this._baseState=E,E.name=A,E.enc=T,E.parent=M||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}He.exports=P;const D=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const M=this._baseState,A={};D.forEach(function(k){A[k]=M[k]});const E=new this.constructor(A.parent);return E._baseState=A,E},P.prototype._wrap=function(){const M=this._baseState;y.forEach(function(A){this[A]=function(){const k=new this.constructor(this);return M.children.push(k),k[A].apply(k,arguments)}},this)},P.prototype._init=function(M){const A=this._baseState;b(null===A.parent),M.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),b.equal(A.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(M){const A=this._baseState,E=M.filter(function(k){return k instanceof this.constructor},this);M=M.filter(function(k){return!(k instanceof this.constructor)},this),0!==E.length&&(b(null===A.children),A.children=E,E.forEach(function(k){k._baseState.parent=this},this)),0!==M.length&&(b(null===A.args),A.args=M,A.reverseArgs=M.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const w={};return Object.keys(k).forEach(function(V){V==(0|V)&&(V|=0),w[k[V]]=V}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(T){P.prototype[T]=function(){throw new Error(T+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(T){P.prototype[T]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return b(null===A.tag),A.tag=T,this._useArgs(E),this}}),P.prototype.use=function(M){b(M);const A=this._baseState;return b(null===A.use),A.use=M,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(M){const A=this._baseState;return b(null===A.default),A.default=M,A.optional=!0,this},P.prototype.explicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.explicit=M,this},P.prototype.implicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.implicit=M,this},P.prototype.obj=function(){const M=this._baseState,A=Array.prototype.slice.call(arguments);return M.obj=!0,0!==A.length&&this._useArgs(A),this},P.prototype.key=function(M){const A=this._baseState;return b(null===A.key),A.key=M,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(M){const A=this._baseState;return b(null===A.choice),A.choice=M,this._useArgs(Object.keys(M).map(function(E){return M[E]})),this},P.prototype.contains=function(M){const A=this._baseState;return b(null===A.use),A.contains=M,this},P.prototype._decode=function(M,A){const E=this._baseState;if(null===E.parent)return M.wrapResult(E.children[0]._decode(M,A));let U,k=E.default,w=!0,V=null;if(null!==E.key&&(V=M.enterKey(E.key)),E.optional){let Y=null;if(null!==E.explicit?Y=E.explicit:null!==E.implicit?Y=E.implicit:null!==E.tag&&(Y=E.tag),null!==Y||E.any){if(w=this._peekTag(M,Y,E.any),M.isError(w))return w}else{const ae=M.save();try{null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A),w=!0}catch(X){w=!1}M.restore(ae)}}if(E.obj&&w&&(U=M.enterObject()),w){if(null!==E.explicit){const ae=this._decodeTag(M,E.explicit);if(M.isError(ae))return ae;M=ae}const Y=M.offset;if(null===E.use&&null===E.choice){let ae;E.any&&(ae=M.save());const X=this._decodeTag(M,null!==E.implicit?E.implicit:E.tag,E.any);if(M.isError(X))return X;E.any?k=M.raw(ae):M=X}if(A&&A.track&&null!==E.tag&&A.track(M.path(),Y,M.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(M.path(),M.offset,M.length,"content"),E.any||(k=null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A)),M.isError(k))return k;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(X){X._decode(M,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ae=new u(k);k=this._getUse(E.contains,M._reporterState.obj)._decode(ae,A)}}return E.obj&&w&&(k=M.leaveObject(U)),null===E.key||null===k&&!0!==w?null!==V&&M.exitKey(V):M.leaveKey(V,E.key,k),k},P.prototype._decodeGeneric=function(M,A,E){const k=this._baseState;return"seq"===M||"set"===M?null:"seqof"===M||"setof"===M?this._decodeList(A,M,k.args[0],E):/str$/.test(M)?this._decodeStr(A,M,E):"objid"===M&&k.args?this._decodeObjid(A,k.args[0],k.args[1],E):"objid"===M?this._decodeObjid(A,null,null,E):"gentime"===M||"utctime"===M?this._decodeTime(A,M,E):"null_"===M?this._decodeNull(A,E):"bool"===M?this._decodeBool(A,E):"objDesc"===M?this._decodeStr(A,M,E):"int"===M||"enum"===M?this._decodeInt(A,k.args&&k.args[0],E):null!==k.use?this._getUse(k.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+M)},P.prototype._getUse=function(M,A){const E=this._baseState;return E.useDecoder=this._use(M,A),b(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},P.prototype._decodeChoice=function(M,A){const E=this._baseState;let k=null,w=!1;return Object.keys(E.choice).some(function(V){const U=M.save(),Y=E.choice[V];try{const ae=Y._decode(M,A);if(M.isError(ae))return!1;k={type:V,value:ae},w=!0}catch(ae){return M.restore(U),!1}return!0},this),w?k:M.error("Choice not matched")},P.prototype._createEncoderBuffer=function(M){return new i(M,this.reporter)},P.prototype._encode=function(M,A,E){const k=this._baseState;if(null!==k.default&&k.default===M)return;const w=this._encodeValue(M,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},P.prototype._encodeValue=function(M,A,E){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(M,A||new e);let w=null;if(this.reporter=A,k.optional&&void 0===M){if(null===k.default)return;M=k.default}let V=null,U=!1;if(k.any)w=this._createEncoderBuffer(M);else if(k.choice)w=this._encodeChoice(M,A);else if(k.contains)V=this._getUse(k.contains,E)._encode(M,A),U=!0;else if(k.children)V=k.children.map(function(Y){if("null_"===Y._baseState.tag)return Y._encode(null,A,M);if(null===Y._baseState.key)return A.error("Child should have a key");const ae=A.enterKey(Y._baseState.key);if("object"!=typeof M)return A.error("Child expected, but input is not object");const X=Y._encode(M[Y._baseState.key],A,M);return A.leaveKey(ae),X},this).filter(function(Y){return Y}),V=this._createEncoderBuffer(V);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return A.error("Too many args for : "+k.tag);if(!Array.isArray(M))return A.error("seqof/setof, but data is not Array");const Y=this.clone();Y._baseState.implicit=null,V=this._createEncoderBuffer(M.map(function(ae){return this._getUse(this._baseState.args[0],M)._encode(ae,A)},Y))}else null!==k.use?w=this._getUse(k.use,E)._encode(M,A):(V=this._encodePrimitive(k.tag,M),U=!0);if(!k.any&&null===k.choice){const Y=null!==k.implicit?k.implicit:k.tag,ae=null===k.implicit?"universal":"context";null===Y?null===k.use&&A.error("Tag could be omitted only for .use()"):null===k.use&&(w=this._encodeComposite(Y,U,ae,V))}return null!==k.explicit&&(w=this._encodeComposite(k.explicit,!1,"context",w)),w},P.prototype._encodeChoice=function(M,A){const E=this._baseState,k=E.choice[M.type];return k||b(!1,M.type+" not found in "+JSON.stringify(Object.keys(E.choice))),k._encode(M.value,A)},P.prototype._encodePrimitive=function(M,A){const E=this._baseState;if(/str$/.test(M))return this._encodeStr(A,M);if("objid"===M&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===M)return this._encodeObjid(A,null,null);if("gentime"===M||"utctime"===M)return this._encodeTime(A,M);if("null_"===M)return this._encodeNull();if("int"===M||"enum"===M)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===M)return this._encodeBool(A);if("objDesc"===M)return this._encodeStr(A,M);throw new Error("Unsupported tag: "+M)},P.prototype._isNumstr=function(M){return/^[0-9 ]*$/.test(M)},P.prototype._isPrintstr=function(M){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(M)}},4919:(He,j,p)=>{"use strict";const e=p(3894);function i(b){this._reporterState={obj:null,path:[],options:b||{},errors:[]}}function u(b,a){this.path=b,this.rethrow(a)}j.b=i,i.prototype.isError=function(a){return a instanceof u},i.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},i.prototype.restore=function(a){const y=this._reporterState;y.obj=a.obj,y.path=y.path.slice(0,a.pathLen)},i.prototype.enterKey=function(a){return this._reporterState.path.push(a)},i.prototype.exitKey=function(a){const y=this._reporterState;y.path=y.path.slice(0,a-1)},i.prototype.leaveKey=function(a,y,h){const P=this._reporterState;this.exitKey(a),null!==P.obj&&(P.obj[y]=h)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const a=this._reporterState,y=a.obj;return a.obj={},y},i.prototype.leaveObject=function(a){const y=this._reporterState,h=y.obj;return y.obj=a,h},i.prototype.error=function(a){let y;const h=this._reporterState,P=a instanceof u;if(y=P?a:new u(h.path.map(function(D){return"["+JSON.stringify(D)+"]"}).join(""),a.message||a,a.stack),!h.options.partial)throw y;return P||h.errors.push(y),y},i.prototype.wrapResult=function(a){const y=this._reporterState;return y.options.partial?{result:this.isError(a)?null:a,errors:y.errors}:a},e(u,Error),u.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(y){this.stack=y.stack}return this}},5496:(He,j)=>{"use strict";function p(e){const i={};return Object.keys(e).forEach(function(u){(0|u)==u&&(u|=0),i[e[u]]=u}),i}j.tagClass={0:"universal",1:"application",2:"context",3:"private"},j.tagClassByName=p(j.tagClass),j.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},j.tagByName=p(j.tag)},5459:(He,j,p)=>{"use strict";const e=j;e._reverse=function(u){const b={};return Object.keys(u).forEach(function(a){(0|a)==a&&(a|=0),b[u[a]]=a}),b},e.der=p(5496)},7127:(He,j,p)=>{"use strict";const e=p(3894),i=p(3854),u=p(2769).C,b=p(1430),a=p(5496);function y(T){this.enc="der",this.name=T.name,this.entity=T,this.tree=new h,this.tree._init(T.body)}function h(T){b.call(this,"der",T)}function P(T,M){let A=T.readUInt8(M);if(T.isError(A))return A;const E=a.tagClass[A>>6],k=0==(32&A);if(31==(31&A)){let V=A;for(A=0;128==(128&V);){if(V=T.readUInt8(M),T.isError(V))return V;A<<=7,A|=127&V}}else A&=31;return{cls:E,primitive:k,tag:A,tagStr:a.tag[A]}}function D(T,M,A){let E=T.readUInt8(A);if(T.isError(E))return E;if(!M&&128===E)return null;if(0==(128&E))return E;const k=127&E;if(k>4)return T.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=j;e.der=p(7127),e.pem=p(9617)},9617:(He,j,p)=>{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(7127);function b(a){u.call(this,a),this.enc="pem"}e(b,u),He.exports=b,b.prototype.decode=function(y,h){const P=y.toString().split(/[\r\n]+/g),D=h.label.toUpperCase(),T=/^-----(BEGIN|END) ([^-]+)-----$/;let M=-1,A=-1;for(let w=0;w{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(1430),b=p(5496);function a(D){this.enc="der",this.name=D.name,this.entity=D,this.tree=new y,this.tree._init(D.body)}function y(D){u.call(this,"der",D)}function h(D){return D<10?"0"+D:D}He.exports=a,a.prototype.encode=function(T,M){return this.tree._encode(T,M).join()},e(y,u),y.prototype._encodeComposite=function(T,M,A,E){const k=function P(D,T,M,A){let E;if("seqof"===D?D="seq":"setof"===D&&(D="set"),b.tagByName.hasOwnProperty(D))E=b.tagByName[D];else{if("number"!=typeof D||(0|D)!==D)return A.error("Unknown tag: "+D);E=D}return E>=31?A.error("Multi-octet tag encoding unsupported"):(T||(E|=32),E|=b.tagClassByName[M||"universal"]<<6,E)}(T,M,A,this.reporter);if(E.length<128){const U=i.alloc(2);return U[0]=k,U[1]=E.length,this._createEncoderBuffer([U,E])}let w=1;for(let U=E.length;U>=256;U>>=8)w++;const V=i.alloc(2+w);V[0]=k,V[1]=128|w;for(let U=1+w,Y=E.length;Y>0;U--,Y>>=8)V[U]=255&Y;return this._createEncoderBuffer([V,E])},y.prototype._encodeStr=function(T,M){if("bitstr"===M)return this._createEncoderBuffer([0|T.unused,T.data]);if("bmpstr"===M){const A=i.alloc(2*T.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");T.splice(0,2,40*T[0]+T[1])}let E=0;for(let V=0;V=128;U>>=7)E++}const k=i.alloc(E);let w=k.length-1;for(let V=T.length-1;V>=0;V--){let U=T[V];for(k[w--]=127&U;(U>>=7)>0;)k[w--]=128|127&U}return this._createEncoderBuffer(k)},y.prototype._encodeTime=function(T,M){let A;const E=new Date(T);return"gentime"===M?A=[h(E.getUTCFullYear()),h(E.getUTCMonth()+1),h(E.getUTCDate()),h(E.getUTCHours()),h(E.getUTCMinutes()),h(E.getUTCSeconds()),"Z"].join(""):"utctime"===M?A=[h(E.getUTCFullYear()%100),h(E.getUTCMonth()+1),h(E.getUTCDate()),h(E.getUTCHours()),h(E.getUTCMinutes()),h(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+M+" time is not supported yet"),this._encodeStr(A,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(T,M){if("string"==typeof T){if(!M)return this.reporter.error("String int or enum given, but no values map");if(!M.hasOwnProperty(T))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(T));T=M[T]}if("number"!=typeof T&&!i.isBuffer(T)){const k=T.toArray();!T.sign&&128&k[0]&&k.unshift(0),T=i.from(k)}if(i.isBuffer(T)){let k=T.length;0===T.length&&k++;const w=i.alloc(k);return T.copy(w),0===T.length&&(w[0]=0),this._createEncoderBuffer(w)}if(T<128)return this._createEncoderBuffer(T);if(T<256)return this._createEncoderBuffer([0,T]);let A=1;for(let k=T;k>=256;k>>=8)A++;const E=new Array(A);for(let k=E.length-1;k>=0;k--)E[k]=255&T,T>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(i.from(E))},y.prototype._encodeBool=function(T){return this._createEncoderBuffer(T?255:0)},y.prototype._use=function(T,M){return"function"==typeof T&&(T=T(M)),T._getEncoder("der").tree},y.prototype._skipDefault=function(T,M,A){const E=this._baseState;let k;if(null===E.default)return!1;const w=T.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,M,A).join()),w.length!==E.defaultBuffer.length)return!1;for(k=0;k{"use strict";const e=j;e.der=p(6374),e.pem=p(3530)},3530:(He,j,p)=>{"use strict";const e=p(3894),i=p(6374);function u(b){i.call(this,b),this.enc="pem"}e(u,i),He.exports=u,u.prototype.encode=function(a,y){const P=i.prototype.encode.call(this,a).toString("base64"),D=["-----BEGIN "+y.label+"-----"];for(let T=0;T=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},5343:(He,j)=>{"use strict";j.byteLength=function h(E){var k=y(E),V=k[1];return 3*(k[0]+V)/4-V},j.toByteArray=function D(E){var k,de,w=y(E),V=w[0],U=w[1],Y=new i(function P(E,k,w){return 3*(k+w)/4-w}(0,V,U)),ae=0,X=U>0?V-4:V;for(de=0;de>16&255,Y[ae++]=k>>8&255,Y[ae++]=255&k;return 2===U&&(k=e[E.charCodeAt(de)]<<2|e[E.charCodeAt(de+1)]>>4,Y[ae++]=255&k),1===U&&(k=e[E.charCodeAt(de)]<<10|e[E.charCodeAt(de+1)]<<4|e[E.charCodeAt(de+2)]>>2,Y[ae++]=k>>8&255,Y[ae++]=255&k),Y},j.fromByteArray=function A(E){for(var k,w=E.length,V=w%3,U=[],Y=16383,ae=0,X=w-V;aeX?X:ae+Y));return 1===V?U.push(p[(k=E[w-1])>>2]+p[k<<4&63]+"=="):2===V&&U.push(p[(k=(E[w-2]<<8)+E[w-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),U.join("")};for(var p=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,a=u.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=k),[w,w===k?0:4-w%4]}function T(E){return p[E>>18&63]+p[E>>12&63]+p[E>>6&63]+p[63&E]}function M(E,k,w){for(var U=[],Y=k;Y=48&&g<=57?g-48:g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:void u(!1,"Invalid character in "+d)}function P(d,c,g){var S=h(d,g);return g-1>=c&&(S|=h(d,g-1)<<4),S}function D(d,c,g,S){for(var I=0,C=0,n=Math.min(d.length,g),_=c;_=49?B-49+10:B>=17?B-17+10:B,u(B>=0&&C0?c:g},a.min=function(c,g){return c.cmp(g)<0?c:g},a.prototype._init=function(c,g,S){if("number"==typeof c)return this._initNumber(c,g,S);if("object"==typeof c)return this._initArray(c,g,S);"hex"===g&&(g=16),u(g===(0|g)&&g>=2&&g<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[C]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<<_&67108863,this.words[C+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,C++);else if("le"===S)for(I=0,C=0;I>>26-_&67108863,(_+=24)>=26&&(_-=26,C++);return this._strip()},a.prototype._parseHex=function(c,g,S){this.length=Math.ceil((c.length-g)/6),this.words=new Array(this.length);for(var I=0;I=g;I-=2)_=P(c,g,I)<=18?(C-=18,this.words[n+=1]|=_>>>26):C+=8;else for(I=(c.length-g)%2==0?g+1:g;I=18?(C-=18,this.words[n+=1]|=_>>>26):C+=8;this._strip()},a.prototype._parseBase=function(c,g,S){this.words=[0],this.length=1;for(var I=0,C=1;C<=67108863;C*=g)I++;I--,C=C/g|0;for(var n=c.length-S,_=n%I,B=Math.min(n,n-_)+S,R=0,H=S;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch(d){a.prototype.inspect=M}else a.prototype.inspect=M;function M(){return(this.red?""}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function U(d,c,g){g.negative=c.negative^d.negative;var S=d.length+c.length|0;g.length=S,S=S-1|0;var I=0|d.words[0],C=0|c.words[0],n=I*C,B=n/67108864|0;g.words[0]=67108863&n;for(var R=1;R>>26,Q=67108863&B,Z=Math.min(R,c.length-1),te=Math.max(0,R-d.length+1);te<=Z;te++)H+=(n=(I=0|d.words[R-te|0])*(C=0|c.words[te])+Q)/67108864|0,Q=67108863&n;g.words[R]=0|Q,B=0|H}return 0!==B?g.words[R]=0|B:g.length--,g._strip()}a.prototype.toString=function(c,g){var S;if(g=0|g||1,16===(c=c||10)||"hex"===c){S="";for(var I=0,C=0,n=0;n>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),S=0!==C||n!==this.length-1?A[6-B.length]+B+S:B+S}for(0!==C&&(S=C.toString(16)+S);S.length%g!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}if(c===(0|c)&&c>=2&&c<=36){var R=E[c],H=k[c];S="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var Z=Q.modrn(H).toString(c);S=(Q=Q.idivn(H)).isZero()?Z+S:A[R-Z.length]+Z+S}for(this.isZero()&&(S="0"+S);S.length%g!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},y&&(a.prototype.toBuffer=function(c,g){return this.toArrayLike(y,c,g)}),a.prototype.toArray=function(c,g){return this.toArrayLike(Array,c,g)},a.prototype.toArrayLike=function(c,g,S){this._strip();var I=this.byteLength(),C=S||Math.max(1,I);u(I<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0");var n=function(c,g){return c.allocUnsafe?c.allocUnsafe(g):new c(g)}(c,C);return this["_toArrayLike"+("le"===g?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,g){for(var S=0,I=0,C=0,n=0;C>8&255),S>16&255),6===n?(S>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(S=0&&(c[S--]=_>>8&255),S>=0&&(c[S--]=_>>16&255),6===n?(S>=0&&(c[S--]=_>>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(S>=0)for(c[S--]=I;S>=0;)c[S--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var g=c,S=0;return g>=4096&&(S+=13,g>>>=13),g>=64&&(S+=7,g>>>=7),g>=8&&(S+=4,g>>>=4),g>=2&&(S+=2,g>>>=2),S+g},a.prototype._zeroBits=function(c){if(0===c)return 26;var g=c,S=0;return 0==(8191&g)&&(S+=13,g>>>=13),0==(127&g)&&(S+=7,g>>>=7),0==(15&g)&&(S+=4,g>>>=4),0==(3&g)&&(S+=2,g>>>=2),0==(1&g)&&S++,S},a.prototype.bitLength=function(){var g=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+g},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,g=0;gc.length?this.clone().ior(c):c.clone().ior(this)},a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},a.prototype.iuand=function(c){var g;g=this.length>c.length?c:this;for(var S=0;Sc.length?this.clone().iand(c):c.clone().iand(this)},a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},a.prototype.iuxor=function(c){var g,S;this.length>c.length?(g=this,S=c):(g=c,S=this);for(var I=0;Ic.length?this.clone().ixor(c):c.clone().ixor(this)},a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},a.prototype.inotn=function(c){u("number"==typeof c&&c>=0);var g=0|Math.ceil(c/26),S=c%26;this._expand(g),S>0&&g--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-S),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,g){u("number"==typeof c&&c>=0);var S=c/26|0,I=c%26;return this._expand(S+1),this.words[S]=g?this.words[S]|1<c.length?(S=this,I=c):(S=c,I=this);for(var C=0,n=0;n>>26;for(;0!==C&&n>>26;if(this.length=S.length,0!==C)this.words[this.length]=C,this.length++;else if(S!==this)for(;nc.length?this.clone().iadd(c):c.clone().iadd(this)},a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var g=this.iadd(c);return c.negative=1,g._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,C,S=this.cmp(c);if(0===S)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(I=this,C=c):(I=c,C=this);for(var n=0,_=0;_>26,this.words[_]=67108863&g;for(;0!==n&&_>26,this.words[_]=67108863&g;if(0===n&&_>>13,Te=0|I[1],Ee=8191&Te,ne=Te>>>13,ze=0|I[2],be=8191&ze,$=ze>>>13,ke=0|I[3],lt=8191&ke,W=ke>>>13,De=0|I[4],he=8191&De,Ae=De>>>13,xe=0|I[5],G=8191&xe,ie=xe>>>13,pe=0|I[6],ye=8191&pe,Le=pe>>>13,ot=0|I[7],ht=8191&ot,At=ot>>>13,hi=0|I[8],jt=8191&hi,Gt=hi>>>13,di=0|I[9],vt=8191&di,kt=di>>>13,mt=0|C[0],Xe=8191&mt,_t=mt>>>13,ei=0|C[1],Kt=8191&ei,Pe=ei>>>13,Ie=0|C[2],ce=8191&Ie,Me=Ie>>>13,ut=0|C[3],ft=8191&ut,Rt=ut>>>13,et=0|C[4],Re=8191&et,Je=et>>>13,Ke=0|C[5],we=8191&Ke,Fe=Ke>>>13,rt=0|C[6],at=8191&rt,yt=rt>>>13,mi=0|C[7],Xt=8191&mi,qt=mi>>>13,Xi=0|C[8],ui=8191&Xi,si=Xi>>>13,qi=0|C[9],Gi=8191&qi,Ui=qi>>>13;S.negative=c.negative^g.negative,S.length=19;var Wi=(_+(B=Math.imul(Z,Xe))|0)+((8191&(R=(R=Math.imul(Z,_t))+Math.imul(te,Xe)|0))<<13)|0;_=((H=Math.imul(te,_t))+(R>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,B=Math.imul(Ee,Xe),R=(R=Math.imul(Ee,_t))+Math.imul(ne,Xe)|0,H=Math.imul(ne,_t);var ct=(_+(B=B+Math.imul(Z,Kt)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0))<<13)|0;_=((H=H+Math.imul(te,Pe)|0)+(R>>>13)|0)+(ct>>>26)|0,ct&=67108863,B=Math.imul(be,Xe),R=(R=Math.imul(be,_t))+Math.imul($,Xe)|0,H=Math.imul($,_t),B=B+Math.imul(Ee,Kt)|0,R=(R=R+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,H=H+Math.imul(ne,Pe)|0;var Ft=(_+(B=B+Math.imul(Z,ce)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0))<<13)|0;_=((H=H+Math.imul(te,Me)|0)+(R>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,B=Math.imul(lt,Xe),R=(R=Math.imul(lt,_t))+Math.imul(W,Xe)|0,H=Math.imul(W,_t),B=B+Math.imul(be,Kt)|0,R=(R=R+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,H=H+Math.imul($,Pe)|0,B=B+Math.imul(Ee,ce)|0,R=(R=R+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,H=H+Math.imul(ne,Me)|0;var pt=(_+(B=B+Math.imul(Z,ft)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0))<<13)|0;_=((H=H+Math.imul(te,Rt)|0)+(R>>>13)|0)+(pt>>>26)|0,pt&=67108863,B=Math.imul(he,Xe),R=(R=Math.imul(he,_t))+Math.imul(Ae,Xe)|0,H=Math.imul(Ae,_t),B=B+Math.imul(lt,Kt)|0,R=(R=R+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,H=H+Math.imul(W,Pe)|0,B=B+Math.imul(be,ce)|0,R=(R=R+Math.imul(be,Me)|0)+Math.imul($,ce)|0,H=H+Math.imul($,Me)|0,B=B+Math.imul(Ee,ft)|0,R=(R=R+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,H=H+Math.imul(ne,Rt)|0;var it=(_+(B=B+Math.imul(Z,Re)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0))<<13)|0;_=((H=H+Math.imul(te,Je)|0)+(R>>>13)|0)+(it>>>26)|0,it&=67108863,B=Math.imul(G,Xe),R=(R=Math.imul(G,_t))+Math.imul(ie,Xe)|0,H=Math.imul(ie,_t),B=B+Math.imul(he,Kt)|0,R=(R=R+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,H=H+Math.imul(Ae,Pe)|0,B=B+Math.imul(lt,ce)|0,R=(R=R+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,H=H+Math.imul(W,Me)|0,B=B+Math.imul(be,ft)|0,R=(R=R+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,H=H+Math.imul($,Rt)|0,B=B+Math.imul(Ee,Re)|0,R=(R=R+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,H=H+Math.imul(ne,Je)|0;var It=(_+(B=B+Math.imul(Z,we)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0))<<13)|0;_=((H=H+Math.imul(te,Fe)|0)+(R>>>13)|0)+(It>>>26)|0,It&=67108863,B=Math.imul(ye,Xe),R=(R=Math.imul(ye,_t))+Math.imul(Le,Xe)|0,H=Math.imul(Le,_t),B=B+Math.imul(G,Kt)|0,R=(R=R+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,H=H+Math.imul(ie,Pe)|0,B=B+Math.imul(he,ce)|0,R=(R=R+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,H=H+Math.imul(Ae,Me)|0,B=B+Math.imul(lt,ft)|0,R=(R=R+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,H=H+Math.imul(W,Rt)|0,B=B+Math.imul(be,Re)|0,R=(R=R+Math.imul(be,Je)|0)+Math.imul($,Re)|0,H=H+Math.imul($,Je)|0,B=B+Math.imul(Ee,we)|0,R=(R=R+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,H=H+Math.imul(ne,Fe)|0;var ue=(_+(B=B+Math.imul(Z,at)|0)|0)+((8191&(R=(R=R+Math.imul(Z,yt)|0)+Math.imul(te,at)|0))<<13)|0;_=((H=H+Math.imul(te,yt)|0)+(R>>>13)|0)+(ue>>>26)|0,ue&=67108863,B=Math.imul(ht,Xe),R=(R=Math.imul(ht,_t))+Math.imul(At,Xe)|0,H=Math.imul(At,_t),B=B+Math.imul(ye,Kt)|0,R=(R=R+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,H=H+Math.imul(Le,Pe)|0,B=B+Math.imul(G,ce)|0,R=(R=R+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,H=H+Math.imul(ie,Me)|0,B=B+Math.imul(he,ft)|0,R=(R=R+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,H=H+Math.imul(Ae,Rt)|0,B=B+Math.imul(lt,Re)|0,R=(R=R+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,H=H+Math.imul(W,Je)|0,B=B+Math.imul(be,we)|0,R=(R=R+Math.imul(be,Fe)|0)+Math.imul($,we)|0,H=H+Math.imul($,Fe)|0,B=B+Math.imul(Ee,at)|0,R=(R=R+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,H=H+Math.imul(ne,yt)|0;var $e=(_+(B=B+Math.imul(Z,Xt)|0)|0)+((8191&(R=(R=R+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0))<<13)|0;_=((H=H+Math.imul(te,qt)|0)+(R>>>13)|0)+($e>>>26)|0,$e&=67108863,B=Math.imul(jt,Xe),R=(R=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,H=Math.imul(Gt,_t),B=B+Math.imul(ht,Kt)|0,R=(R=R+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,H=H+Math.imul(At,Pe)|0,B=B+Math.imul(ye,ce)|0,R=(R=R+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,H=H+Math.imul(Le,Me)|0,B=B+Math.imul(G,ft)|0,R=(R=R+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,H=H+Math.imul(ie,Rt)|0,B=B+Math.imul(he,Re)|0,R=(R=R+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,H=H+Math.imul(Ae,Je)|0,B=B+Math.imul(lt,we)|0,R=(R=R+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,H=H+Math.imul(W,Fe)|0,B=B+Math.imul(be,at)|0,R=(R=R+Math.imul(be,yt)|0)+Math.imul($,at)|0,H=H+Math.imul($,yt)|0,B=B+Math.imul(Ee,Xt)|0,R=(R=R+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,H=H+Math.imul(ne,qt)|0;var bt=(_+(B=B+Math.imul(Z,ui)|0)|0)+((8191&(R=(R=R+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;_=((H=H+Math.imul(te,si)|0)+(R>>>13)|0)+(bt>>>26)|0,bt&=67108863,B=Math.imul(vt,Xe),R=(R=Math.imul(vt,_t))+Math.imul(kt,Xe)|0,H=Math.imul(kt,_t),B=B+Math.imul(jt,Kt)|0,R=(R=R+Math.imul(jt,Pe)|0)+Math.imul(Gt,Kt)|0,H=H+Math.imul(Gt,Pe)|0,B=B+Math.imul(ht,ce)|0,R=(R=R+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,H=H+Math.imul(At,Me)|0,B=B+Math.imul(ye,ft)|0,R=(R=R+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,H=H+Math.imul(Le,Rt)|0,B=B+Math.imul(G,Re)|0,R=(R=R+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,H=H+Math.imul(ie,Je)|0,B=B+Math.imul(he,we)|0,R=(R=R+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,H=H+Math.imul(Ae,Fe)|0,B=B+Math.imul(lt,at)|0,R=(R=R+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,H=H+Math.imul(W,yt)|0,B=B+Math.imul(be,Xt)|0,R=(R=R+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,H=H+Math.imul($,qt)|0,B=B+Math.imul(Ee,ui)|0,R=(R=R+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0,H=H+Math.imul(ne,si)|0;var Vt=(_+(B=B+Math.imul(Z,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(Z,Ui)|0)+Math.imul(te,Gi)|0))<<13)|0;_=((H=H+Math.imul(te,Ui)|0)+(R>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,B=Math.imul(vt,Kt),R=(R=Math.imul(vt,Pe))+Math.imul(kt,Kt)|0,H=Math.imul(kt,Pe),B=B+Math.imul(jt,ce)|0,R=(R=R+Math.imul(jt,Me)|0)+Math.imul(Gt,ce)|0,H=H+Math.imul(Gt,Me)|0,B=B+Math.imul(ht,ft)|0,R=(R=R+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,H=H+Math.imul(At,Rt)|0,B=B+Math.imul(ye,Re)|0,R=(R=R+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,H=H+Math.imul(Le,Je)|0,B=B+Math.imul(G,we)|0,R=(R=R+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,H=H+Math.imul(ie,Fe)|0,B=B+Math.imul(he,at)|0,R=(R=R+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,H=H+Math.imul(Ae,yt)|0,B=B+Math.imul(lt,Xt)|0,R=(R=R+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,H=H+Math.imul(W,qt)|0,B=B+Math.imul(be,ui)|0,R=(R=R+Math.imul(be,si)|0)+Math.imul($,ui)|0,H=H+Math.imul($,si)|0;var yi=(_+(B=B+Math.imul(Ee,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(Ee,Ui)|0)+Math.imul(ne,Gi)|0))<<13)|0;_=((H=H+Math.imul(ne,Ui)|0)+(R>>>13)|0)+(yi>>>26)|0,yi&=67108863,B=Math.imul(vt,ce),R=(R=Math.imul(vt,Me))+Math.imul(kt,ce)|0,H=Math.imul(kt,Me),B=B+Math.imul(jt,ft)|0,R=(R=R+Math.imul(jt,Rt)|0)+Math.imul(Gt,ft)|0,H=H+Math.imul(Gt,Rt)|0,B=B+Math.imul(ht,Re)|0,R=(R=R+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,H=H+Math.imul(At,Je)|0,B=B+Math.imul(ye,we)|0,R=(R=R+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,H=H+Math.imul(Le,Fe)|0,B=B+Math.imul(G,at)|0,R=(R=R+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,H=H+Math.imul(ie,yt)|0,B=B+Math.imul(he,Xt)|0,R=(R=R+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,H=H+Math.imul(Ae,qt)|0,B=B+Math.imul(lt,ui)|0,R=(R=R+Math.imul(lt,si)|0)+Math.imul(W,ui)|0,H=H+Math.imul(W,si)|0;var Li=(_+(B=B+Math.imul(be,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(be,Ui)|0)+Math.imul($,Gi)|0))<<13)|0;_=((H=H+Math.imul($,Ui)|0)+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,B=Math.imul(vt,ft),R=(R=Math.imul(vt,Rt))+Math.imul(kt,ft)|0,H=Math.imul(kt,Rt),B=B+Math.imul(jt,Re)|0,R=(R=R+Math.imul(jt,Je)|0)+Math.imul(Gt,Re)|0,H=H+Math.imul(Gt,Je)|0,B=B+Math.imul(ht,we)|0,R=(R=R+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,H=H+Math.imul(At,Fe)|0,B=B+Math.imul(ye,at)|0,R=(R=R+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,H=H+Math.imul(Le,yt)|0,B=B+Math.imul(G,Xt)|0,R=(R=R+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,H=H+Math.imul(ie,qt)|0,B=B+Math.imul(he,ui)|0,R=(R=R+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0,H=H+Math.imul(Ae,si)|0;var Ji=(_+(B=B+Math.imul(lt,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(lt,Ui)|0)+Math.imul(W,Gi)|0))<<13)|0;_=((H=H+Math.imul(W,Ui)|0)+(R>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,B=Math.imul(vt,Re),R=(R=Math.imul(vt,Je))+Math.imul(kt,Re)|0,H=Math.imul(kt,Je),B=B+Math.imul(jt,we)|0,R=(R=R+Math.imul(jt,Fe)|0)+Math.imul(Gt,we)|0,H=H+Math.imul(Gt,Fe)|0,B=B+Math.imul(ht,at)|0,R=(R=R+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,H=H+Math.imul(At,yt)|0,B=B+Math.imul(ye,Xt)|0,R=(R=R+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,H=H+Math.imul(Le,qt)|0,B=B+Math.imul(G,ui)|0,R=(R=R+Math.imul(G,si)|0)+Math.imul(ie,ui)|0,H=H+Math.imul(ie,si)|0;var Yi=(_+(B=B+Math.imul(he,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(he,Ui)|0)+Math.imul(Ae,Gi)|0))<<13)|0;_=((H=H+Math.imul(Ae,Ui)|0)+(R>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,B=Math.imul(vt,we),R=(R=Math.imul(vt,Fe))+Math.imul(kt,we)|0,H=Math.imul(kt,Fe),B=B+Math.imul(jt,at)|0,R=(R=R+Math.imul(jt,yt)|0)+Math.imul(Gt,at)|0,H=H+Math.imul(Gt,yt)|0,B=B+Math.imul(ht,Xt)|0,R=(R=R+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,H=H+Math.imul(At,qt)|0,B=B+Math.imul(ye,ui)|0,R=(R=R+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0,H=H+Math.imul(Le,si)|0;var an=(_+(B=B+Math.imul(G,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(G,Ui)|0)+Math.imul(ie,Gi)|0))<<13)|0;_=((H=H+Math.imul(ie,Ui)|0)+(R>>>13)|0)+(an>>>26)|0,an&=67108863,B=Math.imul(vt,at),R=(R=Math.imul(vt,yt))+Math.imul(kt,at)|0,H=Math.imul(kt,yt),B=B+Math.imul(jt,Xt)|0,R=(R=R+Math.imul(jt,qt)|0)+Math.imul(Gt,Xt)|0,H=H+Math.imul(Gt,qt)|0,B=B+Math.imul(ht,ui)|0,R=(R=R+Math.imul(ht,si)|0)+Math.imul(At,ui)|0,H=H+Math.imul(At,si)|0;var pn=(_+(B=B+Math.imul(ye,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(ye,Ui)|0)+Math.imul(Le,Gi)|0))<<13)|0;_=((H=H+Math.imul(Le,Ui)|0)+(R>>>13)|0)+(pn>>>26)|0,pn&=67108863,B=Math.imul(vt,Xt),R=(R=Math.imul(vt,qt))+Math.imul(kt,Xt)|0,H=Math.imul(kt,qt),B=B+Math.imul(jt,ui)|0,R=(R=R+Math.imul(jt,si)|0)+Math.imul(Gt,ui)|0,H=H+Math.imul(Gt,si)|0;var Zt=(_+(B=B+Math.imul(ht,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(ht,Ui)|0)+Math.imul(At,Gi)|0))<<13)|0;_=((H=H+Math.imul(At,Ui)|0)+(R>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,B=Math.imul(vt,ui),R=(R=Math.imul(vt,si))+Math.imul(kt,ui)|0,H=Math.imul(kt,si);var bi=(_+(B=B+Math.imul(jt,Gi)|0)|0)+((8191&(R=(R=R+Math.imul(jt,Ui)|0)+Math.imul(Gt,Gi)|0))<<13)|0;_=((H=H+Math.imul(Gt,Ui)|0)+(R>>>13)|0)+(bi>>>26)|0,bi&=67108863;var qe=(_+(B=Math.imul(vt,Gi))|0)+((8191&(R=(R=Math.imul(vt,Ui))+Math.imul(kt,Gi)|0))<<13)|0;return _=((H=Math.imul(kt,Ui))+(R>>>13)|0)+(qe>>>26)|0,qe&=67108863,n[0]=Wi,n[1]=ct,n[2]=Ft,n[3]=pt,n[4]=it,n[5]=It,n[6]=ue,n[7]=$e,n[8]=bt,n[9]=Vt,n[10]=yi,n[11]=Li,n[12]=Ji,n[13]=Yi,n[14]=an,n[15]=pn,n[16]=Zt,n[17]=bi,n[18]=qe,0!==_&&(n[19]=_,S.length++),S};function ae(d,c,g){g.negative=c.negative^d.negative,g.length=d.length+c.length;for(var S=0,I=0,C=0;C>>26)|0)>>>26,n&=67108863}g.words[C]=_,S=n,n=I}return 0!==S?g.words[C]=S:g.length--,g._strip()}function X(d,c,g){return ae(d,c,g)}function de(d,c){this.x=d,this.y=c}Math.imul||(Y=U),a.prototype.mulTo=function(c,g){var I=this.length+c.length;return 10===this.length&&10===c.length?Y(this,c,g):I<63?U(this,c,g):I<1024?ae(this,c,g):X(this,c,g)},de.prototype.makeRBT=function(c){for(var g=new Array(c),S=a.prototype._countBits(c)-1,I=0;I>=1;return I},de.prototype.permute=function(c,g,S,I,C,n){for(var _=0;_>>=1)C++;return 1<>>=13),C>>>=13;for(n=2*g;n>=26,S+=C/67108864|0,S+=n>>>26,this.words[I]=67108863&n}return 0!==S&&(this.words[I]=S,this.length++),g?this.ineg():this},a.prototype.muln=function(c){return this.clone().imuln(c)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(c){var g=function V(d){for(var c=new Array(d.bitLength()),g=0;g>>g%26&1;return c}(c);if(0===g.length)return new a(1);for(var S=this,I=0;I=0);var C,g=c%26,S=(c-g)/26,I=67108863>>>26-g<<26-g;if(0!==g){var n=0;for(C=0;C>>26-g}n&&(this.words[C]=n,this.length++)}if(0!==S){for(C=this.length-1;C>=0;C--)this.words[C+S]=this.words[C];for(C=0;C=0),I=g?(g-g%26)/26:0;var C=c%26,n=Math.min((c-C)/26,this.length),_=67108863^67108863>>>C<n)for(this.length-=n,R=0;R=0&&(0!==H||R>=I);R--){var Q=0|this.words[R];this.words[R]=H<<26-C|Q>>>C,H=Q&_}return B&&0!==H&&(B.words[B.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,g,S){return u(0===this.negative),this.iushrn(c,g,S)},a.prototype.shln=function(c){return this.clone().ishln(c)},a.prototype.ushln=function(c){return this.clone().iushln(c)},a.prototype.shrn=function(c){return this.clone().ishrn(c)},a.prototype.ushrn=function(c){return this.clone().iushrn(c)},a.prototype.testn=function(c){u("number"==typeof c&&c>=0);var g=c%26,S=(c-g)/26;return!(this.length<=S||!(this.words[S]&1<=0);var g=c%26,S=(c-g)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=S?this:(0!==g&&S++,this.length=Math.min(S,this.length),0!==g&&(this.words[this.length-1]&=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},a.prototype.isubn=function(c){if(u("number"==typeof c),u(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(B/67108864|0),this.words[C+S]=67108863&n}for(;C>26,this.words[C+S]=67108863&n;if(0===_)return this._strip();for(u(-1===_),_=0,C=0;C>26,this.words[C]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,g){var S,I=this.clone(),C=c,n=0|C.words[C.length-1];0!=(S=26-this._countBits(n))&&(C=C.ushln(S),I.iushln(S),n=0|C.words[C.length-1]);var R,B=I.length-C.length;if("mod"!==g){(R=new a(null)).length=B+1,R.words=new Array(R.length);for(var H=0;H=0;Z--){var te=67108864*(0|I.words[C.length+Z])+(0|I.words[C.length+Z-1]);for(te=Math.min(te/n|0,67108863),I._ishlnsubmul(C,te,Z);0!==I.negative;)te--,I.negative=0,I._ishlnsubmul(C,1,Z),I.isZero()||(I.negative^=1);R&&(R.words[Z]=te)}return R&&R._strip(),I._strip(),"div"!==g&&0!==S&&I.iushrn(S),{div:R||null,mod:I}},a.prototype.divmod=function(c,g,S){return u(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,g),"mod"!==g&&(I=n.div.neg()),"div"!==g&&(C=n.mod.neg(),S&&0!==C.negative&&C.iadd(c)),{div:I,mod:C}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),g),"mod"!==g&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),g),"div"!==g&&(C=n.mod.neg(),S&&0!==C.negative&&C.isub(c)),{div:n.div,mod:C}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===g?{div:this.divn(c.words[0]),mod:null}:"mod"===g?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,g);var I,C,n},a.prototype.div=function(c){return this.divmod(c,"div",!1).div},a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},a.prototype.divRound=function(c){var g=this.divmod(c);if(g.mod.isZero())return g.div;var S=0!==g.div.negative?g.mod.isub(c):g.mod,I=c.ushrn(1),C=c.andln(1),n=S.cmp(I);return n<0||1===C&&0===n?g.div:0!==g.div.negative?g.div.isubn(1):g.div.iaddn(1)},a.prototype.modrn=function(c){var g=c<0;g&&(c=-c),u(c<=67108863);for(var S=(1<<26)%c,I=0,C=this.length-1;C>=0;C--)I=(S*I+(0|this.words[C]))%c;return g?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var g=c<0;g&&(c=-c),u(c<=67108863);for(var S=0,I=this.length-1;I>=0;I--){var C=(0|this.words[I])+67108864*S;this.words[I]=C/c|0,S=C%c}return this._strip(),g?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){u(0===c.negative),u(!c.isZero());var g=this,S=c.clone();g=0!==g.negative?g.umod(c):g.clone();for(var I=new a(1),C=new a(0),n=new a(0),_=new a(1),B=0;g.isEven()&&S.isEven();)g.iushrn(1),S.iushrn(1),++B;for(var R=S.clone(),H=g.clone();!g.isZero();){for(var Q=0,Z=1;0==(g.words[0]&Z)&&Q<26;++Q,Z<<=1);if(Q>0)for(g.iushrn(Q);Q-- >0;)(I.isOdd()||C.isOdd())&&(I.iadd(R),C.isub(H)),I.iushrn(1),C.iushrn(1);for(var te=0,Te=1;0==(S.words[0]&Te)&&te<26;++te,Te<<=1);if(te>0)for(S.iushrn(te);te-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(R),_.isub(H)),n.iushrn(1),_.iushrn(1);g.cmp(S)>=0?(g.isub(S),I.isub(n),C.isub(_)):(S.isub(g),n.isub(I),_.isub(C))}return{a:n,b:_,gcd:S.iushln(B)}},a.prototype._invmp=function(c){u(0===c.negative),u(!c.isZero());var Q,g=this,S=c.clone();g=0!==g.negative?g.umod(c):g.clone();for(var I=new a(1),C=new a(0),n=S.clone();g.cmpn(1)>0&&S.cmpn(1)>0;){for(var _=0,B=1;0==(g.words[0]&B)&&_<26;++_,B<<=1);if(_>0)for(g.iushrn(_);_-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var R=0,H=1;0==(S.words[0]&H)&&R<26;++R,H<<=1);if(R>0)for(S.iushrn(R);R-- >0;)C.isOdd()&&C.iadd(n),C.iushrn(1);g.cmp(S)>=0?(g.isub(S),I.isub(C)):(S.isub(g),C.isub(I))}return(Q=0===g.cmpn(1)?I:C).cmpn(0)<0&&Q.iadd(c),Q},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var g=this.clone(),S=c.clone();g.negative=0,S.negative=0;for(var I=0;g.isEven()&&S.isEven();I++)g.iushrn(1),S.iushrn(1);for(;;){for(;g.isEven();)g.iushrn(1);for(;S.isEven();)S.iushrn(1);var C=g.cmp(S);if(C<0){var n=g;g=S,S=n}else if(0===C||0===S.cmpn(1))break;g.isub(S)}return S.iushln(I)},a.prototype.invm=function(c){return this.egcd(c).a.umod(c)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(c){return this.words[0]&c},a.prototype.bincn=function(c){u("number"==typeof c);var g=c%26,S=(c-g)/26,I=1<>>26,this.words[n]=_&=67108863}return 0!==C&&(this.words[n]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var S,g=c<0;if(0!==this.negative&&!g)return-1;if(0===this.negative&&g)return 1;if(this._strip(),this.length>1)S=1;else{g&&(c=-c),u(c<=67108863,"Number is too big");var I=0|this.words[0];S=I===c?0:Ic.length)return 1;if(this.length=0;S--){var I=0|this.words[S],C=0|c.words[S];if(I!==C){IC&&(g=1);break}}return g},a.prototype.gtn=function(c){return 1===this.cmpn(c)},a.prototype.gt=function(c){return 1===this.cmp(c)},a.prototype.gten=function(c){return this.cmpn(c)>=0},a.prototype.gte=function(c){return this.cmp(c)>=0},a.prototype.ltn=function(c){return-1===this.cmpn(c)},a.prototype.lt=function(c){return-1===this.cmp(c)},a.prototype.lten=function(c){return this.cmpn(c)<=0},a.prototype.lte=function(c){return this.cmp(c)<=0},a.prototype.eqn=function(c){return 0===this.cmpn(c)},a.prototype.eq=function(c){return 0===this.cmp(c)},a.red=function(c){return new t(c)},a.prototype.toRed=function(c){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(c){return this.red=c,this},a.prototype.forceRed=function(c){return u(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return u(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var q={k256:null,p224:null,p192:null,p25519:null};function re(d,c){this.name=d,this.p=new a(c,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ee(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _e(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(d){if("string"==typeof d){var c=a._prime(d);this.m=c.p,this.prime=c}else u(d.gtn(1),"modulus must be greater than 1"),this.m=d,this.prime=null}function r(d){t.call(this,d),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}re.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},re.prototype.ireduce=function(c){var S,g=c;do{this.split(g,this.tmp),S=(g=(g=this.imulK(g)).iadd(this.tmp)).bitLength()}while(S>this.n);var I=S0?g.isub(this.p):void 0!==g.strip?g.strip():g._strip(),g},re.prototype.split=function(c,g){c.iushrn(this.n,0,g)},re.prototype.imulK=function(c){return c.imul(this.k)},b(le,re),le.prototype.split=function(c,g){for(var S=4194303,I=Math.min(c.length,9),C=0;C>>22,n=_}c.words[C-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},le.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var g=0,S=0;S>>=26,c.words[S]=C,g=I}return 0!==g&&(c.words[c.length++]=g),c},a._prime=function(c){if(q[c])return q[c];var g;if("k256"===c)g=new le;else if("p224"===c)g=new ee;else if("p192"===c)g=new _e;else{if("p25519"!==c)throw new Error("Unknown prime "+c);g=new x}return q[c]=g,g},t.prototype._verify1=function(c){u(0===c.negative,"red works only with positives"),u(c.red,"red works only with red numbers")},t.prototype._verify2=function(c,g){u(0==(c.negative|g.negative),"red works only with positives"),u(c.red&&c.red===g.red,"red works only with red numbers")},t.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(T(c,c.umod(this.m)._forceRed(this)),c)},t.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},t.prototype.add=function(c,g){this._verify2(c,g);var S=c.add(g);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},t.prototype.iadd=function(c,g){this._verify2(c,g);var S=c.iadd(g);return S.cmp(this.m)>=0&&S.isub(this.m),S},t.prototype.sub=function(c,g){this._verify2(c,g);var S=c.sub(g);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},t.prototype.isub=function(c,g){this._verify2(c,g);var S=c.isub(g);return S.cmpn(0)<0&&S.iadd(this.m),S},t.prototype.shl=function(c,g){return this._verify1(c),this.imod(c.ushln(g))},t.prototype.imul=function(c,g){return this._verify2(c,g),this.imod(c.imul(g))},t.prototype.mul=function(c,g){return this._verify2(c,g),this.imod(c.mul(g))},t.prototype.isqr=function(c){return this.imul(c,c.clone())},t.prototype.sqr=function(c){return this.mul(c,c)},t.prototype.sqrt=function(c){if(c.isZero())return c.clone();var g=this.m.andln(3);if(u(g%2==1),3===g){var S=this.m.add(new a(1)).iushrn(2);return this.pow(c,S)}for(var I=this.m.subn(1),C=0;!I.isZero()&&0===I.andln(1);)C++,I.iushrn(1);u(!I.isZero());var n=new a(1).toRed(this),_=n.redNeg(),B=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new a(2*R*R).toRed(this);0!==this.pow(R,B).cmp(_);)R.redIAdd(_);for(var H=this.pow(R,I),Q=this.pow(c,I.addn(1).iushrn(1)),Z=this.pow(c,I),te=C;0!==Z.cmp(n);){for(var Te=Z,Ee=0;0!==Te.cmp(n);Ee++)Te=Te.redSqr();u(Ee=0;C--){for(var H=g.words[C],Q=R-1;Q>=0;Q--){var Z=H>>Q&1;n!==I[0]&&(n=this.sqr(n)),0!==Z||0!==_?(_<<=1,_|=Z,(4==++B||0===C&&0===Q)&&(n=this.mul(n,I[_]),B=0,_=0)):B=0}R=26}return n},t.prototype.convertTo=function(c){var g=c.umod(this.m);return g===c?g.clone():g},t.prototype.convertFrom=function(c){var g=c.clone();return g.red=null,g},a.mont=function(c){return new r(c)},b(r,t),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var g=this.imod(c.mul(this.rinv));return g.red=null,g},r.prototype.imul=function(c,g){if(c.isZero()||g.isZero())return c.words[0]=0,c.length=1,c;var S=c.imul(g),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=S.isub(I).iushrn(this.shift),n=C;return C.cmp(this.m)>=0?n=C.isub(this.m):C.cmpn(0)<0&&(n=C.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,g){if(c.isZero()||g.isZero())return new a(0)._forceRed(this);var S=c.mul(g),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=S.isub(I).iushrn(this.shift),n=C;return C.cmp(this.m)>=0?n=C.isub(this.m):C.cmpn(0)<0&&(n=C.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},7950:(He,j,p)=>{var e;function i(b){this.rand=b}if(He.exports=function(a){return e||(e=new i(null)),e.generate(a)},He.exports.Rand=i,i.prototype.generate=function(a){return this._rand(a)},i.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var y=new Uint8Array(a),h=0;h{var e=p(3502).Buffer;function i(P){e.isBuffer(P)||(P=e.from(P));for(var D=P.length/4|0,T=new Array(D),M=0;M>>24]^k[Y>>>16&255]^w[ae>>>8&255]^V[255&X]^D[ee++],q=E[Y>>>24]^k[ae>>>16&255]^w[X>>>8&255]^V[255&U]^D[ee++],re=E[ae>>>24]^k[X>>>16&255]^w[U>>>8&255]^V[255&Y]^D[ee++],le=E[X>>>24]^k[U>>>16&255]^w[Y>>>8&255]^V[255&ae]^D[ee++],U=de,Y=q,ae=re,X=le;return de=(M[U>>>24]<<24|M[Y>>>16&255]<<16|M[ae>>>8&255]<<8|M[255&X])^D[ee++],q=(M[Y>>>24]<<24|M[ae>>>16&255]<<16|M[X>>>8&255]<<8|M[255&U])^D[ee++],re=(M[ae>>>24]<<24|M[X>>>16&255]<<16|M[U>>>8&255]<<8|M[255&Y])^D[ee++],le=(M[X>>>24]<<24|M[U>>>16&255]<<16|M[Y>>>8&255]<<8|M[255&ae])^D[ee++],[de>>>=0,q>>>=0,re>>>=0,le>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var P=new Array(256),D=0;D<256;D++)P[D]=D<128?D<<1:D<<1^283;for(var T=[],M=[],A=[[],[],[],[]],E=[[],[],[],[]],k=0,w=0,V=0;V<256;++V){var U=w^w<<1^w<<2^w<<3^w<<4;T[k]=U=U>>>8^255&U^99,M[U]=k;var Y=P[k],ae=P[Y],X=P[ae],de=257*P[U]^16843008*U;A[0][k]=de<<24|de>>>8,A[1][k]=de<<16|de>>>16,A[2][k]=de<<8|de>>>24,A[3][k]=de,E[0][U]=(de=16843009*X^65537*ae^257*Y^16843008*k)<<24|de>>>8,E[1][U]=de<<16|de>>>16,E[2][U]=de<<8|de>>>24,E[3][U]=de,0===k?k=w=1:(k=Y^P[P[P[X^Y]]],w^=P[P[w]])}return{SBOX:T,INV_SBOX:M,SUB_MIX:A,INV_SUB_MIX:E}}();function h(P){this._key=i(P),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var P=this._key,D=P.length,T=D+6,M=4*(T+1),A=[],E=0;E>>24)>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k],k^=a[E/D|0]<<24):D>6&&E%D==4&&(k=y.SBOX[k>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k]),A[E]=A[E-D]^k}for(var w=[],V=0;V>>24]]^y.INV_SUB_MIX[1][y.SBOX[Y>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[Y>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&Y]]}this._nRounds=T,this._keySchedule=A,this._invKeySchedule=w},h.prototype.encryptBlockRaw=function(P){return b(P=i(P),this._keySchedule,y.SUB_MIX,y.SBOX,this._nRounds)},h.prototype.encryptBlock=function(P){var D=this.encryptBlockRaw(P),T=e.allocUnsafe(16);return T.writeUInt32BE(D[0],0),T.writeUInt32BE(D[1],4),T.writeUInt32BE(D[2],8),T.writeUInt32BE(D[3],12),T},h.prototype.decryptBlock=function(P){var D=(P=i(P))[1];P[1]=P[3],P[3]=D;var T=b(P,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),M=e.allocUnsafe(16);return M.writeUInt32BE(T[0],0),M.writeUInt32BE(T[3],4),M.writeUInt32BE(T[2],8),M.writeUInt32BE(T[1],12),M},h.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},He.exports.AES=h},9382:(He,j,p)=>{var e=p(1899),i=p(3502).Buffer,u=p(1052),b=p(3894),a=p(8857),y=p(8789),h=p(7968);function T(M,A,E,k){u.call(this);var w=i.alloc(4,0);this._cipher=new e.AES(A);var V=this._cipher.encryptBlock(w);this._ghash=new a(V),E=function D(M,A,E){if(12===A.length)return M._finID=i.concat([A,i.from([0,0,0,1])]),i.concat([A,i.from([0,0,0,2])]);var k=new a(E),w=A.length,V=w%16;k.update(A),V&&k.update(i.alloc(V=16-V,0)),k.update(i.alloc(8,0));var U=8*w,Y=i.alloc(8);Y.writeUIntBE(U,0,8),k.update(Y),M._finID=k.state;var ae=i.from(M._finID);return h(ae),ae}(this,E,V),this._prev=i.from(E),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=M,this._authTag=null,this._called=!1}b(T,u),T.prototype._update=function(M){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=i.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,M);return this._ghash.update(this._decrypt?M:E),this._len+=M.length,E},T.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var M=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(M,A){var E=0;M.length!==A.length&&E++;for(var k=Math.min(M.length,A.length),w=0;w{var e=p(6900),i=p(856),u=p(4946);j.createCipher=j.Cipher=e.createCipher,j.createCipheriv=j.Cipheriv=e.createCipheriv,j.createDecipher=j.Decipher=i.createDecipher,j.createDecipheriv=j.Decipheriv=i.createDecipheriv,j.listCiphers=j.getCiphers=function b(){return Object.keys(u)}},856:(He,j,p)=>{var e=p(9382),i=p(3502).Buffer,u=p(9171),b=p(8441),a=p(1052),y=p(1899),h=p(347);function D(k,w,V){a.call(this),this._cache=new T,this._last=void 0,this._cipher=new y.AES(w),this._prev=i.from(V),this._mode=k,this._autopadding=!0}function T(){this.cache=i.allocUnsafe(0)}function A(k,w,V){var U=u[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=i.from(V)),"GCM"!==U.mode&&V.length!==U.iv)throw new TypeError("invalid iv length "+V.length);if("string"==typeof w&&(w=i.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===U.type?new b(U.module,w,V,!0):"auth"===U.type?new e(U.module,w,V,!0):new D(U.module,w,V)}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,V,U=[];w=this._cache.get(this._autopadding);)V=this._mode.decrypt(this,w),U.push(V);return i.concat(U)},D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function M(k){var w=k[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var V=-1;++V16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},T.prototype.flush=function(){if(this.cache.length)return this.cache},j.createDecipher=function E(k,w){var V=u[k.toLowerCase()];if(!V)throw new TypeError("invalid suite type");var U=h(w,!1,V.key,V.iv);return A(k,U.key,U.iv)},j.createDecipheriv=A},6900:(He,j,p)=>{var e=p(9171),i=p(9382),u=p(3502).Buffer,b=p(8441),a=p(1052),y=p(1899),h=p(347);function D(k,w,V){a.call(this),this._cache=new M,this._cipher=new y.AES(w),this._prev=u.from(V),this._mode=k,this._autopadding=!0}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,V,U=[];w=this._cache.get();)V=this._mode.encrypt(this,w),U.push(V);return u.concat(U)};var T=u.alloc(16,16);function M(){this.cache=u.allocUnsafe(0)}function A(k,w,V){var U=e[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=u.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof V&&(V=u.from(V)),"GCM"!==U.mode&&V.length!==U.iv)throw new TypeError("invalid iv length "+V.length);return"stream"===U.type?new b(U.module,w,V):"auth"===U.type?new i(U.module,w,V):new D(U.module,w,V)}D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(T))throw this._cipher.scrub(),new Error("data not multiple of block length")},D.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},M.prototype.add=function(k){this.cache=u.concat([this.cache,k])},M.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},M.prototype.flush=function(){for(var k=16-this.cache.length,w=u.allocUnsafe(k),V=-1;++V{var e=p(3502).Buffer,i=e.alloc(16,0);function b(y){var h=e.allocUnsafe(16);return h.writeUInt32BE(y[0]>>>0,0),h.writeUInt32BE(y[1]>>>0,4),h.writeUInt32BE(y[2]>>>0,8),h.writeUInt32BE(y[3]>>>0,12),h}function a(y){this.h=y,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}a.prototype.ghash=function(y){for(var h=-1;++h0;P--)y[P]=y[P]>>>1|(1&y[P-1])<<31;y[0]=y[0]>>>1,T&&(y[0]=y[0]^225<<24)}this.state=b(h)},a.prototype.update=function(y){this.cache=e.concat([this.cache,y]);for(var h;this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},a.prototype.final=function(y,h){return this.cache.length&&this.ghash(e.concat([this.cache,i],16)),this.ghash(b([0,y,0,h])),this.state},He.exports=a},7968:He=>{He.exports=function j(p){for(var i,e=p.length;e--;){if(255!==(i=p.readUInt8(e))){i++,p.writeUInt8(i,e);break}p.writeUInt8(0,e)}}},4903:(He,j,p)=>{var e=p(8789);j.encrypt=function(i,u){var b=e(u,i._prev);return i._prev=i._cipher.encryptBlock(b),i._prev},j.decrypt=function(i,u){var b=i._prev;i._prev=u;var a=i._cipher.decryptBlock(u);return e(a,b)}},9885:(He,j,p)=>{var e=p(3502).Buffer,i=p(8789);function u(b,a,y){var h=a.length,P=i(a,b._cache);return b._cache=b._cache.slice(h),b._prev=e.concat([b._prev,y?a:P]),P}j.encrypt=function(b,a,y){for(var P,h=e.allocUnsafe(0);a.length;){if(0===b._cache.length&&(b._cache=b._cipher.encryptBlock(b._prev),b._prev=e.allocUnsafe(0)),!(b._cache.length<=a.length)){h=e.concat([h,u(b,a,y)]);break}h=e.concat([h,u(b,a.slice(0,P=b._cache.length),y)]),a=a.slice(P)}return h}},6531:(He,j,p)=>{var e=p(3502).Buffer;function i(b,a,y){for(var M,A,P=-1,T=0;++P<8;)T+=(128&(A=b._cipher.encryptBlock(b._prev)[0]^(M=a&1<<7-P?128:0)))>>P%8,b._prev=u(b._prev,y?M:A);return T}function u(b,a){var y=b.length,h=-1,P=e.allocUnsafe(b.length);for(b=e.concat([b,e.from([a])]);++h>7;return P}j.encrypt=function(b,a,y){for(var h=a.length,P=e.allocUnsafe(h),D=-1;++D{var e=p(3502).Buffer;function i(u,b,a){var h=u._cipher.encryptBlock(u._prev)[0]^b;return u._prev=e.concat([u._prev.slice(1),e.from([a?b:h])]),h}j.encrypt=function(u,b,a){for(var y=b.length,h=e.allocUnsafe(y),P=-1;++P{var e=p(8789),i=p(3502).Buffer,u=p(7968);function b(y){var h=y._cipher.encryptBlockRaw(y._prev);return u(y._prev),h}j.encrypt=function(y,h){var P=Math.ceil(h.length/16),D=y._cache.length;y._cache=i.concat([y._cache,i.allocUnsafe(16*P)]);for(var T=0;T{j.encrypt=function(p,e){return p._cipher.encryptBlock(e)},j.decrypt=function(p,e){return p._cipher.decryptBlock(e)}},9171:(He,j,p)=>{var e={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},i=p(4946);for(var u in i)i[u].module=e[i[u].mode];He.exports=i},6816:(He,j,p)=>{var e=p(8789);function i(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}j.encrypt=function(u,b){for(;u._cache.length{var e=p(1899),i=p(3502).Buffer,u=p(1052);function a(y,h,P,D){u.call(this),this._cipher=new e.AES(h),this._prev=i.from(P),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=D,this._mode=y}p(3894)(a,u),a.prototype._update=function(y){return this._mode.encrypt(this,y,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},He.exports=a},5255:(He,j,p)=>{var e=p(9004),i=p(4330),u=p(9171),b=p(1115),a=p(347);function P(M,A,E){if(M=M.toLowerCase(),u[M])return i.createCipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M});throw new TypeError("invalid suite type")}function D(M,A,E){if(M=M.toLowerCase(),u[M])return i.createDecipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M,decrypt:!0});throw new TypeError("invalid suite type")}j.createCipher=j.Cipher=function y(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return P(M,w.key,w.iv)},j.createCipheriv=j.Cipheriv=P,j.createDecipher=j.Decipher=function h(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return D(M,w.key,w.iv)},j.createDecipheriv=j.Decipheriv=D,j.listCiphers=j.getCiphers=function T(){return Object.keys(b).concat(i.getCiphers())}},9004:(He,j,p)=>{var e=p(1052),i=p(3684),u=p(3894),b=p(3502).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function y(h){e.call(this);var T,P=h.mode.toLowerCase(),D=a[P];T=h.decrypt?"decrypt":"encrypt";var M=h.key;b.isBuffer(M)||(M=b.from(M)),("des-ede"===P||"des-ede-cbc"===P)&&(M=b.concat([M,M.slice(0,8)]));var A=h.iv;b.isBuffer(A)||(A=b.from(A)),this._des=D.create({key:M,iv:A,type:T})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],He.exports=y,u(y,e),y.prototype._update=function(h){return b.from(this._des.update(h))},y.prototype._final=function(){return b.from(this._des.final())}},1115:(He,j)=>{j["des-ecb"]={key:8,iv:0},j["des-cbc"]=j.des={key:8,iv:8},j["des-ede3-cbc"]=j.des3={key:24,iv:8},j["des-ede3"]={key:24,iv:0},j["des-ede-cbc"]={key:16,iv:8},j["des-ede"]={key:16,iv:0}},8466:(He,j,p)=>{var e=p(8538),i=p(3753);function b(y){var P,h=y.modulus.byteLength();do{P=new e(i(h))}while(P.cmp(y.modulus)>=0||!P.umod(y.prime1)||!P.umod(y.prime2));return P}function a(y,h){var P=function u(y){var h=b(y);return{blinder:h.toRed(e.mont(y.modulus)).redPow(new e(y.publicExponent)).fromRed(),unblinder:h.invm(y.modulus)}}(h),D=h.modulus.byteLength(),T=new e(y).mul(P.blinder).umod(h.modulus),M=T.toRed(e.mont(h.prime1)),A=T.toRed(e.mont(h.prime2)),E=h.coefficient,k=h.prime1,w=h.prime2,V=M.redPow(h.exponent1).fromRed(),U=A.redPow(h.exponent2).fromRed(),Y=V.isub(U).imul(E).umod(k).imul(w);return U.iadd(Y).imul(P.unblinder).umod(h.modulus).toArrayLike(Buffer,"be",D)}a.getr=b,He.exports=a},7793:(He,j,p)=>{He.exports=p(5207)},3923:(He,j,p)=>{var e=p(8446).Buffer,i=p(6386),u=p(5685),b=p(3894),a=p(9947),y=p(3946),h=p(5207);function P(A){u.Writable.call(this);var E=h[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function D(A){u.Writable.call(this);var E=h[A];if(!E)throw new Error("Unknown message digest");this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function T(A){return new P(A)}function M(A){return new D(A)}Object.keys(h).forEach(function(A){h[A].id=e.from(h[A].id,"hex"),h[A.toLowerCase()]=h[A]}),b(P,u.Writable),P.prototype._write=function(E,k,w){this._hash.update(E),w()},P.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},P.prototype.sign=function(E,k){this.end();var w=this._hash.digest(),V=a(w,E,this._hashType,this._signType,this._tag);return k?V.toString(k):V},b(D,u.Writable),D.prototype._write=function(E,k,w){this._hash.update(E),w()},D.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},D.prototype.verify=function(E,k,w){"string"==typeof k&&(k=e.from(k,w)),this.end();var V=this._hash.digest();return y(k,V,E,this._signType,this._tag)},He.exports={Sign:T,Verify:M,createSign:T,createVerify:M}},9947:(He,j,p)=>{var e=p(8446).Buffer,i=p(4529),u=p(8466),b=p(7715).ec,a=p(8538),y=p(2772),h=p(1308);function A(U,Y,ae,X){if((U=e.from(U.toArray())).length0&&ae.ishrn(X),ae}function w(U,Y,ae){var X,de;do{for(X=e.alloc(0);8*X.length{var e=p(8446).Buffer,i=p(8538),u=p(7715).ec,b=p(2772),a=p(1308);function D(T,M){if(T.cmpn(0)<=0)throw new Error("invalid sig");if(T.cmp(M)>=M)throw new Error("invalid sig")}He.exports=function y(T,M,A,E,k){var w=b(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function h(T,M,A){var E=a[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new u(E).verify(M,T,A.data.subjectPrivateKey.data)}(T,M,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function P(T,M,A){var E=A.data.p,k=A.data.q,w=A.data.g,V=A.data.pub_key,U=b.signature.decode(T,"der"),Y=U.s,ae=U.r;D(Y,k),D(ae,k);var X=i.mont(E),de=Y.invm(k);return 0===w.toRed(X).redPow(new i(M).mul(de).mod(k)).fromRed().mul(V.toRed(X).redPow(ae.mul(de).mod(k)).fromRed()).mod(E).mod(k).cmp(ae)}(T,M,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");M=e.concat([k,M]);for(var V=w.modulus.byteLength(),U=[1],Y=0;M.length+U.length+2{var e=p(3172),i=e.Buffer;function u(a,y){for(var h in a)y[h]=a[h]}function b(a,y,h){return i(a,y,h)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,h){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,h)},b.alloc=function(a,y,h){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},8789:He=>{He.exports=function(p,e){for(var i=Math.min(p.length,e.length),u=new Buffer(i),b=0;b{"use strict";var e=p(5343),i=p(8461),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=h,j.SlowBuffer=function Y(W){return+W!=W&&(W=0),h.alloc(+W)},j.INSPECT_MAX_BYTES=50;var b=2147483647;function y(W){if(W>b)throw new RangeError('The value "'+W+'" is invalid for option "size"');var De=new Uint8Array(W);return Object.setPrototypeOf(De,h.prototype),De}function h(W,De,he){if("number"==typeof W){if("string"==typeof De)throw new TypeError('The "string" argument must be of type string. Received type number');return M(W)}return P(W,De,he)}function P(W,De,he){if("string"==typeof W)return function A(W,De){if(("string"!=typeof De||""===De)&&(De="utf8"),!h.isEncoding(De))throw new TypeError("Unknown encoding: "+De);var he=0|ae(W,De),Ae=y(he),xe=Ae.write(W,De);return xe!==he&&(Ae=Ae.slice(0,xe)),Ae}(W,De);if(ArrayBuffer.isView(W))return function k(W){if($(W,Uint8Array)){var De=new Uint8Array(W);return w(De.buffer,De.byteOffset,De.byteLength)}return E(W)}(W);if(null==W)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if($(W,ArrayBuffer)||W&&$(W.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&($(W,SharedArrayBuffer)||W&&$(W.buffer,SharedArrayBuffer)))return w(W,De,he);if("number"==typeof W)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ae=W.valueOf&&W.valueOf();if(null!=Ae&&Ae!==W)return h.from(Ae,De,he);var xe=function V(W){if(h.isBuffer(W)){var De=0|U(W.length),he=y(De);return 0===he.length||W.copy(he,0,0,De),he}return void 0!==W.length?"number"!=typeof W.length||ke(W.length)?y(0):E(W):"Buffer"===W.type&&Array.isArray(W.data)?E(W.data):void 0}(W);if(xe)return xe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof W[Symbol.toPrimitive])return h.from(W[Symbol.toPrimitive]("string"),De,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}function D(W){if("number"!=typeof W)throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function M(W){return D(W),y(W<0?0:0|U(W))}function E(W){for(var De=W.length<0?0:0|U(W.length),he=y(De),Ae=0;Ae=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|W}function ae(W,De){if(h.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||$(W,ArrayBuffer))return W.byteLength;if("string"!=typeof W)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);var he=W.length,Ae=arguments.length>2&&!0===arguments[2];if(!Ae&&0===he)return 0;for(var xe=!1;;)switch(De){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return Te(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return ze(W).length;default:if(xe)return Ae?-1:Te(W).length;De=(""+De).toLowerCase(),xe=!0}}function X(W,De,he){var Ae=!1;if((void 0===De||De<0)&&(De=0),De>this.length||((void 0===he||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(De>>>=0))return"";for(W||(W="utf8");;)switch(W){case"hex":return C(this,De,he);case"utf8":case"utf-8":return d(this,De,he);case"ascii":return S(this,De,he);case"latin1":case"binary":return I(this,De,he);case"base64":return r(this,De,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,De,he);default:if(Ae)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),Ae=!0}}function de(W,De,he){var Ae=W[De];W[De]=W[he],W[he]=Ae}function q(W,De,he,Ae,xe){if(0===W.length)return-1;if("string"==typeof he?(Ae=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),ke(he=+he)&&(he=xe?0:W.length-1),he<0&&(he=W.length+he),he>=W.length){if(xe)return-1;he=W.length-1}else if(he<0){if(!xe)return-1;he=0}if("string"==typeof De&&(De=h.from(De,Ae)),h.isBuffer(De))return 0===De.length?-1:re(W,De,he,Ae,xe);if("number"==typeof De)return De&=255,"function"==typeof Uint8Array.prototype.indexOf?xe?Uint8Array.prototype.indexOf.call(W,De,he):Uint8Array.prototype.lastIndexOf.call(W,De,he):re(W,[De],he,Ae,xe);throw new TypeError("val must be string, number or Buffer")}function re(W,De,he,Ae,xe){var Le,G=1,ie=W.length,pe=De.length;if(void 0!==Ae&&("ucs2"===(Ae=String(Ae).toLowerCase())||"ucs-2"===Ae||"utf16le"===Ae||"utf-16le"===Ae)){if(W.length<2||De.length<2)return-1;G=2,ie/=2,pe/=2,he/=2}function ye(hi,jt){return 1===G?hi[jt]:hi.readUInt16BE(jt*G)}if(xe){var ot=-1;for(Le=he;Leie&&(he=ie-pe),Le=he;Le>=0;Le--){for(var ht=!0,At=0;Atxe&&(Ae=xe):Ae=xe;var G=De.length;Ae>G/2&&(Ae=G/2);for(var ie=0;ie>8,G.push(he%256),G.push(Ae);return G}(De,W.length-he),W,he,Ae)}function r(W,De,he){return e.fromByteArray(0===De&&he===W.length?W:W.slice(De,he))}function d(W,De,he){he=Math.min(W.length,he);for(var Ae=[],xe=De;xe239?4:G>223?3:G>191?2:1;if(xe+pe<=he)switch(pe){case 1:G<128&&(ie=G);break;case 2:128==(192&(ye=W[xe+1]))&&(ht=(31&G)<<6|63&ye)>127&&(ie=ht);break;case 3:Le=W[xe+2],128==(192&(ye=W[xe+1]))&&128==(192&Le)&&(ht=(15&G)<<12|(63&ye)<<6|63&Le)>2047&&(ht<55296||ht>57343)&&(ie=ht);break;case 4:Le=W[xe+2],ot=W[xe+3],128==(192&(ye=W[xe+1]))&&128==(192&Le)&&128==(192&ot)&&(ht=(15&G)<<18|(63&ye)<<12|(63&Le)<<6|63&ot)>65535&&ht<1114112&&(ie=ht)}null===ie?(ie=65533,pe=1):ie>65535&&(Ae.push((ie-=65536)>>>10&1023|55296),ie=56320|1023&ie),Ae.push(ie),xe+=pe}return function g(W){var De=W.length;if(De<=c)return String.fromCharCode.apply(String,W);for(var he="",Ae=0;Aexe.length?h.from(ie).copy(xe,G):Uint8Array.prototype.set.call(xe,ie,G);else{if(!h.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(xe,G)}G+=ie.length}return xe},h.byteLength=ae,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var De=this.length;if(De%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;hehe&&(De+=" ... "),""},u&&(h.prototype[u]=h.prototype.inspect),h.prototype.compare=function(De,he,Ae,xe,G){if($(De,Uint8Array)&&(De=h.from(De,De.offset,De.byteLength)),!h.isBuffer(De))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof De);if(void 0===he&&(he=0),void 0===Ae&&(Ae=De?De.length:0),void 0===xe&&(xe=0),void 0===G&&(G=this.length),he<0||Ae>De.length||xe<0||G>this.length)throw new RangeError("out of range index");if(xe>=G&&he>=Ae)return 0;if(xe>=G)return-1;if(he>=Ae)return 1;if(this===De)return 0;for(var ie=(G>>>=0)-(xe>>>=0),pe=(Ae>>>=0)-(he>>>=0),ye=Math.min(ie,pe),Le=this.slice(xe,G),ot=De.slice(he,Ae),ht=0;ht>>=0,isFinite(Ae)?(Ae>>>=0,void 0===xe&&(xe="utf8")):(xe=Ae,Ae=void 0)}var G=this.length-he;if((void 0===Ae||Ae>G)&&(Ae=G),De.length>0&&(Ae<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ie=!1;;)switch(xe){case"hex":return le(this,De,he,Ae);case"utf8":case"utf-8":return ee(this,De,he,Ae);case"ascii":case"latin1":case"binary":return _e(this,De,he,Ae);case"base64":return x(this,De,he,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,De,he,Ae);default:if(ie)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ie=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function S(W,De,he){var Ae="";he=Math.min(W.length,he);for(var xe=De;xeAe)&&(he=Ae);for(var xe="",G=De;Ghe)throw new RangeError("Trying to access beyond buffer length")}function B(W,De,he,Ae,xe,G){if(!h.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(De>xe||DeW.length)throw new RangeError("Index out of range")}function R(W,De,he,Ae,xe,G){if(he+Ae>W.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function H(W,De,he,Ae,xe){return De=+De,he>>>=0,xe||R(W,0,he,4),i.write(W,De,he,Ae,23,4),he+4}function Q(W,De,he,Ae,xe){return De=+De,he>>>=0,xe||R(W,0,he,8),i.write(W,De,he,Ae,52,8),he+8}h.prototype.slice=function(De,he){var Ae=this.length;(De=~~De)<0?(De+=Ae)<0&&(De=0):De>Ae&&(De=Ae),(he=void 0===he?Ae:~~he)<0?(he+=Ae)<0&&(he=0):he>Ae&&(he=Ae),he>>=0,he>>>=0,Ae||_(De,he,this.length);for(var xe=this[De],G=1,ie=0;++ie>>=0,he>>>=0,Ae||_(De,he,this.length);for(var xe=this[De+--he],G=1;he>0&&(G*=256);)xe+=this[De+--he]*G;return xe},h.prototype.readUint8=h.prototype.readUInt8=function(De,he){return De>>>=0,he||_(De,1,this.length),this[De]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(De,he){return De>>>=0,he||_(De,2,this.length),this[De]|this[De+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(De,he){return De>>>=0,he||_(De,2,this.length),this[De]<<8|this[De+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(De,he){return De>>>=0,he||_(De,4,this.length),(this[De]|this[De+1]<<8|this[De+2]<<16)+16777216*this[De+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(De,he){return De>>>=0,he||_(De,4,this.length),16777216*this[De]+(this[De+1]<<16|this[De+2]<<8|this[De+3])},h.prototype.readIntLE=function(De,he,Ae){De>>>=0,he>>>=0,Ae||_(De,he,this.length);for(var xe=this[De],G=1,ie=0;++ie=(G*=128)&&(xe-=Math.pow(2,8*he)),xe},h.prototype.readIntBE=function(De,he,Ae){De>>>=0,he>>>=0,Ae||_(De,he,this.length);for(var xe=he,G=1,ie=this[De+--xe];xe>0&&(G*=256);)ie+=this[De+--xe]*G;return ie>=(G*=128)&&(ie-=Math.pow(2,8*he)),ie},h.prototype.readInt8=function(De,he){return De>>>=0,he||_(De,1,this.length),128&this[De]?-1*(255-this[De]+1):this[De]},h.prototype.readInt16LE=function(De,he){De>>>=0,he||_(De,2,this.length);var Ae=this[De]|this[De+1]<<8;return 32768&Ae?4294901760|Ae:Ae},h.prototype.readInt16BE=function(De,he){De>>>=0,he||_(De,2,this.length);var Ae=this[De+1]|this[De]<<8;return 32768&Ae?4294901760|Ae:Ae},h.prototype.readInt32LE=function(De,he){return De>>>=0,he||_(De,4,this.length),this[De]|this[De+1]<<8|this[De+2]<<16|this[De+3]<<24},h.prototype.readInt32BE=function(De,he){return De>>>=0,he||_(De,4,this.length),this[De]<<24|this[De+1]<<16|this[De+2]<<8|this[De+3]},h.prototype.readFloatLE=function(De,he){return De>>>=0,he||_(De,4,this.length),i.read(this,De,!0,23,4)},h.prototype.readFloatBE=function(De,he){return De>>>=0,he||_(De,4,this.length),i.read(this,De,!1,23,4)},h.prototype.readDoubleLE=function(De,he){return De>>>=0,he||_(De,8,this.length),i.read(this,De,!0,52,8)},h.prototype.readDoubleBE=function(De,he){return De>>>=0,he||_(De,8,this.length),i.read(this,De,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(De,he,Ae,xe){De=+De,he>>>=0,Ae>>>=0,xe||B(this,De,he,Ae,Math.pow(2,8*Ae)-1,0);var ie=1,pe=0;for(this[he]=255&De;++pe>>=0,Ae>>>=0,xe||B(this,De,he,Ae,Math.pow(2,8*Ae)-1,0);var ie=Ae-1,pe=1;for(this[he+ie]=255&De;--ie>=0&&(pe*=256);)this[he+ie]=De/pe&255;return he+Ae},h.prototype.writeUint8=h.prototype.writeUInt8=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,1,255,0),this[he]=255&De,he+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,2,65535,0),this[he]=255&De,this[he+1]=De>>>8,he+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,2,65535,0),this[he]=De>>>8,this[he+1]=255&De,he+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,4,4294967295,0),this[he+3]=De>>>24,this[he+2]=De>>>16,this[he+1]=De>>>8,this[he]=255&De,he+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,4,4294967295,0),this[he]=De>>>24,this[he+1]=De>>>16,this[he+2]=De>>>8,this[he+3]=255&De,he+4},h.prototype.writeIntLE=function(De,he,Ae,xe){if(De=+De,he>>>=0,!xe){var G=Math.pow(2,8*Ae-1);B(this,De,he,Ae,G-1,-G)}var ie=0,pe=1,ye=0;for(this[he]=255&De;++ie>0)-ye&255;return he+Ae},h.prototype.writeIntBE=function(De,he,Ae,xe){if(De=+De,he>>>=0,!xe){var G=Math.pow(2,8*Ae-1);B(this,De,he,Ae,G-1,-G)}var ie=Ae-1,pe=1,ye=0;for(this[he+ie]=255&De;--ie>=0&&(pe*=256);)De<0&&0===ye&&0!==this[he+ie+1]&&(ye=1),this[he+ie]=(De/pe>>0)-ye&255;return he+Ae},h.prototype.writeInt8=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,1,127,-128),De<0&&(De=255+De+1),this[he]=255&De,he+1},h.prototype.writeInt16LE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,2,32767,-32768),this[he]=255&De,this[he+1]=De>>>8,he+2},h.prototype.writeInt16BE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,2,32767,-32768),this[he]=De>>>8,this[he+1]=255&De,he+2},h.prototype.writeInt32LE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,4,2147483647,-2147483648),this[he]=255&De,this[he+1]=De>>>8,this[he+2]=De>>>16,this[he+3]=De>>>24,he+4},h.prototype.writeInt32BE=function(De,he,Ae){return De=+De,he>>>=0,Ae||B(this,De,he,4,2147483647,-2147483648),De<0&&(De=4294967295+De+1),this[he]=De>>>24,this[he+1]=De>>>16,this[he+2]=De>>>8,this[he+3]=255&De,he+4},h.prototype.writeFloatLE=function(De,he,Ae){return H(this,De,he,!0,Ae)},h.prototype.writeFloatBE=function(De,he,Ae){return H(this,De,he,!1,Ae)},h.prototype.writeDoubleLE=function(De,he,Ae){return Q(this,De,he,!0,Ae)},h.prototype.writeDoubleBE=function(De,he,Ae){return Q(this,De,he,!1,Ae)},h.prototype.copy=function(De,he,Ae,xe){if(!h.isBuffer(De))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),!xe&&0!==xe&&(xe=this.length),he>=De.length&&(he=De.length),he||(he=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),De.length-he>>=0,Ae=void 0===Ae?this.length:Ae>>>0,De||(De=0),"number"==typeof De)for(ie=he;ie55295&&he<57344){if(!xe){if(he>56319){(De-=3)>-1&&G.push(239,191,189);continue}if(ie+1===Ae){(De-=3)>-1&&G.push(239,191,189);continue}xe=he;continue}if(he<56320){(De-=3)>-1&&G.push(239,191,189),xe=he;continue}he=65536+(xe-55296<<10|he-56320)}else xe&&(De-=3)>-1&&G.push(239,191,189);if(xe=null,he<128){if((De-=1)<0)break;G.push(he)}else if(he<2048){if((De-=2)<0)break;G.push(he>>6|192,63&he|128)}else if(he<65536){if((De-=3)<0)break;G.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((De-=4)<0)break;G.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return G}function ze(W){return e.toByteArray(function te(W){if((W=(W=W.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(W))}function be(W,De,he,Ae){for(var xe=0;xe=De.length||xe>=W.length);++xe)De[xe+he]=W[xe];return xe}function $(W,De){return W instanceof De||null!=W&&null!=W.constructor&&null!=W.constructor.name&&W.constructor.name===De.name}function ke(W){return W!=W}var lt=function(){for(var W="0123456789abcdef",De=new Array(256),he=0;he<16;++he)for(var Ae=16*he,xe=0;xe<16;++xe)De[Ae+xe]=W[he]+W[xe];return De}()},1052:(He,j,p)=>{var e=p(3502).Buffer,i=p(295).Transform,u=p(3054).s;function a(y){i.call(this),this.hashMode="string"==typeof y,this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,i),a.prototype.update=function(y,h,P){"string"==typeof y&&(y=e.from(y,h));var D=this._update(y);return this.hashMode?this:(P&&(D=this._toString(D,P)),D)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(y,h,P){var D;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(T){D=T}finally{P(D)}},a.prototype._flush=function(y){var h;try{this.push(this.__final())}catch(P){h=P}y(h)},a.prototype._finalOrDigest=function(y){var h=this.__final()||e.alloc(0);return y&&(h=this._toString(h,y,!0)),h},a.prototype._toString=function(y,h,P){if(this._decoder||(this._decoder=new u(h),this._encoding=h),this._encoding!==h)throw new Error("can't switch encodings");var D=this._decoder.write(y);return P&&(D+=this._decoder.end()),D},He.exports=a},7293:(He,j,p)=>{"use strict";const e=p(4315),i=p(2872),u=p(717);He.exports=function b(h,P){switch(i(h)){case"object":return function a(h,P){if("function"==typeof P)return P(h);if(P||u(h)){const D=new h.constructor;for(let T in h)D[T]=b(h[T],P);return D}return h}(h,P);case"array":return function y(h,P){const D=new h.constructor(h.length);for(let T=0;Tb?u:Array(b-u.length+1).join("0")+u}(b.toString(16),2)}).join("")}(u)},hexToBytes:function(u){if(u.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===u.indexOf("0x")&&(u=u.slice(2)),u.match(/../g).map(function(b){return parseInt(b,16)})}};He.exports?He.exports=p:j.convertHex=p}(this)},5612:function(He){!function(j){"use strict";var p={bytesToString:function(e){return e.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(e){return e.split("").map(function(i){return i.charCodeAt(0)})}};p.UTF8={bytesToString:function(e){return decodeURIComponent(escape(p.bytesToString(e)))},stringToBytes:function(e){return p.stringToBytes(unescape(encodeURIComponent(e)))}},He.exports?He.exports=p:j.convertString=p}(this)},4746:(He,j,p)=>{var e=p(7715),i=p(6422);He.exports=function(h){return new b(h)};var u={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function b(y){this.curveType=u[y],this.curveType||(this.curveType={name:y}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function a(y,h,P){Array.isArray(y)||(y=y.toArray());var D=new Buffer(y);if(P&&D.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6386:(He,j,p)=>{"use strict";var e=p(3894),i=p(8095),u=p(5634),b=p(5244),a=p(1052);function y(h){a.call(this,"digest"),this._hash=h}e(y,a),y.prototype._update=function(h){this._hash.update(h)},y.prototype._final=function(){return this._hash.digest()},He.exports=function(P){return"md5"===(P=P.toLowerCase())?new i:"rmd160"===P||"ripemd160"===P?new u:new y(b(P))}},5640:(He,j,p)=>{var e=p(8095);He.exports=function(i){return(new e).update(i).digest()}},4529:(He,j,p)=>{"use strict";var e=p(3894),i=p(7309),u=p(1052),b=p(3502).Buffer,a=p(5640),y=p(5634),h=p(5244),P=b.alloc(128);function D(T,M){u.call(this,"digest"),"string"==typeof M&&(M=b.from(M));var A="sha512"===T||"sha384"===T?128:64;this._alg=T,this._key=M,M.length>A?M=("rmd160"===T?new y:h(T)).update(M).digest():M.length{"use strict";var e=p(3894),i=p(3502).Buffer,u=p(1052),b=i.alloc(128),a=64;function y(h,P){u.call(this,"digest"),"string"==typeof P&&(P=i.from(P)),this._alg=h,this._key=P,P.length>a?P=h(P):P.length{"use strict";j.randomBytes=j.rng=j.pseudoRandomBytes=j.prng=p(3753),j.createHash=j.Hash=p(6386),j.createHmac=j.Hmac=p(4529);var e=p(7793),i=Object.keys(e),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);j.getHashes=function(){return u};var b=p(9357);j.pbkdf2=b.pbkdf2,j.pbkdf2Sync=b.pbkdf2Sync;var a=p(5255);j.Cipher=a.Cipher,j.createCipher=a.createCipher,j.Cipheriv=a.Cipheriv,j.createCipheriv=a.createCipheriv,j.Decipher=a.Decipher,j.createDecipher=a.createDecipher,j.Decipheriv=a.Decipheriv,j.createDecipheriv=a.createDecipheriv,j.getCiphers=a.getCiphers,j.listCiphers=a.listCiphers;var y=p(8829);j.DiffieHellmanGroup=y.DiffieHellmanGroup,j.createDiffieHellmanGroup=y.createDiffieHellmanGroup,j.getDiffieHellman=y.getDiffieHellman,j.createDiffieHellman=y.createDiffieHellman,j.DiffieHellman=y.DiffieHellman;var h=p(3923);j.createSign=h.createSign,j.Sign=h.Sign,j.createVerify=h.createVerify,j.Verify=h.Verify,j.createECDH=p(4746);var P=p(3701);j.publicEncrypt=P.publicEncrypt,j.privateEncrypt=P.privateEncrypt,j.publicDecrypt=P.publicDecrypt,j.privateDecrypt=P.privateDecrypt;var D=p(4275);j.randomFill=D.randomFill,j.randomFillSync=D.randomFillSync,j.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},j.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(He,j,p)=>{"use strict";j.utils=p(7451),j.Cipher=p(8170),j.DES=p(4631),j.CBC=p(9454),j.EDE=p(1862)},9454:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u={};function b(y){e.equal(y.length,8,"Invalid IV length"),this.iv=new Array(8);for(var h=0;h{"use strict";var e=p(2391);function i(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}He.exports=i,i.prototype._init=function(){},i.prototype.update=function(b){return 0===b.length?[]:"decrypt"===this.type?this._updateDecrypt(b):this._updateEncrypt(b)},i.prototype._buffer=function(b,a){for(var y=Math.min(this.buffer.length-this.bufferOff,b.length-a),h=0;h0;h--)a+=this._buffer(b,a),y+=this._flushBuffer(P,y);return a+=this._buffer(b,a),P},i.prototype.final=function(b){var a,y;return b&&(a=this.update(b)),y="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(y):y},i.prototype._pad=function(b,a){if(0===a)return!1;for(;a{"use strict";var e=p(2391),i=p(3894),u=p(7451),b=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function y(P){b.call(this,P);var D=new a;this._desState=D,this.deriveKeys(D,P.key)}i(y,b),He.exports=y,y.create=function(D){return new y(D)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(D,T){D.keys=new Array(32),e.equal(T.length,this.blockSize,"Invalid key length");var M=u.readUInt32BE(T,0),A=u.readUInt32BE(T,4);u.pc1(M,A,D.tmp,0),M=D.tmp[0],A=D.tmp[1];for(var E=0;E>>1];M=u.r28shl(M,k),A=u.r28shl(A,k),u.pc2(M,A,D.keys,E)}},y.prototype._update=function(D,T,M,A){var E=this._desState,k=u.readUInt32BE(D,T),w=u.readUInt32BE(D,T+4);u.ip(k,w,E.tmp,0),k=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,k,w,E.tmp,0):this._decrypt(E,k,w,E.tmp,0),w=E.tmp[1],u.writeUInt32BE(M,k=E.tmp[0],A),u.writeUInt32BE(M,w,A+4)},y.prototype._pad=function(D,T){for(var M=D.length-T,A=T;A>>0,k=de}u.rip(w,k,A,E)},y.prototype._decrypt=function(D,T,M,A,E){for(var k=M,w=T,V=D.keys.length-2;V>=0;V-=2){var U=D.keys[V],Y=D.keys[V+1];u.expand(k,D.tmp,0);var ae=u.substitute(U^=D.tmp[0],Y^=D.tmp[1]),de=k;k=(w^u.permute(ae))>>>0,w=de}u.rip(k,w,A,E)}},1862:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u=p(8170),b=p(4631);function a(h,P){e.equal(P.length,24,"Invalid key length");var D=P.slice(0,8),T=P.slice(8,16),M=P.slice(16,24);this.ciphers="encrypt"===h?[b.create({type:"encrypt",key:D}),b.create({type:"decrypt",key:T}),b.create({type:"encrypt",key:M})]:[b.create({type:"decrypt",key:M}),b.create({type:"encrypt",key:T}),b.create({type:"decrypt",key:D})]}function y(h){u.call(this,h);var P=new a(this.type,this.options.key);this._edeState=P}i(y,u),He.exports=y,y.create=function(P){return new y(P)},y.prototype._update=function(P,D,T,M){var A=this._edeState;A.ciphers[0]._update(P,D,T,M),A.ciphers[1]._update(T,M,T,M),A.ciphers[2]._update(T,M,T,M)},y.prototype._pad=b.prototype._pad,y.prototype._unpad=b.prototype._unpad},7451:(He,j)=>{"use strict";j.readUInt32BE=function(b,a){return(b[0+a]<<24|b[1+a]<<16|b[2+a]<<8|b[3+a])>>>0},j.writeUInt32BE=function(b,a,y){b[0+y]=a>>>24,b[1+y]=a>>>16&255,b[2+y]=a>>>8&255,b[3+y]=255&a},j.ip=function(b,a,y,h){for(var P=0,D=0,T=6;T>=0;T-=2){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>>M+T&1}for(T=6;T>=0;T-=2){for(M=1;M<=25;M+=8)D<<=1,D|=a>>>M+T&1;for(M=1;M<=25;M+=8)D<<=1,D|=b>>>M+T&1}y[h+0]=P>>>0,y[h+1]=D>>>0},j.rip=function(b,a,y,h){for(var P=0,D=0,T=0;T<4;T++)for(var M=24;M>=0;M-=8)P<<=1,P|=a>>>M+T&1,P<<=1,P|=b>>>M+T&1;for(T=4;T<8;T++)for(M=24;M>=0;M-=8)D<<=1,D|=a>>>M+T&1,D<<=1,D|=b>>>M+T&1;y[h+0]=P>>>0,y[h+1]=D>>>0},j.pc1=function(b,a,y,h){for(var P=0,D=0,T=7;T>=5;T--){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>M+T&1}for(M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(T=1;T<=3;T++){for(M=0;M<=24;M+=8)D<<=1,D|=a>>M+T&1;for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1}for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1;y[h+0]=P>>>0,y[h+1]=D>>>0},j.r28shl=function(b,a){return b<>>28-a};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];j.pc2=function(b,a,y,h){for(var P=0,D=0,T=p.length>>>1,M=0;M>>p[M]&1;for(M=T;M>>p[M]&1;y[h+0]=P>>>0,y[h+1]=D>>>0},j.expand=function(b,a,y){var h=0,P=0;h=(1&b)<<5|b>>>27;for(var D=23;D>=15;D-=4)h<<=6,h|=b>>>D&63;for(D=11;D>=3;D-=4)P|=b>>>D&63,P<<=6;P|=(31&b)<<1|b>>>31,a[y+0]=h>>>0,a[y+1]=P>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];j.substitute=function(b,a){for(var y=0,h=0;h<4;h++)y<<=4,y|=e[64*h+(b>>>18-6*h&63)];for(h=0;h<4;h++)y<<=4,y|=e[256+64*h+(a>>>18-6*h&63)];return y>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];j.permute=function(b){for(var a=0,y=0;y>>i[y]&1;return a>>>0},j.padSplit=function(b,a,y){for(var h=b.toString(2);h.length{var e=p(5563),i=p(9799),u=p(1419),a={binary:!0,hex:!0,base64:!0};j.DiffieHellmanGroup=j.createDiffieHellmanGroup=j.getDiffieHellman=function b(h){var P=new Buffer(i[h].prime,"hex"),D=new Buffer(i[h].gen,"hex");return new u(P,D)},j.createDiffieHellman=j.DiffieHellman=function y(h,P,D,T){return Buffer.isBuffer(P)||void 0===a[P]?y(h,"binary",P,D):(P=P||"binary",T=T||"binary",D=D||new Buffer([2]),Buffer.isBuffer(D)||(D=new Buffer(D,T)),"number"==typeof h?new u(e(h,D),D,!0):(Buffer.isBuffer(h)||(h=new Buffer(h,P)),new u(h,D,!0)))}},1419:(He,j,p)=>{var e=p(8313),u=new(p(7079)),b=new e(24),a=new e(11),y=new e(10),h=new e(3),P=new e(7),D=p(5563),T=p(3753);function M(U,Y){return Y=Y||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,Y)),this._pub=new e(U),this}function A(U,Y){return Y=Y||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,Y)),this._priv=new e(U),this}He.exports=w;var E={};function w(U,Y,ae){this.setGenerator(Y),this.__prime=new e(U),this._prime=e.mont(this.__prime),this._primeLen=U.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ae?(this.setPublicKey=M,this.setPrivateKey=A):this._primeCode=8}function V(U,Y){var ae=new Buffer(U.toArray());return Y?ae.toString(Y):ae}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(U,Y){var ae=Y.toString("hex"),X=[ae,U.toString(16)].join("_");if(X in E)return E[X];var q,de=0;if(U.isEven()||!D.simpleSieve||!D.fermatTest(U)||!u.test(U))return de+=1,E[X]=de+="02"===ae||"05"===ae?8:4,de;switch(u.test(U.shrn(1))||(de+=2),ae){case"02":U.mod(b).cmp(a)&&(de+=8);break;case"05":(q=U.mod(y)).cmp(h)&&q.cmp(P)&&(de+=8);break;default:de+=4}return E[X]=de,de}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(T(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(U){var Y=(U=(U=new e(U)).toRed(this._prime)).redPow(this._priv).fromRed(),ae=new Buffer(Y.toArray()),X=this.getPrime();if(ae.length{var e=p(3753);He.exports=de,de.simpleSieve=ae,de.fermatTest=X;var i=p(8313),u=new i(24),a=new(p(7079)),y=new i(1),h=new i(2),P=new i(5),M=(new i(16),new i(8),new i(10)),A=new i(3),k=(new i(7),new i(11)),w=new i(4),U=(new i(12),null);function ae(q){for(var re=function Y(){if(null!==U)return U;var re=[];re[0]=2;for(var le=1,ee=3;ee<1048576;ee+=2){for(var _e=Math.ceil(Math.sqrt(ee)),x=0;xq;)le.ishrn(1);if(le.isEven()&&le.iadd(y),le.testn(1)||le.iadd(h),re.cmp(h)){if(!re.cmp(P))for(;le.mod(M).cmp(A);)le.iadd(w)}else for(;le.mod(u).cmp(k);)le.iadd(w);if(ae(ee=le.shrn(1))&&ae(le)&&X(ee)&&X(le)&&a.test(ee)&&a.test(le))return le}}},8313:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function h(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},4901:He=>{"use strict";var j={single_source_shortest_paths:function(p,e,i){var u={},b={};b[e]=0;var y,h,P,D,T,A,a=j.PriorityQueue.make();for(a.push(e,0);!a.empty();)for(P in D=(y=a.pop()).cost,T=p[h=y.value]||{})T.hasOwnProperty(P)&&(A=D+T[P],(void 0===b[P]||b[P]>A)&&(b[P]=A,a.push(P,A),u[P]=h));if(void 0!==i&&void 0===b[i]){var w=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(w)}return u},extract_shortest_path_from_predecessor_list:function(p,e){for(var i=[],u=e;u;)i.push(u),u=p[u];return i.reverse(),i},find_path:function(p,e,i){var u=j.single_source_shortest_paths(p,e,i);return j.extract_shortest_path_from_predecessor_list(u,i)},PriorityQueue:{make:function(p){var u,e=j.PriorityQueue,i={};for(u in p=p||{},e)e.hasOwnProperty(u)&&(i[u]=e[u]);return i.queue=[],i.sorter=p.sorter||e.default_sorter,i},default_sorter:function(p,e){return p.cost-e.cost},push:function(p,e){this.queue.push({value:p,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};He.exports=j},7715:(He,j,p)=>{"use strict";var e=j;e.version=p(8597).i8,e.utils=p(1970),e.rand=p(7950),e.curve=p(6270),e.curves=p(2916),e.ec=p(7626),e.eddsa=p(1885)},7902:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.getNAF,b=i.getJSF,a=i.assert;function y(P,D){this.type=P,this.p=new e(D.p,16),this.red=D.prime?e.red(D.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=D.n&&new e(D.n,16),this.g=D.g&&this.pointFromJSON(D.g,D.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var T=this.n&&this.p.div(this.n);!T||T.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(P,D){this.curve=P,this.type=D,this.precomputed=null}He.exports=y,y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(D,T){a(D.precomputed);var M=D._getDoubles(),A=u(T,1,this._bitLength),E=(1<=w;U--)V=(V<<1)+A[U];k.push(V)}for(var Y=this.jpoint(null,null,null),ae=this.jpoint(null,null,null),X=E;X>0;X--){for(w=0;w=0;V--){for(var U=0;V>=0&&0===k[V];V--)U++;if(V>=0&&U++,w=w.dblp(U),V<0)break;var Y=k[V];a(0!==Y),w="affine"===D.type?w.mixedAdd(Y>0?E[Y-1>>1]:E[-Y-1>>1].neg()):w.add(Y>0?E[Y-1>>1]:E[-Y-1>>1].neg())}return"affine"===D.type?w.toP():w},y.prototype._wnafMulAdd=function(D,T,M,A,E){var Y,ae,X,k=this._wnafT1,w=this._wnafT2,V=this._wnafT3,U=0;for(Y=0;Y=1;Y-=2){var q=Y-1,re=Y;if(1===k[q]&&1===k[re]){var le=[T[q],null,null,T[re]];0===T[q].y.cmp(T[re].y)?(le[1]=T[q].add(T[re]),le[2]=T[q].toJ().mixedAdd(T[re].neg())):0===T[q].y.cmp(T[re].y.redNeg())?(le[1]=T[q].toJ().mixedAdd(T[re]),le[2]=T[q].add(T[re].neg())):(le[1]=T[q].toJ().mixedAdd(T[re]),le[2]=T[q].toJ().mixedAdd(T[re].neg()));var ee=[-3,-1,-5,-7,0,7,5,1,3],_e=b(M[q],M[re]);for(U=Math.max(_e[0].length,U),V[q]=new Array(U),V[re]=new Array(U),ae=0;ae=0;Y--){for(var c=0;Y>=0;){var g=!0;for(ae=0;ae=0&&c++,r=r.dblp(c),Y<0)break;for(ae=0;ae0?X=w[ae][S-1>>1]:S<0&&(X=w[ae][-S-1>>1].neg()),r="affine"===X.type?r.mixedAdd(X):r.add(X))}}for(Y=0;Y=Math.ceil((D.bitLength()+1)/T.step)},h.prototype._getDoubles=function(D,T){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var M=[this],A=this,E=0;E{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,b.call(this,"edwards",P),this.a=new i(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function h(P,D,T,M,A){b.BasePoint.call(this,P,"projective"),null===D&&null===T&&null===M?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(D,16),this.y=new i(T,16),this.z=M?new i(M,16):this.curve.one,this.t=A&&new i(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(y,b),He.exports=y,y.prototype._mulA=function(D){return this.mOneA?D.redNeg():this.a.redMul(D)},y.prototype._mulC=function(D){return this.oneC?D:this.c.redMul(D)},y.prototype.jpoint=function(D,T,M,A){return this.point(D,T,M,A)},y.prototype.pointFromX=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=this.c2.redSub(this.a.redMul(M)),E=this.one.redSub(this.c2.redMul(this.d).redMul(M)),k=A.redMul(E.redInvm()),w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var V=w.fromRed().isOdd();return(T&&!V||!T&&V)&&(w=w.redNeg()),this.point(D,w)},y.prototype.pointFromY=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=M.redSub(this.c2),E=M.redMul(this.d).redMul(this.c2).redSub(this.a),k=A.redMul(E.redInvm());if(0===k.cmp(this.zero)){if(T)throw new Error("invalid point");return this.point(this.zero,D)}var w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==T&&(w=w.redNeg()),this.point(w,D)},y.prototype.validate=function(D){if(D.isInfinity())return!0;D.normalize();var T=D.x.redSqr(),M=D.y.redSqr(),A=T.redMul(this.a).redAdd(M),E=this.c2.redMul(this.one.redAdd(this.d.redMul(T).redMul(M)));return 0===A.cmp(E)},u(h,b.BasePoint),y.prototype.pointFromJSON=function(D){return h.fromJSON(this,D)},y.prototype.point=function(D,T,M,A){return new h(this,D,T,M,A)},h.fromJSON=function(D,T){return new h(D,T[0],T[1],T[2])},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var D=this.x.redSqr(),T=this.y.redSqr(),M=this.z.redSqr();M=M.redIAdd(M);var A=this.curve._mulA(D),E=this.x.redAdd(this.y).redSqr().redISub(D).redISub(T),k=A.redAdd(T),w=k.redSub(M),V=A.redSub(T),U=E.redMul(w),Y=k.redMul(V),ae=E.redMul(V),X=w.redMul(k);return this.curve.point(U,Y,X,ae)},h.prototype._projDbl=function(){var A,E,k,w,V,U,D=this.x.redAdd(this.y).redSqr(),T=this.x.redSqr(),M=this.y.redSqr();if(this.curve.twisted){var Y=(w=this.curve._mulA(T)).redAdd(M);this.zOne?(A=D.redSub(T).redSub(M).redMul(Y.redSub(this.curve.two)),E=Y.redMul(w.redSub(M)),k=Y.redSqr().redSub(Y).redSub(Y)):(V=this.z.redSqr(),U=Y.redSub(V).redISub(V),A=D.redSub(T).redISub(M).redMul(U),E=Y.redMul(w.redSub(M)),k=Y.redMul(U))}else w=T.redAdd(M),V=this.curve._mulC(this.z).redSqr(),U=w.redSub(V).redSub(V),A=this.curve._mulC(D.redISub(w)).redMul(U),E=this.curve._mulC(w).redMul(T.redISub(M)),k=w.redMul(U);return this.curve.point(A,E,k)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(D){var T=this.y.redSub(this.x).redMul(D.y.redSub(D.x)),M=this.y.redAdd(this.x).redMul(D.y.redAdd(D.x)),A=this.t.redMul(this.curve.dd).redMul(D.t),E=this.z.redMul(D.z.redAdd(D.z)),k=M.redSub(T),w=E.redSub(A),V=E.redAdd(A),U=M.redAdd(T),Y=k.redMul(w),ae=V.redMul(U),X=k.redMul(U),de=w.redMul(V);return this.curve.point(Y,ae,de,X)},h.prototype._projAdd=function(D){var ae,X,T=this.z.redMul(D.z),M=T.redSqr(),A=this.x.redMul(D.x),E=this.y.redMul(D.y),k=this.curve.d.redMul(A).redMul(E),w=M.redSub(k),V=M.redAdd(k),U=this.x.redAdd(this.y).redMul(D.x.redAdd(D.y)).redISub(A).redISub(E),Y=T.redMul(w).redMul(U);return this.curve.twisted?(ae=T.redMul(V).redMul(E.redSub(this.curve._mulA(A))),X=w.redMul(V)):(ae=T.redMul(V).redMul(E.redSub(A)),X=this.curve._mulC(w).redMul(V)),this.curve.point(Y,ae,X)},h.prototype.add=function(D){return this.isInfinity()?D:D.isInfinity()?this:this.curve.extended?this._extAdd(D):this._projAdd(D)},h.prototype.mul=function(D){return this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve._wnafMul(this,D)},h.prototype.mulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!1)},h.prototype.jmulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var D=this.z.redInvm();return this.x=this.x.redMul(D),this.y=this.y.redMul(D),this.t&&(this.t=this.t.redMul(D)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(D){return this===D||0===this.getX().cmp(D.getX())&&0===this.getY().cmp(D.getY())},h.prototype.eqXToP=function(D){var T=D.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(T))return!0;for(var M=D.clone(),A=this.curve.redN.redMul(this.z);;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(A),0===this.x.cmp(T))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},6270:(He,j,p)=>{"use strict";var e=j;e.base=p(7902),e.short=p(1781),e.mont=p(7064),e.edwards=p(3835)},7064:(He,j,p)=>{"use strict";var e=p(7433),i=p(3894),u=p(7902),b=p(1970);function a(h){u.call(this,"mont",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function y(h,P,D){u.BasePoint.call(this,h,"projective"),null===P&&null===D?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(P,16),this.z=new e(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,u),He.exports=a,a.prototype.validate=function(P){var D=P.normalize().x,T=D.redSqr(),M=T.redMul(D).redAdd(T.redMul(this.a)).redAdd(D);return 0===M.redSqrt().redSqr().cmp(M)},i(y,u.BasePoint),a.prototype.decodePoint=function(P,D){return this.point(b.toArray(P,D),1)},a.prototype.point=function(P,D){return new y(this,P,D)},a.prototype.pointFromJSON=function(P){return y.fromJSON(this,P)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(P,D){return new y(P,D[0],D[1]||P.one)},y.prototype.inspect=function(){return this.isInfinity()?"":""},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var D=this.x.redAdd(this.z).redSqr(),M=this.x.redSub(this.z).redSqr(),A=D.redSub(M),E=D.redMul(M),k=A.redMul(M.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,k)},y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(P,D){var T=this.x.redAdd(this.z),M=this.x.redSub(this.z),A=P.x.redAdd(P.z),k=P.x.redSub(P.z).redMul(T),w=A.redMul(M),V=D.z.redMul(k.redAdd(w).redSqr()),U=D.x.redMul(k.redISub(w).redSqr());return this.curve.point(V,U)},y.prototype.mul=function(P){for(var D=P.clone(),T=this,M=this.curve.point(null,null),E=[];0!==D.cmpn(0);D.iushrn(1))E.push(D.andln(1));for(var k=E.length-1;k>=0;k--)0===E[k]?(T=T.diffAdd(M,this),M=M.dbl()):(M=T.diffAdd(M,this),T=T.dbl());return M},y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(He,j,p)=>{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(D){b.call(this,"short",D),this.a=new i(D.a,16).toRed(this.red),this.b=new i(D.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(D),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(D,T,M,A){b.BasePoint.call(this,D,"affine"),null===T&&null===M?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(T,16),this.y=new i(M,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function P(D,T,M,A){b.BasePoint.call(this,D,"jacobian"),null===T&&null===M&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(T,16),this.y=new i(M,16),this.z=new i(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}u(y,b),He.exports=y,y.prototype._getEndomorphism=function(T){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var M,A;if(T.beta)M=new i(T.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);M=(M=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(T.lambda)A=new i(T.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(M))?A=k[0]:a(0===this.g.mul(A=k[1]).x.cmp(this.g.x.redMul(M)))}return{beta:M,lambda:A,basis:T.basis?T.basis.map(function(V){return{a:new i(V.a,16),b:new i(V.b,16)}}):this._getEndoBasis(A)}}},y.prototype._getEndoRoots=function(T){var M=T===this.p?this.red:i.mont(T),A=new i(2).toRed(M).redInvm(),E=A.redNeg(),k=new i(3).toRed(M).redNeg().redSqrt().redMul(A);return[E.redAdd(k).fromRed(),E.redSub(k).fromRed()]},y.prototype._getEndoBasis=function(T){for(var Y,ae,X,de,q,re,le,_e,x,M=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=T,E=this.n.clone(),k=new i(1),w=new i(0),V=new i(0),U=new i(1),ee=0;0!==A.cmpn(0);){var t=E.div(A);_e=E.sub(t.mul(A)),x=V.sub(t.mul(k));var r=U.sub(t.mul(w));if(!X&&_e.cmp(M)<0)Y=le.neg(),ae=k,X=_e.neg(),de=x;else if(X&&2==++ee)break;le=_e,E=A,A=_e,V=k,k=x,U=w,w=r}q=_e.neg(),re=x;var d=X.sqr().add(de.sqr());return q.sqr().add(re.sqr()).cmp(d)>=0&&(q=Y,re=ae),X.negative&&(X=X.neg(),de=de.neg()),q.negative&&(q=q.neg(),re=re.neg()),[{a:X,b:de},{a:q,b:re}]},y.prototype._endoSplit=function(T){var M=this.endo.basis,A=M[0],E=M[1],k=E.b.mul(T).divRound(this.n),w=A.b.neg().mul(T).divRound(this.n),V=k.mul(A.a),U=w.mul(E.a),Y=k.mul(A.b),ae=w.mul(E.b);return{k1:T.sub(V).sub(U),k2:Y.add(ae).neg()}},y.prototype.pointFromX=function(T,M){(T=new i(T,16)).red||(T=T.toRed(this.red));var A=T.redSqr().redMul(T).redIAdd(T.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var k=E.fromRed().isOdd();return(M&&!k||!M&&k)&&(E=E.redNeg()),this.point(T,E)},y.prototype.validate=function(T){if(T.inf)return!0;var M=T.x,A=T.y,E=this.a.redMul(M),k=M.redSqr().redMul(M).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(k).cmpn(0)},y.prototype._endoWnafMulAdd=function(T,M,A){for(var E=this._endoWnafT1,k=this._endoWnafT2,w=0;w":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(T){if(this.inf)return T;if(T.inf)return this;if(this.eq(T))return this.dbl();if(this.neg().eq(T))return this.curve.point(null,null);if(0===this.x.cmp(T.x))return this.curve.point(null,null);var M=this.y.redSub(T.y);0!==M.cmpn(0)&&(M=M.redMul(this.x.redSub(T.x).redInvm()));var A=M.redSqr().redISub(this.x).redISub(T.x),E=M.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},h.prototype.dbl=function(){if(this.inf)return this;var T=this.y.redAdd(this.y);if(0===T.cmpn(0))return this.curve.point(null,null);var M=this.curve.a,A=this.x.redSqr(),E=T.redInvm(),k=A.redAdd(A).redIAdd(A).redIAdd(M).redMul(E),w=k.redSqr().redISub(this.x.redAdd(this.x)),V=k.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,V)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(T){return T=new i(T,16),this.isInfinity()?this:this._hasDoubles(T)?this.curve._fixedNafMul(this,T):this.curve.endo?this.curve._endoWnafMulAdd([this],[T]):this.curve._wnafMul(this,T)},h.prototype.mulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k):this.curve._wnafMulAdd(1,E,k,2)},h.prototype.jmulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k,!0):this.curve._wnafMulAdd(1,E,k,2,!0)},h.prototype.eq=function(T){return this===T||this.inf===T.inf&&(this.inf||0===this.x.cmp(T.x)&&0===this.y.cmp(T.y))},h.prototype.neg=function(T){if(this.inf)return this;var M=this.curve.point(this.x,this.y.redNeg());if(T&&this.precomputed){var A=this.precomputed,E=function(k){return k.neg()};M.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return M},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(P,b.BasePoint),y.prototype.jpoint=function(T,M,A){return new P(this,T,M,A)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var T=this.z.redInvm(),M=T.redSqr(),A=this.x.redMul(M),E=this.y.redMul(M).redMul(T);return this.curve.point(A,E)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(T){if(this.isInfinity())return T;if(T.isInfinity())return this;var M=T.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(M),k=T.x.redMul(A),w=this.y.redMul(M.redMul(T.z)),V=T.y.redMul(A.redMul(this.z)),U=E.redSub(k),Y=w.redSub(V);if(0===U.cmpn(0))return 0!==Y.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ae=U.redSqr(),X=ae.redMul(U),de=E.redMul(ae),q=Y.redSqr().redIAdd(X).redISub(de).redISub(de),re=Y.redMul(de.redISub(q)).redISub(w.redMul(X)),le=this.z.redMul(T.z).redMul(U);return this.curve.jpoint(q,re,le)},P.prototype.mixedAdd=function(T){if(this.isInfinity())return T.toJ();if(T.isInfinity())return this;var M=this.z.redSqr(),A=this.x,E=T.x.redMul(M),k=this.y,w=T.y.redMul(M).redMul(this.z),V=A.redSub(E),U=k.redSub(w);if(0===V.cmpn(0))return 0!==U.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Y=V.redSqr(),ae=Y.redMul(V),X=A.redMul(Y),de=U.redSqr().redIAdd(ae).redISub(X).redISub(X),q=U.redMul(X.redISub(de)).redISub(k.redMul(ae)),re=this.z.redMul(V);return this.curve.jpoint(de,q,re)},P.prototype.dblp=function(T){if(0===T)return this;if(this.isInfinity())return this;if(!T)return this.dbl();var M;if(this.curve.zeroA||this.curve.threeA){var A=this;for(M=0;M=0)return!1;if(A.redIAdd(k),0===this.x.cmp(A))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"":""},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(He,j,p)=>{"use strict";var P,e=j,i=p(7084),u=p(6270),a=p(1970).assert;function y(D){this.curve="short"===D.type?new u.short(D):"edwards"===D.type?new u.edwards(D):new u.mont(D),this.g=this.curve.g,this.n=this.curve.n,this.hash=D.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(D,T){Object.defineProperty(e,D,{configurable:!0,enumerable:!0,get:function(){var M=new y(T);return Object.defineProperty(e,D,{configurable:!0,enumerable:!0,value:M}),M}})}e.PresetCurve=y,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=p(5150)}catch(D){P=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(He,j,p)=>{"use strict";var e=p(7433),i=p(2438),u=p(1970),b=p(2916),a=p(7950),y=u.assert,h=p(1259),P=p(5957);function D(T){if(!(this instanceof D))return new D(T);"string"==typeof T&&(y(Object.prototype.hasOwnProperty.call(b,T),"Unknown curve "+T),T=b[T]),T instanceof b.PresetCurve&&(T={curve:T}),this.curve=T.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=T.curve.g,this.g.precompute(T.curve.n.bitLength()+1),this.hash=T.hash||T.curve.hash}He.exports=D,D.prototype.keyPair=function(M){return new h(this,M)},D.prototype.keyFromPrivate=function(M,A){return h.fromPrivate(this,M,A)},D.prototype.keyFromPublic=function(M,A){return h.fromPublic(this,M,A)},D.prototype.genKeyPair=function(M){M||(M={});for(var A=new i({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||a(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),k=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(k)>0))return w.iaddn(1),this.keyFromPrivate(w)}},D.prototype._truncateToN=function(M,A){var E=8*M.byteLength()-this.n.bitLength();return E>0&&(M=M.ushrn(E)),!A&&M.cmp(this.n)>=0?M.sub(this.n):M},D.prototype.sign=function(M,A,E,k){"object"==typeof E&&(k=E,E=null),k||(k={}),A=this.keyFromPrivate(A,E),M=this._truncateToN(new e(M,16));for(var w=this.n.byteLength(),V=A.getPrivate().toArray("be",w),U=M.toArray("be",w),Y=new i({hash:this.hash,entropy:V,nonce:U,pers:k.pers,persEnc:k.persEnc||"utf8"}),ae=this.n.sub(new e(1)),X=0;;X++){var de=k.k?k.k(X):new e(Y.generate(this.n.byteLength()));if(!((de=this._truncateToN(de,!0)).cmpn(1)<=0||de.cmp(ae)>=0)){var q=this.g.mul(de);if(!q.isInfinity()){var re=q.getX(),le=re.umod(this.n);if(0!==le.cmpn(0)){var ee=de.invm(this.n).mul(le.mul(A.getPrivate()).iadd(M));if(0!==(ee=ee.umod(this.n)).cmpn(0)){var _e=(q.getY().isOdd()?1:0)|(0!==re.cmp(le)?2:0);return k.canonical&&ee.cmp(this.nh)>0&&(ee=this.n.sub(ee),_e^=1),new P({r:le,s:ee,recoveryParam:_e})}}}}}},D.prototype.verify=function(M,A,E,k){M=this._truncateToN(new e(M,16)),E=this.keyFromPublic(E,k);var w=(A=new P(A,"hex")).r,V=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||V.cmpn(1)<0||V.cmp(this.n)>=0)return!1;var X,U=V.invm(this.n),Y=U.mul(M).umod(this.n),ae=U.mul(w).umod(this.n);return this.curve._maxwellTrick?!(X=this.g.jmulAdd(Y,E.getPublic(),ae)).isInfinity()&&X.eqXToP(w):!(X=this.g.mulAdd(Y,E.getPublic(),ae)).isInfinity()&&0===X.getX().umod(this.n).cmp(w)},D.prototype.recoverPubKey=function(T,M,A,E){y((3&A)===A,"The recovery param is more than two bits"),M=new P(M,E);var k=this.n,w=new e(T),V=M.r,U=M.s,Y=1&A,ae=A>>1;if(V.cmp(this.curve.p.umod(this.curve.n))>=0&&ae)throw new Error("Unable to find sencond key candinate");V=this.curve.pointFromX(ae?V.add(this.curve.n):V,Y);var X=M.r.invm(k),de=k.sub(w).mul(X).umod(k),q=U.mul(X).umod(k);return this.g.mulAdd(de,V,q)},D.prototype.getKeyRecoveryParam=function(T,M,A,E){if(null!==(M=new P(M,E)).recoveryParam)return M.recoveryParam;for(var k=0;k<4;k++){var w;try{w=this.recoverPubKey(T,M,k)}catch(V){continue}if(w.eq(A))return k}throw new Error("Unable to find valid recovery factor")}},1259:(He,j,p)=>{"use strict";var e=p(7433),u=p(1970).assert;function b(a,y){this.ec=a,this.priv=null,this.pub=null,y.priv&&this._importPrivate(y.priv,y.privEnc),y.pub&&this._importPublic(y.pub,y.pubEnc)}He.exports=b,b.fromPublic=function(y,h,P){return h instanceof b?h:new b(y,{pub:h,pubEnc:P})},b.fromPrivate=function(y,h,P){return h instanceof b?h:new b(y,{priv:h,privEnc:P})},b.prototype.validate=function(){var y=this.getPublic();return y.isInfinity()?{result:!1,reason:"Invalid public key"}:y.validate()?y.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},b.prototype.getPublic=function(y,h){return"string"==typeof y&&(h=y,y=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),h?this.pub.encode(h,y):this.pub},b.prototype.getPrivate=function(y){return"hex"===y?this.priv.toString(16,2):this.priv},b.prototype._importPrivate=function(y,h){this.priv=new e(y,h||16),this.priv=this.priv.umod(this.ec.curve.n)},b.prototype._importPublic=function(y,h){if(y.x||y.y)return"mont"===this.ec.curve.type?u(y.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&u(y.x&&y.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(y.x,y.y));this.pub=this.ec.curve.decodePoint(y,h)},b.prototype.derive=function(y){return y.validate()||u(y.validate(),"public point not validated"),y.mul(this.priv).getX()},b.prototype.sign=function(y,h,P){return this.ec.sign(y,this,h,P)},b.prototype.verify=function(y,h){return this.ec.verify(y,h,this)},b.prototype.inspect=function(){return""}},5957:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert;function b(D,T){if(D instanceof b)return D;this._importDER(D,T)||(u(D.r&&D.s,"Signature without r or s"),this.r=new e(D.r,16),this.s=new e(D.s,16),this.recoveryParam=void 0===D.recoveryParam?null:D.recoveryParam)}function a(){this.place=0}function y(D,T){var M=D[T.place++];if(!(128&M))return M;var A=15&M;if(0===A||A>4)return!1;for(var E=0,k=0,w=T.place;k>>=0;return!(E<=127)&&(T.place=w,E)}function h(D){for(var T=0,M=D.length-1;!D[T]&&!(128&D[T+1])&&T>>3);for(D.push(128|M);--M;)D.push(T>>>(M<<3)&255);D.push(T)}}He.exports=b,b.prototype._importDER=function(T,M){T=i.toArray(T,M);var A=new a;if(48!==T[A.place++])return!1;var E=y(T,A);if(!1===E||E+A.place!==T.length||2!==T[A.place++])return!1;var k=y(T,A);if(!1===k)return!1;var w=T.slice(A.place,k+A.place);if(A.place+=k,2!==T[A.place++])return!1;var V=y(T,A);if(!1===V||T.length!==V+A.place)return!1;var U=T.slice(A.place,V+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===U[0]){if(!(128&U[1]))return!1;U=U.slice(1)}return this.r=new e(w),this.s=new e(U),this.recoveryParam=null,!0},b.prototype.toDER=function(T){var M=this.r.toArray(),A=this.s.toArray();for(128&M[0]&&(M=[0].concat(M)),128&A[0]&&(A=[0].concat(A)),M=h(M),A=h(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];P(E,M.length),(E=E.concat(M)).push(2),P(E,A.length);var k=E.concat(A),w=[48];return P(w,k.length),w=w.concat(k),i.encode(w,T)}},1885:(He,j,p)=>{"use strict";var e=p(7084),i=p(2916),u=p(1970),b=u.assert,a=u.parseBytes,y=p(7535),h=p(8241);function P(D){if(b("ed25519"===D,"only tested with ed25519 so far"),!(this instanceof P))return new P(D);this.curve=D=i[D].curve,this.g=D.g,this.g.precompute(D.n.bitLength()+1),this.pointClass=D.point().constructor,this.encodingLength=Math.ceil(D.n.bitLength()/8),this.hash=e.sha512}He.exports=P,P.prototype.sign=function(T,M){T=a(T);var A=this.keyFromSecret(M),E=this.hashInt(A.messagePrefix(),T),k=this.g.mul(E),w=this.encodePoint(k),V=this.hashInt(w,A.pubBytes(),T).mul(A.priv()),U=E.add(V).umod(this.curve.n);return this.makeSignature({R:k,S:U,Rencoded:w})},P.prototype.verify=function(T,M,A){T=a(T),M=this.makeSignature(M);var E=this.keyFromPublic(A),k=this.hashInt(M.Rencoded(),E.pubBytes(),T),w=this.g.mul(M.S());return M.R().add(E.pub().mul(k)).eq(w)},P.prototype.hashInt=function(){for(var T=this.hash(),M=0;M{"use strict";var e=p(1970),i=e.assert,u=e.parseBytes,b=e.cachedProperty;function a(y,h){this.eddsa=y,this._secret=u(h.secret),y.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=u(h.pub)}a.fromPublic=function(h,P){return P instanceof a?P:new a(h,{pub:P})},a.fromSecret=function(h,P){return P instanceof a?P:new a(h,{secret:P})},a.prototype.secret=function(){return this._secret},b(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),b(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),b(a,"privBytes",function(){var h=this.eddsa,P=this.hash(),D=h.encodingLength-1,T=P.slice(0,h.encodingLength);return T[0]&=248,T[D]&=127,T[D]|=64,T}),b(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),b(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),b(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(h){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(h,this)},a.prototype.verify=function(h,P){return this.eddsa.verify(h,P,this)},a.prototype.getSecret=function(h){return i(this._secret,"KeyPair is public only"),e.encode(this.secret(),h)},a.prototype.getPublic=function(h){return e.encode(this.pubBytes(),h)},He.exports=a},8241:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert,b=i.cachedProperty,a=i.parseBytes;function y(h,P){this.eddsa=h,"object"!=typeof P&&(P=a(P)),Array.isArray(P)&&(P={R:P.slice(0,h.encodingLength),S:P.slice(h.encodingLength)}),u(P.R&&P.S,"Signature without R or S"),h.isPoint(P.R)&&(this._R=P.R),P.S instanceof e&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}b(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),b(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),b(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),b(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},He.exports=y},5150:He=>{He.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(He,j,p)=>{"use strict";var e=j,i=p(7433),u=p(2391),b=p(8195);e.assert=u,e.toArray=b.toArray,e.zero2=b.zero2,e.toHex=b.toHex,e.encode=b.encode,e.getNAF=function a(T,M,A){var E=new Array(Math.max(T.bitLength(),A)+1);E.fill(0);for(var k=1<(k>>1)-1?(k>>1)-Y:Y):U=0,E[V]=U,w.iushrn(1)}return E},e.getJSF=function y(T,M){var A=[[],[]];T=T.clone(),M=M.clone();for(var w,E=0,k=0;T.cmpn(-E)>0||M.cmpn(-k)>0;){var Y,ae,V=T.andln(3)+E&3,U=M.andln(3)+k&3;3===V&&(V=-1),3===U&&(U=-1),Y=0==(1&V)?0:3!=(w=T.andln(7)+E&7)&&5!==w||2!==U?V:-V,A[0].push(Y),ae=0==(1&U)?0:3!=(w=M.andln(7)+k&7)&&5!==w||2!==V?U:-U,A[1].push(ae),2*E===Y+1&&(E=1-E),2*k===ae+1&&(k=1-k),T.iushrn(1),M.iushrn(1)}return A},e.cachedProperty=function h(T,M,A){var E="_"+M;T.prototype[M]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function P(T){return"string"==typeof T?e.toArray(T,"hex"):T},e.intFromLE=function D(T){return new i(T,"hex","le")}},7433:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function h(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},8419:He=>{"use strict";He.exports=function(p){for(var e=[],i=p.length,u=0;u=55296&&b<=56319&&i>u+1){var a=p.charCodeAt(u+1);a>=56320&&a<=57343&&(b=1024*(b-55296)+a-56320+65536,u+=1)}b<128?e.push(b):b<2048?(e.push(b>>6|192),e.push(63&b|128)):b<55296||b>=57344&&b<65536?(e.push(b>>12|224),e.push(b>>6&63|128),e.push(63&b|128)):b>=65536&&b<=1114111?(e.push(b>>18|240),e.push(b>>12&63|128),e.push(b>>6&63|128),e.push(63&b|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:He=>{"use strict";var e,j="object"==typeof Reflect?Reflect:null,p=j&&"function"==typeof j.apply?j.apply:function(X,de,q){return Function.prototype.apply.call(X,de,q)};e=j&&"function"==typeof j.ownKeys?j.ownKeys:Object.getOwnPropertySymbols?function(X){return Object.getOwnPropertyNames(X).concat(Object.getOwnPropertySymbols(X))}:function(X){return Object.getOwnPropertyNames(X)};var u=Number.isNaN||function(X){return X!=X};function b(){b.init.call(this)}He.exports=b,He.exports.once=function V(ae,X){return new Promise(function(de,q){function re(ee){ae.removeListener(X,le),q(ee)}function le(){"function"==typeof ae.removeListener&&ae.removeListener("error",re),de([].slice.call(arguments))}Y(ae,X,le,{once:!0}),"error"!==X&&function U(ae,X,de){"function"==typeof ae.on&&Y(ae,"error",X,de)}(ae,re,{once:!0})})},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var a=10;function y(ae){if("function"!=typeof ae)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ae)}function h(ae){return void 0===ae._maxListeners?b.defaultMaxListeners:ae._maxListeners}function P(ae,X,de,q){var re,le,ee;if(y(de),void 0===(le=ae._events)?(le=ae._events=Object.create(null),ae._eventsCount=0):(void 0!==le.newListener&&(ae.emit("newListener",X,de.listener?de.listener:de),le=ae._events),ee=le[X]),void 0===ee)ee=le[X]=de,++ae._eventsCount;else if("function"==typeof ee?ee=le[X]=q?[de,ee]:[ee,de]:q?ee.unshift(de):ee.push(de),(re=h(ae))>0&&ee.length>re&&!ee.warned){ee.warned=!0;var _e=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(X)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=ae,_e.type=X,_e.count=ee.length,function i(ae){console&&console.warn&&console.warn(ae)}(_e)}return ae}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(ae,X,de){var q={fired:!1,wrapFn:void 0,target:ae,type:X,listener:de},re=D.bind(q);return re.listener=de,q.wrapFn=re,re}function M(ae,X,de){var q=ae._events;if(void 0===q)return[];var re=q[X];return void 0===re?[]:"function"==typeof re?de?[re.listener||re]:[re]:de?function w(ae){for(var X=new Array(ae.length),de=0;de0&&(ee=de[0]),ee instanceof Error)throw ee;var _e=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw _e.context=ee,_e}var x=le[X];if(void 0===x)return!1;if("function"==typeof x)p(x,this,de);else{var t=x.length,r=E(x,t);for(q=0;q=0;ee--)if(q[ee]===de||q[ee].listener===de){_e=q[ee].listener,le=ee;break}if(le<0)return this;0===le?q.shift():function k(ae,X){for(;X+1=0;re--)this.removeListener(X,de[re]);return this},b.prototype.listeners=function(X){return M(this,X,!0)},b.prototype.rawListeners=function(X){return M(this,X,!1)},b.listenerCount=function(ae,X){return"function"==typeof ae.listenerCount?ae.listenerCount(X):A.call(ae,X)},b.prototype.listenerCount=A,b.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(He,j,p)=>{var e=p(3502).Buffer,i=p(8095);He.exports=function u(b,a,y,h){if(e.isBuffer(b)||(b=e.from(b,"binary")),a&&(e.isBuffer(a)||(a=e.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=y/8,D=e.alloc(P),T=e.alloc(h||0),M=e.alloc(0);P>0||h>0;){var A=new i;A.update(M),A.update(b),a&&A.update(a),M=A.digest();var E=0;if(P>0){var k=D.length-P;E=Math.min(P,M.length),M.copy(D,k,0,E),P-=E}if(E0){var w=T.length-h,V=Math.min(h,M.length-E);M.copy(T,w,E,E+V),h-=V}}return M.fill(0),{key:D,iv:T}}},9650:(He,j,p)=>{"use strict";var e=p(8444).Buffer,i=p(5685).Transform;function a(y){i.call(this),this._block=e.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,i),a.prototype._transform=function(y,h,P){var D=null;try{this.update(y,h)}catch(T){D=T}P(D)},a.prototype._flush=function(y){var h=null;try{this.push(this.digest())}catch(P){h=P}y(h)},a.prototype.update=function(y,h){if(function b(y,h){if(!e.isBuffer(y)&&"string"!=typeof y)throw new TypeError(h+" must be a string or a buffer")}(y,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(y)||(y=e.from(y,h));for(var P=this._block,D=0;this._blockOffset+y.length-D>=this._blockSize;){for(var T=this._blockOffset;T0;++M)this._length[M]+=A,(A=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*A);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var h=this._digest();void 0!==y&&(h=h.toString(y)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return h},a.prototype._digest=function(){throw new Error("_digest is not implemented")},He.exports=a},8444:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var h in a)y[h]=a[h]}function b(a,y,h){return i(a,y,h)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,h){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,h)},b.alloc=function(a,y,h){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},7084:(He,j,p)=>{var e=j;e.utils=p(9299),e.common=p(3800),e.sha=p(4962),e.ripemd=p(9458),e.hmac=p(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(He,j,p)=>{"use strict";var e=p(9299),i=p(2391);function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}j.BlockHash=u,u.prototype.update=function(a,y){if(a=e.toArray(a,y),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var h=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-h,a.length),0===this.pending.length&&(this.pending=null),a=e.join32(a,0,a.length-h,this.endian);for(var P=0;P>>24&255,P[D++]=a>>>16&255,P[D++]=a>>>8&255,P[D++]=255&a}else for(P[D++]=255&a,P[D++]=a>>>8&255,P[D++]=a>>>16&255,P[D++]=a>>>24&255,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,T=8;T{"use strict";var e=p(9299),i=p(2391);function u(b,a,y){if(!(this instanceof u))return new u(b,a,y);this.Hash=b,this.blockSize=b.blockSize/8,this.outSize=b.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(a,y))}He.exports=u,u.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),i(a.length<=this.blockSize);for(var y=a.length;y{"use strict";var e=p(9299),i=p(3800),u=e.rotl32,b=e.sum32,a=e.sum32_3,y=e.sum32_4,h=i.BlockHash;function P(){if(!(this instanceof P))return new P;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function D(V,U,Y,ae){return V<=15?U^Y^ae:V<=31?U&Y|~U&ae:V<=47?(U|~Y)^ae:V<=63?U&ae|Y&~ae:U^(Y|~ae)}function M(V){return V<=15?1352829926:V<=31?1548603684:V<=47?1836072691:V<=63?2053994217:0}e.inherits(P,h),j.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(U,Y){for(var ae=this.h[0],X=this.h[1],de=this.h[2],q=this.h[3],re=this.h[4],le=ae,ee=X,_e=de,x=q,t=re,r=0;r<80;r++){var d=b(u(y(ae,D(r,X,de,q),U[A[r]+Y],(V=r)<=15?0:V<=31?1518500249:V<=47?1859775393:V<=63?2400959708:2840853838),k[r]),re);ae=re,re=q,q=u(de,10),de=X,X=d,d=b(u(y(le,D(79-r,ee,_e,x),U[E[r]+Y],M(r)),w[r]),t),le=t,t=x,x=u(_e,10),_e=ee,ee=d}var V;d=a(this.h[1],de,x),this.h[1]=a(this.h[2],q,t),this.h[2]=a(this.h[3],re,le),this.h[3]=a(this.h[4],ae,ee),this.h[4]=a(this.h[0],X,_e),this.h[0]=d},P.prototype._digest=function(U){return"hex"===U?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(He,j,p)=>{"use strict";j.sha1=p(9007),j.sha224=p(55),j.sha256=p(9342),j.sha384=p(8634),j.sha512=p(39)},9007:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=e.rotl32,a=e.sum32,y=e.sum32_5,h=u.ft_1,P=i.BlockHash,D=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(T,P),He.exports=T,T.blockSize=512,T.outSize=160,T.hmacStrength=80,T.padLength=64,T.prototype._update=function(A,E){for(var k=this.W,w=0;w<16;w++)k[w]=A[E+w];for(;w{"use strict";var e=p(9299),i=p(9342);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=p(2391),a=e.sum32,y=e.sum32_4,h=e.sum32_5,P=u.ch32,D=u.maj32,T=u.s0_256,M=u.s1_256,A=u.g0_256,E=u.g1_256,k=i.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function V(){if(!(this instanceof V))return new V;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(V,k),He.exports=V,V.blockSize=512,V.outSize=256,V.hmacStrength=192,V.padLength=64,V.prototype._update=function(Y,ae){for(var X=this.W,de=0;de<16;de++)X[de]=Y[ae+de];for(;de{"use strict";var e=p(9299),i=p(39);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(2391),b=e.rotr64_hi,a=e.rotr64_lo,y=e.shr64_hi,h=e.shr64_lo,P=e.sum64,D=e.sum64_hi,T=e.sum64_lo,M=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,k=e.sum64_5_lo,w=i.BlockHash,V=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function U(){if(!(this instanceof U))return new U;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=V,this.W=new Array(160)}function Y(d,c,g,S,I){var C=d&g^~d&I;return C<0&&(C+=4294967296),C}function ae(d,c,g,S,I,C){var n=c&S^~c&C;return n<0&&(n+=4294967296),n}function X(d,c,g,S,I){var C=d&g^d&I^g&I;return C<0&&(C+=4294967296),C}function de(d,c,g,S,I,C){var n=c&S^c&C^S&C;return n<0&&(n+=4294967296),n}function q(d,c){var C=b(d,c,28)^b(c,d,2)^b(c,d,7);return C<0&&(C+=4294967296),C}function re(d,c){var C=a(d,c,28)^a(c,d,2)^a(c,d,7);return C<0&&(C+=4294967296),C}function le(d,c){var C=b(d,c,14)^b(d,c,18)^b(c,d,9);return C<0&&(C+=4294967296),C}function ee(d,c){var C=a(d,c,14)^a(d,c,18)^a(c,d,9);return C<0&&(C+=4294967296),C}function _e(d,c){var C=b(d,c,1)^b(d,c,8)^y(d,c,7);return C<0&&(C+=4294967296),C}function x(d,c){var C=a(d,c,1)^a(d,c,8)^h(d,c,7);return C<0&&(C+=4294967296),C}function t(d,c){var C=b(d,c,19)^b(c,d,29)^y(d,c,6);return C<0&&(C+=4294967296),C}function r(d,c){var C=a(d,c,19)^a(c,d,29)^h(d,c,6);return C<0&&(C+=4294967296),C}e.inherits(U,w),He.exports=U,U.blockSize=1024,U.outSize=512,U.hmacStrength=192,U.padLength=128,U.prototype._prepareBlock=function(c,g){for(var S=this.W,I=0;I<32;I++)S[I]=c[g+I];for(;I{"use strict";var i=p(9299).rotr32;function b(M,A,E){return M&A^~M&E}function a(M,A,E){return M&A^M&E^A&E}function y(M,A,E){return M^A^E}j.ft_1=function u(M,A,E,k){return 0===M?b(A,E,k):1===M||3===M?y(A,E,k):2===M?a(A,E,k):void 0},j.ch32=b,j.maj32=a,j.p32=y,j.s0_256=function h(M){return i(M,2)^i(M,13)^i(M,22)},j.s1_256=function P(M){return i(M,6)^i(M,11)^i(M,25)},j.g0_256=function D(M){return i(M,7)^i(M,18)^M>>>3},j.g1_256=function T(M){return i(M,17)^i(M,19)^M>>>10}},9299:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894);function u(r,d){return!(55296!=(64512&r.charCodeAt(d))||d<0||d+1>=r.length)&&56320==(64512&r.charCodeAt(d+1))}function y(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function P(r){return 1===r.length?"0"+r:r}function D(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}j.inherits=i,j.toArray=function b(r,d){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(d){if("hex"===d)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),S=0;S>6|192,c[g++]=63&I|128):u(r,S)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++S)),c[g++]=I>>18|240,c[g++]=I>>12&63|128,c[g++]=I>>6&63|128,c[g++]=63&I|128):(c[g++]=I>>12|224,c[g++]=I>>6&63|128,c[g++]=63&I|128)}else for(S=0;S>>0;return I},j.split32=function M(r,d){for(var c=new Array(4*r.length),g=0,S=0;g>>24,c[S+1]=I>>>16&255,c[S+2]=I>>>8&255,c[S+3]=255&I):(c[S+3]=I>>>24,c[S+2]=I>>>16&255,c[S+1]=I>>>8&255,c[S]=255&I)}return c},j.rotr32=function A(r,d){return r>>>d|r<<32-d},j.rotl32=function E(r,d){return r<>>32-d},j.sum32=function k(r,d){return r+d>>>0},j.sum32_3=function w(r,d,c){return r+d+c>>>0},j.sum32_4=function V(r,d,c,g){return r+d+c+g>>>0},j.sum32_5=function U(r,d,c,g,S){return r+d+c+g+S>>>0},j.sum64=function Y(r,d,c,g){var C=g+r[d+1]>>>0;r[d]=(C>>0,r[d+1]=C},j.sum64_hi=function ae(r,d,c,g){return(d+g>>>0>>0},j.sum64_lo=function X(r,d,c,g){return d+g>>>0},j.sum64_4_hi=function de(r,d,c,g,S,I,C,n){var _=0,B=d;return _+=(B=B+g>>>0)>>0)>>0)>>0},j.sum64_4_lo=function q(r,d,c,g,S,I,C,n){return d+g+I+n>>>0},j.sum64_5_hi=function re(r,d,c,g,S,I,C,n,_,B){var R=0,H=d;return R+=(H=H+g>>>0)>>0)>>0)>>0)>>0},j.sum64_5_lo=function le(r,d,c,g,S,I,C,n,_,B){return d+g+I+n+B>>>0},j.rotr64_hi=function ee(r,d,c){return(d<<32-c|r>>>c)>>>0},j.rotr64_lo=function _e(r,d,c){return(r<<32-c|d>>>c)>>>0},j.shr64_hi=function x(r,d,c){return r>>>c},j.shr64_lo=function t(r,d,c){return(r<<32-c|d>>>c)>>>0}},2438:(He,j,p)=>{"use strict";var e=p(7084),i=p(8195),u=p(2391);function b(a){if(!(this instanceof b))return new b(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var y=i.toArray(a.entropy,a.entropyEnc||"hex"),h=i.toArray(a.nonce,a.nonceEnc||"hex"),P=i.toArray(a.pers,a.persEnc||"hex");u(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(y,h,P)}He.exports=b,b.prototype._init=function(y,h,P){var D=y.concat(h).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var T=0;T=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(y.concat(P||[])),this._reseed=1},b.prototype.generate=function(y,h,P,D){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof h&&(D=P,P=h,h=null),P&&(P=i.toArray(P,D||"hex"),this._update(P));for(var T=[];T.length{j.read=function(p,e,i,u,b){var a,y,h=8*b-u-1,P=(1<>1,T=-7,M=i?b-1:0,A=i?-1:1,E=p[e+M];for(M+=A,a=E&(1<<-T)-1,E>>=-T,T+=h;T>0;a=256*a+p[e+M],M+=A,T-=8);for(y=a&(1<<-T)-1,a>>=-T,T+=u;T>0;y=256*y+p[e+M],M+=A,T-=8);if(0===a)a=1-D;else{if(a===P)return y?NaN:1/0*(E?-1:1);y+=Math.pow(2,u),a-=D}return(E?-1:1)*y*Math.pow(2,a-u)},j.write=function(p,e,i,u,b,a){var y,h,P,D=8*a-b-1,T=(1<>1,A=23===b?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:a-1,k=u?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(h=isNaN(e)?1:0,y=T):(y=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-y))<1&&(y--,P*=2),(e+=y+M>=1?A/P:A*Math.pow(2,1-M))*P>=2&&(y++,P/=2),y+M>=T?(h=0,y=T):y+M>=1?(h=(e*P-1)*Math.pow(2,b),y+=M):(h=e*Math.pow(2,M-1)*Math.pow(2,b),y=0));b>=8;p[i+E]=255&h,E+=k,h/=256,b-=8);for(y=y<0;p[i+E]=255&y,E+=k,y/=256,D-=8);p[i+E-k]|=128*w}},3894:He=>{He.exports="function"==typeof Object.create?function(p,e){e&&(p.super_=e,p.prototype=Object.create(e.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,e){if(e){p.super_=e;var i=function(){};i.prototype=e.prototype,p.prototype=new i,p.prototype.constructor=p}}},717:(He,j,p)=>{"use strict";var e=p(623);function i(u){return!0===e(u)&&"[object Object]"===Object.prototype.toString.call(u)}He.exports=function(b){var a,y;return!(!1===i(b)||(a=b.constructor,"function"!=typeof a)||(y=a.prototype,!1===i(y))||!1===y.hasOwnProperty("isPrototypeOf"))}},623:He=>{"use strict";He.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:He=>{var j=Object.prototype.toString;function p(D){return"function"==typeof D.constructor?D.constructor.name:null}He.exports=function(T){if(void 0===T)return"undefined";if(null===T)return"null";var M=typeof T;if("boolean"===M)return"boolean";if("string"===M)return"string";if("number"===M)return"number";if("symbol"===M)return"symbol";if("function"===M)return function a(D,T){return"GeneratorFunction"===p(D)}(T)?"generatorfunction":"function";if(function e(D){return Array.isArray?Array.isArray(D):D instanceof Array}(T))return"array";if(function P(D){return!(!D.constructor||"function"!=typeof D.constructor.isBuffer)&&D.constructor.isBuffer(D)}(T))return"buffer";if(function h(D){try{if("number"==typeof D.length&&"function"==typeof D.callee)return!0}catch(T){if(-1!==T.message.indexOf("callee"))return!0}return!1}(T))return"arguments";if(function u(D){return D instanceof Date||"function"==typeof D.toDateString&&"function"==typeof D.getDate&&"function"==typeof D.setDate}(T))return"date";if(function i(D){return D instanceof Error||"string"==typeof D.message&&D.constructor&&"number"==typeof D.constructor.stackTraceLimit}(T))return"error";if(function b(D){return D instanceof RegExp||"string"==typeof D.flags&&"boolean"==typeof D.ignoreCase&&"boolean"==typeof D.multiline&&"boolean"==typeof D.global}(T))return"regexp";switch(p(T)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function y(D){return"function"==typeof D.throw&&"function"==typeof D.return&&"function"==typeof D.next}(T))return"generator";switch(M=j.call(T)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return M.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(He,j,p)=>{"use strict";var e=p(3894),i=p(9650),u=p(3502).Buffer,b=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function y(M,A){return M<>>32-A}function h(M,A,E,k,w,V,U){return y(M+(A&E|~A&k)+w+V|0,U)+A|0}function P(M,A,E,k,w,V,U){return y(M+(A&k|E&~k)+w+V|0,U)+A|0}function D(M,A,E,k,w,V,U){return y(M+(A^E^k)+w+V|0,U)+A|0}function T(M,A,E,k,w,V,U){return y(M+(E^(A|~k))+w+V|0,U)+A|0}e(a,i),a.prototype._update=function(){for(var M=b,A=0;A<16;++A)M[A]=this._block.readInt32LE(4*A);var E=this._a,k=this._b,w=this._c,V=this._d;E=h(E,k,w,V,M[0],3614090360,7),V=h(V,E,k,w,M[1],3905402710,12),w=h(w,V,E,k,M[2],606105819,17),k=h(k,w,V,E,M[3],3250441966,22),E=h(E,k,w,V,M[4],4118548399,7),V=h(V,E,k,w,M[5],1200080426,12),w=h(w,V,E,k,M[6],2821735955,17),k=h(k,w,V,E,M[7],4249261313,22),E=h(E,k,w,V,M[8],1770035416,7),V=h(V,E,k,w,M[9],2336552879,12),w=h(w,V,E,k,M[10],4294925233,17),k=h(k,w,V,E,M[11],2304563134,22),E=h(E,k,w,V,M[12],1804603682,7),V=h(V,E,k,w,M[13],4254626195,12),w=h(w,V,E,k,M[14],2792965006,17),E=P(E,k=h(k,w,V,E,M[15],1236535329,22),w,V,M[1],4129170786,5),V=P(V,E,k,w,M[6],3225465664,9),w=P(w,V,E,k,M[11],643717713,14),k=P(k,w,V,E,M[0],3921069994,20),E=P(E,k,w,V,M[5],3593408605,5),V=P(V,E,k,w,M[10],38016083,9),w=P(w,V,E,k,M[15],3634488961,14),k=P(k,w,V,E,M[4],3889429448,20),E=P(E,k,w,V,M[9],568446438,5),V=P(V,E,k,w,M[14],3275163606,9),w=P(w,V,E,k,M[3],4107603335,14),k=P(k,w,V,E,M[8],1163531501,20),E=P(E,k,w,V,M[13],2850285829,5),V=P(V,E,k,w,M[2],4243563512,9),w=P(w,V,E,k,M[7],1735328473,14),E=D(E,k=P(k,w,V,E,M[12],2368359562,20),w,V,M[5],4294588738,4),V=D(V,E,k,w,M[8],2272392833,11),w=D(w,V,E,k,M[11],1839030562,16),k=D(k,w,V,E,M[14],4259657740,23),E=D(E,k,w,V,M[1],2763975236,4),V=D(V,E,k,w,M[4],1272893353,11),w=D(w,V,E,k,M[7],4139469664,16),k=D(k,w,V,E,M[10],3200236656,23),E=D(E,k,w,V,M[13],681279174,4),V=D(V,E,k,w,M[0],3936430074,11),w=D(w,V,E,k,M[3],3572445317,16),k=D(k,w,V,E,M[6],76029189,23),E=D(E,k,w,V,M[9],3654602809,4),V=D(V,E,k,w,M[12],3873151461,11),w=D(w,V,E,k,M[15],530742520,16),E=T(E,k=D(k,w,V,E,M[2],3299628645,23),w,V,M[0],4096336452,6),V=T(V,E,k,w,M[7],1126891415,10),w=T(w,V,E,k,M[14],2878612391,15),k=T(k,w,V,E,M[5],4237533241,21),E=T(E,k,w,V,M[12],1700485571,6),V=T(V,E,k,w,M[3],2399980690,10),w=T(w,V,E,k,M[10],4293915773,15),k=T(k,w,V,E,M[1],2240044497,21),E=T(E,k,w,V,M[8],1873313359,6),V=T(V,E,k,w,M[15],4264355552,10),w=T(w,V,E,k,M[6],2734768916,15),k=T(k,w,V,E,M[13],1309151649,21),E=T(E,k,w,V,M[4],4149444226,6),V=T(V,E,k,w,M[11],3174756917,10),w=T(w,V,E,k,M[2],718787259,15),k=T(k,w,V,E,M[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+k|0,this._c=this._c+w|0,this._d=this._d+V|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var M=u.allocUnsafe(16);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M},He.exports=a},7079:(He,j,p)=>{var e=p(1378),i=p(7950);function u(b){this.rand=b||new i.Rand}He.exports=u,u.create=function(a){return new u(a)},u.prototype._randbelow=function(a){var y=a.bitLength(),h=Math.ceil(y/8);do{var P=new e(this.rand.generate(h))}while(P.cmp(a)>=0);return P},u.prototype._randrange=function(a,y){var h=y.sub(a);return a.add(this._randbelow(h))},u.prototype.test=function(a,y,h){var P=a.bitLength(),D=e.mont(a),T=new e(1).toRed(D);y||(y=Math.max(1,P/48|0));for(var M=a.subn(1),A=0;!M.testn(A);A++);for(var E=a.shrn(A),k=M.toRed(D);y>0;y--){var V=this._randrange(new e(2),M);h&&h(V);var U=V.toRed(D).redPow(E);if(0!==U.cmp(T)&&0!==U.cmp(k)){for(var Y=1;Y0;y--){var k=this._randrange(new e(2),T),w=a.gcd(k);if(0!==w.cmpn(1))return w;var V=k.toRed(P).redPow(A);if(0!==V.cmp(D)&&0!==V.cmp(E)){for(var U=1;U=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},2391:He=>{function j(p,e){if(!p)throw new Error(e||"Assertion failed")}He.exports=j,j.equal=function(e,i,u){if(e!=i)throw new Error(u||"Assertion failed: "+e+" != "+i)}},8195:(He,j)=>{"use strict";var p=j;function i(b){return 1===b.length?"0"+b:b}function u(b){for(var a="",y=0;y>8,T=255&P;D?y.push(D,T):y.push(T)}return y},p.zero2=i,p.toHex=u,p.encode=function(a,y){return"hex"===y?u(a):a}},5768:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(842);Object.keys(e).forEach(function(i){"default"!==i&&Object.defineProperty(j,i,{enumerable:!0,get:function(){return e[i]}})})},2999:(He,j,p)=>{"use strict";var e=p(7977);j.certificate=p(2390);var i=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});j.RSAPrivateKey=i;var u=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});j.RSAPublicKey=u;var b=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});j.PublicKey=b;var a=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),y=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});j.PrivateKey=y;var h=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});j.EncryptedPrivateKey=h;var P=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});j.DSAPrivateKey=P,j.DSAparam=e.define("DSAparam",function(){this.int()});var D=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(T),this.key("publicKey").optional().explicit(1).bitstr())});j.ECPrivateKey=D;var T=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});j.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(He,j,p)=>{"use strict";var e=p(7977),i=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),b=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(b),this.key("subjectPublicKey").bitstr())}),y=e.define("RelativeDistinguishedName",function(){this.setof(u)}),h=e.define("RDNSequence",function(){this.seqof(y)}),P=e.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),D=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),T=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),M=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(b),this.key("issuer").use(P),this.key("validity").use(D),this.key("subject").use(P),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(T).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(M),this.key("signatureAlgorithm").use(b),this.key("signatureValue").bitstr())});He.exports=A},5269:(He,j,p)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,b=p(347),a=p(4330),y=p(3502).Buffer;He.exports=function(h,P){var M,D=h.toString(),T=D.match(e);if(T){var E="aes"+T[1],k=y.from(T[2],"hex"),w=y.from(T[3].replace(/[\r\n]/g,""),"base64"),V=b(P,k.slice(0,8),parseInt(T[1],10)).key,U=[],Y=a.createDecipheriv(E,V,k);U.push(Y.update(w)),U.push(Y.final()),M=y.concat(U)}else{var A=D.match(u);M=y.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:D.match(i)[1],data:M}}},2772:(He,j,p)=>{var e=p(2999),i=p(2562),u=p(5269),b=p(4330),a=p(9357),y=p(3502).Buffer;function h(D){var T;"object"==typeof D&&!y.isBuffer(D)&&(T=D.passphrase,D=D.key),"string"==typeof D&&(D=y.from(D));var k,w,M=u(D,T),A=M.tag,E=M.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),k=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":E=function P(D,T){var M=D.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(D.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=i[D.algorithm.decrypt.cipher.algo.join(".")],k=D.algorithm.decrypt.cipher.iv,w=D.subjectPrivateKey,V=parseInt(E.split("-")[1],10)/8,U=a.pbkdf2Sync(T,M,A,V,"sha1"),Y=b.createDecipheriv(E,U,k),ae=[];return ae.push(Y.update(w)),ae.push(Y.final()),y.concat(ae)}(E=e.EncryptedPrivateKey.decode(E,"der"),T);case"PRIVATE KEY":switch(k=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}He.exports=h,h.signature=e.signature},9357:(He,j,p)=>{j.pbkdf2=p(415),j.pbkdf2Sync=p(7472)},415:(He,j,p)=>{var y,M,e=p(3502).Buffer,i=p(2697),u=p(8867),b=p(7472),a=p(4566),h=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},D=[];function A(){return M||(M=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,V,U,Y,ae){return h.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(X){return h.deriveBits({name:"PBKDF2",salt:V,iterations:U,hash:{name:ae}},X,Y<<3)}).then(function(X){return e.from(X)})}He.exports=function(w,V,U,Y,ae,X){"function"==typeof ae&&(X=ae,ae=void 0);var de=P[(ae=ae||"sha1").toLowerCase()];if(de&&"function"==typeof global.Promise){if(i(U,Y),w=a(w,u,"Password"),V=a(V,u,"Salt"),"function"!=typeof X)throw new Error("No callback provided to pbkdf2");!function k(w,V){w.then(function(U){A()(function(){V(null,U)})},function(U){A()(function(){V(U)})})}(function T(w){if(global.process&&!global.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==D[w])return D[w];var V=E(y=y||e.alloc(8),y,10,128,w).then(function(){return!0}).catch(function(){return!1});return D[w]=V,V}(de).then(function(q){return q?E(w,V,U,Y,de):b(w,V,U,Y,ae)}),X)}else A()(function(){var q;try{q=b(w,V,U,Y,ae)}catch(re){return X(re)}X(null,q)})}},8867:He=>{var j;j=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",He.exports=j},2697:He=>{var j=Math.pow(2,30)-1;He.exports=function(p,e){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>j||e!=e)throw new TypeError("Bad key length")}},7472:(He,j,p)=>{var e=p(5640),i=p(5634),u=p(5244),b=p(3502).Buffer,a=p(2697),y=p(8867),h=p(4566),P=b.alloc(128),D={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function T(E,k,w){var V=function M(E){return"rmd160"===E||"ripemd160"===E?function w(V){return(new i).update(V).digest()}:"md5"===E?e:function k(V){return u(E).update(V).digest()}}(E),U="sha512"===E||"sha384"===E?128:64;k.length>U?k=V(k):k.length{var e=p(3502).Buffer;He.exports=function(i,u,b){if(e.isBuffer(i))return i;if("string"==typeof i)return e.from(i,u);if(ArrayBuffer.isView(i))return e.from(i.buffer);throw new TypeError(b+" must be a string, a Buffer, a typed array or a DataView")}},3701:(He,j,p)=>{j.publicEncrypt=p(6562),j.privateDecrypt=p(6705),j.privateEncrypt=function(i,u){return j.publicEncrypt(i,u,!0)},j.publicDecrypt=function(i,u){return j.privateDecrypt(i,u,!0)}},6945:(He,j,p)=>{var e=p(6386),i=p(3502).Buffer;function u(b){var a=i.allocUnsafe(4);return a.writeUInt32BE(b,0),a}He.exports=function(b,a){for(var P,y=i.alloc(0),h=0;y.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var d=h(x,r);return r-1>=t&&(d|=h(x,r-1)<<4),d}function D(x,t,r,d){for(var c=0,g=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,d){if("number"==typeof t)return this._initNumber(t,r,d);if("object"==typeof t)return this._initArray(t,r,d);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[g]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);else if("le"===d)for(c=0,g=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,g++);return this.strip()},a.prototype._parseHex=function(t,r,d){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(g-=18,this.words[S+=1]|=I>>>26):g+=8;this.strip()},a.prototype._parseBase=function(t,r,d){this.words=[0],this.length=1;for(var c=0,g=1;g<=67108863;g*=r)c++;c--,g=g/r|0;for(var S=t.length-d,I=S%c,C=Math.min(S,S-I)+d,n=0,_=d;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var d=x.length+t.length|0;r.length=d,d=d-1|0;var c=0|x.words[0],g=0|t.words[0],S=c*g,C=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,B=67108863&C,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)_+=(S=(c=0|x.words[n-H|0])*(g=0|t.words[H])+B)/67108864|0,B=67108863&S;r.words[n]=0|B,C=0|_}return 0!==C?r.words[n]=0|C:r.length--,r.strip()}a.prototype.toString=function(t,r){var d;if(r=0|r||1,16===(t=t||10)||"hex"===t){d="";for(var c=0,g=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-C.length]+C+d:C+d,(c+=2)>=26&&(c-=26,S--)}for(0!==g&&(d=g.toString(16)+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],_=A[t];d="";var B=this.clone();for(B.negative=0;!B.isZero();){var R=B.modn(_).toString(t);d=(B=B.idivn(_)).isZero()?R+d:T[n-R.length]+R+d}for(this.isZero()&&(d="0"+d);d.length%r!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,d){var c=this.byteLength(),g=d||Math.max(1,c);u(c<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var C,n,S="le"===r,I=new t(g),_=this.clone();if(S){for(n=0;!_.isZero();n++)C=_.andln(255),_.iushrn(8),I[n]=C;for(;n=4096&&(d+=13,r>>>=13),r>=64&&(d+=7,r>>>=7),r>=8&&(d+=4,r>>>=4),r>=2&&(d+=2,r>>>=2),d+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,d=0;return 0==(8191&r)&&(d+=13,r>>>=13),0==(127&r)&&(d+=7,r>>>=7),0==(15&r)&&(d+=4,r>>>=4),0==(3&r)&&(d+=2,r>>>=2),0==(1&r)&&d++,d},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var d=0;dt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,d;this.length>t.length?(r=this,d=t):(r=t,d=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),d=t%26;this._expand(r),d>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-d),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var d=t/26|0,c=t%26;return this._expand(d+1),this.words[d]=r?this.words[d]|1<t.length?(d=this,c=t):(d=t,c=this);for(var g=0,S=0;S>>26;for(;0!==g&&S>>26;if(this.length=d.length,0!==g)this.words[this.length]=g,this.length++;else if(d!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,g,d=this.cmp(t);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(c=this,g=t):(c=t,g=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,Q=0|c[1],Z=8191&Q,te=Q>>>13,Te=0|c[2],Ee=8191&Te,ne=Te>>>13,ze=0|c[3],be=8191&ze,$=ze>>>13,ke=0|c[4],lt=8191&ke,W=ke>>>13,De=0|c[5],he=8191&De,Ae=De>>>13,xe=0|c[6],G=8191&xe,ie=xe>>>13,pe=0|c[7],ye=8191&pe,Le=pe>>>13,ot=0|c[8],ht=8191&ot,At=ot>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|g[0],vt=8191&di,kt=di>>>13,mt=0|g[1],Xe=8191&mt,_t=mt>>>13,ei=0|g[2],Kt=8191&ei,Pe=ei>>>13,Ie=0|g[3],ce=8191&Ie,Me=Ie>>>13,ut=0|g[4],ft=8191&ut,Rt=ut>>>13,et=0|g[5],Re=8191&et,Je=et>>>13,Ke=0|g[6],we=8191&Ke,Fe=Ke>>>13,rt=0|g[7],at=8191&rt,yt=rt>>>13,mi=0|g[8],Xt=8191&mi,qt=mi>>>13,Xi=0|g[9],ui=8191&Xi,si=Xi>>>13;d.negative=t.negative^r.negative,d.length=19;var qi=(I+(C=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((_=Math.imul(H,kt))+(n>>>13)|0)+(qi>>>26)|0,qi&=67108863,C=Math.imul(Z,vt),n=(n=Math.imul(Z,kt))+Math.imul(te,vt)|0,_=Math.imul(te,kt);var Gi=(I+(C=C+Math.imul(R,Xe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Xe)|0))<<13)|0;I=((_=_+Math.imul(H,_t)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,C=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(ne,vt)|0,_=Math.imul(ne,kt),C=C+Math.imul(Z,Xe)|0,n=(n=n+Math.imul(Z,_t)|0)+Math.imul(te,Xe)|0,_=_+Math.imul(te,_t)|0;var Ui=(I+(C=C+Math.imul(R,Kt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Kt)|0))<<13)|0;I=((_=_+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,C=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul($,vt)|0,_=Math.imul($,kt),C=C+Math.imul(Ee,Xe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,_t)|0,C=C+Math.imul(Z,Kt)|0,n=(n=n+Math.imul(Z,Pe)|0)+Math.imul(te,Kt)|0,_=_+Math.imul(te,Pe)|0;var Wi=(I+(C=C+Math.imul(R,ce)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,ce)|0))<<13)|0;I=((_=_+Math.imul(H,Me)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,C=Math.imul(lt,vt),n=(n=Math.imul(lt,kt))+Math.imul(W,vt)|0,_=Math.imul(W,kt),C=C+Math.imul(be,Xe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul($,Xe)|0,_=_+Math.imul($,_t)|0,C=C+Math.imul(Ee,Kt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(ne,Kt)|0,_=_+Math.imul(ne,Pe)|0,C=C+Math.imul(Z,ce)|0,n=(n=n+Math.imul(Z,Me)|0)+Math.imul(te,ce)|0,_=_+Math.imul(te,Me)|0;var ct=(I+(C=C+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((_=_+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,C=Math.imul(he,vt),n=(n=Math.imul(he,kt))+Math.imul(Ae,vt)|0,_=Math.imul(Ae,kt),C=C+Math.imul(lt,Xe)|0,n=(n=n+Math.imul(lt,_t)|0)+Math.imul(W,Xe)|0,_=_+Math.imul(W,_t)|0,C=C+Math.imul(be,Kt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul($,Kt)|0,_=_+Math.imul($,Pe)|0,C=C+Math.imul(Ee,ce)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(ne,ce)|0,_=_+Math.imul(ne,Me)|0,C=C+Math.imul(Z,ft)|0,n=(n=n+Math.imul(Z,Rt)|0)+Math.imul(te,ft)|0,_=_+Math.imul(te,Rt)|0;var Ft=(I+(C=C+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,Je)|0)+Math.imul(H,Re)|0))<<13)|0;I=((_=_+Math.imul(H,Je)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,C=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ie,vt)|0,_=Math.imul(ie,kt),C=C+Math.imul(he,Xe)|0,n=(n=n+Math.imul(he,_t)|0)+Math.imul(Ae,Xe)|0,_=_+Math.imul(Ae,_t)|0,C=C+Math.imul(lt,Kt)|0,n=(n=n+Math.imul(lt,Pe)|0)+Math.imul(W,Kt)|0,_=_+Math.imul(W,Pe)|0,C=C+Math.imul(be,ce)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul($,ce)|0,_=_+Math.imul($,Me)|0,C=C+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(ne,ft)|0,_=_+Math.imul(ne,Rt)|0,C=C+Math.imul(Z,Re)|0,n=(n=n+Math.imul(Z,Je)|0)+Math.imul(te,Re)|0,_=_+Math.imul(te,Je)|0;var pt=(I+(C=C+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((_=_+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,C=Math.imul(ye,vt),n=(n=Math.imul(ye,kt))+Math.imul(Le,vt)|0,_=Math.imul(Le,kt),C=C+Math.imul(G,Xe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ie,Xe)|0,_=_+Math.imul(ie,_t)|0,C=C+Math.imul(he,Kt)|0,n=(n=n+Math.imul(he,Pe)|0)+Math.imul(Ae,Kt)|0,_=_+Math.imul(Ae,Pe)|0,C=C+Math.imul(lt,ce)|0,n=(n=n+Math.imul(lt,Me)|0)+Math.imul(W,ce)|0,_=_+Math.imul(W,Me)|0,C=C+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul($,ft)|0,_=_+Math.imul($,Rt)|0,C=C+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,Je)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,Je)|0,C=C+Math.imul(Z,we)|0,n=(n=n+Math.imul(Z,Fe)|0)+Math.imul(te,we)|0,_=_+Math.imul(te,Fe)|0;var it=(I+(C=C+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((_=_+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,C=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(At,vt)|0,_=Math.imul(At,kt),C=C+Math.imul(ye,Xe)|0,n=(n=n+Math.imul(ye,_t)|0)+Math.imul(Le,Xe)|0,_=_+Math.imul(Le,_t)|0,C=C+Math.imul(G,Kt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ie,Kt)|0,_=_+Math.imul(ie,Pe)|0,C=C+Math.imul(he,ce)|0,n=(n=n+Math.imul(he,Me)|0)+Math.imul(Ae,ce)|0,_=_+Math.imul(Ae,Me)|0,C=C+Math.imul(lt,ft)|0,n=(n=n+Math.imul(lt,Rt)|0)+Math.imul(W,ft)|0,_=_+Math.imul(W,Rt)|0,C=C+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,Je)|0)+Math.imul($,Re)|0,_=_+Math.imul($,Je)|0,C=C+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(ne,we)|0,_=_+Math.imul(ne,Fe)|0,C=C+Math.imul(Z,at)|0,n=(n=n+Math.imul(Z,yt)|0)+Math.imul(te,at)|0,_=_+Math.imul(te,yt)|0;var It=(I+(C=C+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,qt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((_=_+Math.imul(H,qt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,C=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,_=Math.imul(Gt,kt),C=C+Math.imul(ht,Xe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(At,Xe)|0,_=_+Math.imul(At,_t)|0,C=C+Math.imul(ye,Kt)|0,n=(n=n+Math.imul(ye,Pe)|0)+Math.imul(Le,Kt)|0,_=_+Math.imul(Le,Pe)|0,C=C+Math.imul(G,ce)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ie,ce)|0,_=_+Math.imul(ie,Me)|0,C=C+Math.imul(he,ft)|0,n=(n=n+Math.imul(he,Rt)|0)+Math.imul(Ae,ft)|0,_=_+Math.imul(Ae,Rt)|0,C=C+Math.imul(lt,Re)|0,n=(n=n+Math.imul(lt,Je)|0)+Math.imul(W,Re)|0,_=_+Math.imul(W,Je)|0,C=C+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul($,we)|0,_=_+Math.imul($,Fe)|0,C=C+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(ne,at)|0,_=_+Math.imul(ne,yt)|0,C=C+Math.imul(Z,Xt)|0,n=(n=n+Math.imul(Z,qt)|0)+Math.imul(te,Xt)|0,_=_+Math.imul(te,qt)|0;var ue=(I+(C=C+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(ue>>>26)|0,ue&=67108863,C=Math.imul(jt,Xe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Xe)|0,_=Math.imul(Gt,_t),C=C+Math.imul(ht,Kt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(At,Kt)|0,_=_+Math.imul(At,Pe)|0,C=C+Math.imul(ye,ce)|0,n=(n=n+Math.imul(ye,Me)|0)+Math.imul(Le,ce)|0,_=_+Math.imul(Le,Me)|0,C=C+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ie,ft)|0,_=_+Math.imul(ie,Rt)|0,C=C+Math.imul(he,Re)|0,n=(n=n+Math.imul(he,Je)|0)+Math.imul(Ae,Re)|0,_=_+Math.imul(Ae,Je)|0,C=C+Math.imul(lt,we)|0,n=(n=n+Math.imul(lt,Fe)|0)+Math.imul(W,we)|0,_=_+Math.imul(W,Fe)|0,C=C+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul($,at)|0,_=_+Math.imul($,yt)|0,C=C+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,qt)|0)+Math.imul(ne,Xt)|0,_=_+Math.imul(ne,qt)|0;var $e=(I+(C=C+Math.imul(Z,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Z,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(jt,Kt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Kt)|0,_=Math.imul(Gt,Pe),C=C+Math.imul(ht,ce)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(At,ce)|0,_=_+Math.imul(At,Me)|0,C=C+Math.imul(ye,ft)|0,n=(n=n+Math.imul(ye,Rt)|0)+Math.imul(Le,ft)|0,_=_+Math.imul(Le,Rt)|0,C=C+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,Je)|0)+Math.imul(ie,Re)|0,_=_+Math.imul(ie,Je)|0,C=C+Math.imul(he,we)|0,n=(n=n+Math.imul(he,Fe)|0)+Math.imul(Ae,we)|0,_=_+Math.imul(Ae,Fe)|0,C=C+Math.imul(lt,at)|0,n=(n=n+Math.imul(lt,yt)|0)+Math.imul(W,at)|0,_=_+Math.imul(W,yt)|0,C=C+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,qt)|0)+Math.imul($,Xt)|0,_=_+Math.imul($,qt)|0;var bt=(I+(C=C+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(ne,ui)|0))<<13)|0;I=((_=_+Math.imul(ne,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,C=Math.imul(jt,ce),n=(n=Math.imul(jt,Me))+Math.imul(Gt,ce)|0,_=Math.imul(Gt,Me),C=C+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(At,ft)|0,_=_+Math.imul(At,Rt)|0,C=C+Math.imul(ye,Re)|0,n=(n=n+Math.imul(ye,Je)|0)+Math.imul(Le,Re)|0,_=_+Math.imul(Le,Je)|0,C=C+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ie,we)|0,_=_+Math.imul(ie,Fe)|0,C=C+Math.imul(he,at)|0,n=(n=n+Math.imul(he,yt)|0)+Math.imul(Ae,at)|0,_=_+Math.imul(Ae,yt)|0,C=C+Math.imul(lt,Xt)|0,n=(n=n+Math.imul(lt,qt)|0)+Math.imul(W,Xt)|0,_=_+Math.imul(W,qt)|0;var Vt=(I+(C=C+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul($,ui)|0))<<13)|0;I=((_=_+Math.imul($,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,C=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,_=Math.imul(Gt,Rt),C=C+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,Je)|0)+Math.imul(At,Re)|0,_=_+Math.imul(At,Je)|0,C=C+Math.imul(ye,we)|0,n=(n=n+Math.imul(ye,Fe)|0)+Math.imul(Le,we)|0,_=_+Math.imul(Le,Fe)|0,C=C+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ie,at)|0,_=_+Math.imul(ie,yt)|0,C=C+Math.imul(he,Xt)|0,n=(n=n+Math.imul(he,qt)|0)+Math.imul(Ae,Xt)|0,_=_+Math.imul(Ae,qt)|0;var yi=(I+(C=C+Math.imul(lt,ui)|0)|0)+((8191&(n=(n=n+Math.imul(lt,si)|0)+Math.imul(W,ui)|0))<<13)|0;I=((_=_+Math.imul(W,si)|0)+(n>>>13)|0)+(yi>>>26)|0,yi&=67108863,C=Math.imul(jt,Re),n=(n=Math.imul(jt,Je))+Math.imul(Gt,Re)|0,_=Math.imul(Gt,Je),C=C+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(At,we)|0,_=_+Math.imul(At,Fe)|0,C=C+Math.imul(ye,at)|0,n=(n=n+Math.imul(ye,yt)|0)+Math.imul(Le,at)|0,_=_+Math.imul(Le,yt)|0,C=C+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,qt)|0)+Math.imul(ie,Xt)|0,_=_+Math.imul(ie,qt)|0;var Li=(I+(C=C+Math.imul(he,ui)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(Ae,ui)|0))<<13)|0;I=((_=_+Math.imul(Ae,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,_=Math.imul(Gt,Fe),C=C+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(At,at)|0,_=_+Math.imul(At,yt)|0,C=C+Math.imul(ye,Xt)|0,n=(n=n+Math.imul(ye,qt)|0)+Math.imul(Le,Xt)|0,_=_+Math.imul(Le,qt)|0;var Ji=(I+(C=C+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ie,ui)|0))<<13)|0;I=((_=_+Math.imul(ie,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,C=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,_=Math.imul(Gt,yt),C=C+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,qt)|0)+Math.imul(At,Xt)|0,_=_+Math.imul(At,qt)|0;var Yi=(I+(C=C+Math.imul(ye,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ye,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((_=_+Math.imul(Le,si)|0)+(n>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(jt,Xt),n=(n=Math.imul(jt,qt))+Math.imul(Gt,Xt)|0,_=Math.imul(Gt,qt);var an=(I+(C=C+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(At,ui)|0))<<13)|0;I=((_=_+Math.imul(At,si)|0)+(n>>>13)|0)+(an>>>26)|0,an&=67108863;var pn=(I+(C=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((_=Math.imul(Gt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,S[0]=qi,S[1]=Gi,S[2]=Ui,S[3]=Wi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=ue,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=yi,S[14]=Li,S[15]=Ji,S[16]=Yi,S[17]=an,S[18]=pn,0!==I&&(S[19]=I,d.length++),d};function U(x,t,r){return(new Y).mulp(x,t,r)}function Y(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var d,c=this.length+t.length;return d=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function V(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var d=0,c=0,g=0;g>>26)|0)>>>26,S&=67108863}r.words[g]=I,d=S,S=c}return 0!==d?r.words[g]=d:r.length--,r.strip()}(this,t,r):U(this,t,r),d},Y.prototype.makeRBT=function(t){for(var r=new Array(t),d=a.prototype._countBits(t)-1,c=0;c>=1;return c},Y.prototype.permute=function(t,r,d,c,g,S){for(var I=0;I>>=1)g++;return 1<>>=13),g>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=g>>>26,this.words[d]=67108863&g}return 0!==r&&(this.words[d]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var d=this,c=0;c=0);var g,r=t%26,d=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(g=0;g>>26-r}S&&(this.words[g]=S,this.length++)}if(0!==d){for(g=this.length-1;g>=0;g--)this.words[g+d]=this.words[g];for(g=0;g=0),c=r?(r-r%26)/26:0;var g=t%26,S=Math.min((t-g)/26,this.length),I=67108863^67108863>>>g<S)for(this.length-=S,n=0;n=0&&(0!==_||n>=c);n--){var B=0|this.words[n];this.words[n]=_<<26-g|B>>>g,_=B&I}return C&&0!==_&&(C.words[C.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,d){return u(0===this.negative),this.iushrn(t,r,d)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,d=(t-r)/26;return!(this.length<=d||!(this.words[d]&1<=0);var r=t%26,d=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==r&&d++,this.length=Math.min(d,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(C/67108864|0),this.words[g+d]=67108863&S}for(;g>26,this.words[g+d]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,g=0;g>26,this.words[g]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var d,c=this.clone(),g=t,S=0|g.words[g.length-1];0!=(d=26-this._countBits(S))&&(g=g.ushln(d),c.iushln(d),S=0|g.words[g.length-1]);var n,C=c.length-g.length;if("mod"!==r){(n=new a(null)).length=C+1,n.words=new Array(n.length);for(var _=0;_=0;R--){var H=67108864*(0|c.words[g.length+R])+(0|c.words[g.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(g,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(g,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==d&&c.iushrn(d),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,d){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.iadd(t)),{div:c,mod:g}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(g=S.mod.neg(),d&&0!==g.negative&&g.isub(t)),{div:S.div,mod:g}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,g,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var d=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),g=t.andln(1),S=d.cmp(c);return S<0||1===g&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,d=0,c=this.length-1;c>=0;c--)d=(r*d+(0|this.words[c]))%t;return d},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,d=this.length-1;d>=0;d--){var c=(0|this.words[d])+67108864*r;this.words[d]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=new a(0),I=new a(1),C=0;r.isEven()&&d.isEven();)r.iushrn(1),d.iushrn(1),++C;for(var n=d.clone(),_=r.clone();!r.isZero();){for(var B=0,R=1;0==(r.words[0]&R)&&B<26;++B,R<<=1);if(B>0)for(r.iushrn(B);B-- >0;)(c.isOdd()||g.isOdd())&&(c.iadd(n),g.isub(_)),c.iushrn(1),g.iushrn(1);for(var H=0,Q=1;0==(d.words[0]&Q)&&H<26;++H,Q<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(_)),S.iushrn(1),I.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(S),g.isub(I)):(d.isub(r),S.isub(c),I.isub(g))}return{a:S,b:I,gcd:d.iushln(C)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var B,r=this,d=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),g=new a(0),S=d.clone();r.cmpn(1)>0&&d.cmpn(1)>0;){for(var I=0,C=1;0==(r.words[0]&C)&&I<26;++I,C<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,_=1;0==(d.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(d.iushrn(n);n-- >0;)g.isOdd()&&g.iadd(S),g.iushrn(1);r.cmp(d)>=0?(r.isub(d),c.isub(g)):(d.isub(r),g.isub(c))}return(B=0===r.cmpn(1)?c:g).cmpn(0)<0&&B.iadd(t),B},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),d=t.clone();r.negative=0,d.negative=0;for(var c=0;r.isEven()&&d.isEven();c++)r.iushrn(1),d.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;d.isEven();)d.iushrn(1);var g=r.cmp(d);if(g<0){var S=r;r=d,d=S}else if(0===g||0===d.cmpn(1))break;r.isub(d)}return d.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,d=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==g&&(this.words[S]=g,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var d,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)d=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];d=c===t?0:ct.length)return 1;if(this.length=0;d--){var c=0|this.words[d],g=0|t.words[d];if(c!==g){cg&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new ee(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ae={k256:null,p224:null,p192:null,p25519:null};function X(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function de(){X.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){X.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){X.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function le(){X.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){ee.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}X.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},X.prototype.ireduce=function(t){var d,r=t;do{this.split(r,this.tmp),d=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(d>this.n);var c=d0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},X.prototype.split=function(t,r){t.iushrn(this.n,0,r)},X.prototype.imulK=function(t){return t.imul(this.k)},b(de,X),de.prototype.split=function(t,r){for(var d=4194303,c=Math.min(t.length,9),g=0;g>>22,S=I}t.words[g-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},de.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,d=0;d>>=26,t.words[d]=g,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ae[t])return ae[t];var r;if("k256"===t)r=new de;else if("p224"===t)r=new q;else if("p192"===t)r=new re;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new le}return ae[t]=r,r},ee.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},ee.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},ee.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},ee.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},ee.prototype.add=function(t,r){this._verify2(t,r);var d=t.add(r);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},ee.prototype.iadd=function(t,r){this._verify2(t,r);var d=t.iadd(r);return d.cmp(this.m)>=0&&d.isub(this.m),d},ee.prototype.sub=function(t,r){this._verify2(t,r);var d=t.sub(r);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},ee.prototype.isub=function(t,r){this._verify2(t,r);var d=t.isub(r);return d.cmpn(0)<0&&d.iadd(this.m),d},ee.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},ee.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},ee.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},ee.prototype.isqr=function(t){return this.imul(t,t.clone())},ee.prototype.sqr=function(t){return this.mul(t,t)},ee.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var d=this.m.add(new a(1)).iushrn(2);return this.pow(t,d)}for(var c=this.m.subn(1),g=0;!c.isZero()&&0===c.andln(1);)g++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),C=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,C).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),B=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=g;0!==R.cmp(S);){for(var Q=R,Z=0;0!==Q.cmp(S);Z++)Q=Q.redSqr();u(Z=0;g--){for(var _=r.words[g],B=n-1;B>=0;B--){var R=_>>B&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++C||0===g&&0===B)&&(S=this.mul(S,c[I]),C=0,I=0)):C=0}n=26}return S},ee.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},ee.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new _e(t)},b(_e,ee),_e.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_e.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var d=t.imul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var d=t.mul(r),c=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=d.isub(c).iushrn(this.shift),S=g;return g.cmp(this.m)>=0?S=g.isub(this.m):g.cmpn(0)<0&&(S=g.iadd(this.m)),S._forceRed(this)},_e.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6705:(He,j,p)=>{var e=p(2772),i=p(6945),u=p(9401),b=p(2057),a=p(8466),y=p(6386),h=p(8651),P=p(3502).Buffer;He.exports=function(E,k,w){var V;V=E.padding?E.padding:w?1:4;var ae,U=e(E),Y=U.modulus.byteLength();if(k.length>Y||new b(k).cmp(U.modulus)>=0)throw new Error("decryption error");ae=w?h(new b(k),U):a(k,U);var X=P.alloc(Y-ae.length);if(ae=P.concat([X,ae],Y),4===V)return function D(A,E){var k=A.modulus.byteLength(),w=y("sha1").update(P.alloc(0)).digest(),V=w.length;if(0!==E[0])throw new Error("decryption error");var U=E.slice(1,V+1),Y=E.slice(V+1),ae=u(U,i(Y,V)),X=u(Y,i(ae,k-V-1));if(function M(A,E){A=P.from(A),E=P.from(E);var k=0,w=A.length;A.length!==E.length&&(k++,w=Math.min(A.length,E.length));for(var V=-1;++V=E.length){U++;break}var Y=E.slice(2,V-1);if(("0002"!==w.toString("hex")&&!k||"0001"!==w.toString("hex")&&k)&&U++,Y.length<8&&U++,U)throw new Error("decryption error");return E.slice(V)}(0,ae,w);if(3===V)return ae;throw new Error("unknown padding")}},6562:(He,j,p)=>{var e=p(2772),i=p(3753),u=p(6386),b=p(6945),a=p(9401),y=p(2057),h=p(8651),P=p(8466),D=p(3502).Buffer;He.exports=function(k,w,V){var U;U=k.padding?k.padding:V?1:4;var ae,Y=e(k);if(4===U)ae=function T(E,k){var w=E.modulus.byteLength(),V=k.length,U=u("sha1").update(D.alloc(0)).digest(),Y=U.length,ae=2*Y;if(V>w-ae-2)throw new Error("message too long");var X=D.alloc(w-V-ae-2),de=w-Y-1,q=i(Y),re=a(D.concat([U,X,D.alloc(1,1),k],de),b(q,de)),le=a(q,b(re,Y));return new y(D.concat([D.alloc(1),le,re],w))}(Y,w);else if(1===U)ae=function M(E,k,w){var Y,V=k.length,U=E.modulus.byteLength();if(V>U-11)throw new Error("message too long");return Y=w?D.alloc(U-V-3,255):function A(E){for(var Y,k=D.allocUnsafe(E),w=0,V=i(2*E),U=0;w=0)throw new Error("data too long for modulus")}return V?P(ae,Y):h(ae,Y)}},8651:(He,j,p)=>{var e=p(2057),i=p(3502).Buffer;He.exports=function u(b,a){return i.from(b.toRed(e.mont(a.modulus)).redPow(new e(a.publicExponent)).fromRed().toArray())}},9401:He=>{He.exports=function(p,e){for(var i=p.length,u=-1;++u{const e=p(8695),i=p(1465),u=p(3210),b=p(2334);function a(y,h,P,D,T){const M=[].slice.call(arguments,1),A=M.length,E="function"==typeof M[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(P=h,h=D=void 0):2===A&&!h.getContext&&(D=P,P=h,h=void 0),new Promise(function(k,w){try{const V=i.create(P,D);k(y(V,h,D))}catch(V){w(V)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(T=P,P=h,h=D=void 0):3===A&&(h.getContext&&void 0===T?(T=D,D=void 0):(T=D,D=P,P=h,h=void 0));try{const k=i.create(P,D);T(null,y(k,h,D))}catch(k){T(k)}}j.create=i.create,j.toCanvas=a.bind(null,u.render),j.toDataURL=a.bind(null,u.renderToDataURL),j.toString=a.bind(null,function(y,h,P){return b.render(y,P)})},8695:He=>{He.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getRowColCoords=function(u){if(1===u)return[];const b=Math.floor(u/7)+2,a=e(u),y=145===a?26:2*Math.ceil((a-13)/(2*b-2)),h=[a-7];for(let P=1;P{const e=p(4016),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(b){this.mode=e.ALPHANUMERIC,this.data=b}u.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(a){let y;for(y=0;y+2<=this.data.length;y+=2){let h=45*i.indexOf(this.data[y]);h+=i.indexOf(this.data[y+1]),a.put(h,11)}this.data.length%2&&a.put(i.indexOf(this.data[y]),6)},He.exports=u},2118:He=>{function j(){this.buffer=[],this.length=0}j.prototype={get:function(p){const e=Math.floor(p/8);return 1==(this.buffer[e]>>>7-p%8&1)},put:function(p,e){for(let i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),p&&(this.buffer[e]|=128>>>this.length%8),this.length++}},He.exports=j},4425:He=>{function j(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}j.prototype.set=function(p,e,i,u){const b=p*this.size+e;this.data[b]=i,u&&(this.reservedBit[b]=!0)},j.prototype.get=function(p,e){return this.data[p*this.size+e]},j.prototype.xor=function(p,e,i){this.data[p*this.size+e]^=i},j.prototype.isReserved=function(p,e){return this.reservedBit[p*this.size+e]},He.exports=j},5663:(He,j,p)=>{const e=p(8419),i=p(4016);function u(b){this.mode=i.BYTE,"string"==typeof b&&(b=e(b)),this.data=new Uint8Array(b)}u.getBitsLength=function(a){return 8*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){for(let a=0,y=this.data.length;a{const e=p(2259),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];j.getBlocksCount=function(a,y){switch(y){case e.L:return i[4*(a-1)+0];case e.M:return i[4*(a-1)+1];case e.Q:return i[4*(a-1)+2];case e.H:return i[4*(a-1)+3];default:return}},j.getTotalCodewordsCount=function(a,y){switch(y){case e.L:return u[4*(a-1)+0];case e.M:return u[4*(a-1)+1];case e.Q:return u[4*(a-1)+2];case e.H:return u[4*(a-1)+3];default:return}}},2259:(He,j)=>{j.L={bit:1},j.M={bit:0},j.Q={bit:3},j.H={bit:2},j.isValid=function(i){return i&&void 0!==i.bit&&i.bit>=0&&i.bit<4},j.from=function(i,u){if(j.isValid(i))return i;try{return function p(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return j.L;case"m":case"medium":return j.M;case"q":case"quartile":return j.Q;case"h":case"high":return j.H;default:throw new Error("Unknown EC Level: "+e)}}(i)}catch(b){return u}}},3114:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getPositions=function(b){const a=e(b);return[[0,0],[a-7,0],[0,a-7]]}},7078:(He,j,p)=>{const e=p(4792),b=e.getBCHDigit(1335);j.getEncodedBits=function(y,h){const P=y.bit<<3|h;let D=P<<10;for(;e.getBCHDigit(D)-b>=0;)D^=1335<{const p=new Uint8Array(512),e=new Uint8Array(256);(function(){let u=1;for(let b=0;b<255;b++)p[b]=u,e[u]=b,u<<=1,256&u&&(u^=285);for(let b=255;b<512;b++)p[b]=p[b-255]})(),j.log=function(u){if(u<1)throw new Error("log("+u+")");return e[u]},j.exp=function(u){return p[u]},j.mul=function(u,b){return 0===u||0===b?0:p[e[u]+e[b]]}},4388:(He,j,p)=>{const e=p(4016),i=p(4792);function u(b){this.mode=e.KANJI,this.data=b}u.getBitsLength=function(a){return 13*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){let a;for(a=0;a=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),b.put(y,13)}},He.exports=u},3667:(He,j)=>{j.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(i,u,b){switch(i){case j.Patterns.PATTERN000:return(u+b)%2==0;case j.Patterns.PATTERN001:return u%2==0;case j.Patterns.PATTERN010:return b%3==0;case j.Patterns.PATTERN011:return(u+b)%3==0;case j.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(b/3))%2==0;case j.Patterns.PATTERN101:return u*b%2+u*b%3==0;case j.Patterns.PATTERN110:return(u*b%2+u*b%3)%2==0;case j.Patterns.PATTERN111:return(u*b%3+(u+b)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}}j.isValid=function(u){return null!=u&&""!==u&&!isNaN(u)&&u>=0&&u<=7},j.from=function(u){return j.isValid(u)?parseInt(u,10):void 0},j.getPenaltyN1=function(u){const b=u.size;let a=0,y=0,h=0,P=null,D=null;for(let T=0;T=5&&(a+=y-5+3),P=A,y=1),A=u.get(M,T),A===D?h++:(h>=5&&(a+=h-5+3),D=A,h=1)}y>=5&&(a+=y-5+3),h>=5&&(a+=h-5+3)}return a},j.getPenaltyN2=function(u){const b=u.size;let a=0;for(let y=0;y=10&&(1488===y||93===y)&&a++,h=h<<1&2047|u.get(D,P),D>=10&&(1488===h||93===h)&&a++}return 40*a},j.getPenaltyN4=function(u){let b=0;const a=u.data.length;for(let h=0;h{const e=p(4406),i=p(2699);j.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},j.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},j.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},j.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},j.MIXED={bit:-1},j.getCharCountIndicator=function(a,y){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!e.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?a.ccBits[0]:y<27?a.ccBits[1]:a.ccBits[2]},j.getBestModeForData=function(a){return i.testNumeric(a)?j.NUMERIC:i.testAlphanumeric(a)?j.ALPHANUMERIC:i.testKanji(a)?j.KANJI:j.BYTE},j.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},j.isValid=function(a){return a&&a.bit&&a.ccBits},j.from=function(a,y){if(j.isValid(a))return a;try{return function u(b){if("string"!=typeof b)throw new Error("Param is not a string");switch(b.toLowerCase()){case"numeric":return j.NUMERIC;case"alphanumeric":return j.ALPHANUMERIC;case"kanji":return j.KANJI;case"byte":return j.BYTE;default:throw new Error("Unknown mode: "+b)}}(a)}catch(h){return y}}},7783:(He,j,p)=>{const e=p(4016);function i(u){this.mode=e.NUMERIC,this.data=u.toString()}i.getBitsLength=function(b){return 10*Math.floor(b/3)+(b%3?b%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(b){let a,y,h;for(a=0;a+3<=this.data.length;a+=3)y=this.data.substr(a,3),h=parseInt(y,10),b.put(h,10);const P=this.data.length-a;P>0&&(y=this.data.substr(a),h=parseInt(y,10),b.put(h,3*P+1))},He.exports=i},1106:(He,j,p)=>{const e=p(5339);j.mul=function(u,b){const a=new Uint8Array(u.length+b.length-1);for(let y=0;y=0;){const y=a[0];for(let P=0;P{const e=p(4792),i=p(2259),u=p(2118),b=p(4425),a=p(6221),y=p(3114),h=p(3667),P=p(4655),D=p(2636),T=p(2088),M=p(7078),A=p(4016),E=p(2033);function Y(re,le,ee){const _e=re.size,x=M.getEncodedBits(le,ee);let t,r;for(t=0;t<15;t++)r=1==(x>>t&1),re.set(t<6?t:t<8?t+1:_e-15+t,8,r,!0),re.set(8,t<8?_e-t-1:t<9?15-t-1+1:15-t-1,r,!0);re.set(_e-8,8,1,!0)}function q(re,le,ee,_e){let x;if(Array.isArray(re))x=E.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let g=le;if(!g){const S=E.rawSplit(re);g=T.getBestVersionForData(S,ee)}x=E.fromString(re,g||40)}}const t=T.getBestVersionForData(x,ee);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(le){if(le=0&&d<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===d||6===d)||d>=2&&d<=4&&c>=2&&c<=4,!0)}}(c,le),function w(re){const le=re.size;for(let ee=8;ee=7&&function U(re,le){const ee=re.size,_e=T.getEncodedBits(le);let x,t,r;for(let d=0;d<18;d++)x=Math.floor(d/3),t=d%3+ee-8-3,r=1==(_e>>d&1),re.set(x,t,r,!0),re.set(t,x,r,!0)}(c,le),function ae(re,le){const ee=re.size;let _e=-1,x=ee-1,t=7,r=0;for(let d=ee-1;d>0;d-=2)for(6===d&&d--;;){for(let c=0;c<2;c++)if(!re.isReserved(x,d-c)){let g=!1;r>>t&1)),re.set(x,d-c,g),t--,-1===t&&(r++,t=7)}if(x+=_e,x<0||ee<=x){x-=_e,_e=-_e;break}}}(c,r),isNaN(_e)&&(_e=h.getBestMask(c,Y.bind(null,c,ee))),h.applyMask(_e,c),Y(c,ee,_e),{modules:c,version:le,errorCorrectionLevel:ee,maskPattern:_e,segments:x}}j.create=function(le,ee){if(void 0===le||""===le)throw new Error("No input text");let x,t,_e=i.M;return void 0!==ee&&(_e=i.from(ee.errorCorrectionLevel,i.M),x=T.from(ee.version),t=h.from(ee.maskPattern),ee.toSJISFunc&&e.setToSJISFunction(ee.toSJISFunc)),q(le,x,_e,t)}},2636:(He,j,p)=>{const e=p(1106);function i(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(b){this.degree=b,this.genPoly=e.generateECPolynomial(this.degree)},i.prototype.encode=function(b){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(b.length+this.degree);a.set(b);const y=e.mod(a,this.genPoly),h=this.degree-y.length;if(h>0){const P=new Uint8Array(this.degree);return P.set(y,h),P}return y},He.exports=i},2699:(He,j)=>{const p="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const u="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";j.KANJI=new RegExp(i,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(u,"g"),j.NUMERIC=new RegExp(p,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const b=new RegExp("^"+i+"$"),a=new RegExp("^"+p+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");j.testKanji=function(P){return b.test(P)},j.testNumeric=function(P){return a.test(P)},j.testAlphanumeric=function(P){return y.test(P)}},2033:(He,j,p)=>{const e=p(4016),i=p(7783),u=p(2424),b=p(5663),a=p(4388),y=p(2699),h=p(4792),P=p(4901);function D(U){return unescape(encodeURIComponent(U)).length}function T(U,Y,ae){const X=[];let de;for(;null!==(de=U.exec(ae));)X.push({data:de[0],index:de.index,mode:Y,length:de[0].length});return X}function M(U){const Y=T(y.NUMERIC,e.NUMERIC,U),ae=T(y.ALPHANUMERIC,e.ALPHANUMERIC,U);let X,de;return h.isKanjiModeEnabled()?(X=T(y.BYTE,e.BYTE,U),de=T(y.KANJI,e.KANJI,U)):(X=T(y.BYTE_KANJI,e.BYTE,U),de=[]),Y.concat(ae,X,de).sort(function(re,le){return re.index-le.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function A(U,Y){switch(Y){case e.NUMERIC:return i.getBitsLength(U);case e.ALPHANUMERIC:return u.getBitsLength(U);case e.KANJI:return a.getBitsLength(U);case e.BYTE:return b.getBitsLength(U)}}function V(U,Y){let ae;const X=e.getBestModeForData(U);if(ae=e.from(Y,X),ae!==e.BYTE&&ae.bit=0?Y[Y.length-1]:null;return X&&X.mode===ae.mode?(Y[Y.length-1].data+=ae.data,Y):(Y.push(ae),Y)},[])}(le))},j.rawSplit=function(Y){return j.fromArray(M(Y,h.isKanjiModeEnabled()))}},4792:(He,j)=>{let p;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];j.getSymbolSize=function(u){if(!u)throw new Error('"version" cannot be null or undefined');if(u<1||u>40)throw new Error('"version" should be in range from 1 to 40');return 4*u+17},j.getSymbolTotalCodewords=function(u){return e[u]},j.getBCHDigit=function(i){let u=0;for(;0!==i;)u++,i>>>=1;return u},j.setToSJISFunction=function(u){if("function"!=typeof u)throw new Error('"toSJISFunc" is not a valid function.');p=u},j.isKanjiModeEnabled=function(){return void 0!==p},j.toSJIS=function(u){return p(u)}},4406:(He,j)=>{j.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(He,j,p)=>{const e=p(4792),i=p(4655),u=p(2259),b=p(4016),a=p(4406),h=e.getBCHDigit(7973);function D(A,E){return b.getCharCountIndicator(A,E)+4}function T(A,E){let k=0;return A.forEach(function(w){k+=D(w.mode,E)+w.getBitsLength()}),k}j.from=function(E,k){return a.isValid(E)?parseInt(E,10):k},j.getCapacity=function(E,k,w){if(!a.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=b.BYTE);const Y=8*(e.getSymbolTotalCodewords(E)-i.getTotalCodewordsCount(E,k));if(w===b.MIXED)return Y;const ae=Y-D(w,E);switch(w){case b.NUMERIC:return Math.floor(ae/10*3);case b.ALPHANUMERIC:return Math.floor(ae/11*2);case b.KANJI:return Math.floor(ae/13);default:return Math.floor(ae/8)}},j.getBestVersionForData=function(E,k){let w;const V=u.from(k,u.M);if(Array.isArray(E)){if(E.length>1)return function M(A,E){for(let k=1;k<=40;k++)if(T(A,k)<=j.getCapacity(k,E,b.MIXED))return k}(E,V);if(0===E.length)return 1;w=E[0]}else w=E;return function P(A,E,k){for(let w=1;w<=40;w++)if(E<=j.getCapacity(w,k,A))return w}(w.mode,w.getLength(),V)},j.getEncodedBits=function(E){if(!a.isValid(E)||E<7)throw new Error("Invalid QR Code version");let k=E<<12;for(;e.getBCHDigit(k)-h>=0;)k^=7973<{const e=p(6355);j.render=function(a,y,h){let P=h,D=y;void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),y||(D=function u(){try{return document.createElement("canvas")}catch(b){throw new Error("You need to specify a canvas element")}}()),P=e.getOptions(P);const T=e.getImageWidth(a.modules.size,P),M=D.getContext("2d"),A=M.createImageData(T,T);return e.qrToImageData(A.data,a,P),function i(b,a,y){b.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=y,a.width=y,a.style.height=y+"px",a.style.width=y+"px"}(M,D,T),M.putImageData(A,0,0),D},j.renderToDataURL=function(a,y,h){let P=h;return void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),P||(P={}),j.render(a,y,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(He,j,p)=>{const e=p(6355);function i(a,y){const h=a.a/255,P=y+'="'+a.hex+'"';return h<1?P+" "+y+'-opacity="'+h.toFixed(2).slice(1)+'"':P}function u(a,y,h){let P=a+y;return void 0!==h&&(P+=" "+h),P}j.render=function(y,h,P){const D=e.getOptions(h),T=y.modules.size,M=y.modules.data,A=T+2*D.margin,E=D.color.light.a?"':"",k="0&&E>0&&a[A-1]||(P+=T?u("M",E+h,.5+k+h):u("m",D,0),D=0,T=!1),E+1',U=''+E+k+"\n";return"function"==typeof P&&P(null,U),U}},6355:(He,j)=>{function p(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let i=e.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+e);(3===i.length||4===i.length)&&(i=Array.prototype.concat.apply([],i.map(function(b){return[b,b]}))),6===i.length&&i.push("F","F");const u=parseInt(i.join(""),16);return{r:u>>24&255,g:u>>16&255,b:u>>8&255,a:255&u,hex:"#"+i.slice(0,6).join("")}}j.getOptions=function(i){i||(i={}),i.color||(i.color={});const b=i.width&&i.width>=21?i.width:void 0;return{width:b,scale:b?4:i.scale||4,margin:null==i.margin||i.margin<0?4:i.margin,color:{dark:p(i.color.dark||"#000000ff"),light:p(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},j.getScale=function(i,u){return u.width&&u.width>=i+2*u.margin?u.width/(i+2*u.margin):u.scale},j.getImageWidth=function(i,u){const b=j.getScale(i,u);return Math.floor((i+2*u.margin)*b)},j.qrToImageData=function(i,u,b){const a=u.modules.size,y=u.modules.data,h=j.getScale(a,b),P=Math.floor((a+2*b.margin)*h),D=b.margin*h,T=[b.color.light,b.color.dark];for(let M=0;M=D&&A>=D&&M{"use strict";var e=65536,b=p(3502).Buffer,a=global.crypto||global.msCrypto;He.exports=a&&a.getRandomValues?function y(h,P){if(h>4294967295)throw new RangeError("requested too many random bytes");var D=b.allocUnsafe(h);if(h>0)if(h>e)for(var T=0;T{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=p(3502),u=p(3753),b=i.Buffer,a=i.kMaxLength,y=global.crypto||global.msCrypto,h=Math.pow(2,32)-1;function P(E,k){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>h||E<0)throw new TypeError("offset must be a uint32");if(E>a||E>k)throw new RangeError("offset out of range")}function D(E,k,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>h||E<0)throw new TypeError("size must be a uint32");if(E+k>w||E>a)throw new RangeError("buffer too small")}function M(E,k,w,V){if(process.browser){var Y=new Uint8Array(E.buffer,k,w);return y.getRandomValues(Y),V?void process.nextTick(function(){V(null,E)}):E}if(!V)return u(w).copy(E,k),E;u(w,function(X,de){if(X)return V(X);de.copy(E,k),V(null,E)})}y&&y.getRandomValues||!process.browser?(j.randomFill=function T(E,k,w,V){if(!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)V=k,k=0,w=E.length;else if("function"==typeof w)V=w,w=E.length-k;else if("function"!=typeof V)throw new TypeError('"cb" argument must be a function');return P(k,E.length),D(w,k,E.length),M(E,k,w,V)},j.randomFillSync=function A(E,k,w){if(void 0===k&&(k=0),!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(k,E.length),void 0===w&&(w=E.length-k),D(w,k,E.length),M(E,k,w)}):(j.randomFill=e,j.randomFillSync=e)},891:He=>{"use strict";var p={};function e(y,h,P){P||(P=Error);var T=function(M){function A(E,k,w){return M.call(this,function D(M,A,E){return"string"==typeof h?h:h(M,A,E)}(E,k,w))||this}return function j(y,h){y.prototype=Object.create(h.prototype),y.prototype.constructor=y,y.__proto__=h}(A,M),A}(P);T.prototype.name=P.name,T.prototype.code=y,p[y]=T}function i(y,h){if(Array.isArray(y)){var P=y.length;return y=y.map(function(D){return String(D)}),P>2?"one of ".concat(h," ").concat(y.slice(0,P-1).join(", "),", or ")+y[P-1]:2===P?"one of ".concat(h," ").concat(y[0]," or ").concat(y[1]):"of ".concat(h," ").concat(y[0])}return"of ".concat(h," ").concat(String(y))}e("ERR_INVALID_OPT_VALUE",function(y,h){return'The value "'+h+'" is invalid for option "'+y+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(y,h,P){var D,T;if("string"==typeof h&&function u(y,h,P){return y.substr(!P||P<0?0:+P,h.length)===h}(h,"not ")?(D="must not be",h=h.replace(/^not /,"")):D="must be",function b(y,h,P){return(void 0===P||P>y.length)&&(P=y.length),y.substring(P-h.length,P)===h}(y," argument"))T="The ".concat(y," ").concat(D," ").concat(i(h,"type"));else{var M=function a(y,h,P){return"number"!=typeof P&&(P=0),!(P+h.length>y.length)&&-1!==y.indexOf(h,P)}(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(M," ").concat(D," ").concat(i(h,"type"))}return T+". Received type ".concat(typeof P)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),He.exports.q=p},1339:(He,j,p)=>{"use strict";var e=Object.keys||function(T){var M=[];for(var A in T)M.push(A);return M};He.exports=h;var i=p(3154),u=p(520);p(3894)(h,i);for(var b=e(u.prototype),a=0;a{"use strict";He.exports=i;var e=p(6025);function i(u){if(!(this instanceof i))return new i(u);e.call(this,u)}p(3894)(i,e),i.prototype._transform=function(u,b,a){a(null,u)}},3154:(He,j,p)=>{"use strict";var e;He.exports=x,x.ReadableState=_e,p(9069);var T,u=function(ke,lt){return ke.listeners(lt).length},b=p(4970),a=p(3172).Buffer,y=global.Uint8Array||function(){},D=p(4616);T=D&&D.debuglog?D.debuglog("stream"):function(){};var X,de,q,M=p(5019),A=p(1920),k=p(7102).getHighWaterMark,w=p(891).q,V=w.ERR_INVALID_ARG_TYPE,U=w.ERR_STREAM_PUSH_AFTER_EOF,Y=w.ERR_METHOD_NOT_IMPLEMENTED,ae=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,b);var re=A.errorOrDestroy,le=["error","close","destroy","pause","resume"];function _e($,ke,lt){e=e||p(1339),"boolean"!=typeof lt&&(lt=ke instanceof e),this.objectMode=!!($=$||{}).objectMode,lt&&(this.objectMode=this.objectMode||!!$.readableObjectMode),this.highWaterMark=k(this,$,"readableHighWaterMark",lt),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==$.emitClose,this.autoDestroy=!!$.autoDestroy,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(X||(X=p(3054).s),this.decoder=new X($.encoding),this.encoding=$.encoding)}function x($){if(e=e||p(1339),!(this instanceof x))return new x($);this._readableState=new _e($,this,this instanceof e),this.readable=!0,$&&("function"==typeof $.read&&(this._read=$.read),"function"==typeof $.destroy&&(this._destroy=$.destroy)),b.call(this)}function t($,ke,lt,W,De){T("readableAddChunk",ke);var Ae,he=$._readableState;if(null===ke)he.reading=!1,function I($,ke){if(T("onEofChunk"),!ke.ended){if(ke.decoder){var lt=ke.decoder.end();lt&<.length&&(ke.buffer.push(lt),ke.length+=ke.objectMode?1:lt.length)}ke.ended=!0,ke.sync?C($):(ke.needReadable=!1,ke.emittedReadable||(ke.emittedReadable=!0,n($)))}}($,he);else if(De||(Ae=function d($,ke){var lt;return!function P($){return a.isBuffer($)||$ instanceof y}(ke)&&"string"!=typeof ke&&void 0!==ke&&!$.objectMode&&(lt=new V("chunk",["string","Buffer","Uint8Array"],ke)),lt}(he,ke)),Ae)re($,Ae);else if(he.objectMode||ke&&ke.length>0)if("string"!=typeof ke&&!he.objectMode&&Object.getPrototypeOf(ke)!==a.prototype&&(ke=function h($){return a.from($)}(ke)),W)he.endEmitted?re($,new ae):r($,he,ke,!0);else if(he.ended)re($,new U);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!lt?(ke=he.decoder.write(ke),he.objectMode||0!==ke.length?r($,he,ke,!1):_($,he)):r($,he,ke,!1)}else W||(he.reading=!1,_($,he));return!he.ended&&(he.lengthke.highWaterMark&&(ke.highWaterMark=function g($){return $>=c?$=c:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}($)),$<=ke.length?$:ke.ended?ke.length:(ke.needReadable=!0,0))}function C($){var ke=$._readableState;T("emitReadable",ke.needReadable,ke.emittedReadable),ke.needReadable=!1,ke.emittedReadable||(T("emitReadable",ke.flowing),ke.emittedReadable=!0,process.nextTick(n,$))}function n($){var ke=$._readableState;T("emitReadable_",ke.destroyed,ke.length,ke.ended),!ke.destroyed&&(ke.length||ke.ended)&&($.emit("readable"),ke.emittedReadable=!1),ke.needReadable=!ke.flowing&&!ke.ended&&ke.length<=ke.highWaterMark,Te($)}function _($,ke){ke.readingMore||(ke.readingMore=!0,process.nextTick(B,$,ke))}function B($,ke){for(;!ke.reading&&!ke.ended&&(ke.length0,ke.resumeScheduled&&!ke.paused?ke.flowing=!0:$.listenerCount("data")>0&&$.resume()}function Q($){T("readable nexttick read 0"),$.read(0)}function te($,ke){T("resume",ke.reading),ke.reading||$.read(0),ke.resumeScheduled=!1,$.emit("resume"),Te($),ke.flowing&&!ke.reading&&$.read(0)}function Te($){var ke=$._readableState;for(T("flow",ke.flowing);ke.flowing&&null!==$.read(););}function Ee($,ke){return 0===ke.length?null:(ke.objectMode?lt=ke.buffer.shift():!$||$>=ke.length?(lt=ke.decoder?ke.buffer.join(""):1===ke.buffer.length?ke.buffer.first():ke.buffer.concat(ke.length),ke.buffer.clear()):lt=ke.buffer.consume($,ke.decoder),lt);var lt}function ne($){var ke=$._readableState;T("endReadable",ke.endEmitted),ke.endEmitted||(ke.ended=!0,process.nextTick(ze,ke,$))}function ze($,ke){if(T("endReadableNT",$.endEmitted,$.length),!$.endEmitted&&0===$.length&&($.endEmitted=!0,ke.readable=!1,ke.emit("end"),$.autoDestroy)){var lt=ke._writableState;(!lt||lt.autoDestroy&<.finished)&&ke.destroy()}}function be($,ke){for(var lt=0,W=$.length;lt=ke.highWaterMark:ke.length>0)||ke.ended))return T("read: emitReadable",ke.length,ke.ended),0===ke.length&&ke.ended?ne(this):C(this),null;if(0===($=S($,ke))&&ke.ended)return 0===ke.length&&ne(this),null;var De,W=ke.needReadable;return T("need readable",W),(0===ke.length||ke.length-$0?Ee($,ke):null)?(ke.needReadable=ke.length<=ke.highWaterMark,$=0):(ke.length-=$,ke.awaitDrain=0),0===ke.length&&(ke.ended||(ke.needReadable=!0),lt!==$&&ke.ended&&ne(this)),null!==De&&this.emit("data",De),De},x.prototype._read=function($){re(this,new Y("_read()"))},x.prototype.pipe=function($,ke){var lt=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=$;break;case 1:W.pipes=[W.pipes,$];break;default:W.pipes.push($)}W.pipesCount+=1,T("pipe count=%d opts=%j",W.pipesCount,ke);var he=ke&&!1===ke.end||$===process.stdout||$===process.stderr?At:xe;function xe(){T("onend"),$.end()}W.endEmitted?process.nextTick(he):lt.once("end",he),$.on("unpipe",function Ae(hi,jt){T("onunpipe"),hi===lt&&jt&&!1===jt.hasUnpiped&&(jt.hasUnpiped=!0,function pe(){T("cleanup"),$.removeListener("close",ot),$.removeListener("finish",ht),$.removeListener("drain",G),$.removeListener("error",Le),$.removeListener("unpipe",Ae),lt.removeListener("end",xe),lt.removeListener("end",At),lt.removeListener("data",ye),ie=!0,W.awaitDrain&&(!$._writableState||$._writableState.needDrain)&&G()}())});var G=function R($){return function(){var lt=$._readableState;T("pipeOnDrain",lt.awaitDrain),lt.awaitDrain&<.awaitDrain--,0===lt.awaitDrain&&u($,"data")&&(lt.flowing=!0,Te($))}}(lt);$.on("drain",G);var ie=!1;function ye(hi){T("ondata");var jt=$.write(hi);T("dest.write",jt),!1===jt&&((1===W.pipesCount&&W.pipes===$||W.pipesCount>1&&-1!==be(W.pipes,$))&&!ie&&(T("false write response, pause",W.awaitDrain),W.awaitDrain++),lt.pause())}function Le(hi){T("onerror",hi),At(),$.removeListener("error",Le),0===u($,"error")&&re($,hi)}function ot(){$.removeListener("finish",ht),At()}function ht(){T("onfinish"),$.removeListener("close",ot),At()}function At(){T("unpipe"),lt.unpipe($)}return lt.on("data",ye),function ee($,ke,lt){if("function"==typeof $.prependListener)return $.prependListener(ke,lt);$._events&&$._events[ke]?Array.isArray($._events[ke])?$._events[ke].unshift(lt):$._events[ke]=[lt,$._events[ke]]:$.on(ke,lt)}($,"error",Le),$.once("close",ot),$.once("finish",ht),$.emit("pipe",lt),W.flowing||(T("pipe resume"),lt.resume()),$},x.prototype.unpipe=function($){var ke=this._readableState,lt={hasUnpiped:!1};if(0===ke.pipesCount)return this;if(1===ke.pipesCount)return $&&$!==ke.pipes||($||($=ke.pipes),ke.pipes=null,ke.pipesCount=0,ke.flowing=!1,$&&$.emit("unpipe",this,lt)),this;if(!$){var W=ke.pipes,De=ke.pipesCount;ke.pipes=null,ke.pipesCount=0,ke.flowing=!1;for(var he=0;he0,!1!==W.flowing&&this.resume()):"readable"===$&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,T("on readable",W.length,W.reading),W.length?C(this):W.reading||process.nextTick(Q,this)),lt},x.prototype.removeListener=function($,ke){var lt=b.prototype.removeListener.call(this,$,ke);return"readable"===$&&process.nextTick(H,this),lt},x.prototype.removeAllListeners=function($){var ke=b.prototype.removeAllListeners.apply(this,arguments);return("readable"===$||void 0===$)&&process.nextTick(H,this),ke},x.prototype.resume=function(){var $=this._readableState;return $.flowing||(T("resume"),$.flowing=!$.readableListening,function Z($,ke){ke.resumeScheduled||(ke.resumeScheduled=!0,process.nextTick(te,$,ke))}(this,$)),$.paused=!1,this},x.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function($){var ke=this,lt=this._readableState,W=!1;for(var De in $.on("end",function(){if(T("wrapped end"),lt.decoder&&!lt.ended){var Ae=lt.decoder.end();Ae&&Ae.length&&ke.push(Ae)}ke.push(null)}),$.on("data",function(Ae){T("wrapped data"),lt.decoder&&(Ae=lt.decoder.write(Ae)),lt.objectMode&&null==Ae||!(lt.objectMode||Ae&&Ae.length)||ke.push(Ae)||(W=!0,$.pause())}),$)void 0===this[De]&&"function"==typeof $[De]&&(this[De]=function(xe){return function(){return $[xe].apply($,arguments)}}(De));for(var he=0;he{"use strict";He.exports=P;var e=p(891).q,i=e.ERR_METHOD_NOT_IMPLEMENTED,u=e.ERR_MULTIPLE_CALLBACK,b=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,y=p(1339);function h(M,A){var E=this._transformState;E.transforming=!1;var k=E.writecb;if(null===k)return this.emit("error",new u);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),k(M);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function i(Te){var Ee=this;this.next=null,this.entry=null,this.finish=function(){!function te(Te,Ee,ne){var ze=Te.entry;for(Te.entry=null;ze;){var be=ze.callback;Ee.pendingcb--,be(ne),ze=ze.next}Ee.corkedRequestsFree.next=Te}(Ee,Te)}}var u;He.exports=_e,_e.WritableState=le;var ee,b={deprecate:p(4364)},a=p(4970),y=p(3172).Buffer,h=global.Uint8Array||function(){},T=p(1920),A=p(7102).getHighWaterMark,E=p(891).q,k=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,V=E.ERR_MULTIPLE_CALLBACK,U=E.ERR_STREAM_CANNOT_PIPE,Y=E.ERR_STREAM_DESTROYED,ae=E.ERR_STREAM_NULL_VALUES,X=E.ERR_STREAM_WRITE_AFTER_END,de=E.ERR_UNKNOWN_ENCODING,q=T.errorOrDestroy;function re(){}function le(Te,Ee,ne){u=u||p(1339),"boolean"!=typeof ne&&(ne=Ee instanceof u),this.objectMode=!!(Te=Te||{}).objectMode,ne&&(this.objectMode=this.objectMode||!!Te.writableObjectMode),this.highWaterMark=A(this,Te,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Te.decodeStrings),this.defaultEncoding=Te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(be){!function I(Te,Ee){var ne=Te._writableState,ze=ne.sync,be=ne.writecb;if("function"!=typeof be)throw new V;if(function S(Te){Te.writing=!1,Te.writecb=null,Te.length-=Te.writelen,Te.writelen=0}(ne),Ee)!function g(Te,Ee,ne,ze,be){--Ee.pendingcb,ne?(process.nextTick(be,ze),process.nextTick(Q,Te,Ee),Te._writableState.errorEmitted=!0,q(Te,ze)):(be(ze),Te._writableState.errorEmitted=!0,q(Te,ze),Q(Te,Ee))}(Te,ne,ze,Ee,be);else{var $=B(ne)||Te.destroyed;!$&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&_(Te,ne),ze?process.nextTick(C,Te,ne,$,be):C(Te,ne,$,be)}}(Ee,be)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Te.emitClose,this.autoDestroy=!!Te.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function _e(Te){var Ee=this instanceof(u=u||p(1339));if(!Ee&&!ee.call(_e,this))return new _e(Te);this._writableState=new le(Te,this,Ee),this.writable=!0,Te&&("function"==typeof Te.write&&(this._write=Te.write),"function"==typeof Te.writev&&(this._writev=Te.writev),"function"==typeof Te.destroy&&(this._destroy=Te.destroy),"function"==typeof Te.final&&(this._final=Te.final)),a.call(this)}function c(Te,Ee,ne,ze,be,$,ke){Ee.writelen=ze,Ee.writecb=ke,Ee.writing=!0,Ee.sync=!0,Ee.destroyed?Ee.onwrite(new Y("write")):ne?Te._writev(be,Ee.onwrite):Te._write(be,$,Ee.onwrite),Ee.sync=!1}function C(Te,Ee,ne,ze){ne||function n(Te,Ee){0===Ee.length&&Ee.needDrain&&(Ee.needDrain=!1,Te.emit("drain"))}(Te,Ee),Ee.pendingcb--,ze(),Q(Te,Ee)}function _(Te,Ee){Ee.bufferProcessing=!0;var ne=Ee.bufferedRequest;if(Te._writev&&ne&&ne.next){var be=new Array(Ee.bufferedRequestCount),$=Ee.corkedRequestsFree;$.entry=ne;for(var ke=0,lt=!0;ne;)be[ke]=ne,ne.isBuf||(lt=!1),ne=ne.next,ke+=1;be.allBuffers=lt,c(Te,Ee,!0,Ee.length,be,"",$.finish),Ee.pendingcb++,Ee.lastBufferedRequest=null,$.next?(Ee.corkedRequestsFree=$.next,$.next=null):Ee.corkedRequestsFree=new i(Ee),Ee.bufferedRequestCount=0}else{for(;ne;){var W=ne.chunk;if(c(Te,Ee,!1,Ee.objectMode?1:W.length,W,ne.encoding,ne.callback),ne=ne.next,Ee.bufferedRequestCount--,Ee.writing)break}null===ne&&(Ee.lastBufferedRequest=null)}Ee.bufferedRequest=ne,Ee.bufferProcessing=!1}function B(Te){return Te.ending&&0===Te.length&&null===Te.bufferedRequest&&!Te.finished&&!Te.writing}function R(Te,Ee){Te._final(function(ne){Ee.pendingcb--,ne&&q(Te,ne),Ee.prefinished=!0,Te.emit("prefinish"),Q(Te,Ee)})}function Q(Te,Ee){var ne=B(Ee);if(ne&&(function H(Te,Ee){!Ee.prefinished&&!Ee.finalCalled&&("function"!=typeof Te._final||Ee.destroyed?(Ee.prefinished=!0,Te.emit("prefinish")):(Ee.pendingcb++,Ee.finalCalled=!0,process.nextTick(R,Te,Ee)))}(Te,Ee),0===Ee.pendingcb&&(Ee.finished=!0,Te.emit("finish"),Ee.autoDestroy))){var ze=Te._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&Te.destroy()}return ne}p(3894)(_e,a),le.prototype.getBuffer=function(){for(var Ee=this.bufferedRequest,ne=[];Ee;)ne.push(Ee),Ee=Ee.next;return ne},function(){try{Object.defineProperty(le.prototype,"buffer",{get:b.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Te){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:function(Ee){return!!ee.call(this,Ee)||this===_e&&Ee&&Ee._writableState instanceof le}})):ee=function(Ee){return Ee instanceof this},_e.prototype.pipe=function(){q(this,new U)},_e.prototype.write=function(Te,Ee,ne){var ze=this._writableState,be=!1,$=!ze.objectMode&&function D(Te){return y.isBuffer(Te)||Te instanceof h}(Te);return $&&!y.isBuffer(Te)&&(Te=function P(Te){return y.from(Te)}(Te)),"function"==typeof Ee&&(ne=Ee,Ee=null),$?Ee="buffer":Ee||(Ee=ze.defaultEncoding),"function"!=typeof ne&&(ne=re),ze.ending?function x(Te,Ee){var ne=new X;q(Te,ne),process.nextTick(Ee,ne)}(this,ne):($||function t(Te,Ee,ne,ze){var be;return null===ne?be=new ae:"string"!=typeof ne&&!Ee.objectMode&&(be=new k("chunk",["string","Buffer"],ne)),!be||(q(Te,be),process.nextTick(ze,be),!1)}(this,ze,Te,ne))&&(ze.pendingcb++,be=function d(Te,Ee,ne,ze,be,$){if(!ne){var ke=function r(Te,Ee,ne){return!Te.objectMode&&!1!==Te.decodeStrings&&"string"==typeof Ee&&(Ee=y.from(Ee,ne)),Ee}(Ee,ze,be);ze!==ke&&(ne=!0,be="buffer",ze=ke)}var lt=Ee.objectMode?1:ze.length;Ee.length+=lt;var W=Ee.length-1))throw new de(Ee);return this._writableState.defaultEncoding=Ee,this},Object.defineProperty(_e.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_e.prototype._write=function(Te,Ee,ne){ne(new w("_write()"))},_e.prototype._writev=null,_e.prototype.end=function(Te,Ee,ne){var ze=this._writableState;return"function"==typeof Te?(ne=Te,Te=null,Ee=null):"function"==typeof Ee&&(ne=Ee,Ee=null),null!=Te&&this.write(Te,Ee),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||function Z(Te,Ee,ne){Ee.ending=!0,Q(Te,Ee),ne&&(Ee.finished?process.nextTick(ne):Te.once("finish",ne)),Ee.ended=!0,Te.writable=!1}(this,ze,ne),this},Object.defineProperty(_e.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_e.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ee){!this._writableState||(this._writableState.destroyed=Ee)}}),_e.prototype.destroy=T.destroy,_e.prototype._undestroy=T.undestroy,_e.prototype._destroy=function(Te,Ee){Ee(Te)}},3872:(He,j,p)=>{"use strict";var e;function i(Y,ae,X){return ae in Y?Object.defineProperty(Y,ae,{value:X,enumerable:!0,configurable:!0,writable:!0}):Y[ae]=X,Y}var u=p(7542),b=Symbol("lastResolve"),a=Symbol("lastReject"),y=Symbol("error"),h=Symbol("ended"),P=Symbol("lastPromise"),D=Symbol("handlePromise"),T=Symbol("stream");function M(Y,ae){return{value:Y,done:ae}}function A(Y){var ae=Y[b];if(null!==ae){var X=Y[T].read();null!==X&&(Y[P]=null,Y[b]=null,Y[a]=null,ae(M(X,!1)))}}function E(Y){process.nextTick(A,Y)}var w=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((i(e={get stream(){return this[T]},next:function(){var ae=this,X=this[y];if(null!==X)return Promise.reject(X);if(this[h])return Promise.resolve(M(void 0,!0));if(this[T].destroyed)return new Promise(function(le,ee){process.nextTick(function(){ae[y]?ee(ae[y]):le(M(void 0,!0))})});var q,de=this[P];if(de)q=new Promise(function k(Y,ae){return function(X,de){Y.then(function(){ae[h]?X(M(void 0,!0)):ae[D](X,de)},de)}}(de,this));else{var re=this[T].read();if(null!==re)return Promise.resolve(M(re,!1));q=new Promise(this[D])}return this[P]=q,q}},Symbol.asyncIterator,function(){return this}),i(e,"return",function(){var ae=this;return new Promise(function(X,de){ae[T].destroy(null,function(q){q?de(q):X(M(void 0,!0))})})}),e),w);He.exports=function(ae){var X,de=Object.create(V,(i(X={},T,{value:ae,writable:!0}),i(X,b,{value:null,writable:!0}),i(X,a,{value:null,writable:!0}),i(X,y,{value:null,writable:!0}),i(X,h,{value:ae._readableState.endEmitted,writable:!0}),i(X,D,{value:function(re,le){var ee=de[T].read();ee?(de[P]=null,de[b]=null,de[a]=null,re(M(ee,!1))):(de[b]=re,de[a]=le)},writable:!0}),X));return de[P]=null,u(ae,function(q){if(q&&"ERR_STREAM_PREMATURE_CLOSE"!==q.code){var re=de[a];return null!==re&&(de[P]=null,de[b]=null,de[a]=null,re(q)),void(de[y]=q)}var le=de[b];null!==le&&(de[P]=null,de[b]=null,de[a]=null,le(M(void 0,!0))),de[h]=!0}),ae.on("readable",E.bind(null,de)),de}},5019:(He,j,p)=>{"use strict";function e(E,k){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(E);k&&(V=V.filter(function(U){return Object.getOwnPropertyDescriptor(E,U).enumerable})),w.push.apply(w,V)}return w}function u(E,k,w){return k in E?Object.defineProperty(E,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[k]=w,E}function a(E,k){for(var w=0;w0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(w){var V={data:w,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var V=this.head,U=""+V.data;V=V.next;)U+=w+V.data;return U}},{key:"concat",value:function(w){if(0===this.length)return P.alloc(0);for(var V=P.allocUnsafe(w>>>0),U=this.head,Y=0;U;)A(U.data,V,Y),Y+=U.data.length,U=U.next;return V}},{key:"consume",value:function(w,V){var U;return wae.length?ae.length:w;if(Y+=X===ae.length?ae:ae.slice(0,w),0==(w-=X)){X===ae.length?(++U,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=ae.slice(X));break}++U}return this.length-=U,Y}},{key:"_getBuffer",value:function(w){var V=P.allocUnsafe(w),U=this.head,Y=1;for(U.data.copy(V),w-=U.data.length;U=U.next;){var ae=U.data,X=w>ae.length?ae.length:w;if(ae.copy(V,V.length-w,0,X),0==(w-=X)){X===ae.length?(++Y,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ae.slice(X));break}++Y}return this.length-=Y,V}},{key:M,value:function(w,V){return T(this,function i(E){for(var k=1;k{"use strict";function p(a,y){u(a,y),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function u(a,y){a.emit("error",y)}He.exports={destroy:function j(a,y){var h=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(y?y(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(u,this,a)):process.nextTick(u,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(T){!y&&T?h._writableState?h._writableState.errorEmitted?process.nextTick(e,h):(h._writableState.errorEmitted=!0,process.nextTick(p,h,T)):process.nextTick(p,h,T):y?(process.nextTick(e,h),y(T)):process.nextTick(e,h)}),this)},undestroy:function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function b(a,y){var h=a._readableState,P=a._writableState;h&&h.autoDestroy||P&&P.autoDestroy?a.destroy(y):a.emit("error",y)}}},7542:(He,j,p)=>{"use strict";var e=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function u(){}He.exports=function a(y,h,P){if("function"==typeof h)return a(y,null,h);h||(h={}),P=function i(y){var h=!1;return function(){if(!h){h=!0;for(var P=arguments.length,D=new Array(P),T=0;T{He.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(He,j,p)=>{"use strict";var e,u=p(891).q,b=u.ERR_MISSING_ARGS,a=u.ERR_STREAM_DESTROYED;function y(E){if(E)throw E}function P(E,k,w,V){V=function i(E){var k=!1;return function(){k||(k=!0,E.apply(void 0,arguments))}}(V);var U=!1;E.on("close",function(){U=!0}),void 0===e&&(e=p(7542)),e(E,{readable:k,writable:w},function(ae){if(ae)return V(ae);U=!0,V()});var Y=!1;return function(ae){if(!U&&!Y){if(Y=!0,function h(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();V(ae||new a("pipe"))}}}function D(E){E()}function T(E,k){return E.pipe(k)}function M(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():y}He.exports=function A(){for(var E=arguments.length,k=new Array(E),w=0;w0,function(re){U||(U=re),re&&Y.forEach(D),!de&&(Y.forEach(D),V(U))})});return k.reduce(T)}},7102:(He,j,p)=>{"use strict";var e=p(891).q.ERR_INVALID_OPT_VALUE;He.exports={getHighWaterMark:function u(b,a,y,h){var P=function i(b,a,y){return null!=b.highWaterMark?b.highWaterMark:a?b[y]:null}(a,h,y);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new e(h?y:"highWaterMark",P);return Math.floor(P)}return b.objectMode?16:16384}}},4970:(He,j,p)=>{He.exports=p(9069).EventEmitter},5685:(He,j,p)=>{(j=He.exports=p(3154)).Stream=j,j.Readable=j,j.Writable=p(520),j.Duplex=p(1339),j.Transform=p(6025),j.PassThrough=p(6071),j.finished=p(7542),j.pipeline=p(954)},5634:(He,j,p)=>{"use strict";var e=p(3172).Buffer,i=p(3894),u=p(9650),b=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],D=[0,1518500249,1859775393,2400959708,2840853838],T=[1352829926,1548603684,1836072691,2053994217,0];function M(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(Y,ae){return Y<>>32-ae}function E(Y,ae,X,de,q,re,le,ee){return A(Y+(ae^X^de)+re+le|0,ee)+q|0}function k(Y,ae,X,de,q,re,le,ee){return A(Y+(ae&X|~ae&de)+re+le|0,ee)+q|0}function w(Y,ae,X,de,q,re,le,ee){return A(Y+((ae|~X)^de)+re+le|0,ee)+q|0}function V(Y,ae,X,de,q,re,le,ee){return A(Y+(ae&de|X&~de)+re+le|0,ee)+q|0}function U(Y,ae,X,de,q,re,le,ee){return A(Y+(ae^(X|~de))+re+le|0,ee)+q|0}i(M,u),M.prototype._update=function(){for(var Y=b,ae=0;ae<16;++ae)Y[ae]=this._block.readInt32LE(4*ae);for(var X=0|this._a,de=0|this._b,q=0|this._c,re=0|this._d,le=0|this._e,ee=0|this._a,_e=0|this._b,x=0|this._c,t=0|this._d,r=0|this._e,d=0;d<80;d+=1){var c,g;d<16?(c=E(X,de,q,re,le,Y[a[d]],D[0],h[d]),g=U(ee,_e,x,t,r,Y[y[d]],T[0],P[d])):d<32?(c=k(X,de,q,re,le,Y[a[d]],D[1],h[d]),g=V(ee,_e,x,t,r,Y[y[d]],T[1],P[d])):d<48?(c=w(X,de,q,re,le,Y[a[d]],D[2],h[d]),g=w(ee,_e,x,t,r,Y[y[d]],T[2],P[d])):d<64?(c=V(X,de,q,re,le,Y[a[d]],D[3],h[d]),g=k(ee,_e,x,t,r,Y[y[d]],T[3],P[d])):(c=U(X,de,q,re,le,Y[a[d]],D[4],h[d]),g=E(ee,_e,x,t,r,Y[y[d]],T[4],P[d])),X=le,le=re,re=A(q,10),q=de,de=c,ee=r,r=t,t=A(x,10),x=_e,_e=g}var S=this._b+q+t|0;this._b=this._c+re+r|0,this._c=this._d+le+ee|0,this._d=this._e+X+_e|0,this._e=this._a+de+x|0,this._a=S},M.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Y=e.alloc?e.alloc(20):new e(20);return Y.writeInt32LE(this._a,0),Y.writeInt32LE(this._b,4),Y.writeInt32LE(this._c,8),Y.writeInt32LE(this._d,12),Y.writeInt32LE(this._e,16),Y},He.exports=M},1135:(He,j,p)=>{"use strict";p.d(j,{X:()=>i});var e=p(7579);class i extends e.x{constructor(b){super(),this._value=b}get value(){return this.getValue()}_subscribe(b){const a=super._subscribe(b);return!a.closed&&b.next(this._value),a}getValue(){const{hasError:b,thrownError:a,_value:y}=this;if(b)throw a;return this._throwIfClosed(),y}next(b){super.next(this._value=b)}}},8306:(He,j,p)=>{"use strict";p.d(j,{y:()=>T});var e=p(930),i=p(727),u=p(8822),b=p(4671);var h=p(2416),P=p(576),D=p(2806);let T=(()=>{class k{constructor(V){V&&(this._subscribe=V)}lift(V){const U=new k;return U.source=this,U.operator=V,U}subscribe(V,U,Y){const ae=function E(k){return k&&k instanceof e.Lv||function A(k){return k&&(0,P.m)(k.next)&&(0,P.m)(k.error)&&(0,P.m)(k.complete)}(k)&&(0,i.Nn)(k)}(V)?V:new e.Hp(V,U,Y);return(0,D.x)(()=>{const{operator:X,source:de}=this;ae.add(X?X.call(ae,de):de?this._subscribe(ae):this._trySubscribe(ae))}),ae}_trySubscribe(V){try{return this._subscribe(V)}catch(U){V.error(U)}}forEach(V,U){return new(U=M(U))((Y,ae)=>{const X=new e.Hp({next:de=>{try{V(de)}catch(q){ae(q),X.unsubscribe()}},error:ae,complete:Y});this.subscribe(X)})}_subscribe(V){var U;return null===(U=this.source)||void 0===U?void 0:U.subscribe(V)}[u.L](){return this}pipe(...V){return function y(k){return 0===k.length?b.y:1===k.length?k[0]:function(V){return k.reduce((U,Y)=>Y(U),V)}}(V)(this)}toPromise(V){return new(V=M(V))((U,Y)=>{let ae;this.subscribe(X=>ae=X,X=>Y(X),()=>U(ae))})}}return k.create=w=>new k(w),k})();function M(k){var w;return null!==(w=null!=k?k:h.v.Promise)&&void 0!==w?w:Promise}},4707:(He,j,p)=>{"use strict";p.d(j,{t:()=>u});var e=p(7579),i=p(6063);class u extends e.x{constructor(a=1/0,y=1/0,h=i.l){super(),this._bufferSize=a,this._windowTime=y,this._timestampProvider=h,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,y)}next(a){const{isStopped:y,_buffer:h,_infiniteTimeWindow:P,_timestampProvider:D,_windowTime:T}=this;y||(h.push(a),!P&&h.push(D.now()+T)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(a),{_infiniteTimeWindow:h,_buffer:P}=this,D=P.slice();for(let T=0;T{"use strict";p.d(j,{u:()=>P,x:()=>h});var e=p(8306),i=p(727);const b=(0,p(3888).d)(D=>function(){D(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),y=p(2806);let h=(()=>{class D extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(M){const A=new P(this,this);return A.operator=M,A}_throwIfClosed(){if(this.closed)throw new b}next(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const A of this.currentObservers)A.next(M)}})}error(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=M;const{observers:A}=this;for(;A.length;)A.shift().error(M)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:M}=this;for(;M.length;)M.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var M;return(null===(M=this.observers)||void 0===M?void 0:M.length)>0}_trySubscribe(M){return this._throwIfClosed(),super._trySubscribe(M)}_subscribe(M){return this._throwIfClosed(),this._checkFinalizedStatuses(M),this._innerSubscribe(M)}_innerSubscribe(M){const{hasError:A,isStopped:E,observers:k}=this;return A||E?i.Lc:(this.currentObservers=null,k.push(M),new i.w0(()=>{this.currentObservers=null,(0,a.P)(k,M)}))}_checkFinalizedStatuses(M){const{hasError:A,thrownError:E,isStopped:k}=this;A?M.error(E):k&&M.complete()}asObservable(){const M=new e.y;return M.source=this,M}}return D.create=(T,M)=>new P(T,M),D})();class P extends h{constructor(T,M){super(),this.destination=T,this.source=M}next(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.next)||void 0===A||A.call(M,T)}error(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.error)||void 0===A||A.call(M,T)}complete(){var T,M;null===(M=null===(T=this.destination)||void 0===T?void 0:T.complete)||void 0===M||M.call(T)}_subscribe(T){var M,A;return null!==(A=null===(M=this.source)||void 0===M?void 0:M.subscribe(T))&&void 0!==A?A:i.Lc}}},930:(He,j,p)=>{"use strict";p.d(j,{Hp:()=>V,Lv:()=>A});var e=p(576),i=p(727),u=p(2416),b=p(7849),a=p(5032);const y=D("C",void 0,void 0);function D(de,q,re){return{kind:de,value:q,error:re}}var T=p(3410),M=p(2806);class A extends i.w0{constructor(q){super(),this.isStopped=!1,q?(this.destination=q,(0,i.Nn)(q)&&q.add(this)):this.destination=X}static create(q,re,le){return new V(q,re,le)}next(q){this.isStopped?ae(function P(de){return D("N",de,void 0)}(q),this):this._next(q)}error(q){this.isStopped?ae(function h(de){return D("E",void 0,de)}(q),this):(this.isStopped=!0,this._error(q))}complete(){this.isStopped?ae(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(q){this.destination.next(q)}_error(q){try{this.destination.error(q)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const E=Function.prototype.bind;function k(de,q){return E.call(de,q)}class w{constructor(q){this.partialObserver=q}next(q){const{partialObserver:re}=this;if(re.next)try{re.next(q)}catch(le){U(le)}}error(q){const{partialObserver:re}=this;if(re.error)try{re.error(q)}catch(le){U(le)}else U(q)}complete(){const{partialObserver:q}=this;if(q.complete)try{q.complete()}catch(re){U(re)}}}class V extends A{constructor(q,re,le){let ee;if(super(),(0,e.m)(q)||!q)ee={next:null!=q?q:void 0,error:null!=re?re:void 0,complete:null!=le?le:void 0};else{let _e;this&&u.v.useDeprecatedNextContext?(_e=Object.create(q),_e.unsubscribe=()=>this.unsubscribe(),ee={next:q.next&&k(q.next,_e),error:q.error&&k(q.error,_e),complete:q.complete&&k(q.complete,_e)}):ee=q}this.destination=new w(ee)}}function U(de){u.v.useDeprecatedSynchronousErrorHandling?(0,M.O)(de):(0,b.h)(de)}function ae(de,q){const{onStoppedNotification:re}=u.v;re&&T.z.setTimeout(()=>re(de,q))}const X={closed:!0,next:a.Z,error:function Y(de){throw de},complete:a.Z}},727:(He,j,p)=>{"use strict";p.d(j,{Lc:()=>y,w0:()=>a,Nn:()=>h});var e=p(576);const u=(0,p(3888).d)(D=>function(M){D(this),this.message=M?`${M.length} errors occurred during unsubscription:\n${M.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=M});var b=p(8737);class a{constructor(T){this.initialTeardown=T,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let T;if(!this.closed){this.closed=!0;const{_parentage:M}=this;if(M)if(this._parentage=null,Array.isArray(M))for(const k of M)k.remove(this);else M.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(k){T=k instanceof u?k.errors:[k]}const{_finalizers:E}=this;if(E){this._finalizers=null;for(const k of E)try{P(k)}catch(w){T=null!=T?T:[],w instanceof u?T=[...T,...w.errors]:T.push(w)}}if(T)throw new u(T)}}add(T){var M;if(T&&T!==this)if(this.closed)P(T);else{if(T instanceof a){if(T.closed||T._hasParent(this))return;T._addParent(this)}(this._finalizers=null!==(M=this._finalizers)&&void 0!==M?M:[]).push(T)}}_hasParent(T){const{_parentage:M}=this;return M===T||Array.isArray(M)&&M.includes(T)}_addParent(T){const{_parentage:M}=this;this._parentage=Array.isArray(M)?(M.push(T),M):M?[M,T]:T}_removeParent(T){const{_parentage:M}=this;M===T?this._parentage=null:Array.isArray(M)&&(0,b.P)(M,T)}remove(T){const{_finalizers:M}=this;M&&(0,b.P)(M,T),T instanceof a&&T._removeParent(this)}}a.EMPTY=(()=>{const D=new a;return D.closed=!0,D})();const y=a.EMPTY;function h(D){return D instanceof a||D&&"closed"in D&&(0,e.m)(D.remove)&&(0,e.m)(D.add)&&(0,e.m)(D.unsubscribe)}function P(D){(0,e.m)(D)?D():D.unsubscribe()}},2416:(He,j,p)=>{"use strict";p.d(j,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(He,j,p)=>{"use strict";p.d(j,{a:()=>T});var e=p(8306),i=p(4742),u=p(457),b=p(4671),a=p(3268),y=p(3269),h=p(1810),P=p(5403),D=p(9672);function T(...E){const k=(0,y.yG)(E),w=(0,y.jO)(E),{args:V,keys:U}=(0,i.D)(E);if(0===V.length)return(0,u.D)([],k);const Y=new e.y(function M(E,k,w=b.y){return V=>{A(k,()=>{const{length:U}=E,Y=new Array(U);let ae=U,X=U;for(let de=0;de{const q=(0,u.D)(E[de],k);let re=!1;q.subscribe((0,P.x)(V,le=>{Y[de]=le,re||(re=!0,X--),X||V.next(w(Y.slice()))},()=>{--ae||V.complete()}))},V)},V)}}(V,k,U?ae=>(0,h.n)(U,ae):b.y));return w?Y.pipe((0,a.Z)(w)):Y}function A(E,k,w){E?(0,D.f)(w,E,k):k()}},7272:(He,j,p)=>{"use strict";p.d(j,{z:()=>a});var e=p(8189),u=p(3269),b=p(457);function a(...y){return function i(){return(0,e.J)(1)}()((0,b.D)(y,(0,u.yG)(y)))}},9770:(He,j,p)=>{"use strict";p.d(j,{P:()=>u});var e=p(8306),i=p(8421);function u(b){return new e.y(a=>{(0,i.Xf)(b()).subscribe(a)})}},515:(He,j,p)=>{"use strict";p.d(j,{E:()=>i});const i=new(p(8306).y)(a=>a.complete())},4128:(He,j,p)=>{"use strict";p.d(j,{D:()=>P});var e=p(8306),i=p(4742),u=p(8421),b=p(3269),a=p(5403),y=p(3268),h=p(1810);function P(...D){const T=(0,b.jO)(D),{args:M,keys:A}=(0,i.D)(D),E=new e.y(k=>{const{length:w}=M;if(!w)return void k.complete();const V=new Array(w);let U=w,Y=w;for(let ae=0;ae{X||(X=!0,Y--),V[ae]=de},()=>U--,void 0,()=>{(!U||!X)&&(Y||k.next(A?(0,h.n)(A,V):V),k.complete())}))}});return T?E.pipe((0,y.Z)(T)):E}},457:(He,j,p)=>{"use strict";p.d(j,{D:()=>re});var e=p(8421),i=p(5363),u=p(4482);function b(le,ee=0){return(0,u.e)((_e,x)=>{x.add(le.schedule(()=>_e.subscribe(x),ee))})}var h=p(8306),D=p(2202),T=p(576),M=p(9672);function E(le,ee){if(!le)throw new Error("Iterable cannot be null");return new h.y(_e=>{(0,M.f)(_e,ee,()=>{const x=le[Symbol.asyncIterator]();(0,M.f)(_e,ee,()=>{x.next().then(t=>{t.done?_e.complete():_e.next(t.value)})},0,!0)})})}var k=p(3670),w=p(8239),V=p(1144),U=p(6495),Y=p(2206),ae=p(4532),X=p(3260);function re(le,ee){return ee?function q(le,ee){if(null!=le){if((0,k.c)(le))return function a(le,ee){return(0,e.Xf)(le).pipe(b(ee),(0,i.Q)(ee))}(le,ee);if((0,V.z)(le))return function P(le,ee){return new h.y(_e=>{let x=0;return ee.schedule(function(){x===le.length?_e.complete():(_e.next(le[x++]),_e.closed||this.schedule())})})}(le,ee);if((0,w.t)(le))return function y(le,ee){return(0,e.Xf)(le).pipe(b(ee),(0,i.Q)(ee))}(le,ee);if((0,Y.D)(le))return E(le,ee);if((0,U.T)(le))return function A(le,ee){return new h.y(_e=>{let x;return(0,M.f)(_e,ee,()=>{x=le[D.h](),(0,M.f)(_e,ee,()=>{let t,r;try{({value:t,done:r}=x.next())}catch(d){return void _e.error(d)}r?_e.complete():_e.next(t)},0,!0)}),()=>(0,T.m)(null==x?void 0:x.return)&&x.return()})}(le,ee);if((0,X.L)(le))return function de(le,ee){return E((0,X.Q)(le),ee)}(le,ee)}throw(0,ae.z)(le)}(le,ee):(0,e.Xf)(le)}},4968:(He,j,p)=>{"use strict";p.d(j,{R:()=>T});var e=p(8421),i=p(8306),u=p(5577),b=p(1144),a=p(576),y=p(3268);const h=["addListener","removeListener"],P=["addEventListener","removeEventListener"],D=["on","off"];function T(w,V,U,Y){if((0,a.m)(U)&&(Y=U,U=void 0),Y)return T(w,V,U).pipe((0,y.Z)(Y));const[ae,X]=function k(w){return(0,a.m)(w.addEventListener)&&(0,a.m)(w.removeEventListener)}(w)?P.map(de=>q=>w[de](V,q,U)):function A(w){return(0,a.m)(w.addListener)&&(0,a.m)(w.removeListener)}(w)?h.map(M(w,V)):function E(w){return(0,a.m)(w.on)&&(0,a.m)(w.off)}(w)?D.map(M(w,V)):[];if(!ae&&(0,b.z)(w))return(0,u.z)(de=>T(de,V,U))((0,e.Xf)(w));if(!ae)throw new TypeError("Invalid event target");return new i.y(de=>{const q=(...re)=>de.next(1X(q)})}function M(w,V){return U=>Y=>w[U](V,Y)}},8421:(He,j,p)=>{"use strict";p.d(j,{Xf:()=>E});var e=p(655),i=p(1144),u=p(8239),b=p(8306),a=p(3670),y=p(2206),h=p(4532),P=p(6495),D=p(3260),T=p(576),M=p(7849),A=p(8822);function E(de){if(de instanceof b.y)return de;if(null!=de){if((0,a.c)(de))return function k(de){return new b.y(q=>{const re=de[A.L]();if((0,T.m)(re.subscribe))return re.subscribe(q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(de);if((0,i.z)(de))return function w(de){return new b.y(q=>{for(let re=0;re{de.then(re=>{q.closed||(q.next(re),q.complete())},re=>q.error(re)).then(null,M.h)})}(de);if((0,y.D)(de))return Y(de);if((0,P.T)(de))return function U(de){return new b.y(q=>{for(const re of de)if(q.next(re),q.closed)return;q.complete()})}(de);if((0,D.L)(de))return function ae(de){return Y((0,D.Q)(de))}(de)}throw(0,h.z)(de)}function Y(de){return new b.y(q=>{(function X(de,q){var re,le,ee,_e;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(de);!(le=yield re.next()).done;)if(q.next(le.value),q.closed)return}catch(x){ee={error:x}}finally{try{le&&!le.done&&(_e=re.return)&&(yield _e.call(re))}finally{if(ee)throw ee.error}}q.complete()})})(de,q).catch(re=>q.error(re))})}},6451:(He,j,p)=>{"use strict";p.d(j,{T:()=>y});var e=p(8189),i=p(8421),u=p(515),b=p(3269),a=p(457);function y(...h){const P=(0,b.yG)(h),D=(0,b._6)(h,1/0),T=h;return T.length?1===T.length?(0,i.Xf)(T[0]):(0,e.J)(D)((0,a.D)(T,P)):u.E}},9646:(He,j,p)=>{"use strict";p.d(j,{of:()=>u});var e=p(3269),i=p(457);function u(...b){const a=(0,e.yG)(b);return(0,i.D)(b,a)}},2843:(He,j,p)=>{"use strict";p.d(j,{_:()=>u});var e=p(8306),i=p(576);function u(b,a){const y=(0,i.m)(b)?b:()=>b,h=P=>P.error(y());return new e.y(a?P=>a.schedule(h,0,P):h)}},2805:(He,j,p)=>{"use strict";p.d(j,{H:()=>a});var e=p(8306),i=p(4986),u=p(3532),b=p(1165);function a(y=0,h,P=i.P){let D=-1;return null!=h&&((0,u.K)(h)?P=h:D=h),new e.y(T=>{let M=(0,b.q)(y)?+y-P.now():y;M<0&&(M=0);let A=0;return P.schedule(function(){T.closed||(T.next(A++),0<=D?this.schedule(void 0,D):T.complete())},M)})}},5403:(He,j,p)=>{"use strict";p.d(j,{Q:()=>u,x:()=>i});var e=p(930);function i(b,a,y,h,P){return new u(b,a,y,h,P)}class u extends e.Lv{constructor(a,y,h,P,D,T){super(a),this.onFinalize=D,this.shouldUnsubscribe=T,this._next=y?function(M){try{y(M)}catch(A){a.error(A)}}:super._next,this._error=P?function(M){try{P(M)}catch(A){a.error(A)}finally{this.unsubscribe()}}:super._error,this._complete=h?function(){try{h()}catch(M){a.error(M)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(He,j,p)=>{"use strict";p.d(j,{e:()=>h});var e=p(4986),i=p(4482),u=p(8421),b=p(5403),y=p(2805);function h(P,D=e.z){return function a(P){return(0,i.e)((D,T)=>{let M=!1,A=null,E=null,k=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,M){M=!1;const U=A;A=null,T.next(U)}k&&T.complete()},V=()=>{E=null,k&&T.complete()};D.subscribe((0,b.x)(T,U=>{M=!0,A=U,E||(0,u.Xf)(P(U)).subscribe(E=(0,b.x)(T,w,V))},()=>{k=!0,(!M||!E||E.closed)&&T.complete()}))})}(()=>(0,y.H)(P,D))}},262:(He,j,p)=>{"use strict";p.d(j,{K:()=>b});var e=p(8421),i=p(5403),u=p(4482);function b(a){return(0,u.e)((y,h)=>{let T,P=null,D=!1;P=y.subscribe((0,i.x)(h,void 0,void 0,M=>{T=(0,e.Xf)(a(M,b(a)(y))),P?(P.unsubscribe(),P=null,T.subscribe(h)):D=!0})),D&&(P.unsubscribe(),P=null,T.subscribe(h))})}},4351:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(5577),i=p(576);function u(b,a){return(0,i.m)(a)?(0,e.z)(b,a,1):(0,e.z)(b,1)}},8372:(He,j,p)=>{"use strict";p.d(j,{b:()=>b});var e=p(4986),i=p(4482),u=p(5403);function b(a,y=e.z){return(0,i.e)((h,P)=>{let D=null,T=null,M=null;const A=()=>{if(D){D.unsubscribe(),D=null;const k=T;T=null,P.next(k)}};function E(){const k=M+a,w=y.now();if(w{T=k,M=y.now(),D||(D=y.schedule(E,a),P.add(D))},()=>{A(),P.complete()},void 0,()=>{T=D=null}))})}},6590:(He,j,p)=>{"use strict";p.d(j,{d:()=>u});var e=p(4482),i=p(5403);function u(b){return(0,e.e)((a,y)=>{let h=!1;a.subscribe((0,i.x)(y,P=>{h=!0,y.next(P)},()=>{h||y.next(b),y.complete()}))})}},4086:(He,j,p)=>{"use strict";p.d(j,{g:()=>D});var e=p(4986),i=p(7272),u=p(5698),b=p(8502),a=p(9718),y=p(5577);function h(T,M){return M?A=>(0,i.z)(M.pipe((0,u.q)(1),(0,b.l)()),A.pipe(h(T))):(0,y.z)((A,E)=>T(A,E).pipe((0,u.q)(1),(0,a.h)(A)))}var P=p(2805);function D(T,M=e.z){const A=(0,P.H)(T,M);return h(()=>A)}},1884:(He,j,p)=>{"use strict";p.d(j,{x:()=>b});var e=p(4671),i=p(4482),u=p(5403);function b(y,h=e.y){return y=null!=y?y:a,(0,i.e)((P,D)=>{let T,M=!0;P.subscribe((0,u.x)(D,A=>{const E=h(A);(M||!y(T,E))&&(M=!1,T=E,D.next(A))}))})}function a(y,h){return y===h}},9300:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,h)=>{let P=0;y.subscribe((0,i.x)(h,D=>b.call(a,D,P++)&&h.next(D)))})}},8746:(He,j,p)=>{"use strict";p.d(j,{x:()=>i});var e=p(4482);function i(u){return(0,e.e)((b,a)=>{try{b.subscribe(a)}finally{a.add(u)}})}},590:(He,j,p)=>{"use strict";p.d(j,{P:()=>h});var e=p(6805),i=p(9300),u=p(5698),b=p(6590),a=p(8068),y=p(4671);function h(P,D){const T=arguments.length>=2;return M=>M.pipe(P?(0,i.h)((A,E)=>P(A,E,M)):y.y,(0,u.q)(1),T?(0,b.d)(D):(0,a.T)(()=>new e.K))}},8502:(He,j,p)=>{"use strict";p.d(j,{l:()=>b});var e=p(4482),i=p(5403),u=p(5032);function b(){return(0,e.e)((a,y)=>{a.subscribe((0,i.x)(y,u.Z))})}},4004:(He,j,p)=>{"use strict";p.d(j,{U:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,h)=>{let P=0;y.subscribe((0,i.x)(h,D=>{h.next(b.call(a,D,P++))}))})}},9718:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(4004);function i(u){return(0,e.U)(()=>u)}},8189:(He,j,p)=>{"use strict";p.d(j,{J:()=>u});var e=p(5577),i=p(4671);function u(b=1/0){return(0,e.z)(i.y,b)}},5577:(He,j,p)=>{"use strict";p.d(j,{z:()=>P});var e=p(4004),i=p(8421),u=p(4482),b=p(9672),a=p(5403),h=p(576);function P(D,T,M=1/0){return(0,h.m)(T)?P((A,E)=>(0,e.U)((k,w)=>T(A,k,E,w))((0,i.Xf)(D(A,E))),M):("number"==typeof T&&(M=T),(0,u.e)((A,E)=>function y(D,T,M,A,E,k,w,V){const U=[];let Y=0,ae=0,X=!1;const de=()=>{X&&!U.length&&!Y&&T.complete()},q=le=>Y{k&&T.next(le),Y++;let ee=!1;(0,i.Xf)(M(le,ae++)).subscribe((0,a.x)(T,_e=>{null==E||E(_e),k?q(_e):T.next(_e)},()=>{ee=!0},void 0,()=>{if(ee)try{for(Y--;U.length&&Yre(_e)):re(_e)}de()}catch(_e){T.error(_e)}}))};return D.subscribe((0,a.x)(T,q,()=>{X=!0,de()})),()=>{null==V||V()}}(A,E,D,M)))}},5363:(He,j,p)=>{"use strict";p.d(j,{Q:()=>b});var e=p(9672),i=p(4482),u=p(5403);function b(a,y=0){return(0,i.e)((h,P)=>{h.subscribe((0,u.x)(P,D=>(0,e.f)(P,a,()=>P.next(D),y),()=>(0,e.f)(P,a,()=>P.complete(),y),D=>(0,e.f)(P,a,()=>P.error(D),y)))})}},5026:(He,j,p)=>{"use strict";p.d(j,{R:()=>b});var e=p(4482),i=p(5403);function u(a,y,h,P,D){return(T,M)=>{let A=h,E=y,k=0;T.subscribe((0,i.x)(M,w=>{const V=k++;E=A?a(E,w,V):(A=!0,w),P&&M.next(E)},D&&(()=>{A&&M.next(E),M.complete()})))}}function b(a,y){return(0,e.e)(u(a,y,arguments.length>=2,!0))}},3099:(He,j,p)=>{"use strict";p.d(j,{B:()=>a});var e=p(8421),i=p(7579),u=p(930),b=p(4482);function a(h={}){const{connector:P=(()=>new i.x),resetOnError:D=!0,resetOnComplete:T=!0,resetOnRefCountZero:M=!0}=h;return A=>{let E,k,w,V=0,U=!1,Y=!1;const ae=()=>{null==k||k.unsubscribe(),k=void 0},X=()=>{ae(),E=w=void 0,U=Y=!1},de=()=>{const q=E;X(),null==q||q.unsubscribe()};return(0,b.e)((q,re)=>{V++,!Y&&!U&&ae();const le=w=null!=w?w:P();re.add(()=>{V--,0===V&&!Y&&!U&&(k=y(de,M))}),le.subscribe(re),!E&&V>0&&(E=new u.Hp({next:ee=>le.next(ee),error:ee=>{Y=!0,ae(),k=y(X,D,ee),le.error(ee)},complete:()=>{U=!0,ae(),k=y(X,T),le.complete()}}),(0,e.Xf)(q).subscribe(E))})(A)}}function y(h,P,...D){if(!0===P)return void h();if(!1===P)return;const T=new u.Hp({next:()=>{T.unsubscribe(),h()}});return P(...D).subscribe(T)}},5684:(He,j,p)=>{"use strict";p.d(j,{T:()=>i});var e=p(9300);function i(u){return(0,e.h)((b,a)=>u<=a)}},8675:(He,j,p)=>{"use strict";p.d(j,{O:()=>b});var e=p(7272),i=p(3269),u=p(4482);function b(...a){const y=(0,i.yG)(a);return(0,u.e)((h,P)=>{(y?(0,e.z)(a,h,y):(0,e.z)(a,h)).subscribe(P)})}},3900:(He,j,p)=>{"use strict";p.d(j,{w:()=>b});var e=p(8421),i=p(4482),u=p(5403);function b(a,y){return(0,i.e)((h,P)=>{let D=null,T=0,M=!1;const A=()=>M&&!D&&P.complete();h.subscribe((0,u.x)(P,E=>{null==D||D.unsubscribe();let k=0;const w=T++;(0,e.Xf)(a(E,w)).subscribe(D=(0,u.x)(P,V=>P.next(y?y(E,V,w,k++):V),()=>{D=null,A()}))},()=>{M=!0,A()}))})}},5698:(He,j,p)=>{"use strict";p.d(j,{q:()=>b});var e=p(515),i=p(4482),u=p(5403);function b(a){return a<=0?()=>e.E:(0,i.e)((y,h)=>{let P=0;y.subscribe((0,u.x)(h,D=>{++P<=a&&(h.next(D),a<=P&&h.complete())}))})}},2722:(He,j,p)=>{"use strict";p.d(j,{R:()=>a});var e=p(4482),i=p(5403),u=p(8421),b=p(5032);function a(y){return(0,e.e)((h,P)=>{(0,u.Xf)(y).subscribe((0,i.x)(P,()=>P.complete(),b.Z)),!P.closed&&h.subscribe(P)})}},8505:(He,j,p)=>{"use strict";p.d(j,{b:()=>a});var e=p(576),i=p(4482),u=p(5403),b=p(4671);function a(y,h,P){const D=(0,e.m)(y)||h||P?{next:y,error:h,complete:P}:y;return D?(0,i.e)((T,M)=>{var A;null===(A=D.subscribe)||void 0===A||A.call(D);let E=!0;T.subscribe((0,u.x)(M,k=>{var w;null===(w=D.next)||void 0===w||w.call(D,k),M.next(k)},()=>{var k;E=!1,null===(k=D.complete)||void 0===k||k.call(D),M.complete()},k=>{var w;E=!1,null===(w=D.error)||void 0===w||w.call(D,k),M.error(k)},()=>{var k,w;E&&(null===(k=D.unsubscribe)||void 0===k||k.call(D)),null===(w=D.finalize)||void 0===w||w.call(D)}))}):b.y}},8068:(He,j,p)=>{"use strict";p.d(j,{T:()=>b});var e=p(6805),i=p(4482),u=p(5403);function b(y=a){return(0,i.e)((h,P)=>{let D=!1;h.subscribe((0,u.x)(P,T=>{D=!0,P.next(T)},()=>D?P.complete():P.error(y())))})}function a(){return new e.K}},7414:(He,j,p)=>{"use strict";p.d(j,{V:()=>D});var e=p(4986),i=p(1165),u=p(4482),b=p(8421),a=p(3888),y=p(5403),h=p(9672);const P=(0,a.d)(M=>function(E=null){M(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function D(M,A){const{first:E,each:k,with:w=T,scheduler:V=(null!=A?A:e.z),meta:U=null}=(0,i.q)(M)?{first:M}:"number"==typeof M?{each:M}:M;if(null==E&&null==k)throw new TypeError("No timeout provided.");return(0,u.e)((Y,ae)=>{let X,de,q=null,re=0;const le=ee=>{de=(0,h.f)(ae,V,()=>{try{X.unsubscribe(),(0,b.Xf)(w({meta:U,lastValue:q,seen:re})).subscribe(ae)}catch(_e){ae.error(_e)}},ee)};X=Y.subscribe((0,y.x)(ae,ee=>{null==de||de.unsubscribe(),re++,ae.next(q=ee),k>0&&le(k)},void 0,void 0,()=>{(null==de?void 0:de.closed)||null==de||de.unsubscribe(),q=null})),!re&&le(null!=E?"number"==typeof E?E:+E-V.now():k)})}function T(M){throw new P(M)}},1365:(He,j,p)=>{"use strict";p.d(j,{M:()=>h});var e=p(4482),i=p(5403),u=p(8421),b=p(4671),a=p(5032),y=p(3269);function h(...P){const D=(0,y.jO)(P);return(0,e.e)((T,M)=>{const A=P.length,E=new Array(A);let k=P.map(()=>!1),w=!1;for(let V=0;V{E[V]=U,!w&&!k[V]&&(k[V]=!0,(w=k.every(b.y))&&(k=null))},a.Z));T.subscribe((0,i.x)(M,V=>{if(w){const U=[V,...E];M.next(D?D(...U):U)}}))})}},4408:(He,j,p)=>{"use strict";p.d(j,{o:()=>a});var e=p(727);class i extends e.w0{constructor(h,P){super()}schedule(h,P=0){return this}}const u={setInterval(y,h,...P){const{delegate:D}=u;return(null==D?void 0:D.setInterval)?D.setInterval(y,h,...P):setInterval(y,h,...P)},clearInterval(y){const{delegate:h}=u;return((null==h?void 0:h.clearInterval)||clearInterval)(y)},delegate:void 0};var b=p(8737);class a extends i{constructor(h,P){super(h,P),this.scheduler=h,this.work=P,this.pending=!1}schedule(h,P=0){if(this.closed)return this;this.state=h;const D=this.id,T=this.scheduler;return null!=D&&(this.id=this.recycleAsyncId(T,D,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(T,this.id,P),this}requestAsyncId(h,P,D=0){return u.setInterval(h.flush.bind(h,this),D)}recycleAsyncId(h,P,D=0){if(null!=D&&this.delay===D&&!1===this.pending)return P;u.clearInterval(P)}execute(h,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const D=this._execute(h,P);if(D)return D;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(h,P){let T,D=!1;try{this.work(h)}catch(M){D=!0,T=M||new Error("Scheduled action threw falsy error")}if(D)return this.unsubscribe(),T}unsubscribe(){if(!this.closed){const{id:h,scheduler:P}=this,{actions:D}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,b.P)(D,this),null!=h&&(this.id=this.recycleAsyncId(P,h,null)),this.delay=null,super.unsubscribe()}}}},7565:(He,j,p)=>{"use strict";p.d(j,{v:()=>u});var e=p(6063);class i{constructor(a,y=i.now){this.schedulerActionCtor=a,this.now=y}schedule(a,y=0,h){return new this.schedulerActionCtor(this,a).schedule(h,y)}}i.now=e.l.now;class u extends i{constructor(a,y=i.now){super(a,y),this.actions=[],this._active=!1,this._scheduled=void 0}flush(a){const{actions:y}=this;if(this._active)return void y.push(a);let h;this._active=!0;do{if(h=a.execute(a.state,a.delay))break}while(a=y.shift());if(this._active=!1,h){for(;a=y.shift();)a.unsubscribe();throw h}}}},3101:(He,j,p)=>{"use strict";p.d(j,{E:()=>k});var e=p(4408);let u,i=1;const b={};function a(V){return V in b&&(delete b[V],!0)}const y={setImmediate(V){const U=i++;return b[U]=!0,u||(u=Promise.resolve()),u.then(()=>a(U)&&V()),U},clearImmediate(V){a(V)}},{setImmediate:P,clearImmediate:D}=y,T={setImmediate(...V){const{delegate:U}=T;return((null==U?void 0:U.setImmediate)||P)(...V)},clearImmediate(V){const{delegate:U}=T;return((null==U?void 0:U.clearImmediate)||D)(V)},delegate:void 0};var A=p(7565);const k=new class E extends A.v{flush(U){this._active=!0;const Y=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let X;U=U||ae.shift();do{if(X=U.execute(U.state,U.delay))break}while((U=ae[0])&&U.id===Y&&ae.shift());if(this._active=!1,X){for(;(U=ae[0])&&U.id===Y&&ae.shift();)U.unsubscribe();throw X}}}(class M extends e.o{constructor(U,Y){super(U,Y),this.scheduler=U,this.work=Y}requestAsyncId(U,Y,ae=0){return null!==ae&&ae>0?super.requestAsyncId(U,Y,ae):(U.actions.push(this),U._scheduled||(U._scheduled=T.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,Y,ae=0){if(null!=ae&&ae>0||null==ae&&this.delay>0)return super.recycleAsyncId(U,Y,ae);U.actions.some(X=>X.id===Y)||(T.clearImmediate(Y),U._scheduled=void 0)}})},4986:(He,j,p)=>{"use strict";p.d(j,{P:()=>b,z:()=>u});var e=p(4408);const u=new(p(7565).v)(e.o),b=u},6063:(He,j,p)=>{"use strict";p.d(j,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(He,j,p)=>{"use strict";p.d(j,{N:()=>a});var e=p(4408),u=p(7565);const a=new class b extends u.v{}(class i extends e.o{constructor(P,D){super(P,D),this.scheduler=P,this.work=D}schedule(P,D=0){return D>0?super.schedule(P,D):(this.delay=D,this.state=P,this.scheduler.flush(this),this)}execute(P,D){return D>0||this.closed?super.execute(P,D):this._execute(P,D)}requestAsyncId(P,D,T=0){return null!=T&&T>0||null==T&&this.delay>0?super.requestAsyncId(P,D,T):P.flush(this)}})},3410:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e={setTimeout(i,u,...b){const{delegate:a}=e;return(null==a?void 0:a.setTimeout)?a.setTimeout(i,u,...b):setTimeout(i,u,...b)},clearTimeout(i){const{delegate:u}=e;return((null==u?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0}},2202:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});const i=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(He,j,p)=>{"use strict";p.d(j,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});const i=(0,p(3888).d)(u=>function(){u(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(He,j,p)=>{"use strict";p.d(j,{_6:()=>y,jO:()=>b,yG:()=>a});var e=p(576),i=p(3532);function u(h){return h[h.length-1]}function b(h){return(0,e.m)(u(h))?h.pop():void 0}function a(h){return(0,i.K)(u(h))?h.pop():void 0}function y(h,P){return"number"==typeof u(h)?h.pop():P}},4742:(He,j,p)=>{"use strict";p.d(j,{D:()=>a});const{isArray:e}=Array,{getPrototypeOf:i,prototype:u,keys:b}=Object;function a(h){if(1===h.length){const P=h[0];if(e(P))return{args:P,keys:null};if(function y(h){return h&&"object"==typeof h&&i(h)===u}(P)){const D=b(P);return{args:D.map(T=>P[T]),keys:D}}}return{args:h,keys:null}}},8737:(He,j,p)=>{"use strict";function e(i,u){if(i){const b=i.indexOf(u);0<=b&&i.splice(b,1)}}p.d(j,{P:()=>e})},3888:(He,j,p)=>{"use strict";function e(i){const b=i(a=>{Error.call(a),a.stack=(new Error).stack});return b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b}p.d(j,{d:()=>e})},1810:(He,j,p)=>{"use strict";function e(i,u){return i.reduce((b,a,y)=>(b[a]=u[y],b),{})}p.d(j,{n:()=>e})},2806:(He,j,p)=>{"use strict";p.d(j,{O:()=>b,x:()=>u});var e=p(2416);let i=null;function u(a){if(e.v.useDeprecatedSynchronousErrorHandling){const y=!i;if(y&&(i={errorThrown:!1,error:null}),a(),y){const{errorThrown:h,error:P}=i;if(i=null,h)throw P}}else a()}function b(a){e.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=a)}},9672:(He,j,p)=>{"use strict";function e(i,u,b,a=0,y=!1){const h=u.schedule(function(){b(),y?i.add(this.schedule(null,a)):this.unsubscribe()},a);if(i.add(h),!y)return h}p.d(j,{f:()=>e})},4671:(He,j,p)=>{"use strict";function e(i){return i}p.d(j,{y:()=>e})},1144:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(He,j,p)=>{"use strict";p.d(j,{D:()=>i});var e=p(576);function i(u){return Symbol.asyncIterator&&(0,e.m)(null==u?void 0:u[Symbol.asyncIterator])}},1165:(He,j,p)=>{"use strict";function e(i){return i instanceof Date&&!isNaN(i)}p.d(j,{q:()=>e})},576:(He,j,p)=>{"use strict";function e(i){return"function"==typeof i}p.d(j,{m:()=>e})},3670:(He,j,p)=>{"use strict";p.d(j,{c:()=>u});var e=p(8822),i=p(576);function u(b){return(0,i.m)(b[e.L])}},6495:(He,j,p)=>{"use strict";p.d(j,{T:()=>u});var e=p(2202),i=p(576);function u(b){return(0,i.m)(null==b?void 0:b[e.h])}},5191:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(8306),i=p(576);function u(b){return!!b&&(b instanceof e.y||(0,i.m)(b.lift)&&(0,i.m)(b.subscribe))}},8239:(He,j,p)=>{"use strict";p.d(j,{t:()=>i});var e=p(576);function i(u){return(0,e.m)(null==u?void 0:u.then)}},3260:(He,j,p)=>{"use strict";p.d(j,{L:()=>b,Q:()=>u});var e=p(655),i=p(576);function u(a){return(0,e.FC)(this,arguments,function*(){const h=a.getReader();try{for(;;){const{value:P,done:D}=yield(0,e.qq)(h.read());if(D)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(P)}}finally{h.releaseLock()}})}function b(a){return(0,i.m)(null==a?void 0:a.getReader)}},3532:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});var e=p(576);function i(u){return u&&(0,e.m)(u.schedule)}},4482:(He,j,p)=>{"use strict";p.d(j,{A:()=>i,e:()=>u});var e=p(576);function i(b){return(0,e.m)(null==b?void 0:b.lift)}function u(b){return a=>{if(i(a))return a.lift(function(y){try{return b(y,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(He,j,p)=>{"use strict";p.d(j,{Z:()=>b});var e=p(4004);const{isArray:i}=Array;function b(a){return(0,e.U)(y=>function u(a,y){return i(y)?a(...y):a(y)}(a,y))}},5032:(He,j,p)=>{"use strict";function e(){}p.d(j,{Z:()=>e})},7849:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(2416),i=p(3410);function u(b){i.z.setTimeout(()=>{const{onUnhandledError:a}=e.v;if(!a)throw b;a(b)})}},4532:(He,j,p)=>{"use strict";function e(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(j,{z:()=>e})},3502:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var h in a)y[h]=a[h]}function b(a,y,h){return i(a,y,h)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),u(i,b),b.from=function(a,y,h){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,h)},b.alloc=function(a,y,h){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2038:(He,j,p)=>{"use strict";var b,e=p(3172),i=e.Buffer,u={};for(b in e)!e.hasOwnProperty(b)||"SlowBuffer"===b||"Buffer"===b||(u[b]=e[b]);var a=u.Buffer={};for(b in i)!i.hasOwnProperty(b)||"allocUnsafe"===b||"allocUnsafeSlow"===b||(a[b]=i[b]);if(u.Buffer.prototype=i.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(y,h,P){if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&void 0===y.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return i(y,h,P)}),a.alloc||(a.alloc=function(y,h,P){if("number"!=typeof y)throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var D=i(y);return h&&0!==h.length?"string"==typeof P?D.fill(h,P):D.fill(h):D.fill(0),D}),!u.kStringMaxLength)try{u.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(y){}u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),He.exports=u},6692:(He,j,p)=>{var e=p(3502).Buffer;function i(u,b){this._block=e.alloc(u),this._finalSize=b,this._blockSize=u,this._len=0}i.prototype.update=function(u,b){"string"==typeof u&&(u=e.from(u,b=b||"utf8"));for(var a=this._block,y=this._blockSize,h=u.length,P=this._len,D=0;D=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var y=(4294967295&a)>>>0;this._block.writeUInt32BE((a-y)/4294967296,this._blockSize-8),this._block.writeUInt32BE(y,this._blockSize-4)}this._update(this._block);var P=this._hash();return u?P.toString(u):P},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},He.exports=i},5244:(He,j,p)=>{var e=He.exports=function(u){u=u.toLowerCase();var b=e[u];if(!b)throw new Error(u+" is not supported (we accept pull requests)");return new b};e.sha=p(8932),e.sha1=p(7736),e.sha224=p(5044),e.sha256=p(5014),e.sha384=p(6540),e.sha512=p(117)},8932:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function h(T){return T<<5|T>>>27}function P(T){return T<<30|T>>>2}function D(T,M,A,E){return 0===T?M&A|~M&E:2===T?M&A|M&E|A&E:M^A^E}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(T){for(var M=this._w,A=0|this._a,E=0|this._b,k=0|this._c,w=0|this._d,V=0|this._e,U=0;U<16;++U)M[U]=T.readInt32BE(4*U);for(;U<80;++U)M[U]=M[U-3]^M[U-8]^M[U-14]^M[U-16];for(var Y=0;Y<80;++Y){var ae=~~(Y/20),X=h(A)+D(ae,E,k,w)+V+M[Y]+b[ae]|0;V=w,w=k,k=P(E),E=A,A=X}this._a=A+this._a|0,this._b=E+this._b|0,this._c=k+this._c|0,this._d=w+this._d|0,this._e=V+this._e|0},y.prototype._hash=function(){var T=u.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},He.exports=y},7736:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function h(M){return M<<1|M>>>31}function P(M){return M<<5|M>>>27}function D(M){return M<<30|M>>>2}function T(M,A,E,k){return 0===M?A&E|~A&k:2===M?A&E|A&k|E&k:A^E^k}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(M){for(var A=this._w,E=0|this._a,k=0|this._b,w=0|this._c,V=0|this._d,U=0|this._e,Y=0;Y<16;++Y)A[Y]=M.readInt32BE(4*Y);for(;Y<80;++Y)A[Y]=h(A[Y-3]^A[Y-8]^A[Y-14]^A[Y-16]);for(var ae=0;ae<80;++ae){var X=~~(ae/20),de=P(E)+T(X,k,w,V)+U+A[ae]+b[X]|0;U=V,V=w,w=D(k),k=E,E=de}this._a=E+this._a|0,this._b=k+this._b|0,this._c=w+this._c|0,this._d=V+this._d|0,this._e=U+this._e|0},y.prototype._hash=function(){var M=u.allocUnsafe(20);return M.writeInt32BE(0|this._a,0),M.writeInt32BE(0|this._b,4),M.writeInt32BE(0|this._c,8),M.writeInt32BE(0|this._d,12),M.writeInt32BE(0|this._e,16),M},He.exports=y},5044:(He,j,p)=>{var e=p(3894),i=p(5014),u=p(6692),b=p(3502).Buffer,a=new Array(64);function y(){this.init(),this._w=a,u.call(this,64,56)}e(y,i),y.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},y.prototype._hash=function(){var h=b.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},He.exports=y},5014:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function y(){this.init(),this._w=a,i.call(this,64,56)}function h(E,k,w){return w^E&(k^w)}function P(E,k,w){return E&k|w&(E|k)}function D(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function T(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function M(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(y,i),y.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},y.prototype._update=function(E){for(var k=this._w,w=0|this._a,V=0|this._b,U=0|this._c,Y=0|this._d,ae=0|this._e,X=0|this._f,de=0|this._g,q=0|this._h,re=0;re<16;++re)k[re]=E.readInt32BE(4*re);for(;re<64;++re)k[re]=A(k[re-2])+k[re-7]+M(k[re-15])+k[re-16]|0;for(var le=0;le<64;++le){var ee=q+T(ae)+h(ae,X,de)+b[le]+k[le]|0,_e=D(w)+P(w,V,U)|0;q=de,de=X,X=ae,ae=Y+ee|0,Y=U,U=V,V=w,w=ee+_e|0}this._a=w+this._a|0,this._b=V+this._b|0,this._c=U+this._c|0,this._d=Y+this._d|0,this._e=ae+this._e|0,this._f=X+this._f|0,this._g=de+this._g|0,this._h=q+this._h|0},y.prototype._hash=function(){var E=u.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},He.exports=y},6540:(He,j,p)=>{var e=p(3894),i=p(117),u=p(6692),b=p(3502).Buffer,a=new Array(160);function y(){this.init(),this._w=a,u.call(this,128,112)}e(y,i),y.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},y.prototype._hash=function(){var h=b.allocUnsafe(48);function P(D,T,M){h.writeInt32BE(D,M),h.writeInt32BE(T,M+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),h},He.exports=y},117:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function y(){this.init(),this._w=a,i.call(this,128,112)}function h(V,U,Y){return Y^V&(U^Y)}function P(V,U,Y){return V&U|Y&(V|U)}function D(V,U){return(V>>>28|U<<4)^(U>>>2|V<<30)^(U>>>7|V<<25)}function T(V,U){return(V>>>14|U<<18)^(V>>>18|U<<14)^(U>>>9|V<<23)}function M(V,U){return(V>>>1|U<<31)^(V>>>8|U<<24)^V>>>7}function A(V,U){return(V>>>1|U<<31)^(V>>>8|U<<24)^(V>>>7|U<<25)}function E(V,U){return(V>>>19|U<<13)^(U>>>29|V<<3)^V>>>6}function k(V,U){return(V>>>19|U<<13)^(U>>>29|V<<3)^(V>>>6|U<<26)}function w(V,U){return V>>>0>>0?1:0}e(y,i),y.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},y.prototype._update=function(V){for(var U=this._w,Y=0|this._ah,ae=0|this._bh,X=0|this._ch,de=0|this._dh,q=0|this._eh,re=0|this._fh,le=0|this._gh,ee=0|this._hh,_e=0|this._al,x=0|this._bl,t=0|this._cl,r=0|this._dl,d=0|this._el,c=0|this._fl,g=0|this._gl,S=0|this._hl,I=0;I<32;I+=2)U[I]=V.readInt32BE(4*I),U[I+1]=V.readInt32BE(4*I+4);for(;I<160;I+=2){var C=U[I-30],n=U[I-30+1],_=M(C,n),B=A(n,C),R=E(C=U[I-4],n=U[I-4+1]),H=k(n,C),te=U[I-32],Te=U[I-32+1],Ee=B+U[I-14+1]|0,ne=_+U[I-14]+w(Ee,B)|0;ne=(ne=ne+R+w(Ee=Ee+H|0,H)|0)+te+w(Ee=Ee+Te|0,Te)|0,U[I]=ne,U[I+1]=Ee}for(var ze=0;ze<160;ze+=2){ne=U[ze],Ee=U[ze+1];var be=P(Y,ae,X),$=P(_e,x,t),ke=D(Y,_e),lt=D(_e,Y),W=T(q,d),De=T(d,q),he=b[ze],Ae=b[ze+1],xe=h(q,re,le),G=h(d,c,g),ie=S+De|0,pe=ee+W+w(ie,S)|0;pe=(pe=(pe=pe+xe+w(ie=ie+G|0,G)|0)+he+w(ie=ie+Ae|0,Ae)|0)+ne+w(ie=ie+Ee|0,Ee)|0;var ye=lt+$|0,Le=ke+be+w(ye,lt)|0;ee=le,S=g,le=re,g=c,re=q,c=d,q=de+pe+w(d=r+ie|0,r)|0,de=X,r=t,X=ae,t=x,ae=Y,x=_e,Y=pe+Le+w(_e=ie+ye|0,ie)|0}this._al=this._al+_e|0,this._bl=this._bl+x|0,this._cl=this._cl+t|0,this._dl=this._dl+r|0,this._el=this._el+d|0,this._fl=this._fl+c|0,this._gl=this._gl+g|0,this._hl=this._hl+S|0,this._ah=this._ah+Y+w(this._al,_e)|0,this._bh=this._bh+ae+w(this._bl,x)|0,this._ch=this._ch+X+w(this._cl,t)|0,this._dh=this._dh+de+w(this._dl,r)|0,this._eh=this._eh+q+w(this._el,d)|0,this._fh=this._fh+re+w(this._fl,c)|0,this._gh=this._gh+le+w(this._gl,g)|0,this._hh=this._hh+ee+w(this._hl,S)|0},y.prototype._hash=function(){var V=u.allocUnsafe(64);function U(Y,ae,X){V.writeInt32BE(Y,X),V.writeInt32BE(ae,X+4)}return U(this._ah,this._al,0),U(this._bh,this._bl,8),U(this._ch,this._cl,16),U(this._dh,this._dl,24),U(this._eh,this._el,32),U(this._fh,this._fl,40),U(this._gh,this._gl,48),U(this._hh,this._hl,56),V},He.exports=y},8012:function(He,j,p){!function(e){"use strict";var i={};He.exports?(i.bytesToHex=p(6128).bytesToHex,i.convertString=p(5612),He.exports=P):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=P);var u=[];!function(){function D(E){for(var k=Math.sqrt(E),w=2;w<=k;w++)if(!(E%w))return!1;return!0}for(var M=2,A=0;A<64;)D(M)&&(u[A]=4294967296*((E=Math.pow(M,1/3))-(0|E))|0,A++),M++;var E}();var y=[],h=function(D,T,M){for(var A=D[0],E=D[1],k=D[2],w=D[3],V=D[4],U=D[5],Y=D[6],ae=D[7],X=0;X<64;X++){if(X<16)y[X]=0|T[M+X];else{var de=y[X-15],re=y[X-2];y[X]=((de<<25|de>>>7)^(de<<14|de>>>18)^de>>>3)+y[X-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+y[X-16]}var _e=A&E^A&k^E&k,r=ae+((V<<26|V>>>6)^(V<<21|V>>>11)^(V<<7|V>>>25))+(V&U^~V&Y)+u[X]+y[X];ae=Y,Y=U,U=V,V=w+r|0,w=k,k=E,E=A,A=r+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+_e)|0}D[0]=D[0]+A|0,D[1]=D[1]+E|0,D[2]=D[2]+k|0,D[3]=D[3]+w|0,D[4]=D[4]+V|0,D[5]=D[5]+U|0,D[6]=D[6]+Y|0,D[7]=D[7]+ae|0};function P(D,T){D.constructor===String&&(D=i.convertString.UTF8.stringToBytes(D));var M=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(D){for(var T=[],M=0,A=0;M>>5]|=D[M]<<24-A%32;return T}(D),E=8*D.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var k=0;k>>5]>>>24-M%32&255);return T}(M);return T&&T.asBytes?w:T&&T.asString?i.convertString.bytesToString(w):i.bytesToHex(w)}P.x2=function(D,T){return P(P(D,{asBytes:!0}),T)}}(this)},4315:(He,j,p)=>{"use strict";const e=Symbol.prototype.valueOf,i=p(2872);He.exports=function u(D,T){switch(i(D)){case"array":return D.slice();case"object":return Object.assign({},D);case"date":return new D.constructor(Number(D));case"map":return new Map(D);case"set":return new Set(D);case"buffer":return function h(D){const T=D.length,M=Buffer.allocUnsafe?Buffer.allocUnsafe(T):Buffer.from(T);return D.copy(M),M}(D);case"symbol":return function P(D){return e?Object(e.call(D)):{}}(D);case"arraybuffer":return function a(D){const T=new D.constructor(D.byteLength);return new Uint8Array(T).set(new Uint8Array(D)),T}(D);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function y(D,T){return new D.constructor(D.buffer,D.byteOffset,D.length)}(D);case"regexp":return function b(D){const T=void 0!==D.flags?D.flags:/\w+$/.exec(D)||void 0,M=new D.constructor(D.source,T);return M.lastIndex=D.lastIndex,M}(D);case"error":return Object.create(D);default:return D}}},295:(He,j,p)=>{He.exports=u;var e=p(9069).EventEmitter;function u(){e.call(this)}p(3894)(u,e),u.Readable=p(3154),u.Writable=p(520),u.Duplex=p(1339),u.Transform=p(6025),u.PassThrough=p(6071),u.finished=p(7542),u.pipeline=p(954),u.Stream=u,u.prototype.pipe=function(b,a){var y=this;function h(k){b.writable&&!1===b.write(k)&&y.pause&&y.pause()}function P(){y.readable&&y.resume&&y.resume()}y.on("data",h),b.on("drain",P),!b._isStdio&&(!a||!1!==a.end)&&(y.on("end",T),y.on("close",M));var D=!1;function T(){D||(D=!0,b.end())}function M(){D||(D=!0,"function"==typeof b.destroy&&b.destroy())}function A(k){if(E(),0===e.listenerCount(this,"error"))throw k}function E(){y.removeListener("data",h),b.removeListener("drain",P),y.removeListener("end",T),y.removeListener("close",M),y.removeListener("error",A),b.removeListener("error",A),y.removeListener("end",E),y.removeListener("close",E),b.removeListener("close",E)}return y.on("error",A),b.on("error",A),y.on("end",E),y.on("close",E),b.on("close",E),b.emit("pipe",y),b}},3054:(He,j,p)=>{"use strict";var e=p(858).Buffer,i=e.isEncoding||function(Y){switch((Y=""+Y)&&Y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(Y){var ae;switch(this.encoding=function b(Y){var ae=function u(Y){if(!Y)return"utf8";for(var ae;;)switch(Y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Y;default:if(ae)return;Y=(""+Y).toLowerCase(),ae=!0}}(Y);if("string"!=typeof ae&&(e.isEncoding===i||!i(Y)))throw new Error("Unknown encoding: "+Y);return ae||Y}(Y),this.encoding){case"utf16le":this.text=A,this.end=E,ae=4;break;case"utf8":this.fillLast=D,ae=4;break;case"base64":this.text=k,this.end=w,ae=3;break;default:return this.write=V,void(this.end=U)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ae)}function y(Y){return Y<=127?0:Y>>5==6?2:Y>>4==14?3:Y>>3==30?4:Y>>6==2?-1:-2}function D(Y){var ae=this.lastTotal-this.lastNeed,X=function P(Y,ae,X){if(128!=(192&ae[0]))return Y.lastNeed=0,"\ufffd";if(Y.lastNeed>1&&ae.length>1){if(128!=(192&ae[1]))return Y.lastNeed=1,"\ufffd";if(Y.lastNeed>2&&ae.length>2&&128!=(192&ae[2]))return Y.lastNeed=2,"\ufffd"}}(this,Y);return void 0!==X?X:this.lastNeed<=Y.length?(Y.copy(this.lastChar,ae,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Y.copy(this.lastChar,ae,0,Y.length),void(this.lastNeed-=Y.length))}function A(Y,ae){if((Y.length-ae)%2==0){var X=Y.toString("utf16le",ae);if(X){var de=X.charCodeAt(X.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1],X.slice(0,-1)}return X}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Y[Y.length-1],Y.toString("utf16le",ae,Y.length-1)}function E(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ae}function k(Y,ae){var X=(Y.length-ae)%3;return 0===X?Y.toString("base64",ae):(this.lastNeed=3-X,this.lastTotal=3,1===X?this.lastChar[0]=Y[Y.length-1]:(this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1]),Y.toString("base64",ae,Y.length-X))}function w(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("base64",0,3-this.lastNeed):ae}function V(Y){return Y.toString(this.encoding)}function U(Y){return Y&&Y.length?this.write(Y):""}j.s=a,a.prototype.write=function(Y){if(0===Y.length)return"";var ae,X;if(this.lastNeed){if(void 0===(ae=this.fillLast(Y)))return"";X=this.lastNeed,this.lastNeed=0}else X=0;return X=0?(q>0&&(Y.lastNeed=q-1),q):--de=0?(q>0&&(Y.lastNeed=q-2),q):--de=0?(q>0&&(2===q?q=0:Y.lastNeed=q-3),q):0}(this,Y,ae);if(!this.lastNeed)return Y.toString("utf8",ae);this.lastTotal=X;var de=Y.length-(X-this.lastNeed);return Y.copy(this.lastChar,0,de),Y.toString("utf8",ae,de)},a.prototype.fillLast=function(Y){if(this.lastNeed<=Y.length)return Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Y.length),this.lastNeed-=Y.length}},858:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var h in a)y[h]=a[h]}function b(a,y,h){return i(a,y,h)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,h){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,h)},b.alloc=function(a,y,h){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof h?P.fill(y,h):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2167:(He,j,p)=>{var e=p(4606);j.encode=e.encode,j.decode=e.decode},4606:(He,j)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];j.encode=function(u){Buffer.isBuffer(u)||(u=new Buffer(u));for(var b=0,a=0,y=0,h=0,P=new Buffer(8*function i(u){var b=Math.floor(u.length/5);return u.length%5==0?b:b+1}(u));b3?(h=(h=D&255>>y)<<(y=(y+5)%8)|(b+1>8-y,b++):(h=D>>8-(y+5)&31,0==(y=(y+5)%8)&&b++),P[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(h),a++}for(b=a;b>>(b=(b+5)%8),h++,y=255&a<<8-b)}return P.slice(0,h)}},4364:He=>{function p(e){try{if(!global.localStorage)return!1}catch(u){return!1}var i=global.localStorage[e];return null!=i&&"true"===String(i).toLowerCase()}He.exports=function j(e,i){if(p("noDeprecation"))return e;var u=!1;return function b(){if(!u){if(p("throwDeprecation"))throw new Error(i);p("traceDeprecation")?console.trace(i):console.warn(i),u=!0}return e.apply(this,arguments)}}},655:(He,j,p)=>{"use strict";function a(t,r,d,c){var I,g=arguments.length,S=g<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,d):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(t,r,d,c);else for(var C=t.length-1;C>=0;C--)(I=t[C])&&(S=(g<3?I(S):g>3?I(r,d,S):I(r,d))||S);return g>3&&S&&Object.defineProperty(r,d,S),S}function P(t,r,d,c){return new(d||(d=Promise))(function(S,I){function C(B){try{_(c.next(B))}catch(R){I(R)}}function n(B){try{_(c.throw(B))}catch(R){I(R)}}function _(B){B.done?S(B.value):function g(S){return S instanceof d?S:new d(function(I){I(S)})}(B.value).then(C,n)}_((c=c.apply(t,r||[])).next())})}function U(t){return this instanceof U?(this.v=t,this):new U(t)}function Y(t,r,d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g,c=d.apply(t,r||[]),S=[];return g={},I("next"),I("throw"),I("return"),g[Symbol.asyncIterator]=function(){return this},g;function I(H){c[H]&&(g[H]=function(Q){return new Promise(function(Z,te){S.push([H,Q,Z,te])>1||C(H,Q)})})}function C(H,Q){try{!function n(H){H.value instanceof U?Promise.resolve(H.value.v).then(_,B):R(S[0][2],H)}(c[H](Q))}catch(Z){R(S[0][3],Z)}}function _(H){C("next",H)}function B(H){C("throw",H)}function R(H,Q){H(Q),S.shift(),S.length&&C(S[0][0],S[0][1])}}function X(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function A(t){var r="function"==typeof Symbol&&Symbol.iterator,d=r&&t[r],c=0;if(d)return d.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),d={},c("next"),c("throw"),c("return"),d[Symbol.asyncIterator]=function(){return this},d);function c(S){d[S]=t[S]&&function(I){return new Promise(function(C,n){!function g(S,I,C,n){Promise.resolve(n).then(function(_){S({value:_,done:C})},I)}(C,n,(I=t[S](I)).done,I.value)})}}}p.d(j,{FC:()=>Y,KL:()=>X,gn:()=>a,mG:()=>P,qq:()=>U})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(He,j,p)=>{"use strict";p.d(j,{F4:()=>T,IO:()=>w,LC:()=>i,SB:()=>D,X$:()=>b,ZE:()=>ae,ZN:()=>Y,_j:()=>e,eR:()=>M,jt:()=>a,k1:()=>X,l3:()=>u,oB:()=>P,pV:()=>E,ru:()=>y,vP:()=>h});class e{}class i{}const u="*";function b(de,q){return{type:7,name:de,definitions:q,options:{}}}function a(de,q=null){return{type:4,styles:q,timings:de}}function y(de,q=null){return{type:3,steps:de,options:q}}function h(de,q=null){return{type:2,steps:de,options:q}}function P(de){return{type:6,styles:de,offset:null}}function D(de,q,re){return{type:0,name:de,styles:q,options:re}}function T(de){return{type:5,steps:de}}function M(de,q,re=null){return{type:1,expr:de,animation:q,options:re}}function E(de=null){return{type:9,options:de}}function w(de,q,re=null){return{type:11,selector:de,animation:q,options:re}}function U(de){Promise.resolve(null).then(de)}class Y{constructor(q=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=q+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._onStartFns.push(q)}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const re="start"==q?this._onStartFns:this._onDoneFns;re.forEach(le=>le()),re.length=0}}class ae{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let re=0,le=0,ee=0;const _e=this.players.length;0==_e?U(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++re==_e&&this._onFinish()}),x.onDestroy(()=>{++le==_e&&this._onDestroy()}),x.onStart(()=>{++ee==_e&&this._onStart()})}),this.totalTime=this.players.reduce((x,t)=>Math.max(x,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const re=q*this.totalTime;this.players.forEach(le=>{const ee=le.totalTime?Math.min(1,re/le.totalTime):1;le.setPosition(ee)})}getPosition(){const q=this.players.reduce((re,le)=>null===re||le.totalTime>re.totalTime?le:re,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const re="start"==q?this._onStartFns:this._onDoneFns;re.forEach(le=>le()),re.length=0}}const X="!"},5664:(He,j,p)=>{"use strict";p.d(j,{$s:()=>x,Em:()=>g,Kd:()=>hi,X6:()=>Ae,ic:()=>I,kH:()=>kt,mK:()=>$,qV:()=>be,qm:()=>ei,rt:()=>Kt,s1:()=>c,tE:()=>vt,yG:()=>xe});var e=p(9808),i=p(5e3),u=p(925),b=p(7579),a=p(727),y=p(1135),h=p(9646),P=p(1159),D=p(8505),T=p(8372),M=p(9300),A=p(4004),E=p(5698),k=p(5684),w=p(1884),V=p(2722),U=p(3191),Y=p(7144);function q(Pe,Ie){return(Pe.getAttribute(Ie)||"").match(/\S+/g)||[]}const le="cdk-describedby-message",ee="cdk-describedby-host";let _e=0,x=(()=>{class Pe{constructor(ce,Me){this._platform=Me,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+_e++,this._document=ce}describe(ce,Me,ut){if(!this._canBeDescribed(ce,Me))return;const ft=t(Me,ut);"string"!=typeof Me?(r(Me),this._messageRegistry.set(ft,{messageElement:Me,referenceCount:0})):this._messageRegistry.has(ft)||this._createMessageElement(Me,ut),this._isElementDescribedByMessage(ce,ft)||this._addMessageReference(ce,ft)}removeDescription(ce,Me,ut){var ft;if(!Me||!this._isElementNode(ce))return;const Rt=t(Me,ut);if(this._isElementDescribedByMessage(ce,Rt)&&this._removeMessageReference(ce,Rt),"string"==typeof Me){const et=this._messageRegistry.get(Rt);et&&0===et.referenceCount&&this._deleteMessageElement(Rt)}0===(null===(ft=this._messagesContainer)||void 0===ft?void 0:ft.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var ce;const Me=this._document.querySelectorAll(`[${ee}="${this._id}"]`);for(let ut=0;ut0!=ut.indexOf(le));ce.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(ce,Me){const ut=this._messageRegistry.get(Me);(function X(Pe,Ie,ce){const Me=q(Pe,Ie);Me.some(ut=>ut.trim()==ce.trim())||(Me.push(ce.trim()),Pe.setAttribute(Ie,Me.join(" ")))})(ce,"aria-describedby",ut.messageElement.id),ce.setAttribute(ee,this._id),ut.referenceCount++}_removeMessageReference(ce,Me){const ut=this._messageRegistry.get(Me);ut.referenceCount--,function de(Pe,Ie,ce){const ut=q(Pe,Ie).filter(ft=>ft!=ce.trim());ut.length?Pe.setAttribute(Ie,ut.join(" ")):Pe.removeAttribute(Ie)}(ce,"aria-describedby",ut.messageElement.id),ce.removeAttribute(ee)}_isElementDescribedByMessage(ce,Me){const ut=q(ce,"aria-describedby"),ft=this._messageRegistry.get(Me),Rt=ft&&ft.messageElement.id;return!!Rt&&-1!=ut.indexOf(Rt)}_canBeDescribed(ce,Me){if(!this._isElementNode(ce))return!1;if(Me&&"object"==typeof Me)return!0;const ut=null==Me?"":`${Me}`.trim(),ft=ce.getAttribute("aria-label");return!(!ut||ft&&ft.trim()===ut)}_isElementNode(ce){return ce.nodeType===this._document.ELEMENT_NODE}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(e.K0),i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function t(Pe,Ie){return"string"==typeof Pe?`${Ie||""}/${Pe}`:Pe}function r(Pe){Pe.id||(Pe.id=`${le}-${_e++}`)}class d{constructor(Ie){this._items=Ie,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new b.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ce=>ce.disabled,this._pressedLetters=[],this.tabOut=new b.x,this.change=new b.x,Ie instanceof i.n_E&&Ie.changes.subscribe(ce=>{if(this._activeItem){const ut=ce.toArray().indexOf(this._activeItem);ut>-1&&ut!==this._activeItemIndex&&(this._activeItemIndex=ut)}})}skipPredicate(Ie){return this._skipPredicateFn=Ie,this}withWrap(Ie=!0){return this._wrap=Ie,this}withVerticalOrientation(Ie=!0){return this._vertical=Ie,this}withHorizontalOrientation(Ie){return this._horizontal=Ie,this}withAllowedModifierKeys(Ie){return this._allowedModifierKeys=Ie,this}withTypeAhead(Ie=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(ce=>this._pressedLetters.push(ce)),(0,T.b)(Ie),(0,M.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(ce=>{const Me=this._getItemsArray();for(let ut=1;ut!Ie[ft]||this._allowedModifierKeys.indexOf(ft)>-1);switch(ce){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&ut){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&ut){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&ut){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&ut){this.setLastItemActive();break}return;default:return void((ut||(0,P.Vb)(Ie,"shiftKey"))&&(Ie.key&&1===Ie.key.length?this._letterKeyStream.next(Ie.key.toLocaleUpperCase()):(ce>=P.A&&ce<=P.Z||ce>=P.xE&&ce<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(ce))))}this._pressedLetters=[],Ie.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ie){const ce=this._getItemsArray(),Me="number"==typeof Ie?Ie:ce.indexOf(Ie),ut=ce[Me];this._activeItem=null==ut?null:ut,this._activeItemIndex=Me}_setActiveItemByDelta(Ie){this._wrap?this._setActiveInWrapMode(Ie):this._setActiveInDefaultMode(Ie)}_setActiveInWrapMode(Ie){const ce=this._getItemsArray();for(let Me=1;Me<=ce.length;Me++){const ut=(this._activeItemIndex+Ie*Me+ce.length)%ce.length;if(!this._skipPredicateFn(ce[ut]))return void this.setActiveItem(ut)}}_setActiveInDefaultMode(Ie){this._setActiveItemByIndex(this._activeItemIndex+Ie,Ie)}_setActiveItemByIndex(Ie,ce){const Me=this._getItemsArray();if(Me[Ie]){for(;this._skipPredicateFn(Me[Ie]);)if(!Me[Ie+=ce])return;this.setActiveItem(Ie)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class c extends d{setActiveItem(Ie){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ie),this.activeItem&&this.activeItem.setActiveStyles()}}class g extends d{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ie){return this._origin=Ie,this}setActiveItem(Ie){super.setActiveItem(Ie),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Pe{constructor(ce){this._platform=ce}isDisabled(ce){return ce.hasAttribute("disabled")}isVisible(ce){return function n(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||"function"==typeof Pe.getClientRects&&Pe.getClientRects().length)}(ce)&&"visible"===getComputedStyle(ce).visibility}isTabbable(ce){if(!this._platform.isBrowser)return!1;const Me=function C(Pe){try{return Pe.frameElement}catch(Ie){return null}}(function ne(Pe){return Pe.ownerDocument&&Pe.ownerDocument.defaultView||window}(ce));if(Me&&(-1===te(Me)||!this.isVisible(Me)))return!1;let ut=ce.nodeName.toLowerCase(),ft=te(ce);return ce.hasAttribute("contenteditable")?-1!==ft:!("iframe"===ut||"object"===ut||this._platform.WEBKIT&&this._platform.IOS&&!function Te(Pe){let Ie=Pe.nodeName.toLowerCase(),ce="input"===Ie&&Pe.type;return"text"===ce||"password"===ce||"select"===Ie||"textarea"===Ie}(ce))&&("audio"===ut?!!ce.hasAttribute("controls")&&-1!==ft:"video"===ut?-1!==ft&&(null!==ft||this._platform.FIREFOX||ce.hasAttribute("controls")):ce.tabIndex>=0)}isFocusable(ce,Me){return function Ee(Pe){return!function B(Pe){return function H(Pe){return"input"==Pe.nodeName.toLowerCase()}(Pe)&&"hidden"==Pe.type}(Pe)&&(function _(Pe){let Ie=Pe.nodeName.toLowerCase();return"input"===Ie||"select"===Ie||"button"===Ie||"textarea"===Ie}(Pe)||function R(Pe){return function Q(Pe){return"a"==Pe.nodeName.toLowerCase()}(Pe)&&Pe.hasAttribute("href")}(Pe)||Pe.hasAttribute("contenteditable")||Z(Pe))}(ce)&&!this.isDisabled(ce)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(ce))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function Z(Pe){if(!Pe.hasAttribute("tabindex")||void 0===Pe.tabIndex)return!1;let Ie=Pe.getAttribute("tabindex");return!(!Ie||isNaN(parseInt(Ie,10)))}function te(Pe){if(!Z(Pe))return null;const Ie=parseInt(Pe.getAttribute("tabindex")||"",10);return isNaN(Ie)?-1:Ie}class ze{constructor(Ie,ce,Me,ut,ft=!1){this._element=Ie,this._checker=ce,this._ngZone=Me,this._document=ut,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ft||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ie){this._enabled=Ie,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ie,this._startAnchor),this._toggleAnchorTabIndex(Ie,this._endAnchor))}destroy(){const Ie=this._startAnchor,ce=this._endAnchor;Ie&&(Ie.removeEventListener("focus",this.startAnchorListener),Ie.remove()),ce&&(ce.removeEventListener("focus",this.endAnchorListener),ce.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ie){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusInitialElement(Ie)))})}focusFirstTabbableElementWhenReady(Ie){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusFirstTabbableElement(Ie)))})}focusLastTabbableElementWhenReady(Ie){return new Promise(ce=>{this._executeOnStable(()=>ce(this.focusLastTabbableElement(Ie)))})}_getRegionBoundary(Ie){const ce=this._element.querySelectorAll(`[cdk-focus-region-${Ie}], [cdkFocusRegion${Ie}], [cdk-focus-${Ie}]`);return"start"==Ie?ce.length?ce[0]:this._getFirstTabbableElement(this._element):ce.length?ce[ce.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ie){const ce=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ce){if(!this._checker.isFocusable(ce)){const Me=this._getFirstTabbableElement(ce);return null==Me||Me.focus(Ie),!!Me}return ce.focus(Ie),!0}return this.focusFirstTabbableElement(Ie)}focusFirstTabbableElement(Ie){const ce=this._getRegionBoundary("start");return ce&&ce.focus(Ie),!!ce}focusLastTabbableElement(Ie){const ce=this._getRegionBoundary("end");return ce&&ce.focus(Ie),!!ce}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ie){if(this._checker.isFocusable(Ie)&&this._checker.isTabbable(Ie))return Ie;const ce=Ie.children;for(let Me=0;Me=0;Me--){const ut=ce[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ce[Me]):null;if(ut)return ut}return null}_createAnchor(){const Ie=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ie),Ie.classList.add("cdk-visually-hidden"),Ie.classList.add("cdk-focus-trap-anchor"),Ie.setAttribute("aria-hidden","true"),Ie}_toggleAnchorTabIndex(Ie,ce){Ie?ce.setAttribute("tabindex","0"):ce.removeAttribute("tabindex")}toggleAnchors(Ie){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ie,this._startAnchor),this._toggleAnchorTabIndex(Ie,this._endAnchor))}_executeOnStable(Ie){this._ngZone.isStable?Ie():this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(Ie)}}let be=(()=>{class Pe{constructor(ce,Me,ut){this._checker=ce,this._ngZone=Me,this._document=ut}create(ce,Me=!1){return new ze(ce,this._checker,this._ngZone,this._document,Me)}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(I),i.LFG(i.R0b),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),$=(()=>{class Pe{constructor(ce,Me,ut){this._elementRef=ce,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ce){this.focusTrap.enabled=(0,U.Ig)(ce)}get autoCapture(){return this._autoCapture}set autoCapture(ce){this._autoCapture=(0,U.Ig)(ce)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ce){const Me=ce.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,u.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.Y36(i.SBq),i.Y36(be),i.Y36(e.K0))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),Pe})();function Ae(Pe){return 0===Pe.buttons||0===Pe.offsetX&&0===Pe.offsetY}function xe(Pe){const Ie=Pe.touches&&Pe.touches[0]||Pe.changedTouches&&Pe.changedTouches[0];return!(!Ie||-1!==Ie.identifier||null!=Ie.radiusX&&1!==Ie.radiusX||null!=Ie.radiusY&&1!==Ie.radiusY)}const G=new i.OlP("cdk-input-modality-detector-options"),ie={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},ye=(0,u.i$)({passive:!0,capture:!0});let Le=(()=>{class Pe{constructor(ce,Me,ut,ft){this._platform=ce,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=Rt=>{var et,Re;(null===(Re=null===(et=this._options)||void 0===et?void 0:et.ignoreKeys)||void 0===Re?void 0:Re.some(Je=>Je===Rt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onMousedown=Rt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ae(Rt)?"keyboard":"mouse"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onTouchstart=Rt=>{xe(Rt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,u.sA)(Rt))},this._options=Object.assign(Object.assign({},ie),ft),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,w.x)()),ce.isBrowser&&Me.runOutsideAngular(()=>{ut.addEventListener("keydown",this._onKeydown,ye),ut.addEventListener("mousedown",this._onMousedown,ye),ut.addEventListener("touchstart",this._onTouchstart,ye)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ye),document.removeEventListener("mousedown",this._onMousedown,ye),document.removeEventListener("touchstart",this._onTouchstart,ye))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(u.t4),i.LFG(i.R0b),i.LFG(e.K0),i.LFG(G,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const ot=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ht(){return null}}),At=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let hi=(()=>{class Pe{constructor(ce,Me,ut,ft){this._ngZone=Me,this._defaultOptions=ft,this._document=ut,this._liveElement=ce||this._createLiveElement()}announce(ce,...Me){const ut=this._defaultOptions;let ft,Rt;return 1===Me.length&&"number"==typeof Me[0]?Rt=Me[0]:[ft,Rt]=Me,this.clear(),clearTimeout(this._previousTimeout),ft||(ft=ut&&ut.politeness?ut.politeness:"polite"),null==Rt&&ut&&(Rt=ut.duration),this._liveElement.setAttribute("aria-live",ft),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(et=>this._currentResolve=et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ce,"number"==typeof Rt&&(this._previousTimeout=setTimeout(()=>this.clear(),Rt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ce,Me;clearTimeout(this._previousTimeout),null===(ce=this._liveElement)||void 0===ce||ce.remove(),this._liveElement=null,null===(Me=this._currentResolve)||void 0===Me||Me.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ce="cdk-live-announcer-element",Me=this._document.getElementsByClassName(ce),ut=this._document.createElement("div");for(let ft=0;ft{class Pe{constructor(ce,Me,ut,ft,Rt){this._ngZone=ce,this._platform=Me,this._inputModalityDetector=ut,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new b.x,this._rootNodeFocusAndBlurListener=et=>{const Re=(0,u.sA)(et),Je="focus"===et.type?this._onFocus:this._onBlur;for(let Ke=Re;Ke;Ke=Ke.parentElement)Je.call(this,et,Ke)},this._document=ft,this._detectionMode=(null==Rt?void 0:Rt.detectionMode)||0}monitor(ce,Me=!1){const ut=(0,U.fI)(ce);if(!this._platform.isBrowser||1!==ut.nodeType)return(0,h.of)(null);const ft=(0,u.kV)(ut)||this._getDocument(),Rt=this._elementInfo.get(ut);if(Rt)return Me&&(Rt.checkChildren=!0),Rt.subject;const et={checkChildren:Me,subject:new b.x,rootNode:ft};return this._elementInfo.set(ut,et),this._registerGlobalListeners(et),et.subject}stopMonitoring(ce){const Me=(0,U.fI)(ce),ut=this._elementInfo.get(Me);ut&&(ut.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(ut))}focusVia(ce,Me,ut){const ft=(0,U.fI)(ce);ft===this._getDocument().activeElement?this._getClosestElementsInfo(ft).forEach(([et,Re])=>this._originChanged(et,Me,Re)):(this._setOrigin(Me),"function"==typeof ft.focus&&ft.focus(ut))}ngOnDestroy(){this._elementInfo.forEach((ce,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ce){return 1===this._detectionMode||!!(null==ce?void 0:ce.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ce,Me){ce.classList.toggle("cdk-focused",!!Me),ce.classList.toggle("cdk-touch-focused","touch"===Me),ce.classList.toggle("cdk-keyboard-focused","keyboard"===Me),ce.classList.toggle("cdk-mouse-focused","mouse"===Me),ce.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(ce,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ce,this._originFromTouchInteraction="touch"===ce&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ce,Me){const ut=this._elementInfo.get(Me),ft=(0,u.sA)(ce);!ut||!ut.checkChildren&&Me!==ft||this._originChanged(Me,this._getFocusOrigin(ft),ut)}_onBlur(ce,Me){const ut=this._elementInfo.get(Me);!ut||ut.checkChildren&&ce.relatedTarget instanceof Node&&Me.contains(ce.relatedTarget)||(this._setClasses(Me),this._emitOrigin(ut.subject,null))}_emitOrigin(ce,Me){this._ngZone.run(()=>ce.next(Me))}_registerGlobalListeners(ce){if(!this._platform.isBrowser)return;const Me=ce.rootNode,ut=this._rootNodeFocusListenerCount.get(Me)||0;ut||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,di)}),this._rootNodeFocusListenerCount.set(Me,ut+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(ft=>{this._setOrigin(ft,!0)}))}_removeGlobalListeners(ce){const Me=ce.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const ut=this._rootNodeFocusListenerCount.get(Me);ut>1?this._rootNodeFocusListenerCount.set(Me,ut-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,di),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ce,Me,ut){this._setClasses(ce,Me),this._emitOrigin(ut.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(ce){const Me=[];return this._elementInfo.forEach((ut,ft)=>{(ft===ce||ut.checkChildren&&ft.contains(ce))&&Me.push([ft,ut])}),Me}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(i.R0b),i.LFG(u.t4),i.LFG(Le),i.LFG(e.K0,8),i.LFG(Gt,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),kt=(()=>{class Pe{constructor(ce,Me){this._elementRef=ce,this._focusMonitor=Me,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const ce=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ce,1===ce.nodeType&&ce.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.Y36(i.SBq),i.Y36(vt))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Pe})();const mt="cdk-high-contrast-black-on-white",Xe="cdk-high-contrast-white-on-black",_t="cdk-high-contrast-active";let ei=(()=>{class Pe{constructor(ce,Me){this._platform=ce,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ce=this._document.createElement("div");ce.style.backgroundColor="rgb(1,2,3)",ce.style.position="absolute",this._document.body.appendChild(ce);const Me=this._document.defaultView||window,ut=Me&&Me.getComputedStyle?Me.getComputedStyle(ce):null,ft=(ut&&ut.backgroundColor||"").replace(/ /g,"");switch(ce.remove(),ft){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ce=this._document.body.classList;ce.remove(_t),ce.remove(mt),ce.remove(Xe),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(ce.add(_t),ce.add(mt)):2===Me&&(ce.add(_t),ce.add(Xe))}}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(u.t4),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Kt=(()=>{class Pe{constructor(ce){ce._applyBodyHighContrastModeCssClasses()}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(i.LFG(ei))},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({imports:[[Y.Q8]]}),Pe})()},226:(He,j,p)=>{"use strict";p.d(j,{Is:()=>h,vT:()=>D});var e=p(5e3),i=p(9808);const u=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function b(){return(0,e.f3M)(i.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class T{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const k=A.documentElement?A.documentElement.dir:null;this.value=function y(T){const M=(null==T?void 0:T.toLowerCase())||"";return"auto"===M&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===M?"rtl":"ltr"}((A.body?A.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return T.\u0275fac=function(A){return new(A||T)(e.LFG(u,8))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({}),T})()},3191:(He,j,p)=>{"use strict";p.d(j,{Eq:()=>a,HM:()=>y,Ig:()=>i,du:()=>P,fI:()=>h,su:()=>u,t6:()=>b});var e=p(5e3);function i(D){return null!=D&&"false"!=`${D}`}function u(D,T=0){return b(D)?Number(D):T}function b(D){return!isNaN(parseFloat(D))&&!isNaN(Number(D))}function a(D){return Array.isArray(D)?D:[D]}function y(D){return null==D?"":"string"==typeof D?D:`${D}px`}function h(D){return D instanceof e.SBq?D.nativeElement:D}function P(D,T=/\s+/){const M=[];if(null!=D){const A=Array.isArray(D)?D:`${D}`.split(T);for(const E of A){const k=`${E}`.trim();k&&M.push(k)}}return M}},449:(He,j,p)=>{"use strict";p.d(j,{A8:()=>T,Ov:()=>P,Z9:()=>b,eX:()=>h,k:()=>M,o2:()=>u,yy:()=>y});var e=p(7579),i=p(5e3);class u{}function b(A){return A&&"function"==typeof A.connect}class y{applyChanges(E,k,w,V,U){E.forEachOperation((Y,ae,X)=>{let de,q;if(null==Y.previousIndex){const re=w(Y,ae,X);de=k.createEmbeddedView(re.templateRef,re.context,re.index),q=1}else null==X?(k.remove(ae),q=3):(de=k.get(ae),k.move(de,X),q=2);U&&U({context:null==de?void 0:de.context,operation:q,record:Y})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,k,w,V,U){E.forEachOperation((Y,ae,X)=>{let de,q;null==Y.previousIndex?(de=this._insertView(()=>w(Y,ae,X),X,k,V(Y)),q=de?1:0):null==X?(this._detachAndCacheView(ae,k),q=3):(de=this._moveView(ae,X,k,V(Y)),q=2),U&&U({context:null==de?void 0:de.context,operation:q,record:Y})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,k,w,V){const U=this._insertViewFromCache(k,w);if(U)return void(U.context.$implicit=V);const Y=E();return w.createEmbeddedView(Y.templateRef,Y.context,Y.index)}_detachAndCacheView(E,k){const w=k.detach(E);this._maybeCacheView(w,k)}_moveView(E,k,w,V){const U=w.get(E);return w.move(U,k),U.context.$implicit=V,U}_maybeCacheView(E,k){if(this._viewCache.lengththis._markSelected(V)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}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(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let T=(()=>{class A{constructor(){this._listeners=[]}notify(k,w){for(let V of this._listeners)V(k,w)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(w=>k!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(k){return new(k||A)},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const M=new i.OlP("_ViewRepeater")},1159:(He,j,p)=>{"use strict";p.d(j,{A:()=>R,JH:()=>X,JU:()=>y,K5:()=>a,Ku:()=>E,LH:()=>Y,L_:()=>A,MW:()=>hi,Mf:()=>u,SV:()=>ae,Sd:()=>V,VM:()=>k,Vb:()=>Nt,Z:()=>At,ZH:()=>i,aO:()=>I,b2:()=>qe,hY:()=>M,jx:()=>h,oh:()=>U,uR:()=>w,xE:()=>ee,yY:()=>le,zL:()=>P});const i=8,u=9,a=13,y=16,h=17,P=18,M=27,A=32,E=33,k=34,w=35,V=36,U=37,Y=38,ae=39,X=40,le=46,ee=48,I=57,R=65,At=90,hi=91,qe=224;function Nt($t,...pi){return pi.length?pi.some(Ri=>$t[Ri]):$t.altKey||$t.shiftKey||$t.ctrlKey||$t.metaKey}},5113:(He,j,p)=>{"use strict";p.d(j,{Yg:()=>X,u3:()=>q,xu:()=>k});var e=p(5e3),i=p(3191),u=p(7579),b=p(9841),a=p(7272),y=p(8306),h=p(5698),P=p(5684),D=p(8372),T=p(4004),M=p(8675),A=p(2722),E=p(925);let k=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})();const w=new Set;let V,U=(()=>{class re{constructor(ee){this._platform=ee,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ae}matchMedia(ee){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y(re){if(!w.has(re))try{V||(V=document.createElement("style"),V.setAttribute("type","text/css"),document.head.appendChild(V)),V.sheet&&(V.sheet.insertRule(`@media ${re} {body{ }}`,0),w.add(re))}catch(le){console.error(le)}}(ee),this._matchMedia(ee)}}return re.\u0275fac=function(ee){return new(ee||re)(e.LFG(E.t4))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ae(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let X=(()=>{class re{constructor(ee,_e){this._mediaMatcher=ee,this._zone=_e,this._queries=new Map,this._destroySubject=new u.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ee){return de((0,i.Eq)(ee)).some(x=>this._registerQuery(x).mql.matches)}observe(ee){const x=de((0,i.Eq)(ee)).map(r=>this._registerQuery(r).observable);let t=(0,b.a)(x);return t=(0,a.z)(t.pipe((0,h.q)(1)),t.pipe((0,P.T)(1),(0,D.b)(0))),t.pipe((0,T.U)(r=>{const d={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:g})=>{d.matches=d.matches||c,d.breakpoints[g]=c}),d}))}_registerQuery(ee){if(this._queries.has(ee))return this._queries.get(ee);const _e=this._mediaMatcher.matchMedia(ee),t={observable:new y.y(r=>{const d=c=>this._zone.run(()=>r.next(c));return _e.addListener(d),()=>{_e.removeListener(d)}}).pipe((0,M.O)(_e),(0,T.U)(({matches:r})=>({query:ee,matches:r})),(0,A.R)(this._destroySubject)),mql:_e};return this._queries.set(ee,t),t}}return re.\u0275fac=function(ee){return new(ee||re)(e.LFG(U),e.LFG(e.R0b))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function de(re){return re.map(le=>le.split(",")).reduce((le,ee)=>le.concat(ee)).map(le=>le.trim())}const q={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(He,j,p)=>{"use strict";p.d(j,{Q8:()=>D,wD:()=>P});var e=p(3191),i=p(5e3),u=p(8306),b=p(7579),a=p(8372);let y=(()=>{class T{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return T.\u0275fac=function(A){return new(A||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),h=(()=>{class T{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new u.y(k=>{const V=this._observeElement(E).subscribe(k);return()=>{V.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new b.x,k=this._mutationObserverFactory.create(w=>E.next(w));k&&k.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:k,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:k}=this._observedElements.get(A);E&&E.disconnect(),k.complete(),this._observedElements.delete(A)}}}return T.\u0275fac=function(A){return new(A||T)(i.LFG(y))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),P=(()=>{class T{constructor(A,E,k){this._contentObserver=A,this._elementRef=E,this._ngZone=k,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,a.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return T.\u0275fac=function(A){return new(A||T)(i.Y36(h),i.Y36(i.SBq),i.Y36(i.R0b))},T.\u0275dir=i.lG2({type:T,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:[y]}),T})()},9776:(He,j,p)=>{"use strict";p.d(j,{pI:()=>lt,xu:()=>ke,_G:()=>n,aV:()=>ze,X_:()=>_e,Xj:()=>S,U8:()=>he});var e=p(5303),i=p(9808),u=p(5e3),b=p(3191),a=p(925),y=p(226),h=p(7429),P=p(7579),D=p(727),T=p(6451),M=p(4482),A=p(5403),k=p(5698),w=p(2722),V=p(1159);const U=(0,a.Mq)();class Y{constructor(G,ie){this._viewportRuler=G,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ie}attach(){}enable(){if(this._canBeEnabled()){const G=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=G.style.left||"",this._previousHTMLStyles.top=G.style.top||"",G.style.left=(0,b.HM)(-this._previousScrollPosition.left),G.style.top=(0,b.HM)(-this._previousScrollPosition.top),G.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const G=this._document.documentElement,pe=G.style,ye=this._document.body.style,Le=pe.scrollBehavior||"",ot=ye.scrollBehavior||"";this._isEnabled=!1,pe.left=this._previousHTMLStyles.left,pe.top=this._previousHTMLStyles.top,G.classList.remove("cdk-global-scrollblock"),U&&(pe.scrollBehavior=ye.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),U&&(pe.scrollBehavior=Le,ye.scrollBehavior=ot)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ie=this._document.body,pe=this._viewportRuler.getViewportSize();return ie.scrollHeight>pe.height||ie.scrollWidth>pe.width}}class X{constructor(G,ie,pe,ye){this._scrollDispatcher=G,this._ngZone=ie,this._viewportRuler=pe,this._config=ye,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(G){this._overlayRef=G}enable(){if(this._scrollSubscription)return;const G=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=G.subscribe(()=>{const ie=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ie-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=G.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class de{enable(){}disable(){}attach(){}}function q(xe,G){return G.some(ie=>xe.bottomie.bottom||xe.rightie.right)}function re(xe,G){return G.some(ie=>xe.topie.bottom||xe.leftie.right)}class le{constructor(G,ie,pe,ye){this._scrollDispatcher=G,this._viewportRuler=ie,this._ngZone=pe,this._config=ye,this._scrollSubscription=null}attach(G){this._overlayRef=G}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ie=this._overlayRef.overlayElement.getBoundingClientRect(),{width:pe,height:ye}=this._viewportRuler.getViewportSize();q(ie,[{width:pe,height:ye,bottom:ye,right:pe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ee=(()=>{class xe{constructor(ie,pe,ye,Le){this._scrollDispatcher=ie,this._viewportRuler=pe,this._ngZone=ye,this.noop=()=>new de,this.close=ot=>new X(this._scrollDispatcher,this._ngZone,this._viewportRuler,ot),this.block=()=>new Y(this._viewportRuler,this._document),this.reposition=ot=>new le(this._scrollDispatcher,this._viewportRuler,this._ngZone,ot),this._document=Le}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(e.mF),u.LFG(e.rL),u.LFG(u.R0b),u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class _e{constructor(G){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,G){const ie=Object.keys(G);for(const pe of ie)void 0!==G[pe]&&(this[pe]=G[pe])}}}class r{constructor(G,ie){this.connectionPair=G,this.scrollableViewProperties=ie}}class g{constructor(G,ie,pe,ye,Le,ot,ht,At,hi){this._portalOutlet=G,this._host=ie,this._pane=pe,this._config=ye,this._ngZone=Le,this._keyboardDispatcher=ot,this._document=ht,this._location=At,this._outsideClickDispatcher=hi,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=D.w0.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._backdropTransitionendHandler=jt=>{this._disposeBackdrop(jt.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,ye.scrollStrategy&&(this._scrollStrategy=ye.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ye.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(G){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ie=this._portalOutlet.attach(G);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ie}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const G=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),G}dispose(){var G;const ie=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(G=this._host)||void 0===G||G.remove(),this._previousHostParent=this._pane=this._host=null,ie&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(G){G!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=G,this.hasAttached()&&(G.attach(this),this.updatePosition()))}updateSize(G){this._config=Object.assign(Object.assign({},this._config),G),this._updateElementSize()}setDirection(G){this._config=Object.assign(Object.assign({},this._config),{direction:G}),this._updateElementDirection()}addPanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!0)}removePanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!1)}getDirection(){const G=this._config.direction;return G?"string"==typeof G?G:G.value:"ltr"}updateScrollStrategy(G){G!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=G,this.hasAttached()&&(G.attach(this),G.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const G=this._pane.style;G.width=(0,b.HM)(this._config.width),G.height=(0,b.HM)(this._config.height),G.minWidth=(0,b.HM)(this._config.minWidth),G.minHeight=(0,b.HM)(this._config.minHeight),G.maxWidth=(0,b.HM)(this._config.maxWidth),G.maxHeight=(0,b.HM)(this._config.maxHeight)}_togglePointerEvents(G){this._pane.style.pointerEvents=G?"":"none"}_attachBackdrop(){const G="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(G)})}):this._backdropElement.classList.add(G)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const G=this._backdropElement;!G||(G.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{G.addEventListener("transitionend",this._backdropTransitionendHandler)}),G.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(G)},500)))}_toggleClasses(G,ie,pe){const ye=(0,b.Eq)(ie||[]).filter(Le=>!!Le);ye.length&&(pe?G.classList.add(...ye):G.classList.remove(...ye))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const G=this._ngZone.onStable.pipe((0,w.R)((0,T.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),G.unsubscribe())})})}_disposeScrollStrategy(){const G=this._scrollStrategy;G&&(G.disable(),G.detach&&G.detach())}_disposeBackdrop(G){G&&(G.removeEventListener("click",this._backdropClickHandler),G.removeEventListener("transitionend",this._backdropTransitionendHandler),G.remove(),this._backdropElement===G&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let S=(()=>{class xe{constructor(ie,pe){this._platform=pe,this._document=ie}ngOnDestroy(){var ie;null===(ie=this._containerElement)||void 0===ie||ie.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ie="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const ye=this._document.querySelectorAll(`.${ie}[platform="server"], .${ie}[platform="test"]`);for(let Le=0;Le{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const G=this._originRect,ie=this._overlayRect,pe=this._viewportRect,ye=this._containerRect,Le=[];let ot;for(let ht of this._preferredPositions){let At=this._getOriginPoint(G,ye,ht),hi=this._getOverlayPoint(At,ie,ht),jt=this._getOverlayFit(hi,ie,pe,ht);if(jt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ht,At);this._canFitWithFlexibleDimensions(jt,hi,pe)?Le.push({position:ht,origin:At,overlayRect:ie,boundingBoxRect:this._calculateBoundingBoxRect(At,ht)}):(!ot||ot.overlayFit.visibleAreaAt&&(At=jt,ht=hi)}return this._isPushed=!1,void this._applyPosition(ht.position,ht.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ot.position,ot.originPoint);this._applyPosition(ot.position,ot.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const G=this._lastPosition;if(G){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ie=this._getOriginPoint(this._originRect,this._containerRect,G);this._applyPosition(G,ie)}else this.apply()}withScrollableContainers(G){return this._scrollables=G,this}withPositions(G){return this._preferredPositions=G,-1===G.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(G){return this._viewportMargin=G,this}withFlexibleDimensions(G=!0){return this._hasFlexibleDimensions=G,this}withGrowAfterOpen(G=!0){return this._growAfterOpen=G,this}withPush(G=!0){return this._canPush=G,this}withLockedPosition(G=!0){return this._positionLocked=G,this}setOrigin(G){return this._origin=G,this}withDefaultOffsetX(G){return this._offsetX=G,this}withDefaultOffsetY(G){return this._offsetY=G,this}withTransformOriginOn(G){return this._transformOriginSelector=G,this}_getOriginPoint(G,ie,pe){let ye,Le;if("center"==pe.originX)ye=G.left+G.width/2;else{const ot=this._isRtl()?G.right:G.left,ht=this._isRtl()?G.left:G.right;ye="start"==pe.originX?ot:ht}return ie.left<0&&(ye-=ie.left),Le="center"==pe.originY?G.top+G.height/2:"top"==pe.originY?G.top:G.bottom,ie.top<0&&(Le-=ie.top),{x:ye,y:Le}}_getOverlayPoint(G,ie,pe){let ye,Le;return ye="center"==pe.overlayX?-ie.width/2:"start"===pe.overlayX?this._isRtl()?-ie.width:0:this._isRtl()?0:-ie.width,Le="center"==pe.overlayY?-ie.height/2:"top"==pe.overlayY?0:-ie.height,{x:G.x+ye,y:G.y+Le}}_getOverlayFit(G,ie,pe,ye){const Le=R(ie);let{x:ot,y:ht}=G,At=this._getOffset(ye,"x"),hi=this._getOffset(ye,"y");At&&(ot+=At),hi&&(ht+=hi);let di=0-ht,vt=ht+Le.height-pe.height,kt=this._subtractOverflows(Le.width,0-ot,ot+Le.width-pe.width),mt=this._subtractOverflows(Le.height,di,vt),Xe=kt*mt;return{visibleArea:Xe,isCompletelyWithinViewport:Le.width*Le.height===Xe,fitsInViewportVertically:mt===Le.height,fitsInViewportHorizontally:kt==Le.width}}_canFitWithFlexibleDimensions(G,ie,pe){if(this._hasFlexibleDimensions){const ye=pe.bottom-ie.y,Le=pe.right-ie.x,ot=B(this._overlayRef.getConfig().minHeight),ht=B(this._overlayRef.getConfig().minWidth),hi=G.fitsInViewportHorizontally||null!=ht&&ht<=Le;return(G.fitsInViewportVertically||null!=ot&&ot<=ye)&&hi}return!1}_pushOverlayOnScreen(G,ie,pe){if(this._previousPushAmount&&this._positionLocked)return{x:G.x+this._previousPushAmount.x,y:G.y+this._previousPushAmount.y};const ye=R(ie),Le=this._viewportRect,ot=Math.max(G.x+ye.width-Le.width,0),ht=Math.max(G.y+ye.height-Le.height,0),At=Math.max(Le.top-pe.top-G.y,0),hi=Math.max(Le.left-pe.left-G.x,0);let jt=0,Gt=0;return jt=ye.width<=Le.width?hi||-ot:G.xkt&&!this._isInitialRender&&!this._growAfterOpen&&(ot=G.y-kt/2)}if("end"===ie.overlayX&&!ye||"start"===ie.overlayX&&ye)di=pe.width-G.x+this._viewportMargin,jt=G.x-this._viewportMargin;else if("start"===ie.overlayX&&!ye||"end"===ie.overlayX&&ye)Gt=G.x,jt=pe.right-G.x;else{const vt=Math.min(pe.right-G.x+pe.left,G.x),kt=this._lastBoundingBoxSize.width;jt=2*vt,Gt=G.x-vt,jt>kt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=G.x-kt/2)}return{top:ot,left:Gt,bottom:ht,right:di,width:jt,height:Le}}_setBoundingBoxStyles(G,ie){const pe=this._calculateBoundingBoxRect(G,ie);!this._isInitialRender&&!this._growAfterOpen&&(pe.height=Math.min(pe.height,this._lastBoundingBoxSize.height),pe.width=Math.min(pe.width,this._lastBoundingBoxSize.width));const ye={};if(this._hasExactPosition())ye.top=ye.left="0",ye.bottom=ye.right=ye.maxHeight=ye.maxWidth="",ye.width=ye.height="100%";else{const Le=this._overlayRef.getConfig().maxHeight,ot=this._overlayRef.getConfig().maxWidth;ye.height=(0,b.HM)(pe.height),ye.top=(0,b.HM)(pe.top),ye.bottom=(0,b.HM)(pe.bottom),ye.width=(0,b.HM)(pe.width),ye.left=(0,b.HM)(pe.left),ye.right=(0,b.HM)(pe.right),ye.alignItems="center"===ie.overlayX?"center":"end"===ie.overlayX?"flex-end":"flex-start",ye.justifyContent="center"===ie.overlayY?"center":"bottom"===ie.overlayY?"flex-end":"flex-start",Le&&(ye.maxHeight=(0,b.HM)(Le)),ot&&(ye.maxWidth=(0,b.HM)(ot))}this._lastBoundingBoxSize=pe,_(this._boundingBox.style,ye)}_resetBoundingBoxStyles(){_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(G,ie){const pe={},ye=this._hasExactPosition(),Le=this._hasFlexibleDimensions,ot=this._overlayRef.getConfig();if(ye){const jt=this._viewportRuler.getViewportScrollPosition();_(pe,this._getExactOverlayY(ie,G,jt)),_(pe,this._getExactOverlayX(ie,G,jt))}else pe.position="static";let ht="",At=this._getOffset(ie,"x"),hi=this._getOffset(ie,"y");At&&(ht+=`translateX(${At}px) `),hi&&(ht+=`translateY(${hi}px)`),pe.transform=ht.trim(),ot.maxHeight&&(ye?pe.maxHeight=(0,b.HM)(ot.maxHeight):Le&&(pe.maxHeight="")),ot.maxWidth&&(ye?pe.maxWidth=(0,b.HM)(ot.maxWidth):Le&&(pe.maxWidth="")),_(this._pane.style,pe)}_getExactOverlayY(G,ie,pe){let ye={top:"",bottom:""},Le=this._getOverlayPoint(ie,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,pe)),"bottom"===G.overlayY?ye.bottom=this._document.documentElement.clientHeight-(Le.y+this._overlayRect.height)+"px":ye.top=(0,b.HM)(Le.y),ye}_getExactOverlayX(G,ie,pe){let ot,ye={left:"",right:""},Le=this._getOverlayPoint(ie,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,pe)),ot=this._isRtl()?"end"===G.overlayX?"left":"right":"end"===G.overlayX?"right":"left","right"===ot?ye.right=this._document.documentElement.clientWidth-(Le.x+this._overlayRect.width)+"px":ye.left=(0,b.HM)(Le.x),ye}_getScrollVisibility(){const G=this._getOriginRect(),ie=this._pane.getBoundingClientRect(),pe=this._scrollables.map(ye=>ye.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(G,pe),isOriginOutsideView:q(G,pe),isOverlayClipped:re(ie,pe),isOverlayOutsideView:q(ie,pe)}}_subtractOverflows(G,...ie){return ie.reduce((pe,ye)=>pe-Math.max(ye,0),G)}_getNarrowedViewportRect(){const G=this._document.documentElement.clientWidth,ie=this._document.documentElement.clientHeight,pe=this._viewportRuler.getViewportScrollPosition();return{top:pe.top+this._viewportMargin,left:pe.left+this._viewportMargin,right:pe.left+G-this._viewportMargin,bottom:pe.top+ie-this._viewportMargin,width:G-2*this._viewportMargin,height:ie-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(G,ie){return"x"===ie?null==G.offsetX?this._offsetX:G.offsetX:null==G.offsetY?this._offsetY:G.offsetY}_validatePositions(){}_addPanelClasses(G){this._pane&&(0,b.Eq)(G).forEach(ie=>{""!==ie&&-1===this._appliedPanelClasses.indexOf(ie)&&(this._appliedPanelClasses.push(ie),this._pane.classList.add(ie))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(G=>{this._pane.classList.remove(G)}),this._appliedPanelClasses=[])}_getOriginRect(){const G=this._origin;if(G instanceof u.SBq)return G.nativeElement.getBoundingClientRect();if(G instanceof Element)return G.getBoundingClientRect();const ie=G.width||0,pe=G.height||0;return{top:G.y,bottom:G.y+pe,left:G.x,right:G.x+ie,height:pe,width:ie}}}function _(xe,G){for(let ie in G)G.hasOwnProperty(ie)&&(xe[ie]=G[ie]);return xe}function B(xe){if("number"!=typeof xe&&null!=xe){const[G,ie]=xe.split(C);return ie&&"px"!==ie?null:parseFloat(G)}return xe||null}function R(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const H="cdk-global-overlay-wrapper";class Q{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(G){const ie=G.getConfig();this._overlayRef=G,this._width&&!ie.width&&G.updateSize({width:this._width}),this._height&&!ie.height&&G.updateSize({height:this._height}),G.hostElement.classList.add(H),this._isDisposed=!1}top(G=""){return this._bottomOffset="",this._topOffset=G,this._alignItems="flex-start",this}left(G=""){return this._rightOffset="",this._leftOffset=G,this._justifyContent="flex-start",this}bottom(G=""){return this._topOffset="",this._bottomOffset=G,this._alignItems="flex-end",this}right(G=""){return this._leftOffset="",this._rightOffset=G,this._justifyContent="flex-end",this}width(G=""){return this._overlayRef?this._overlayRef.updateSize({width:G}):this._width=G,this}height(G=""){return this._overlayRef?this._overlayRef.updateSize({height:G}):this._height=G,this}centerHorizontally(G=""){return this.left(G),this._justifyContent="center",this}centerVertically(G=""){return this.top(G),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const G=this._overlayRef.overlayElement.style,ie=this._overlayRef.hostElement.style,pe=this._overlayRef.getConfig(),{width:ye,height:Le,maxWidth:ot,maxHeight:ht}=pe,At=!("100%"!==ye&&"100vw"!==ye||ot&&"100%"!==ot&&"100vw"!==ot),hi=!("100%"!==Le&&"100vh"!==Le||ht&&"100%"!==ht&&"100vh"!==ht);G.position=this._cssPosition,G.marginLeft=At?"0":this._leftOffset,G.marginTop=hi?"0":this._topOffset,G.marginBottom=this._bottomOffset,G.marginRight=this._rightOffset,At?ie.justifyContent="flex-start":"center"===this._justifyContent?ie.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ie.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ie.justifyContent="flex-start"):ie.justifyContent=this._justifyContent,ie.alignItems=hi?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const G=this._overlayRef.overlayElement.style,ie=this._overlayRef.hostElement,pe=ie.style;ie.classList.remove(H),pe.justifyContent=pe.alignItems=G.marginTop=G.marginBottom=G.marginLeft=G.marginRight=G.position="",this._overlayRef=null,this._isDisposed=!0}}let Z=(()=>{class xe{constructor(ie,pe,ye,Le){this._viewportRuler=ie,this._document=pe,this._platform=ye,this._overlayContainer=Le}global(){return new Q}flexibleConnectedTo(ie){return new n(ie,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(e.rL),u.LFG(i.K0),u.LFG(a.t4),u.LFG(S))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),te=(()=>{class xe{constructor(ie){this._attachedOverlays=[],this._document=ie}ngOnDestroy(){this.detach()}add(ie){this.remove(ie),this._attachedOverlays.push(ie)}remove(ie){const pe=this._attachedOverlays.indexOf(ie);pe>-1&&this._attachedOverlays.splice(pe,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Te=(()=>{class xe extends te{constructor(ie,pe){super(ie),this._ngZone=pe,this._keydownListener=ye=>{const Le=this._attachedOverlays;for(let ot=Le.length-1;ot>-1;ot--)if(Le[ot]._keydownEvents.observers.length>0){const ht=Le[ot]._keydownEvents;this._ngZone?this._ngZone.run(()=>ht.next(ye)):ht.next(ye);break}}}add(ie){super.add(ie),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(i.K0),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Ee=(()=>{class xe extends te{constructor(ie,pe,ye){super(ie),this._platform=pe,this._ngZone=ye,this._cursorStyleIsSet=!1,this._pointerDownListener=Le=>{this._pointerDownEventTarget=(0,a.sA)(Le)},this._clickListener=Le=>{const ot=(0,a.sA)(Le),ht="click"===Le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ot;this._pointerDownEventTarget=null;const At=this._attachedOverlays.slice();for(let hi=At.length-1;hi>-1;hi--){const jt=At[hi];if(jt._outsidePointerEvents.observers.length<1||!jt.hasAttached())continue;if(jt.overlayElement.contains(ot)||jt.overlayElement.contains(ht))break;const Gt=jt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(Le)):Gt.next(Le)}}}add(ie){if(super.add(ie),!this._isAttached){const pe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(pe)):this._addEventListeners(pe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=pe.style.cursor,pe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ie=this._document.body;ie.removeEventListener("pointerdown",this._pointerDownListener,!0),ie.removeEventListener("click",this._clickListener,!0),ie.removeEventListener("auxclick",this._clickListener,!0),ie.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ie.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ie){ie.addEventListener("pointerdown",this._pointerDownListener,!0),ie.addEventListener("click",this._clickListener,!0),ie.addEventListener("auxclick",this._clickListener,!0),ie.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(i.K0),u.LFG(a.t4),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ne=0,ze=(()=>{class xe{constructor(ie,pe,ye,Le,ot,ht,At,hi,jt,Gt,di){this.scrollStrategies=ie,this._overlayContainer=pe,this._componentFactoryResolver=ye,this._positionBuilder=Le,this._keyboardDispatcher=ot,this._injector=ht,this._ngZone=At,this._document=hi,this._directionality=jt,this._location=Gt,this._outsideClickDispatcher=di}create(ie){const pe=this._createHostElement(),ye=this._createPaneElement(pe),Le=this._createPortalOutlet(ye),ot=new _e(ie);return ot.direction=ot.direction||this._directionality.value,new g(Le,pe,ye,ot,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ie){const pe=this._document.createElement("div");return pe.id="cdk-overlay-"+ne++,pe.classList.add("cdk-overlay-pane"),ie.appendChild(pe),pe}_createHostElement(){const ie=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ie),ie}_createPortalOutlet(ie){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new h.u0(ie,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.LFG(ee),u.LFG(S),u.LFG(u._Vd),u.LFG(Z),u.LFG(Te),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(i.K0),u.LFG(y.Is),u.LFG(i.Ye),u.LFG(Ee))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac}),xe})();const be=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$=new u.OlP("cdk-connected-overlay-scroll-strategy");let ke=(()=>{class xe{constructor(ie){this.elementRef=ie}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.Y36(u.SBq))},xe.\u0275dir=u.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xe})(),lt=(()=>{class xe{constructor(ie,pe,ye,Le,ot){this._overlay=ie,this._dir=ot,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new u.vpe,this.positionChange=new u.vpe,this.attach=new u.vpe,this.detach=new u.vpe,this.overlayKeydown=new u.vpe,this.overlayOutsideClick=new u.vpe,this._templatePortal=new h.UE(pe,ye),this._scrollStrategyFactory=Le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(ie){this._offsetX=ie,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ie){this._offsetY=ie,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ie){this._hasBackdrop=(0,b.Ig)(ie)}get lockPosition(){return this._lockPosition}set lockPosition(ie){this._lockPosition=(0,b.Ig)(ie)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ie){this._flexibleDimensions=(0,b.Ig)(ie)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ie){this._growAfterOpen=(0,b.Ig)(ie)}get push(){return this._push}set push(ie){this._push=(0,b.Ig)(ie)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ie){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ie.origin&&this.open&&this._position.apply()),ie.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=be);const ie=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ie.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ie.detachments().subscribe(()=>this.detach.emit()),ie.keydownEvents().subscribe(pe=>{this.overlayKeydown.next(pe),pe.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(pe)&&(pe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(pe=>{this.overlayOutsideClick.next(pe)})}_buildConfig(){const ie=this._position=this.positionStrategy||this._createPositionStrategy(),pe=new _e({direction:this._dir,positionStrategy:ie,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(pe.width=this.width),(this.height||0===this.height)&&(pe.height=this.height),(this.minWidth||0===this.minWidth)&&(pe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(pe.minHeight=this.minHeight),this.backdropClass&&(pe.backdropClass=this.backdropClass),this.panelClass&&(pe.panelClass=this.panelClass),pe}_updatePositionStrategy(ie){const pe=this.positions.map(ye=>({originX:ye.originX,originY:ye.originY,overlayX:ye.overlayX,overlayY:ye.overlayY,offsetX:ye.offsetX||this.offsetX,offsetY:ye.offsetY||this.offsetY,panelClass:ye.panelClass||void 0}));return ie.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(pe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ie=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ie),ie}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ke?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ie=>{this.backdropClick.emit(ie)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(xe,G=!1){return(0,M.e)((ie,pe)=>{let ye=0;ie.subscribe((0,A.x)(pe,Le=>{const ot=xe(Le,ye++);(ot||G)&&pe.next(Le),!ot&&pe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ie=>{this.positionChange.emit(ie),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(ie){return new(ie||xe)(u.Y36(ze),u.Y36(u.Rgc),u.Y36(u.s_b),u.Y36($),u.Y36(y.Is,8))},xe.\u0275dir=u.lG2({type:xe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[u.TTD]}),xe})();const De={provide:$,deps:[ze],useFactory:function W(xe){return()=>xe.scrollStrategies.reposition()}};let he=(()=>{class xe{}return xe.\u0275fac=function(ie){return new(ie||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({providers:[ze,De],imports:[[y.vT,h.eL,e.Cl],e.Cl]}),xe})()},925:(He,j,p)=>{"use strict";p.d(j,{Mq:()=>k,Oy:()=>de,_i:()=>w,ht:()=>ae,i$:()=>M,kV:()=>Y,qK:()=>P,sA:()=>X,t4:()=>b});var e=p(5e3),i=p(9808);let u;try{u="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(q){u=!1}let y,b=(()=>{class q{constructor(le){this._platformId=le,this.isBrowser=this._platformId?(0,i.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!u)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return q.\u0275fac=function(le){return new(le||q)(e.LFG(e.Lbi))},q.\u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(h),y;let q=document.createElement("input");return y=new Set(h.filter(re=>(q.setAttribute("type",re),q.type===re))),y}let D,A,E,V;function M(q){return function T(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>D=!0}))}finally{D=D||!1}return D}()?q:!!q.capture}function k(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const q=Element.prototype.scrollTo;E=!!q&&!/\{\s*\[native code\]\s*\}/.test(q.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const q=document.createElement("div"),re=q.style;q.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const le=document.createElement("div"),ee=le.style;ee.width="2px",ee.height="1px",q.appendChild(le),document.body.appendChild(q),A=0,0===q.scrollLeft&&(q.scrollLeft=1,A=0===q.scrollLeft?1:2),q.remove()}return A}function Y(q){if(function U(){if(null==V){const q="undefined"!=typeof document?document.head:null;V=!(!q||!q.createShadowRoot&&!q.attachShadow)}return V}()){const re=q.getRootNode?q.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ae(){let q="undefined"!=typeof document&&document?document.activeElement:null;for(;q&&q.shadowRoot;){const re=q.shadowRoot.activeElement;if(re===q)break;q=re}return q}function X(q){return q.composedPath?q.composedPath()[0]:q.target}function de(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(He,j,p)=>{"use strict";p.d(j,{C5:()=>T,Pl:()=>ae,UE:()=>M,eL:()=>de,en:()=>E,ig:()=>U,u0:()=>w});var e=p(5e3),i=p(9808);class D{attach(le){return this._attachedHost=le,le.attach(this)}detach(){let le=this._attachedHost;null!=le&&(this._attachedHost=null,le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(le){this._attachedHost=le}}class T extends D{constructor(le,ee,_e,x){super(),this.component=le,this.viewContainerRef=ee,this.injector=_e,this.componentFactoryResolver=x}}class M extends D{constructor(le,ee,_e){super(),this.templateRef=le,this.viewContainerRef=ee,this.context=_e}get origin(){return this.templateRef.elementRef}attach(le,ee=this.context){return this.context=ee,super.attach(le)}detach(){return this.context=void 0,super.detach()}}class A extends D{constructor(le){super(),this.element=le instanceof e.SBq?le.nativeElement:le}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(le){return le instanceof T?(this._attachedPortal=le,this.attachComponentPortal(le)):le instanceof M?(this._attachedPortal=le,this.attachTemplatePortal(le)):this.attachDomPortal&&le instanceof A?(this._attachedPortal=le,this.attachDomPortal(le)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(le){this._disposeFn=le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(le,ee,_e,x,t){super(),this.outletElement=le,this._componentFactoryResolver=ee,this._appRef=_e,this._defaultInjector=x,this.attachDomPortal=r=>{const d=r.element,c=this._document.createComment("dom-portal");d.parentNode.insertBefore(c,d),this.outletElement.appendChild(d),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(d,c)})},this._document=t}attachComponentPortal(le){const _e=(le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(le.component);let x;return le.viewContainerRef?(x=le.viewContainerRef.createComponent(_e,le.viewContainerRef.length,le.injector||le.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=_e.create(le.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(x.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(x.hostView),x.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(x)),this._attachedPortal=le,x}attachTemplatePortal(le){let ee=le.viewContainerRef,_e=ee.createEmbeddedView(le.templateRef,le.context);return _e.rootNodes.forEach(x=>this.outletElement.appendChild(x)),_e.detectChanges(),this.setDisposeFn(()=>{let x=ee.indexOf(_e);-1!==x&&ee.remove(x)}),this._attachedPortal=le,_e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(le){return le.hostView.rootNodes[0]}}let U=(()=>{class re extends M{constructor(ee,_e){super(ee,_e)}}return re.\u0275fac=function(ee){return new(ee||re)(e.Y36(e.Rgc),e.Y36(e.s_b))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),re})(),ae=(()=>{class re extends E{constructor(ee,_e,x){super(),this._componentFactoryResolver=ee,this._viewContainerRef=_e,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=t=>{const r=t.element,d=this._document.createComment("dom-portal");t.setAttachedHost(this),r.parentNode.insertBefore(d,r),this._getRootNode().appendChild(r),this._attachedPortal=t,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(r,d)})},this._document=x}get portal(){return this._attachedPortal}set portal(ee){this.hasAttached()&&!ee&&!this._isInitialized||(this.hasAttached()&&super.detach(),ee&&super.attach(ee),this._attachedPortal=ee||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ee){ee.setAttachedHost(this);const _e=null!=ee.viewContainerRef?ee.viewContainerRef:this._viewContainerRef,t=(ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ee.component),r=_e.createComponent(t,_e.length,ee.injector||_e.injector);return _e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=ee,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(ee){ee.setAttachedHost(this);const _e=this._viewContainerRef.createEmbeddedView(ee.templateRef,ee.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ee,this._attachedRef=_e,this.attached.emit(_e),_e}_getRootNode(){const ee=this._viewContainerRef.element.nativeElement;return ee.nodeType===ee.ELEMENT_NODE?ee:ee.parentNode}}return re.\u0275fac=function(ee){return new(ee||re)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(i.K0))},re.\u0275dir=e.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),re})(),de=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})()},5303:(He,j,p)=>{"use strict";p.d(j,{PQ:()=>d,ZD:()=>B,mF:()=>r,Cl:()=>R,rL:()=>g});var e=p(3191),i=p(5e3),u=p(4408),b=p(727);const a={schedule(H){let Q=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:te}=a;te&&(Q=te.requestAnimationFrame,Z=te.cancelAnimationFrame);const Te=Q(Ee=>{Z=void 0,H(Ee)});return new b.w0(()=>null==Z?void 0:Z(Te))},requestAnimationFrame(...H){const{delegate:Q}=a;return((null==Q?void 0:Q.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:Q}=a;return((null==Q?void 0:Q.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var h=p(7565);new class P extends h.v{flush(Q){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:te}=this;let Te;Q=Q||te.shift();do{if(Te=Q.execute(Q.state,Q.delay))break}while((Q=te[0])&&Q.id===Z&&te.shift());if(this._active=!1,Te){for(;(Q=te[0])&&Q.id===Z&&te.shift();)Q.unsubscribe();throw Te}}}(class y extends u.o{constructor(Q,Z){super(Q,Z),this.scheduler=Q,this.work=Z}requestAsyncId(Q,Z,te=0){return null!==te&&te>0?super.requestAsyncId(Q,Z,te):(Q.actions.push(this),Q._scheduled||(Q._scheduled=a.requestAnimationFrame(()=>Q.flush(void 0))))}recycleAsyncId(Q,Z,te=0){if(null!=te&&te>0||null==te&&this.delay>0)return super.recycleAsyncId(Q,Z,te);Q.actions.some(Te=>Te.id===Z)||(a.cancelAnimationFrame(Z),Q._scheduled=void 0)}});var M=p(7579),A=p(9646),E=p(8306),k=p(4968),V=(p(3101),p(3601)),U=p(9300),Y=p(2722),ae=p(9808),X=p(925),de=p(226);let r=(()=>{class H{constructor(Z,te,Te){this._ngZone=Z,this._platform=te,this._scrolled=new M.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Te}register(Z){this.scrollContainers.has(Z)||this.scrollContainers.set(Z,Z.elementScrolled().subscribe(()=>this._scrolled.next(Z)))}deregister(Z){const te=this.scrollContainers.get(Z);te&&(te.unsubscribe(),this.scrollContainers.delete(Z))}scrolled(Z=20){return this._platform.isBrowser?new E.y(te=>{this._globalSubscription||this._addGlobalListener();const Te=Z>0?this._scrolled.pipe((0,V.e)(Z)).subscribe(te):this._scrolled.subscribe(te);return this._scrolledCount++,()=>{Te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Z,te)=>this.deregister(te)),this._scrolled.complete()}ancestorScrolled(Z,te){const Te=this.getAncestorScrollContainers(Z);return this.scrolled(te).pipe((0,U.h)(Ee=>!Ee||Te.indexOf(Ee)>-1))}getAncestorScrollContainers(Z){const te=[];return this.scrollContainers.forEach((Te,Ee)=>{this._scrollableContainsElement(Ee,Z)&&te.push(Ee)}),te}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Z,te){let Te=(0,e.fI)(te),Ee=Z.getElementRef().nativeElement;do{if(Te==Ee)return!0}while(Te=Te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Z=this._getWindow();return(0,k.R)(Z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(Z){return new(Z||H)(i.LFG(i.R0b),i.LFG(X.t4),i.LFG(ae.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),d=(()=>{class H{constructor(Z,te,Te,Ee){this.elementRef=Z,this.scrollDispatcher=te,this.ngZone=Te,this.dir=Ee,this._destroyed=new M.x,this._elementScrolled=new E.y(ne=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,Y.R)(this._destroyed)).subscribe(ne)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Z){const te=this.elementRef.nativeElement,Te=this.dir&&"rtl"==this.dir.value;null==Z.left&&(Z.left=Te?Z.end:Z.start),null==Z.right&&(Z.right=Te?Z.start:Z.end),null!=Z.bottom&&(Z.top=te.scrollHeight-te.clientHeight-Z.bottom),Te&&0!=(0,X._i)()?(null!=Z.left&&(Z.right=te.scrollWidth-te.clientWidth-Z.left),2==(0,X._i)()?Z.left=Z.right:1==(0,X._i)()&&(Z.left=Z.right?-Z.right:Z.right)):null!=Z.right&&(Z.left=te.scrollWidth-te.clientWidth-Z.right),this._applyScrollToOptions(Z)}_applyScrollToOptions(Z){const te=this.elementRef.nativeElement;(0,X.Mq)()?te.scrollTo(Z):(null!=Z.top&&(te.scrollTop=Z.top),null!=Z.left&&(te.scrollLeft=Z.left))}measureScrollOffset(Z){const te="left",Ee=this.elementRef.nativeElement;if("top"==Z)return Ee.scrollTop;if("bottom"==Z)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const ne=this.dir&&"rtl"==this.dir.value;return"start"==Z?Z=ne?"right":te:"end"==Z&&(Z=ne?te:"right"),ne&&2==(0,X._i)()?Z==te?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:ne&&1==(0,X._i)()?Z==te?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:Z==te?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return H.\u0275fac=function(Z){return new(Z||H)(i.Y36(i.SBq),i.Y36(r),i.Y36(i.R0b),i.Y36(de.Is,8))},H.\u0275dir=i.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),g=(()=>{class H{constructor(Z,te,Te){this._platform=Z,this._change=new M.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=Te,te.runOutsideAngular(()=>{if(Z.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Z=this._getWindow();Z.removeEventListener("resize",this._changeListener),Z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Z}getViewportRect(){const Z=this.getViewportScrollPosition(),{width:te,height:Te}=this.getViewportSize();return{top:Z.top,left:Z.left,bottom:Z.top+Te,right:Z.left+te,height:Te,width:te}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Z=this._document,te=this._getWindow(),Te=Z.documentElement,Ee=Te.getBoundingClientRect();return{top:-Ee.top||Z.body.scrollTop||te.scrollY||Te.scrollTop||0,left:-Ee.left||Z.body.scrollLeft||te.scrollX||Te.scrollLeft||0}}change(Z=20){return Z>0?this._change.pipe((0,V.e)(Z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Z.innerWidth,height:Z.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(Z){return new(Z||H)(i.LFG(X.t4),i.LFG(i.R0b),i.LFG(ae.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),B=(()=>{class H{}return H.\u0275fac=function(Z){return new(Z||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({}),H})(),R=(()=>{class H{}return H.\u0275fac=function(Z){return new(Z||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({imports:[[de.vT,B],de.vT,B]}),H})()},1555:(He,j,p)=>{"use strict";p.d(j,{B8:()=>de,KL:()=>k,U5:()=>le,be:()=>X,gx:()=>ae,po:()=>re,st:()=>q,u6:()=>w});var e=p(5664),i=p(3191),u=p(1159),b=p(9808),a=p(5e3),y=p(925),h=p(7579),P=p(9646),D=p(8675),T=p(2722),M=p(226);function A(ee,_e){1&ee&&a.Hsn(0)}const E=["*"];let k=(()=>{class ee{constructor(x){this._elementRef=x}focus(){this._elementRef.nativeElement.focus()}}return ee.\u0275fac=function(x){return new(x||ee)(a.Y36(a.SBq))},ee.\u0275dir=a.lG2({type:ee,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),ee})(),w=(()=>{class ee{constructor(x){this.template=x}}return ee.\u0275fac=function(x){return new(x||ee)(a.Y36(a.Rgc))},ee.\u0275dir=a.lG2({type:ee,selectors:[["","cdkStepLabel",""]]}),ee})(),V=0;const ae=new a.OlP("STEPPER_GLOBAL_OPTIONS");let X=(()=>{class ee{constructor(x,t){this._stepper=x,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,i.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,i.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,i.Ig)(x)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(x){this._customError=(0,i.Ig)(x)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var x;return null!==(x=this._stepperOptions.showError)&&void 0!==x?x:null!=this._customError}}return ee.\u0275fac=function(x){return new(x||ee)(a.Y36((0,a.Gpc)(()=>de)),a.Y36(ae,8))},ee.\u0275cmp=a.Xpm({type:ee,selectors:[["cdk-step"]],contentQueries:function(x,t,r){if(1&x&&a.Suo(r,w,5),2&x){let d;a.iGM(d=a.CRH())&&(t.stepLabel=d.first)}},viewQuery:function(x,t){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(x,t){1&x&&(a.F$t(),a.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),ee})(),de=(()=>{class ee{constructor(x,t,r,d){this._dir=x,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new h.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=V++}get linear(){return this._linear}set linear(x){this._linear=(0,i.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var t;const r=(0,i.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(x){this.selectedIndex=x&&this.steps?this.steps.toArray().indexOf(x):-1}get orientation(){return this._orientation}set orientation(x){this._orientation=x,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===x)}ngAfterContentInit(){this._steps.changes.pipe((0,D.O)(this._steps),(0,T.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,D.O)(this._stepHeader),(0,T.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,D.O)(this._layoutDirection()),(0,T.R)(this._destroyed)).subscribe(x=>this._keyManager.withHorizontalOrientation(x)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(x=>x.reset()),this._stateChanged()}_getStepLabelId(x){return`cdk-step-label-${this._groupId}-${x}`}_getStepContentId(x){return`cdk-step-content-${this._groupId}-${x}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(x){const t=x-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,t="number"){const r=this.steps.toArray()[x],d=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,d):this._getGuidelineLogic(r,d,t)}_getDefaultIndicatorLogic(x,t){return x._showError()&&x.hasError&&!t?"error":!x.completed||t?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,t,r="number"){return x._showError()&&x.hasError&&!t?"error":x.completed&&!t?"done":x.completed&&t?r:x.editable&&t?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:t[x],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const t=(0,u.Vb)(x),r=x.keyCode,d=this._keyManager;null==d.activeItemIndex||t||r!==u.L_&&r!==u.K5?d.onKeydown(x):(this.selectedIndex=d.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,t=(0,y.ht)();return x===t||x.contains(t)}_isValidIndex(x){return x>-1&&(!this.steps||x{class ee{constructor(x){this._stepper=x,this.type="submit"}}return ee.\u0275fac=function(x){return new(x||ee)(a.Y36(de))},ee.\u0275dir=a.lG2({type:ee,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.next()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),ee})(),re=(()=>{class ee{constructor(x){this._stepper=x,this.type="button"}}return ee.\u0275fac=function(x){return new(x||ee)(a.Y36(de))},ee.\u0275dir=a.lG2({type:ee,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.previous()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),ee})(),le=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275mod=a.oAB({type:ee}),ee.\u0275inj=a.cJS({imports:[[M.vT]]}),ee})()},8258:(He,j,p)=>{"use strict";p.d(j,{HI:()=>w,Hs:()=>ee,Ud:()=>c,VY:()=>k,XJ:()=>d,Xx:()=>t,_0:()=>le,cu:()=>V,nZ:()=>S,rO:()=>Y});var e=p(449),i=p(5191),u=p(7579),b=p(1135),a=p(9646),y=p(5698),h=p(9300),P=p(2722),D=p(5e3),T=p(3191),M=p(226);class k extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(C){this.expansionModel.toggle(this._trackByValue(C))}expand(C){this.expansionModel.select(this._trackByValue(C))}collapse(C){this.expansionModel.deselect(this._trackByValue(C))}isExpanded(C){return this.expansionModel.isSelected(this._trackByValue(C))}toggleDescendants(C){this.expansionModel.isSelected(this._trackByValue(C))?this.collapseDescendants(C):this.expandDescendants(C)}collapseAll(){this.expansionModel.clear()}expandDescendants(C){let n=[C];n.push(...this.getDescendants(C)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(C){let n=[C];n.push(...this.getDescendants(C)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(C){return this.trackBy?this.trackBy(C):C}}{constructor(C,n){super(),this.getChildren=C,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const C=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...C.map(n=>this._trackByValue(n)))}getDescendants(C){const n=[];return this._getDescendants(n,C),n.splice(1)}_getDescendants(C,n){C.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(B=>this._getDescendants(C,B)):(0,i.b)(_)&&_.pipe((0,y.q)(1),(0,h.h)(Boolean)).subscribe(B=>{for(const R of B)this._getDescendants(C,R)})}}const w=new D.OlP("CDK_TREE_NODE_OUTLET_NODE");let V=(()=>{class I{constructor(n,_){this.viewContainer=n,this._node=_}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.s_b),D.Y36(w,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class U{constructor(C){this.$implicit=C}}let Y=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.Rgc))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),le=(()=>{class I{constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new u.x,this._levels=new Map,this.viewChange=new b.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(_=>!_.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,e.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,i.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,P.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,B=this._nodeOutlet.viewContainer,R){const H=_.diff(n);!H||(H.forEachOperation((Q,Z,te)=>{if(null==Q.previousIndex)this.insertNode(n[te],te,B,R);else if(null==te)B.remove(Z),this._levels.delete(Q.item);else{const Te=B.get(Z);B.move(Te,te)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(R=>R.when&&R.when(_,n))||this._defaultNodeDef}insertNode(n,_,B,R){const H=this._getNodeDef(n,_),Q=new U(n);Q.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==R&&this._levels.has(R)?this._levels.get(R)+1:0,this._levels.set(n,Q.level),(B||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,Q,_),ee.mostRecentTreeNode&&(ee.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.ZZ4),D.Y36(D.sBO))},I.\u0275cmp=D.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,_,B){if(1&n&&D.Suo(B,Y,5),2&n){let R;D.iGM(R=D.CRH())&&(_._nodeDefs=R)}},viewQuery:function(n,_){if(1&n&&D.Gf(V,7),2&n){let B;D.iGM(B=D.CRH())&&(_._nodeOutlet=B.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&D.GkF(0,0)},directives:[V],encapsulation:2}),I})(),ee=(()=>{class I{constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new u.x,this._dataChanges=new u.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function _e(I){let C=I.parentElement;for(;C&&!x(C);)C=C.parentElement;return C?C.classList.contains("cdk-nested-tree-node")?(0,T.su)(C.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(le))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&D.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const C=I.classList;return!(!(null==C?void 0:C.contains("cdk-nested-tree-node"))&&!(null==C?void 0:C.contains("cdk-tree")))}let t=(()=>{class I extends ee{constructor(n,_,B){super(n,_),this._differs=B}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,i.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(le),D.Y36(D.ZZ4))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,B){if(1&n&&D.Suo(B,V,5),2&n){let R;D.iGM(R=D.CRH())&&(_.nodeOutlet=R)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[D._Bn([{provide:ee,useExisting:I},{provide:w,useExisting:I}]),D.qOj]}),I})();const r=/([A-Za-z%]+)$/;let d=(()=>{class I{constructor(n,_,B,R){this._treeNode=n,this._tree=_,this._element=B,this._dir=R,this._destroyed=new u.x,this.indentUnits="px",this._indent=40,this._setPadding(),R&&R.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=null==this._level?n:this._level;return"number"==typeof _?`${_*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const _=this._paddingIndent();if(_!==this._currentPadding||n){const B=this._element.nativeElement,R=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===R?"paddingRight":"paddingLeft";B.style[R]=_||"",B.style[H]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,T.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,B="px";if("string"==typeof n){const R=n.split(r);_=R[0],B=R[1]||B}this.indentUnits=B,this._indent=(0,T.su)(_),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(ee),D.Y36(le),D.Y36(D.SBq),D.Y36(M.Is,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,T.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(le),D.Y36(ee))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&D.NdJ("click",function(R){return _._toggle(R)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),S=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=D.oAB({type:I}),I.\u0275inj=D.cJS({}),I})()},9808:(He,j,p)=>{"use strict";p.d(j,{Do:()=>de,ED:()=>Nn,EM:()=>Hr,HT:()=>a,JF:()=>Wn,JJ:()=>Sr,K0:()=>h,Mx:()=>Ji,NF:()=>qn,Nd:()=>la,O5:()=>Nt,OU:()=>Nr,Ov:()=>sa,PC:()=>wi,PM:()=>ga,RF:()=>Oi,S$:()=>U,Ts:()=>Rr,V_:()=>T,Ye:()=>q,b0:()=>X,bD:()=>Cr,ez:()=>gr,gd:()=>rr,i8:()=>oa,lw:()=>P,mk:()=>Yi,mr:()=>ae,n9:()=>dn,q:()=>u,rS:()=>Ta,sg:()=>Zt,tP:()=>ji,uU:()=>na,w_:()=>y});var e=p(5e3);let i=null;function u(){return i}function a(Ze){i||(i=Ze)}class y{}const h=new e.OlP("DocumentToken");let P=(()=>{class Ze{historyGo(je){throw new Error("Not implemented")}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:function(){return function D(){return(0,e.LFG)(M)}()},providedIn:"platform"}),Ze})();const T=new e.OlP("Location Initialized");let M=(()=>{class Ze extends P{constructor(je){super(),this._doc=je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return u().getBaseHref(this._doc)}onPopState(je){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("popstate",je,!1),()=>Ot.removeEventListener("popstate",je)}onHashChange(je){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("hashchange",je,!1),()=>Ot.removeEventListener("hashchange",je)}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(je){this.location.pathname=je}pushState(je,Ot,ri){A()?this._history.pushState(je,Ot,ri):this.location.hash=ri}replaceState(je,Ot,ri){A()?this._history.replaceState(je,Ot,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(je=0){this._history.go(je)}getState(){return this._history.state}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.LFG(h))},Ze.\u0275prov=e.Yz7({token:Ze,factory:function(){return function E(){return new M((0,e.LFG)(h))}()},providedIn:"platform"}),Ze})();function A(){return!!window.history.pushState}function k(Ze,Mt){if(0==Ze.length)return Mt;if(0==Mt.length)return Ze;let je=0;return Ze.endsWith("/")&&je++,Mt.startsWith("/")&&je++,2==je?Ze+Mt.substring(1):1==je?Ze+Mt:Ze+"/"+Mt}function w(Ze){const Mt=Ze.match(/#|\?|$/),je=Mt&&Mt.index||Ze.length;return Ze.slice(0,je-("/"===Ze[je-1]?1:0))+Ze.slice(je)}function V(Ze){return Ze&&"?"!==Ze[0]?"?"+Ze:Ze}let U=(()=>{class Ze{historyGo(je){throw new Error("Not implemented")}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:function(){return function Y(Ze){const Mt=(0,e.LFG)(h).location;return new X((0,e.LFG)(P),Mt&&Mt.origin||"")}()},providedIn:"root"}),Ze})();const ae=new e.OlP("appBaseHref");let X=(()=>{class Ze extends U{constructor(je,Ot){if(super(),this._platformLocation=je,this._removeListenerFns=[],null==Ot&&(Ot=this._platformLocation.getBaseHrefFromDOM()),null==Ot)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Ot}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(je){this._removeListenerFns.push(this._platformLocation.onPopState(je),this._platformLocation.onHashChange(je))}getBaseHref(){return this._baseHref}prepareExternalUrl(je){return k(this._baseHref,je)}path(je=!1){const Ot=this._platformLocation.pathname+V(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&je?`${Ot}${ri}`:Ot}pushState(je,Ot,ri,Si){const Ii=this.prepareExternalUrl(ri+V(Si));this._platformLocation.pushState(je,Ot,Ii)}replaceState(je,Ot,ri,Si){const Ii=this.prepareExternalUrl(ri+V(Si));this._platformLocation.replaceState(je,Ot,Ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(je=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,je)}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.LFG(P),e.LFG(ae,8))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),de=(()=>{class Ze extends U{constructor(je,Ot){super(),this._platformLocation=je,this._baseHref="",this._removeListenerFns=[],null!=Ot&&(this._baseHref=Ot)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(je){this._removeListenerFns.push(this._platformLocation.onPopState(je),this._platformLocation.onHashChange(je))}getBaseHref(){return this._baseHref}path(je=!1){let Ot=this._platformLocation.hash;return null==Ot&&(Ot="#"),Ot.length>0?Ot.substring(1):Ot}prepareExternalUrl(je){const Ot=k(this._baseHref,je);return Ot.length>0?"#"+Ot:Ot}pushState(je,Ot,ri,Si){let Ii=this.prepareExternalUrl(ri+V(Si));0==Ii.length&&(Ii=this._platformLocation.pathname),this._platformLocation.pushState(je,Ot,Ii)}replaceState(je,Ot,ri,Si){let Ii=this.prepareExternalUrl(ri+V(Si));0==Ii.length&&(Ii=this._platformLocation.pathname),this._platformLocation.replaceState(je,Ot,Ii)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(je=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,je)}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.LFG(P),e.LFG(ae,8))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),q=(()=>{class Ze{constructor(je,Ot){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=je;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Ot,this._baseHref=w(ee(ri)),this._platformStrategy.onPopState(Si=>{this._subject.emit({url:this.path(!0),pop:!0,state:Si.state,type:Si.type})})}path(je=!1){return this.normalize(this._platformStrategy.path(je))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(je,Ot=""){return this.path()==this.normalize(je+V(Ot))}normalize(je){return Ze.stripTrailingSlash(function le(Ze,Mt){return Ze&&Mt.startsWith(Ze)?Mt.substring(Ze.length):Mt}(this._baseHref,ee(je)))}prepareExternalUrl(je){return je&&"/"!==je[0]&&(je="/"+je),this._platformStrategy.prepareExternalUrl(je)}go(je,Ot="",ri=null){this._platformStrategy.pushState(ri,"",je,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(je+V(Ot)),ri)}replaceState(je,Ot="",ri=null){this._platformStrategy.replaceState(ri,"",je,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(je+V(Ot)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(je=0){var Ot,ri;null===(ri=(Ot=this._platformStrategy).historyGo)||void 0===ri||ri.call(Ot,je)}onUrlChange(je){this._urlChangeListeners.push(je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ot=>{this._notifyUrlChangeListeners(Ot.url,Ot.state)}))}_notifyUrlChangeListeners(je="",Ot){this._urlChangeListeners.forEach(ri=>ri(je,Ot))}subscribe(je,Ot,ri){return this._subject.subscribe({next:je,error:Ot,complete:ri})}}return Ze.normalizeQueryParams=V,Ze.joinWithSlash=k,Ze.stripTrailingSlash=w,Ze.\u0275fac=function(je){return new(je||Ze)(e.LFG(U),e.LFG(P))},Ze.\u0275prov=e.Yz7({token:Ze,factory:function(){return function re(){return new q((0,e.LFG)(U),(0,e.LFG)(P))}()},providedIn:"root"}),Ze})();function ee(Ze){return Ze.replace(/\/index.html$/,"")}var x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Percent=1]="Percent",x[x.Currency=2]="Currency",x[x.Scientific=3]="Scientific",x))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),d=(()=>((d=d||{})[d.Narrow=0]="Narrow",d[d.Abbreviated=1]="Abbreviated",d[d.Wide=2]="Wide",d[d.Short=3]="Short",d))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),g=(()=>((g=g||{})[g.Decimal=0]="Decimal",g[g.Group=1]="Group",g[g.List=2]="List",g[g.PercentSign=3]="PercentSign",g[g.PlusSign=4]="PlusSign",g[g.MinusSign=5]="MinusSign",g[g.Exponential=6]="Exponential",g[g.SuperscriptingExponent=7]="SuperscriptingExponent",g[g.PerMille=8]="PerMille",g[g.Infinity=9]="Infinity",g[g.NaN=10]="NaN",g[g.TimeSeparator=11]="TimeSeparator",g[g.CurrencyDecimal=12]="CurrencyDecimal",g[g.CurrencyGroup=13]="CurrencyGroup",g))();function Q(Ze,Mt){return Ae((0,e.cg1)(Ze)[e.wAp.DateFormat],Mt)}function Z(Ze,Mt){return Ae((0,e.cg1)(Ze)[e.wAp.TimeFormat],Mt)}function te(Ze,Mt){return Ae((0,e.cg1)(Ze)[e.wAp.DateTimeFormat],Mt)}function Te(Ze,Mt){const je=(0,e.cg1)(Ze),Ot=je[e.wAp.NumberSymbols][Mt];if(void 0===Ot){if(Mt===g.CurrencyDecimal)return je[e.wAp.NumberSymbols][g.Decimal];if(Mt===g.CurrencyGroup)return je[e.wAp.NumberSymbols][g.Group]}return Ot}function lt(Ze){if(!Ze[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ze[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ae(Ze,Mt){for(let je=Mt;je>-1;je--)if(void 0!==Ze[je])return Ze[je];throw new Error("Locale data API: locale data undefined")}function xe(Ze){const[Mt,je]=Ze.split(":");return{hours:+Mt,minutes:+je}}const ye=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Le={},ot=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ht=(()=>((ht=ht||{})[ht.Short=0]="Short",ht[ht.ShortGMT=1]="ShortGMT",ht[ht.Long=2]="Long",ht[ht.Extended=3]="Extended",ht))(),At=(()=>((At=At||{})[At.FullYear=0]="FullYear",At[At.Month=1]="Month",At[At.Date=2]="Date",At[At.Hours=3]="Hours",At[At.Minutes=4]="Minutes",At[At.Seconds=5]="Seconds",At[At.FractionalSeconds=6]="FractionalSeconds",At[At.Day=7]="Day",At))(),hi=(()=>((hi=hi||{})[hi.DayPeriods=0]="DayPeriods",hi[hi.Days=1]="Days",hi[hi.Months=2]="Months",hi[hi.Eras=3]="Eras",hi))();function jt(Ze,Mt,je,Ot){let ri=function Fe(Ze){if(at(Ze))return Ze;if("number"==typeof Ze&&!isNaN(Ze))return new Date(Ze);if("string"==typeof Ze){if(Ze=Ze.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ze)){const[ri,Si=1,Ii=1]=Ze.split("-").map(nn=>+nn);return Gt(ri,Si-1,Ii)}const je=parseFloat(Ze);if(!isNaN(Ze-je))return new Date(je);let Ot;if(Ot=Ze.match(ye))return function rt(Ze){const Mt=new Date(0);let je=0,Ot=0;const ri=Ze[8]?Mt.setUTCFullYear:Mt.setFullYear,Si=Ze[8]?Mt.setUTCHours:Mt.setHours;Ze[9]&&(je=Number(Ze[9]+Ze[10]),Ot=Number(Ze[9]+Ze[11])),ri.call(Mt,Number(Ze[1]),Number(Ze[2])-1,Number(Ze[3]));const Ii=Number(Ze[4]||0)-je,nn=Number(Ze[5]||0)-Ot,Yn=Number(Ze[6]||0),Fn=Math.floor(1e3*parseFloat("0."+(Ze[7]||0)));return Si.call(Mt,Ii,nn,Yn,Fn),Mt}(Ot)}const Mt=new Date(Ze);if(!at(Mt))throw new Error(`Unable to convert "${Ze}" into a date`);return Mt}(Ze);Mt=di(je,Mt)||Mt;let nn,Ii=[];for(;Mt;){if(nn=ot.exec(Mt),!nn){Ii.push(Mt);break}{Ii=Ii.concat(nn.slice(1));const Tt=Ii.pop();if(!Tt)break;Mt=Tt}}let Yn=ri.getTimezoneOffset();Ot&&(Yn=Je(Ot,Yn),ri=function we(Ze,Mt,je){const Ot=je?-1:1,ri=Ze.getTimezoneOffset();return function Ke(Ze,Mt){return(Ze=new Date(Ze.getTime())).setMinutes(Ze.getMinutes()+Mt),Ze}(Ze,Ot*(Je(Mt,ri)-ri))}(ri,Ot,!0));let Fn="";return Ii.forEach(Tt=>{const ci=function Re(Ze){if(et[Ze])return et[Ze];let Mt;switch(Ze){case"G":case"GG":case"GGG":Mt=ei(hi.Eras,d.Abbreviated);break;case"GGGG":Mt=ei(hi.Eras,d.Wide);break;case"GGGGG":Mt=ei(hi.Eras,d.Narrow);break;case"y":Mt=Xe(At.FullYear,1,0,!1,!0);break;case"yy":Mt=Xe(At.FullYear,2,0,!0,!0);break;case"yyy":Mt=Xe(At.FullYear,3,0,!1,!0);break;case"yyyy":Mt=Xe(At.FullYear,4,0,!1,!0);break;case"Y":Mt=Rt(1);break;case"YY":Mt=Rt(2,!0);break;case"YYY":Mt=Rt(3);break;case"YYYY":Mt=Rt(4);break;case"M":case"L":Mt=Xe(At.Month,1,1);break;case"MM":case"LL":Mt=Xe(At.Month,2,1);break;case"MMM":Mt=ei(hi.Months,d.Abbreviated);break;case"MMMM":Mt=ei(hi.Months,d.Wide);break;case"MMMMM":Mt=ei(hi.Months,d.Narrow);break;case"LLL":Mt=ei(hi.Months,d.Abbreviated,r.Standalone);break;case"LLLL":Mt=ei(hi.Months,d.Wide,r.Standalone);break;case"LLLLL":Mt=ei(hi.Months,d.Narrow,r.Standalone);break;case"w":Mt=ft(1);break;case"ww":Mt=ft(2);break;case"W":Mt=ft(1,!0);break;case"d":Mt=Xe(At.Date,1);break;case"dd":Mt=Xe(At.Date,2);break;case"c":case"cc":Mt=Xe(At.Day,1);break;case"ccc":Mt=ei(hi.Days,d.Abbreviated,r.Standalone);break;case"cccc":Mt=ei(hi.Days,d.Wide,r.Standalone);break;case"ccccc":Mt=ei(hi.Days,d.Narrow,r.Standalone);break;case"cccccc":Mt=ei(hi.Days,d.Short,r.Standalone);break;case"E":case"EE":case"EEE":Mt=ei(hi.Days,d.Abbreviated);break;case"EEEE":Mt=ei(hi.Days,d.Wide);break;case"EEEEE":Mt=ei(hi.Days,d.Narrow);break;case"EEEEEE":Mt=ei(hi.Days,d.Short);break;case"a":case"aa":case"aaa":Mt=ei(hi.DayPeriods,d.Abbreviated);break;case"aaaa":Mt=ei(hi.DayPeriods,d.Wide);break;case"aaaaa":Mt=ei(hi.DayPeriods,d.Narrow);break;case"b":case"bb":case"bbb":Mt=ei(hi.DayPeriods,d.Abbreviated,r.Standalone,!0);break;case"bbbb":Mt=ei(hi.DayPeriods,d.Wide,r.Standalone,!0);break;case"bbbbb":Mt=ei(hi.DayPeriods,d.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Mt=ei(hi.DayPeriods,d.Abbreviated,r.Format,!0);break;case"BBBB":Mt=ei(hi.DayPeriods,d.Wide,r.Format,!0);break;case"BBBBB":Mt=ei(hi.DayPeriods,d.Narrow,r.Format,!0);break;case"h":Mt=Xe(At.Hours,1,-12);break;case"hh":Mt=Xe(At.Hours,2,-12);break;case"H":Mt=Xe(At.Hours,1);break;case"HH":Mt=Xe(At.Hours,2);break;case"m":Mt=Xe(At.Minutes,1);break;case"mm":Mt=Xe(At.Minutes,2);break;case"s":Mt=Xe(At.Seconds,1);break;case"ss":Mt=Xe(At.Seconds,2);break;case"S":Mt=Xe(At.FractionalSeconds,1);break;case"SS":Mt=Xe(At.FractionalSeconds,2);break;case"SSS":Mt=Xe(At.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Mt=Pe(ht.Short);break;case"ZZZZZ":Mt=Pe(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Mt=Pe(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Mt=Pe(ht.Long);break;default:return null}return et[Ze]=Mt,Mt}(Tt);Fn+=ci?ci(ri,je,Yn):"''"===Tt?"'":Tt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Fn}function Gt(Ze,Mt,je){const Ot=new Date(0);return Ot.setFullYear(Ze,Mt,je),Ot.setHours(0,0,0),Ot}function di(Ze,Mt){const je=function I(Ze){return(0,e.cg1)(Ze)[e.wAp.LocaleId]}(Ze);if(Le[je]=Le[je]||{},Le[je][Mt])return Le[je][Mt];let Ot="";switch(Mt){case"shortDate":Ot=Q(Ze,c.Short);break;case"mediumDate":Ot=Q(Ze,c.Medium);break;case"longDate":Ot=Q(Ze,c.Long);break;case"fullDate":Ot=Q(Ze,c.Full);break;case"shortTime":Ot=Z(Ze,c.Short);break;case"mediumTime":Ot=Z(Ze,c.Medium);break;case"longTime":Ot=Z(Ze,c.Long);break;case"fullTime":Ot=Z(Ze,c.Full);break;case"short":const ri=di(Ze,"shortTime"),Si=di(Ze,"shortDate");Ot=vt(te(Ze,c.Short),[ri,Si]);break;case"medium":const Ii=di(Ze,"mediumTime"),nn=di(Ze,"mediumDate");Ot=vt(te(Ze,c.Medium),[Ii,nn]);break;case"long":const Yn=di(Ze,"longTime"),Fn=di(Ze,"longDate");Ot=vt(te(Ze,c.Long),[Yn,Fn]);break;case"full":const Tt=di(Ze,"fullTime"),ci=di(Ze,"fullDate");Ot=vt(te(Ze,c.Full),[Tt,ci])}return Ot&&(Le[je][Mt]=Ot),Ot}function vt(Ze,Mt){return Mt&&(Ze=Ze.replace(/\{([^}]+)}/g,function(je,Ot){return null!=Mt&&Ot in Mt?Mt[Ot]:je})),Ze}function kt(Ze,Mt,je="-",Ot,ri){let Si="";(Ze<0||ri&&Ze<=0)&&(ri?Ze=1-Ze:(Ze=-Ze,Si=je));let Ii=String(Ze);for(;Ii.length0||nn>-je)&&(nn+=je),Ze===At.Hours)0===nn&&-12===je&&(nn=12);else if(Ze===At.FractionalSeconds)return function mt(Ze,Mt){return kt(Ze,3).substr(0,Mt)}(nn,Mt);const Yn=Te(Ii,g.MinusSign);return kt(nn,Mt,Yn,Ot,ri)}}function ei(Ze,Mt,je=r.Format,Ot=!1){return function(ri,Si){return function Kt(Ze,Mt,je,Ot,ri,Si){switch(je){case hi.Months:return function _(Ze,Mt,je){const Ot=(0,e.cg1)(Ze),Si=Ae([Ot[e.wAp.MonthsFormat],Ot[e.wAp.MonthsStandalone]],Mt);return Ae(Si,je)}(Mt,ri,Ot)[Ze.getMonth()];case hi.Days:return function n(Ze,Mt,je){const Ot=(0,e.cg1)(Ze),Si=Ae([Ot[e.wAp.DaysFormat],Ot[e.wAp.DaysStandalone]],Mt);return Ae(Si,je)}(Mt,ri,Ot)[Ze.getDay()];case hi.DayPeriods:const Ii=Ze.getHours(),nn=Ze.getMinutes();if(Si){const Fn=function W(Ze){const Mt=(0,e.cg1)(Ze);return lt(Mt),(Mt[e.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?xe(Ot):[xe(Ot[0]),xe(Ot[1])])}(Mt),Tt=function De(Ze,Mt,je){const Ot=(0,e.cg1)(Ze);lt(Ot);const Si=Ae([Ot[e.wAp.ExtraData][0],Ot[e.wAp.ExtraData][1]],Mt)||[];return Ae(Si,je)||[]}(Mt,ri,Ot),ci=Fn.findIndex(Ct=>{if(Array.isArray(Ct)){const[Wt,ki]=Ct,Ge=Ii>=Wt.hours&&nn>=Wt.minutes,Be=Ii0?Math.floor(ri/60):Math.ceil(ri/60);switch(Ze){case ht.Short:return(ri>=0?"+":"")+kt(Ii,2,Si)+kt(Math.abs(ri%60),2,Si);case ht.ShortGMT:return"GMT"+(ri>=0?"+":"")+kt(Ii,1,Si);case ht.Long:return"GMT"+(ri>=0?"+":"")+kt(Ii,2,Si)+":"+kt(Math.abs(ri%60),2,Si);case ht.Extended:return 0===Ot?"Z":(ri>=0?"+":"")+kt(Ii,2,Si)+":"+kt(Math.abs(ri%60),2,Si);default:throw new Error(`Unknown zone width "${Ze}"`)}}}function ut(Ze){return Gt(Ze.getFullYear(),Ze.getMonth(),Ze.getDate()+(4-Ze.getDay()))}function ft(Ze,Mt=!1){return function(je,Ot){let ri;if(Mt){const Si=new Date(je.getFullYear(),je.getMonth(),1).getDay()-1,Ii=je.getDate();ri=1+Math.floor((Ii+Si)/7)}else{const Si=ut(je),Ii=function Me(Ze){const Mt=Gt(Ze,0,1).getDay();return Gt(Ze,0,1+(Mt<=4?4:11)-Mt)}(Si.getFullYear()),nn=Si.getTime()-Ii.getTime();ri=1+Math.round(nn/6048e5)}return kt(ri,Ze,Te(Ot,g.MinusSign))}}function Rt(Ze,Mt=!1){return function(je,Ot){return kt(ut(je).getFullYear(),Ze,Te(Ot,g.MinusSign),Mt)}}const et={};function Je(Ze,Mt){Ze=Ze.replace(/:/g,"");const je=Date.parse("Jan 01, 1970 00:00:00 "+Ze)/6e4;return isNaN(je)?Mt:je}function at(Ze){return Ze instanceof Date&&!isNaN(Ze.valueOf())}const yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $e(Ze){const Mt=parseInt(Ze);if(isNaN(Mt))throw new Error("Invalid integer literal when parsing "+Ze);return Mt}function Ji(Ze,Mt){Mt=encodeURIComponent(Mt);for(const je of Ze.split(";")){const Ot=je.indexOf("="),[ri,Si]=-1==Ot?[je,""]:[je.slice(0,Ot),je.slice(Ot+1)];if(ri.trim()===Mt)return decodeURIComponent(Si)}return null}let Yi=(()=>{class Ze{constructor(je,Ot,ri,Si){this._iterableDiffers=je,this._keyValueDiffers=Ot,this._ngEl=ri,this._renderer=Si,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof je?je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof je?je.split(/\s+/):je,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const je=this._iterableDiffer.diff(this._rawClass);je&&this._applyIterableChanges(je)}else if(this._keyValueDiffer){const je=this._keyValueDiffer.diff(this._rawClass);je&&this._applyKeyValueChanges(je)}}_applyKeyValueChanges(je){je.forEachAddedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),je.forEachChangedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),je.forEachRemovedItem(Ot=>{Ot.previousValue&&this._toggleClass(Ot.key,!1)})}_applyIterableChanges(je){je.forEachAddedItem(Ot=>{if("string"!=typeof Ot.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ot.item)}`);this._toggleClass(Ot.item,!0)}),je.forEachRemovedItem(Ot=>this._toggleClass(Ot.item,!1))}_applyClasses(je){je&&(Array.isArray(je)||je instanceof Set?je.forEach(Ot=>this._toggleClass(Ot,!0)):Object.keys(je).forEach(Ot=>this._toggleClass(Ot,!!je[Ot])))}_removeClasses(je){je&&(Array.isArray(je)||je instanceof Set?je.forEach(Ot=>this._toggleClass(Ot,!1)):Object.keys(je).forEach(Ot=>this._toggleClass(Ot,!1)))}_toggleClass(je,Ot){(je=je.trim())&&je.split(/\s+/g).forEach(ri=>{Ot?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Ze})();class pn{constructor(Mt,je,Ot,ri){this.$implicit=Mt,this.ngForOf=je,this.index=Ot,this.count=ri}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Zt=(()=>{class Ze{constructor(je,Ot,ri){this._viewContainer=je,this._template=Ot,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(je){this._ngForOf=je,this._ngForOfDirty=!0}set ngForTrackBy(je){this._trackByFn=je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(je){je&&(this._template=je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const je=this._ngForOf;!this._differ&&je&&(this._differ=this._differs.find(je).create(this.ngForTrackBy))}if(this._differ){const je=this._differ.diff(this._ngForOf);je&&this._applyChanges(je)}}_applyChanges(je){const Ot=this._viewContainer;je.forEachOperation((ri,Si,Ii)=>{if(null==ri.previousIndex)Ot.createEmbeddedView(this._template,new pn(ri.item,this._ngForOf,-1,-1),null===Ii?void 0:Ii);else if(null==Ii)Ot.remove(null===Si?void 0:Si);else if(null!==Si){const nn=Ot.get(Si);Ot.move(nn,Ii),bi(nn,ri)}});for(let ri=0,Si=Ot.length;ri{bi(Ot.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(je,Ot){return!0}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Ze})();function bi(Ze,Mt){Ze.context.$implicit=Mt.item}let Nt=(()=>{class Ze{constructor(je,Ot){this._viewContainer=je,this._context=new $t,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ot}set ngIf(je){this._context.$implicit=this._context.ngIf=je,this._updateView()}set ngIfThen(je){pi("ngIfThen",je),this._thenTemplateRef=je,this._thenViewRef=null,this._updateView()}set ngIfElse(je){pi("ngIfElse",je),this._elseTemplateRef=je,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(je,Ot){return!0}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Ze})();class $t{constructor(){this.$implicit=null,this.ngIf=null}}function pi(Ze,Mt){if(Mt&&!Mt.createEmbeddedView)throw new Error(`${Ze} must be a TemplateRef, but received '${(0,e.AaK)(Mt)}'.`)}class Ri{constructor(Mt,je){this._viewContainerRef=Mt,this._templateRef=je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Mt){Mt&&!this._created?this.create():!Mt&&this._created&&this.destroy()}}let Oi=(()=>{class Ze{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(je){this._ngSwitch=je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(je)}_matchCase(je){const Ot=je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ot,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ot}_updateDefaultCases(je){if(this._defaultViews&&je!==this._defaultUsed){this._defaultUsed=je;for(let Ot=0;Ot{class Ze{constructor(je,Ot,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Ri(je,Ot)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Oi,9))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Ze})(),Nn=(()=>{class Ze{constructor(je,Ot,ri){ri._addDefault(new Ri(je,Ot))}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Oi,9))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngSwitchDefault",""]]}),Ze})(),wi=(()=>{class Ze{constructor(je,Ot,ri){this._ngEl=je,this._differs=Ot,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(je){this._ngStyle=je,!this._differ&&je&&(this._differ=this._differs.find(je).create())}ngDoCheck(){if(this._differ){const je=this._differ.diff(this._ngStyle);je&&this._applyChanges(je)}}_setStyle(je,Ot){const[ri,Si]=je.split(".");null!=(Ot=null!=Ot&&Si?`${Ot}${Si}`:Ot)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Ot):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(je){je.forEachRemovedItem(Ot=>this._setStyle(Ot.key,null)),je.forEachAddedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue)),je.forEachChangedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue))}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Ze})(),ji=(()=>{class Ze{constructor(je){this._viewContainerRef=je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(je){if(je.ngTemplateOutlet){const Ot=this._viewContainerRef;this._viewRef&&Ot.remove(Ot.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Ot.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.s_b))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Ze})();function Gn(Ze,Mt){return new e.vHH(2100,"")}class ar{createSubscription(Mt,je){return Mt.subscribe({next:je,error:Ot=>{throw Ot}})}dispose(Mt){Mt.unsubscribe()}onDestroy(Mt){Mt.unsubscribe()}}class kr{createSubscription(Mt,je){return Mt.then(je,Ot=>{throw Ot})}dispose(Mt){}onDestroy(Mt){}}const Pr=new kr,ia=new ar;let sa=(()=>{class Ze{constructor(je){this._ref=je,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(je){return this._obj?je!==this._obj?(this._dispose(),this.transform(je)):this._latestValue:(je&&this._subscribe(je),this._latestValue)}_subscribe(je){this._obj=je,this._strategy=this._selectStrategy(je),this._subscription=this._strategy.createSubscription(je,Ot=>this._updateLatestValue(je,Ot))}_selectStrategy(je){if((0,e.QGY)(je))return Pr;if((0,e.F4k)(je))return ia;throw Gn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(je,Ot){je===this._obj&&(this._latestValue=Ot,this._ref.markForCheck())}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.sBO,16))},Ze.\u0275pipe=e.Yjl({name:"async",type:Ze,pure:!1}),Ze})(),oa=(()=>{class Ze{transform(je){if(null==je)return null;if("string"!=typeof je)throw Gn();return je.toLowerCase()}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275pipe=e.Yjl({name:"lowercase",type:Ze,pure:!0}),Ze})();const La=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Ta=(()=>{class Ze{transform(je){if(null==je)return null;if("string"!=typeof je)throw Gn();return je.replace(La,Ot=>Ot[0].toUpperCase()+Ot.substr(1).toLowerCase())}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275pipe=e.Yjl({name:"titlecase",type:Ze,pure:!0}),Ze})(),rr=(()=>{class Ze{transform(je){if(null==je)return null;if("string"!=typeof je)throw Gn();return je.toUpperCase()}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275pipe=e.Yjl({name:"uppercase",type:Ze,pure:!0}),Ze})();const Yr=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let na=(()=>{class Ze{constructor(je,Ot){this.locale=je,this.defaultTimezone=Ot}transform(je,Ot="mediumDate",ri,Si){var Ii;if(null==je||""===je||je!=je)return null;try{return jt(je,Ot,Si||this.locale,null!==(Ii=null!=ri?ri:this.defaultTimezone)&&void 0!==Ii?Ii:void 0)}catch(nn){throw Gn()}}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.soG,16),e.Y36(Yr,24))},Ze.\u0275pipe=e.Yjl({name:"date",type:Ze,pure:!0}),Ze})(),Rr=(()=>{class Ze{transform(je){return JSON.stringify(je,null,2)}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275pipe=e.Yjl({name:"json",type:Ze,pure:!1}),Ze})(),la=(()=>{class Ze{constructor(je){this.differs=je,this.keyValues=[],this.compareFn=tr}transform(je,Ot=tr){if(!je||!(je instanceof Map)&&"object"!=typeof je)return null;this.differ||(this.differ=this.differs.find(je).create());const ri=this.differ.diff(je),Si=Ot!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(Ii=>{this.keyValues.push(function Xn(Ze,Mt){return{key:Ze,value:Mt}}(Ii.key,Ii.currentValue))})),(ri||Si)&&(this.keyValues.sort(Ot),this.compareFn=Ot),this.keyValues}}return Ze.\u0275fac=function(je){return new(je||Ze)(e.Y36(e.aQg,16))},Ze.\u0275pipe=e.Yjl({name:"keyvalue",type:Ze,pure:!1}),Ze})();function tr(Ze,Mt){const je=Ze.key,Ot=Mt.key;if(je===Ot)return 0;if(void 0===je)return 1;if(void 0===Ot)return-1;if(null===je)return 1;if(null===Ot)return-1;if("string"==typeof je&&"string"==typeof Ot)return je{class Ze{constructor(je){this._locale=je}transform(je,Ot,ri){if(!function jr(Ze){return!(null==Ze||""===Ze||Ze!=Ze)}(je))return null;ri=ri||this._locale;try{return function Ft(Ze,Mt,je){return function Ui(Ze,Mt,je,Ot,ri,Si,Ii=!1){let nn="",Yn=!1;if(isFinite(Ze)){let Fn=function It(Ze){let Ot,ri,Si,Ii,nn,Mt=Math.abs(Ze)+"",je=0;for((ri=Mt.indexOf("."))>-1&&(Mt=Mt.replace(".","")),(Si=Mt.search(/e/i))>0?(ri<0&&(ri=Si),ri+=+Mt.slice(Si+1),Mt=Mt.substring(0,Si)):ri<0&&(ri=Mt.length),Si=0;"0"===Mt.charAt(Si);Si++);if(Si===(nn=Mt.length))Ot=[0],ri=1;else{for(nn--;"0"===Mt.charAt(nn);)nn--;for(ri-=Si,Ot=[],Ii=0;Si<=nn;Si++,Ii++)Ot[Ii]=Number(Mt.charAt(Si))}return ri>22&&(Ot=Ot.splice(0,21),je=ri-1,ri=1),{digits:Ot,exponent:je,integerLen:ri}}(Ze);Ii&&(Fn=function it(Ze){if(0===Ze.digits[0])return Ze;const Mt=Ze.digits.length-Ze.integerLen;return Ze.exponent?Ze.exponent+=2:(0===Mt?Ze.digits.push(0,0):1===Mt&&Ze.digits.push(0),Ze.integerLen+=2),Ze}(Fn));let Tt=Mt.minInt,ci=Mt.minFrac,Ct=Mt.maxFrac;if(Si){const wt=Si.match(yt);if(null===wt)throw new Error(`${Si} is not a valid digit info`);const Ei=wt[1],Bi=wt[3],Rn=wt[5];null!=Ei&&(Tt=$e(Ei)),null!=Bi&&(ci=$e(Bi)),null!=Rn?Ct=$e(Rn):null!=Bi&&ci>Ct&&(Ct=ci)}!function ue(Ze,Mt,je){if(Mt>je)throw new Error(`The minimum number of digits after fraction (${Mt}) is higher than the maximum (${je}).`);let Ot=Ze.digits,ri=Ot.length-Ze.integerLen;const Si=Math.min(Math.max(Mt,ri),je);let Ii=Si+Ze.integerLen,nn=Ot[Ii];if(Ii>0){Ot.splice(Math.max(Ze.integerLen,Ii));for(let ci=Ii;ci=5)if(Ii-1<0){for(let ci=0;ci>Ii;ci--)Ot.unshift(0),Ze.integerLen++;Ot.unshift(1),Ze.integerLen++}else Ot[Ii-1]++;for(;ri=Fn?ki.pop():Yn=!1),Ct>=10?1:0},0);Tt&&(Ot.unshift(Tt),Ze.integerLen++)}(Fn,ci,Ct);let Wt=Fn.digits,ki=Fn.integerLen;const Ge=Fn.exponent;let Be=[];for(Yn=Wt.every(wt=>!wt);ki0?Be=Wt.splice(ki,Wt.length):(Be=Wt,Wt=[0]);const Ne=[];for(Wt.length>=Mt.lgSize&&Ne.unshift(Wt.splice(-Mt.lgSize,Wt.length).join(""));Wt.length>Mt.gSize;)Ne.unshift(Wt.splice(-Mt.gSize,Wt.length).join(""));Wt.length&&Ne.unshift(Wt.join("")),nn=Ne.join(Te(je,Ot)),Be.length&&(nn+=Te(je,ri)+Be.join("")),Ge&&(nn+=Te(je,g.Exponential)+"+"+Ge)}else nn=Te(je,g.Infinity);return nn=Ze<0&&!Yn?Mt.negPre+nn+Mt.negSuf:Mt.posPre+nn+Mt.posSuf,nn}(Ze,function pt(Ze,Mt="-"){const je={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=Ze.split(";"),ri=Ot[0],Si=Ot[1],Ii=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],nn=Ii[0],Yn=Ii[1]||"";je.posPre=nn.substr(0,nn.indexOf("#"));for(let Tt=0;Tt{class Ze{transform(je,Ot,ri){if(null==je)return null;if(!this.supports(je))throw Gn();return je.slice(Ot,ri)}supports(je){return"string"==typeof je||Array.isArray(je)}}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275pipe=e.Yjl({name:"slice",type:Ze,pure:!1}),Ze})(),gr=(()=>{class Ze{}return Ze.\u0275fac=function(je){return new(je||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({}),Ze})();const Cr="browser";function qn(Ze){return Ze===Cr}function ga(Ze){return"server"===Ze}let Hr=(()=>{class Ze{}return Ze.\u0275prov=(0,e.Yz7)({token:Ze,providedIn:"root",factory:()=>new xr((0,e.LFG)(h),window)}),Ze})();class xr{constructor(Mt,je){this.document=Mt,this.window=je,this.offset=()=>[0,0]}setOffset(Mt){this.offset=Array.isArray(Mt)?()=>Mt:Mt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Mt){this.supportsScrolling()&&this.window.scrollTo(Mt[0],Mt[1])}scrollToAnchor(Mt){if(!this.supportsScrolling())return;const je=function ha(Ze,Mt){const je=Ze.getElementById(Mt)||Ze.getElementsByName(Mt)[0];if(je)return je;if("function"==typeof Ze.createTreeWalker&&Ze.body&&(Ze.body.createShadowRoot||Ze.body.attachShadow)){const Ot=Ze.createTreeWalker(Ze.body,NodeFilter.SHOW_ELEMENT);let ri=Ot.currentNode;for(;ri;){const Si=ri.shadowRoot;if(Si){const Ii=Si.getElementById(Mt)||Si.querySelector(`[name="${Mt}"]`);if(Ii)return Ii}ri=Ot.nextNode()}}return null}(this.document,Mt);je&&(this.scrollToElement(je),je.focus())}setHistoryScrollRestoration(Mt){if(this.supportScrollRestoration()){const je=this.window.history;je&&je.scrollRestoration&&(je.scrollRestoration=Mt)}}scrollToElement(Mt){const je=Mt.getBoundingClientRect(),Ot=je.left+this.window.pageXOffset,ri=je.top+this.window.pageYOffset,Si=this.offset();this.window.scrollTo(Ot-Si[0],ri-Si[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Mt=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!Mt||!Mt.writable&&!Mt.set)}catch(Mt){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Mt){return!1}}}function Fr(Ze){return Object.getOwnPropertyDescriptor(Ze,"scrollRestoration")}class Wn{}},8138:(He,j,p)=>{"use strict";p.d(j,{JF:()=>xe,LE:()=>U,TP:()=>I,eN:()=>g});var e=p(9808),i=p(5e3),u=p(9646),b=p(8306),a=p(4351),y=p(9300),h=p(4004);class P{}class D{}class T{constructor(ye){this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?()=>{this.headers=new Map,ye.split("\n").forEach(Le=>{const ot=Le.indexOf(":");if(ot>0){const ht=Le.slice(0,ot),At=ht.toLowerCase(),hi=Le.slice(ot+1).trim();this.maybeSetNormalizedName(ht,At),this.headers.has(At)?this.headers.get(At).push(hi):this.headers.set(At,[hi])}})}:()=>{this.headers=new Map,Object.keys(ye).forEach(Le=>{let ot=ye[Le];const ht=Le.toLowerCase();"string"==typeof ot&&(ot=[ot]),ot.length>0&&(this.headers.set(ht,ot),this.maybeSetNormalizedName(Le,ht))})}:this.headers=new Map}has(ye){return this.init(),this.headers.has(ye.toLowerCase())}get(ye){this.init();const Le=this.headers.get(ye.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}append(ye,Le){return this.clone({name:ye,value:Le,op:"a"})}set(ye,Le){return this.clone({name:ye,value:Le,op:"s"})}delete(ye,Le){return this.clone({name:ye,value:Le,op:"d"})}maybeSetNormalizedName(ye,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,ye)}init(){this.lazyInit&&(this.lazyInit instanceof T?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ye=>this.applyUpdate(ye)),this.lazyUpdate=null))}copyFrom(ye){ye.init(),Array.from(ye.headers.keys()).forEach(Le=>{this.headers.set(Le,ye.headers.get(Le)),this.normalizedNames.set(Le,ye.normalizedNames.get(Le))})}clone(ye){const Le=new T;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof T?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),Le}applyUpdate(ye){const Le=ye.name.toLowerCase();switch(ye.op){case"a":case"s":let ot=ye.value;if("string"==typeof ot&&(ot=[ot]),0===ot.length)return;this.maybeSetNormalizedName(ye.name,Le);const ht=("a"===ye.op?this.headers.get(Le):void 0)||[];ht.push(...ot),this.headers.set(Le,ht);break;case"d":const At=ye.value;if(At){let hi=this.headers.get(Le);if(!hi)return;hi=hi.filter(jt=>-1===At.indexOf(jt)),0===hi.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,hi)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>ye(this.normalizedNames.get(Le),this.headers.get(Le)))}}class M{encodeKey(ye){return w(ye)}encodeValue(ye){return w(ye)}decodeKey(ye){return decodeURIComponent(ye)}decodeValue(ye){return decodeURIComponent(ye)}}const E=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w(pe){return encodeURIComponent(pe).replace(E,(ye,Le)=>{var ot;return null!==(ot=k[Le])&&void 0!==ot?ot:ye})}function V(pe){return`${pe}`}class U{constructor(ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new M,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A(pe,ye){const Le=new Map;return pe.length>0&&pe.replace(/^\?/,"").split("&").forEach(ht=>{const At=ht.indexOf("="),[hi,jt]=-1==At?[ye.decodeKey(ht),""]:[ye.decodeKey(ht.slice(0,At)),ye.decodeValue(ht.slice(At+1))],Gt=Le.get(hi)||[];Gt.push(jt),Le.set(hi,Gt)}),Le}(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(Le=>{const ot=ye.fromObject[Le];this.map.set(Le,Array.isArray(ot)?ot:[ot])})):this.map=null}has(ye){return this.init(),this.map.has(ye)}get(ye){this.init();const Le=this.map.get(ye);return Le?Le[0]:null}getAll(ye){return this.init(),this.map.get(ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ye,Le){return this.clone({param:ye,value:Le,op:"a"})}appendAll(ye){const Le=[];return Object.keys(ye).forEach(ot=>{const ht=ye[ot];Array.isArray(ht)?ht.forEach(At=>{Le.push({param:ot,value:At,op:"a"})}):Le.push({param:ot,value:ht,op:"a"})}),this.clone(Le)}set(ye,Le){return this.clone({param:ye,value:Le,op:"s"})}delete(ye,Le){return this.clone({param:ye,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(ye=>{const Le=this.encoder.encodeKey(ye);return this.map.get(ye).map(ot=>Le+"="+this.encoder.encodeValue(ot)).join("&")}).filter(ye=>""!==ye).join("&")}clone(ye){const Le=new U({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(ye),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ye=>this.map.set(ye,this.cloneFrom.map.get(ye))),this.updates.forEach(ye=>{switch(ye.op){case"a":case"s":const Le=("a"===ye.op?this.map.get(ye.param):void 0)||[];Le.push(V(ye.value)),this.map.set(ye.param,Le);break;case"d":if(void 0===ye.value){this.map.delete(ye.param);break}{let ot=this.map.get(ye.param)||[];const ht=ot.indexOf(V(ye.value));-1!==ht&&ot.splice(ht,1),ot.length>0?this.map.set(ye.param,ot):this.map.delete(ye.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(ye,Le){return this.map.set(ye,Le),this}get(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}delete(ye){return this.map.delete(ye),this}has(ye){return this.map.has(ye)}keys(){return this.map.keys()}}function de(pe){return"undefined"!=typeof ArrayBuffer&&pe instanceof ArrayBuffer}function q(pe){return"undefined"!=typeof Blob&&pe instanceof Blob}function re(pe){return"undefined"!=typeof FormData&&pe instanceof FormData}class ee{constructor(ye,Le,ot,ht){let At;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function X(pe){switch(pe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ht?(this.body=void 0!==ot?ot:null,At=ht):At=ot,At&&(this.reportProgress=!!At.reportProgress,this.withCredentials=!!At.withCredentials,At.responseType&&(this.responseType=At.responseType),At.headers&&(this.headers=At.headers),At.context&&(this.context=At.context),At.params&&(this.params=At.params)),this.headers||(this.headers=new T),this.context||(this.context=new ae),this.params){const hi=this.params.toString();if(0===hi.length)this.urlWithParams=Le;else{const jt=Le.indexOf("?");this.urlWithParams=Le+(-1===jt?"?":jtmt.set(Xe,ye.setHeaders[Xe]),di)),ye.setParams&&(vt=Object.keys(ye.setParams).reduce((mt,Xe)=>mt.set(Xe,ye.setParams[Xe]),vt)),new ee(ot,ht,hi,{params:vt,headers:di,context:kt,reportProgress:Gt,responseType:At,withCredentials:jt})}}var _e=(()=>((_e=_e||{})[_e.Sent=0]="Sent",_e[_e.UploadProgress=1]="UploadProgress",_e[_e.ResponseHeader=2]="ResponseHeader",_e[_e.DownloadProgress=3]="DownloadProgress",_e[_e.Response=4]="Response",_e[_e.User=5]="User",_e))();class x{constructor(ye,Le=200,ot="OK"){this.headers=ye.headers||new T,this.status=void 0!==ye.status?ye.status:Le,this.statusText=ye.statusText||ot,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}}class t extends x{constructor(ye={}){super(ye),this.type=_e.ResponseHeader}clone(ye={}){return new t({headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class r extends x{constructor(ye={}){super(ye),this.type=_e.Response,this.body=void 0!==ye.body?ye.body:null}clone(ye={}){return new r({body:void 0!==ye.body?ye.body:this.body,headers:ye.headers||this.headers,status:void 0!==ye.status?ye.status:this.status,statusText:ye.statusText||this.statusText,url:ye.url||this.url||void 0})}}class d extends x{constructor(ye){super(ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ye.url||"(unknown url)"}`:`Http failure response for ${ye.url||"(unknown url)"}: ${ye.status} ${ye.statusText}`,this.error=ye.error||null}}function c(pe,ye){return{body:ye,headers:pe.headers,context:pe.context,observe:pe.observe,params:pe.params,reportProgress:pe.reportProgress,responseType:pe.responseType,withCredentials:pe.withCredentials}}let g=(()=>{class pe{constructor(Le){this.handler=Le}request(Le,ot,ht={}){let At;if(Le instanceof ee)At=Le;else{let Gt,di;Gt=ht.headers instanceof T?ht.headers:new T(ht.headers),ht.params&&(di=ht.params instanceof U?ht.params:new U({fromObject:ht.params})),At=new ee(Le,ot,void 0!==ht.body?ht.body:null,{headers:Gt,context:ht.context,params:di,reportProgress:ht.reportProgress,responseType:ht.responseType||"json",withCredentials:ht.withCredentials})}const hi=(0,u.of)(At).pipe((0,a.b)(Gt=>this.handler.handle(Gt)));if(Le instanceof ee||"events"===ht.observe)return hi;const jt=hi.pipe((0,y.h)(Gt=>Gt instanceof r));switch(ht.observe||"body"){case"body":switch(At.responseType){case"arraybuffer":return jt.pipe((0,h.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return jt.pipe((0,h.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return jt.pipe((0,h.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return jt.pipe((0,h.U)(Gt=>Gt.body))}case"response":return jt;default:throw new Error(`Unreachable: unhandled observe type ${ht.observe}}`)}}delete(Le,ot={}){return this.request("DELETE",Le,ot)}get(Le,ot={}){return this.request("GET",Le,ot)}head(Le,ot={}){return this.request("HEAD",Le,ot)}jsonp(Le,ot){return this.request("JSONP",Le,{params:(new U).append(ot,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,ot={}){return this.request("OPTIONS",Le,ot)}patch(Le,ot,ht={}){return this.request("PATCH",Le,c(ht,ot))}post(Le,ot,ht={}){return this.request("POST",Le,c(ht,ot))}put(Le,ot,ht={}){return this.request("PUT",Le,c(ht,ot))}}return pe.\u0275fac=function(Le){return new(Le||pe)(i.LFG(P))},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})();class S{constructor(ye,Le){this.next=ye,this.interceptor=Le}handle(ye){return this.interceptor.intercept(ye,this.next)}}const I=new i.OlP("HTTP_INTERCEPTORS");let C=(()=>{class pe{intercept(Le,ot){return ot.handle(Le)}}return pe.\u0275fac=function(Le){return new(Le||pe)},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})();const Te=/^\)\]\}',?\n/;let ne=(()=>{class pe{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b.y(ot=>{const ht=this.xhrFactory.build();if(ht.open(Le.method,Le.urlWithParams),Le.withCredentials&&(ht.withCredentials=!0),Le.headers.forEach((Xe,_t)=>ht.setRequestHeader(Xe,_t.join(","))),Le.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const Xe=Le.detectContentTypeHeader();null!==Xe&&ht.setRequestHeader("Content-Type",Xe)}if(Le.responseType){const Xe=Le.responseType.toLowerCase();ht.responseType="json"!==Xe?Xe:"text"}const At=Le.serializeBody();let hi=null;const jt=()=>{if(null!==hi)return hi;const Xe=ht.statusText||"OK",_t=new T(ht.getAllResponseHeaders()),ei=function Ee(pe){return"responseURL"in pe&&pe.responseURL?pe.responseURL:/^X-Request-URL:/m.test(pe.getAllResponseHeaders())?pe.getResponseHeader("X-Request-URL"):null}(ht)||Le.url;return hi=new t({headers:_t,status:ht.status,statusText:Xe,url:ei}),hi},Gt=()=>{let{headers:Xe,status:_t,statusText:ei,url:Kt}=jt(),Pe=null;204!==_t&&(Pe=void 0===ht.response?ht.responseText:ht.response),0===_t&&(_t=Pe?200:0);let Ie=_t>=200&&_t<300;if("json"===Le.responseType&&"string"==typeof Pe){const ce=Pe;Pe=Pe.replace(Te,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(Me){Pe=ce,Ie&&(Ie=!1,Pe={error:Me,text:Pe})}}Ie?(ot.next(new r({body:Pe,headers:Xe,status:_t,statusText:ei,url:Kt||void 0})),ot.complete()):ot.error(new d({error:Pe,headers:Xe,status:_t,statusText:ei,url:Kt||void 0}))},di=Xe=>{const{url:_t}=jt(),ei=new d({error:Xe,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:_t||void 0});ot.error(ei)};let vt=!1;const kt=Xe=>{vt||(ot.next(jt()),vt=!0);let _t={type:_e.DownloadProgress,loaded:Xe.loaded};Xe.lengthComputable&&(_t.total=Xe.total),"text"===Le.responseType&&!!ht.responseText&&(_t.partialText=ht.responseText),ot.next(_t)},mt=Xe=>{let _t={type:_e.UploadProgress,loaded:Xe.loaded};Xe.lengthComputable&&(_t.total=Xe.total),ot.next(_t)};return ht.addEventListener("load",Gt),ht.addEventListener("error",di),ht.addEventListener("timeout",di),ht.addEventListener("abort",di),Le.reportProgress&&(ht.addEventListener("progress",kt),null!==At&&ht.upload&&ht.upload.addEventListener("progress",mt)),ht.send(At),ot.next({type:_e.Sent}),()=>{ht.removeEventListener("error",di),ht.removeEventListener("abort",di),ht.removeEventListener("load",Gt),ht.removeEventListener("timeout",di),Le.reportProgress&&(ht.removeEventListener("progress",kt),null!==At&&ht.upload&&ht.upload.removeEventListener("progress",mt)),ht.readyState!==ht.DONE&&ht.abort()}})}}return pe.\u0275fac=function(Le){return new(Le||pe)(i.LFG(e.JF))},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})();const ze=new i.OlP("XSRF_COOKIE_NAME"),be=new i.OlP("XSRF_HEADER_NAME");class ${}let ke=(()=>{class pe{constructor(Le,ot,ht){this.doc=Le,this.platform=ot,this.cookieName=ht,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return pe.\u0275fac=function(Le){return new(Le||pe)(i.LFG(e.K0),i.LFG(i.Lbi),i.LFG(ze))},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})(),lt=(()=>{class pe{constructor(Le,ot){this.tokenService=Le,this.headerName=ot}intercept(Le,ot){const ht=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||ht.startsWith("http://")||ht.startsWith("https://"))return ot.handle(Le);const At=this.tokenService.getToken();return null!==At&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,At)})),ot.handle(Le)}}return pe.\u0275fac=function(Le){return new(Le||pe)(i.LFG($),i.LFG(be))},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})(),W=(()=>{class pe{constructor(Le,ot){this.backend=Le,this.injector=ot,this.chain=null}handle(Le){if(null===this.chain){const ot=this.injector.get(I,[]);this.chain=ot.reduceRight((ht,At)=>new S(ht,At),this.backend)}return this.chain.handle(Le)}}return pe.\u0275fac=function(Le){return new(Le||pe)(i.LFG(D),i.LFG(i.zs3))},pe.\u0275prov=i.Yz7({token:pe,factory:pe.\u0275fac}),pe})(),Ae=(()=>{class pe{static disable(){return{ngModule:pe,providers:[{provide:lt,useClass:C}]}}static withOptions(Le={}){return{ngModule:pe,providers:[Le.cookieName?{provide:ze,useValue:Le.cookieName}:[],Le.headerName?{provide:be,useValue:Le.headerName}:[]]}}}return pe.\u0275fac=function(Le){return new(Le||pe)},pe.\u0275mod=i.oAB({type:pe}),pe.\u0275inj=i.cJS({providers:[lt,{provide:I,useExisting:lt,multi:!0},{provide:$,useClass:ke},{provide:ze,useValue:"XSRF-TOKEN"},{provide:be,useValue:"X-XSRF-TOKEN"}]}),pe})(),xe=(()=>{class pe{}return pe.\u0275fac=function(Le){return new(Le||pe)},pe.\u0275mod=i.oAB({type:pe}),pe.\u0275inj=i.cJS({providers:[g,{provide:P,useClass:W},ne,{provide:D,useExisting:ne}],imports:[[Ae.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),pe})()},5e3:(He,j,p)=>{"use strict";p.d(j,{$8M:()=>sl,$Z:()=>Pc,AFp:()=>w8,ALo:()=>$f,AaK:()=>P,AsE:()=>$c,BQk:()=>Fc,CHM:()=>ms,CRH:()=>fu,CZH:()=>xu,CqO:()=>Vc,DdM:()=>Bf,Dn7:()=>iu,EJc:()=>j7,EiD:()=>El,EpF:()=>o0,F$t:()=>ph,F4k:()=>j2,FYo:()=>Df,FiY:()=>r1,G48:()=>um,Gf:()=>hu,GfV:()=>kf,GkF:()=>s0,Gpc:()=>M,Gre:()=>Rh,HOy:()=>M0,Hsn:()=>mh,Ikx:()=>An,JOm:()=>ys,JVY:()=>t5,Jf7:()=>W3,L6k:()=>dd,LAX:()=>hd,LFG:()=>Fa,LSH:()=>Sl,Lbi:()=>W7,MAs:()=>es,MGl:()=>Z2,NdJ:()=>N1,O4$:()=>fr,OlP:()=>Or,Oqu:()=>b0,PXZ:()=>am,PiD:()=>Vs,Q6J:()=>Rc,QGY:()=>ts,Qsj:()=>If,R0b:()=>Fs,RDi:()=>Fr,Rgc:()=>il,SBq:()=>t3,Sil:()=>$7,Suo:()=>uu,TTD:()=>jr,TgZ:()=>Y2,Tol:()=>Sh,Udp:()=>Gc,VKq:()=>Uf,VLi:()=>rm,W1O:()=>d8,WFA:()=>l0,WLB:()=>Gf,X6Q:()=>B8,XFs:()=>De,Xpm:()=>ut,Y36:()=>Wo,YKP:()=>$h,YNc:()=>xc,Yjl:()=>rt,Yz7:()=>Q,ZZ4:()=>Nu,_Bn:()=>Mf,_UZ:()=>R1,_Vd:()=>k0,_c5:()=>Dm,_uU:()=>y0,aQg:()=>Hu,c2e:()=>L8,cJS:()=>te,cg1:()=>pa,d8E:()=>Mn,dDg:()=>O8,deG:()=>So,dqk:()=>di,eBb:()=>i5,eFA:()=>N8,ekj:()=>Wc,f3M:()=>Z1,g9A:()=>Eu,h0i:()=>q2,hGG:()=>Im,hij:()=>Kc,iGM:()=>a8,ifc:()=>ht,ip1:()=>bu,kEZ:()=>Wf,kL8:()=>Tr,kcU:()=>tt,lG2:()=>Fe,lcZ:()=>Qf,lnq:()=>x0,mCW:()=>Do,n5z:()=>rl,n_E:()=>R0,oAB:()=>Je,oJD:()=>k3,oxw:()=>uh,pB0:()=>n5,q3G:()=>ea,qLn:()=>a2,qOj:()=>_c,qZA:()=>P1,qzn:()=>Ao,s9C:()=>d0,sBO:()=>G8,sIi:()=>P2,s_b:()=>r3,soG:()=>B0,tBr:()=>po,tb:()=>wu,tp0:()=>Ts,uIk:()=>X4,vHH:()=>w,vpe:()=>oo,wAp:()=>on,xi3:()=>Xf,xp6:()=>c4,yhl:()=>E3,ynx:()=>Hc,z2F:()=>Iu,z3N:()=>Is,zSh:()=>pc,zs3:()=>Gs});var e=p(7579),i=p(727),u=p(8306),b=p(6451),a=p(3099);function y(s){for(let l in s)if(s[l]===y)return l;throw Error("Could not find renamed property on target object.")}function h(s,l){for(const m in l)l.hasOwnProperty(m)&&!s.hasOwnProperty(m)&&(s[m]=l[m])}function P(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(P).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const l=s.toString();if(null==l)return""+l;const m=l.indexOf("\n");return-1===m?l:l.substring(0,m)}function D(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const T=y({__forward_ref__:y});function M(s){return s.__forward_ref__=M,s.toString=function(){return P(this())},s}function A(s){return E(s)?s():s}function E(s){return"function"==typeof s&&s.hasOwnProperty(T)&&s.__forward_ref__===M}class w extends Error{constructor(l,m){super(function V(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,m)),this.code=l}}function U(s){return"string"==typeof s?s:null==s?"":String(s)}function Y(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():U(s)}function q(s,l){const m=l?` in ${l}`:"";throw new w(-201,`No provider for ${Y(s)} found${m}`)}function n(s,l){null==s&&function _(s,l,m,L){throw new Error(`ASSERTION ERROR: ${s}`+(null==L?"":` [Expected=> ${m} ${L} ${l} <=Actual]`))}(l,s,null,"!=")}function Q(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function te(s){return{providers:s.providers||[],imports:s.imports||[]}}function Te(s){return Ee(s,$)||Ee(s,lt)}function Ee(s,l){return s.hasOwnProperty(l)?s[l]:null}function be(s){return s&&(s.hasOwnProperty(ke)||s.hasOwnProperty(W))?s[ke]:null}const $=y({\u0275prov:y}),ke=y({\u0275inj:y}),lt=y({ngInjectableDef:y}),W=y({ngInjectorDef:y});var De=(()=>((De=De||{})[De.Default=0]="Default",De[De.Host=1]="Host",De[De.Self=2]="Self",De[De.SkipSelf=4]="SkipSelf",De[De.Optional=8]="Optional",De))();let he;function xe(s){const l=he;return he=s,l}function G(s,l,m){const L=Te(s);return L&&"root"==L.providedIn?void 0===L.value?L.value=L.factory():L.value:m&De.Optional?null:void 0!==l?l:void q(P(s),"Injector")}function pe(s){return{toString:s}.toString()}var ye=(()=>((ye=ye||{})[ye.OnPush=0]="OnPush",ye[ye.Default=1]="Default",ye))(),ht=(()=>{return(s=ht||(ht={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",ht;var s})();const At="undefined"!=typeof globalThis&&globalThis,hi="undefined"!=typeof window&&window,jt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,di=At||"undefined"!=typeof global&&global||hi||jt,mt={},Xe=[],_t=y({\u0275cmp:y}),ei=y({\u0275dir:y}),Kt=y({\u0275pipe:y}),Pe=y({\u0275mod:y}),Ie=y({\u0275fac:y}),ce=y({__NG_ELEMENT_ID__:y});let Me=0;function ut(s){return pe(()=>{const m={},L={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===ye.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||Xe,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||ht.Emulated,id:"c",styles:s.styles||Xe,_:null,setInput:null,schemas:s.schemas||null,tView:null},N=s.directives,z=s.features,oe=s.pipes;return L.id+=Me++,L.inputs=we(s.inputs,m),L.outputs=we(s.outputs),z&&z.forEach(Se=>Se(L)),L.directiveDefs=N?()=>("function"==typeof N?N():N).map(Rt):null,L.pipeDefs=oe?()=>("function"==typeof oe?oe():oe).map(et):null,L})}function Rt(s){return at(s)||function yt(s){return s[ei]||null}(s)}function et(s){return function mi(s){return s[Kt]||null}(s)}const Re={};function Je(s){return pe(()=>{const l={type:s.type,bootstrap:s.bootstrap||Xe,declarations:s.declarations||Xe,imports:s.imports||Xe,exports:s.exports||Xe,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(Re[s.id]=s.type),l})}function we(s,l){if(null==s)return mt;const m={};for(const L in s)if(s.hasOwnProperty(L)){let N=s[L],z=N;Array.isArray(N)&&(z=N[1],N=N[0]),m[N]=L,l&&(l[N]=z)}return m}const Fe=ut;function rt(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,onDestroy:s.type.prototype.ngOnDestroy||null}}function at(s){return s[_t]||null}function Xt(s,l){const m=s[Pe]||null;if(!m&&!0===l)throw new Error(`Type ${P(s)} does not have '\u0275mod' property.`);return m}function Oi(s){return Array.isArray(s)&&"object"==typeof s[1]}function dn(s){return Array.isArray(s)&&!0===s[1]}function Nn(s){return 0!=(8&s.flags)}function Tn(s){return 2==(2&s.flags)}function Kn(s){return 1==(1&s.flags)}function gn(s){return null!==s.template}function wi(s){return 0!=(512&s[2])}function cr(s,l){return s.hasOwnProperty(Ie)?s[Ie]:null}class ma{constructor(l,m,L){this.previousValue=l,this.currentValue=m,this.firstChange=L}isFirstChange(){return this.firstChange}}function jr(){return Dr}function Dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=Ur),Nr}function Nr(){const s=Cr(this),l=null==s?void 0:s.current;if(l){const m=s.previous;if(m===mt)s.previous=l;else for(let L in l)m[L]=l[L];s.current=null,this.ngOnChanges(l)}}function Ur(s,l,m,L){const N=Cr(s)||function ra(s,l){return s[gr]=l}(s,{previous:mt,current:null}),z=N.current||(N.current={}),oe=N.previous,Se=this.declaredInputs[m],Ve=oe[Se];z[Se]=new ma(Ve&&Ve.currentValue,l,oe===mt),s[L]=l}jr.ngInherit=!0;const gr="__ngSimpleChanges__";function Cr(s){return s[gr]||null}let xr;function Fr(s){xr=s}function ha(){return void 0!==xr?xr:"undefined"!=typeof document?document:void 0}function Wn(s){return!!s.listen}const Ze={createRenderer:(s,l)=>ha()};function je(s){for(;Array.isArray(s);)s=s[0];return s}function Si(s,l){return je(l[s])}function Ii(s,l){return je(l[s.index])}function Yn(s,l){return s.data[l]}function Fn(s,l){return s[l]}function Tt(s,l){const m=l[s];return Oi(m)?m:m[0]}function ci(s){return 4==(4&s[2])}function Ct(s){return 128==(128&s[2])}function ki(s,l){return null==l?null:s[l]}function Ge(s){s[18]=0}function Be(s,l){s[5]+=l;let m=s,L=s[3];for(;null!==L&&(1===l&&1===m[5]||-1===l&&0===m[5]);)L[5]+=l,m=L,L=L[3]}const Ne={lFrame:Sn(null),bindingsEnabled:!0};function Ca(){return Ne.bindingsEnabled}function Hi(){return Ne.lFrame.lView}function Vn(){return Ne.lFrame.tView}function ms(s){return Ne.lFrame.contextLView=s,s[8]}function _r(){let s=ss();for(;null!==s&&64===s.type;)s=s.parent;return s}function ss(){return Ne.lFrame.currentTNode}function dr(s,l){const m=Ne.lFrame;m.currentTNode=s,m.isParent=l}function gs(){return Ne.lFrame.isParent}function Cs(){Ne.lFrame.isParent=!1}function Vr(){const s=Ne.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function Oa(){return Ne.lFrame.bindingIndex}function se(){return Ne.lFrame.bindingIndex++}function me(s){const l=Ne.lFrame,m=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,m}function Ht(s,l){const m=Ne.lFrame;m.bindingIndex=m.bindingRootIndex=s,ni(l)}function ni(s){Ne.lFrame.currentDirectiveIndex=s}function Ci(s){const l=Ne.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function Pi(){return Ne.lFrame.currentQueryIndex}function en(s){Ne.lFrame.currentQueryIndex=s}function ln(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function En(s,l,m){if(m&De.SkipSelf){let N=l,z=s;for(;!(N=N.parent,null!==N||m&De.Host||(N=ln(z),null===N||(z=z[15],10&N.type))););if(null===N)return!1;l=N,s=z}const L=Ne.lFrame=vn();return L.currentTNode=l,L.lView=s,!0}function kn(s){const l=vn(),m=s[1];Ne.lFrame=l,l.currentTNode=m.firstChild,l.lView=s,l.tView=m,l.contextLView=s,l.bindingIndex=m.bindingStartIndex,l.inI18n=!1}function vn(){const s=Ne.lFrame,l=null===s?null:s.child;return null===l?Sn(s):l}function Sn(s){const l={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:s,child:null,inI18n:!1};return null!==s&&(s.child=l),l}function Qn(){const s=Ne.lFrame;return Ne.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Mr=Qn;function hr(){const s=Qn();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function ur(){return Ne.lFrame.selectedIndex}function zr(s){Ne.lFrame.selectedIndex=s}function zn(){const s=Ne.lFrame;return Yn(s.tView,s.selectedIndex)}function fr(){Ne.lFrame.currentNamespace="svg"}function tt(){!function Et(){Ne.lFrame.currentNamespace=null}()}function Jt(s,l){for(let m=l.directiveStart,L=l.directiveEnd;m=L)break}else l[Ve]<0&&(s[18]+=65536),(Se>11>16&&(3&s[2])===l){s[2]+=2048;try{z.call(Se)}finally{}}}else try{z.call(Se)}finally{}}class sn{constructor(l,m,L){this.factory=l,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=L}}function Ir(s,l,m){const L=Wn(s);let N=0;for(;Nl){oe=z-1;break}}}for(;z>16}(s),L=l;for(;m>0;)L=L[15],m--;return L}let zt=!0;function Ce(s){const l=zt;return zt=s,l}let nt=0;function Qt(s,l){const m=Ai(s,l);if(-1!==m)return m;const L=l[1];L.firstCreatePass&&(s.injectorIndex=l.length,ai(L.data,s),ai(l,null),ai(L.blueprint,null));const N=Vi(s,l),z=s.injectorIndex;if(ve(N)){const oe=Qe(N),Se=Ye(N,l),Ve=Se[1].data;for(let dt=0;dt<8;dt++)l[z+dt]=Se[oe+dt]|Ve[oe+dt]}return l[z+8]=N,z}function ai(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Ai(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function Vi(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let m=0,L=null,N=l;for(;null!==N;){const z=N[1],oe=z.type;if(L=2===oe?z.declTNode:1===oe?N[6]:null,null===L)return-1;if(m++,N=N[15],-1!==L.injectorIndex)return L.injectorIndex|m<<16}return-1}function xn(s,l,m){!function Dt(s,l,m){let L;"string"==typeof m?L=m.charCodeAt(0)||0:m.hasOwnProperty(ce)&&(L=m[ce]),null==L&&(L=m[ce]=nt++);const N=255&L;l.data[s+(N>>5)]|=1<=0?255&l:Ko:l}(m);if("function"==typeof z){if(!En(l,s,L))return L&De.Host?hn(N,m,L):On(l,m,L,N);try{const oe=z(L);if(null!=oe||L&De.Optional)return oe;q(m)}finally{Mr()}}else if("number"==typeof z){let oe=null,Se=Ai(s,l),Ve=-1,dt=L&De.Host?l[16][6]:null;for((-1===Se||L&De.SkipSelf)&&(Ve=-1===Se?Vi(s,l):l[Se+8],-1!==Ve&&d3(L,!1)?(oe=l[1],Se=Qe(Ve),l=Ye(Ve,l)):Se=-1);-1!==Se;){const St=l[1];if($s(z,Se,St.data)){const Yt=B1(Se,l,m,oe,L,dt);if(Yt!==Ss)return Yt}Ve=l[Se+8],-1!==Ve&&d3(L,l[1].data[Se+8]===dt)&&$s(z,Se,l)?(oe=St,Se=Qe(Ve),l=Ye(Ve,l)):Se=-1}}}return On(l,m,L,N)}const Ss={};function Ko(){return new $o(_r(),Hi())}function B1(s,l,m,L,N,z){const oe=l[1],Se=oe.data[s+8],St=Ea(Se,oe,m,null==L?Tn(Se)&&zt:L!=oe&&0!=(3&Se.type),N&De.Host&&z===Se);return null!==St?lo(l,oe,St,Se):Ss}function Ea(s,l,m,L,N){const z=s.providerIndexes,oe=l.data,Se=1048575&z,Ve=s.directiveStart,St=z>>20,li=N?Se+St:s.directiveEnd;for(let _i=L?Se:Se+St;_i=Ve&&Ni.type===m)return _i}if(N){const _i=oe[Ve];if(_i&&gn(_i)&&_i.type===m)return Ve}return null}function lo(s,l,m,L){let N=s[m];const z=l.data;if(function bn(s){return s instanceof sn}(N)){const oe=N;oe.resolving&&function ae(s,l){const m=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new w(-200,`Circular dependency in DI detected for ${s}${m}`)}(Y(z[m]));const Se=Ce(oe.canSeeViewProviders);oe.resolving=!0;const Ve=oe.injectImpl?xe(oe.injectImpl):null;En(s,L,De.Default);try{N=s[m]=oe.factory(void 0,z,s,L),l.firstCreatePass&&m>=L.directiveStart&&function Pt(s,l,m){const{ngOnChanges:L,ngOnInit:N,ngDoCheck:z}=l.type.prototype;if(L){const oe=Dr(l);(m.preOrderHooks||(m.preOrderHooks=[])).push(s,oe),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,oe)}N&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-s,N),z&&((m.preOrderHooks||(m.preOrderHooks=[])).push(s,z),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,z))}(m,z[m],l)}finally{null!==Ve&&xe(Ve),Ce(Se),oe.resolving=!1,Mr()}}return N}function $s(s,l,m){return!!(m[l+(s>>5)]&1<{const l=s.prototype.constructor,m=l[Ie]||al(l),L=Object.prototype;let N=Object.getPrototypeOf(s.prototype).constructor;for(;N&&N!==L;){const z=N[Ie]||al(N);if(z&&z!==m)return z;N=Object.getPrototypeOf(N)}return z=>new z})}function al(s){return E(s)?()=>{const l=al(A(s));return l&&l()}:cr(s)}function sl(s){return function zi(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const m=s.attrs;if(m){const L=m.length;let N=0;for(;N{const L=function ol(s){return function(...m){if(s){const L=s(...m);for(const N in L)this[N]=L[N]}}}(l);function N(...z){if(this instanceof N)return L.apply(this,z),this;const oe=new N(...z);return Se.annotation=oe,Se;function Se(Ve,dt,St){const Yt=Ve.hasOwnProperty(co)?Ve[co]:Object.defineProperty(Ve,co,{value:[]})[co];for(;Yt.length<=St;)Yt.push(null);return(Yt[St]=Yt[St]||[]).push(oe),Ve}}return m&&(N.prototype=Object.create(m.prototype)),N.prototype.ngMetadataName=s,N.annotationCls=N,N})}class Or{constructor(l,m){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Q({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const So=new Or("AnalyzeForEntryComponents");function ls(s,l){void 0===l&&(l=s);for(let m=0;mArray.isArray(m)?Xa(m,l):l(m))}function f3(s,l,m){l>=s.length?s.push(m):s.splice(l,0,m)}function U1(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function qo(s,l){const m=[];for(let L=0;L=0?s[1|L]=m:(L=~L,function J0(s,l,m,L){let N=s.length;if(N==l)s.push(m,L);else if(1===N)s.push(L,s[0]),s[0]=m;else{for(N--,s.push(s[N-1],s[N]);N>l;)s[N]=s[N-2],N--;s[l]=m,s[l+1]=L}}(s,L,l,m)),L}function e1(s,l){const m=Xs(s,l);if(m>=0)return s[1|m]}function Xs(s,l){return function W1(s,l,m){let L=0,N=s.length>>m;for(;N!==L;){const z=L+(N-L>>1),oe=s[z<l?N=z:L=z+1}return~(N<({token:s})),-1),r1=fo(wo("Optional"),8),Vs=fo(wo("Self"),2),Ts=fo(wo("SkipSelf"),4);let Ds,Q1;function mo(s){var l;return(null===(l=function b3(){if(void 0===Ds&&(Ds=null,di.trustedTypes))try{Ds=di.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ds}())||void 0===l?void 0:l.createHTML(s))||s}function bl(s){var l;return(null===(l=function x3(){if(void 0===Q1&&(Q1=null,di.trustedTypes))try{Q1=di.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Q1}())||void 0===l?void 0:l.createHTML(s))||s}class rs{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xl extends rs{getTypeName(){return"HTML"}}class J1 extends rs{getTypeName(){return"Style"}}class cd extends rs{getTypeName(){return"Script"}}class M3 extends rs{getTypeName(){return"URL"}}class To extends rs{getTypeName(){return"ResourceURL"}}function Is(s){return s instanceof rs?s.changingThisBreaksApplicationSecurity:s}function Ao(s,l){const m=E3(s);if(null!=m&&m!==l){if("ResourceURL"===m&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===l}function E3(s){return s instanceof rs&&s.getTypeName()||null}function t5(s){return new xl(s)}function dd(s){return new J1(s)}function i5(s){return new cd(s)}function hd(s){return new M3(s)}function n5(s){return new To(s)}class S3{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const m=(new window.DOMParser).parseFromString(mo(l),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(l):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class L3{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const L=this.inertDocument.createElement("body");m.appendChild(L)}}getInertBodyElement(l){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=mo(l),m;const L=this.inertDocument.createElement("body");return L.innerHTML=mo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(L),L}stripCustomNsAttrs(l){const m=l.attributes;for(let N=m.length-1;0Do(l.trim())).join(", ")),this.buf.push(" ",oe,'="',O3(Ve),'"')}var s;return this.buf.push(">"),!0}endElement(l){const m=l.nodeName.toLowerCase();ua.hasOwnProperty(m)&&!A3.hasOwnProperty(m)&&(this.buf.push(""))}chars(l){this.buf.push(O3(l))}checkClobberedElement(l,m){if(m&&(l.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return m}}const pd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,md=/([^\#-~ |!])/g;function O3(s){return s.replace(/&/g,"&").replace(pd,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(md,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let d1;function El(s,l){let m=null;try{d1=d1||function w3(s){const l=new L3(s);return function r5(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch(s){return!1}}()?new S3(l):l}(s);let L=l?String(l):"";m=d1.getInertBodyElement(L);let N=5,z=L;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,L=z,z=m.innerHTML,m=d1.getInertBodyElement(L)}while(L!==z);return mo((new I3).sanitizeChildren(h1(m)||m))}finally{if(m){const L=h1(m)||m;for(;L.firstChild;)L.removeChild(L.firstChild)}}}function h1(s){return"content"in s&&function gd(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ea=(()=>((ea=ea||{})[ea.NONE=0]="NONE",ea[ea.HTML=1]="HTML",ea[ea.STYLE=2]="STYLE",ea[ea.SCRIPT=3]="SCRIPT",ea[ea.URL=4]="URL",ea[ea.RESOURCE_URL=5]="RESOURCE_URL",ea))();function k3(s){const l=Co();return l?bl(l.sanitize(ea.HTML,s)||""):Ao(s,"HTML")?bl(Is(s)):El(ha(),U(s))}function Sl(s){const l=Co();return l?l.sanitize(ea.URL,s)||"":Ao(s,"URL")?Is(s):Do(U(s))}function Co(){const s=Hi();return s&&s[12]}const Ll="__ngContext__";function Va(s,l){s[Ll]=l}function Tl(s){const l=function f1(s){return s[Ll]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function r2(s){return s.ngOriginalError}function kl(s,...l){s.error(...l)}class a2{constructor(){this._console=console}handleError(l){const m=this._findOriginalError(l),L=function Sd(s){return s&&s.ngErrorLogger||kl}(l);L(this._console,"ERROR",l),m&&L(this._console,"ORIGINAL ERROR",m)}_findOriginalError(l){let m=l&&r2(l);for(;m&&r2(m);)m=r2(m);return m||null}}const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(di))();function W3(s){return s.ownerDocument.defaultView}function Os(s){return s instanceof Function?s():s}var ys=(()=>((ys=ys||{})[ys.Important=1]="Important",ys[ys.DashCase=2]="DashCase",ys))();function Nl(s,l){return undefined(s,l)}function ko(s){const l=s[3];return dn(l)?l[3]:l}function Hl(s){return Hd(s[13])}function $3(s){return Hd(s[4])}function Hd(s){for(;null!==s&&!dn(s);)s=s[4];return s}function Po(s,l,m,L,N){if(null!=L){let z,oe=!1;dn(L)?z=L:Oi(L)&&(oe=!0,L=L[0]);const Se=je(L);0===s&&null!==m?null==N?m1(l,m,Se):vo(l,m,Se,N||null,!0):1===s&&null!==m?vo(l,m,Se,N||null,!0):2===s?function Gl(s,l,m){const L=yo(s,l);L&&function Wd(s,l,m,L){Wn(s)?s.removeChild(l,m,L):l.removeChild(m)}(s,L,l,m)}(l,Se,oe):3===s&&l.destroyNode(Se),null!=z&&function r4(s,l,m,L,N){const z=m[7];z!==je(m)&&Po(l,s,L,z,N);for(let Se=10;Se0&&(s[m-1][4]=L[4]);const z=U1(s,10+l);!function l2(s,l){C1(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(L[1],L);const oe=z[19];null!==oe&&oe.detachView(z[1]),L[3]=null,L[4]=null,L[2]&=-129}return L}function J3(s,l){if(!(256&l[2])){const m=l[11];Wn(m)&&m.destroyNode&&C1(s,l,m,3,null,null),function Bd(s){let l=s[13];if(!l)return zl(s[1],s);for(;l;){let m=null;if(Oi(l))m=l[13];else{const L=l[10];L&&(m=L)}if(!m){for(;l&&!l[4]&&l!==s;)Oi(l)&&zl(l[1],l),l=l[3];null===l&&(l=s),Oi(l)&&zl(l[1],l),m=l&&l[4]}l=m}}(l)}}function zl(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function q3(s,l){let m;if(null!=s&&null!=(m=s.destroyHooks))for(let L=0;L=0?L[N=dt]():L[N=-dt].unsubscribe(),z+=2}else{const oe=L[N=m[z+1]];m[z].call(oe)}if(null!==L){for(let z=N+1;zz?"":N[Yt+1].toLowerCase();const _i=8&L?li:null;if(_i&&-1!==a4(_i,dt,0)||2&L&&dt!==li){if(ds(L))return!1;oe=!0}}}}else{if(!oe&&!ds(L)&&!ds(Ve))return!1;if(oe&&ds(Ve))continue;oe=!1,L=Ve|1&L}}return ds(L)||oe}function ds(s){return 0==(1&s)}function jd(s,l,m,L){if(null===l)return-1;let N=0;if(L||!m){let z=!1;for(;N-1)for(m++;m0?'="'+Se+'"':"")+"]"}else 8&L?N+="."+oe:4&L&&(N+=" "+oe);else""!==N&&!ds(oe)&&(l+=g2(z,N),N=""),L=oe,z=z||!ds(L);m++}return""!==N&&(l+=g2(z,N)),l}const Bn={};function c4(s){d4(Vn(),Hi(),ur()+s,!1)}function d4(s,l,m,L){if(!L)if(3==(3&l[2])){const z=s.preOrderCheckHooks;null!==z&&gi(l,z,m)}else{const z=s.preOrderHooks;null!==z&&ti(l,z,0,m)}zr(m)}function v1(s,l){return s<<17|l<<2}function hs(s){return s>>17&32767}function $l(s){return 2|s}function ks(s){return(131068&s)>>2}function Ql(s,l){return-131069&s|l<<2}function C2(s){return 1|s}function l6(s,l){const m=s.contentQueries;if(null!==m)for(let L=0;L20&&d4(s,l,20,!1),m(L,N)}finally{zr(z)}}function x4(s,l,m){if(Nn(l)){const N=l.directiveEnd;for(let z=l.directiveStart;z0;){const m=s[--l];if("number"==typeof m&&m<0)return m}return 0})(Se)!=Ve&&Se.push(Ve),Se.push(L,N,oe)}}function _6(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function y6(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function w5(s,l,m){if(m){if(l.exportAs)for(let L=0;L0&&L2(m)}}function L2(s){for(let L=Hl(s);null!==L;L=$3(L))for(let N=10;N0&&L2(z)}const m=s[1].components;if(null!==m)for(let L=0;L0&&L2(N)}}function w6(s,l){const m=Tt(l,s),L=m[1];(function P4(s,l){for(let m=l.length;mPromise.resolve(null))();function N4(s){return s[7]||(s[7]=[])}function H4(s){return s.cleanup||(s.cleanup=[])}function F4(s,l,m){return(null===s||gn(s))&&(m=function Ot(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(m[l.index])),m[11]}function A6(s,l){const m=s[9],L=m?m.get(a2,null):null;L&&L.handleError(l)}function V4(s,l,m,L,N){for(let z=0;zthis.processProvider(Se,l,m)),Xa([l],Se=>this.processInjectorType(Se,[],z)),this.records.set(fc,y1(void 0,this));const oe=this.records.get(pc);this.scope=null!=oe?oe.value:null,this.source=N||("object"==typeof l?null:P(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,m=Js,L=De.Default){this.assertNotDestroyed();const N=gl(this),z=xe(void 0);try{if(!(L&De.SkipSelf)){let Se=this.records.get(l);if(void 0===Se){const Ve=function P5(s){return"function"==typeof s||"object"==typeof s&&s instanceof Or}(l)&&Te(l);Se=Ve&&this.injectableDefInScope(Ve)?y1(Cc(l),O2):null,this.records.set(l,Se)}if(null!=Se)return this.hydrate(l,Se)}return(L&De.Self?gc():this.parent).get(l,m=L&De.Optional&&m===Js?null:m)}catch(oe){if("NullInjectorError"===oe.name){if((oe[uo]=oe[uo]||[]).unshift(P(l)),N)throw oe;return function nd(s,l,m,L){const N=s[uo];throw l[t1]&&N.unshift(l[t1]),s.message=function C3(s,l,m,L=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let N=P(l);if(Array.isArray(l))N=l.map(P).join(" -> ");else if("object"==typeof l){let z=[];for(let oe in l)if(l.hasOwnProperty(oe)){let Se=l[oe];z.push(oe+":"+("string"==typeof Se?JSON.stringify(Se):P(Se)))}N=`{${z.join(", ")}}`}return`${m}${L?"("+L+")":""}[${N}]: ${s.replace(ml,"\n ")}`}("\n"+s.message,N,m,L),s.ngTokenPath=N,s[uo]=null,s}(oe,l,"R3InjectorError",this.source)}throw oe}finally{xe(z),gl(N)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((L,N)=>l.push(P(N))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processInjectorType(l,m,L){if(!(l=A(l)))return!1;let N=be(l);const z=null==N&&l.ngModule||void 0,oe=void 0===z?l:z,Se=-1!==L.indexOf(oe);if(void 0!==z&&(N=be(z)),null==N)return!1;if(null!=N.imports&&!Se){let St;L.push(oe);try{Xa(N.imports,Yt=>{this.processInjectorType(Yt,m,L)&&(void 0===St&&(St=[]),St.push(Yt))})}finally{}if(void 0!==St)for(let Yt=0;Ytthis.processProvider(Ni,li,_i||Xe))}}this.injectorDefTypes.add(oe);const Ve=cr(oe)||(()=>new oe);this.records.set(oe,y1(Ve,O2));const dt=N.providers;if(null!=dt&&!Se){const St=l;Xa(dt,Yt=>this.processProvider(Yt,St,dt))}return void 0!==z&&void 0!==l.providers}processProvider(l,m,L){let N=b1(l=A(l))?l:A(l&&l.provide);const z=function N6(s,l,m){return H6(s)?y1(void 0,s.useValue):y1(z4(s),O2)}(l);if(b1(l)||!0!==l.multi)this.records.get(N);else{let oe=this.records.get(N);oe||(oe=y1(void 0,O2,!0),oe.factory=()=>m3(oe.multi),this.records.set(N,oe)),N=l,oe.multi.push(l)}this.records.set(N,z)}hydrate(l,m){return m.value===O2&&(m.value=k6,m.value=m.factory()),"object"==typeof m.value&&m.value&&function k5(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(l){if(!l.providedIn)return!1;const m=A(l.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Cc(s){const l=Te(s),m=null!==l?l.factory:cr(s);if(null!==m)return m;if(s instanceof Or)throw new w(204,!1);if(s instanceof Function)return function D5(s){const l=s.length;if(l>0)throw qo(l,"?"),new w(204,!1);const m=function ne(s){const l=s&&(s[$]||s[lt]);if(l){const m=function ze(s){if(s.hasOwnProperty("name"))return s.name;const l=(""+s).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),l}return null}(s);return null!==m?()=>m.factory(s):()=>new s}(s);throw new w(204,!1)}function z4(s,l,m){let L;if(b1(s)){const N=A(s);return cr(N)||Cc(N)}if(H6(s))L=()=>A(s.useValue);else if(function B4(s){return!(!s||!s.useFactory)}(s))L=()=>s.useFactory(...m3(s.deps||[]));else if(function I5(s){return!(!s||!s.useExisting)}(s))L=()=>Fa(A(s.useExisting));else{const N=A(s&&(s.useClass||s.provide));if(!function O5(s){return!!s.deps}(s))return cr(N)||Cc(N);L=()=>new N(...m3(s.deps))}return L}function y1(s,l,m=!1){return{factory:s,value:l,multi:m?[]:void 0}}function H6(s){return null!==s&&"object"==typeof s&&id in s}function b1(s){return"function"==typeof s}let Gs=(()=>{class s{static create(m,L){var N;if(Array.isArray(m))return P6({name:""},L,m,"");{const z=null!==(N=m.name)&&void 0!==N?N:"";return P6({name:z},m.parent,m.providers,z)}}}return s.THROW_IF_NOT_FOUND=Js,s.NULL=new O6,s.\u0275prov=Q({token:s,providedIn:"any",factory:()=>Fa(fc)}),s.__NG_ELEMENT_ID__=-1,s})();function Q6(s,l){Jt(Tl(s)[1],_r())}function _c(s){let l=function X6(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),m=!0;const L=[s];for(;l;){let N;if(gn(s))N=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new w(903,"");N=l.\u0275dir}if(N){if(m){L.push(N);const oe=s;oe.inputs=$4(s.inputs),oe.declaredInputs=$4(s.declaredInputs),oe.outputs=$4(s.outputs);const Se=N.hostBindings;Se&&U5(s,Se);const Ve=N.viewQuery,dt=N.contentQueries;if(Ve&&z5(s,Ve),dt&&B5(s,dt),h(s.inputs,N.inputs),h(s.declaredInputs,N.declaredInputs),h(s.outputs,N.outputs),gn(N)&&N.data.animation){const St=s.data;St.animation=(St.animation||[]).concat(N.data.animation)}}const z=N.features;if(z)for(let oe=0;oe=0;L--){const N=s[L];N.hostVars=l+=N.hostVars,N.hostAttrs=za(N.hostAttrs,m=za(m,N.hostAttrs))}}(L)}function $4(s){return s===mt?{}:s===Xe?[]:s}function z5(s,l){const m=s.viewQuery;s.viewQuery=m?(L,N)=>{l(L,N),m(L,N)}:l}function B5(s,l){const m=s.contentQueries;s.contentQueries=m?(L,N,z)=>{l(L,N,z),m(L,N,z)}:l}function U5(s,l){const m=s.hostBindings;s.hostBindings=m?(L,N)=>{l(L,N),m(L,N)}:l}let k2=null;function Vo(){if(!k2){const s=di.Symbol;if(s&&s.iterator)k2=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mSe(je(nr[L.index])):L.index;if(Wn(m)){let nr=null;if(!Se&&Ve&&(nr=function c0(s,l,m,L){const N=s.cleanup;if(null!=N)for(let z=0;zVe?Se[Ve]:null}"string"==typeof oe&&(z+=2)}return null}(s,l,N,L.index)),null!==nr)(nr.__ngLastListenerFn__||nr).__ngNextListenerFn__=z,nr.__ngLastListenerFn__=z,_i=!1;else{z=zc(L,l,Yt,z,!1);const wr=m.listen(mn,N,z);li.push(z,wr),St&&St.push(N,Ln,Fi,Fi+1)}}else z=zc(L,l,Yt,z,!0),mn.addEventListener(N,z,oe),li.push(z),St&&St.push(N,Ln,Fi,oe)}else z=zc(L,l,Yt,z,!1);const Ni=L.outputs;let Qi;if(_i&&null!==Ni&&(Qi=Ni[N])){const rn=Qi.length;if(rn)for(let mn=0;mn0;)l=l[15],s--;return l}(s,Ne.lFrame.contextLView))[8]}(s)}function fh(s,l){let m=null;const L=function Kd(s){const l=s.attrs;if(null!=l){const m=l.indexOf(5);if(0==(1&m))return l[m+1]}return null}(s);for(let N=0;N=0}const wa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bc(s){return s.substring(wa.key,wa.keyEnd)}function bh(s,l){const m=wa.textEnd;return m===l?-1:(l=wa.keyEnd=function K5(s,l,m){for(;l32;)l++;return l}(s,wa.key=l,m),H1(s,l,m))}function H1(s,l,m){for(;l=0;m=bh(l,m))Ha(s,Bc(l),!0)}function Ns(s,l,m,L){const N=Hi(),z=Vn(),oe=me(2);z.firstUpdatePass&&_0(z,s,oe,L),l!==Bn&&Wa(N,oe,l)&&v0(z,z.data[ur()],N,N[11],s,N[oe+1]=function Ih(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=P(Is(s)))),s}(l,m),L,oe)}function Hs(s,l,m,L){const N=Vn(),z=me(2);N.firstUpdatePass&&_0(N,null,z,L);const oe=Hi();if(m!==Bn&&Wa(oe,z,m)){const Se=N.data[ur()];if(Oh(Se,L)&&!Lh(N,z)){let Ve=L?Se.classesWithoutHost:Se.stylesWithoutHost;null!==Ve&&(m=D(Ve,m||"")),W2(N,Se,oe,m,L)}else!function Ah(s,l,m,L,N,z,oe,Se){N===Bn&&(N=Xe);let Ve=0,dt=0,St=0=s.expandoStartIndex}function _0(s,l,m,L){const N=s.data;if(null===N[m+1]){const z=N[ur()],oe=Lh(s,m);Oh(z,L)&&null===l&&!oe&&(l=!1),l=function X5(s,l,m,L){const N=Ci(s);let z=L?l.residualClasses:l.residualStyles;if(null===N)0===(L?l.classBindings:l.styleBindings)&&(m=K2(m=jc(null,s,l,m,L),l.attrs,L),z=null);else{const oe=l.directiveStylingLast;if(-1===oe||s[oe]!==N)if(m=jc(N,s,l,m,L),null===z){let Ve=function J5(s,l,m){const L=m?l.classBindings:l.styleBindings;if(0!==ks(L))return s[hs(L)]}(s,l,L);void 0!==Ve&&Array.isArray(Ve)&&(Ve=jc(null,s,l,Ve[1],L),Ve=K2(Ve,l.attrs,L),function Th(s,l,m,L){s[hs(m?l.classBindings:l.styleBindings)]=L}(s,l,L,Ve))}else z=function q5(s,l,m){let L;const N=l.directiveEnd;for(let z=1+l.directiveStylingLast;z0)&&(dt=!0)}else St=m;if(N)if(0!==Ve){const li=hs(s[Se+1]);s[L+1]=v1(li,Se),0!==li&&(s[li+1]=Ql(s[li+1],L)),s[Se+1]=function u4(s,l){return 131071&s|l<<17}(s[Se+1],L)}else s[L+1]=v1(Se,0),0!==Se&&(s[Se+1]=Ql(s[Se+1],L)),Se=L;else s[L+1]=v1(Ve,0),0===Se?Se=L:s[Ve+1]=Ql(s[Ve+1],L),Ve=L;dt&&(s[L+1]=$l(s[L+1])),p0(s,St,L,!0),p0(s,St,L,!1),function yh(s,l,m,L,N){const z=N?s.residualClasses:s.residualStyles;null!=z&&"string"==typeof l&&Xs(z,l)>=0&&(m[L+1]=C2(m[L+1]))}(l,St,s,L,z),oe=v1(Se,Ve),z?l.classBindings=oe:l.styleBindings=oe}(N,z,l,m,oe,L)}}function jc(s,l,m,L,N){let z=null;const oe=m.directiveEnd;let Se=m.directiveStylingLast;for(-1===Se?Se=m.directiveStart:Se++;Se0;){const Ve=s[N],dt=Array.isArray(Ve),St=dt?Ve[1]:Ve,Yt=null===St;let li=m[N+1];li===Bn&&(li=Yt?Xe:void 0);let _i=Yt?e1(li,L):St===L?li:void 0;if(dt&&!Zc(_i)&&(_i=e1(Ve,L)),Zc(_i)&&(Se=_i,oe))return Se;const Ni=s[N+1];N=oe?hs(Ni):ks(Ni)}if(null!==l){let Ve=z?l.residualClasses:l.residualStyles;null!=Ve&&(Se=e1(Ve,L))}return Se}function Zc(s){return void 0!==s}function Oh(s,l){return 0!=(s.flags&(l?16:32))}function y0(s,l=""){const m=Hi(),L=Vn(),N=s+20,z=L.firstCreatePass?Ho(L,N,1,l,null):L.data[N],oe=m[N]=function o2(s,l){return Wn(s)?s.createText(l):s.createTextNode(l)}(m[11],l);h2(L,m,oe,z),dr(z,!1)}function b0(s){return Kc("",s,""),b0}function Kc(s,l,m){const L=Hi(),N=Bo(L,s,l,m);return N!==Bn&&Us(L,ur(),N),Kc}function $c(s,l,m,L,N){const z=Hi(),oe=function M1(s,l,m,L,N,z){const Se=zo(s,Oa(),m,N);return me(2),Se?l+U(m)+L+U(N)+z:Bn}(z,s,l,m,L,N);return oe!==Bn&&Us(z,ur(),oe),$c}function x0(s,l,m,L,N,z,oe){const Se=Hi(),Ve=function E1(s,l,m,L,N,z,oe,Se){const dt=N2(s,Oa(),m,N,oe);return me(3),dt?l+U(m)+L+U(N)+z+U(oe)+Se:Bn}(Se,s,l,m,L,N,z,oe);return Ve!==Bn&&Us(Se,ur(),Ve),x0}function M0(s,l,m,L,N,z,oe,Se,Ve){const dt=Hi(),St=Uo(dt,s,l,m,L,N,z,oe,Se,Ve);return St!==Bn&&Us(dt,ur(),St),M0}function Rh(s,l,m){Hs(Ha,Rs,Bo(Hi(),s,l,m),!0)}function An(s,l,m){const L=Hi();return Wa(L,se(),l)&&qa(Vn(),zn(),L,s,l,L[11],m,!0),An}function Mn(s,l,m){const L=Hi();if(Wa(L,se(),l)){const z=Vn(),oe=zn();qa(z,oe,L,s,l,F4(Ci(z.data),oe,L),m,!0)}return Mn}const mr=void 0;var Sa=["en",[["a","p"],["AM","PM"],mr],[["AM","PM"],mr,mr],[["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"]],mr,[["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"]],mr,[["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}",mr,"{1} 'at' {0}",mr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Er(s){const m=Math.floor(Math.abs(s)),L=s.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===L?1:5}];let Lr={};function pa(s){const l=function ja(s){return s.toLowerCase().replace(/_/g,"-")}(s);let m=Ya(l);if(m)return m;const L=l.split("-")[0];if(m=Ya(L),m)return m;if("en"===L)return Sa;throw new Error(`Missing locale data for the locale "${s}".`)}function Tr(s){return pa(s)[on.PluralCase]}function Ya(s){return s in Lr||(Lr[s]=di.ng&&di.ng.common&&di.ng.common.locales&&di.ng.common.locales[s]),Lr[s]}var on=(()=>((on=on||{})[on.LocaleId=0]="LocaleId",on[on.DayPeriodsFormat=1]="DayPeriodsFormat",on[on.DayPeriodsStandalone=2]="DayPeriodsStandalone",on[on.DaysFormat=3]="DaysFormat",on[on.DaysStandalone=4]="DaysStandalone",on[on.MonthsFormat=5]="MonthsFormat",on[on.MonthsStandalone=6]="MonthsStandalone",on[on.Eras=7]="Eras",on[on.FirstDayOfWeek=8]="FirstDayOfWeek",on[on.WeekendRange=9]="WeekendRange",on[on.DateFormat=10]="DateFormat",on[on.TimeFormat=11]="TimeFormat",on[on.DateTimeFormat=12]="DateTimeFormat",on[on.NumberSymbols=13]="NumberSymbols",on[on.NumberFormats=14]="NumberFormats",on[on.CurrencyCode=15]="CurrencyCode",on[on.CurrencySymbol=16]="CurrencySymbol",on[on.CurrencyName=17]="CurrencyName",on[on.Currencies=18]="Currencies",on[on.Directionality=19]="Directionality",on[on.PluralCase=20]="PluralCase",on[on.ExtraData=21]="ExtraData",on))();const Wr="en-US";let Pa=Wr;function Gh(s,l,m,L,N){if(s=A(s),Array.isArray(s))for(let z=0;z>20;if(b1(s)||!s.multi){const _i=new sn(Ve,N,Wo),Ni=Yh(Se,l,N?St:St+li,Yt);-1===Ni?(xn(Qt(dt,oe),z,Se),Wh(z,s,l.length),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(_i),oe.push(_i)):(m[Ni]=_i,oe[Ni]=_i)}else{const _i=Yh(Se,l,St+li,Yt),Ni=Yh(Se,l,St,St+li),Qi=_i>=0&&m[_i],rn=Ni>=0&&m[Ni];if(N&&!rn||!N&&!Qi){xn(Qt(dt,oe),z,Se);const mn=function Qp(s,l,m,L,N){const z=new sn(s,m,Wo);return z.multi=[],z.index=l,z.componentProviders=0,I0(z,N,L&&!m),z}(N?$p:O0,m.length,N,L,Ve);!N&&rn&&(m[Ni].providerFactory=mn),Wh(z,s,l.length,0),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(mn),oe.push(mn)}else Wh(z,s,_i>-1?_i:Ni,I0(m[N?Ni:_i],Ve,!N&&L));!N&&L&&rn&&m[Ni].componentProviders++}}}function Wh(s,l,m,L){const N=b1(l),z=function F6(s){return!!s.useClass}(l);if(N||z){const Ve=(z?A(l.useClass):l).prototype.ngOnDestroy;if(Ve){const dt=s.destroyHooks||(s.destroyHooks=[]);if(!N&&l.multi){const St=dt.indexOf(m);-1===St?dt.push(m,[L,Ve]):dt[St+1].push(L,Ve)}else dt.push(m,Ve)}}}function I0(s,l,m){return m&&s.componentProviders++,s.multi.push(l)-1}function Yh(s,l,m,L){for(let N=m;N{m.providersResolver=(L,N)=>function xf(s,l,m){const L=Vn();if(L.firstCreatePass){const N=gn(s);Gh(m,L.data,L.blueprint,N,!0),Gh(l,L.data,L.blueprint,N,!1)}}(L,N?N(s):s,l)}}class wf{}class Xp{resolveComponentFactory(l){throw function Sf(s){const l=Error(`No component factory found for ${P(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let k0=(()=>{class s{}return s.NULL=new Xp,s})();function Af(){return J2(_r(),Hi())}function J2(s,l){return new t3(Ii(s,l))}let t3=(()=>{class s{constructor(m){this.nativeElement=m}}return s.__NG_ELEMENT_ID__=Af,s})();function Jp(s){return s instanceof t3?s.nativeElement:s}class Df{}let If=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Of(){const s=Hi(),m=Tt(_r().index,s);return function e7(s){return s[11]}(Oi(m)?m:s)}(),s})(),t7=(()=>{class s{}return s.\u0275prov=Q({token:s,providedIn:"root",factory:()=>null}),s})();class kf{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const Pf=new kf("13.3.11"),Zh={};function P0(s,l,m,L,N=!1){for(;null!==m;){const z=l[m.index];if(null!==z&&L.push(je(z)),dn(z))for(let Se=10;Se-1&&(_o(l,L),U1(m,L))}this._attachedToViewContainer=!1}J3(this._lView[1],this._lView)}onDestroy(l){L4(this._lView[1],this._lView,null,l)}markForCheck(){A2(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function hc(s,l,m){const L=l[10];L.begin&&L.begin();try{bo(s,l,s.template,m)}catch(N){throw A6(l,N),N}finally{L.end&&L.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zd(s,l){C1(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new w(902,"");this._appRef=l}}class i7 extends i3{constructor(l){super(l),this._view=l}detectChanges(){uc(this._view)}checkNoChanges(){}get context(){return null}}class Rf extends k0{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const m=at(l);return new Kh(m,this.ngModule)}}function Nf(s){const l=[];for(let m in s)s.hasOwnProperty(m)&&l.push({propName:s[m],templateName:m});return l}class Kh extends wf{constructor(l,m){super(),this.componentDef=l,this.ngModule=m,this.componentType=l.type,this.selector=function Xd(s){return s.map(Qd).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Nf(this.componentDef.inputs)}get outputs(){return Nf(this.componentDef.outputs)}create(l,m,L,N){const z=(N=N||this.ngModule)?function Ff(s,l){return{get:(m,L,N)=>{const z=s.get(m,Zh,N);return z!==Zh||L===Zh?z:l.get(m,L,N)}}}(l,N.injector):l,oe=z.get(Df,Ze),Se=z.get(t7,null),Ve=oe.createRenderer(null,this.componentDef),dt=this.componentDef.selectors[0][0]||"div",St=L?function S4(s,l,m){if(Wn(s))return s.selectRootElement(l,m===ht.ShadowDom);let L="string"==typeof l?s.querySelector(l):l;return L.textContent="",L}(Ve,L,this.componentDef.encapsulation):qs(oe.createRenderer(null,this.componentDef),dt,function Hf(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(dt)),Yt=this.componentDef.onPush?576:528,li=function K4(s,l){return{components:[],scheduler:s||kd,clean:T6,playerHandler:l||null,flags:0}}(),_i=w2(0,null,null,1,0,null,null,null,null,null),Ni=E2(null,_i,li,Yt,null,null,oe,Ve,Se,z);let Qi,rn;kn(Ni);try{const mn=function Z4(s,l,m,L,N,z){const oe=m[1];m[20]=s;const Ve=Ho(oe,20,2,"#host",null),dt=Ve.mergedAttrs=l.hostAttrs;null!==dt&&(I2(Ve,dt,!0),null!==s&&(Ir(N,s,dt),null!==Ve.classes&&Yl(N,s,Ve.classes),null!==Ve.styles&&Wl(N,s,Ve.styles)));const St=L.createRenderer(s,l),Yt=E2(m,M4(l),null,l.onPush?64:16,m[20],Ve,L,St,z||null,null);return oe.firstCreatePass&&(xn(Qt(Ve,m),oe,l.type),y6(oe,Ve),cc(Ve,m.length,1)),T2(m,Yt),m[20]=Yt}(St,this.componentDef,Ni,oe,Ve);if(St)if(L)Ir(Ve,St,["ng-version",Pf.full]);else{const{attrs:Fi,classes:Ln}=function l4(s){const l=[],m=[];let L=1,N=2;for(;L0&&Yl(Ve,St,Ln.join(" "))}if(rn=Yn(_i,20),void 0!==m){const Fi=rn.projection=[];for(let Ln=0;LnVe(oe,l)),l.contentQueries){const Ve=_r();l.contentQueries(1,oe,Ve.directiveStart)}const Se=_r();return!z.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(zr(Se.index),C6(m[1],Se,0,Se.directiveStart,Se.directiveEnd,l),_6(l,oe)),oe}(mn,this.componentDef,Ni,li,[Q6]),bs(_i,Ni,null)}finally{hr()}return new a7(this.componentType,Qi,J2(rn,Ni),Ni,rn)}}class a7 extends class Ef{}{constructor(l,m,L,N,z){super(),this.location=L,this._rootLView=N,this._tNode=z,this.instance=m,this.hostView=this.changeDetectorRef=new i7(N),this.componentType=l}get injector(){return new $o(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class q2{}class $h{}const el=new Map;class Xh extends q2{constructor(l,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Rf(this);const L=Xt(l);this._bootstrapComponents=Os(L.bootstrap),this._r3Injector=R6(l,m,[{provide:q2,useValue:this},{provide:k0,useValue:this.componentFactoryResolver}],P(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,m=Gs.THROW_IF_NOT_FOUND,L=De.Default){return l===Gs||l===q2||l===fc?this:this._r3Injector.get(l,m,L)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class Jh extends $h{constructor(l){super(),this.moduleType=l,null!==Xt(l)&&function o7(s){const l=new Set;!function m(L){const N=Xt(L,!0),z=N.id;null!==z&&(function zf(s,l,m){if(l&&l!==m)throw new Error(`Duplicate module registered for ${s} - ${P(l)} vs ${P(l.name)}`)}(z,el.get(z),L),el.set(z,L));const oe=Os(N.imports);for(const Se of oe)l.has(Se)||(l.add(Se),m(Se))}(s)}(l)}create(l){return new Xh(this.moduleType,l)}}function Bf(s,l,m){const L=Vr()+s,N=Hi();return N[L]===Bn?Ws(N,L,m?l.call(m):l()):function R2(s,l){return s[l]}(N,L)}function Uf(s,l,m,L){return qh(Hi(),Vr(),s,l,m,L)}function Gf(s,l,m,L,N){return Zf(Hi(),Vr(),s,l,m,L,N)}function Wf(s,l,m,L,N,z){return eu(Hi(),Vr(),s,l,m,L,N,z)}function n3(s,l){const m=s[l];return m===Bn?void 0:m}function qh(s,l,m,L,N,z){const oe=l+m;return Wa(s,oe,N)?Ws(s,oe+1,z?L.call(z,N):L(N)):n3(s,oe+1)}function Zf(s,l,m,L,N,z,oe){const Se=l+m;return zo(s,Se,N,z)?Ws(s,Se+2,oe?L.call(oe,N,z):L(N,z)):n3(s,Se+2)}function eu(s,l,m,L,N,z,oe,Se){const Ve=l+m;return N2(s,Ve,N,z,oe)?Ws(s,Ve+3,Se?L.call(Se,N,z,oe):L(N,z,oe)):n3(s,Ve+3)}function $f(s,l){const m=Vn();let L;const N=s+20;m.firstCreatePass?(L=function u7(s,l){if(l)for(let m=l.length-1;m>=0;m--){const L=l[m];if(s===L.name)return L}}(l,m.pipeRegistry),m.data[N]=L,L.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(N,L.onDestroy)):L=m.data[N];const z=L.factory||(L.factory=cr(L.type)),oe=xe(Wo);try{const Se=Ce(!1),Ve=z();return Ce(Se),function Mc(s,l,m,L){m>=s.data.length&&(s.data[m]=null,s.blueprint[m]=null),l[m]=L}(m,Hi(),N,Ve),Ve}finally{xe(oe)}}function Qf(s,l,m){const L=s+20,N=Hi(),z=Fn(N,L);return tl(N,L)?qh(N,Vr(),l,z.transform,m,z):z.transform(m)}function Xf(s,l,m,L){const N=s+20,z=Hi(),oe=Fn(z,N);return tl(z,N)?Zf(z,Vr(),l,oe.transform,m,L,oe):oe.transform(m,L)}function iu(s,l,m,L,N){const z=s+20,oe=Hi(),Se=Fn(oe,z);return tl(oe,z)?eu(oe,Vr(),l,Se.transform,m,L,N,Se):Se.transform(m,L,N)}function tl(s,l){return s[1].data[l].pure}function nu(s){return l=>{setTimeout(s,void 0,l)}}const oo=class m7 extends e.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,m,L){var N,z,oe;let Se=l,Ve=m||(()=>null),dt=L;if(l&&"object"==typeof l){const Yt=l;Se=null===(N=Yt.next)||void 0===N?void 0:N.bind(Yt),Ve=null===(z=Yt.error)||void 0===z?void 0:z.bind(Yt),dt=null===(oe=Yt.complete)||void 0===oe?void 0:oe.bind(Yt)}this.__isAsync&&(Ve=nu(Ve),Se&&(Se=nu(Se)),dt&&(dt=nu(dt)));const St=super.subscribe({next:Se,error:Ve,complete:dt});return l instanceof i.w0&&l.add(St),St}};function g7(){return this._results[Vo()]()}class R0{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Vo(),L=R0.prototype;L[m]||(L[m]=g7)}get changes(){return this._changes||(this._changes=new oo)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,m){return this._results.reduce(l,m)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,m){const L=this;L.dirty=!1;const N=ls(l);(this._changesDetected=!function u3(s,l,m){if(s.length!==l.length)return!1;for(let L=0;L{class s{}return s.__NG_ELEMENT_ID__=v7,s})();const C7=il,_7=class extends C7{constructor(l,m,L){super(),this._declarationLView=l,this._declarationTContainer=m,this.elementRef=L}createEmbeddedView(l){const m=this._declarationTContainer.tViews,L=E2(this._declarationLView,m,l,16,null,m.declTNode,null,null,null,null);L[17]=this._declarationLView[this._declarationTContainer.index];const z=this._declarationLView[19];return null!==z&&(L[19]=z.createEmbeddedView(m)),bs(m,L,l),new i3(L)}};function v7(){return N0(_r(),Hi())}function N0(s,l){return 4&s.type?new _7(l,s,J2(s,l)):null}let r3=(()=>{class s{}return s.__NG_ELEMENT_ID__=y7,s})();function y7(){return t8(_r(),Hi())}const Jf=r3,qf=class extends Jf{constructor(l,m,L){super(),this._lContainer=l,this._hostTNode=m,this._hostLView=L}get element(){return J2(this._hostTNode,this._hostLView)}get injector(){return new $o(this._hostTNode,this._hostLView)}get parentInjector(){const l=Vi(this._hostTNode,this._hostLView);if(ve(l)){const m=Ye(l,this._hostLView),L=Qe(l);return new $o(m[1].data[L+8],m)}return new $o(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const m=e8(this._lContainer);return null!==m&&m[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,m,L){const N=l.createEmbeddedView(m||{});return this.insert(N,L),N}createComponent(l,m,L,N,z){const oe=l&&!function ho(s){return"function"==typeof s}(l);let Se;if(oe)Se=m;else{const Yt=m||{};Se=Yt.index,L=Yt.injector,N=Yt.projectableNodes,z=Yt.ngModuleRef}const Ve=oe?l:new Kh(at(l)),dt=L||this.parentInjector;if(!z&&null==Ve.ngModule){const li=(oe?dt:this.parentInjector).get(q2,null);li&&(z=li)}const St=Ve.create(dt,N,void 0,z);return this.insert(St.hostView,Se),St}insert(l,m){const L=l._lView,N=L[1];if(function Wt(s){return dn(s[3])}(L)){const St=this.indexOf(l);if(-1!==St)this.detach(St);else{const Yt=L[3],li=new qf(Yt,Yt[6],Yt[3]);li.detach(li.indexOf(l))}}const z=this._adjustIndex(m),oe=this._lContainer;!function Fl(s,l,m,L){const N=10+L,z=m.length;L>0&&(m[N-1][4]=l),L0)L.push(oe[Se/2]);else{const dt=z[Se+1],St=l[-Ve];for(let Yt=10;Yt{class s{constructor(m){this.appInits=m,this.resolve=z0,this.reject=z0,this.initialized=!1,this.done=!1,this.donePromise=new Promise((L,N)=>{this.resolve=L,this.reject=N})}runInitializers(){if(this.initialized)return;const m=[],L=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N{z.subscribe({complete:Se,error:Ve})});m.push(oe)}}Promise.all(m).then(()=>{L()}).catch(N=>{this.reject(N)}),0===m.length&&L(),this.initialized=!0}}return s.\u0275fac=function(m){return new(m||s)(Fa(bu,8))},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const w8=new Or("AppId",{providedIn:"root",factory:function S8(){return`${Mu()}${Mu()}${Mu()}`}});function Mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Eu=new Or("Platform Initializer"),W7=new Or("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wu=new Or("appBootstrapListener");let L8=(()=>{class s{log(m){console.log(m)}warn(m){console.warn(m)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const B0=new Or("LocaleId",{providedIn:"root",factory:()=>Z1(B0,De.Optional|De.SkipSelf)||function Y7(){return"undefined"!=typeof $localize&&$localize.locale||Wr}()}),j7=new Or("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class K7{constructor(l,m){this.ngModuleFactory=l,this.componentFactories=m}}let $7=(()=>{class s{compileModuleSync(m){return new Jh(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const L=this.compileModuleSync(m),z=Os(Xt(m).declarations).reduce((oe,Se)=>{const Ve=at(Se);return Ve&&oe.push(new Kh(Ve)),oe},[]);return new K7(L,z)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const T8=(()=>Promise.resolve(0))();function U0(s){"undefined"==typeof Zone?T8.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class Fs{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:L=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oo(!1),this.onMicrotaskEmpty=new oo(!1),this.onStable=new oo(!1),this.onError=new oo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!L&&m,N.shouldCoalesceRunChangeDetection=L,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function J7(){let s=di.requestAnimationFrame,l=di.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const m=s[Zone.__symbol__("OriginalDelegate")];m&&(s=m);const L=l[Zone.__symbol__("OriginalDelegate")];L&&(l=L)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function em(s){const l=()=>{!function q7(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(di,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Su(s),s.isCheckStableRunning=!0,G0(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Su(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,L,N,z,oe,Se)=>{try{return D8(s),m.invokeTask(N,z,oe,Se)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===z.type||s.shouldCoalesceRunChangeDetection)&&l(),I8(s)}},onInvoke:(m,L,N,z,oe,Se,Ve)=>{try{return D8(s),m.invoke(N,z,oe,Se,Ve)}finally{s.shouldCoalesceRunChangeDetection&&l(),I8(s)}},onHasTask:(m,L,N,z)=>{m.hasTask(N,z),L===N&&("microTask"==z.change?(s._hasPendingMicrotasks=z.microTask,Su(s),G0(s)):"macroTask"==z.change&&(s.hasPendingMacrotasks=z.macroTask))},onHandleError:(m,L,N,z)=>(m.handleError(N,z),s.runOutsideAngular(()=>s.onError.emit(z)),!1)})}(N)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fs.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fs.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,m,L){return this._inner.run(l,m,L)}runTask(l,m,L,N){const z=this._inner,oe=z.scheduleEventTask("NgZoneEvent: "+N,l,A8,z0,z0);try{return z.runTask(oe,m,L)}finally{z.cancelTask(oe)}}runGuarded(l,m,L){return this._inner.runGuarded(l,m,L)}runOutsideAngular(l){return this._outer.run(l)}}const A8={};function G0(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Su(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function D8(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function I8(s){s._nesting--,G0(s)}class tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oo,this.onMicrotaskEmpty=new oo,this.onStable=new oo,this.onError=new oo}run(l,m,L){return l.apply(m,L)}runGuarded(l,m,L){return l.apply(m,L)}runOutsideAngular(l){return l()}runTask(l,m,L,N){return l.apply(m,L)}}let O8=(()=>{class s{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Fs.assertNotInAngularZone(),U0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())U0(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(L=>!L.updateCb||!L.updateCb(m)||(clearTimeout(L.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,L,N){let z=-1;L&&L>0&&(z=setTimeout(()=>{this._callbacks=this._callbacks.filter(oe=>oe.timeoutId!==z),m(this._didWork,this.getPendingTasks())},L)),this._callbacks.push({doneCb:m,timeoutId:z,updateCb:N})}whenStable(m,L,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,L,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,L,N){return[]}}return s.\u0275fac=function(m){return new(m||s)(Fa(Fs))},s.\u0275prov=Q({token:s,factory:s.\u0275fac}),s})(),im=(()=>{class s{constructor(){this._applications=new Map,Lu.addToWindow(this)}registerApplication(m,L){this._applications.set(m,L)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,L=!0){return Lu.findTestabilityInTree(this,m,L)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class nm{addToWindow(l){}findTestabilityInTree(l,m,L){return null}}function rm(s){Lu=s}let Lu=new nm,jo=null;const Tu=new Or("AllowMultipleToken"),k8=new Or("PlatformOnDestroy");class am{constructor(l,m){this.name=l,this.token=m}}function N8(s,l,m=[]){const L=`Platform: ${l}`,N=new Or(L);return(z=[])=>{let oe=Au();if(!oe||oe.injector.get(Tu,!1)){const Se=[...m,...z,{provide:N,useValue:!0}];s?s(Se):function sm(s){if(jo&&!jo.get(Tu,!1))throw new w(400,"");jo=s;const l=s.get(Du),m=s.get(Eu,null);m&&m.forEach(L=>L())}(function lm(s=[],l){return Gs.create({name:l,providers:[{provide:pc,useValue:"platform"},{provide:k8,useValue:()=>jo=null},...s]})}(Se,L))}return function om(s){const l=Au();if(!l)throw new w(401,"");return l}()}}function Au(){var s;return null!==(s=null==jo?void 0:jo.get(Du))&&void 0!==s?s:null}let Du=(()=>{class s{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,L){const Se=function cm(s,l){let m;return m="noop"===s?new tm:("zone.js"===s?void 0:s)||new Fs({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),m}(L?L.ngZone:void 0,{ngZoneEventCoalescing:L&&L.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:L&&L.ngZoneRunCoalescing||!1}),Ve=[{provide:Fs,useValue:Se}];return Se.run(()=>{const dt=Gs.create({providers:Ve,parent:this.injector,name:m.moduleType.name}),St=m.create(dt),Yt=St.injector.get(a2,null);if(!Yt)throw new w(402,"");return Se.runOutsideAngular(()=>{const li=Se.onError.subscribe({next:_i=>{Yt.handleError(_i)}});St.onDestroy(()=>{W0(this._modules,St),li.unsubscribe()})}),function dm(s,l,m){try{const L=m();return ts(L)?L.catch(N=>{throw l.runOutsideAngular(()=>s.handleError(N)),N}):L}catch(L){throw l.runOutsideAngular(()=>s.handleError(L)),L}}(Yt,Se,()=>{const li=St.injector.get(xu);return li.runInitializers(),li.donePromise.then(()=>(function Q2(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Pa=s.toLowerCase().replace(/_/g,"-"))}(St.injector.get(B0,Wr)||Wr),this._moduleDoBootstrap(St),St))})})}bootstrapModule(m,L=[]){const N=H8({},L);return function P8(s,l,m){const L=new Jh(m);return Promise.resolve(L)}(0,0,m).then(z=>this.bootstrapModuleFactory(z,N))}_moduleDoBootstrap(m){const L=m.injector.get(Iu);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(N=>L.bootstrap(N));else{if(!m.instance.ngDoBootstrap)throw new w(403,"");m.instance.ngDoBootstrap(L)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,"");this._modules.slice().forEach(L=>L.destroy()),this._destroyListeners.forEach(L=>L());const m=this._injector.get(k8,null);null==m||m(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(m){return new(m||s)(Fa(Gs))},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function H8(s,l){return Array.isArray(l)?l.reduce(H8,s):Object.assign(Object.assign({},s),l)}let Iu=(()=>{class s{constructor(m,L,N,z){this._zone=m,this._injector=L,this._exceptionHandler=N,this._initStatus=z,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const oe=new u.y(Ve=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ve.next(this._stable),Ve.complete()})}),Se=new u.y(Ve=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{Fs.assertNotInAngularZone(),U0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ve.next(!0))})})});const St=this._zone.onUnstable.subscribe(()=>{Fs.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ve.next(!1)}))});return()=>{dt.unsubscribe(),St.unsubscribe()}});this.isStable=(0,b.T)(oe,Se.pipe((0,a.B)()))}bootstrap(m,L){if(!this._initStatus.done)throw new w(405,"");let N;N=m instanceof wf?m:this._injector.get(k0).resolveComponentFactory(m),this.componentTypes.push(N.componentType);const z=function R8(s){return s.isBoundToModule}(N)?void 0:this._injector.get(q2),Se=N.create(Gs.NULL,[],L||N.selector,z),Ve=Se.location.nativeElement,dt=Se.injector.get(O8,null),St=dt&&Se.injector.get(im);return dt&&St&&St.registerApplication(Ve,dt),Se.onDestroy(()=>{this.detachView(Se.hostView),W0(this.components,Se),St&&St.unregisterApplication(Ve)}),this._loadComponent(Se),Se}tick(){if(this._runningTick)throw new w(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const L=m;this._views.push(L),L.attachToAppRef(this)}detachView(m){const L=m;W0(this._views,L),L.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(wu,[]).concat(this._bootstrapListeners).forEach(N=>N(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(m){return new(m||s)(Fa(Fs),Fa(Gs),Fa(a2),Fa(xu))},s.\u0275prov=Q({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function W0(s,l){const m=s.indexOf(l);m>-1&&s.splice(m,1)}let V8=!0,z8=!1;function B8(){return z8=!0,V8}function um(){if(z8)throw new Error("Cannot enable prod mode after platform setup.");V8=!1}let G8=(()=>{class s{}return s.__NG_ELEMENT_ID__=pm,s})();function pm(s){return function W8(s,l,m){if(Tn(s)&&!m){const L=Tt(s.index,l);return new i3(L,L)}return 47&s.type?new i3(l[16],l):null}(_r(),Hi(),16==(16&s))}class Ru{constructor(){}supports(l){return P2(l)}create(l){return new Mm(l)}}const xm=(s,l)=>l;class Mm{constructor(l){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=l||xm}forEachItem(l){let m;for(m=this._itHead;null!==m;m=m._next)l(m)}forEachOperation(l){let m=this._itHead,L=this._removalsHead,N=0,z=null;for(;m||L;){const oe=!L||m&&m.currentIndex{oe=this._trackByFn(N,Se),null!==m&&Object.is(m.trackById,oe)?(L&&(m=this._verifyReinsertion(m,Se,oe,N)),Object.is(m.item,Se)||this._addIdentityChange(m,Se)):(m=this._mismatch(m,Se,oe,N),L=!0),m=m._next,N++}),this.length=N;return this._truncate(m),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,m,L,N){let z;return null===l?z=this._itTail:(z=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._reinsertAfter(l,z,N)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(L,N))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._moveAfter(l,z,N)):l=this._addAfter(new Em(m,L),z,N),l}_verifyReinsertion(l,m,L,N){let z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null);return null!==z?l=this._reinsertAfter(z,l._prev,N):l.currentIndex!=N&&(l.currentIndex=N,this._addToMoves(l,N)),l}_truncate(l){for(;null!==l;){const m=l._next;this._addToRemovals(this._unlink(l)),l=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(l,m,L){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const N=l._prevRemoved,z=l._nextRemoved;return null===N?this._removalsHead=z:N._nextRemoved=z,null===z?this._removalsTail=N:z._prevRemoved=N,this._insertAfter(l,m,L),this._addToMoves(l,L),l}_moveAfter(l,m,L){return this._unlink(l),this._insertAfter(l,m,L),this._addToMoves(l,L),l}_addAfter(l,m,L){return this._insertAfter(l,m,L),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,m,L){const N=null===m?this._itHead:m._next;return l._next=N,l._prev=m,null===N?this._itTail=l:N._prev=l,null===m?this._itHead=l:m._next=l,null===this._linkedRecords&&(this._linkedRecords=new Z8),this._linkedRecords.put(l),l.currentIndex=L,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const m=l._prev,L=l._next;return null===m?this._itHead=L:m._next=L,null===L?this._itTail=m:L._prev=m,l}_addToMoves(l,m){return l.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Z8),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,m){return l.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class Em{constructor(l,m){this.item=l,this.trackById=m,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}}class wm{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,m){let L;for(L=this._head;null!==L;L=L._nextDup)if((null===m||m<=L.currentIndex)&&Object.is(L.trackById,l))return L;return null}remove(l){const m=l._prevDup,L=l._nextDup;return null===m?this._head=L:m._nextDup=L,null===L?this._tail=m:L._prevDup=m,null===this._head}}class Z8{constructor(){this.map=new Map}put(l){const m=l.trackById;let L=this.map.get(m);L||(L=new wm,this.map.set(m,L)),L.add(l)}get(l,m){const N=this.map.get(l);return N?N.get(l,m):null}remove(l){const m=l.trackById;return this.map.get(m).remove(l)&&this.map.delete(m),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function K8(s,l,m){const L=s.previousIndex;if(null===L)return L;let N=0;return m&&L{if(m&&m.key===N)this._maybeAddToChanges(m,L),this._appendAfter=m,m=m._next;else{const z=this._getOrCreateRecordForKey(N,L);m=this._insertBeforeOrAppend(m,z)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let L=m;null!==L;L=L._nextRemoved)L===this._mapHead&&(this._mapHead=null),this._records.delete(L.key),L._nextRemoved=L._next,L.previousValue=L.currentValue,L.currentValue=null,L._prev=null,L._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,m){if(l){const L=l._prev;return m._next=l,m._prev=L,l._prev=m,L&&(L._next=m),l===this._mapHead&&(this._mapHead=m),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(l,m){if(this._records.has(l)){const N=this._records.get(l);this._maybeAddToChanges(N,m);const z=N._prev,oe=N._next;return z&&(z._next=oe),oe&&(oe._prev=z),N._next=null,N._prev=null,N}const L=new Lm(l);return this._records.set(l,L),L.currentValue=m,this._addToAdditions(L),L}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,m){Object.is(m,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=m,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,m){l instanceof Map?l.forEach(m):Object.keys(l).forEach(L=>m(l[L],L))}}class Lm{constructor(l){this.key=l,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Q8(){return new Nu([new Ru])}let Nu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(null!=L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||Q8()),deps:[[s,new Ts,new r1]]}}find(m){const L=this.factories.find(N=>N.supports(m));if(null!=L)return L;throw new w(901,"")}}return s.\u0275prov=Q({token:s,providedIn:"root",factory:Q8}),s})();function X8(){return new Hu([new $8])}let Hu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||X8()),deps:[[s,new Ts,new r1]]}}find(m){const L=this.factories.find(z=>z.supports(m));if(L)return L;throw new w(901,"")}}return s.\u0275prov=Q({token:s,providedIn:"root",factory:X8}),s})();const Dm=N8(null,"core",[]);let Im=(()=>{class s{constructor(m){}}return s.\u0275fac=function(m){return new(m||s)(Fa(Iu))},s.\u0275mod=Je({type:s}),s.\u0275inj=te({}),s})()},9042:(He,j,p)=>{"use strict";function e(T){for(let M in T){let A=T[M]||"";switch(M){case"display":T.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":T["-webkit-"+M]=A;break;case"flex-direction":A=A||"row",T["-webkit-flex-direction"]=A,T["flex-direction"]=A;break;case"order":T.order=T["-webkit-"+M]=isNaN(+A)?"0":A}}return T}p.d(j,{Ar:()=>b,GK:()=>e,iQ:()=>u,kt:()=>D,tj:()=>y});const i="inline",u=["row","column","row-reverse","column-reverse"];function b(T){let[M,A,E]=a(T);return function P(T,M=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":T,"flex-wrap":M||null}}(M,A,E)}function a(T){var M;T=null!==(M=null==T?void 0:T.toLowerCase())&&void 0!==M?M:"";let[A,E,k]=T.split(" ");return u.find(w=>w===A)||(A=u[0]),E===i&&(E=k!==i?k:"",k=i),[A,h(E),!!k]}function y(T){let[M]=a(T);return M.indexOf("row")>-1}function h(T){if(T)switch(T.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":T="wrap-reverse";break;case"no":case"none":case"nowrap":T="nowrap";break;default:T="wrap"}return T}function D(T,...M){if(null==T)throw TypeError("Cannot convert undefined or null to object");for(let A of M)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(T[E]=A[E]);return T}},3270:(He,j,p)=>{"use strict";p.d(j,{Bs:()=>ae,FL:()=>di,IR:()=>E,Ot:()=>hi,QI:()=>de,RK:()=>q,WU:()=>U,g5:()=>V,iR:()=>xe,wY:()=>Y,yB:()=>he});var e=p(5e3),i=p(9808),u=p(1135),b=p(8306),a=p(6451),y=p(7579),h=p(9042),P=p(9300),D=p(8505);const M={provide:e.tb,useFactory:function T(vt,kt){return()=>{if((0,i.NF)(kt)){const mt=Array.from(vt.querySelectorAll(`[class*=${A}]`)),Xe=/\bflex-layout-.+?\b/g;mt.forEach(_t=>{_t.classList.contains(`${A}ssr`)&&_t.parentNode?_t.parentNode.removeChild(_t):_t.className.replace(Xe,"")})}}},deps:[i.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class vt{}return vt.\u0275fac=function(mt){return new(mt||vt)},vt.\u0275mod=e.oAB({type:vt}),vt.\u0275inj=e.cJS({providers:[M]}),vt})();class k{constructor(kt=!1,mt="all",Xe="",_t="",ei=0){this.matches=kt,this.mediaQuery=mt,this.mqAlias=Xe,this.suffix=_t,this.priority=ei,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class vt{constructor(){this.stylesheet=new Map}addStyleToElement(mt,Xe,_t){const ei=this.stylesheet.get(mt);ei?ei.set(Xe,_t):this.stylesheet.set(mt,new Map([[Xe,_t]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(mt,Xe){const _t=this.stylesheet.get(mt);let ei="";if(_t){const Kt=_t.get(Xe);("number"==typeof Kt||"string"==typeof Kt)&&(ei=Kt+"")}return ei}}return vt.\u0275fac=function(mt){return new(mt||vt)},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const V={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},U=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>V}),Y=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ae=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function X(vt,kt){return vt=vt?vt.clone():new k,kt&&(vt.mqAlias=kt.alias,vt.mediaQuery=kt.mediaQuery,vt.suffix=kt.suffix,vt.priority=kt.priority),vt}class de{constructor(){this.shouldCache=!0}sideEffect(kt,mt,Xe){}}let q=(()=>{class vt{constructor(mt,Xe,_t,ei){this._serverStylesheet=mt,this._serverModuleLoaded=Xe,this._platformId=_t,this.layoutConfig=ei}applyStyleToElement(mt,Xe,_t=null){let ei={};"string"==typeof Xe&&(ei[Xe]=_t,Xe=ei),ei=this.layoutConfig.disableVendorPrefixes?Xe:(0,h.GK)(Xe),this._applyMultiValueStyleToElement(ei,mt)}applyStyleToElements(mt,Xe=[]){const _t=this.layoutConfig.disableVendorPrefixes?mt:(0,h.GK)(mt);Xe.forEach(ei=>{this._applyMultiValueStyleToElement(_t,ei)})}getFlowDirection(mt){const Xe="flex-direction";let _t=this.lookupStyle(mt,Xe);return[_t||"row",this.lookupInlineStyle(mt,Xe)||(0,i.PM)(this._platformId)&&this._serverModuleLoaded?_t:""]}hasWrap(mt){return"wrap"===this.lookupStyle(mt,"flex-wrap")}lookupAttributeValue(mt,Xe){var _t;return null!==(_t=mt.getAttribute(Xe))&&void 0!==_t?_t:""}lookupInlineStyle(mt,Xe){return(0,i.NF)(this._platformId)?mt.style.getPropertyValue(Xe):function re(vt,kt){var mt;return null!==(mt=_e(vt)[kt])&&void 0!==mt?mt:""}(mt,Xe)}lookupStyle(mt,Xe,_t=!1){let ei="";return mt&&((ei=this.lookupInlineStyle(mt,Xe))||((0,i.NF)(this._platformId)?_t||(ei=getComputedStyle(mt).getPropertyValue(Xe)):this._serverModuleLoaded&&(ei=this._serverStylesheet.getStyleForElement(mt,Xe)))),ei?ei.trim():""}_applyMultiValueStyleToElement(mt,Xe){Object.keys(mt).sort().forEach(_t=>{const ei=mt[_t],Kt=Array.isArray(ei)?ei:[ei];Kt.sort();for(let Pe of Kt)Pe=Pe?Pe+"":"",(0,i.NF)(this._platformId)||!this._serverModuleLoaded?(0,i.NF)(this._platformId)?Xe.style.setProperty(_t,Pe):le(Xe,_t,Pe):this._serverStylesheet.addStyleToElement(Xe,_t,Pe)})}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.LFG(w),e.LFG(Y),e.LFG(e.Lbi),e.LFG(U))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function le(vt,kt,mt){kt=kt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Xe=_e(vt);Xe[kt]=null!=mt?mt:"",function ee(vt,kt){let mt="";for(const Xe in kt)kt[Xe]&&(mt+=`${Xe}:${kt[Xe]};`);vt.setAttribute("style",mt)}(vt,Xe)}function _e(vt){const kt={},mt=vt.getAttribute("style");if(mt){const Xe=mt.split(/;+/g);for(let _t=0;_t0){const Kt=ei.indexOf(":");if(-1===Kt)throw new Error(`Invalid CSS style: ${ei}`);kt[ei.substr(0,Kt).trim()]=ei.substr(Kt+1).trim()}}}return kt}function x(vt,kt){return(kt&&kt.priority||0)-(vt&&vt.priority||0)}function t(vt,kt){return(vt.priority||0)-(kt.priority||0)}let r=(()=>{class vt{constructor(mt,Xe,_t){this._zone=mt,this._platformId=Xe,this._document=_t,this.source=new u.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const mt=[];return this.registry.forEach((Xe,_t)=>{Xe.matches&&mt.push(_t)}),mt}isActive(mt){var Xe;const _t=this.registry.get(mt);return null!==(Xe=null==_t?void 0:_t.matches)&&void 0!==Xe?Xe:this.registerQuery(mt).some(ei=>ei.matches)}observe(mt,Xe=!1){if(mt&&mt.length){const _t=this._observable$.pipe((0,P.h)(Kt=>!Xe||mt.indexOf(Kt.mediaQuery)>-1)),ei=new b.y(Kt=>{const Pe=this.registerQuery(mt);if(Pe.length){const Ie=Pe.pop();Pe.forEach(ce=>{Kt.next(ce)}),this.source.next(Ie)}Kt.complete()});return(0,a.T)(ei,_t)}return this._observable$}registerQuery(mt){const Xe=Array.isArray(mt)?mt:[mt],_t=[];return function c(vt,kt){const mt=vt.filter(Xe=>!d[Xe]);if(mt.length>0){const Xe=mt.join(", ");try{const _t=kt.createElement("style");_t.setAttribute("type","text/css"),_t.styleSheet||_t.appendChild(kt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Xe} {.fx-query-test{ }}\n`)),kt.head.appendChild(_t),mt.forEach(ei=>d[ei]=_t)}catch(_t){console.error(_t)}}}(Xe,this._document),Xe.forEach(ei=>{const Kt=Ie=>{this._zone.run(()=>this.source.next(new k(Ie.matches,ei)))};let Pe=this.registry.get(ei);Pe||(Pe=this.buildMQL(ei),Pe.addListener(Kt),this.pendingRemoveListenerFns.push(()=>Pe.removeListener(Kt)),this.registry.set(ei,Pe)),Pe.matches&&_t.push(new k(!0,ei))}),_t}ngOnDestroy(){let mt;for(;mt=this.pendingRemoveListenerFns.pop();)mt()}buildMQL(mt){return function g(vt,kt){return kt&&window.matchMedia("all").addListener?window.matchMedia(vt):{matches:"all"===vt||""===vt,media:vt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(mt,(0,i.NF)(this._platformId))}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const d={},S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],I="(orientation: portrait) and (max-width: 599.98px)",C="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",B="(orientation: portrait) and (min-width: 840px)",R="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${C}`,TABLET:`${n} , ${_}`,WEB:`${B}, ${R} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${B}`,HANDSET_LANDSCAPE:`${C}`,TABLET_LANDSCAPE:`${_}`,WEB_LANDSCAPE:`${R}`},Q=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],Z=/(\.|-|_)/g;function te(vt){let kt=vt.length>0?vt.charAt(0):"",mt=vt.length>1?vt.slice(1):"";return kt.toUpperCase()+mt}const ze=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const vt=(0,e.f3M)(ae),kt=(0,e.f3M)(U),mt=[].concat.apply([],(vt||[]).map(_t=>Array.isArray(_t)?_t:[_t]));return function ne(vt,kt=[]){const mt={};return vt.forEach(Xe=>{mt[Xe.alias]=Xe}),kt.forEach(Xe=>{mt[Xe.alias]?(0,h.kt)(mt[Xe.alias],Xe):mt[Xe.alias]=Xe}),function Ee(vt){return vt.forEach(kt=>{kt.suffix||(kt.suffix=function Te(vt){return vt.replace(Z,"|").split("|").map(te).join("")}(kt.alias),kt.overlapping=!!kt.overlapping)}),vt}(Object.keys(mt).map(Xe=>mt[Xe]))}((kt.disableDefaultBps?[]:S).concat(kt.addOrientationBps?Q:[]),mt)}});let be=(()=>{class vt{constructor(mt){this.findByMap=new Map,this.items=[...mt].sort(t)}findByAlias(mt){return mt?this.findWithPredicate(mt,Xe=>Xe.alias===mt):null}findByQuery(mt){return this.findWithPredicate(mt,Xe=>Xe.mediaQuery===mt)}get overlappings(){return this.items.filter(mt=>mt.overlapping)}get aliases(){return this.items.map(mt=>mt.alias)}get suffixes(){return this.items.map(mt=>{var Xe;return null!==(Xe=null==mt?void 0:mt.suffix)&&void 0!==Xe?Xe:""})}findWithPredicate(mt,Xe){var _t;let ei=this.findByMap.get(mt);return ei||(ei=null!==(_t=this.items.find(Xe))&&void 0!==_t?_t:null,this.findByMap.set(mt,ei)),null!=ei?ei:null}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.LFG(ze))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const $="print",ke={alias:$,mediaQuery:$,priority:1e3};let lt=(()=>{class vt{constructor(mt,Xe,_t){this.breakpoints=mt,this.layoutConfig=Xe,this._document=_t,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new W,this.deactivations=[]}withPrintQuery(mt){return[...mt,$]}isPrintEvent(mt){return mt.mediaQuery.startsWith($)}get printAlias(){var mt;return[...null!==(mt=this.layoutConfig.printWithBreakpoints)&&void 0!==mt?mt:[]]}get printBreakPoints(){return this.printAlias.map(mt=>this.breakpoints.findByAlias(mt)).filter(mt=>null!==mt)}getEventBreakpoints({mediaQuery:mt}){const Xe=this.breakpoints.findByQuery(mt);return(Xe?[...this.printBreakPoints,Xe]:this.printBreakPoints).sort(x)}updateEvent(mt){var Xe;let _t=this.breakpoints.findByQuery(mt.mediaQuery);return this.isPrintEvent(mt)&&(_t=this.getEventBreakpoints(mt)[0],mt.mediaQuery=null!==(Xe=null==_t?void 0:_t.mediaQuery)&&void 0!==Xe?Xe:""),X(mt,_t)}registerBeforeAfterPrintHooks(mt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Xe=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(mt,this.getEventBreakpoints(new k(!0,$))),mt.updateStyles())},_t=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(mt),mt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Xe),this._document.defaultView.addEventListener("afterprint",_t),this.beforePrintEventListeners.push(Xe),this.afterPrintEventListeners.push(_t)}interceptEvents(mt){return Xe=>{this.isPrintEvent(Xe)?Xe.matches&&!this.isPrinting?(this.startPrinting(mt,this.getEventBreakpoints(Xe)),mt.updateStyles()):!Xe.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(mt),mt.updateStyles()):this.collectActivations(mt,Xe)}}blockPropagation(){return mt=>!(this.isPrinting||this.isPrintEvent(mt))}startPrinting(mt,Xe){this.isPrinting=!0,this.formerActivations=mt.activatedBreakpoints,mt.activatedBreakpoints=this.queue.addPrintBreakpoints(Xe)}stopPrinting(mt){mt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(mt,Xe){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Xe.matches){const _t=this.breakpoints.findByQuery(Xe.mediaQuery);if(_t){const ei=this.formerActivations&&this.formerActivations.includes(_t),Kt=!this.formerActivations&&mt.activatedBreakpoints.includes(_t);(ei||Kt)&&(this.deactivations.push(_t),this.deactivations.sort(x))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(mt=>this._document.defaultView.removeEventListener("beforeprint",mt)),this.afterPrintEventListeners.forEach(mt=>this._document.defaultView.removeEventListener("afterprint",mt)))}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.LFG(be),e.LFG(U),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class W{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(kt){return kt.push(ke),kt.sort(x),kt.forEach(mt=>this.addBreakpoint(mt)),this.printBreakpoints}addBreakpoint(kt){kt&&void 0===this.printBreakpoints.find(Xe=>Xe.mediaQuery===kt.mediaQuery)&&(this.printBreakpoints=function De(vt){var kt;return null!==(kt=null==vt?void 0:vt.mediaQuery.startsWith($))&&void 0!==kt&&kt}(kt)?[kt,...this.printBreakpoints]:[...this.printBreakpoints,kt])}clear(){this.printBreakpoints=[]}}let he=(()=>{class vt{constructor(mt,Xe,_t){this.matchMedia=mt,this.breakpoints=Xe,this.hook=_t,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new y.x,this.observeActivations()}get activatedAlias(){var mt,Xe;return null!==(Xe=null===(mt=this.activatedBreakpoints[0])||void 0===mt?void 0:mt.alias)&&void 0!==Xe?Xe:""}set activatedBreakpoints(mt){this._activatedBreakpoints=[...mt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(mt){this._useFallbacks=mt}onMediaChange(mt){const Xe=this.findByQuery(mt.mediaQuery);if(Xe){mt=X(mt,Xe);const _t=this.activatedBreakpoints.indexOf(Xe);mt.matches&&-1===_t?(this._activatedBreakpoints.push(Xe),this._activatedBreakpoints.sort(x),this.updateStyles()):!mt.matches&&-1!==_t&&(this._activatedBreakpoints.splice(_t,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(mt,Xe,_t,ei,Kt=[]){Ae(this.updateMap,mt,Xe,_t),Ae(this.clearMap,mt,Xe,ei),this.buildElementKeyMap(mt,Xe),this.watchExtraTriggers(mt,Xe,Kt)}getValue(mt,Xe,_t){const ei=this.elementMap.get(mt);if(ei){const Kt=void 0!==_t?ei.get(_t):this.getActivatedValues(ei,Xe);if(Kt)return Kt.get(Xe)}}hasValue(mt,Xe){const _t=this.elementMap.get(mt);if(_t){const ei=this.getActivatedValues(_t,Xe);if(ei)return void 0!==ei.get(Xe)||!1}return!1}setValue(mt,Xe,_t,ei){var Kt;let Pe=this.elementMap.get(mt);if(Pe){const ce=(null!==(Kt=Pe.get(ei))&&void 0!==Kt?Kt:new Map).set(Xe,_t);Pe.set(ei,ce),this.elementMap.set(mt,Pe)}else Pe=(new Map).set(ei,(new Map).set(Xe,_t)),this.elementMap.set(mt,Pe);const Ie=this.getValue(mt,Xe);void 0!==Ie&&this.updateElement(mt,Xe,Ie)}trackValue(mt,Xe){return this.subject.asObservable().pipe((0,P.h)(_t=>_t.element===mt&&_t.key===Xe))}updateStyles(){this.elementMap.forEach((mt,Xe)=>{const _t=new Set(this.elementKeyMap.get(Xe));let ei=this.getActivatedValues(mt);ei&&ei.forEach((Kt,Pe)=>{this.updateElement(Xe,Pe,Kt),_t.delete(Pe)}),_t.forEach(Kt=>{if(ei=this.getActivatedValues(mt,Kt),ei){const Pe=ei.get(Kt);this.updateElement(Xe,Kt,Pe)}else this.clearElement(Xe,Kt)})})}clearElement(mt,Xe){const _t=this.clearMap.get(mt);if(_t){const ei=_t.get(Xe);ei&&(ei(),this.subject.next({element:mt,key:Xe,value:""}))}}updateElement(mt,Xe,_t){const ei=this.updateMap.get(mt);if(ei){const Kt=ei.get(Xe);Kt&&(Kt(_t),this.subject.next({element:mt,key:Xe,value:_t}))}}releaseElement(mt){const Xe=this.watcherMap.get(mt);Xe&&(Xe.forEach(ei=>ei.unsubscribe()),this.watcherMap.delete(mt));const _t=this.elementMap.get(mt);_t&&(_t.forEach((ei,Kt)=>_t.delete(Kt)),this.elementMap.delete(mt))}triggerUpdate(mt,Xe){const _t=this.elementMap.get(mt);if(_t){const ei=this.getActivatedValues(_t,Xe);ei&&(Xe?this.updateElement(mt,Xe,ei.get(Xe)):ei.forEach((Kt,Pe)=>this.updateElement(mt,Pe,Kt)))}}buildElementKeyMap(mt,Xe){let _t=this.elementKeyMap.get(mt);_t||(_t=new Set,this.elementKeyMap.set(mt,_t)),_t.add(Xe)}watchExtraTriggers(mt,Xe,_t){if(_t&&_t.length){let ei=this.watcherMap.get(mt);if(ei||(ei=new Map,this.watcherMap.set(mt,ei)),!ei.get(Xe)){const Pe=(0,a.T)(..._t).subscribe(()=>{const Ie=this.getValue(mt,Xe);this.updateElement(mt,Xe,Ie)});ei.set(Xe,Pe)}}}findByQuery(mt){return this.breakpoints.findByQuery(mt)}getActivatedValues(mt,Xe){for(let ei=0;eiXe.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(mt)).pipe((0,D.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.LFG(r),e.LFG(be),e.LFG(lt))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function Ae(vt,kt,mt,Xe){var _t;if(void 0!==Xe){const ei=null!==(_t=vt.get(kt))&&void 0!==_t?_t:new Map;ei.set(mt,Xe),vt.set(kt,ei)}}let xe=(()=>{class vt{constructor(mt,Xe,_t,ei){this.elementRef=mt,this.styleBuilder=Xe,this.styler=_t,this.marshal=ei,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(mt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,mt,this.marshal.activatedAlias)}ngOnChanges(mt){Object.keys(mt).forEach(Xe=>{if(-1!==this.inputs.indexOf(Xe)){const _t=Xe.split(".").slice(1).join(".");this.setValue(mt[Xe].currentValue,_t)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(mt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),mt)}addStyles(mt,Xe){const _t=this.styleBuilder,ei=_t.shouldCache;let Kt=this.styleCache.get(mt);(!Kt||!ei)&&(Kt=_t.buildStyles(mt,Xe),ei&&this.styleCache.set(mt,Kt)),this.mru=Object.assign({},Kt),this.applyStyleToElement(Kt),_t.sideEffect(mt,Kt,Xe)}clearStyles(){Object.keys(this.mru).forEach(mt=>{this.mru[mt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(mt,Xe=!1){if(mt){const[_t,ei]=this.styler.getFlowDirection(mt);if(!ei&&Xe){const Kt=(0,h.Ar)(_t);this.styler.applyStyleToElements(Kt,[mt])}return _t.trim()}return"row"}hasWrap(mt){return this.styler.hasWrap(mt)}applyStyleToElement(mt,Xe,_t=this.nativeElement){this.styler.applyStyleToElement(_t,mt,Xe)}setValue(mt,Xe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,mt,Xe)}updateWithValue(mt){this.currentValue!==mt&&(this.addStyles(mt),this.currentValue=mt)}}return vt.\u0275fac=function(mt){return new(mt||vt)(e.Y36(e.SBq),e.Y36(de),e.Y36(q),e.Y36(he))},vt.\u0275dir=e.lG2({type:vt,features:[e.TTD]}),vt})();function hi(vt,kt="1",mt="1"){let Xe=[kt,mt,vt],_t=vt.indexOf("calc");if(_t>0){Xe[2]=jt(vt.substring(_t).trim());let ei=vt.substr(0,_t).trim().split(" ");2==ei.length&&(Xe[0]=ei[0],Xe[1]=ei[1])}else if(0==_t)Xe[2]=jt(vt.trim());else{let ei=vt.split(" ");Xe=3===ei.length?ei:[kt,mt,vt]}return Xe}function jt(vt){return vt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function di(vt,kt){if(void 0===kt)return vt;const mt=Xe=>{const _t=+Xe.slice(0,-"x".length);return vt.endsWith("x")&&!isNaN(_t)?`${_t*kt.value}${kt.unit}`:vt};return vt.includes(" ")?vt.split(" ").map(mt).join(" "):mt(vt)}},3322:(He,j,p)=>{"use strict";p.d(j,{Zl:()=>S,aT:()=>n,oO:()=>V});var e=p(5e3),i=p(3270),u=p(9808),y=(p(3191),p(2722),p(2313));let E=(()=>{class _ extends i.iR{constructor(R,H,Q,Z,te,Te,Ee){super(R,null,H,Q),this.ngClassInstance=Ee,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new u.mk(Z,te,R,Te)),this.init(),this.setValue("","")}set klass(R){this.ngClassInstance.klass=R,this.setValue(R,"")}updateWithValue(R){this.ngClassInstance.ngClass=R,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(R){return new(R||_)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.mk,10))},_.\u0275dir=e.lG2({type:_,inputs:{klass:["class","klass"]},features:[e.qOj]}),_})();const k=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let V=(()=>{class _ extends E{constructor(){super(...arguments),this.inputs=k}}return _.\u0275fac=function(){let B;return function(H){return(B||(B=e.n5z(_)))(H||_)}}(),_.\u0275dir=e.lG2({type:_,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),_})();class re{constructor(B,R,H=!0){this.key=B,this.value=R,this.key=H?B.replace(/['"]/g,"").trim():B.trim(),this.value=H?R.replace(/['"]/g,"").trim():R.trim(),this.value=this.value.replace(/;/,"")}}function le(_){let B=typeof _;return"object"===B?_.constructor===Array?"array":_.constructor===Set?"set":"object":B}function t(_){const[B,...R]=_.split(":");return new re(B,R.join(":"))}function r(_,B){return B.key&&(_[B.key]=B.value),_}let d=(()=>{class _ extends i.iR{constructor(R,H,Q,Z,te,Te,Ee,ne,ze){var be;super(R,null,H,Q),this.sanitizer=Z,this.ngStyleInstance=Ee,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new u.PC(R,te,Te)),this.init();const $=null!==(be=this.nativeElement.getAttribute("style"))&&void 0!==be?be:"";this.fallbackStyles=this.buildStyleMap($),this.isServer=ne&&(0,u.PM)(ze)}updateWithValue(R){const H=this.buildStyleMap(R);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(R){const H=Q=>{var Z;return null!==(Z=this.sanitizer.sanitize(e.q3G.STYLE,Q))&&void 0!==Z?Z:""};if(R)switch(le(R)){case"string":return I(function ee(_,B=";"){return String(_).trim().split(B).map(R=>R.trim()).filter(R=>""!==R)}(R),H);case"array":return I(R,H);default:return function x(_,B){let R=[];return"set"===le(_)?_.forEach(H=>R.push(H)):Object.keys(_).forEach(H=>{R.push(`${H}:${_[H]}`)}),function _e(_,B){return _.map(t).filter(H=>!!H).map(H=>(B&&(H.value=B(H.value)),H)).reduce(r,{})}(R,B)}(R,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(R){return new(R||_)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(y.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.PC,10),e.Y36(i.wY),e.Y36(e.Lbi))},_.\u0275dir=e.lG2({type:_,features:[e.qOj]}),_})();const c=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let S=(()=>{class _ extends d{constructor(){super(...arguments),this.inputs=c}}return _.\u0275fac=function(){let B;return function(H){return(B||(B=e.n5z(_)))(H||_)}}(),_.\u0275dir=e.lG2({type:_,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),_})();function I(_,B){return _.map(t).filter(H=>!!H).map(H=>(B&&(H.value=B(H.value)),H)).reduce(r,{})}let n=(()=>{class _{}return _.\u0275fac=function(R){return new(R||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[i.IR]]}),_})()},7093:(He,j,p)=>{"use strict";p.d(j,{Wh:()=>jt,ae:()=>Pe,xw:()=>M,yH:()=>g});var e=p(5e3),i=p(226),u=p(3270),b=p(9042),y=(p(7579),p(2722));let h=(()=>{class Ie extends u.QI{buildStyles(Me,{display:ut}){const ft=(0,b.Ar)(Me);return Object.assign(Object.assign({},ft),{display:"none"===ut?ut:ft.display})}}return Ie.\u0275fac=function(){let ce;return function(ut){return(ce||(ce=e.n5z(Ie)))(ut||Ie)}}(),Ie.\u0275prov=e.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const P=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let T=(()=>{class Ie extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,ft,ut,Rt),this._config=et,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Me){var ut;const Rt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ut=A.get(Rt))&&void 0!==ut?ut:new Map,A.set(Rt,this.styleCache),this.currentValue!==Me&&(this.addStyles(Me,{display:Rt}),this.currentValue=Me)}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(h),e.Y36(u.yB),e.Y36(u.WU))},Ie.\u0275dir=e.lG2({type:Ie,features:[e.qOj]}),Ie})(),M=(()=>{class Ie extends T{constructor(){super(...arguments),this.inputs=P}}return Ie.\u0275fac=function(){let ce;return function(ut){return(ce||(ce=e.n5z(Ie)))(ut||Ie)}}(),Ie.\u0275dir=e.lG2({type:Ie,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),Ie})();const A=new Map;let t=(()=>{class Ie extends u.QI{constructor(Me){super(),this.layoutConfig=Me}buildStyles(Me,ut){let[ft,Rt,...et]=Me.split(" "),Re=et.join(" ");const Je=ut.direction.indexOf("column")>-1?"column":"row",Ke=(0,b.tj)(Je)?"max-width":"max-height",we=(0,b.tj)(Je)?"min-width":"min-height",Fe=String(Re).indexOf("calc")>-1,rt=Fe||"auto"===Re,at=String(Re).indexOf("%")>-1&&!Fe,yt=String(Re).indexOf("px")>-1||String(Re).indexOf("rem")>-1||String(Re).indexOf("em")>-1||String(Re).indexOf("vw")>-1||String(Re).indexOf("vh")>-1;let mi=Fe||yt;ft="0"==ft?0:ft,Rt="0"==Rt?0:Rt;const Xt=!ft&&!Rt;let qt={};const Xi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Re||""){case"":const ui=!1!==this.layoutConfig.useColumnBasisZero;Re="row"===Je?"0%":ui?"0.000000001px":"auto";break;case"initial":case"nogrow":ft=0,Re="auto";break;case"grow":Re="100%";break;case"noshrink":Rt=0,Re="auto";break;case"auto":break;case"none":ft=0,Rt=0,Re="auto";break;default:!mi&&!at&&!isNaN(Re)&&(Re+="%"),"0%"===Re&&(mi=!0),"0px"===Re&&(Re="0%"),qt=(0,b.kt)(Xi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":mi?Re:"100%"}:{flex:`${ft} ${Rt} ${mi?Re:"100%"}`})}return qt.flex||qt["flex-grow"]||(qt=(0,b.kt)(Xi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`})),"0%"!==Re&&"0px"!==Re&&"0.000000001px"!==Re&&"auto"!==Re&&(qt[we]=Xt||mi&&ft?Re:null,qt[Ke]=Xt||!rt&&Rt?Re:null),qt[we]||qt[Ke]?ut.hasWrap&&(qt[Fe?"flex-basis":"flex"]=qt[Ke]?Fe?qt[Ke]:`${ft} ${Rt} ${qt[Ke]}`:Fe?qt[we]:`${ft} ${Rt} ${qt[we]}`):qt=(0,b.kt)(Xi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`}),(0,b.kt)(qt,{"box-sizing":"border-box"})}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(e.LFG(u.WU))},Ie.\u0275prov=e.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let c=(()=>{class Ie extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,Rt,ut,et),this.layoutConfig=ft,this.marshal=et,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Me){this.flexShrink=Me||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Me){this.flexGrow=Me||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Me){const ft=Me.value.split(" ");this.direction=ft[0],this.wrap=void 0!==ft[1]&&"wrap"===ft[1],this.triggerUpdate()}updateWithValue(Me){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const ft=this.direction,Rt=ft.startsWith("row"),et=this.wrap;Rt&&et?this.styleCache=C:Rt&&!et?this.styleCache=S:!Rt&&et?this.styleCache=n:!Rt&&!et&&(this.styleCache=I);const Re=String(Me).replace(";",""),Je=(0,u.Ot)(Re,this.flexGrow,this.flexShrink);this.addStyles(Je.join(" "),{direction:ft,hasWrap:et})}triggerReflow(){const Me=this.activatedValue;if(void 0!==Me){const ut=(0,u.Ot)(Me+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ut.join(" "))}}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(u.WU),e.Y36(t),e.Y36(u.yB))},Ie.\u0275dir=e.lG2({type:Ie,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Ie})(),g=(()=>{class Ie extends c{constructor(){super(...arguments),this.inputs=r}}return Ie.\u0275fac=function(){let ce;return function(ut){return(ce||(ce=e.n5z(Ie)))(ut||Ie)}}(),Ie.\u0275dir=e.lG2({type:Ie,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),Ie})();const S=new Map,I=new Map,C=new Map,n=new Map;let ot=(()=>{class Ie extends u.QI{buildStyles(Me,ut){const ft={},[Rt,et]=Me.split(" ");switch(Rt){case"center":ft["justify-content"]="center";break;case"space-around":ft["justify-content"]="space-around";break;case"space-between":ft["justify-content"]="space-between";break;case"space-evenly":ft["justify-content"]="space-evenly";break;case"end":case"flex-end":ft["justify-content"]="flex-end";break;default:ft["justify-content"]="flex-start"}switch(et){case"start":case"flex-start":ft["align-items"]=ft["align-content"]="flex-start";break;case"center":ft["align-items"]=ft["align-content"]="center";break;case"end":case"flex-end":ft["align-items"]=ft["align-content"]="flex-end";break;case"space-between":ft["align-content"]="space-between",ft["align-items"]="stretch";break;case"space-around":ft["align-content"]="space-around",ft["align-items"]="stretch";break;case"baseline":ft["align-content"]="stretch",ft["align-items"]="baseline";break;default:ft["align-items"]=ft["align-content"]="stretch"}return(0,b.kt)(ft,{display:ut.inline?"inline-flex":"flex","flex-direction":ut.layout,"box-sizing":"border-box","max-width":"stretch"===et?(0,b.tj)(ut.layout)?null:"100%":null,"max-height":"stretch"===et&&(0,b.tj)(ut.layout)?"100%":null})}}return Ie.\u0275fac=function(){let ce;return function(ut){return(ce||(ce=e.n5z(Ie)))(ut||Ie)}}(),Ie.\u0275prov=e.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();const ht=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let hi=(()=>{class Ie extends u.iR{constructor(Me,ut,ft,Rt){super(Me,ft,ut,Rt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Me){const ut=this.layout||"row",ft=this.inline;"row"===ut&&ft?this.styleCache=mt:"row"!==ut||ft?"row-reverse"===ut&&ft?this.styleCache=_t:"row-reverse"!==ut||ft?"column"===ut&&ft?this.styleCache=Xe:"column"!==ut||ft?"column-reverse"===ut&&ft?this.styleCache=ei:"column-reverse"===ut&&!ft&&(this.styleCache=kt):this.styleCache=di:this.styleCache=vt:this.styleCache=Gt,this.addStyles(Me,{layout:ut,inline:ft})}onLayoutChange(Me){const ut=Me.value.split(" ");this.layout=ut[0],this.inline=Me.value.includes("inline"),b.iQ.find(ft=>ft===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Ie.\u0275fac=function(Me){return new(Me||Ie)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(ot),e.Y36(u.yB))},Ie.\u0275dir=e.lG2({type:Ie,features:[e.qOj]}),Ie})(),jt=(()=>{class Ie extends hi{constructor(){super(...arguments),this.inputs=ht}}return Ie.\u0275fac=function(){let ce;return function(ut){return(ce||(ce=e.n5z(Ie)))(ut||Ie)}}(),Ie.\u0275dir=e.lG2({type:Ie,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),Ie})();const Gt=new Map,di=new Map,vt=new Map,kt=new Map,mt=new Map,Xe=new Map,_t=new Map,ei=new Map;let Pe=(()=>{class Ie{}return Ie.\u0275fac=function(Me){return new(Me||Ie)},Ie.\u0275mod=e.oAB({type:Ie}),Ie.\u0275inj=e.cJS({imports:[[u.IR,i.vT]]}),Ie})()},3075:(He,j,p)=>{"use strict";p.d(j,{Cf:()=>U,F:()=>Zt,Fd:()=>Ma,Fj:()=>k,JJ:()=>De,JL:()=>he,JU:()=>P,NI:()=>Li,On:()=>Tn,Q7:()=>Fr,UX:()=>ci,Zs:()=>ha,_Y:()=>Kn,a5:()=>be,kI:()=>X,oH:()=>La,qQ:()=>Jn,qu:()=>Wt,sg:()=>rr,u:()=>Xn,u5:()=>Tt,wV:()=>wi});var e=p(5e3),i=p(9808),u=p(457),b=p(4128),a=p(4004);let y=(()=>{class Ge{constructor(Ne,wt){this._renderer=Ne,this._elementRef=wt,this.onChange=Ei=>{},this.onTouched=()=>{}}setProperty(Ne,wt){this._renderer.setProperty(this._elementRef.nativeElement,Ne,wt)}registerOnTouched(Ne){this.onTouched=Ne}registerOnChange(Ne){this.onChange=Ne}setDisabledState(Ne){this.setProperty("disabled",Ne)}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ge.\u0275dir=e.lG2({type:Ge}),Ge})(),h=(()=>{class Ge extends y{}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,features:[e.qOj]}),Ge})();const P=new e.OlP("NgValueAccessor"),M={provide:P,useExisting:(0,e.Gpc)(()=>k),multi:!0},E=new e.OlP("CompositionEventMode");let k=(()=>{class Ge extends y{constructor(Ne,wt,Ei){super(Ne,wt),this._compositionMode=Ei,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const Ge=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(Ge.toLowerCase())}())}writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}_handleInput(Ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ne)}_compositionStart(){this._composing=!0}_compositionEnd(Ne){this._composing=!1,this._compositionMode&&this.onChange(Ne)}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},Ge.\u0275dir=e.lG2({type:Ge,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(Ne,wt){1&Ne&&e.NdJ("input",function(Bi){return wt._handleInput(Bi.target.value)})("blur",function(){return wt.onTouched()})("compositionstart",function(){return wt._compositionStart()})("compositionend",function(Bi){return wt._compositionEnd(Bi.target.value)})},features:[e._Bn([M]),e.qOj]}),Ge})();function w(Ge){return null==Ge||0===Ge.length}function V(Ge){return null!=Ge&&"number"==typeof Ge.length}const U=new e.OlP("NgValidators"),Y=new e.OlP("NgAsyncValidators"),ae=/^(?=.{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])?)*$/;class X{static min(Be){return de(Be)}static max(Be){return q(Be)}static required(Be){return re(Be)}static requiredTrue(Be){return le(Be)}static email(Be){return function ee(Ge){return w(Ge.value)||ae.test(Ge.value)?null:{email:!0}}(Be)}static minLength(Be){return function _e(Ge){return Be=>w(Be.value)||!V(Be.value)?null:Be.value.lengthV(Be.value)&&Be.value.length>Ge?{maxlength:{requiredLength:Ge,actualLength:Be.value.length}}:null}(Be)}static pattern(Be){return function t(Ge){if(!Ge)return r;let Be,Ne;return"string"==typeof Ge?(Ne="","^"!==Ge.charAt(0)&&(Ne+="^"),Ne+=Ge,"$"!==Ge.charAt(Ge.length-1)&&(Ne+="$"),Be=new RegExp(Ne)):(Ne=Ge.toString(),Be=Ge),wt=>{if(w(wt.value))return null;const Ei=wt.value;return Be.test(Ei)?null:{pattern:{requiredPattern:Ne,actualValue:Ei}}}}(Be)}static nullValidator(Be){return null}static compose(Be){return n(Be)}static composeAsync(Be){return B(Be)}}function de(Ge){return Be=>{if(w(Be.value)||w(Ge))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne{if(w(Be.value)||w(Ge))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne>Ge?{max:{max:Ge,actual:Be.value}}:null}}function re(Ge){return w(Ge.value)?{required:!0}:null}function le(Ge){return!0===Ge.value?null:{required:!0}}function r(Ge){return null}function d(Ge){return null!=Ge}function c(Ge){const Be=(0,e.QGY)(Ge)?(0,u.D)(Ge):Ge;return(0,e.CqO)(Be),Be}function g(Ge){let Be={};return Ge.forEach(Ne=>{Be=null!=Ne?Object.assign(Object.assign({},Be),Ne):Be}),0===Object.keys(Be).length?null:Be}function S(Ge,Be){return Be.map(Ne=>Ne(Ge))}function C(Ge){return Ge.map(Be=>function I(Ge){return!Ge.validate}(Be)?Be:Ne=>Be.validate(Ne))}function n(Ge){if(!Ge)return null;const Be=Ge.filter(d);return 0==Be.length?null:function(Ne){return g(S(Ne,Be))}}function _(Ge){return null!=Ge?n(C(Ge)):null}function B(Ge){if(!Ge)return null;const Be=Ge.filter(d);return 0==Be.length?null:function(Ne){const wt=S(Ne,Be).map(c);return(0,b.D)(wt).pipe((0,a.U)(g))}}function R(Ge){return null!=Ge?B(C(Ge)):null}function H(Ge,Be){return null===Ge?[Be]:Array.isArray(Ge)?[...Ge,Be]:[Ge,Be]}function Q(Ge){return Ge._rawValidators}function Z(Ge){return Ge._rawAsyncValidators}function te(Ge){return Ge?Array.isArray(Ge)?Ge:[Ge]:[]}function Te(Ge,Be){return Array.isArray(Ge)?Ge.includes(Be):Ge===Be}function Ee(Ge,Be){const Ne=te(Be);return te(Ge).forEach(Ei=>{Te(Ne,Ei)||Ne.push(Ei)}),Ne}function ne(Ge,Be){return te(Be).filter(Ne=>!Te(Ge,Ne))}class ze{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(Be){this._rawValidators=Be||[],this._composedValidatorFn=_(this._rawValidators)}_setAsyncValidators(Be){this._rawAsyncValidators=Be||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Be){this._onDestroyCallbacks.push(Be)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Be=>Be()),this._onDestroyCallbacks=[]}reset(Be){this.control&&this.control.reset(Be)}hasError(Be,Ne){return!!this.control&&this.control.hasError(Be,Ne)}getError(Be,Ne){return this.control?this.control.getError(Be,Ne):null}}class be extends ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $ extends ze{get formDirective(){return null}get path(){return null}}class ke{constructor(Be){this._cd=Be}is(Be){var Ne,wt,Ei;return"submitted"===Be?!!(null===(Ne=this._cd)||void 0===Ne?void 0:Ne.submitted):!!(null===(Ei=null===(wt=this._cd)||void 0===wt?void 0:wt.control)||void 0===Ei?void 0:Ei[Be])}}let De=(()=>{class Ge extends ke{constructor(Ne){super(Ne)}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(be,2))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ne,wt){2&Ne&&e.ekj("ng-untouched",wt.is("untouched"))("ng-touched",wt.is("touched"))("ng-pristine",wt.is("pristine"))("ng-dirty",wt.is("dirty"))("ng-valid",wt.is("valid"))("ng-invalid",wt.is("invalid"))("ng-pending",wt.is("pending"))},features:[e.qOj]}),Ge})(),he=(()=>{class Ge extends ke{constructor(Ne){super(Ne)}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36($,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ne,wt){2&Ne&&e.ekj("ng-untouched",wt.is("untouched"))("ng-touched",wt.is("touched"))("ng-pristine",wt.is("pristine"))("ng-dirty",wt.is("dirty"))("ng-valid",wt.is("valid"))("ng-invalid",wt.is("invalid"))("ng-pending",wt.is("pending"))("ng-submitted",wt.is("submitted"))},features:[e.qOj]}),Ge})();function mt(Ge,Be){return[...Be.path,Ge]}function Xe(Ge,Be){Pe(Ge,Be),Be.valueAccessor.writeValue(Ge.value),function ce(Ge,Be){Be.valueAccessor.registerOnChange(Ne=>{Ge._pendingValue=Ne,Ge._pendingChange=!0,Ge._pendingDirty=!0,"change"===Ge.updateOn&&ut(Ge,Be)})}(Ge,Be),function ft(Ge,Be){const Ne=(wt,Ei)=>{Be.valueAccessor.writeValue(wt),Ei&&Be.viewToModelUpdate(wt)};Ge.registerOnChange(Ne),Be._registerOnDestroy(()=>{Ge._unregisterOnChange(Ne)})}(Ge,Be),function Me(Ge,Be){Be.valueAccessor.registerOnTouched(()=>{Ge._pendingTouched=!0,"blur"===Ge.updateOn&&Ge._pendingChange&&ut(Ge,Be),"submit"!==Ge.updateOn&&Ge.markAsTouched()})}(Ge,Be),function Kt(Ge,Be){if(Be.valueAccessor.setDisabledState){const Ne=wt=>{Be.valueAccessor.setDisabledState(wt)};Ge.registerOnDisabledChange(Ne),Be._registerOnDestroy(()=>{Ge._unregisterOnDisabledChange(Ne)})}}(Ge,Be)}function _t(Ge,Be,Ne=!0){const wt=()=>{};Be.valueAccessor&&(Be.valueAccessor.registerOnChange(wt),Be.valueAccessor.registerOnTouched(wt)),Ie(Ge,Be),Ge&&(Be._invokeOnDestroyCallbacks(),Ge._registerOnCollectionChange(()=>{}))}function ei(Ge,Be){Ge.forEach(Ne=>{Ne.registerOnValidatorChange&&Ne.registerOnValidatorChange(Be)})}function Pe(Ge,Be){const Ne=Q(Ge);null!==Be.validator?Ge.setValidators(H(Ne,Be.validator)):"function"==typeof Ne&&Ge.setValidators([Ne]);const wt=Z(Ge);null!==Be.asyncValidator?Ge.setAsyncValidators(H(wt,Be.asyncValidator)):"function"==typeof wt&&Ge.setAsyncValidators([wt]);const Ei=()=>Ge.updateValueAndValidity();ei(Be._rawValidators,Ei),ei(Be._rawAsyncValidators,Ei)}function Ie(Ge,Be){let Ne=!1;if(null!==Ge){if(null!==Be.validator){const Ei=Q(Ge);if(Array.isArray(Ei)&&Ei.length>0){const Bi=Ei.filter(Rn=>Rn!==Be.validator);Bi.length!==Ei.length&&(Ne=!0,Ge.setValidators(Bi))}}if(null!==Be.asyncValidator){const Ei=Z(Ge);if(Array.isArray(Ei)&&Ei.length>0){const Bi=Ei.filter(Rn=>Rn!==Be.asyncValidator);Bi.length!==Ei.length&&(Ne=!0,Ge.setAsyncValidators(Bi))}}}const wt=()=>{};return ei(Be._rawValidators,wt),ei(Be._rawAsyncValidators,wt),Ne}function ut(Ge,Be){Ge._pendingDirty&&Ge.markAsDirty(),Ge.setValue(Ge._pendingValue,{emitModelToViewChange:!1}),Be.viewToModelUpdate(Ge._pendingValue),Ge._pendingChange=!1}function Rt(Ge,Be){Pe(Ge,Be)}function Fe(Ge,Be){if(!Ge.hasOwnProperty("model"))return!1;const Ne=Ge.model;return!!Ne.isFirstChange()||!Object.is(Be,Ne.currentValue)}function at(Ge,Be){Ge._syncPendingControls(),Be.forEach(Ne=>{const wt=Ne.control;"submit"===wt.updateOn&&wt._pendingChange&&(Ne.viewToModelUpdate(wt._pendingValue),wt._pendingChange=!1)})}function yt(Ge,Be){if(!Be)return null;let Ne,wt,Ei;return Array.isArray(Be),Be.forEach(Bi=>{Bi.constructor===k?Ne=Bi:function rt(Ge){return Object.getPrototypeOf(Ge.constructor)===h}(Bi)?wt=Bi:Ei=Bi}),Ei||wt||Ne||null}function mi(Ge,Be){const Ne=Ge.indexOf(Be);Ne>-1&&Ge.splice(Ne,1)}const Xi="VALID",ui="INVALID",si="PENDING",qi="DISABLED";function Ui(Ge){return(pt(Ge)?Ge.validators:Ge)||null}function Wi(Ge){return Array.isArray(Ge)?_(Ge):Ge||null}function ct(Ge,Be){return(pt(Be)?Be.asyncValidators:Ge)||null}function Ft(Ge){return Array.isArray(Ge)?R(Ge):Ge||null}function pt(Ge){return null!=Ge&&!Array.isArray(Ge)&&"object"==typeof Ge}const it=Ge=>Ge instanceof Li,It=Ge=>Ge instanceof Ji,ue=Ge=>Ge instanceof Yi;function $e(Ge){return it(Ge)?Ge.value:Ge.getRawValue()}function bt(Ge,Be){const Ne=It(Ge),wt=Ge.controls;if(!(Ne?Object.keys(wt):wt).length)throw new e.vHH(1e3,"");if(!wt[Be])throw new e.vHH(1001,"")}function Vt(Ge,Be){It(Ge),Ge._forEachChild((wt,Ei)=>{if(void 0===Be[Ei])throw new e.vHH(1002,"")})}class yi{constructor(Be,Ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Be,this._rawAsyncValidators=Ne,this._composedValidatorFn=Wi(this._rawValidators),this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Be){this._rawValidators=this._composedValidatorFn=Be}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Be){this._rawAsyncValidators=this._composedAsyncValidatorFn=Be}get parent(){return this._parent}get valid(){return this.status===Xi}get invalid(){return this.status===ui}get pending(){return this.status==si}get disabled(){return this.status===qi}get enabled(){return this.status!==qi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Be){this._rawValidators=Be,this._composedValidatorFn=Wi(Be)}setAsyncValidators(Be){this._rawAsyncValidators=Be,this._composedAsyncValidatorFn=Ft(Be)}addValidators(Be){this.setValidators(Ee(Be,this._rawValidators))}addAsyncValidators(Be){this.setAsyncValidators(Ee(Be,this._rawAsyncValidators))}removeValidators(Be){this.setValidators(ne(Be,this._rawValidators))}removeAsyncValidators(Be){this.setAsyncValidators(ne(Be,this._rawAsyncValidators))}hasValidator(Be){return Te(this._rawValidators,Be)}hasAsyncValidator(Be){return Te(this._rawAsyncValidators,Be)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Be={}){this.touched=!0,this._parent&&!Be.onlySelf&&this._parent.markAsTouched(Be)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Be=>Be.markAllAsTouched())}markAsUntouched(Be={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ne=>{Ne.markAsUntouched({onlySelf:!0})}),this._parent&&!Be.onlySelf&&this._parent._updateTouched(Be)}markAsDirty(Be={}){this.pristine=!1,this._parent&&!Be.onlySelf&&this._parent.markAsDirty(Be)}markAsPristine(Be={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ne=>{Ne.markAsPristine({onlySelf:!0})}),this._parent&&!Be.onlySelf&&this._parent._updatePristine(Be)}markAsPending(Be={}){this.status=si,!1!==Be.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Be.onlySelf&&this._parent.markAsPending(Be)}disable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=qi,this.errors=null,this._forEachChild(wt=>{wt.disable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this._updateValue(),!1!==Be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(wt=>wt(!0))}enable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=Xi,this._forEachChild(wt=>{wt.enable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(wt=>wt(!1))}_updateAncestors(Be){this._parent&&!Be.onlySelf&&(this._parent.updateValueAndValidity(Be),Be.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Be){this._parent=Be}updateValueAndValidity(Be={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xi||this.status===si)&&this._runAsyncValidator(Be.emitEvent)),!1!==Be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Be.onlySelf&&this._parent.updateValueAndValidity(Be)}_updateTreeValidity(Be={emitEvent:!0}){this._forEachChild(Ne=>Ne._updateTreeValidity(Be)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qi:Xi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Be){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const Ne=c(this.asyncValidator(this));this._asyncValidationSubscription=Ne.subscribe(wt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(wt,{emitEvent:Be})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Be,Ne={}){this.errors=Be,this._updateControlsErrors(!1!==Ne.emitEvent)}get(Be){return function Gi(Ge,Be,Ne){if(null==Be||(Array.isArray(Be)||(Be=Be.split(Ne)),Array.isArray(Be)&&0===Be.length))return null;let wt=Ge;return Be.forEach(Ei=>{wt=It(wt)?wt.controls.hasOwnProperty(Ei)?wt.controls[Ei]:null:ue(wt)&&wt.at(Ei)||null}),wt}(this,Be,".")}getError(Be,Ne){const wt=Ne?this.get(Ne):this;return wt&&wt.errors?wt.errors[Be]:null}hasError(Be,Ne){return!!this.getError(Be,Ne)}get root(){let Be=this;for(;Be._parent;)Be=Be._parent;return Be}_updateControlsErrors(Be){this.status=this._calculateStatus(),Be&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Be)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?qi:this.errors?ui:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(ui)?ui:Xi}_anyControlsHaveStatus(Be){return this._anyControls(Ne=>Ne.status===Be)}_anyControlsDirty(){return this._anyControls(Be=>Be.dirty)}_anyControlsTouched(){return this._anyControls(Be=>Be.touched)}_updatePristine(Be={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Be.onlySelf&&this._parent._updatePristine(Be)}_updateTouched(Be={}){this.touched=this._anyControlsTouched(),this._parent&&!Be.onlySelf&&this._parent._updateTouched(Be)}_isBoxedValue(Be){return"object"==typeof Be&&null!==Be&&2===Object.keys(Be).length&&"value"in Be&&"disabled"in Be}_registerOnCollectionChange(Be){this._onCollectionChange=Be}_setUpdateStrategy(Be){pt(Be)&&null!=Be.updateOn&&(this._updateOn=Be.updateOn)}_parentMarkedDirty(Be){return!Be&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Li extends yi{constructor(Be=null,Ne,wt){super(Ui(Ne),ct(wt,Ne)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Be),this._setUpdateStrategy(Ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pt(Ne)&&Ne.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Be)?Be.value:Be)}setValue(Be,Ne={}){this.value=this._pendingValue=Be,this._onChange.length&&!1!==Ne.emitModelToViewChange&&this._onChange.forEach(wt=>wt(this.value,!1!==Ne.emitViewToModelChange)),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){this.setValue(Be,Ne)}reset(Be=this.defaultValue,Ne={}){this._applyFormState(Be),this.markAsPristine(Ne),this.markAsUntouched(Ne),this.setValue(this.value,Ne),this._pendingChange=!1}_updateValue(){}_anyControls(Be){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Be){this._onChange.push(Be)}_unregisterOnChange(Be){mi(this._onChange,Be)}registerOnDisabledChange(Be){this._onDisabledChange.push(Be)}_unregisterOnDisabledChange(Be){mi(this._onDisabledChange,Be)}_forEachChild(Be){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Be){this._isBoxedValue(Be)?(this.value=this._pendingValue=Be.value,Be.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Be}}class Ji extends yi{constructor(Be,Ne,wt){super(Ui(Ne),ct(wt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Be,Ne){return this.controls[Be]?this.controls[Be]:(this.controls[Be]=Ne,Ne.setParent(this),Ne._registerOnCollectionChange(this._onCollectionChange),Ne)}addControl(Be,Ne,wt={}){this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}removeControl(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}setControl(Be,Ne,wt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],Ne&&this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}contains(Be){return this.controls.hasOwnProperty(Be)&&this.controls[Be].enabled}setValue(Be,Ne={}){Vt(this,Be),Object.keys(Be).forEach(wt=>{bt(this,wt),this.controls[wt].setValue(Be[wt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Object.keys(Be).forEach(wt=>{this.controls[wt]&&this.controls[wt].patchValue(Be[wt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be={},Ne={}){this._forEachChild((wt,Ei)=>{wt.reset(Be[Ei],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this._reduceChildren({},(Be,Ne,wt)=>(Be[wt]=$e(Ne),Be))}_syncPendingControls(){let Be=this._reduceChildren(!1,(Ne,wt)=>!!wt._syncPendingControls()||Ne);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){Object.keys(this.controls).forEach(Ne=>{const wt=this.controls[Ne];wt&&Be(wt,Ne)})}_setUpControls(){this._forEachChild(Be=>{Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Be){for(const Ne of Object.keys(this.controls)){const wt=this.controls[Ne];if(this.contains(Ne)&&Be(wt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Be,Ne,wt)=>((Ne.enabled||this.disabled)&&(Be[wt]=Ne.value),Be))}_reduceChildren(Be,Ne){let wt=Be;return this._forEachChild((Ei,Bi)=>{wt=Ne(wt,Ei,Bi)}),wt}_allControlsDisabled(){for(const Be of Object.keys(this.controls))if(this.controls[Be].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Yi extends yi{constructor(Be,Ne,wt){super(Ui(Ne),ct(wt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Be){return this.controls[Be]}push(Be,Ne={}){this.controls.push(Be),this._registerControl(Be),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}insert(Be,Ne,wt={}){this.controls.splice(Be,0,Ne),this._registerControl(Ne),this.updateValueAndValidity({emitEvent:wt.emitEvent})}removeAt(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),this.updateValueAndValidity({emitEvent:Ne.emitEvent})}setControl(Be,Ne,wt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),Ne&&(this.controls.splice(Be,0,Ne),this._registerControl(Ne)),this.updateValueAndValidity({emitEvent:wt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Be,Ne={}){Vt(this,Be),Be.forEach((wt,Ei)=>{bt(this,Ei),this.at(Ei).setValue(wt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Be.forEach((wt,Ei)=>{this.at(Ei)&&this.at(Ei).patchValue(wt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be=[],Ne={}){this._forEachChild((wt,Ei)=>{wt.reset(Be[Ei],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this.controls.map(Be=>$e(Be))}clear(Be={}){this.controls.length<1||(this._forEachChild(Ne=>Ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Be.emitEvent}))}_syncPendingControls(){let Be=this.controls.reduce((Ne,wt)=>!!wt._syncPendingControls()||Ne,!1);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){this.controls.forEach((Ne,wt)=>{Be(Ne,wt)})}_updateValue(){this.value=this.controls.filter(Be=>Be.enabled||this.disabled).map(Be=>Be.value)}_anyControls(Be){return this.controls.some(Ne=>Ne.enabled&&Be(Ne))}_setUpControls(){this._forEachChild(Be=>this._registerControl(Be))}_allControlsDisabled(){for(const Be of this.controls)if(Be.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Be){Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange)}}const an={provide:$,useExisting:(0,e.Gpc)(()=>Zt)},pn=(()=>Promise.resolve(null))();let Zt=(()=>{class Ge extends ${constructor(Ne,wt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new Ji({},_(Ne),R(wt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ne){pn.then(()=>{const wt=this._findContainer(Ne.path);Ne.control=wt.registerControl(Ne.name,Ne.control),Xe(Ne.control,Ne),Ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ne)})}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){pn.then(()=>{const wt=this._findContainer(Ne.path);wt&&wt.removeControl(Ne.name),this._directives.delete(Ne)})}addFormGroup(Ne){pn.then(()=>{const wt=this._findContainer(Ne.path),Ei=new Ji({});Rt(Ei,Ne),wt.registerControl(Ne.name,Ei),Ei.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ne){pn.then(()=>{const wt=this._findContainer(Ne.path);wt&&wt.removeControl(Ne.name)})}getFormGroup(Ne){return this.form.get(Ne.path)}updateModel(Ne,wt){pn.then(()=>{this.form.get(Ne.path).setValue(wt)})}setValue(Ne){this.control.setValue(Ne)}onSubmit(Ne){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ne){return Ne.pop(),Ne.length?this.form.get(Ne):this.form}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(U,10),e.Y36(Y,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ne,wt){1&Ne&&e.NdJ("submit",function(Bi){return wt.onSubmit(Bi)})("reset",function(){return wt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([an]),e.qOj]}),Ge})();const dn={provide:be,useExisting:(0,e.Gpc)(()=>Tn)},Nn=(()=>Promise.resolve(null))();let Tn=(()=>{class Ge extends be{constructor(Ne,wt,Ei,Bi,Rn){super(),this._changeDetectorRef=Rn,this.control=new Li,this._registered=!1,this.update=new e.vpe,this._parent=Ne,this._setValidators(wt),this._setAsyncValidators(Ei),this.valueAccessor=yt(0,Bi)}ngOnChanges(Ne){if(this._checkForErrors(),!this._registered||"name"in Ne){if(this._registered&&(this._checkName(),this.formDirective)){const wt=Ne.name.previousValue;this.formDirective.removeControl({name:wt,path:this._getPath(wt)})}this._setUpControl()}"isDisabled"in Ne&&this._updateDisabled(Ne),Fe(Ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Xe(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ne){Nn.then(()=>{var wt;this.control.setValue(Ne,{emitViewToModelChange:!1}),null===(wt=this._changeDetectorRef)||void 0===wt||wt.markForCheck()})}_updateDisabled(Ne){const wt=Ne.isDisabled.currentValue,Ei=""===wt||wt&&"false"!==wt;Nn.then(()=>{var Bi;Ei&&!this.control.disabled?this.control.disable():!Ei&&this.control.disabled&&this.control.enable(),null===(Bi=this._changeDetectorRef)||void 0===Bi||Bi.markForCheck()})}_getPath(Ne){return this._parent?mt(Ne,this._parent):[Ne]}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36($,9),e.Y36(U,10),e.Y36(Y,10),e.Y36(P,10),e.Y36(e.sBO,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([dn]),e.qOj,e.TTD]}),Ge})(),Kn=(()=>{class Ge{}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ge})();const gn={provide:P,useExisting:(0,e.Gpc)(()=>wi),multi:!0};let wi=(()=>{class Ge extends h{writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}registerOnChange(Ne){this.onChange=wt=>{Ne(""==wt?null:parseFloat(wt))}}}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ne,wt){1&Ne&&e.NdJ("input",function(Bi){return wt.onChange(Bi.target.value)})("blur",function(){return wt.onTouched()})},features:[e._Bn([gn]),e.qOj]}),Ge})(),Gn=(()=>{class Ge{}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({}),Ge})();const sa=new e.OlP("NgModelWithFormControlWarning"),oa={provide:be,useExisting:(0,e.Gpc)(()=>La)};let La=(()=>{class Ge extends be{constructor(Ne,wt,Ei,Bi){super(),this._ngModelWarningConfig=Bi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ne),this._setAsyncValidators(wt),this.valueAccessor=yt(0,Ei)}set isDisabled(Ne){}ngOnChanges(Ne){if(this._isControlChanged(Ne)){const wt=Ne.form.previousValue;wt&&_t(wt,this,!1),Xe(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Fe(Ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}_isControlChanged(Ne){return Ne.hasOwnProperty("form")}}return Ge._ngModelWarningSentOnce=!1,Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(U,10),e.Y36(Y,10),e.Y36(P,10),e.Y36(sa,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([oa]),e.qOj,e.TTD]}),Ge})();const Ta={provide:$,useExisting:(0,e.Gpc)(()=>rr)};let rr=(()=>{class Ge extends ${constructor(Ne,wt){super(),this.validators=Ne,this.asyncValidators=wt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ne),this._setAsyncValidators(wt)}ngOnChanges(Ne){this._checkFormPresent(),Ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ie(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ne){const wt=this.form.get(Ne.path);return Xe(wt,Ne),wt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ne),wt}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){_t(Ne.control||null,Ne,!1),mi(this.directives,Ne)}addFormGroup(Ne){this._setUpFormContainer(Ne)}removeFormGroup(Ne){this._cleanUpFormContainer(Ne)}getFormGroup(Ne){return this.form.get(Ne.path)}addFormArray(Ne){this._setUpFormContainer(Ne)}removeFormArray(Ne){this._cleanUpFormContainer(Ne)}getFormArray(Ne){return this.form.get(Ne.path)}updateModel(Ne,wt){this.form.get(Ne.path).setValue(wt)}onSubmit(Ne){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ne=>{const wt=Ne.control,Ei=this.form.get(Ne.path);wt!==Ei&&(_t(wt||null,Ne),it(Ei)&&(Xe(Ei,Ne),Ne.control=Ei))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ne){const wt=this.form.get(Ne.path);Rt(wt,Ne),wt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ne){if(this.form){const wt=this.form.get(Ne.path);wt&&function et(Ge,Be){return Ie(Ge,Be)}(wt,Ne)&&wt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&Ie(this._oldForm,this)}_checkFormPresent(){}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36(U,10),e.Y36(Y,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formGroup",""]],hostBindings:function(Ne,wt){1&Ne&&e.NdJ("submit",function(Bi){return wt.onSubmit(Bi)})("reset",function(){return wt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ta]),e.qOj,e.TTD]}),Ge})();const Rr={provide:be,useExisting:(0,e.Gpc)(()=>Xn)};let Xn=(()=>{class Ge extends be{constructor(Ne,wt,Ei,Bi,Rn){super(),this._ngModelWarningConfig=Rn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ne,this._setValidators(wt),this._setAsyncValidators(Ei),this.valueAccessor=yt(0,Bi)}set isDisabled(Ne){}ngOnChanges(Ne){this._added||this._setUpControl(),Fe(Ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}get path(){return mt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Ge._ngModelWarningSentOnce=!1,Ge.\u0275fac=function(Ne){return new(Ne||Ge)(e.Y36($,13),e.Y36(U,10),e.Y36(Y,10),e.Y36(P,10),e.Y36(sa,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Rr]),e.qOj,e.TTD]}),Ge})();function da(Ge){return"number"==typeof Ge?Ge:parseFloat(Ge)}let qn=(()=>{class Ge{constructor(){this._validator=r}ngOnChanges(Ne){if(this.inputName in Ne){const wt=this.normalizeInput(Ne[this.inputName].currentValue);this._enabled=this.enabled(wt),this._validator=this._enabled?this.createValidator(wt):r,this._onChange&&this._onChange()}}validate(Ne){return this._validator(Ne)}registerOnValidatorChange(Ne){this._onChange=Ne}enabled(Ne){return null!=Ne}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275dir=e.lG2({type:Ge,features:[e.TTD]}),Ge})();const ga={provide:U,useExisting:(0,e.Gpc)(()=>Ma),multi:!0};let Ma=(()=>{class Ge extends qn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>q(Ne)}}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ne,wt){2&Ne&&e.uIk("max",wt._enabled?wt.max:null)},inputs:{max:"max"},features:[e._Bn([ga]),e.qOj]}),Ge})();const $n={provide:U,useExisting:(0,e.Gpc)(()=>Jn),multi:!0};let Jn=(()=>{class Ge extends qn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>de(Ne)}}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ne,wt){2&Ne&&e.uIk("min",wt._enabled?wt.min:null)},inputs:{min:"min"},features:[e._Bn([$n]),e.qOj]}),Ge})();const Hr={provide:U,useExisting:(0,e.Gpc)(()=>Fr),multi:!0},xr={provide:U,useExisting:(0,e.Gpc)(()=>ha),multi:!0};let Fr=(()=>{class Ge extends qn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ne=>function ca(Ge){return null!=Ge&&!1!==Ge&&"false"!=`${Ge}`}(Ne),this.createValidator=Ne=>re}enabled(Ne){return Ne}}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ne,wt){2&Ne&&e.uIk("required",wt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Hr]),e.qOj]}),Ge})(),ha=(()=>{class Ge extends Fr{constructor(){super(...arguments),this.createValidator=Ne=>le}}return Ge.\u0275fac=function(){let Be;return function(wt){return(Be||(Be=e.n5z(Ge)))(wt||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ne,wt){2&Ne&&e.uIk("required",wt._enabled?"":null)},features:[e._Bn([xr]),e.qOj]}),Ge})(),Fn=(()=>{class Ge{}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[[Gn]]}),Ge})(),Tt=(()=>{class Ge{}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[Fn]}),Ge})(),ci=(()=>{class Ge{static withConfig(Ne){return{ngModule:Ge,providers:[{provide:sa,useValue:Ne.warnOnNgModelWithFormControl}]}}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[Fn]}),Ge})(),Wt=(()=>{class Ge{group(Ne,wt=null){const Ei=this._reduceControls(Ne);let sr,Bi=null,Rn=null;return null!=wt&&(function Ct(Ge){return void 0!==Ge.asyncValidators||void 0!==Ge.validators||void 0!==Ge.updateOn}(wt)?(Bi=null!=wt.validators?wt.validators:null,Rn=null!=wt.asyncValidators?wt.asyncValidators:null,sr=null!=wt.updateOn?wt.updateOn:void 0):(Bi=null!=wt.validator?wt.validator:null,Rn=null!=wt.asyncValidator?wt.asyncValidator:null)),new Ji(Ei,{asyncValidators:Rn,updateOn:sr,validators:Bi})}control(Ne,wt,Ei){return new Li(Ne,wt,Ei)}array(Ne,wt,Ei){const Bi=Ne.map(Rn=>this._createControl(Rn));return new Yi(Bi,wt,Ei)}_reduceControls(Ne){const wt={};return Object.keys(Ne).forEach(Ei=>{wt[Ei]=this._createControl(Ne[Ei])}),wt}_createControl(Ne){return it(Ne)||It(Ne)||ue(Ne)?Ne:Array.isArray(Ne)?this.control(Ne[0],Ne.length>1?Ne[1]:null,Ne.length>2?Ne[2]:null):this.control(Ne)}}return Ge.\u0275fac=function(Ne){return new(Ne||Ge)},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:ci}),Ge})()},1079:(He,j,p)=>{"use strict";p.d(j,{Bb:()=>ne,XC:()=>n,ZL:()=>te});var e=p(5664),i=p(3191),u=p(5e3),b=p(508),a=p(727),y=p(7579),h=p(9770),P=p(6451),D=p(9646),T=p(4968),M=p(925),A=p(9808),E=p(9776),k=p(5303),w=p(1159),V=p(7429),U=p(3075),Y=p(7322),ae=p(8675),X=p(3900),de=p(5698),q=p(9300),re=p(4004),le=p(8505),ee=p(4086),_e=p(226);const x=["panel"];function t(ze,be){if(1&ze&&(u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA()),2&ze){const $=be.id,ke=u.oxw();u.Q6J("id",ke.id)("ngClass",ke._classList),u.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke._getPanelAriaLabelledby($))}}const r=["*"];let d=0;class c{constructor(be,$){this.source=be,this.option=$}}const g=(0,b.Kr)(class{}),S=new u.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let C=(()=>{class ze extends g{constructor($,ke,lt,W){super(),this._changeDetectorRef=$,this._elementRef=ke,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new u.vpe,this.opened=new u.vpe,this.closed=new u.vpe,this.optionActivated=new u.vpe,this._classList={},this.id="mat-autocomplete-"+d++,this.inertGroups=(null==W?void 0:W.SAFARI)||!1,this._autoActiveFirstOption=!!lt.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption($){this._autoActiveFirstOption=(0,i.Ig)($)}set classList($){this._classList=$&&$.length?(0,i.du)($).reduce((ke,lt)=>(ke[lt]=!0,ke),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe($=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[$]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop($){this.panel&&(this.panel.nativeElement.scrollTop=$)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent($){const ke=new c(this,$);this.optionSelected.emit(ke)}_getPanelAriaLabelledby($){return this.ariaLabel?null:this.ariaLabelledby?($?$+" ":"")+this.ariaLabelledby:$}_setVisibilityClasses($){$[this._visibleClass]=this.showPanel,$[this._hiddenClass]=!this.showPanel}}return ze.\u0275fac=function($){return new($||ze)(u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(S),u.Y36(M.t4))},ze.\u0275dir=u.lG2({type:ze,viewQuery:function($,ke){if(1&$&&(u.Gf(u.Rgc,7),u.Gf(x,5)),2&$){let lt;u.iGM(lt=u.CRH())&&(ke.template=lt.first),u.iGM(lt=u.CRH())&&(ke.panel=lt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[u.qOj]}),ze})(),n=(()=>{class ze extends C{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ze.\u0275fac=function(){let be;return function(ke){return(be||(be=u.n5z(ze)))(ke||ze)}}(),ze.\u0275cmp=u.Xpm({type:ze,selectors:[["mat-autocomplete"]],contentQueries:function($,ke,lt){if(1&$&&(u.Suo(lt,b.K7,5),u.Suo(lt,b.ey,5)),2&$){let W;u.iGM(W=u.CRH())&&(ke.optionGroups=W),u.iGM(W=u.CRH())&&(ke.options=W)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[u._Bn([{provide:b.HF,useExisting:ze}]),u.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function($,ke){1&$&&(u.F$t(),u.YNc(0,t,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),ze})();const _=new u.OlP("mat-autocomplete-scroll-strategy"),R={provide:_,deps:[E.aV],useFactory:function B(ze){return()=>ze.scrollStrategies.reposition()}},H={provide:U.JU,useExisting:(0,u.Gpc)(()=>te),multi:!0};let Z=(()=>{class ze{constructor($,ke,lt,W,De,he,Ae,xe,G,ie,pe){this._element=$,this._overlay=ke,this._viewContainerRef=lt,this._zone=W,this._changeDetectorRef=De,this._dir=Ae,this._formField=xe,this._document=G,this._viewportRuler=ie,this._defaults=pe,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new y.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,h.P)(()=>{const ye=this.autocomplete?this.autocomplete.options:null;return ye?ye.changes.pipe((0,ae.O)(ye),(0,X.w)(()=>(0,P.T)(...ye.map(Le=>Le.onSelectionChange)))):this._zone.onStable.pipe((0,de.q)(1),(0,X.w)(()=>this.optionSelections))}),this._scrollStrategy=he}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled($){this._autocompleteDisabled=(0,i.Ig)($)}ngAfterViewInit(){const $=this._getWindow();void 0!==$&&this._zone.runOutsideAngular(()=>$.addEventListener("blur",this._windowBlurHandler))}ngOnChanges($){$.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const $=this._getWindow();void 0!==$&&$.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,q.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,q.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,re.U)($=>$ instanceof b.rN?$:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,T.R)(this._document,"click"),(0,T.R)(this._document,"auxclick"),(0,T.R)(this._document,"touchend")).pipe((0,q.h)($=>{const ke=(0,M.sA)($),lt=this._formField?this._formField._elementRef.nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ke!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!lt||!lt.contains(ke))&&(!W||!W.contains(ke))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ke)}))}writeValue($){Promise.resolve().then(()=>this._setTriggerValue($))}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this._element.nativeElement.disabled=$}_handleKeydown($){const ke=$.keyCode,lt=(0,w.Vb)($);if(ke===w.hY&&!lt&&$.preventDefault(),this.activeOption&&ke===w.K5&&this.panelOpen&&!lt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),$.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,De=ke===w.LH||ke===w.JH;ke===w.Mf||De&&!lt&&this.panelOpen?this.autocomplete._keyManager.onKeydown($):De&&this._canOpen()&&this.openPanel(),(De||this.autocomplete._keyManager.activeItem!==W)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput($){let ke=$.target,lt=ke.value;"number"===ke.type&&(lt=""==lt?null:parseFloat(lt)),this._previousValue!==lt&&(this._previousValue=lt,this._onChange(lt),this._canOpen()&&this._document.activeElement===$.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel($=!1){this._formField&&"auto"===this._formField.floatLabel&&($?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const $=this._zone.onStable.pipe((0,de.q)(1)),ke=this.autocomplete.options.changes.pipe((0,le.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ee.g)(0));return(0,P.T)($,ke).pipe((0,X.w)(()=>(this._zone.run(()=>{const lt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),lt!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,de.q)(1)).subscribe(lt=>this._setValueAndClose(lt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue($){const ke=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith($):$,lt=null!=ke?ke:"";this._formField?this._formField._control.value=lt:this._element.nativeElement.value=lt,this._previousValue=lt}_setValueAndClose($){const ke=$&&$.source;ke&&(this._clearPreviousSelectedOption(ke),this._setTriggerValue(ke.value),this._onChange(ke.value),this.autocomplete._emitSelectEvent(ke),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption($){this.autocomplete.options.forEach(ke=>{ke!==$&&ke.selected&&ke.deselect()})}_attachOverlay(){var $;let ke=this._overlayRef;ke?(this._positionStrategy.setOrigin(this._getConnectedElement()),ke.updateSize({width:this._getPanelWidth()})):(this._portal=new V.UE(this.autocomplete.template,this._viewContainerRef,{id:null===($=this._formField)||void 0===$?void 0:$.getLabelId()}),ke=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ke,ke.keydownEvents().subscribe(W=>{(W.keyCode===w.hY&&!(0,w.Vb)(W)||W.keyCode===w.LH&&(0,w.Vb)(W,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),W.stopPropagation(),W.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ke&&ke.updateSize({width:this._getPanelWidth()})})),ke&&!ke.hasAttached()&&(ke.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const lt=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&<!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var $;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===($=this._defaults)||void 0===$?void 0:$.overlayPanelClass})}_getOverlayPosition(){const $=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions($),this._positionStrategy=$,$}_setStrategyPositions($){const ke=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],lt=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:lt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:lt}];let De;De="above"===this.position?W:"below"===this.position?ke:[...ke,...W],$.withPositions(De)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const $=this.autocomplete;$.autoActiveFirstOption?$._keyManager.setFirstItemActive():$._keyManager.setActiveItem(-1)}_canOpen(){const $=this._element.nativeElement;return!$.readOnly&&!$.disabled&&!this._autocompleteDisabled}_getWindow(){var $;return(null===($=this._document)||void 0===$?void 0:$.defaultView)||window}_scrollToOption($){const ke=this.autocomplete,lt=(0,b.CB)($,ke.options,ke.optionGroups);if(0===$&&1===lt)ke._setScrollTop(0);else if(ke.panel){const W=ke.options.toArray()[$];if(W){const De=W._getHostElement(),he=(0,b.jH)(De.offsetTop,De.offsetHeight,ke._getScrollTop(),ke.panel.nativeElement.offsetHeight);ke._setScrollTop(he)}}}}return ze.\u0275fac=function($){return new($||ze)(u.Y36(u.SBq),u.Y36(E.aV),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(_),u.Y36(_e.Is,8),u.Y36(Y.G_,9),u.Y36(A.K0,8),u.Y36(k.rL),u.Y36(S,8))},ze.\u0275dir=u.lG2({type:ze,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[u.TTD]}),ze})(),te=(()=>{class ze extends Z{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ze.\u0275fac=function(){let be;return function(ke){return(be||(be=u.n5z(ze)))(ke||ze)}}(),ze.\u0275dir=u.lG2({type:ze,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function($,ke){1&$&&u.NdJ("focusin",function(){return ke._handleFocus()})("blur",function(){return ke._onTouched()})("input",function(W){return ke._handleInput(W)})("keydown",function(W){return ke._handleKeydown(W)})("click",function(){return ke._handleClick()}),2&$&&u.uIk("autocomplete",ke.autocompleteAttribute)("role",ke.autocompleteDisabled?null:"combobox")("aria-autocomplete",ke.autocompleteDisabled?null:"list")("aria-activedescendant",ke.panelOpen&&ke.activeOption?ke.activeOption.id:null)("aria-expanded",ke.autocompleteDisabled?null:ke.panelOpen.toString())("aria-owns",ke.autocompleteDisabled||!ke.panelOpen||null==ke.autocomplete?null:ke.autocomplete.id)("aria-haspopup",ke.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[u._Bn([H]),u.qOj]}),ze})(),ne=(()=>{class ze{}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275mod=u.oAB({type:ze}),ze.\u0275inj=u.cJS({providers:[R],imports:[[E.U8,b.Ng,b.BQ,A.ez],k.ZD,b.Ng,b.BQ]}),ze})()},7544:(He,j,p)=>{"use strict";p.d(j,{g:()=>T,k:()=>D});var e=p(5e3),i=p(508),u=p(5664),b=p(3191),a=p(6360);let y=0;const h=(0,i.Id)(class{}),P="mat-badge-content";let D=(()=>{class M extends h{constructor(E,k,w,V,U){super(),this._ngZone=E,this._elementRef=k,this._ariaDescriber=w,this._renderer=V,this._animationMode=U,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=y++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,b.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,b.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),k="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(P),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(k)})}):E.classList.add(k),E}_updateRenderedContent(E){const k=`${null!=E?E:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),E&&k.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${P}`);for(const k of Array.from(E))k!==this._badgeElement&&k.remove()}}return M.\u0275fac=function(E){return new(E||M)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(u.$s),e.Y36(e.Qsj),e.Y36(a.Qb,8))},M.\u0275dir=e.lG2({type:M,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,k){2&E&&e.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[u.rt,i.BQ],i.BQ]}),M})()},7423:(He,j,p)=>{"use strict";p.d(j,{lW:()=>M,ot:()=>E});var e=p(5e3),i=p(508),u=p(6360),b=p(5664);const a=["mat-button",""],y=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],T=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(k){this._elementRef=k}})));let M=(()=>{class k extends T{constructor(V,U,Y){super(V),this._focusMonitor=U,this._animationMode=Y,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ae of D)this._hasHostAttributes(ae)&&this._getHostElement().classList.add(ae);V.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(V,U){V?this._focusMonitor.focusVia(this._getHostElement(),V,U):this._getHostElement().focus(U)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...V){return V.some(U=>this._getHostElement().hasAttribute(U))}}return k.\u0275fac=function(V){return new(V||k)(e.Y36(e.SBq),e.Y36(b.tE),e.Y36(u.Qb,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(V,U){if(1&V&&e.Gf(i.wG,5),2&V){let Y;e.iGM(Y=e.CRH())&&(U.ripple=Y.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(V,U){2&V&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-button-disabled",U.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:a,ngContentSelectors:y,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(V,U){1&V&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&V&&(e.xp6(2),e.ekj("mat-button-ripple-round",U.isRoundButton||U.isIconButton),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",U.isIconButton)("matRippleTrigger",U._getHostElement()))},directives:[i.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),E=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),k})()},9224:(He,j,p)=>{"use strict";p.d(j,{$j:()=>A,QW:()=>le,a8:()=>de,dk:()=>q,dn:()=>T,n5:()=>M});var e=p(5e3),i=p(6360),u=p(508);const b=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],y=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let T=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),ee})(),M=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),ee})(),A=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),ee})(),de=(()=>{class ee{constructor(x){this._animationMode=x}}return ee.\u0275fac=function(x){return new(x||ee)(e.Y36(i.Qb,8))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,t){2&x&&e.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,t){1&x&&(e.F$t(b),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),ee})(),q=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(x,t){1&x&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),ee})(),le=(()=>{class ee{}return ee.\u0275fac=function(x){return new(x||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),ee})()},7446:(He,j,p)=>{"use strict";p.d(j,{oG:()=>Y,p9:()=>q});var e=p(3191),i=p(5e3),u=p(3075),b=p(508),a=p(6360),y=p(5664),h=p(7144);const P=["input"],D=function(re){return{enterDuration:re}},T=["*"],M=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const k=A(),w={provide:u.JU,useExisting:(0,i.Gpc)(()=>Y),multi:!0};class V{}const U=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends U{constructor(ee,_e,x,t,r,d,c){super(ee),this._changeDetectorRef=_e,this._focusMonitor=x,this._ngZone=t,this._animationMode=d,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ee){this._required=(0,e.Ig)(ee)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(ee){const _e=(0,e.Ig)(ee);_e!=this.checked&&(this._checked=_e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ee){const _e=(0,e.Ig)(ee);_e!==this.disabled&&(this._disabled=_e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ee){const _e=ee!=this._indeterminate;this._indeterminate=(0,e.Ig)(ee),_e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ee){this.checked=!!ee}registerOnChange(ee){this._controlValueAccessorChangeFn=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ee){let _e=this._currentCheckState,x=this._elementRef.nativeElement;if(_e!==ee&&(this._currentAnimationClass.length>0&&x.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(_e,ee),this._currentCheckState=ee,this._currentAnimationClass.length>0)){x.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(t)},1e3)})}}_emitChangeEvent(){const ee=new V;ee.source=this,ee.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(ee),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(ee){var _e;const x=null===(_e=this._options)||void 0===_e?void 0:_e.clickAction;ee.stopPropagation(),this.disabled||"noop"===x?!this.disabled&&"noop"===x&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==x&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(ee,_e){ee?this._focusMonitor.focusVia(this._inputElement,ee,_e):this._inputElement.nativeElement.focus(_e)}_onInteractionEvent(ee){ee.stopPropagation()}_getAnimationClassForCheckStateTransition(ee,_e){if("NoopAnimations"===this._animationMode)return"";let x="";switch(ee){case 0:if(1===_e)x="unchecked-checked";else{if(3!=_e)return"";x="unchecked-indeterminate"}break;case 2:x=1===_e?"unchecked-checked":"unchecked-indeterminate";break;case 1:x=2===_e?"checked-unchecked":"checked-indeterminate";break;case 3:x=1===_e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${x}`}_syncIndeterminate(ee){const _e=this._inputElement;_e&&(_e.nativeElement.indeterminate=ee)}}return re.\u0275fac=function(ee){return new(ee||re)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(y.tE),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(a.Qb,8),i.Y36(M,8))},re.\u0275cmp=i.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(ee,_e){if(1&ee&&(i.Gf(P,5),i.Gf(b.wG,5)),2&ee){let x;i.iGM(x=i.CRH())&&(_e._inputElement=x.first),i.iGM(x=i.CRH())&&(_e.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ee,_e){2&ee&&(i.Ikx("id",_e.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",_e.indeterminate)("mat-checkbox-checked",_e.checked)("mat-checkbox-disabled",_e.disabled)("mat-checkbox-label-before","before"==_e.labelPosition)("_mat-animation-noopable","NoopAnimations"===_e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([w]),i.qOj],ngContentSelectors:T,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ee,_e){if(1&ee&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(t){return _e._onInteractionEvent(t)})("click",function(t){return _e._onInputClick(t)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&ee){const x=i.MAs(1),t=i.MAs(13);i.uIk("for",_e.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(1),i.Q6J("id",_e.inputId)("required",_e.required)("checked",_e.checked)("disabled",_e.disabled)("tabIndex",_e.tabIndex),i.uIk("value",_e.value)("name",_e.name)("aria-label",_e.ariaLabel||null)("aria-labelledby",_e.ariaLabelledby)("aria-checked",_e._getAriaChecked())("aria-describedby",_e.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",x)("matRippleDisabled",_e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,D,"NoopAnimations"===_e._animationMode?0:150))}},directives:[b.wG,h.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),re})(),de=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({}),re})(),q=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({imports:[[b.si,b.BQ,h.Q8,de],b.BQ,de]}),re})()},6688:(He,j,p)=>{"use strict";p.d(j,{HS:()=>x,Hi:()=>_,qn:()=>C});var e=p(1159),i=p(5e3),u=p(508),b=p(3191),a=p(9808),y=p(6360),h=p(7579),P=p(6451),D=p(5698),T=p(2722),M=p(8675),A=p(925),E=p(5664),k=p(449),w=p(3075),V=p(7322),U=p(226);const Y=["*"],X=new i.OlP("MatChipRemove"),de=new i.OlP("MatChipAvatar"),q=new i.OlP("MatChipTrailingIcon");class re{constructor(R){this._elementRef=R}}const le=(0,u.sb)((0,u.pj)((0,u.Kr)(re),"primary"),-1);let x=(()=>{class B extends le{constructor(H,Q,Z,te,Te,Ee,ne,ze){super(H),this._ngZone=Q,this._changeDetectorRef=Te,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new h.x,this._onBlur=new h.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=Ee.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.IR(this,Q,this._chipRippleTarget,Z),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=te||{},this._animationsDisabled="NoopAnimations"===ne,this.tabIndex=null!=ze&&parseInt(ze)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const Q=(0,b.Ig)(H);Q!==this._selected&&(this._selected=Q,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,b.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,b.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",Q=this._elementRef.nativeElement;Q.hasAttribute(H)||Q.tagName.toLowerCase()===H?Q.classList.add(H):Q.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case e.yY:case e.ZH:this.remove(),H.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return B.\u0275fac=function(H){return new(H||B)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(A.t4),i.Y36(u.Y2,8),i.Y36(i.sBO),i.Y36(a.K0),i.Y36(y.Qb,8),i.$8M("tabindex"))},B.\u0275dir=i.lG2({type:B,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,Q,Z){if(1&H&&(i.Suo(Z,de,5),i.Suo(Z,q,5),i.Suo(Z,X,5)),2&H){let te;i.iGM(te=i.CRH())&&(Q.avatar=te.first),i.iGM(te=i.CRH())&&(Q.trailingIcon=te.first),i.iGM(te=i.CRH())&&(Q.removeIcon=te.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,Q){1&H&&i.NdJ("click",function(te){return Q._handleClick(te)})("keydown",function(te){return Q._handleKeydown(te)})("focus",function(){return Q.focus()})("blur",function(){return Q._blur()}),2&H&&(i.uIk("tabindex",Q.disabled?null:Q.tabIndex)("disabled",Q.disabled||null)("aria-disabled",Q.disabled.toString())("aria-selected",Q.ariaSelected),i.ekj("mat-chip-selected",Q.selected)("mat-chip-with-avatar",Q.avatar)("mat-chip-with-trailing-icon",Q.trailingIcon||Q.removeIcon)("mat-chip-disabled",Q.disabled)("_mat-animation-noopable",Q._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),B})();const r=new i.OlP("mat-chips-default-options"),g=(0,u.FD)(class{constructor(B,R,H,Q){this._defaultErrorStateMatcher=B,this._parentForm=R,this._parentFormGroup=H,this.ngControl=Q}});let S=0;class I{constructor(R,H){this.source=R,this.value=H}}let C=(()=>{class B extends g{constructor(H,Q,Z,te,Te,Ee,ne){super(Ee,te,Te,ne),this._elementRef=H,this._changeDetectorRef=Q,this._dir=Z,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new h.x,this._uid="mat-chip-list-"+S++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ze,be)=>ze===be,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,Q;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===(Q=this._selectionModel)||void 0===Q?void 0:Q.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,b.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,Q,Z,te;return null!==(te=null!==(H=this._required)&&void 0!==H?H:null===(Z=null===(Q=this.ngControl)||void 0===Q?void 0:Q.control)||void 0===Z?void 0:Z.hasValidator(w.kI.required))&&void 0!==te&&te}set required(H){this._required=(0,b.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,b.Ig)(H),this.chips&&this.chips.forEach(Q=>Q.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,P.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,P.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,P.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,P.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new E.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,T.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const Q=H.target;Q&&Q.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&HZ.deselect()),Array.isArray(H))H.forEach(Z=>this._selectValue(Z,Q)),this._sortValues();else{const Z=this._selectValue(H,Q);Z&&Q&&this._keyManager.setActiveItem(Z)}}_selectValue(H,Q=!0){const Z=this.chips.find(te=>null!=te.value&&this._compareWith(te.value,H));return Z&&(Q?Z.selectViaInteraction():Z.select(),this._selectionModel.select(Z)),Z}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach(Q=>{Q!==H&&Q.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let Q=null;Q=Array.isArray(this.selected)?this.selected.map(Z=>Z.value):this.selected?this.selected.value:H,this._value=Q,this.change.emit(new I(this,Q)),this.valueChange.emit(Q),this._onChange(Q),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach(Q=>{!this._selectionModel.isSelected(Q)&&Q.selected&&Q.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let Q=this.chips.toArray().indexOf(H.chip);this._isValidIndex(Q)&&this._keyManager.updateActiveItem(Q),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const Q=H.chip,Z=this.chips.toArray().indexOf(H.chip);this._isValidIndex(Z)&&Q._hasFocus&&(this._lastDestroyedChipIndex=Z)})}_originatesFromChip(H){let Q=H.target;for(;Q&&Q!==this._elementRef.nativeElement;){if(Q.classList.contains("mat-chip"))return!0;Q=Q.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return B.\u0275fac=function(H){return new(H||B)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(U.Is,8),i.Y36(w.F,8),i.Y36(w.sg,8),i.Y36(u.rD),i.Y36(w.a5,10))},B.\u0275cmp=i.Xpm({type:B,selectors:[["mat-chip-list"]],contentQueries:function(H,Q,Z){if(1&H&&i.Suo(Z,x,5),2&H){let te;i.iGM(te=i.CRH())&&(Q.chips=te)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,Q){1&H&&i.NdJ("focus",function(){return Q.focus()})("blur",function(){return Q._blur()})("keydown",function(te){return Q._keydown(te)}),2&H&&(i.Ikx("id",Q._uid),i.uIk("tabindex",Q.disabled?null:Q._tabIndex)("aria-describedby",Q._ariaDescribedby||null)("aria-required",Q.role?Q.required:null)("aria-disabled",Q.disabled.toString())("aria-invalid",Q.errorState)("aria-multiselectable",Q.multiple)("role",Q.role)("aria-orientation",Q.ariaOrientation),i.ekj("mat-chip-list-disabled",Q.disabled)("mat-chip-list-invalid",Q.errorState)("mat-chip-list-required",Q.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:V.Eo,useExisting:B}]),i.qOj],ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,Q){1&H&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),B})(),_=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({providers:[u.rD,{provide:r,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[u.BQ]]}),B})()},508:(He,j,p)=>{"use strict";p.d(j,{yN:()=>ae,mZ:()=>X,_A:()=>C,rD:()=>Te,sG:()=>n,K7:()=>Gt,HF:()=>ht,Y2:()=>ie,BQ:()=>re,X2:()=>Ee,uc:()=>be,XK:()=>Z,ey:()=>Xe,Ng:()=>Kt,rN:()=>kt,nP:()=>Le,us:()=>ot,wG:()=>pe,si:()=>ye,LF:()=>R,IR:()=>Ae,CB:()=>_t,jH:()=>ei,pj:()=>t,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>g,sb:()=>d,E0:()=>ne});var e=p(5e3),i=p(226),b=p(9808),a=p(925),y=p(5664),h=p(3191),P=p(7579),D=p(8306),T=p(8675),M=p(6360),A=p(1159);function w(Pe,Ie){if(1&Pe&&e._UZ(0,"mat-pseudo-checkbox",4),2&Pe){const ce=e.oxw();e.Q6J("state",ce.selected?"checked":"unchecked")("disabled",ce.disabled)}}function V(Pe,Ie){if(1&Pe&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Pe){const ce=e.oxw();e.xp6(1),e.hij("(",ce.group.label,")")}}const U=["*"];let ae=(()=>{class Pe{}return Pe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Pe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Pe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Pe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Pe})(),X=(()=>{class Pe{}return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe})();const q=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function de(){return!0}});let re=(()=>{class Pe{constructor(ce,Me,ut){this._sanityChecks=Me,this._document=ut,this._hasDoneGlobalChecks=!1,ce._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ce){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ce])}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(e.LFG(y.qm),e.LFG(q,8),e.LFG(b.K0))},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[i.vT],i.vT]}),Pe})();function x(Pe){return class extends Pe{constructor(...Ie){super(...Ie),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ie){this._disabled=(0,h.Ig)(Ie)}}}function t(Pe,Ie){return class extends Pe{constructor(...ce){super(...ce),this.defaultColor=Ie,this.color=Ie}get color(){return this._color}set color(ce){const Me=ce||this.defaultColor;Me!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Me&&this._elementRef.nativeElement.classList.add(`mat-${Me}`),this._color=Me)}}}function r(Pe){return class extends Pe{constructor(...Ie){super(...Ie),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ie){this._disableRipple=(0,h.Ig)(Ie)}}}function d(Pe,Ie=0){return class extends Pe{constructor(...ce){super(...ce),this._tabIndex=Ie,this.defaultTabIndex=Ie}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ce){this._tabIndex=null!=ce?(0,h.su)(ce):this.defaultTabIndex}}}function c(Pe){return class extends Pe{constructor(...Ie){super(...Ie),this.stateChanges=new P.x,this.errorState=!1}updateErrorState(){const Ie=this.errorState,ft=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ft!==Ie&&(this.errorState=ft,this.stateChanges.next())}}}function g(Pe){return class extends Pe{constructor(...Ie){super(...Ie),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new D.y(ce=>{this._isInitialized?this._notifySubscriber(ce):this._pendingSubscribers.push(ce)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ie){Ie.next(),Ie.complete()}}}const S=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,e.f3M)(e.soG)}});class C{constructor(){this._localeChanges=new P.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ie){return this.isDateInstance(Ie)&&this.isValid(Ie)?Ie:null}deserialize(Ie){return null==Ie||this.isDateInstance(Ie)&&this.isValid(Ie)?Ie:this.invalid()}setLocale(Ie){this.locale=Ie,this._localeChanges.next()}compareDate(Ie,ce){return this.getYear(Ie)-this.getYear(ce)||this.getMonth(Ie)-this.getMonth(ce)||this.getDate(Ie)-this.getDate(ce)}sameDate(Ie,ce){if(Ie&&ce){let Me=this.isValid(Ie),ut=this.isValid(ce);return Me&&ut?!this.compareDate(Ie,ce):Me==ut}return Ie==ce}clampDate(Ie,ce,Me){return ce&&this.compareDate(Ie,ce)<0?ce:Me&&this.compareDate(Ie,Me)>0?Me:Ie}}const n=new e.OlP("mat-date-formats"),_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B(Pe,Ie){const ce=Array(Pe);for(let Me=0;Me{class Pe extends C{constructor(ce,Me){super(),this.useUtcForDisplay=!1,super.setLocale(ce)}getYear(ce){return ce.getFullYear()}getMonth(ce){return ce.getMonth()}getDate(ce){return ce.getDate()}getDayOfWeek(ce){return ce.getDay()}getMonthNames(ce){const Me=new Intl.DateTimeFormat(this.locale,{month:ce,timeZone:"utc"});return B(12,ut=>this._format(Me,new Date(2017,ut,1)))}getDateNames(){const ce=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B(31,Me=>this._format(ce,new Date(2017,0,Me+1)))}getDayOfWeekNames(ce){const Me=new Intl.DateTimeFormat(this.locale,{weekday:ce,timeZone:"utc"});return B(7,ut=>this._format(Me,new Date(2017,0,ut+1)))}getYearName(ce){const Me=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Me,ce)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ce){return this.getDate(this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce)+1,0))}clone(ce){return new Date(ce.getTime())}createDate(ce,Me,ut){let ft=this._createDateWithOverflow(ce,Me,ut);return ft.getMonth(),ft}today(){return new Date}parse(ce){return"number"==typeof ce?new Date(ce):ce?new Date(Date.parse(ce)):null}format(ce,Me){if(!this.isValid(ce))throw Error("NativeDateAdapter: Cannot format invalid date.");const ut=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Me),{timeZone:"utc"}));return this._format(ut,ce)}addCalendarYears(ce,Me){return this.addCalendarMonths(ce,12*Me)}addCalendarMonths(ce,Me){let ut=this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce)+Me,this.getDate(ce));return this.getMonth(ut)!=((this.getMonth(ce)+Me)%12+12)%12&&(ut=this._createDateWithOverflow(this.getYear(ut),this.getMonth(ut),0)),ut}addCalendarDays(ce,Me){return this._createDateWithOverflow(this.getYear(ce),this.getMonth(ce),this.getDate(ce)+Me)}toIso8601(ce){return[ce.getUTCFullYear(),this._2digit(ce.getUTCMonth()+1),this._2digit(ce.getUTCDate())].join("-")}deserialize(ce){if("string"==typeof ce){if(!ce)return null;if(_.test(ce)){let Me=new Date(ce);if(this.isValid(Me))return Me}}return super.deserialize(ce)}isDateInstance(ce){return ce instanceof Date}isValid(ce){return!isNaN(ce.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ce,Me,ut){const ft=new Date;return ft.setFullYear(ce,Me,ut),ft.setHours(0,0,0,0),ft}_2digit(ce){return("00"+ce).slice(-2)}_format(ce,Me){const ut=new Date;return ut.setUTCFullYear(Me.getFullYear(),Me.getMonth(),Me.getDate()),ut.setUTCHours(Me.getHours(),Me.getMinutes(),Me.getSeconds(),Me.getMilliseconds()),ce.format(ut)}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(e.LFG(S,8),e.LFG(a.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Q=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:C,useClass:R}]}),Pe})(),Z=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:n,useValue:H}],imports:[[Q]]}),Pe})(),Te=(()=>{class Pe{isErrorState(ce,Me){return!!(ce&&ce.invalid&&(ce.touched||Me&&Me.submitted))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Ee=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Pe})();function ne(Pe,Ie,ce="mat"){Pe.changes.pipe((0,T.O)(Pe)).subscribe(({length:Me})=>{ze(Ie,`${ce}-2-line`,!1),ze(Ie,`${ce}-3-line`,!1),ze(Ie,`${ce}-multi-line`,!1),2===Me||3===Me?ze(Ie,`${ce}-${Me}-line`,!0):Me>3&&ze(Ie,`${ce}-multi-line`,!0)})}function ze(Pe,Ie,ce){Pe.nativeElement.classList.toggle(Ie,ce)}let be=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[re],re]}),Pe})();class ${constructor(Ie,ce,Me){this._renderer=Ie,this.element=ce,this.config=Me,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ke={enterDuration:225,exitDuration:150},W=(0,a.i$)({passive:!0}),De=["mousedown","touchstart"],he=["mouseup","mouseleave","touchend","touchcancel"];class Ae{constructor(Ie,ce,Me,ut){this._target=Ie,this._ngZone=ce,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ut.isBrowser&&(this._containerElement=(0,h.fI)(Me))}fadeInRipple(Ie,ce,Me={}){const ut=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ft=Object.assign(Object.assign({},ke),Me.animation);Me.centered&&(Ie=ut.left+ut.width/2,ce=ut.top+ut.height/2);const Rt=Me.radius||function G(Pe,Ie,ce){const Me=Math.max(Math.abs(Pe-ce.left),Math.abs(Pe-ce.right)),ut=Math.max(Math.abs(Ie-ce.top),Math.abs(Ie-ce.bottom));return Math.sqrt(Me*Me+ut*ut)}(Ie,ce,ut),et=Ie-ut.left,Re=ce-ut.top,Je=ft.enterDuration,Ke=document.createElement("div");Ke.classList.add("mat-ripple-element"),Ke.style.left=et-Rt+"px",Ke.style.top=Re-Rt+"px",Ke.style.height=2*Rt+"px",Ke.style.width=2*Rt+"px",null!=Me.color&&(Ke.style.backgroundColor=Me.color),Ke.style.transitionDuration=`${Je}ms`,this._containerElement.appendChild(Ke),function xe(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}(Ke),Ke.style.transform="scale(1)";const we=new $(this,Ke,Me);return we.state=0,this._activeRipples.add(we),Me.persistent||(this._mostRecentTransientRipple=we),this._runTimeoutOutsideZone(()=>{const Fe=we===this._mostRecentTransientRipple;we.state=1,!Me.persistent&&(!Fe||!this._isPointerDown)&&we.fadeOut()},Je),we}fadeOutRipple(Ie){const ce=this._activeRipples.delete(Ie);if(Ie===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!ce)return;const Me=Ie.element,ut=Object.assign(Object.assign({},ke),Ie.config.animation);Me.style.transitionDuration=`${ut.exitDuration}ms`,Me.style.opacity="0",Ie.state=2,this._runTimeoutOutsideZone(()=>{Ie.state=3,Me.remove()},ut.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ie=>Ie.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ie=>{Ie.config.persistent||Ie.fadeOut()})}setupTriggerEvents(Ie){const ce=(0,h.fI)(Ie);!ce||ce===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ce,this._registerEvents(De))}handleEvent(Ie){"mousedown"===Ie.type?this._onMousedown(Ie):"touchstart"===Ie.type?this._onTouchStart(Ie):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(he),this._pointerUpEventsRegistered=!0)}_onMousedown(Ie){const ce=(0,y.X6)(Ie),Me=this._lastTouchStartEvent&&Date.now(){!Ie.config.persistent&&(1===Ie.state||Ie.config.terminateOnPointerUp&&0===Ie.state)&&Ie.fadeOut()}))}_runTimeoutOutsideZone(Ie,ce=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ie,ce))}_registerEvents(Ie){this._ngZone.runOutsideAngular(()=>{Ie.forEach(ce=>{this._triggerElement.addEventListener(ce,this,W)})})}_removeTriggerEvents(){this._triggerElement&&(De.forEach(Ie=>{this._triggerElement.removeEventListener(Ie,this,W)}),this._pointerUpEventsRegistered&&he.forEach(Ie=>{this._triggerElement.removeEventListener(Ie,this,W)}))}}const ie=new e.OlP("mat-ripple-global-options");let pe=(()=>{class Pe{constructor(ce,Me,ut,ft,Rt){this._elementRef=ce,this._animationMode=Rt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ft||{},this._rippleRenderer=new Ae(this,Me,ce,ut)}get disabled(){return this._disabled}set disabled(ce){ce&&this.fadeOutAllNonPersistent(),this._disabled=ce,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ce){this._trigger=ce,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ce,Me=0,ut){return"number"==typeof ce?this._rippleRenderer.fadeInRipple(ce,Me,Object.assign(Object.assign({},this.rippleConfig),ut)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ce))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.t4),e.Y36(ie,8),e.Y36(M.Qb,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ce,Me){2&ce&&e.ekj("mat-ripple-unbounded",Me.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Pe})(),ye=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[re],re]}),Pe})(),Le=(()=>{class Pe{constructor(ce){this._animationMode=ce,this.state="unchecked",this.disabled=!1}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(e.Y36(M.Qb,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ce,Me){2&ce&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Me.state)("mat-pseudo-checkbox-checked","checked"===Me.state)("mat-pseudo-checkbox-disabled",Me.disabled)("_mat-animation-noopable","NoopAnimations"===Me._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ce,Me){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Pe})(),ot=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[re]]}),Pe})();const ht=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new e.OlP("MatOptgroup");let vt=0;class kt{constructor(Ie,ce=!1){this.source=Ie,this.isUserInput=ce}}let mt=(()=>{class Pe{constructor(ce,Me,ut,ft){this._element=ce,this._changeDetectorRef=Me,this._parent=ut,this.group=ft,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new P.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ce){this._disabled=(0,h.Ig)(ce)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ce,Me){const ut=this._getHostElement();"function"==typeof ut.focus&&ut.focus(Me)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ce){(ce.keyCode===A.K5||ce.keyCode===A.L_)&&!(0,A.Vb)(ce)&&(this._selectViaInteraction(),ce.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ce=this.viewValue;ce!==this._mostRecentViewValue&&(this._mostRecentViewValue=ce,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ce=!1){this.onSelectionChange.emit(new kt(this,ce))}}return Pe.\u0275fac=function(ce){e.$Z()},Pe.\u0275dir=e.lG2({type:Pe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe})(),Xe=(()=>{class Pe extends mt{constructor(ce,Me,ut,ft){super(ce,Me,ut,ft)}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ht,8),e.Y36(Gt,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ce,Me){1&ce&&e.NdJ("click",function(){return Me._selectViaInteraction()})("keydown",function(ft){return Me._handleKeydown(ft)}),2&ce&&(e.Ikx("id",Me.id),e.uIk("tabindex",Me._getTabIndex())("aria-selected",Me._getAriaSelected())("aria-disabled",Me.disabled.toString()),e.ekj("mat-selected",Me.selected)("mat-option-multiple",Me.multiple)("mat-active",Me.active)("mat-option-disabled",Me.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:U,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ce,Me){1&ce&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,V,2,1,"span",2),e._UZ(4,"div",3)),2&ce&&(e.Q6J("ngIf",Me.multiple),e.xp6(3),e.Q6J("ngIf",Me.group&&Me.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Me._getHostElement())("matRippleDisabled",Me.disabled||Me.disableRipple))},directives:[Le,b.O5,pe],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Pe})();function _t(Pe,Ie,ce){if(ce.length){let Me=Ie.toArray(),ut=ce.toArray(),ft=0;for(let Rt=0;Rtce+Me?Math.max(0,Pe-Me+Ie):ce}let Kt=(()=>{class Pe{}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ye,b.ez,re,ot]]}),Pe})()},6856:(He,j,p)=>{"use strict";p.d(j,{FA:()=>pt,Mq:()=>Re,hl:()=>at,nW:()=>mi});var e=p(5664),i=p(9776),u=p(7429),b=p(9808),a=p(5e3),y=p(7423),h=p(5303),P=p(508),D=p(7579),T=p(727),M=p(6451),A=p(9646),E=p(1159),k=p(5698),w=p(8675),V=p(9300),U=p(226),Y=p(3191),ae=p(925),X=p(1777),de=p(3075),q=p(7322),re=p(7531);const le=["mat-calendar-body",""];function ee(it,It){if(1&it&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&it){const ue=a.oxw();a.xp6(1),a.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),a.uIk("colspan",ue.numCols),a.xp6(1),a.hij(" ",ue.label," ")}}function _e(it,It){if(1&it&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&it){const ue=a.oxw(2);a.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),a.uIk("colspan",ue._firstRowOffset),a.xp6(1),a.hij(" ",ue._firstRowOffset>=ue.labelMinRequiredCells?ue.label:""," ")}}function x(it,It){if(1&it){const ue=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(bt){const yi=a.CHM(ue).$implicit;return a.oxw(2)._cellClicked(yi,bt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&it){const ue=It.$implicit,$e=It.index,bt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",bt)("data-mat-col",$e),a.xp6(1),a.ekj("mat-calendar-body-disabled",!ue.enabled)("mat-calendar-body-active",Vt._isActiveCell(bt,$e))("mat-calendar-body-range-start",Vt._isRangeStart(ue.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(ue.compareValue))("mat-calendar-body-in-range",Vt._isInRange(ue.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(ue.compareValue,bt,$e))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(ue.compareValue,bt,$e))("mat-calendar-body-comparison-start",Vt._isComparisonStart(ue.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(ue.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(ue.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(ue.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(ue.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(ue.compareValue)),a.Q6J("ngClass",ue.cssClasses)("tabindex",Vt._isActiveCell(bt,$e)?0:-1),a.uIk("aria-label",ue.ariaLabel)("aria-disabled",!ue.enabled||null)("aria-pressed",Vt._isSelected(ue.compareValue))("aria-current",Vt.todayValue===ue.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(ue.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(ue.compareValue))("mat-calendar-body-today",Vt.todayValue===ue.compareValue),a.xp6(1),a.hij(" ",ue.displayValue," ")}}function t(it,It){if(1&it&&(a.TgZ(0,"tr",4),a.YNc(1,_e,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&it){const ue=It.$implicit,$e=It.index,bt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===$e&&bt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",ue)}}function r(it,It){if(1&it&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&it){const ue=It.$implicit;a.xp6(2),a.Oqu(ue.long),a.xp6(2),a.Oqu(ue.narrow)}}const d=["*"];function c(it,It){}function g(it,It){if(1&it){const ue=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(bt){return a.CHM(ue),a.oxw().activeDate=bt})("_userSelection",function(bt){return a.CHM(ue),a.oxw()._dateSelected(bt)}),a.qZA()}if(2&it){const ue=a.oxw();a.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)("comparisonStart",ue.comparisonStart)("comparisonEnd",ue.comparisonEnd)}}function S(it,It){if(1&it){const ue=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(bt){return a.CHM(ue),a.oxw().activeDate=bt})("monthSelected",function(bt){return a.CHM(ue),a.oxw()._monthSelectedInYearView(bt)})("selectedChange",function(bt){return a.CHM(ue),a.oxw()._goToDateInView(bt,"month")}),a.qZA()}if(2&it){const ue=a.oxw();a.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function I(it,It){if(1&it){const ue=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(bt){return a.CHM(ue),a.oxw().activeDate=bt})("yearSelected",function(bt){return a.CHM(ue),a.oxw()._yearSelectedInMultiYearView(bt)})("selectedChange",function(bt){return a.CHM(ue),a.oxw()._goToDateInView(bt,"year")}),a.qZA()}if(2&it){const ue=a.oxw();a.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function C(it,It){}const n=["button"];function _(it,It){1&it&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const B=[[["","matDatepickerToggleIcon",""]]],R=["[matDatepickerToggleIcon]"];class Te{constructor(It,ue,$e,bt,Vt={},yi=It,Li){this.value=It,this.displayValue=ue,this.ariaLabel=$e,this.enabled=bt,this.cssClasses=Vt,this.compareValue=yi,this.rawValue=Li}}let Ee=(()=>{class it{constructor(ue,$e){this._elementRef=ue,this._ngZone=$e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=bt=>{if(this._skipNextFocus&&"focus"===bt.type)this._skipNextFocus=!1;else if(bt.target&&this.isRange){const Vt=this._getCellFromElement(bt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:bt}))}},this._leaveHandler=bt=>{null!==this.previewEnd&&this.isRange&&bt.target&&this._getCellFromElement(bt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:bt}))},$e.runOutsideAngular(()=>{const bt=ue.nativeElement;bt.addEventListener("mouseenter",this._enterHandler,!0),bt.addEventListener("focus",this._enterHandler,!0),bt.addEventListener("mouseleave",this._leaveHandler,!0),bt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ue,$e){ue.enabled&&this.selectedValueChange.emit({value:ue.value,event:$e})}_isSelected(ue){return this.startValue===ue||this.endValue===ue}ngOnChanges(ue){const $e=ue.numCols,{rows:bt,numCols:Vt}=this;(ue.rows||$e)&&(this._firstRowOffset=bt&&bt.length&&bt[0].length?Vt-bt[0].length:0),(ue.cellAspectRatio||$e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),($e||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const ue=this._elementRef.nativeElement;ue.removeEventListener("mouseenter",this._enterHandler,!0),ue.removeEventListener("focus",this._enterHandler,!0),ue.removeEventListener("mouseleave",this._leaveHandler,!0),ue.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ue,$e){let bt=ue*this.numCols+$e;return ue&&(bt-=this._firstRowOffset),bt==this.activeCell}_focusActiveCell(ue=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const $e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");$e&&(ue||(this._skipNextFocus=!0),$e.focus())})})})}_isRangeStart(ue){return ze(ue,this.startValue,this.endValue)}_isRangeEnd(ue){return be(ue,this.startValue,this.endValue)}_isInRange(ue){return $(ue,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ue){return ze(ue,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ue,$e,bt){if(!this._isComparisonStart(ue)||this._isRangeStart(ue)||!this._isInRange(ue))return!1;let Vt=this.rows[$e][bt-1];if(!Vt){const yi=this.rows[$e-1];Vt=yi&&yi[yi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(ue,$e,bt){if(!this._isComparisonEnd(ue)||this._isRangeEnd(ue)||!this._isInRange(ue))return!1;let Vt=this.rows[$e][bt+1];if(!Vt){const yi=this.rows[$e+1];Vt=yi&&yi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(ue){return be(ue,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ue){return $(ue,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ue){return this.comparisonStart===this.comparisonEnd&&ue===this.comparisonStart}_isPreviewStart(ue){return ze(ue,this.previewStart,this.previewEnd)}_isPreviewEnd(ue){return be(ue,this.previewStart,this.previewEnd)}_isInPreview(ue){return $(ue,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ue){let $e;if(ne(ue)?$e=ue:ne(ue.parentNode)&&($e=ue.parentNode),$e){const bt=$e.getAttribute("data-mat-row"),Vt=$e.getAttribute("data-mat-col");if(bt&&Vt)return this.rows[parseInt(bt)][parseInt(Vt)]}return null}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(a.SBq),a.Y36(a.R0b))},it.\u0275cmp=a.Xpm({type:it,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:le,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(ue,$e){1&ue&&(a.YNc(0,ee,3,6,"tr",0),a.YNc(1,t,3,2,"tr",1)),2&ue&&(a.Q6J("ngIf",$e._firstRowOffset<$e.labelMinRequiredCells),a.xp6(1),a.Q6J("ngForOf",$e.rows))},directives:[b.O5,b.sg,b.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),it})();function ne(it){return"TD"===it.nodeName}function ze(it,It,ue){return null!==ue&&It!==ue&&it=It&&it===ue}function $(it,It,ue,$e){return $e&&null!==It&&null!==ue&&It!==ue&&it>=It&&it<=ue}class ke{constructor(It,ue){this.start=It,this.end=ue}}let lt=(()=>{class it{constructor(ue,$e){this.selection=ue,this._adapter=$e,this._selectionChanged=new D.x,this.selectionChanged=this._selectionChanged,this.selection=ue}updateSelection(ue,$e){const bt=this.selection;this.selection=ue,this._selectionChanged.next({selection:ue,source:$e,oldValue:bt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ue){return this._adapter.isDateInstance(ue)&&this._adapter.isValid(ue)}}return it.\u0275fac=function(ue){a.$Z()},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})(),W=(()=>{class it extends lt{constructor(ue){super(null,ue)}add(ue){super.updateSelection(ue,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ue=new it(this._adapter);return ue.updateSelection(this.selection,this),ue}}return it.\u0275fac=function(ue){return new(ue||it)(a.LFG(P._A))},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})();const Ae={provide:lt,deps:[[new a.FiY,new a.tp0,lt],P._A],useFactory:function he(it,It){return it||new W(It)}},ie=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let ht=(()=>{class it{constructor(ue,$e,bt,Vt,yi){this._changeDetectorRef=ue,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rangeStrategy=yi,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){const $e=this._activeDate,bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._hasSameMonthAndYear($e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof ke?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(ue){const $e=ue.comparisonStart||ue.comparisonEnd;$e&&!$e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ue){const $e=ue.value,bt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(bt,Vt,$e);let Li,Ji;this._selected instanceof ke?(Li=this._getDateInCurrentMonth(this._selected.start),Ji=this._getDateInCurrentMonth(this._selected.end)):Li=Ji=this._getDateInCurrentMonth(this._selected),(Li!==$e||Ji!==$e)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:ue.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,bt=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ue.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(ue)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ue}),ue.preventDefault(),ue.stopPropagation()));default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ue=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ue)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ue){this._matCalendarBody._focusActiveCell(ue)}_previewChanged({event:ue,value:$e}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview($e?$e.rawValue:null,this.selected,ue);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ue=this._dateAdapter.getFirstDayOfWeek(),$e=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Li)=>({long:yi,narrow:$e[Li]}));this._weekdays=Vt.slice(ue).concat(Vt.slice(0,ue))}_createWeekCells(){const ue=this._dateAdapter.getNumDaysInMonth(this.activeDate),$e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let bt=0,Vt=this._firstWeekOffset;bt=0)&&(!this.maxDate||this._dateAdapter.compareDate(ue,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ue))}_getDateInCurrentMonth(ue){return ue&&this._hasSameMonthAndYear(ue,this.activeDate)?this._dateAdapter.getDate(ue):null}_hasSameMonthAndYear(ue,$e){return!(!ue||!$e||this._dateAdapter.getMonth(ue)!=this._dateAdapter.getMonth($e)||this._dateAdapter.getYear(ue)!=this._dateAdapter.getYear($e))}_getCellCompareValue(ue){if(ue){const $e=this._dateAdapter.getYear(ue),bt=this._dateAdapter.getMonth(ue),Vt=this._dateAdapter.getDate(ue);return new Date($e,bt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ue){ue instanceof ke?(this._rangeStart=this._getCellCompareValue(ue.start),this._rangeEnd=this._getCellCompareValue(ue.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ue),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ue){return!this.dateFilter||this.dateFilter(ue)}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(a.sBO),a.Y36(P.sG,8),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(ie,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-month-view"]],viewQuery:function(ue,$e){if(1&ue&&a.Gf(Ee,5),2&ue){let bt;a.iGM(bt=a.CRH())&&($e._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(ue,$e){1&ue&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Vt){return $e._dateSelected(Vt)})("previewChange",function(Vt){return $e._previewChanged(Vt)})("keyup",function(Vt){return $e._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return $e._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&ue&&(a.xp6(3),a.Q6J("ngForOf",$e._weekdays),a.xp6(3),a.Q6J("label",$e._monthLabel)("rows",$e._weeks)("todayValue",$e._todayDate)("startValue",$e._rangeStart)("endValue",$e._rangeEnd)("comparisonStart",$e._comparisonRangeStart)("comparisonEnd",$e._comparisonRangeEnd)("previewStart",$e._previewStart)("previewEnd",$e._previewEnd)("isRange",$e._isRange)("labelMinRequiredCells",3)("activeCell",$e._dateAdapter.getDate($e.activeDate)-1))},directives:[Ee,b.sg],encapsulation:2,changeDetection:0}),it})(),jt=(()=>{class it{constructor(ue,$e,bt){this._changeDetectorRef=ue,this._dateAdapter=$e,this._dir=bt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),Gt(this._dateAdapter,$e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof ke?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedYear(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const $e=this._dateAdapter.getYear(this._activeDate)-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let bt=0,Vt=[];bt<24;bt++)Vt.push($e+bt),4==Vt.length&&(this._years.push(Vt.map(yi=>this._createCellForYear(yi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ue){const $e=ue.value;this.yearSelected.emit(this._dateAdapter.createDate($e,0,1));let bt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($e,bt,1));this.selectedChange.emit(this._dateAdapter.createDate($e,bt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,bt=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_getActiveCell(){return di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ue){const $e=this._dateAdapter.createDate(ue,0,1),bt=this._dateAdapter.getYearName($e),Vt=this.dateClass?this.dateClass($e,"multi-year"):void 0;return new Te(ue,bt,bt,this._shouldEnableYear(ue),Vt)}_shouldEnableYear(ue){if(null==ue||this.maxDate&&ue>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ue{class it{constructor(ue,$e,bt,Vt){this._changeDetectorRef=ue,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._dateAdapter.getYear($e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof ke?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedMonth(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ue){const $e=ue.value,bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,1);this.monthSelected.emit(bt);const Vt=this._dateAdapter.getNumDaysInMonth(bt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,bt=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ue=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map($e=>$e.map(bt=>this._createCellForMonth(bt,ue[bt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ue){return ue&&this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ue):null}_createCellForMonth(ue,$e){const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),Vt=this._dateAdapter.format(bt,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(bt,"year"):void 0;return new Te(ue,$e.toLocaleUpperCase(),Vt,this._shouldEnableMonth(ue),yi)}_shouldEnableMonth(ue){const $e=this._dateAdapter.getYear(this.activeDate);if(null==ue||this._isYearAndMonthAfterMaxDate($e,ue)||this._isYearAndMonthBeforeMinDate($e,ue))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate($e,ue,1);this._dateAdapter.getMonth(Vt)==ue;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(ue,$e){if(this.maxDate){const bt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return ue>bt||ue===bt&&$e>Vt}return!1}_isYearAndMonthBeforeMinDate(ue,$e){if(this.minDate){const bt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return ue{class it{constructor(){this.changes=new D.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(ue,$e){return`${ue} \u2013 ${$e}`}}return it.\u0275fac=function(ue){return new(ue||it)},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})(),_t=0,ei=(()=>{class it{constructor(ue,$e,bt,Vt,yi){this._intl=ue,this.calendar=$e,this._dateAdapter=bt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+_t++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const $e=this._dateAdapter.getYear(this.calendar.activeDate)-di(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),bt=$e+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate($e,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(bt,0,1));return this._intl.formatYearRange(Vt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ue,$e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear($e)&&this._dateAdapter.getMonth(ue)==this._dateAdapter.getMonth($e):"year"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear($e):Gt(this._dateAdapter,ue,$e,this.calendar.minDate,this.calendar.maxDate)}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(Xe),a.Y36((0,a.Gpc)(()=>Kt)),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:d,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(ue,$e){1&ue&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return $e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return $e.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return $e.nextClicked()}),a.qZA()()()),2&ue&&(a.xp6(2),a.uIk("aria-label",$e.periodButtonLabel)("aria-describedby",$e._buttonDescriptionId),a.xp6(1),a.uIk("id",$e._buttonDescriptionId),a.xp6(1),a.Oqu($e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==$e.calendar.currentView),a.xp6(4),a.Q6J("disabled",!$e.previousEnabled()),a.uIk("aria-label",$e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!$e.nextEnabled()),a.uIk("aria-label",$e.nextButtonLabel))},directives:[y.lW],encapsulation:2,changeDetection:0}),it})(),Kt=(()=>{class it{constructor(ue,$e,bt,Vt){this._dateAdapter=$e,this._dateFormats=bt,this._changeDetectorRef=Vt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new D.x,this._intlChanges=ue.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof ke?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get activeDate(){return this._clampedActiveDate}set activeDate(ue){this._clampedActiveDate=this._dateAdapter.clampDate(ue,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ue){const $e=this._currentView!==ue?ue:null;this._currentView=ue,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),$e&&this.viewChanged.emit($e)}ngAfterContentInit(){this._calendarHeaderPortal=new u.C5(this.headerComponent||ei),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ue){const $e=ue.minDate&&!this._dateAdapter.sameDate(ue.minDate.previousValue,ue.minDate.currentValue)?ue.minDate:void 0,bt=ue.maxDate&&!this._dateAdapter.sameDate(ue.maxDate.previousValue,ue.maxDate.currentValue)?ue.maxDate:void 0,Vt=$e||bt||ue.dateFilter;if(Vt&&!Vt.firstChange){const yi=this._getCurrentViewComponent();yi&&(this._changeDetectorRef.detectChanges(),yi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ue){const $e=ue.value;(this.selected instanceof ke||$e&&!this._dateAdapter.sameDate($e,this.selected))&&this.selectedChange.emit($e),this._userSelection.emit(ue)}_yearSelectedInMultiYearView(ue){this.yearSelected.emit(ue)}_monthSelectedInYearView(ue){this.monthSelected.emit(ue)}_goToDateInView(ue,$e){this.activeDate=ue,this.currentView=$e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(Xe),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-calendar"]],viewQuery:function(ue,$e){if(1&ue&&(a.Gf(ht,5),a.Gf(mt,5),a.Gf(jt,5)),2&ue){let bt;a.iGM(bt=a.CRH())&&($e.monthView=bt.first),a.iGM(bt=a.CRH())&&($e.yearView=bt.first),a.iGM(bt=a.CRH())&&($e.multiYearView=bt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([Ae]),a.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ue,$e){1&ue&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,g,1,8,"mat-month-view",2),a.YNc(3,S,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&ue&&(a.Q6J("cdkPortalOutlet",$e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",$e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[ht,mt,jt,u.Pl,e.kH,b.RF,b.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),it})();const Pe={transformPanel:(0,X.X$)("transformPanel",[(0,X.eR)("void => enter-dropdown",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,X.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,X.eR)("void => enter-dialog",(0,X.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0.7)"}),(0,X.oB)({transform:"none",opacity:1})]))),(0,X.eR)("* => void",(0,X.jt)("100ms linear",(0,X.oB)({opacity:0})))]),fadeInCalendar:(0,X.X$)("fadeInCalendar",[(0,X.SB)("void",(0,X.oB)({opacity:0})),(0,X.SB)("enter",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",(0,X.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ie=0;const ce=new a.OlP("mat-datepicker-scroll-strategy"),ut={provide:ce,deps:[i.aV],useFactory:function Me(it){return()=>it.scrollStrategies.reposition()}},ft=(0,P.pj)(class{constructor(it){this._elementRef=it}});let Rt=(()=>{class it extends ft{constructor(ue,$e,bt,Vt,yi,Li){super(ue),this._changeDetectorRef=$e,this._globalModel=bt,this._dateAdapter=Vt,this._rangeSelectionStrategy=yi,this._subscriptions=new T.w0,this._animationDone=new D.x,this._actionsPortal=null,this._closeButtonText=Li.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ue){const $e=this._model.selection,bt=ue.value,Vt=$e instanceof ke;if(Vt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(bt,$e,ue.event);this._model.updateSelection(yi,this)}else bt&&(Vt||!this._dateAdapter.sameDate(bt,$e))&&this._model.add(bt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(lt),a.Y36(P._A),a.Y36(ie,8),a.Y36(Xe))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-content"]],viewQuery:function(ue,$e){if(1&ue&&a.Gf(Kt,5),2&ue){let bt;a.iGM(bt=a.CRH())&&($e._calendar=bt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ue,$e){1&ue&&a.WFA("@transformPanel.done",function(){return $e._animationDone.next()}),2&ue&&(a.d8E("@transformPanel",$e._animationState),a.ekj("mat-datepicker-content-touch",$e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ue,$e){if(1&ue&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return $e.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return $e.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return $e.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return $e._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,C,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return $e._closeButtonFocused=!0})("blur",function(){return $e._closeButtonFocused=!1})("click",function(){return $e.datepicker.close()}),a._uU(4),a.qZA()()),2&ue){let bt;a.ekj("mat-datepicker-content-container-with-custom-header",$e.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",$e._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(bt=$e._dialogLabelId)&&void 0!==bt?bt:void 0),a.xp6(1),a.Q6J("id",$e.datepicker.id)("ngClass",$e.datepicker.panelClass)("startAt",$e.datepicker.startAt)("startView",$e.datepicker.startView)("minDate",$e.datepicker._getMinDate())("maxDate",$e.datepicker._getMaxDate())("dateFilter",$e.datepicker._getDateFilter())("headerComponent",$e.datepicker.calendarHeaderComponent)("selected",$e._getSelected())("dateClass",$e.datepicker.dateClass)("comparisonStart",$e.comparisonStart)("comparisonEnd",$e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",$e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!$e._closeButtonFocused),a.Q6J("color",$e.color||"primary"),a.xp6(1),a.Oqu($e._closeButtonText)}},directives:[Kt,y.lW,e.mK,b.mk,u.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Pe.transformPanel,Pe.fadeInCalendar]},changeDetection:0}),it})(),et=(()=>{class it{constructor(ue,$e,bt,Vt,yi,Li,Ji){this._overlay=ue,this._ngZone=$e,this._viewContainerRef=bt,this._dateAdapter=yi,this._dir=Li,this._model=Ji,this._inputStateChanges=T.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+Ie++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new D.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ue){this._color=ue}get touchUi(){return this._touchUi}set touchUi(ue){this._touchUi=(0,Y.Ig)(ue)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ue){const $e=(0,Y.Ig)(ue);$e!==this._disabled&&(this._disabled=$e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ue){this._restoreFocus=(0,Y.Ig)(ue)}get panelClass(){return this._panelClass}set panelClass(ue){this._panelClass=(0,Y.du)(ue)}get opened(){return this._opened}set opened(ue){(0,Y.Ig)(ue)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(ue){const $e=ue.xPosition||ue.yPosition;if($e&&!$e.firstChange&&this._overlayRef){const bt=this._overlayRef.getConfig().positionStrategy;bt instanceof i._G&&(this._setConnectedPositions(bt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ue){this._model.add(ue)}_selectYear(ue){this.yearSelected.emit(ue)}_selectMonth(ue){this.monthSelected.emit(ue)}_viewChanged(ue){this.viewChanged.emit(ue)}registerInput(ue){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ue,this._inputStateChanges=ue.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ue){this._actionsPortal=ue}removeActions(ue){ue===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ae.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const $e=this._componentRef.instance;$e._startExitAnimation(),$e._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const ue=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ue)):ue()}_applyPendingSelection(){var ue,$e;null===($e=null===(ue=this._componentRef)||void 0===ue?void 0:ue.instance)||void 0===$e||$e._applyPendingSelection()}_forwardContentValues(ue){ue.datepicker=this,ue.color=this.color,ue._actionsPortal=this._actionsPortal,ue._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const ue=this.touchUi,$e=new u.C5(Rt,this._viewContainerRef),bt=this._overlayRef=this._overlay.create(new i.X_({positionStrategy:ue?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ue?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ue?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ue?"dialog":"popup")}));this._getCloseStream(bt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),bt.keydownEvents().subscribe(Vt=>{const yi=Vt.keyCode;(yi===E.LH||yi===E.JH||yi===E.oh||yi===E.SV||yi===E.Ku||yi===E.VM)&&Vt.preventDefault()}),this._componentRef=bt.attach($e),this._forwardContentValues(this._componentRef.instance),ue||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>bt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ue)}_setConnectedPositions(ue){const $e="end"===this.xPosition?"end":"start",bt="start"===$e?"end":"start",Vt="above"===this.yPosition?"bottom":"top",yi="top"===Vt?"bottom":"top";return ue.withPositions([{originX:$e,originY:yi,overlayX:$e,overlayY:Vt},{originX:$e,originY:Vt,overlayX:$e,overlayY:yi},{originX:bt,originY:yi,overlayX:bt,overlayY:Vt},{originX:bt,originY:Vt,overlayX:bt,overlayY:yi}])}_getCloseStream(ue){return(0,M.T)(ue.backdropClick(),ue.detachments(),ue.keydownEvents().pipe((0,V.h)($e=>$e.keyCode===E.hY&&!(0,E.Vb)($e)||this.datepickerInput&&(0,E.Vb)($e,"altKey")&&$e.keyCode===E.LH)))}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(i.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ce),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(lt))},it.\u0275dir=a.lG2({type:it,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),it})(),Re=(()=>{class it extends et{}return it.\u0275fac=function(){let It;return function($e){return(It||(It=a.n5z(it)))($e||it)}}(),it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Ae,{provide:et,useExisting:it}]),a.qOj],decls:0,vars:0,template:function(ue,$e){},encapsulation:2,changeDetection:0}),it})();class Je{constructor(It,ue){this.target=It,this.targetElement=ue,this.value=this.target.value}}let Ke=(()=>{class it{constructor(ue,$e,bt){this._elementRef=ue,this._dateAdapter=$e,this._dateFormats=bt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new D.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=T.w0.EMPTY,this._localeSubscription=T.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMinDate();return!Li||!yi||this._dateAdapter.compareDate(Li,yi)<=0?null:{matDatepickerMin:{min:Li,actual:yi}}},this._maxValidator=Vt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMaxDate();return!Li||!yi||this._dateAdapter.compareDate(Li,yi)>=0?null:{matDatepickerMax:{max:Li,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=$e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ue){this._assignValueProgrammatically(ue)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ue){const $e=(0,Y.Ig)(ue),bt=this._elementRef.nativeElement;this._disabled!==$e&&(this._disabled=$e,this.stateChanges.next(void 0)),$e&&this._isInitialized&&bt.blur&&bt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ue){this._model=ue,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe($e=>{if(this._shouldHandleChangeEvent($e)){const bt=this._getValueFromModel($e.selection);this._lastValueValid=this._isValidValue(bt),this._cvaOnChange(bt),this._onTouched(),this._formatValue(bt),this.dateInput.emit(new Je(this,this._elementRef.nativeElement)),this.dateChange.emit(new Je(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ue){(function we(it,It){const ue=Object.keys(it);for(let $e of ue){const{previousValue:bt,currentValue:Vt}=it[$e];if(!It.isDateInstance(bt)||!It.isDateInstance(Vt))return!0;if(!It.sameDate(bt,Vt))return!0}return!1})(ue,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ue){this._validatorOnChange=ue}validate(ue){return this._validator?this._validator(ue):null}writeValue(ue){this._assignValueProgrammatically(ue)}registerOnChange(ue){this._cvaOnChange=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_onKeydown(ue){ue.altKey&&ue.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ue.preventDefault())}_onInput(ue){const $e=this._lastValueValid;let bt=this._dateAdapter.parse(ue,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(bt),bt=this._dateAdapter.getValidDateOrNull(bt);const Vt=!this._dateAdapter.sameDate(bt,this.value);!bt||Vt?this._cvaOnChange(bt):(ue&&!this.value&&this._cvaOnChange(bt),$e!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(bt),this.dateInput.emit(new Je(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Je(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ue){this._elementRef.nativeElement.value=null!=ue?this._dateAdapter.format(ue,this._dateFormats.display.dateInput):""}_assignValue(ue){this._model?(this._assignValueToModel(ue),this._pendingValue=null):this._pendingValue=ue}_isValidValue(ue){return!ue||this._dateAdapter.isValid(ue)}_parentDisabled(){return!1}_assignValueProgrammatically(ue){ue=this._dateAdapter.deserialize(ue),this._lastValueValid=this._isValidValue(ue),ue=this._dateAdapter.getValidDateOrNull(ue),this._assignValue(ue),this._formatValue(ue)}_matchesFilter(ue){const $e=this._getDateFilter();return!$e||$e(ue)}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8))},it.\u0275dir=a.lG2({type:it,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),it})();const Fe={provide:de.JU,useExisting:(0,a.Gpc)(()=>at),multi:!0},rt={provide:de.Cf,useExisting:(0,a.Gpc)(()=>at),multi:!0};let at=(()=>{class it extends Ke{constructor(ue,$e,bt,Vt){super(ue,$e,bt),this._formField=Vt,this._closedSubscription=T.w0.EMPTY,this._validator=de.kI.compose(super._getValidators())}set matDatepicker(ue){ue&&(this._datepicker=ue,this._closedSubscription=ue.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ue.registerInput(this)))}get min(){return this._min}set min(ue){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate($e,this._min)||(this._min=$e,this._validatorOnChange())}get max(){return this._max}set max(ue){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate($e,this._max)||(this._max=$e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ue){const $e=this._matchesFilter(this.value);this._dateFilter=ue,this._matchesFilter(this.value)!==$e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ue){return ue}_assignValueToModel(ue){this._model&&this._model.updateSelection(ue,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ue){return ue.source!==this}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(q.G_,8))},it.\u0275dir=a.lG2({type:it,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ue,$e){1&ue&&a.NdJ("input",function(Vt){return $e._onInput(Vt.target.value)})("change",function(){return $e._onChange()})("blur",function(){return $e._onBlur()})("keydown",function(Vt){return $e._onKeydown(Vt)}),2&ue&&(a.Ikx("disabled",$e.disabled),a.uIk("aria-haspopup",$e._datepicker?"dialog":null)("aria-owns",(null==$e._datepicker?null:$e._datepicker.opened)&&$e._datepicker.id||null)("min",$e.min?$e._dateAdapter.toIso8601($e.min):null)("max",$e.max?$e._dateAdapter.toIso8601($e.max):null)("data-mat-calendar",$e._datepicker?$e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Fe,rt,{provide:re.Jk,useExisting:it}]),a.qOj]}),it})(),yt=(()=>{class it{}return it.\u0275fac=function(ue){return new(ue||it)},it.\u0275dir=a.lG2({type:it,selectors:[["","matDatepickerToggleIcon",""]]}),it})(),mi=(()=>{class it{constructor(ue,$e,bt){this._intl=ue,this._changeDetectorRef=$e,this._stateChanges=T.w0.EMPTY;const Vt=Number(bt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ue){this._disabled=(0,Y.Ig)(ue)}ngOnChanges(ue){ue.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ue){this.datepicker&&!this.disabled&&(this.datepicker.open(),ue.stopPropagation())}_watchStateChanges(){const ue=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),$e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),bt=this.datepicker?(0,M.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,M.T)(this._intl.changes,ue,$e,bt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return it.\u0275fac=function(ue){return new(ue||it)(a.Y36(Xe),a.Y36(a.sBO),a.$8M("tabindex"))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ue,$e,bt){if(1&ue&&a.Suo(bt,yt,5),2&ue){let Vt;a.iGM(Vt=a.CRH())&&($e._customIcon=Vt.first)}},viewQuery:function(ue,$e){if(1&ue&&a.Gf(n,5),2&ue){let bt;a.iGM(bt=a.CRH())&&($e._button=bt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ue,$e){1&ue&&a.NdJ("click",function(Vt){return $e._open(Vt)}),2&ue&&(a.uIk("tabindex",null)("data-mat-calendar",$e.datepicker?$e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",$e.datepicker&&$e.datepicker.opened)("mat-accent",$e.datepicker&&"accent"===$e.datepicker.color)("mat-warn",$e.datepicker&&"warn"===$e.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:R,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(ue,$e){1&ue&&(a.F$t(B),a.TgZ(0,"button",0,1),a.YNc(2,_,2,0,"svg",2),a.Hsn(3),a.qZA()),2&ue&&(a.Q6J("disabled",$e.disabled)("disableRipple",$e.disableRipple),a.uIk("aria-haspopup",$e.datepicker?"dialog":null)("aria-label",$e.ariaLabel||$e._intl.openCalendarLabel)("tabindex",$e.disabled?-1:$e.tabIndex),a.xp6(2),a.Q6J("ngIf",!$e._customIcon))},directives:[y.lW,b.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),it})(),pt=(()=>{class it{}return it.\u0275fac=function(ue){return new(ue||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({providers:[Xe,ut],imports:[[b.ez,y.ot,i.U8,e.rt,u.eL,P.BQ],h.ZD]}),it})()},8966:(He,j,p)=>{"use strict";p.d(j,{Bq:()=>t,Is:()=>Z,WI:()=>x,ZT:()=>_,so:()=>ee,uw:()=>I});var e=p(9776),i=p(7429),u=p(5e3),b=p(508),a=p(226),y=p(7579),h=p(9770),P=p(9646),D=p(9300),T=p(5698),M=p(8675),A=p(925),E=p(9808),k=p(1777),w=p(5664),V=p(1159),U=p(6360);function Y(te,Te){}class ae{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const X={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let q=(()=>{class te extends i.en{constructor(Ee,ne,ze,be,$,ke,lt,W){super(),this._elementRef=Ee,this._focusTrapFactory=ne,this._changeDetectorRef=ze,this._config=$,this._interactivityChecker=ke,this._ngZone=lt,this._focusMonitor=W,this._animationStateChanged=new u.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=De=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(De)),this._ariaLabelledBy=$.ariaLabelledBy||null,this._document=be}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,ne){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ze=()=>{Ee.removeEventListener("blur",ze),Ee.removeEventListener("mousedown",ze),Ee.removeAttribute("tabindex")};Ee.addEventListener("blur",ze),Ee.addEventListener("mousedown",ze)})),Ee.focus(ne)}_focusByCssSelector(Ee,ne){let ze=this._elementRef.nativeElement.querySelector(Ee);ze&&this._forceFocus(ze,ne)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(ne=>{ne||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const ne=(0,A.ht)(),ze=this._elementRef.nativeElement;(!ne||ne===this._document.body||ne===ze||ze.contains(ne))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,ne=(0,A.ht)();return Ee===ne||Ee.contains(ne)}}return te.\u0275fac=function(Ee){return new(Ee||te)(u.Y36(u.SBq),u.Y36(w.qV),u.Y36(u.sBO),u.Y36(E.K0,8),u.Y36(ae),u.Y36(w.ic),u.Y36(u.R0b),u.Y36(w.tE))},te.\u0275dir=u.lG2({type:te,viewQuery:function(Ee,ne){if(1&Ee&&u.Gf(i.Pl,7),2&Ee){let ze;u.iGM(ze=u.CRH())&&(ne._portalOutlet=ze.first)}},features:[u.qOj]}),te})(),re=(()=>{class te extends q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:ne}){"enter"===Ee?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ne})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:ne}))}_onAnimationStart({toState:Ee,totalTime:ne}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:ne}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:ne})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return te.\u0275fac=function(){let Te;return function(ne){return(Te||(Te=u.n5z(te)))(ne||te)}}(),te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,ne){1&Ee&&u.WFA("@dialogContainer.start",function(be){return ne._onAnimationStart(be)})("@dialogContainer.done",function(be){return ne._onAnimationDone(be)}),2&Ee&&(u.Ikx("id",ne._id),u.uIk("role",ne._config.role)("aria-labelledby",ne._config.ariaLabel?null:ne._ariaLabelledBy)("aria-label",ne._config.ariaLabel)("aria-describedby",ne._config.ariaDescribedBy||null),u.d8E("@dialogContainer",ne._state))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,ne){1&Ee&&u.YNc(0,Y,0,0,"ng-template",0)},directives:[i.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[X.dialogContainer]}}),te})(),le=0;class ee{constructor(Te,Ee,ne="mat-dialog-"+le++){this._overlayRef=Te,this._containerInstance=Ee,this.id=ne,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new y.x,this._afterClosed=new y.x,this._beforeClosed=new y.x,this._state=0,Ee._id=ne,Ee._animationStateChanged.pipe((0,D.h)(ze=>"opened"===ze.state),(0,T.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,D.h)(ze=>"closed"===ze.state),(0,T.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Te.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Te.keydownEvents().pipe((0,D.h)(ze=>ze.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(ze))).subscribe(ze=>{ze.preventDefault(),_e(this,"keyboard")}),Te.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():_e(this,"mouse")})}close(Te){this._result=Te,this._containerInstance._animationStateChanged.pipe((0,D.h)(Ee=>"closing"===Ee.state),(0,T.q)(1)).subscribe(Ee=>{this._beforeClosed.next(Te),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Te){let Ee=this._getPositionStrategy();return Te&&(Te.left||Te.right)?Te.left?Ee.left(Te.left):Ee.right(Te.right):Ee.centerHorizontally(),Te&&(Te.top||Te.bottom)?Te.top?Ee.top(Te.top):Ee.bottom(Te.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Te="",Ee=""){return this._overlayRef.updateSize({width:Te,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(Te){return this._overlayRef.addPanelClass(Te),this}removePanelClass(Te){return this._overlayRef.removePanelClass(Te),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function _e(te,Te,Ee){return void 0!==te._containerInstance&&(te._containerInstance._closeInteractionType=Te),te.close(Ee)}const x=new u.OlP("MatDialogData"),t=new u.OlP("mat-dialog-default-options"),r=new u.OlP("mat-dialog-scroll-strategy"),g={provide:r,deps:[e.aV],useFactory:function c(te){return()=>te.scrollStrategies.block()}};let S=(()=>{class te{constructor(Ee,ne,ze,be,$,ke,lt,W,De,he){this._overlay=Ee,this._injector=ne,this._defaultOptions=ze,this._parentDialog=be,this._overlayContainer=$,this._dialogRefConstructor=lt,this._dialogContainerType=W,this._dialogDataToken=De,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new y.x,this._afterOpenedAtThisLevel=new y.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,h.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.O)(void 0))),this._scrollStrategy=ke}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,ne){ne=function C(te,Te){return Object.assign(Object.assign({},Te),te)}(ne,this._defaultOptions||new ae),ne.id&&this.getDialogById(ne.id);const ze=this._createOverlay(ne),be=this._attachDialogContainer(ze,ne),$=this._attachDialogContent(Ee,be,ze,ne);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push($),$.afterClosed().subscribe(()=>this._removeOpenDialog($)),this.afterOpened.next($),be._initializeWithAttachedContent(),$}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(ne=>ne.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ee){const ne=this._getOverlayConfig(Ee);return this._overlay.create(ne)}_getOverlayConfig(Ee){const ne=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(ne.backdropClass=Ee.backdropClass),ne}_attachDialogContainer(Ee,ne){const be=u.zs3.create({parent:ne&&ne.viewContainerRef&&ne.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:ne}]}),$=new i.C5(this._dialogContainerType,ne.viewContainerRef,be,ne.componentFactoryResolver);return Ee.attach($).instance}_attachDialogContent(Ee,ne,ze,be){const $=new this._dialogRefConstructor(ze,ne,be.id);if(Ee instanceof u.Rgc)ne.attachTemplatePortal(new i.UE(Ee,null,{$implicit:be.data,dialogRef:$}));else{const ke=this._createInjector(be,$,ne),lt=ne.attachComponentPortal(new i.C5(Ee,be.viewContainerRef,ke,be.componentFactoryResolver));$.componentInstance=lt.instance}return $.updateSize(be.width,be.height).updatePosition(be.position),$}_createInjector(Ee,ne,ze){const be=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,$=[{provide:this._dialogContainerType,useValue:ze},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:ne}];return Ee.direction&&(!be||!be.get(a.Is,null,u.XFs.Optional))&&$.push({provide:a.Is,useValue:{value:Ee.direction,change:(0,P.of)()}}),u.zs3.create({parent:be||this._injector,providers:$})}_removeOpenDialog(Ee){const ne=this.openDialogs.indexOf(Ee);ne>-1&&(this.openDialogs.splice(ne,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ze,be)=>{ze?be.setAttribute("aria-hidden",ze):be.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const ne=Ee.parentElement.children;for(let ze=ne.length-1;ze>-1;ze--){let be=ne[ze];be!==Ee&&"SCRIPT"!==be.nodeName&&"STYLE"!==be.nodeName&&!be.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(be,be.getAttribute("aria-hidden")),be.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let ne=Ee.length;for(;ne--;)Ee[ne].close()}}return te.\u0275fac=function(Ee){u.$Z()},te.\u0275dir=u.lG2({type:te}),te})(),I=(()=>{class te extends S{constructor(Ee,ne,ze,be,$,ke,lt,W){super(Ee,ne,be,ke,lt,$,ee,re,x,W)}}return te.\u0275fac=function(Ee){return new(Ee||te)(u.LFG(e.aV),u.LFG(u.zs3),u.LFG(E.Ye,8),u.LFG(t,8),u.LFG(r),u.LFG(te,12),u.LFG(e.Xj),u.LFG(U.Qb,8))},te.\u0275prov=u.Yz7({token:te,factory:te.\u0275fac}),te})(),_=(()=>{class te{constructor(Ee,ne,ze){this.dialogRef=Ee,this._elementRef=ne,this._dialog=ze,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function Q(te,Te){let Ee=te.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?Te.find(ne=>ne.id===Ee.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const ne=Ee._matDialogClose||Ee._matDialogCloseResult;ne&&(this.dialogResult=ne.currentValue)}_onButtonClick(Ee){_e(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return te.\u0275fac=function(Ee){return new(Ee||te)(u.Y36(ee,8),u.Y36(u.SBq),u.Y36(I))},te.\u0275dir=u.lG2({type:te,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,ne){1&Ee&&u.NdJ("click",function(be){return ne._onButtonClick(be)}),2&Ee&&u.uIk("aria-label",ne.ariaLabel||null)("type",ne.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[u.TTD]}),te})(),Z=(()=>{class te{}return te.\u0275fac=function(Ee){return new(Ee||te)},te.\u0275mod=u.oAB({type:te}),te.\u0275inj=u.cJS({providers:[I,g],imports:[[e.U8,i.eL,b.BQ],b.BQ]}),te})()},4834:(He,j,p)=>{"use strict";p.d(j,{d:()=>b,t:()=>a});var e=p(5e3),i=p(3191),u=p(508);let b=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,i.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,i.Ig)(P)}}return y.\u0275fac=function(P){return new(P||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,D){2&P&&(e.uIk("aria-orientation",D.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",D.vertical)("mat-divider-horizontal",!D.vertical)("mat-divider-inset",D.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,D){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),y})(),a=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),y})()},1125:(He,j,p)=>{"use strict";p.d(j,{pp:()=>Ee,To:()=>ne,ib:()=>B,u4:()=>te,yz:()=>Z,yK:()=>Te});var e=p(5e3),i=p(3191),u=p(7579),b=p(727),a=p(449);let y=0;const h=new e.OlP("CdkAccordion");let P=(()=>{class ze{constructor(){this._stateChanges=new u.x,this._openCloseAllActions=new u.x,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi($){this._multi=(0,i.Ig)($)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges($){this._stateChanges.next($)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:h,useExisting:ze}]),e.TTD]}),ze})(),D=0,T=(()=>{class ze{constructor($,ke,lt){this.accordion=$,this._changeDetectorRef=ke,this._expansionDispatcher=lt,this._openCloseAllSubscription=b.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+D++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=lt.listen((W,De)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===De&&this.id!==W&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded($){$=(0,i.Ig)($),this._expanded!==$&&(this._expanded=$,this.expandedChange.emit($),$?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled($){this._disabled=(0,i.Ig)($)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe($=>{this.disabled||(this.expanded=$)})}}return ze.\u0275fac=function($){return new($||ze)(e.Y36(h,12),e.Y36(e.sBO),e.Y36(a.A8))},ze.\u0275dir=e.lG2({type:ze,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:h,useValue:void 0}])]}),ze})(),M=(()=>{class ze{}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({}),ze})();var A=p(7429),E=p(9808),k=p(508),w=p(5664),V=p(1884),U=p(8675),Y=p(9300),ae=p(5698),X=p(1159),de=p(6360),q=p(515),re=p(6451),le=p(1777);const ee=["body"];function _e(ze,be){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],t=["mat-expansion-panel-header","*","mat-action-row"];function r(ze,be){if(1&ze&&e._UZ(0,"span",2),2&ze){const $=e.oxw();e.Q6J("@indicatorRotate",$._getExpandedState())}}const d=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],g=new e.OlP("MAT_ACCORDION"),S="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,le.X$)("indicatorRotate",[(0,le.SB)("collapsed, void",(0,le.oB)({transform:"rotate(0deg)"})),(0,le.SB)("expanded",(0,le.oB)({transform:"rotate(180deg)"})),(0,le.eR)("expanded <=> collapsed, void => collapsed",(0,le.jt)(S))]),bodyExpansion:(0,le.X$)("bodyExpansion",[(0,le.SB)("collapsed, void",(0,le.oB)({height:"0px",visibility:"hidden"})),(0,le.SB)("expanded",(0,le.oB)({height:"*",visibility:"visible"})),(0,le.eR)("expanded <=> collapsed, void => collapsed",(0,le.jt)(S))])};let C=(()=>{class ze{constructor($){this._template=$}}return ze.\u0275fac=function($){return new($||ze)(e.Y36(e.Rgc))},ze.\u0275dir=e.lG2({type:ze,selectors:[["ng-template","matExpansionPanelContent",""]]}),ze})(),n=0;const _=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class ze extends T{constructor($,ke,lt,W,De,he,Ae){super($,ke,lt),this._viewContainerRef=W,this._animationMode=he,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new u.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new u.x,this.accordion=$,this._document=De,this._bodyAnimationDone.pipe((0,V.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{"void"!==xe.fromState&&("expanded"===xe.toState?this.afterExpand.emit():"collapsed"===xe.toState&&this.afterCollapse.emit())}),Ae&&(this.hideToggle=Ae.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle($){this._hideToggle=(0,i.Ig)($)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition($){this._togglePosition=$}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,U.O)(null),(0,Y.h)(()=>this.expanded&&!this._portal),(0,ae.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges($){this._inputChanges.next($)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const $=this._document.activeElement,ke=this._body.nativeElement;return $===ke||ke.contains($)}return!1}}return ze.\u0275fac=function($){return new($||ze)(e.Y36(g,12),e.Y36(e.sBO),e.Y36(a.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(de.Qb,8),e.Y36(_,8))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel"]],contentQueries:function($,ke,lt){if(1&$&&e.Suo(lt,C,5),2&$){let W;e.iGM(W=e.CRH())&&(ke._lazyContent=W.first)}},viewQuery:function($,ke){if(1&$&&e.Gf(ee,5),2&$){let lt;e.iGM(lt=e.CRH())&&(ke._body=lt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function($,ke){2&$&&e.ekj("mat-expanded",ke.expanded)("_mat-animation-noopable","NoopAnimations"===ke._animationMode)("mat-expansion-panel-spacing",ke._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:g,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:t,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function($,ke){1&$&&(e.F$t(x),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(W){return ke._bodyAnimationDone.next(W)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,_e,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&$&&(e.xp6(1),e.Q6J("@bodyExpansion",ke._getExpandedState())("id",ke.id),e.uIk("aria-labelledby",ke._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ke._portal))},directives:[A.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),ze})();class H{}const Q=(0,k.sb)(H);let Z=(()=>{class ze extends Q{constructor($,ke,lt,W,De,he,Ae){super(),this.panel=$,this._element=ke,this._focusMonitor=lt,this._changeDetectorRef=W,this._animationMode=he,this._parentChangeSubscription=b.w0.EMPTY;const xe=$.accordion?$.accordion._stateChanges.pipe((0,Y.h)(G=>!(!G.hideToggle&&!G.togglePosition))):q.E;this.tabIndex=parseInt(Ae||"")||0,this._parentChangeSubscription=(0,re.T)($.opened,$.closed,xe,$._inputChanges.pipe((0,Y.h)(G=>!!(G.hideToggle||G.disabled||G.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),$.closed.pipe((0,Y.h)(()=>$._containsFocus())).subscribe(()=>lt.focusVia(ke,"program")),De&&(this.expandedHeight=De.expandedHeight,this.collapsedHeight=De.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const $=this._isExpanded();return $&&this.expandedHeight?this.expandedHeight:!$&&this.collapsedHeight?this.collapsedHeight:null}_keydown($){switch($.keyCode){case X.L_:case X.K5:(0,X.Vb)($)||($.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown($))}}focus($,ke){$?this._focusMonitor.focusVia(this._element,$,ke):this._element.nativeElement.focus(ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe($=>{$&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ze.\u0275fac=function($){return new($||ze)(e.Y36(B,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(_,8),e.Y36(de.Qb,8),e.$8M("tabindex"))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function($,ke){1&$&&e.NdJ("click",function(){return ke._toggle()})("keydown",function(W){return ke._keydown(W)}),2&$&&(e.uIk("id",ke.panel._headerId)("tabindex",ke.tabIndex)("aria-controls",ke._getPanelId())("aria-expanded",ke._isExpanded())("aria-disabled",ke.panel.disabled),e.Udp("height",ke._getHeaderHeight()),e.ekj("mat-expanded",ke._isExpanded())("mat-expansion-toggle-indicator-after","after"===ke._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ke._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ke._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function($,ke){1&$&&(e.F$t(d),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,r,1,1,"span",1)),2&$&&(e.xp6(4),e.Q6J("ngIf",ke._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),ze})(),te=(()=>{class ze{}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ze})(),Te=(()=>{class ze{}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ze})(),Ee=(()=>{class ze extends P{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle($){this._hideToggle=(0,i.Ig)($)}ngAfterContentInit(){this._headers.changes.pipe((0,U.O)(this._headers)).subscribe($=>{this._ownHeaders.reset($.filter(ke=>ke.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown($){this._keyManager.onKeydown($)}_handleHeaderFocus($){this._keyManager.updateActiveItem($)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ze.\u0275fac=function(){let be;return function(ke){return(be||(be=e.n5z(ze)))(ke||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-accordion"]],contentQueries:function($,ke,lt){if(1&$&&e.Suo(lt,Z,5),2&$){let W;e.iGM(W=e.CRH())&&(ke._headers=W)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function($,ke){2&$&&e.ekj("mat-accordion-multi",ke.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:g,useExisting:ze}]),e.qOj]}),ze})(),ne=(()=>{class ze{}return ze.\u0275fac=function($){return new($||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[E.ez,k.BQ,M,A.eL]]}),ze})()},7322:(He,j,p)=>{"use strict";p.d(j,{Eo:()=>n,G_:()=>he,KE:()=>Ae,R9:()=>be,TO:()=>I,bx:()=>Z,lN:()=>xe});var e=p(7144),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(7579),h=p(6451),P=p(4968),D=p(8675),T=p(2722),M=p(5698),A=p(1777),E=p(6360),k=p(226),w=p(925);const V=["connectionContainer"],U=["inputContainer"],Y=["label"];function ae(G,ie){1&G&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function X(G,ie){if(1&G){const pe=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){return u.CHM(pe),u.oxw().updateOutlineGap()}),u.Hsn(1,1),u.qZA()}if(2&G){const pe=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=pe.appearance)}}function de(G,ie){if(1&G&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&G){const pe=u.oxw(2);u.xp6(3),u.Oqu(pe._control.placeholder)}}function q(G,ie){1&G&&u.Hsn(0,3,["*ngSwitchCase","true"])}function re(G,ie){1&G&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function le(G,ie){if(1&G){const pe=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){return u.CHM(pe),u.oxw().updateOutlineGap()}),u.YNc(2,de,4,1,"ng-container",12),u.YNc(3,q,1,0,"ng-content",12),u.YNc(4,re,2,0,"span",22),u.qZA()}if(2&G){const pe=u.oxw();u.ekj("mat-empty",pe._control.empty&&!pe._shouldAlwaysFloat())("mat-form-field-empty",pe._control.empty&&!pe._shouldAlwaysFloat())("mat-accent","accent"==pe.color)("mat-warn","warn"==pe.color),u.Q6J("cdkObserveContentDisabled","outline"!=pe.appearance)("id",pe._labelId)("ngSwitch",pe._hasLabel()),u.uIk("for",pe._control.id)("aria-owns",pe._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!pe.hideRequiredMarker&&pe._control.required&&!pe._control.disabled)}}function ee(G,ie){1&G&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function _e(G,ie){if(1&G&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&G){const pe=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==pe.color)("mat-warn","warn"==pe.color)}}function x(G,ie){if(1&G&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&G){const pe=u.oxw();u.Q6J("@transitionMessages",pe._subscriptAnimationState)}}function t(G,ie){if(1&G&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&G){const pe=u.oxw(2);u.Q6J("id",pe._hintLabelId),u.xp6(1),u.Oqu(pe.hintLabel)}}function r(G,ie){if(1&G&&(u.TgZ(0,"div",27),u.YNc(1,t,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&G){const pe=u.oxw();u.Q6J("@transitionMessages",pe._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",pe.hintLabel)}}const d=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let g=0;const S=new u.OlP("MatError");let I=(()=>{class G{constructor(pe,ye){this.id="mat-error-"+g++,pe||ye.nativeElement.setAttribute("aria-live","polite")}}return G.\u0275fac=function(pe){return new(pe||G)(u.$8M("aria-live"),u.Y36(u.SBq))},G.\u0275dir=u.lG2({type:G,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(pe,ye){2&pe&&u.uIk("id",ye.id)},inputs:{id:"id"},features:[u._Bn([{provide:S,useExisting:G}])]}),G})();const C={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class G{}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275dir=u.lG2({type:G}),G})(),H=0;const Q=new u.OlP("MatHint");let Z=(()=>{class G{constructor(){this.align="start",this.id="mat-hint-"+H++}}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(pe,ye){2&pe&&(u.uIk("id",ye.id)("align",null),u.ekj("mat-form-field-hint-end","end"===ye.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:Q,useExisting:G}])]}),G})(),te=(()=>{class G{}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-label"]]}),G})(),Te=(()=>{class G{}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-placeholder"]]}),G})();const Ee=new u.OlP("MatPrefix"),ze=new u.OlP("MatSuffix");let be=(()=>{class G{}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275dir=u.lG2({type:G,selectors:[["","matSuffix",""]],features:[u._Bn([{provide:ze,useExisting:G}])]}),G})(),$=0;const W=(0,b.pj)(class{constructor(G){this._elementRef=G}},"primary"),De=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),he=new u.OlP("MatFormField");let Ae=(()=>{class G extends W{constructor(pe,ye,Le,ot,ht,At,hi){super(pe),this._changeDetectorRef=ye,this._dir=Le,this._defaults=ot,this._platform=ht,this._ngZone=At,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new y.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$++,this._labelId="mat-form-field-label-"+$++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==hi,this.appearance=ot&&ot.appearance?ot.appearance:"legacy",this._hideRequiredMarker=!(!ot||null==ot.hideRequiredMarker)&&ot.hideRequiredMarker}get appearance(){return this._appearance}set appearance(pe){const ye=this._appearance;this._appearance=pe||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ye!==pe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(pe){this._hideRequiredMarker=(0,a.Ig)(pe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(pe){this._hintLabel=pe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(pe){pe!==this._floatLabel&&(this._floatLabel=pe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(pe){this._explicitFormFieldControl=pe}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const pe=this._control;pe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${pe.controlType}`),pe.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),pe.ngControl&&pe.ngControl.valueChanges&&pe.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,h.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(pe){const ye=this._control?this._control.ngControl:null;return ye&&ye[pe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,P.R)(this._label.nativeElement,"transitionend").pipe((0,M.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let pe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&pe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ye=this._hintChildren?this._hintChildren.find(ot=>"start"===ot.align):null,Le=this._hintChildren?this._hintChildren.find(ot=>"end"===ot.align):null;ye?pe.push(ye.id):this._hintLabel&&pe.push(this._hintLabelId),Le&&pe.push(Le.id)}else this._errorChildren&&pe.push(...this._errorChildren.map(ye=>ye.id));this._control.setDescribedByIds(pe)}}_validateControlChild(){}updateOutlineGap(){const pe=this._label?this._label.nativeElement:null,ye=this._connectionContainerRef.nativeElement,Le=".mat-form-field-outline-start",ot=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!pe||!pe.children.length||!pe.textContent.trim()){const Gt=ye.querySelectorAll(`${Le}, ${ot}`);for(let di=0;di0?.75*mt+10:0}for(let Gt=0;Gt{class G{}return G.\u0275fac=function(pe){return new(pe||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.Q8],b.BQ]}),G})()},3954:(He,j,p)=>{"use strict";p.d(j,{DX:()=>A,Il:()=>ee,N6:()=>_e});var e=p(5e3),i=p(508),u=p(3191),b=p(226);const a=["*"];class D{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,d){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=d.map(c=>this._trackTile(c))}_trackTile(r){const d=this._findMatchingGap(r.colspan);return this._markTilePosition(d,r),this.columnIndex=d+r.colspan,new T(this.rowIndex,d)}_findMatchingGap(r){let d=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),d=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(d)):(d=this.tracker.indexOf(0,this.columnIndex),-1!=d?(c=this._findGapEndIndex(d),this.columnIndex=d+1):(this._nextRow(),d=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(d)))}while(c-d{class t{constructor(d,c){this._element=d,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(d){this._rowspan=Math.round((0,u.su)(d))}get colspan(){return this._colspan}set colspan(d){this._colspan=Math.round((0,u.su)(d))}_setStyle(d,c){this._element.nativeElement.style[d]=c}}return t.\u0275fac=function(d){return new(d||t)(e.Y36(e.SBq),e.Y36(M,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(d,c){2&d&&e.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(d,c){1&d&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})();const U=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Y{constructor(){this._rows=0,this._rowspan=0}init(r,d,c,g){this._gutterSize=re(r),this._rows=d.rowCount,this._rowspan=d.rowspan,this._cols=c,this._direction=g}getBaseTileSize(r,d){return`(${r}% - (${this._gutterSize} * ${d}))`}getTilePosition(r,d){return 0===d?"0":q(`(${r} + ${this._gutterSize}) * ${d}`)}getTileSize(r,d){return`(${r} * ${d}) + (${d-1} * ${this._gutterSize})`}setStyle(r,d,c){let g=100/this._cols,S=(this._cols-1)/this._cols;this.setColStyles(r,c,g,S),this.setRowStyles(r,d,g,S)}setColStyles(r,d,c,g){let S=this.getBaseTileSize(c,g);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(S,d)),r._setStyle("width",q(this.getTileSize(S,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ae extends Y{constructor(r){super(),this.fixedRowHeight=r}init(r,d,c,g){super.init(r,d,c,g),this.fixedRowHeight=re(this.fixedRowHeight),U.test(this.fixedRowHeight)}setRowStyles(r,d){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,d)),r._setStyle("height",q(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",q(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(d=>{d._setStyle("top",null),d._setStyle("height",null)})}}class X extends Y{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,d,c,g){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,g),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,d)),r._setStyle("paddingTop",q(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",q(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(d=>{d._setStyle("marginTop",null),d._setStyle("paddingTop",null)})}_parseRatio(r){const d=r.split(":");this.rowHeightRatio=parseFloat(d[0])/parseFloat(d[1])}}class de extends Y{setRowStyles(r,d){let S=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(S,d)),r._setStyle("height",q(this.getTileSize(S,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(d=>{d._setStyle("top",null),d._setStyle("height",null)})}}function q(t){return`calc(${t})`}function re(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let ee=(()=>{class t{constructor(d,c){this._element=d,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(d){this._cols=Math.max(1,Math.round((0,u.su)(d)))}get gutterSize(){return this._gutter}set gutterSize(d){this._gutter=`${null==d?"":d}`}get rowHeight(){return this._rowHeight}set rowHeight(d){const c=`${null==d?"":d}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(d){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===d?new de:d&&d.indexOf(":")>-1?new X(d):new ae(d)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new D);const d=this._tileCoordinator,c=this._tiles.filter(S=>!S._gridList||S._gridList===this),g=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,d,this.cols,g),c.forEach((S,I)=>{const C=d.positions[I];this._tileStyler.setStyle(S,C.row,C.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(d){d&&(this._element.nativeElement.style[d[0]]=d[1])}}return t.\u0275fac=function(d){return new(d||t)(e.Y36(e.SBq),e.Y36(b.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-list"]],contentQueries:function(d,c,g){if(1&d&&e.Suo(g,A,5),2&d){let S;e.iGM(S=e.CRH())&&(c._tiles=S)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(d,c){2&d&&e.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:M,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(d,c){1&d&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})(),_e=(()=>{class t{}return t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[i.uc,i.BQ],i.uc,i.BQ]}),t})()},5245:(He,j,p)=>{"use strict";p.d(j,{Hw:()=>B,Ps:()=>R});var e=p(5e3),i=p(508),u=p(3191),b=p(9808),a=p(9646),y=p(2843),h=p(4128),P=p(727),D=p(8505),T=p(4004),M=p(262),A=p(8746),E=p(3099),k=p(5698),w=p(8138),V=p(2313);const U=["*"];let Y;function X(H){var Q;return(null===(Q=function ae(){if(void 0===Y&&(Y=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(Y=H.trustedTypes.createPolicy("angular#components",{createHTML:Q=>Q}))}return Y}())||void 0===Q?void 0:Q.createHTML(H))||H}function de(H){return Error(`Unable to find icon with the name "${H}"`)}function re(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function le(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class ee{constructor(Q,Z,te){this.url=Q,this.svgText=Z,this.options=te}}let _e=(()=>{class H{constructor(Z,te,Te,Ee){this._httpClient=Z,this._sanitizer=te,this._errorHandler=Ee,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=Te}addSvgIcon(Z,te,Te){return this.addSvgIconInNamespace("",Z,te,Te)}addSvgIconLiteral(Z,te,Te){return this.addSvgIconLiteralInNamespace("",Z,te,Te)}addSvgIconInNamespace(Z,te,Te,Ee){return this._addSvgIconConfig(Z,te,new ee(Te,null,Ee))}addSvgIconResolver(Z){return this._resolvers.push(Z),this}addSvgIconLiteralInNamespace(Z,te,Te,Ee){const ne=this._sanitizer.sanitize(e.q3G.HTML,Te);if(!ne)throw le(Te);const ze=X(ne);return this._addSvgIconConfig(Z,te,new ee("",ze,Ee))}addSvgIconSet(Z,te){return this.addSvgIconSetInNamespace("",Z,te)}addSvgIconSetLiteral(Z,te){return this.addSvgIconSetLiteralInNamespace("",Z,te)}addSvgIconSetInNamespace(Z,te,Te){return this._addSvgIconSetConfig(Z,new ee(te,null,Te))}addSvgIconSetLiteralInNamespace(Z,te,Te){const Ee=this._sanitizer.sanitize(e.q3G.HTML,te);if(!Ee)throw le(te);const ne=X(Ee);return this._addSvgIconSetConfig(Z,new ee("",ne,Te))}registerFontClassAlias(Z,te=Z){return this._fontCssClassesByAlias.set(Z,te),this}classNameForFontAlias(Z){return this._fontCssClassesByAlias.get(Z)||Z}setDefaultFontSetClass(Z){return this._defaultFontSetClass=Z,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Z){const te=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Z);if(!te)throw re(Z);const Te=this._cachedIconsByUrl.get(te);return Te?(0,a.of)(r(Te)):this._loadSvgIconFromConfig(new ee(Z,null)).pipe((0,D.b)(Ee=>this._cachedIconsByUrl.set(te,Ee)),(0,T.U)(Ee=>r(Ee)))}getNamedSvgIcon(Z,te=""){const Te=d(te,Z);let Ee=this._svgIconConfigs.get(Te);if(Ee)return this._getSvgFromConfig(Ee);if(Ee=this._getIconConfigFromResolvers(te,Z),Ee)return this._svgIconConfigs.set(Te,Ee),this._getSvgFromConfig(Ee);const ne=this._iconSetConfigs.get(te);return ne?this._getSvgFromIconSetConfigs(Z,ne):(0,y._)(de(Te))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Z){return Z.svgText?(0,a.of)(r(this._svgElementFromConfig(Z))):this._loadSvgIconFromConfig(Z).pipe((0,T.U)(te=>r(te)))}_getSvgFromIconSetConfigs(Z,te){const Te=this._extractIconWithNameFromAnySet(Z,te);if(Te)return(0,a.of)(Te);const Ee=te.filter(ne=>!ne.svgText).map(ne=>this._loadSvgIconSetFromConfig(ne).pipe((0,M.K)(ze=>{const $=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ne.url)} failed: ${ze.message}`;return this._errorHandler.handleError(new Error($)),(0,a.of)(null)})));return(0,h.D)(Ee).pipe((0,T.U)(()=>{const ne=this._extractIconWithNameFromAnySet(Z,te);if(!ne)throw de(Z);return ne}))}_extractIconWithNameFromAnySet(Z,te){for(let Te=te.length-1;Te>=0;Te--){const Ee=te[Te];if(Ee.svgText&&Ee.svgText.toString().indexOf(Z)>-1){const ne=this._svgElementFromConfig(Ee),ze=this._extractSvgIconFromSet(ne,Z,Ee.options);if(ze)return ze}}return null}_loadSvgIconFromConfig(Z){return this._fetchIcon(Z).pipe((0,D.b)(te=>Z.svgText=te),(0,T.U)(()=>this._svgElementFromConfig(Z)))}_loadSvgIconSetFromConfig(Z){return Z.svgText?(0,a.of)(null):this._fetchIcon(Z).pipe((0,D.b)(te=>Z.svgText=te))}_extractSvgIconFromSet(Z,te,Te){const Ee=Z.querySelector(`[id="${te}"]`);if(!Ee)return null;const ne=Ee.cloneNode(!0);if(ne.removeAttribute("id"),"svg"===ne.nodeName.toLowerCase())return this._setSvgAttributes(ne,Te);if("symbol"===ne.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ne),Te);const ze=this._svgElementFromString(X(""));return ze.appendChild(ne),this._setSvgAttributes(ze,Te)}_svgElementFromString(Z){const te=this._document.createElement("DIV");te.innerHTML=Z;const Te=te.querySelector("svg");if(!Te)throw Error(" tag not found");return Te}_toSvgElement(Z){const te=this._svgElementFromString(X("")),Te=Z.attributes;for(let Ee=0;EeX(ke)),(0,A.x)(()=>this._inProgressUrlFetches.delete(ze)),(0,E.B)());return this._inProgressUrlFetches.set(ze,$),$}_addSvgIconConfig(Z,te,Te){return this._svgIconConfigs.set(d(Z,te),Te),this}_addSvgIconSetConfig(Z,te){const Te=this._iconSetConfigs.get(Z);return Te?Te.push(te):this._iconSetConfigs.set(Z,[te]),this}_svgElementFromConfig(Z){if(!Z.svgElement){const te=this._svgElementFromString(Z.svgText);this._setSvgAttributes(te,Z.options),Z.svgElement=te}return Z.svgElement}_getIconConfigFromResolvers(Z,te){for(let Te=0;TeQ?Q.pathname+Q.search:""}}}),C=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=C.map(H=>`[${H}]`).join(", "),_=/^url\(['"]?#(.*?)['"]?\)$/;let B=(()=>{class H extends g{constructor(Z,te,Te,Ee,ne){super(Z),this._iconRegistry=te,this._location=Ee,this._errorHandler=ne,this._inline=!1,this._currentIconFetch=P.w0.EMPTY,Te||Z.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Z){this._inline=(0,u.Ig)(Z)}get svgIcon(){return this._svgIcon}set svgIcon(Z){Z!==this._svgIcon&&(Z?this._updateSvgIcon(Z):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Z)}get fontSet(){return this._fontSet}set fontSet(Z){const te=this._cleanupFontValue(Z);te!==this._fontSet&&(this._fontSet=te,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Z){const te=this._cleanupFontValue(Z);te!==this._fontIcon&&(this._fontIcon=te,this._updateFontIconClasses())}_splitIconName(Z){if(!Z)return["",""];const te=Z.split(":");switch(te.length){case 1:return["",te[0]];case 2:return te;default:throw Error(`Invalid icon name: "${Z}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Z=this._elementsWithExternalReferences;if(Z&&Z.size){const te=this._location.getPathname();te!==this._previousPath&&(this._previousPath=te,this._prependPathToReferences(te))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Z){this._clearSvgElement();const te=this._location.getPathname();this._previousPath=te,this._cacheChildrenWithExternalReferences(Z),this._prependPathToReferences(te),this._elementRef.nativeElement.appendChild(Z)}_clearSvgElement(){const Z=this._elementRef.nativeElement;let te=Z.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();te--;){const Te=Z.childNodes[te];(1!==Te.nodeType||"svg"===Te.nodeName.toLowerCase())&&Te.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Z=this._elementRef.nativeElement,te=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();te!=this._previousFontSetClass&&(this._previousFontSetClass&&Z.classList.remove(this._previousFontSetClass),te&&Z.classList.add(te),this._previousFontSetClass=te),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Z.classList.remove(this._previousFontIconClass),this.fontIcon&&Z.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Z){return"string"==typeof Z?Z.trim().split(" ")[0]:Z}_prependPathToReferences(Z){const te=this._elementsWithExternalReferences;te&&te.forEach((Te,Ee)=>{Te.forEach(ne=>{Ee.setAttribute(ne.name,`url('${Z}#${ne.value}')`)})})}_cacheChildrenWithExternalReferences(Z){const te=Z.querySelectorAll(n),Te=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ee=0;Ee{const ze=te[Ee],be=ze.getAttribute(ne),$=be?be.match(_):null;if($){let ke=Te.get(ze);ke||(ke=[],Te.set(ze,ke)),ke.push({name:ne,value:$[1]})}})}_updateSvgIcon(Z){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Z){const[te,Te]=this._splitIconName(Z);te&&(this._svgNamespace=te),Te&&(this._svgName=Te),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Te,te).pipe((0,k.q)(1)).subscribe(Ee=>this._setSvgElement(Ee),Ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${te}:${Te}! ${Ee.message}`))})}}}return H.\u0275fac=function(Z){return new(Z||H)(e.Y36(e.SBq),e.Y36(_e),e.$8M("aria-hidden"),e.Y36(S),e.Y36(e.qLn))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Z,te){2&Z&&(e.uIk("data-mat-icon-type",te._usingFontIcon()?"font":"svg")("data-mat-icon-name",te._svgName||te.fontIcon)("data-mat-icon-namespace",te._svgNamespace||te.fontSet),e.ekj("mat-icon-inline",te.inline)("mat-icon-no-color","primary"!==te.color&&"accent"!==te.color&&"warn"!==te.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:U,decls:1,vars:0,template:function(Z,te){1&Z&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),H})(),R=(()=>{class H{}return H.\u0275fac=function(Z){return new(Z||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),H})()},7531:(He,j,p)=>{"use strict";p.d(j,{Jk:()=>w,Nt:()=>ae,c:()=>X});var e=p(3191),i=p(925),u=p(5e3),b=p(3075),a=p(508),y=p(7322),h=p(7579),P=p(515);const D=(0,i.i$)({passive:!0});let T=(()=>{class de{constructor(re,le){this._platform=re,this._ngZone=le,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return P.E;const le=(0,e.fI)(re),ee=this._monitoredElements.get(le);if(ee)return ee.subject;const _e=new h.x,x="cdk-text-field-autofilled",t=r=>{"cdk-text-field-autofill-start"!==r.animationName||le.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&le.classList.contains(x)&&(le.classList.remove(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!1}))):(le.classList.add(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",t,D),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:_e,unlisten:()=>{le.removeEventListener("animationstart",t,D)}}),_e}stopMonitoring(re){const le=(0,e.fI)(re),ee=this._monitoredElements.get(le);ee&&(ee.unlisten(),ee.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((re,le)=>this.stopMonitoring(le))}}return de.\u0275fac=function(re){return new(re||de)(u.LFG(i.t4),u.LFG(u.R0b))},de.\u0275prov=u.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),E=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=u.oAB({type:de}),de.\u0275inj=u.cJS({}),de})();const w=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),V=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let U=0;const Y=(0,a.FD)(class{constructor(de,q,re,le){this._defaultErrorStateMatcher=de,this._parentForm=q,this._parentFormGroup=re,this.ngControl=le}});let ae=(()=>{class de extends Y{constructor(re,le,ee,_e,x,t,r,d,c,g){super(t,_e,x,ee),this._elementRef=re,this._platform=le,this._autofillMonitor=d,this._formField=g,this._uid="mat-input-"+U++,this.focused=!1,this.stateChanges=new h.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(C=>(0,i.qK)().has(C)),this._iOSKeyupListener=C=>{const n=C.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,I=S.nodeName.toLowerCase();this._inputValueAccessor=r||S,this._previousNativeValue=this.value,this.id=this.id,le.IOS&&c.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!g,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,e.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,le,ee,_e;return null!==(_e=null!==(re=this._required)&&void 0!==re?re:null===(ee=null===(le=this.ngControl)||void 0===le?void 0:le.control)||void 0===ee?void 0:ee.hasValidator(b.kI.required))&&void 0!==_e&&_e}set required(re){this._required=(0,e.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,e.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,le;const ee=(null===(le=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===le?void 0:le.call(re))?null:this.placeholder;if(ee!==this._previousPlaceholder){const _e=this._elementRef.nativeElement;this._previousPlaceholder=ee,ee?_e.setAttribute("placeholder",ee):_e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){V.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,le=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&le&&le.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return de.\u0275fac=function(re){return new(re||de)(u.Y36(u.SBq),u.Y36(i.t4),u.Y36(b.a5,10),u.Y36(b.F,8),u.Y36(b.sg,8),u.Y36(a.rD),u.Y36(w,10),u.Y36(T),u.Y36(u.R0b),u.Y36(y.G_,8))},de.\u0275dir=u.lG2({type:de,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(re,le){1&re&&u.NdJ("focus",function(){return le._focusChanged(!0)})("blur",function(){return le._focusChanged(!1)})("input",function(){return le._onInput()}),2&re&&(u.Ikx("disabled",le.disabled)("required",le.required),u.uIk("id",le.id)("data-placeholder",le.placeholder)("name",le.name||null)("readonly",le.readonly&&!le._isNativeSelect||null)("aria-invalid",le.empty&&le.required?null:le.errorState)("aria-required",le.required),u.ekj("mat-input-server",le._isServer)("mat-native-select-inline",le._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[u._Bn([{provide:y.Eo,useExisting:de}]),u.qOj,u.TTD]}),de})(),X=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=u.oAB({type:de}),de.\u0275inj=u.cJS({providers:[a.rD],imports:[[E,y.lN,a.BQ],E,y.lN]}),de})()},4623:(He,j,p)=>{"use strict";p.d(j,{Tg:()=>d,i$:()=>_e,ie:()=>_});var e=p(9808),i=p(5e3),u=p(508),b=p(3191),a=p(7579),y=p(2722),A=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],V=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],de=(0,u.Id)((0,u.Kr)(class{})),q=(0,u.Kr)(class{}),re=new i.OlP("MatList"),le=new i.OlP("MatNavList");let _e=(()=>{class B extends de{constructor(H){super(),this._elementRef=H,this._stateChanges=new a.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return B.\u0275fac=function(H){return new(H||B)(i.Y36(i.SBq))},B.\u0275cmp=i.Xpm({type:B,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:re,useExisting:B}]),i.qOj,i.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(H,Q){1&H&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),B})(),x=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275dir=i.lG2({type:B,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),B})(),t=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275dir=i.lG2({type:B,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),B})(),d=(()=>{class B extends q{constructor(H,Q,Z,te){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(Z||te&&"action-list"===te._getListType()),this._list=Z||te;const Te=this._getHostElement();"button"===Te.nodeName.toLowerCase()&&!Te.hasAttribute("type")&&Te.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,y.R)(this._destroyed)).subscribe(()=>{Q.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,b.Ig)(H)}ngAfterContentInit(){(0,u.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return B.\u0275fac=function(H){return new(H||B)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(le,8),i.Y36(re,8))},B.\u0275cmp=i.Xpm({type:B,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,Q,Z){if(1&H&&(i.Suo(Z,x,5),i.Suo(Z,t,5),i.Suo(Z,u.X2,5)),2&H){let te;i.iGM(te=i.CRH())&&(Q._avatar=te.first),i.iGM(te=i.CRH())&&(Q._icon=te.first),i.iGM(te=i.CRH())&&(Q._lines=te)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,Q){2&H&&i.ekj("mat-list-item-disabled",Q.disabled)("mat-list-item-avatar",Q._avatar||Q._icon)("mat-list-item-with-avatar",Q._avatar||Q._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:V,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(H,Q){1&H&&(i.F$t(w),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&H&&(i.xp6(1),i.Q6J("matRippleTrigger",Q._getHostElement())("matRippleDisabled",Q._isRippleDisabled()))},directives:[u.wG],encapsulation:2,changeDetection:0}),B})(),_=(()=>{class B{}return B.\u0275fac=function(H){return new(H||B)},B.\u0275mod=i.oAB({type:B}),B.\u0275inj=i.cJS({imports:[[u.uc,u.si,u.BQ,u.us,e.ez],u.uc,u.BQ,u.us,A.t]}),B})()},2181:(He,j,p)=>{"use strict";p.d(j,{OP:()=>H,Tx:()=>De,VK:()=>Ee,p6:()=>W});var e=p(5664),i=p(3191),u=p(1159),b=p(5e3),a=p(7579),y=p(727),h=p(6451),P=p(9646),D=p(3101),T=p(8675),M=p(3900),A=p(5698),E=p(2722),k=p(9300),w=p(4086),V=p(1777),U=p(7429),Y=p(9808),ae=p(508),X=p(9776),de=p(925),q=p(226),re=p(5303);const le=["mat-menu-item",""];function ee(he,Ae){1&he&&(b.O4$(),b.TgZ(0,"svg",2),b._UZ(1,"polygon",3),b.qZA())}const _e=["*"];function x(he,Ae){if(1&he){const xe=b.EpF();b.TgZ(0,"div",0),b.NdJ("keydown",function(ie){return b.CHM(xe),b.oxw()._handleKeydown(ie)})("click",function(){return b.CHM(xe),b.oxw().closed.emit("click")})("@transformMenu.start",function(ie){return b.CHM(xe),b.oxw()._onAnimationStart(ie)})("@transformMenu.done",function(ie){return b.CHM(xe),b.oxw()._onAnimationDone(ie)}),b.TgZ(1,"div",1),b.Hsn(2),b.qZA()()}if(2&he){const xe=b.oxw();b.Q6J("id",xe.panelId)("ngClass",xe._classList)("@transformMenu",xe._panelAnimationState),b.uIk("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const t={transformMenu:(0,V.X$)("transformMenu",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(0.8)"})),(0,V.eR)("void => enter",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms 25ms linear",(0,V.oB)({opacity:0})))]),fadeInItems:(0,V.X$)("fadeInItems",[(0,V.SB)("showing",(0,V.oB)({opacity:1})),(0,V.eR)("void => *",[(0,V.oB)({opacity:0}),(0,V.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new b.OlP("MatMenuContent"),B=new b.OlP("MAT_MENU_PANEL"),R=(0,ae.Kr)((0,ae.Id)(class{}));let H=(()=>{class he extends R{constructor(xe,G,ie,pe,ye){var Le;super(),this._elementRef=xe,this._document=G,this._focusMonitor=ie,this._parentMenu=pe,this._changeDetectorRef=ye,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Le=null==pe?void 0:pe.addItem)||void 0===Le||Le.call(pe,this)}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,G):this._getHostElement().focus(G),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var xe;const G=this._elementRef.nativeElement.cloneNode(!0),ie=G.querySelectorAll("mat-icon, .material-icons");for(let pe=0;pe{class he{constructor(xe,G,ie,pe){this._elementRef=xe,this._ngZone=G,this._defaultOptions=ie,this._changeDetectorRef=pe,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new b.n_E,this._tabSubscription=y.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new b.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+te++}get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xe){this._overlapTrigger=(0,i.Ig)(xe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xe){this._hasBackdrop=(0,i.Ig)(xe)}set panelClass(xe){const G=this._previousPanelClass;G&&G.length&&G.split(" ").forEach(ie=>{this._classList[ie]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(ie=>{this._classList[ie]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,T.O)(this._directDescendantItems),(0,M.w)(xe=>(0,h.T)(...xe.map(G=>G._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{var G;const ie=this._keyManager;if("enter"===this._panelAnimationState&&(null===(G=ie.activeItem)||void 0===G?void 0:G._hasFocus())){const pe=xe.toArray(),ye=Math.max(0,Math.min(pe.length-1,ie.activeItemIndex||0));pe[ye]&&!pe[ye].disabled?ie.setActiveItem(ye):ie.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,T.O)(this._directDescendantItems),(0,M.w)(G=>(0,h.T)(...G.map(ie=>ie._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const G=xe.keyCode,ie=this._keyManager;switch(G){case u.hY:(0,u.Vb)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case u.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case u.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(G===u.LH||G===u.JH)&&ie.setFocusOrigin("keyboard"),void ie.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{let G=null;if(this._directDescendantItems.length&&(G=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!G||!G.contains(document.activeElement)){const ie=this._keyManager;ie.setFocusOrigin(xe).setFirstItemActive(),!ie.activeItem&&G&&G.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){const G=Math.min(this._baseElevation+xe,24),ie=`${this._elevationPrefix}${G}`,pe=Object.keys(this._classList).find(ye=>ye.startsWith(this._elevationPrefix));(!pe||pe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ie]=!0,this._previousElevation=ie)}setPositionClasses(xe=this.xPosition,G=this.yPosition){var ie;const pe=this._classList;pe["mat-menu-before"]="before"===xe,pe["mat-menu-after"]="after"===xe,pe["mat-menu-above"]="above"===G,pe["mat-menu-below"]="below"===G,null===(ie=this._changeDetectorRef)||void 0===ie||ie.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.O)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(G=>G._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return he.\u0275fac=function(xe){return new(xe||he)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(Q),b.Y36(b.sBO))},he.\u0275dir=b.lG2({type:he,contentQueries:function(xe,G,ie){if(1&xe&&(b.Suo(ie,c,5),b.Suo(ie,H,5),b.Suo(ie,H,4)),2&xe){let pe;b.iGM(pe=b.CRH())&&(G.lazyContent=pe.first),b.iGM(pe=b.CRH())&&(G._allItems=pe),b.iGM(pe=b.CRH())&&(G.items=pe)}},viewQuery:function(xe,G){if(1&xe&&b.Gf(b.Rgc,5),2&xe){let ie;b.iGM(ie=b.CRH())&&(G.templateRef=ie.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),he})(),Ee=(()=>{class he extends Te{constructor(xe,G,ie,pe){super(xe,G,ie,pe),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return he.\u0275fac=function(xe){return new(xe||he)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(Q),b.Y36(b.sBO))},he.\u0275cmp=b.Xpm({type:he,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(xe,G){2&xe&&b.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[b._Bn([{provide:B,useExisting:he}]),b.qOj],ngContentSelectors:_e,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(xe,G){1&xe&&(b.F$t(),b.YNc(0,x,3,6,"ng-template"))},directives:[Y.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[t.transformMenu,t.fadeInItems]},changeDetection:0}),he})();const ne=new b.OlP("mat-menu-scroll-strategy"),be={provide:ne,deps:[X.aV],useFactory:function ze(he){return()=>he.scrollStrategies.reposition()}},ke=(0,de.i$)({passive:!0});let lt=(()=>{class he{constructor(xe,G,ie,pe,ye,Le,ot,ht,At){this._overlay=xe,this._element=G,this._viewContainerRef=ie,this._menuItemInstance=Le,this._dir=ot,this._focusMonitor=ht,this._ngZone=At,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.w0.EMPTY,this._hoverSubscription=y.w0.EMPTY,this._menuCloseSubscription=y.w0.EMPTY,this._handleTouchStart=hi=>{(0,e.yG)(hi)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new b.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new b.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=pe,this._parentMaterialMenu=ye instanceof Te?ye:void 0,G.nativeElement.addEventListener("touchstart",this._handleTouchStart,ke),Le&&(Le._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(G=>{this._destroyMenu(G),("click"===G||"tab"===G)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(G)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ke),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const xe=this._createOverlay(),G=xe.getConfig(),ie=G.positionStrategy;this._setPosition(ie),G.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,xe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Te&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,E.R)(this.menu.close)).subscribe(()=>{ie.withLockedPosition(!1).reapplyLastPosition(),ie.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,G):this._element.nativeElement.focus(G)}updatePosition(){var xe;null===(xe=this._overlayRef)||void 0===xe||xe.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const G=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,G instanceof Te?(G._resetAnimation(),G.lazyContent?G._animationDone.pipe((0,k.h)(ie=>"void"===ie.toState),(0,A.q)(1),(0,E.R)(G.lazyContent._attached)).subscribe({next:()=>G.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),G.lazyContent&&G.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let xe=0,G=this.menu.parentMenu;for(;G;)xe++,G=G.parentMenu;this.menu.setElevation(xe)}}_setIsMenuOpen(xe){this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const xe=this._getOverlayConfig();this._subscribeToPositions(xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new X.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xe){this.menu.setPositionClasses&&xe.positionChanges.subscribe(G=>{const ie="start"===G.connectionPair.overlayX?"after":"before",pe="top"===G.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(ie,pe)):this.menu.setPositionClasses(ie,pe)})}_setPosition(xe){let[G,ie]="before"===this.menu.xPosition?["end","start"]:["start","end"],[pe,ye]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Le,ot]=[pe,ye],[ht,At]=[G,ie],hi=0;this.triggersSubmenu()?(At=G="before"===this.menu.xPosition?"start":"end",ie=ht="end"===G?"start":"end",hi="bottom"===pe?8:-8):this.menu.overlapTrigger||(Le="top"===pe?"bottom":"top",ot="top"===ye?"bottom":"top"),xe.withPositions([{originX:G,originY:Le,overlayX:ht,overlayY:pe,offsetY:hi},{originX:ie,originY:Le,overlayX:At,overlayY:pe,offsetY:hi},{originX:G,originY:ot,overlayX:ht,overlayY:ye,offsetY:-hi},{originX:ie,originY:ot,overlayX:At,overlayY:ye,offsetY:-hi}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),G=this._overlayRef.detachments(),ie=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),pe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(ye=>ye!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,P.of)();return(0,h.T)(xe,ie,pe,G)}_handleMousedown(xe){(0,e.X6)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const G=xe.keyCode;(G===u.K5||G===u.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(G===u.SV&&"ltr"===this.dir||G===u.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,w.g)(0,D.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Te&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,D.E),(0,E.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new U.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return he.\u0275fac=function(xe){return new(xe||he)(b.Y36(X.aV),b.Y36(b.SBq),b.Y36(b.s_b),b.Y36(ne),b.Y36(B,8),b.Y36(H,10),b.Y36(q.Is,8),b.Y36(e.tE),b.Y36(b.R0b))},he.\u0275dir=b.lG2({type:he,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(xe,G){1&xe&&b.NdJ("click",function(pe){return G._handleClick(pe)})("mousedown",function(pe){return G._handleMousedown(pe)})("keydown",function(pe){return G._handleKeydown(pe)}),2&xe&&b.uIk("aria-expanded",G.menuOpen||null)("aria-controls",G.menuOpen?G.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),he})(),W=(()=>{class he extends lt{}return he.\u0275fac=function(){let Ae;return function(G){return(Ae||(Ae=b.n5z(he)))(G||he)}}(),he.\u0275dir=b.lG2({type:he,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[b.qOj]}),he})(),De=(()=>{class he{}return he.\u0275fac=function(xe){return new(xe||he)},he.\u0275mod=b.oAB({type:he}),he.\u0275inj=b.cJS({providers:[be],imports:[[Y.ez,ae.BQ,ae.si,X.U8],re.ZD,ae.BQ]}),he})()},6087:(He,j,p)=>{"use strict";p.d(j,{NW:()=>le,TU:()=>ee,ye:()=>V});var e=p(9808),i=p(5e3),u=p(508),b=p(7423),a=p(4107),y=p(7238),h=p(3191),P=p(7579),D=p(7322);function T(_e,x){if(1&_e&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&_e){const t=x.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function M(_e,x){if(1&_e){const t=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(d){return i.CHM(t),i.oxw(2)._changePageSize(d.value)}),i.YNc(2,T,2,2,"mat-option",18),i.qZA()()}if(2&_e){const t=i.oxw(2);i.Q6J("appearance",t._formFieldAppearance)("color",t.color),i.xp6(1),i.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",t._displayedPageSizeOptions)}}function A(_e,x){if(1&_e&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&_e){const t=i.oxw(2);i.xp6(1),i.Oqu(t.pageSize)}}function E(_e,x){if(1&_e&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,M,3,6,"mat-form-field",14),i.YNc(4,A,2,1,"div",15),i.qZA()),2&_e){const t=i.oxw();i.xp6(2),i.hij(" ",t._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function k(_e,x){if(1&_e){const t=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(t),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&_e){const t=i.oxw();i.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.firstPageLabel)}}function w(_e,x){if(1&_e){const t=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(t),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&_e){const t=i.oxw();i.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.lastPageLabel)}}let V=(()=>{class _e{constructor(){this.changes=new P.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,r,d)=>{if(0==d||0==r)return`0 of ${d}`;const c=t*r;return`${c+1} \u2013 ${c<(d=Math.max(d,0))?Math.min(c+r,d):c+r} of ${d}`}}}return _e.\u0275fac=function(t){return new(t||_e)},_e.\u0275prov=i.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Y={provide:V,deps:[[new i.FiY,new i.tp0,V]],useFactory:function U(_e){return _e||new V}},de=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),q=(0,u.Id)((0,u.dB)(class{}));let re=(()=>{class _e extends q{constructor(t,r,d){if(super(),this._intl=t,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),d){const{pageSize:c,pageSizeOptions:g,hidePageSize:S,showFirstLastButtons:I}=d;null!=c&&(this._pageSize=c),null!=g&&(this._pageSizeOptions=g),null!=S&&(this._hidePageSize=S),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,h.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,h.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,h.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(r=>(0,h.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,h.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,h.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return _e.\u0275fac=function(t){i.$Z()},_e.\u0275dir=i.lG2({type:_e,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),_e})(),le=(()=>{class _e extends re{constructor(t,r,d){super(t,r,d),d&&null!=d.formFieldAppearance&&(this._formFieldAppearance=d.formFieldAppearance)}}return _e.\u0275fac=function(t){return new(t||_e)(i.Y36(V),i.Y36(i.sBO),i.Y36(de,8))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,r){1&t&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,E,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,k,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return r.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return r.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,w,3,5,"button",11),i.qZA()()()),2&t&&(i.xp6(2),i.Q6J("ngIf",!r.hidePageSize),i.xp6(3),i.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),i.xp6(1),i.Q6J("ngIf",r.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),i.uIk("aria-label",r._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),i.uIk("aria-label",r._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",r.showFirstLastButtons))},directives:[D.KE,a.gD,u.ey,b.lW,e.O5,e.sg,y.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),_e})(),ee=(()=>{class _e{}return _e.\u0275fac=function(t){return new(t||_e)},_e.\u0275mod=i.oAB({type:_e}),_e.\u0275inj=i.cJS({providers:[Y],imports:[[e.ez,b.ot,a.LD,y.AV,u.BQ]]}),_e})()},5899:(He,j,p)=>{"use strict";p.d(j,{Cv:()=>U,pW:()=>w});var e=p(5e3),i=p(9808),u=p(508),b=p(3191),a=p(6360),y=p(727),h=p(4968),P=p(9300);const D=["primaryValueBar"],T=(0,u.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),M=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const Y=(0,e.f3M)(i.K0),ae=Y?Y.location:null;return{getPathname:()=>ae?ae.pathname+ae.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,w=(()=>{class Y extends T{constructor(X,de,q,re,le,ee){super(X),this._ngZone=de,this._animationMode=q,this._changeDetectorRef=ee,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=y.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const _e=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${_e}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===q,le&&(le.color&&(this.color=this.defaultColor=le.color),this.mode=le.mode||this.mode)}get value(){return this._value}set value(X){var de;this._value=V((0,b.su)(X)||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(X){var de;this._bufferValue=V(X||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const X=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,h.R)(X,"transitionend").pipe((0,P.h)(de=>de.target===X)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return Y.\u0275fac=function(X){return new(X||Y)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.Qb,8),e.Y36(M,8),e.Y36(E,8),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-progress-bar"]],viewQuery:function(X,de){if(1&X&&e.Gf(D,5),2&X){let q;e.iGM(q=e.CRH())&&(de._primaryValueBar=q.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(X,de){2&X&&(e.uIk("aria-valuenow","indeterminate"===de.mode||"query"===de.mode?null:de.value)("mode",de.mode),e.ekj("_mat-animation-noopable",de._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(X,de){1&X&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),e._UZ(4,"circle",3),e.qZA()(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),e.qZA()),2&X&&(e.xp6(3),e.Q6J("id",de.progressbarId),e.xp6(2),e.uIk("fill",de._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",de._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",de._primaryTransform()))},directives:[i.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),Y})();function V(Y,ae=0,X=100){return Math.max(ae,Math.min(X,Y))}let U=(()=>{class Y{}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[[i.ez,u.BQ],u.BQ]}),Y})()},773:(He,j,p)=>{"use strict";p.d(j,{Cq:()=>Y,Ou:()=>U});var e=p(3191),i=p(925),u=p(9808),b=p(5e3),a=p(508),y=p(6360),h=p(727),P=p(5303);function D(X,de){if(1&X&&(b.O4$(),b._UZ(0,"circle",4)),2&X){const q=b.oxw(),re=b.MAs(1);b.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+q._spinnerAnimationLabel)("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(re)),b.uIk("r",q._getCircleRadius())}}function T(X,de){if(1&X&&(b.O4$(),b._UZ(0,"circle",4)),2&X){const q=b.oxw(),re=b.MAs(1);b.Udp("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(re)),b.uIk("r",q._getCircleRadius())}}const E=(0,a.pj)(class{constructor(X){this._elementRef=X}},"primary"),k=new b.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:100}}});class U extends E{constructor(de,q,re,le,ee,_e,x,t){super(de),this._document=re,this._diameter=100,this._value=0,this._resizeSubscription=h.w0.EMPTY,this.mode="determinate";const r=U._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(re.head)||r.set(re.head,new Set([100])),this._noopAnimations="NoopAnimations"===le&&!!ee&&!ee._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),ee&&(ee.diameter&&(this.diameter=ee.diameter),ee.strokeWidth&&(this.strokeWidth=ee.strokeWidth)),q.isBrowser&&q.SAFARI&&x&&_e&&t&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&t.run(()=>_e.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,e.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,e.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,e.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,i.kV)(de)||this._document.head,this._attachStyleNode(),de.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const de=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${de} ${de}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(de){var q;const re=50*(null!==(q=de.currentScale)&&void 0!==q?q:1);return`${re}% ${re}%`}_attachStyleNode(){const de=this._styleRoot,q=this._diameter,re=U._diameters;let le=re.get(de);if(!le||!le.has(q)){const ee=this._document.createElement("style");ee.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),ee.textContent=this._getAnimationText(),de.appendChild(ee),le||(le=new Set,re.set(de,le)),le.add(q)}}_getAnimationText(){const de=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*de).replace(/END_VALUE/g,""+.2*de).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}U._diameters=new WeakMap,U.\u0275fac=function(de){return new(de||U)(b.Y36(b.SBq),b.Y36(i.t4),b.Y36(u.K0,8),b.Y36(y.Qb,8),b.Y36(k),b.Y36(b.sBO),b.Y36(P.rL),b.Y36(b.R0b))},U.\u0275cmp=b.Xpm({type:U,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,q){2&de&&(b.uIk("aria-valuemin","determinate"===q.mode?0:null)("aria-valuemax","determinate"===q.mode?100:null)("aria-valuenow","determinate"===q.mode?q.value:null)("mode",q.mode),b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.ekj("_mat-animation-noopable",q._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[b.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(de,q){1&de&&(b.O4$(),b.TgZ(0,"svg",0,1),b.YNc(2,D,1,11,"circle",2),b.YNc(3,T,1,9,"circle",3),b.qZA()),2&de&&(b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.Q6J("ngSwitch","indeterminate"===q.mode),b.uIk("viewBox",q._getViewBox()),b.xp6(2),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1))},directives:[u.RF,u.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let Y=(()=>{class X{}return X.\u0275fac=function(q){return new(q||X)},X.\u0275mod=b.oAB({type:X}),X.\u0275inj=b.cJS({imports:[[a.BQ,u.ez],a.BQ]}),X})()},9814:(He,j,p)=>{"use strict";p.d(j,{Fk:()=>re,U0:()=>q,VQ:()=>Y});var e=p(5e3),i=p(508),u=p(3191),b=p(3075),a=p(6360),y=p(5664),h=p(449);const P=["input"],D=function(le){return{enterDuration:le}},T=["*"],M=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const k={provide:b.JU,useExisting:(0,e.Gpc)(()=>Y),multi:!0};class w{constructor(ee,_e){this.source=ee,this.value=_e}}const V=new e.OlP("MatRadioGroup");let U=(()=>{class le{constructor(_e){this._changeDetector=_e,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(_e){this._name=_e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(_e){this._labelPosition="before"===_e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(_e){this._selected=_e,this.value=_e?_e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(_e){this._disabled=(0,u.Ig)(_e),this._markRadiosForCheck()}get required(){return this._required}set required(_e){this._required=(0,u.Ig)(_e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(_e=>{_e.name=this.name,_e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(x=>{x.checked=this.value===x.value,x.checked&&(this._selected=x)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(_e=>_e._markForCheck())}writeValue(_e){this.value=_e,this._changeDetector.markForCheck()}registerOnChange(_e){this._controlValueAccessorChangeFn=_e}registerOnTouched(_e){this.onTouched=_e}setDisabledState(_e){this.disabled=_e,this._changeDetector.markForCheck()}}return le.\u0275fac=function(_e){return new(_e||le)(e.Y36(e.sBO))},le.\u0275dir=e.lG2({type:le,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),le})(),Y=(()=>{class le extends U{}return le.\u0275fac=function(){let ee;return function(x){return(ee||(ee=e.n5z(le)))(x||le)}}(),le.\u0275dir=e.lG2({type:le,selectors:[["mat-radio-group"]],contentQueries:function(_e,x,t){if(1&_e&&e.Suo(t,q,5),2&_e){let r;e.iGM(r=e.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([k,{provide:V,useExisting:le}]),e.qOj]}),le})();class ae{constructor(ee){this._elementRef=ee}}const X=(0,i.Kr)((0,i.sb)(ae));let de=(()=>{class le extends X{constructor(_e,x,t,r,d,c,g,S){super(x),this._changeDetector=t,this._focusMonitor=r,this._radioDispatcher=d,this._providerOverride=g,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=_e,this._noopAnimations="NoopAnimations"===c,S&&(this.tabIndex=(0,u.su)(S,0)),this._removeUniqueSelectionListener=d.listen((I,C)=>{I!==this.id&&C===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(_e){const x=(0,u.Ig)(_e);this._checked!==x&&(this._checked=x,x&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!x&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),x&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===_e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(_e){this._labelPosition=_e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(_e){this._setDisabled((0,u.Ig)(_e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(_e){this._required=(0,u.Ig)(_e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(_e){this._color=_e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(_e,x){x?this._focusMonitor.focusVia(this._inputElement,x,_e):this._inputElement.nativeElement.focus(_e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{!_e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(_e){_e.stopPropagation()}_onInputInteraction(_e){if(_e.stopPropagation(),!this.checked&&!this.disabled){const x=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),x&&this.radioGroup._emitChangeEvent())}}_setDisabled(_e){this._disabled!==_e&&(this._disabled=_e,this._changeDetector.markForCheck())}_updateTabIndex(){var _e;const x=this.radioGroup;let t;if(t=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){const r=null===(_e=this._inputElement)||void 0===_e?void 0:_e.nativeElement;r&&(r.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return le.\u0275fac=function(_e){e.$Z()},le.\u0275dir=e.lG2({type:le,viewQuery:function(_e,x){if(1&_e&&e.Gf(P,5),2&_e){let t;e.iGM(t=e.CRH())&&(x._inputElement=t.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),le})(),q=(()=>{class le extends de{constructor(_e,x,t,r,d,c,g,S){super(_e,x,t,r,d,c,g,S)}}return le.\u0275fac=function(_e){return new(_e||le)(e.Y36(V,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(y.tE),e.Y36(h.A8),e.Y36(a.Qb,8),e.Y36(M,8),e.$8M("tabindex"))},le.\u0275cmp=e.Xpm({type:le,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(_e,x){1&_e&&e.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&_e&&(e.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",x.checked)("mat-radio-disabled",x.disabled)("_mat-animation-noopable",x._noopAnimations)("mat-primary","primary"===x.color)("mat-accent","accent"===x.color)("mat-warn","warn"===x.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:T,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(_e,x){if(1&_e&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&_e){const t=e.MAs(1);e.uIk("for",x.inputId),e.xp6(5),e.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),e.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",t)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,D,x._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[i.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),le})(),re=(()=>{class le{}return le.\u0275fac=function(_e){return new(_e||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),le})()},4107:(He,j,p)=>{"use strict";p.d(j,{$L:()=>lt,LD:()=>he,gD:()=>De});var e=p(9776),i=p(9808),u=p(5e3),b=p(508),a=p(7322),y=p(5303),h=p(5664),P=p(3191),D=p(449),T=p(1159),M=p(3075),A=p(7579),E=p(9770),k=p(6451),w=p(8675),V=p(3900),U=p(5698),Y=p(9300),ae=p(4004),X=p(1884),de=p(2722),q=p(1777),re=p(226);const le=["trigger"],ee=["panel"];function _e(Ae,xe){if(1&Ae&&(u.TgZ(0,"span",8),u._uU(1),u.qZA()),2&Ae){const G=u.oxw();u.xp6(1),u.Oqu(G.placeholder)}}function x(Ae,xe){if(1&Ae&&(u.TgZ(0,"span",12),u._uU(1),u.qZA()),2&Ae){const G=u.oxw(2);u.xp6(1),u.Oqu(G.triggerValue)}}function t(Ae,xe){1&Ae&&u.Hsn(0,0,["*ngSwitchCase","true"])}function r(Ae,xe){if(1&Ae&&(u.TgZ(0,"span",9),u.YNc(1,x,2,1,"span",10),u.YNc(2,t,1,0,"ng-content",11),u.qZA()),2&Ae){const G=u.oxw();u.Q6J("ngSwitch",!!G.customTrigger),u.xp6(2),u.Q6J("ngSwitchCase",!0)}}function d(Ae,xe){if(1&Ae){const G=u.EpF();u.TgZ(0,"div",13)(1,"div",14,15),u.NdJ("@transformPanel.done",function(pe){return u.CHM(G),u.oxw()._panelDoneAnimatingStream.next(pe.toState)})("keydown",function(pe){return u.CHM(G),u.oxw()._handleKeydown(pe)}),u.Hsn(3,1),u.qZA()()}if(2&Ae){const G=u.oxw();u.Q6J("@transformPanelWrap",void 0),u.xp6(1),u.Gre("mat-select-panel ",G._getPanelTheme(),""),u.Udp("transform-origin",G._transformOrigin)("font-size",G._triggerFontSize,"px"),u.Q6J("ngClass",G.panelClass)("@transformPanel",G.multiple?"showing-multiple":"showing"),u.uIk("id",G.id+"-panel")("aria-multiselectable",G.multiple)("aria-label",G.ariaLabel||null)("aria-labelledby",G._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],g=["mat-select-trigger","*"],S={transformPanelWrap:(0,q.X$)("transformPanelWrap",[(0,q.eR)("* => void",(0,q.IO)("@transformPanel",[(0,q.pV)()],{optional:!0}))]),transformPanel:(0,q.X$)("transformPanel",[(0,q.SB)("void",(0,q.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,q.SB)("showing",(0,q.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,q.SB)("showing-multiple",(0,q.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,q.eR)("void => *",(0,q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,q.eR)("* => void",(0,q.jt)("100ms 25ms linear",(0,q.oB)({opacity:0})))])};let _=0;const B=256,Te=new u.OlP("mat-select-scroll-strategy"),ne=new u.OlP("MAT_SELECT_CONFIG"),ze={provide:Te,deps:[e.aV],useFactory:function Ee(Ae){return()=>Ae.scrollStrategies.reposition()}};class be{constructor(xe,G){this.source=xe,this.value=G}}const $=(0,b.Kr)((0,b.sb)((0,b.Id)((0,b.FD)(class{constructor(Ae,xe,G,ie,pe){this._elementRef=Ae,this._defaultErrorStateMatcher=xe,this._parentForm=G,this._parentFormGroup=ie,this.ngControl=pe}})))),ke=new u.OlP("MatSelectTrigger");let lt=(()=>{class Ae{}return Ae.\u0275fac=function(G){return new(G||Ae)},Ae.\u0275dir=u.lG2({type:Ae,selectors:[["mat-select-trigger"]],features:[u._Bn([{provide:ke,useExisting:Ae}])]}),Ae})(),W=(()=>{class Ae extends ${constructor(G,ie,pe,ye,Le,ot,ht,At,hi,jt,Gt,di,vt,kt){var mt,Xe,_t;super(Le,ye,ht,At,jt),this._viewportRuler=G,this._changeDetectorRef=ie,this._ngZone=pe,this._dir=ot,this._parentFormField=hi,this._liveAnnouncer=vt,this._defaultOptions=kt,this._panelOpen=!1,this._compareWith=(ei,Kt)=>ei===Kt,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(mt=this._defaultOptions)||void 0===mt?void 0:mt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(_t=null===(Xe=this._defaultOptions)||void 0===Xe?void 0:Xe.disableOptionCentering)&&void 0!==_t&&_t,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ei=this.options;return ei?ei.changes.pipe((0,w.O)(ei),(0,V.w)(()=>(0,k.T)(...ei.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,U.q)(1),(0,V.w)(()=>this.optionSelectionChanges))}),this.openedChange=new u.vpe,this._openedStream=this.openedChange.pipe((0,Y.h)(ei=>ei),(0,ae.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Y.h)(ei=>!ei),(0,ae.U)(()=>{})),this.selectionChange=new u.vpe,this.valueChange=new u.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==kt?void 0:kt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=kt.typeaheadDebounceInterval),this._scrollStrategyFactory=di,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Gt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(G){this._placeholder=G,this.stateChanges.next()}get required(){var G,ie,pe,ye;return null!==(ye=null!==(G=this._required)&&void 0!==G?G:null===(pe=null===(ie=this.ngControl)||void 0===ie?void 0:ie.control)||void 0===pe?void 0:pe.hasValidator(M.kI.required))&&void 0!==ye&&ye}set required(G){this._required=(0,P.Ig)(G),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(G){this._multiple=(0,P.Ig)(G)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(G){this._disableOptionCentering=(0,P.Ig)(G)}get compareWith(){return this._compareWith}set compareWith(G){this._compareWith=G,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(G){this._assignValue(G)&&this._onChange(G)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(G){this._typeaheadDebounceInterval=(0,P.su)(G)}get id(){return this._id}set id(G){this._id=G||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,X.x)(),(0,de.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,de.R)(this._destroy)).subscribe(G=>{G.added.forEach(ie=>ie.select()),G.removed.forEach(ie=>ie.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,de.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const G=this._getTriggerAriaLabelledby(),ie=this.ngControl;if(G!==this._triggerAriaLabelledBy){const pe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=G,G?pe.setAttribute("aria-labelledby",G):pe.removeAttribute("aria-labelledby")}ie&&(this._previousControl!==ie.control&&(void 0!==this._previousControl&&null!==ie.disabled&&ie.disabled!==this.disabled&&(this.disabled=ie.disabled),this._previousControl=ie.control),this.updateErrorState())}ngOnChanges(G){G.disabled&&this.stateChanges.next(),G.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(G){this._assignValue(G)}registerOnChange(G){this._onChange=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var G,ie;return this.multiple?(null===(G=this._selectionModel)||void 0===G?void 0:G.selected)||[]:null===(ie=this._selectionModel)||void 0===ie?void 0:ie.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const G=this._selectionModel.selected.map(ie=>ie.viewValue);return this._isRtl()&&G.reverse(),G.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(G){this.disabled||(this.panelOpen?this._handleOpenKeydown(G):this._handleClosedKeydown(G))}_handleClosedKeydown(G){const ie=G.keyCode,pe=ie===T.JH||ie===T.LH||ie===T.oh||ie===T.SV,ye=ie===T.K5||ie===T.L_,Le=this._keyManager;if(!Le.isTyping()&&ye&&!(0,T.Vb)(G)||(this.multiple||G.altKey)&&pe)G.preventDefault(),this.open();else if(!this.multiple){const ot=this.selected;Le.onKeydown(G);const ht=this.selected;ht&&ot!==ht&&this._liveAnnouncer.announce(ht.viewValue,1e4)}}_handleOpenKeydown(G){const ie=this._keyManager,pe=G.keyCode,ye=pe===T.JH||pe===T.LH,Le=ie.isTyping();if(ye&&G.altKey)G.preventDefault(),this.close();else if(Le||pe!==T.K5&&pe!==T.L_||!ie.activeItem||(0,T.Vb)(G))if(!Le&&this._multiple&&pe===T.A&&G.ctrlKey){G.preventDefault();const ot=this.options.some(ht=>!ht.disabled&&!ht.selected);this.options.forEach(ht=>{ht.disabled||(ot?ht.select():ht.deselect())})}else{const ot=ie.activeItemIndex;ie.onKeydown(G),this._multiple&&ye&&G.shiftKey&&ie.activeItem&&ie.activeItemIndex!==ot&&ie.activeItem._selectViaInteraction()}else G.preventDefault(),ie.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,U.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(G){if(this._selectionModel.selected.forEach(ie=>ie.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&G)Array.isArray(G),G.forEach(ie=>this._selectOptionByValue(ie)),this._sortValues();else{const ie=this._selectOptionByValue(G);ie?this._keyManager.updateActiveItem(ie):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(G){const ie=this.options.find(pe=>{if(this._selectionModel.isSelected(pe))return!1;try{return null!=pe.value&&this._compareWith(pe.value,G)}catch(ye){return!1}});return ie&&this._selectionModel.select(ie),ie}_assignValue(G){return!!(G!==this._value||this._multiple&&Array.isArray(G))&&(this.options&&this._setSelectionByValue(G),this._value=G,!0)}_initKeyManager(){this._keyManager=new h.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,de.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const G=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(G)).subscribe(ie=>{this._onSelect(ie.source,ie.isUserInput),ie.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(ie=>ie._stateChanges)).pipe((0,de.R)(G)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(G,ie){const pe=this._selectionModel.isSelected(G);null!=G.value||this._multiple?(pe!==G.selected&&(G.selected?this._selectionModel.select(G):this._selectionModel.deselect(G)),ie&&this._keyManager.setActiveItem(G),this.multiple&&(this._sortValues(),ie&&this.focus())):(G.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(G.value)),pe!==this._selectionModel.isSelected(G)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const G=this.options.toArray();this._selectionModel.sort((ie,pe)=>this.sortComparator?this.sortComparator(ie,pe,G):G.indexOf(ie)-G.indexOf(pe)),this.stateChanges.next()}}_propagateChanges(G){let ie=null;ie=this.multiple?this.selected.map(pe=>pe.value):this.selected?this.selected.value:G,this._value=ie,this.valueChange.emit(ie),this._onChange(ie),this.selectionChange.emit(this._getChangeEvent(ie)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var G;return!this._panelOpen&&!this.disabled&&(null===(G=this.options)||void 0===G?void 0:G.length)>0}focus(G){this._elementRef.nativeElement.focus(G)}_getPanelAriaLabelledby(){var G;if(this.ariaLabel)return null;const ie=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();return this.ariaLabelledby?(ie?ie+" ":"")+this.ariaLabelledby:ie}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var G;if(this.ariaLabel)return null;const ie=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();let pe=(ie?ie+" ":"")+this._valueId;return this.ariaLabelledby&&(pe+=" "+this.ariaLabelledby),pe}_panelDoneAnimating(G){this.openedChange.emit(G)}setDescribedByIds(G){this._ariaDescribedby=G.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ae.\u0275fac=function(G){return new(G||Ae)(u.Y36(y.rL),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(b.rD),u.Y36(u.SBq),u.Y36(re.Is,8),u.Y36(M.F,8),u.Y36(M.sg,8),u.Y36(a.G_,8),u.Y36(M.a5,10),u.$8M("tabindex"),u.Y36(Te),u.Y36(h.Kd),u.Y36(ne,8))},Ae.\u0275dir=u.lG2({type:Ae,viewQuery:function(G,ie){if(1&G&&(u.Gf(le,5),u.Gf(ee,5),u.Gf(e.pI,5)),2&G){let pe;u.iGM(pe=u.CRH())&&(ie.trigger=pe.first),u.iGM(pe=u.CRH())&&(ie.panel=pe.first),u.iGM(pe=u.CRH())&&(ie._overlayDir=pe.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[u.qOj,u.TTD]}),Ae})(),De=(()=>{class Ae extends W{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(G,ie,pe){const ye=this._getItemHeight();return Math.min(Math.max(0,ye*G-ie+ye/2),pe)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(G){const ie=(0,b.CB)(G,this.options,this.optionGroups),pe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===G&&1===ie?0:(0,b.jH)((G+ie)*pe,pe,this.panel.nativeElement.scrollTop,B)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(G){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(G)}_getChangeEvent(G){return new be(this,G)}_calculateOverlayOffsetX(){const G=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ie=this._viewportRuler.getViewportSize(),pe=this._isRtl(),ye=this.multiple?56:32;let Le;if(this.multiple)Le=40;else if(this.disableOptionCentering)Le=16;else{let At=this._selectionModel.selected[0]||this.options.first;Le=At&&At.group?32:16}pe||(Le*=-1);const ot=0-(G.left+Le-(pe?ye:0)),ht=G.right+Le-ie.width+(pe?0:ye);ot>0?Le+=ot+8:ht>0&&(Le-=ht+8),this._overlayDir.offsetX=Math.round(Le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(G,ie,pe){const ye=this._getItemHeight(),Le=(ye-this._triggerRect.height)/2,ot=Math.floor(B/ye);let ht;return this.disableOptionCentering?0:(ht=0===this._scrollTop?G*ye:this._scrollTop===pe?(G-(this._getItemCount()-ot))*ye+(ye-(this._getItemCount()*ye-B)%ye):ie-ye/2,Math.round(-1*ht-Le))}_checkOverlayWithinViewport(G){const ie=this._getItemHeight(),pe=this._viewportRuler.getViewportSize(),ye=this._triggerRect.top-8,Le=pe.height-this._triggerRect.bottom-8,ot=Math.abs(this._offsetY),At=Math.min(this._getItemCount()*ie,B)-ot-this._triggerRect.height;At>Le?this._adjustPanelUp(At,Le):ot>ye?this._adjustPanelDown(ot,ye,G):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(G,ie){const pe=Math.round(G-ie);this._scrollTop-=pe,this._offsetY-=pe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(G,ie,pe){const ye=Math.round(G-ie);if(this._scrollTop+=ye,this._offsetY+=ye,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=pe)return this._scrollTop=pe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const G=this._getItemHeight(),ie=this._getItemCount(),pe=Math.min(ie*G,B),Le=ie*G-pe;let ot;ot=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ot+=(0,b.CB)(ot,this.options,this.optionGroups);const ht=pe/2;this._scrollTop=this._calculateOverlayScroll(ot,ht,Le),this._offsetY=this._calculateOverlayOffsetY(ot,ht,Le),this._checkOverlayWithinViewport(Le)}_getOriginBasedOnOption(){const G=this._getItemHeight(),ie=(G-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-ie+G/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ae.\u0275fac=function(){let xe;return function(ie){return(xe||(xe=u.n5z(Ae)))(ie||Ae)}}(),Ae.\u0275cmp=u.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(G,ie,pe){if(1&G&&(u.Suo(pe,ke,5),u.Suo(pe,b.ey,5),u.Suo(pe,b.K7,5)),2&G){let ye;u.iGM(ye=u.CRH())&&(ie.customTrigger=ye.first),u.iGM(ye=u.CRH())&&(ie.options=ye),u.iGM(ye=u.CRH())&&(ie.optionGroups=ye)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(G,ie){1&G&&u.NdJ("keydown",function(ye){return ie._handleKeydown(ye)})("focus",function(){return ie._onFocus()})("blur",function(){return ie._onBlur()}),2&G&&(u.uIk("id",ie.id)("tabindex",ie.tabIndex)("aria-controls",ie.panelOpen?ie.id+"-panel":null)("aria-expanded",ie.panelOpen)("aria-label",ie.ariaLabel||null)("aria-required",ie.required.toString())("aria-disabled",ie.disabled.toString())("aria-invalid",ie.errorState)("aria-describedby",ie._ariaDescribedby||null)("aria-activedescendant",ie._getAriaActiveDescendant()),u.ekj("mat-select-disabled",ie.disabled)("mat-select-invalid",ie.errorState)("mat-select-required",ie.required)("mat-select-empty",ie.empty)("mat-select-multiple",ie.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[u._Bn([{provide:a.Eo,useExisting:Ae},{provide:b.HF,useExisting:Ae}]),u.qOj],ngContentSelectors:g,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(G,ie){if(1&G&&(u.F$t(c),u.TgZ(0,"div",0,1),u.NdJ("click",function(){return ie.toggle()}),u.TgZ(3,"div",2),u.YNc(4,_e,2,1,"span",3),u.YNc(5,r,3,2,"span",4),u.qZA(),u.TgZ(6,"div",5),u._UZ(7,"div",6),u.qZA()(),u.YNc(8,d,4,14,"ng-template",7),u.NdJ("backdropClick",function(){return ie.close()})("attach",function(){return ie._onAttached()})("detach",function(){return ie.close()})),2&G){const pe=u.MAs(1);u.uIk("aria-owns",ie.panelOpen?ie.id+"-panel":null),u.xp6(3),u.Q6J("ngSwitch",ie.empty),u.uIk("id",ie._valueId),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1),u.xp6(3),u.Q6J("cdkConnectedOverlayPanelClass",ie._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ie._scrollStrategy)("cdkConnectedOverlayOrigin",pe)("cdkConnectedOverlayOpen",ie.panelOpen)("cdkConnectedOverlayPositions",ie._positions)("cdkConnectedOverlayMinWidth",null==ie._triggerRect?null:ie._triggerRect.width)("cdkConnectedOverlayOffsetY",ie._offsetY)}},directives:[e.xu,i.RF,i.n9,i.ED,e.pI,i.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[S.transformPanelWrap,S.transformPanel]},changeDetection:0}),Ae})(),he=(()=>{class Ae{}return Ae.\u0275fac=function(G){return new(G||Ae)},Ae.\u0275mod=u.oAB({type:Ae}),Ae.\u0275inj=u.cJS({providers:[ze],imports:[[i.ez,e.U8,b.Ng,b.BQ],y.ZD,a.lN,b.Ng,b.BQ]}),Ae})()},2638:(He,j,p)=>{"use strict";p.d(j,{JX:()=>te,Rh:()=>Z,SJ:()=>Ee,TM:()=>Te});var e=p(5303),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(1159),h=p(7579),P=p(4968),D=p(6451),T=p(9300),M=p(4004),A=p(9718),E=p(2722),k=p(1884),w=p(5698),V=p(8675),U=p(8372),Y=p(1777),ae=p(6360),X=p(5664),de=p(925),q=p(226);const re=["*"],le=["content"];function ee(ne,ze){if(1&ne){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&ne){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function _e(ne,ze){1&ne&&(u.TgZ(0,"mat-drawer-content"),u.Hsn(1,2),u.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function r(ne,ze){if(1&ne){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&ne){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function d(ne,ze){1&ne&&(u.TgZ(0,"mat-sidenav-content"),u.Hsn(1,2),u.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],g=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,Y.X$)("transform",[(0,Y.SB)("open, open-instant",(0,Y.oB)({transform:"none",visibility:"visible"})),(0,Y.SB)("void",(0,Y.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Y.eR)("void => open-instant",(0,Y.jt)("0ms")),(0,Y.eR)("void <=> open, open-instant => void",(0,Y.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new u.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function B(){return!1}}),_=new u.OlP("MAT_DRAWER_CONTAINER");let R=(()=>{class ne extends e.PQ{constructor(be,$,ke,lt,W){super(ke,lt,W),this._changeDetectorRef=be,this._container=$}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return ne.\u0275fac=function(be){return new(be||ne)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>Q)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(be,$){2&be&&u.Udp("margin-left",$._container._contentMargins.left,"px")("margin-right",$._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:ne}]),u.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(be,$){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),ne})(),H=(()=>{class ne{constructor(be,$,ke,lt,W,De,he,Ae){this._elementRef=be,this._focusTrapFactory=$,this._focusMonitor=ke,this._platform=lt,this._ngZone=W,this._interactivityChecker=De,this._doc=he,this._container=Ae,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.x,this._animationEnd=new h.x,this._animationState="void",this.openedChange=new u.vpe(!0),this._openedStream=this.openedChange.pipe((0,T.h)(xe=>xe),(0,M.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&0===xe.toState.indexOf("open")),(0,A.h)(void 0)),this._closedStream=this.openedChange.pipe((0,T.h)(xe=>!xe),(0,M.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&"void"===xe.toState),(0,A.h)(void 0)),this._destroyed=new h.x,this.onPositionChanged=new u.vpe,this._modeChanged=new h.x,this.openedChange.subscribe(xe=>{xe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,T.h)(xe=>xe.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(xe)),(0,E.R)(this._destroyed)).subscribe(xe=>this._ngZone.run(()=>{this.close(),xe.stopPropagation(),xe.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{const{fromState:G,toState:ie}=xe;(0===ie.indexOf("open")&&"void"===G||"void"===ie&&0===G.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(be){(be="end"===be?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(be),this._position=be,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(be){this._mode=be,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(be){this._disableClose=(0,a.Ig)(be)}get autoFocus(){const be=this._autoFocus;return null==be?"side"===this.mode?"dialog":"first-tabbable":be}set autoFocus(be){("true"===be||"false"===be||null==be)&&(be=(0,a.Ig)(be)),this._autoFocus=be}get opened(){return this._opened}set opened(be){this.toggle((0,a.Ig)(be))}_forceFocus(be,$){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ke=()=>{be.removeEventListener("blur",ke),be.removeEventListener("mousedown",ke),be.removeAttribute("tabindex")};be.addEventListener("blur",ke),be.addEventListener("mousedown",ke)})),be.focus($)}_focusByCssSelector(be,$){let ke=this._elementRef.nativeElement.querySelector(be);ke&&this._forceFocus(ke,$)}_takeFocus(){if(!this._focusTrap)return;const be=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then($=>{!$&&"function"==typeof this._elementRef.nativeElement.focus&&be.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(be){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,be):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const be=this._doc.activeElement;return!!be&&this._elementRef.nativeElement.contains(be)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var be;this._focusTrap&&this._focusTrap.destroy(),null===(be=this._anchor)||void 0===be||be.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(be){return this.toggle(!0,be)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(be=!this.opened,$){be&&$&&(this._openedVia=$);const ke=this._setOpen(be,!be&&this._isFocusWithinDrawer(),this._openedVia||"program");return be||(this._openedVia=null),ke}_setOpen(be,$,ke){return this._opened=be,be?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",$&&this._restoreFocus(ke)),this._updateFocusTrapState(),new Promise(lt=>{this.openedChange.pipe((0,w.q)(1)).subscribe(W=>lt(W?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(be){const $=this._elementRef.nativeElement,ke=$.parentNode;"end"===be?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ke.insertBefore(this._anchor,$)),ke.appendChild($)):this._anchor&&this._anchor.parentNode.insertBefore($,this._anchor)}}return ne.\u0275fac=function(be){return new(be||ne)(u.Y36(u.SBq),u.Y36(X.qV),u.Y36(X.tE),u.Y36(de.t4),u.Y36(u.R0b),u.Y36(X.ic),u.Y36(i.K0,8),u.Y36(_,8))},ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-drawer"]],viewQuery:function(be,$){if(1&be&&u.Gf(le,5),2&be){let ke;u.iGM(ke=u.CRH())&&($._content=ke.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(be,$){1&be&&u.WFA("@transform.start",function(lt){return $._animationStarted.next(lt)})("@transform.done",function(lt){return $._animationEnd.next(lt)}),2&be&&(u.uIk("align",null),u.d8E("@transform",$._animationState),u.ekj("mat-drawer-end","end"===$.position)("mat-drawer-over","over"===$.mode)("mat-drawer-push","push"===$.mode)("mat-drawer-side","side"===$.mode)("mat-drawer-opened",$.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,$){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ne})(),Q=(()=>{class ne{constructor(be,$,ke,lt,W,De=!1,he){this._dir=be,this._element=$,this._ngZone=ke,this._changeDetectorRef=lt,this._animationMode=he,this._drawers=new u.n_E,this.backdropClick=new u.vpe,this._destroyed=new h.x,this._doCheckSubject=new h.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.x,be&&be.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),W.change().pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=De}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(be){this._autosize=(0,a.Ig)(be)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(be){this._backdropOverride=null==be?null:(0,a.Ig)(be)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,V.O)(this._allDrawers),(0,E.R)(this._destroyed)).subscribe(be=>{this._drawers.reset(be.filter($=>!$._container||$._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,V.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(be=>{this._watchDrawerToggle(be),this._watchDrawerPosition(be),this._watchDrawerMode(be)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,U.b)(10),(0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(be=>be.open())}close(){this._drawers.forEach(be=>be.close())}updateContentMargins(){let be=0,$=0;if(this._left&&this._left.opened)if("side"==this._left.mode)be+=this._left._getWidth();else if("push"==this._left.mode){const ke=this._left._getWidth();be+=ke,$-=ke}if(this._right&&this._right.opened)if("side"==this._right.mode)$+=this._right._getWidth();else if("push"==this._right.mode){const ke=this._right._getWidth();$+=ke,be-=ke}be=be||null,$=$||null,(be!==this._contentMargins.left||$!==this._contentMargins.right)&&(this._contentMargins={left:be,right:$},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(be){be._animationStarted.pipe((0,T.h)($=>$.fromState!==$.toState),(0,E.R)(this._drawers.changes)).subscribe($=>{"open-instant"!==$.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==be.mode&&be.openedChange.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(be.opened))}_watchDrawerPosition(be){!be||be.onPositionChanged.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(be){be&&be._modeChanged.pipe((0,E.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(be){const $=this._element.nativeElement.classList,ke="mat-drawer-container-has-open";be?$.add(ke):$.remove(ke)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(be=>{"end"==be.position?this._end=be:this._start=be}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(be=>be&&!be.disableClose&&this._canHaveBackdrop(be)).forEach(be=>be._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(be){return"side"!==be.mode||!!this._backdropOverride}_isDrawerOpen(be){return null!=be&&be.opened}}return ne.\u0275fac=function(be){return new(be||ne)(u.Y36(q.Is,8),u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(e.rL),u.Y36(n),u.Y36(ae.Qb,8))},ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-drawer-container"]],contentQueries:function(be,$,ke){if(1&be&&(u.Suo(ke,R,5),u.Suo(ke,H,5)),2&be){let lt;u.iGM(lt=u.CRH())&&($._content=lt.first),u.iGM(lt=u.CRH())&&($._allDrawers=lt)}},viewQuery:function(be,$){if(1&be&&u.Gf(R,5),2&be){let ke;u.iGM(ke=u.CRH())&&($._userContent=ke.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(be,$){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",$._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[u._Bn([{provide:_,useExisting:ne}])],ngContentSelectors:t,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(be,$){1&be&&(u.F$t(x),u.YNc(0,ee,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,_e,2,0,"mat-drawer-content",1)),2&be&&(u.Q6J("ngIf",$.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!$._content))},directives:[R,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),ne})(),Z=(()=>{class ne extends R{constructor(be,$,ke,lt,W){super(be,$,ke,lt,W)}}return ne.\u0275fac=function(be){return new(be||ne)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>Te)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(be,$){2&be&&u.Udp("margin-left",$._container._contentMargins.left,"px")("margin-right",$._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:ne}]),u.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(be,$){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),ne})(),te=(()=>{class ne extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(be){this._fixedInViewport=(0,a.Ig)(be)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(be){this._fixedTopGap=(0,a.su)(be)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(be){this._fixedBottomGap=(0,a.su)(be)}}return ne.\u0275fac=function(){let ze;return function($){return(ze||(ze=u.n5z(ne)))($||ne)}}(),ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(be,$){2&be&&(u.uIk("align",null),u.Udp("top",$.fixedInViewport?$.fixedTopGap:null,"px")("bottom",$.fixedInViewport?$.fixedBottomGap:null,"px"),u.ekj("mat-drawer-end","end"===$.position)("mat-drawer-over","over"===$.mode)("mat-drawer-push","push"===$.mode)("mat-drawer-side","side"===$.mode)("mat-drawer-opened",$.opened)("mat-sidenav-fixed",$.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[u.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,$){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),ne})(),Te=(()=>{class ne extends Q{}return ne.\u0275fac=function(){let ze;return function($){return(ze||(ze=u.n5z(ne)))($||ne)}}(),ne.\u0275cmp=u.Xpm({type:ne,selectors:[["mat-sidenav-container"]],contentQueries:function(be,$,ke){if(1&be&&(u.Suo(ke,Z,5),u.Suo(ke,te,5)),2&be){let lt;u.iGM(lt=u.CRH())&&($._content=lt.first),u.iGM(lt=u.CRH())&&($._allDrawers=lt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(be,$){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",$._backdropOverride)},exportAs:["matSidenavContainer"],features:[u._Bn([{provide:_,useExisting:ne}]),u.qOj],ngContentSelectors:g,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(be,$){1&be&&(u.F$t(c),u.YNc(0,r,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,d,2,0,"mat-sidenav-content",1)),2&be&&(u.Q6J("ngIf",$.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!$._content))},directives:[Z,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),ne})(),Ee=(()=>{class ne{}return ne.\u0275fac=function(be){return new(be||ne)},ne.\u0275mod=u.oAB({type:ne}),ne.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.ZD],e.ZD,b.BQ]}),ne})()},2368:(He,j,p)=>{"use strict";p.d(j,{Rr:()=>Y,rP:()=>q});var e=p(7144),i=p(5e3),u=p(508),b=p(3191),a=p(3075),y=p(6360),h=p(5664);const P=["thumbContainer"],D=["toggleBar"],T=["input"],M=function(re){return{enterDuration:re}},A=["*"],E=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const w={provide:a.JU,useExisting:(0,i.Gpc)(()=>Y),multi:!0};class V{constructor(le,ee){this.source=le,this.checked=ee}}const U=(0,u.sb)((0,u.pj)((0,u.Kr)((0,u.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends U{constructor(ee,_e,x,t,r,d){super(ee),this._focusMonitor=_e,this._changeDetectorRef=x,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(t)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===d}get required(){return this._required}set required(ee){this._required=(0,b.Ig)(ee)}get checked(){return this._checked}set checked(ee){this._checked=(0,b.Ig)(ee),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(ee){ee.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ee){ee.stopPropagation()}writeValue(ee){this.checked=!!ee}registerOnChange(ee){this._onChange=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee,this._changeDetectorRef.markForCheck()}focus(ee,_e){_e?this._focusMonitor.focusVia(this._inputElement,_e,ee):this._inputElement.nativeElement.focus(ee)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new V(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return re.\u0275fac=function(ee){return new(ee||re)(i.Y36(i.SBq),i.Y36(h.tE),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(E),i.Y36(y.Qb,8))},re.\u0275cmp=i.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(ee,_e){if(1&ee&&(i.Gf(P,5),i.Gf(D,5),i.Gf(T,5)),2&ee){let x;i.iGM(x=i.CRH())&&(_e._thumbEl=x.first),i.iGM(x=i.CRH())&&(_e._thumbBarEl=x.first),i.iGM(x=i.CRH())&&(_e._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(ee,_e){2&ee&&(i.Ikx("id",_e.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",_e.checked)("mat-disabled",_e.disabled)("mat-slide-toggle-label-before","before"==_e.labelPosition)("_mat-animation-noopable",_e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i._Bn([w]),i.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(ee,_e){if(1&ee&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),i.NdJ("change",function(t){return _e._onChangeEvent(t)})("click",function(t){return _e._onInputClick(t)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA()()(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA()()),2&ee){const x=i.MAs(1),t=i.MAs(12);i.uIk("for",_e.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(2),i.Q6J("id",_e.inputId)("required",_e.required)("tabIndex",_e.tabIndex)("checked",_e.checked)("disabled",_e.disabled),i.uIk("name",_e.name)("aria-checked",_e.checked)("aria-label",_e.ariaLabel)("aria-labelledby",_e.ariaLabelledby)("aria-describedby",_e.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",x)("matRippleDisabled",_e.disableRipple||_e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,M,_e._noopAnimations?0:150))}},directives:[u.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),re})(),de=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({}),re})(),q=(()=>{class re{}return re.\u0275fac=function(ee){return new(ee||re)},re.\u0275mod=i.oAB({type:re}),re.\u0275inj=i.cJS({imports:[[de,u.si,u.BQ,e.Q8],de,u.BQ]}),re})()},7261:(He,j,p)=>{"use strict";p.d(j,{Ve:()=>le,ZX:()=>re,ux:()=>x});var e=p(9776),i=p(7429),u=p(9808),b=p(5e3),a=p(508),y=p(7423),h=p(7579),P=p(5698),D=p(2722),T=p(1777),M=p(925),A=p(5113),E=p(5664);function k(t,r){if(1&t){const d=b.EpF();b.TgZ(0,"div",2)(1,"button",3),b.NdJ("click",function(){return b.CHM(d),b.oxw().action()}),b._uU(2),b.qZA()()}if(2&t){const d=b.oxw();b.xp6(2),b.Oqu(d.data.action)}}function w(t,r){}const V=new b.OlP("MatSnackBarData");class U{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Y=Math.pow(2,31)-1;class ae{constructor(r,d){this._overlayRef=d,this._afterDismissed=new h.x,this._afterOpened=new h.x,this._onAction=new h.x,this._dismissedByAction=!1,this.containerInstance=r,r._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(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,Y))}_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}}let X=(()=>{class t{constructor(d,c){this.snackBarRef=d,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(d){return new(d||t)(b.Y36(ae),b.Y36(V))},t.\u0275cmp=b.Xpm({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(d,c){1&d&&(b.TgZ(0,"span",0),b._uU(1),b.qZA(),b.YNc(2,k,3,1,"div",1)),2&d&&(b.xp6(1),b.Oqu(c.data.message),b.xp6(1),b.Q6J("ngIf",c.hasAction))},directives:[y.lW,u.O5],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const de={snackBarState:(0,T.X$)("state",[(0,T.SB)("void, hidden",(0,T.oB)({transform:"scale(0.8)",opacity:0})),(0,T.SB)("visible",(0,T.oB)({transform:"scale(1)",opacity:1})),(0,T.eR)("* => visible",(0,T.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void, * => hidden",(0,T.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,T.oB)({opacity:0})))])};let q=(()=>{class t extends i.en{constructor(d,c,g,S,I){super(),this._ngZone=d,this._elementRef=c,this._changeDetectorRef=g,this._platform=S,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new h.x,this._onExit=new h.x,this._onEnter=new h.x,this._animationState="void",this.attachDomPortal=C=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(C)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(d){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(d)}attachTemplatePortal(d){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(d)}onAnimationEnd(d){const{fromState:c,toState:g}=d;if(("void"===g&&"void"!==c||"hidden"===g)&&this._completeExit(),"visible"===g){const S=this._onEnter;this._ngZone.run(()=>{S.next(),S.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const d=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(g=>d.classList.add(g)):d.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&d.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&d.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const d=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(d&&c){let g=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&d.contains(document.activeElement)&&(g=document.activeElement),d.removeAttribute("aria-hidden"),c.appendChild(d),null==g||g.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(d){return new(d||t)(b.Y36(b.R0b),b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(M.t4),b.Y36(U))},t.\u0275cmp=b.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(d,c){if(1&d&&b.Gf(i.Pl,7),2&d){let g;b.iGM(g=b.CRH())&&(c._portalOutlet=g.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(d,c){1&d&&b.WFA("@state.done",function(S){return c.onAnimationEnd(S)}),2&d&&b.d8E("@state",c._animationState)},features:[b.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(d,c){1&d&&(b.TgZ(0,"div",0),b.YNc(1,w,0,0,"ng-template",1),b.qZA(),b._UZ(2,"div")),2&d&&(b.xp6(2),b.uIk("aria-live",c._live)("role",c._role))},directives:[i.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[de.snackBarState]}}),t})(),re=(()=>{class t{}return t.\u0275fac=function(d){return new(d||t)},t.\u0275mod=b.oAB({type:t}),t.\u0275inj=b.cJS({imports:[[e.U8,i.eL,u.ez,y.ot,a.BQ],a.BQ]}),t})();const le=new b.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ee(){return new U}});let _e=(()=>{class t{constructor(d,c,g,S,I,C){this._overlay=d,this._live=c,this._injector=g,this._breakpointObserver=S,this._parentSnackBar=I,this._defaultConfig=C,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const d=this._parentSnackBar;return d?d._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(d){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=d:this._snackBarRefAtThisLevel=d}openFromComponent(d,c){return this._attach(d,c)}openFromTemplate(d,c){return this._attach(d,c)}open(d,c="",g){const S=Object.assign(Object.assign({},this._defaultConfig),g);return S.data={message:d,action:c},S.announcementMessage===d&&(S.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,S)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(d,c){const S=b.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:U,useValue:c}]}),I=new i.C5(this.snackBarContainerComponent,c.viewContainerRef,S),C=d.attach(I);return C.instance.snackBarConfig=c,C.instance}_attach(d,c){const g=Object.assign(Object.assign(Object.assign({},new U),this._defaultConfig),c),S=this._createOverlay(g),I=this._attachSnackBarContainer(S,g),C=new ae(I,S);if(d instanceof b.Rgc){const n=new i.UE(d,null,{$implicit:g.data,snackBarRef:C});C.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(g,C),_=new i.C5(d,void 0,n),B=I.attachComponentPortal(_);C.instance=B.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,D.R)(S.detachments())).subscribe(n=>{S.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),g.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(g.announcementMessage,g.politeness)}),this._animateSnackBar(C,g),this._openedSnackBarRef=C,this._openedSnackBarRef}_animateSnackBar(d,c){d.afterDismissed().subscribe(()=>{this._openedSnackBarRef==d&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{d.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):d.containerInstance.enter(),c.duration&&c.duration>0&&d.afterOpened().subscribe(()=>d._dismissAfter(c.duration))}_createOverlay(d){const c=new e.X_;c.direction=d.direction;let g=this._overlay.position().global();const S="rtl"===d.direction,I="left"===d.horizontalPosition||"start"===d.horizontalPosition&&!S||"end"===d.horizontalPosition&&S,C=!I&&"center"!==d.horizontalPosition;return I?g.left("0"):C?g.right("0"):g.centerHorizontally(),"top"===d.verticalPosition?g.top("0"):g.bottom("0"),c.positionStrategy=g,this._overlay.create(c)}_createInjector(d,c){return b.zs3.create({parent:d&&d.viewContainerRef&&d.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:c},{provide:V,useValue:d.data}]})}}return t.\u0275fac=function(d){return new(d||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(le))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends _e{constructor(d,c,g,S,I,C){super(d,c,g,S,I,C),this.simpleSnackBarComponent=X,this.snackBarContainerComponent=q,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(d){return new(d||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(le))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac,providedIn:re}),t})()},4847:(He,j,p)=>{"use strict";p.d(j,{JX:()=>t,YE:()=>le,nU:()=>x});var e=p(5e3),i=p(3191),u=p(1159),b=p(508),a=p(7579),y=p(6451),h=p(1777),P=p(5664),D=p(9808);const T=["mat-sort-header",""];function M(r,d){if(1&r){const c=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(c),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(c),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&r){const c=e.oxw();e.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",c._getArrowDirectionState())}}const A=["*"],E=b.mZ.ENTERING+" "+b.yN.STANDARD_CURVE,k={indicator:(0,h.X$)("indicator",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"translateY(0px)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"translateY(10px)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(E))]),leftPointer:(0,h.X$)("leftPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(E))]),rightPointer:(0,h.X$)("rightPointer",[(0,h.SB)("active-asc, asc",(0,h.oB)({transform:"rotate(45deg)"})),(0,h.SB)("active-desc, desc",(0,h.oB)({transform:"rotate(-45deg)"})),(0,h.eR)("active-asc <=> active-desc",(0,h.jt)(E))]),arrowOpacity:(0,h.X$)("arrowOpacity",[(0,h.SB)("desc-to-active, asc-to-active, active",(0,h.oB)({opacity:1})),(0,h.SB)("desc-to-hint, asc-to-hint, hint",(0,h.oB)({opacity:.54})),(0,h.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,h.oB)({opacity:0})),(0,h.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,h.jt)("0ms")),(0,h.eR)("* <=> *",(0,h.jt)(E))]),arrowPosition:(0,h.X$)("arrowPosition",[(0,h.eR)("* => desc-to-hint, * => desc-to-active",(0,h.jt)(E,(0,h.F4)([(0,h.oB)({transform:"translateY(-25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-desc, * => active-to-desc",(0,h.jt)(E,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(25%)"})]))),(0,h.eR)("* => asc-to-hint, * => asc-to-active",(0,h.jt)(E,(0,h.F4)([(0,h.oB)({transform:"translateY(25%)"}),(0,h.oB)({transform:"translateY(0)"})]))),(0,h.eR)("* => hint-to-asc, * => active-to-asc",(0,h.jt)(E,(0,h.F4)([(0,h.oB)({transform:"translateY(0)"}),(0,h.oB)({transform:"translateY(-25%)"})]))),(0,h.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,h.oB)({transform:"translateY(0)"})),(0,h.SB)("hint-to-desc, active-to-desc, desc",(0,h.oB)({transform:"translateY(-25%)"})),(0,h.SB)("hint-to-asc, active-to-asc, asc",(0,h.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,h.X$)("allowChildren",[(0,h.eR)("* <=> *",[(0,h.IO)("@*",(0,h.pV)(),{optional:!0})])])};let ae=(()=>{class r{constructor(){this.changes=new a.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const de={provide:ae,deps:[[new e.FiY,new e.tp0,ae]],useFactory:function X(r){return r||new ae}},q=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,b.dB)((0,b.Id)(class{}));let le=(()=>{class r extends re{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var g,S,I;if(!c)return"";const C=null!==(S=null!==(g=null==c?void 0:c.disableClear)&&void 0!==g?g:this.disableClear)&&void 0!==S?S:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function ee(r,d){let c=["asc","desc"];return"desc"==r&&c.reverse(),d||c.push(""),c}(c.start||this.start,C),_=n.indexOf(this.direction)+1;return _>=n.length&&(_=0),n[_]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(q,8))},r.\u0275dir=e.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),r})();const _e=(0,b.Id)(class{});let x=(()=>{class r extends _e{constructor(c,g,S,I,C,n,_){super(),this._intl=c,this._changeDetectorRef=g,this._sort=S,this._columnDef=I,this._focusMonitor=C,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const g=!!c;g!==this._showIndicatorHint&&(this._setIndicatorHintVisible(g),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(c){!this._isDisabled()&&(c.keyCode===u.L_||c.keyCode===u.K5)&&(c.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const c=this._viewState.fromState;return(c?`${c}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(c){var g,S;this._sortButton&&(null===(g=this._ariaDescriber)||void 0===g||g.removeDescription(this._sortButton,this._sortActionDescription),null===(S=this._ariaDescriber)||void 0===S||S.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,y.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(ae),e.Y36(e.sBO),e.Y36(le,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(P.tE),e.Y36(e.SBq),e.Y36(P.$s,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,g){1&c&&e.NdJ("click",function(){return g._handleClick()})("keydown",function(I){return g._handleKeydown(I)})("mouseenter",function(){return g._setIndicatorHintVisible(!0)})("mouseleave",function(){return g._setIndicatorHintVisible(!1)}),2&c&&(e.uIk("aria-sort",g._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",g._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:T,ngContentSelectors:A,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(c,g){1&c&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,M,6,6,"div",2),e.qZA()),2&c&&(e.ekj("mat-sort-header-sorted",g._isSorted())("mat-sort-header-position-before","before"==g.arrowPosition),e.uIk("tabindex",g._isDisabled()?null:0)("role",g._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",g._renderArrow()))},directives:[D.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),t=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[de],imports:[[D.ez,b.BQ]]}),r})()},5615:(He,j,p)=>{"use strict";p.d(j,{C0:()=>be,Ic:()=>De,T5:()=>Ae,VY:()=>R,Vq:()=>W,fd:()=>he,z9:()=>ne});var e=p(7429),i=p(1555),u=p(9808),b=p(5e3),a=p(7423),y=p(508),h=p(5245),P=p(7579),D=p(727),T=p(5664),M=p(3900),A=p(4004),E=p(8675),k=p(2722),w=p(1884),V=p(1777),U=p(226);function Y(xe,G){if(1&xe&&b.GkF(0,8),2&xe){const ie=b.oxw();b.Q6J("ngTemplateOutlet",ie.iconOverrides[ie.state])("ngTemplateOutletContext",ie._getIconContext())}}function ae(xe,G){if(1&xe&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&xe){const ie=b.oxw(2);b.xp6(1),b.Oqu(ie._getDefaultTextForState(ie.state))}}function X(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ie=b.oxw(2);b.xp6(1),b.Oqu(ie._intl.completedLabel)}}function de(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ie=b.oxw(2);b.xp6(1),b.Oqu(ie._intl.editableLabel)}}function q(xe,G){if(1&xe&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&xe){const ie=b.oxw(2);b.xp6(1),b.Oqu(ie._getDefaultTextForState(ie.state))}}function re(xe,G){if(1&xe&&(b.ynx(0,9),b.YNc(1,ae,2,1,"span",10),b.YNc(2,X,2,1,"span",11),b.YNc(3,de,2,1,"span",11),b.YNc(4,q,2,1,"mat-icon",12),b.BQk()),2&xe){const ie=b.oxw();b.Q6J("ngSwitch",ie.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===ie.state),b.xp6(1),b.Q6J("ngIf","edit"===ie.state)}}function le(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&xe){const ie=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",ie._templateLabel().template)}}function ee(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&xe){const ie=b.oxw();b.xp6(1),b.Oqu(ie.label)}}function _e(xe,G){if(1&xe&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&xe){const ie=b.oxw();b.xp6(1),b.Oqu(ie._intl.optionalLabel)}}function x(xe,G){if(1&xe&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&xe){const ie=b.oxw();b.xp6(1),b.Oqu(ie.errorMessage)}}function t(xe,G){}function r(xe,G){if(1&xe&&(b.Hsn(0),b.YNc(1,t,0,0,"ng-template",0)),2&xe){const ie=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",ie._portal)}}const d=["*"];function c(xe,G){1&xe&&b._UZ(0,"div",9)}const g=function(xe,G){return{step:xe,i:G}};function S(xe,G){if(1&xe&&(b.ynx(0),b.GkF(1,7),b.YNc(2,c,1,0,"div",8),b.BQk()),2&xe){const ie=G.$implicit,pe=G.index,ye=G.last;b.oxw(2);const Le=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",b.WLB(3,g,ie,pe)),b.xp6(1),b.Q6J("ngIf",!ye)}}function I(xe,G){if(1&xe){const ie=b.EpF();b.TgZ(0,"div",10),b.NdJ("@horizontalStepTransition.done",function(ye){return b.CHM(ie),b.oxw(2)._animationDone.next(ye)}),b.GkF(1,11),b.qZA()}if(2&xe){const ie=G.$implicit,pe=G.index,ye=b.oxw(2);b.Q6J("@horizontalStepTransition",ye._getAnimationDirection(pe))("id",ye._getStepContentId(pe)),b.uIk("aria-labelledby",ye._getStepLabelId(pe))("aria-expanded",ye.selectedIndex===pe),b.xp6(1),b.Q6J("ngTemplateOutlet",ie.content)}}function C(xe,G){if(1&xe&&(b.ynx(0),b.TgZ(1,"div",3),b.YNc(2,S,3,6,"ng-container",4),b.qZA(),b.TgZ(3,"div",5),b.YNc(4,I,2,5,"div",6),b.qZA(),b.BQk()),2&xe){const ie=b.oxw();b.xp6(2),b.Q6J("ngForOf",ie.steps),b.xp6(2),b.Q6J("ngForOf",ie.steps)}}function n(xe,G){if(1&xe){const ie=b.EpF();b.TgZ(0,"div",13),b.GkF(1,7),b.TgZ(2,"div",14)(3,"div",15),b.NdJ("@verticalStepTransition.done",function(ye){return b.CHM(ie),b.oxw(2)._animationDone.next(ye)}),b.TgZ(4,"div",16),b.GkF(5,11),b.qZA()()()()}if(2&xe){const ie=G.$implicit,pe=G.index,ye=G.last,Le=b.oxw(2),ot=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",ot)("ngTemplateOutletContext",b.WLB(9,g,ie,pe)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!ye),b.xp6(1),b.Q6J("@verticalStepTransition",Le._getAnimationDirection(pe))("id",Le._getStepContentId(pe)),b.uIk("aria-labelledby",Le._getStepLabelId(pe))("aria-expanded",Le.selectedIndex===pe),b.xp6(2),b.Q6J("ngTemplateOutlet",ie.content)}}function _(xe,G){if(1&xe&&(b.ynx(0),b.YNc(1,n,6,12,"div",12),b.BQk()),2&xe){const ie=b.oxw();b.xp6(1),b.Q6J("ngForOf",ie.steps)}}function B(xe,G){if(1&xe){const ie=b.EpF();b.TgZ(0,"mat-step-header",17),b.NdJ("click",function(){return b.CHM(ie).step.select()})("keydown",function(ye){return b.CHM(ie),b.oxw()._onKeydown(ye)}),b.qZA()}if(2&xe){const ie=G.step,pe=G.i,ye=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===ye.orientation)("mat-vertical-stepper-header","vertical"===ye.orientation),b.Q6J("tabIndex",ye._getFocusIndex()===pe?0:-1)("id",ye._getStepLabelId(pe))("index",pe)("state",ye._getIndicatorType(pe,ie.state))("label",ie.stepLabel||ie.label)("selected",ye.selectedIndex===pe)("active",ye._stepIsNavigable(pe,ie))("optional",ie.optional)("errorMessage",ie.errorMessage)("iconOverrides",ye._iconOverrides)("disableRipple",ye.disableRipple||!ye._stepIsNavigable(pe,ie))("color",ie.color||ye.color),b.uIk("aria-posinset",pe+1)("aria-setsize",ye.steps.length)("aria-controls",ye._getStepContentId(pe))("aria-selected",ye.selectedIndex==pe)("aria-label",ie.ariaLabel||null)("aria-labelledby",!ie.ariaLabel&&ie.ariaLabelledby?ie.ariaLabelledby:null)("aria-disabled",!ye._stepIsNavigable(pe,ie)||null)}}let R=(()=>{class xe extends i.u6{}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["","matStepLabel",""]],features:[b.qOj]}),xe})(),H=(()=>{class xe{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xe.\u0275fac=function(ie){return new(ie||xe)},xe.\u0275prov=b.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const Z={provide:H,deps:[[new b.FiY,new b.tp0,H]],useFactory:function Q(xe){return xe||new H}},te=(0,y.pj)(class extends i.KL{constructor(G){super(G)}},"primary");let Te=(()=>{class xe extends te{constructor(ie,pe,ye,Le){super(ye),this._intl=ie,this._focusMonitor=pe,this._intlSubscription=ie.changes.subscribe(()=>Le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ie,pe){ie?this._focusMonitor.focusVia(this._elementRef,ie,pe):this._elementRef.nativeElement.focus(pe)}_stringLabel(){return this.label instanceof R?null:this.label}_templateLabel(){return this.label instanceof R?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ie){return"number"==ie?`${this.index+1}`:"edit"==ie?"create":"error"==ie?"warning":ie}}return xe.\u0275fac=function(ie){return new(ie||xe)(b.Y36(H),b.Y36(T.tE),b.Y36(b.SBq),b.Y36(b.sBO))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ie,pe){1&ie&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,Y,1,2,"ng-container",2),b.YNc(4,re,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,le,2,1,"div",5),b.YNc(7,ee,2,1,"div",5),b.YNc(8,_e,2,1,"div",6),b.YNc(9,x,2,1,"div",7),b.qZA()),2&ie&&(b.Q6J("matRippleTrigger",pe._getHostElement())("matRippleDisabled",pe.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",pe.state," mat-step-icon"),b.ekj("mat-step-icon-selected",pe.selected),b.xp6(1),b.Q6J("ngSwitch",!(!pe.iconOverrides||!pe.iconOverrides[pe.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",pe.active)("mat-step-label-selected",pe.selected)("mat-step-label-error","error"==pe.state),b.xp6(1),b.Q6J("ngIf",pe._templateLabel()),b.xp6(1),b.Q6J("ngIf",pe._stringLabel()),b.xp6(1),b.Q6J("ngIf",pe.optional&&"error"!=pe.state),b.xp6(1),b.Q6J("ngIf","error"==pe.state))},directives:[h.Hw,y.wG,u.RF,u.n9,u.tP,u.ED,u.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),xe})();const Ee={horizontalStepTransition:(0,V.X$)("horizontalStepTransition",[(0,V.SB)("previous",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({transform:"none",visibility:"inherit"})),(0,V.SB)("next",(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,V.eR)("* => *",(0,V.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,V.X$)("verticalStepTransition",[(0,V.SB)("previous",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("next",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({height:"*",visibility:"inherit"})),(0,V.eR)("* <=> current",(0,V.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ne=(()=>{class xe{constructor(ie){this.templateRef=ie}}return xe.\u0275fac=function(ie){return new(ie||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xe})(),ze=(()=>{class xe{constructor(ie){this._template=ie}}return xe.\u0275fac=function(ie){return new(ie||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepContent",""]]}),xe})(),be=(()=>{class xe extends i.be{constructor(ie,pe,ye,Le){super(ie,Le),this._errorStateMatcher=pe,this._viewContainerRef=ye,this._isSelected=D.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,M.w)(()=>this._stepper.selectionChange.pipe((0,A.U)(ie=>ie.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe(ie=>{ie&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ie,pe){return this._errorStateMatcher.isErrorState(ie,pe)||!!(ie&&ie.invalid&&this.interacted)}}return xe.\u0275fac=function(ie){return new(ie||xe)(b.Y36((0,b.Gpc)(()=>W)),b.Y36(y.rD,4),b.Y36(b.s_b),b.Y36(i.gx,8))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-step"]],contentQueries:function(ie,pe,ye){if(1&ie&&(b.Suo(ye,R,5),b.Suo(ye,ze,5)),2&ie){let Le;b.iGM(Le=b.CRH())&&(pe.stepLabel=Le.first),b.iGM(Le=b.CRH())&&(pe._lazyContent=Le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:y.rD,useExisting:xe},{provide:i.be,useExisting:xe}]),b.qOj],ngContentSelectors:d,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ie,pe){1&ie&&(b.F$t(),b.YNc(0,r,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),xe})(),$=(()=>{class xe extends i.B8{}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,features:[b.qOj]}),xe})(),ke=(()=>{class xe extends ${}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-horizontal-stepper"]],features:[b.qOj]}),xe})(),lt=(()=>{class xe extends ${}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-vertical-stepper"]],features:[b.qOj]}),xe})(),W=(()=>{class xe extends i.B8{constructor(ie,pe,ye,Le){super(ie,pe,ye,Le),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new P.x;const ot=ye.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ot?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ie,templateRef:pe})=>this._iconOverrides[ie]=pe),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)((ie,pe)=>ie.fromState===pe.fromState&&ie.toState===pe.toState),(0,k.R)(this._destroyed)).subscribe(ie=>{"current"===ie.toState&&this.animationDone.emit()})}_stepIsNavigable(ie,pe){return pe.completed||this.selectedIndex===ie||!this.linear}}return xe.\u0275fac=function(ie){return new(ie||xe)(b.Y36(U.Is,8),b.Y36(b.sBO),b.Y36(b.SBq),b.Y36(u.K0))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ie,pe,ye){if(1&ie&&(b.Suo(ye,be,5),b.Suo(ye,ne,5)),2&ie){let Le;b.iGM(Le=b.CRH())&&(pe._steps=Le),b.iGM(Le=b.CRH())&&(pe._icons=Le)}},viewQuery:function(ie,pe){if(1&ie&&b.Gf(Te,5),2&ie){let ye;b.iGM(ye=b.CRH())&&(pe._stepHeader=ye)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(ie,pe){2&ie&&(b.uIk("aria-orientation",pe.orientation),b.ekj("mat-stepper-horizontal","horizontal"===pe.orientation)("mat-stepper-vertical","vertical"===pe.orientation)("mat-stepper-label-position-end","horizontal"===pe.orientation&&"end"==pe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===pe.orientation&&"bottom"==pe.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:i.B8,useExisting:xe},{provide:ke,useExisting:xe},{provide:lt,useExisting:xe}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ie,pe){1&ie&&(b.ynx(0,0),b.YNc(1,C,5,2,"ng-container",1),b.YNc(2,_,2,1,"ng-container",1),b.BQk(),b.YNc(3,B,1,23,"ng-template",null,2,b.W1O)),2&ie&&(b.Q6J("ngSwitch",pe.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},directives:[Te,u.RF,u.n9,u.sg,u.tP,u.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Ee.horizontalStepTransition,Ee.verticalStepTransition]},changeDetection:0}),xe})(),De=(()=>{class xe extends i.st{}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ie,pe){2&ie&&b.Ikx("type",pe.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),he=(()=>{class xe extends i.po{}return xe.\u0275fac=function(){let G;return function(pe){return(G||(G=b.n5z(xe)))(pe||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ie,pe){2&ie&&b.Ikx("type",pe.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),Ae=(()=>{class xe{}return xe.\u0275fac=function(ie){return new(ie||xe)},xe.\u0275mod=b.oAB({type:xe}),xe.\u0275inj=b.cJS({providers:[Z,y.rD],imports:[[y.BQ,u.ez,e.eL,a.ot,i.U5,h.Ps,y.si],y.BQ]}),xe})()},2075:(He,j,p)=>{"use strict";p.d(j,{ev:()=>Fe,Dz:()=>Rt,w1:()=>Je,yh:()=>we,mD:()=>Re,Q2:()=>Xt,Ke:()=>at,ge:()=>Ke,fO:()=>et,XQ:()=>mi,as:()=>rt,Gk:()=>qt,nj:()=>yt,BZ:()=>ft,by:()=>Wi,p0:()=>qi});var e=p(5e3),i=p(3191),u=p(449),b=p(9808),a=p(7579),y=p(457),h=p(1135),P=p(5191),D=p(9646),T=p(2722),M=p(5698),A=p(226),E=p(925),k=p(5303);const w=[[["caption"]],[["colgroup"],["col"]]],V=["caption","colgroup, col"];function ae(ct){return class extends ct{constructor(...Ft){super(...Ft),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ft){const pt=this._sticky;this._sticky=(0,i.Ig)(Ft),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Ft=this._hasStickyChanged;return this._hasStickyChanged=!1,Ft}resetStickyChanged(){this._hasStickyChanged=!1}}}const X=new e.OlP("CDK_TABLE");let q=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellDef",""]]}),ct})(),re=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderCellDef",""]]}),ct})(),le=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterCellDef",""]]}),ct})();class ee{}const _e=ae(ee);let x=(()=>{class ct extends _e{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const it=this._stickyEnd;this._stickyEnd=(0,i.Ig)(pt),this._hasStickyChanged=it!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(X,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,q,5),e.Suo(It,re,5),e.Suo(It,le,5)),2&pt){let ue;e.iGM(ue=e.CRH())&&(it.cell=ue.first),e.iGM(ue=e.CRH())&&(it.headerCell=ue.first),e.iGM(ue=e.CRH())&&(it.footerCell=ue.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})();class t{constructor(Ft,pt){pt.nativeElement.classList.add(...Ft._columnCssClassName)}}let r=(()=>{class ct extends t{constructor(pt,it){super(pt,it)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),ct})(),d=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const ue=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),ct})(),c=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const ue=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),ct})();class g{constructor(){this.tasks=[],this.endTasks=[]}}const S=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class ct{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new a.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new g,this._getScheduleObservable().pipe((0,T.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new g;for(const it of pt.tasks)it();for(const it of pt.endTasks)it()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,y.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,M.q)(1))}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.LFG(e.R0b))},ct.\u0275prov=e.Yz7({token:ct,factory:ct.\u0275fac}),ct})(),n=(()=>{class ct{constructor(pt,it){this.template=pt,this._differs=it}ngOnChanges(pt){if(!this._columnsDiffer){const it=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(it).create(),this._columnsDiffer.diff(it)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof R?pt.headerCell.template:this instanceof Z?pt.footerCell.template:pt.cell.template}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},ct.\u0275dir=e.lG2({type:ct,features:[e.TTD]}),ct})();class _ extends n{}const B=ae(_);let R=(()=>{class ct extends B{constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(X,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})();class H extends n{}const Q=ae(H);let Z=(()=>{class ct extends Q{constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(X,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})(),te=(()=>{class ct extends n{constructor(pt,it,It){super(pt,it),this._table=It}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(X,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),ct})(),Te=(()=>{class ct{constructor(pt){this._viewContainer=pt,ct.mostRecentCellOutlet=this}ngOnDestroy(){ct.mostRecentCellOutlet===this&&(ct.mostRecentCellOutlet=null)}}return ct.mostRecentCellOutlet=null,ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellOutlet",""]]}),ct})(),Ee=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),ne=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),ze=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),be=(()=>{class ct{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["ng-template","cdkNoDataRow",""]]}),ct})();const $=["top","bottom","left","right"];class ke{constructor(Ft,pt,it,It,ue=!0,$e=!0,bt){this._isNativeHtmlTable=Ft,this._stickCellCss=pt,this.direction=it,this._coalescedStyleScheduler=It,this._isBrowser=ue,this._needsPositionStickyOnElement=$e,this._positionListener=bt,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Ft,pt){const it=[];for(const It of Ft)if(It.nodeType===It.ELEMENT_NODE){it.push(It);for(let ue=0;ue{for(const It of it)this._removeStickyStyle(It,pt)})}updateStickyColumns(Ft,pt,it,It=!0){if(!Ft.length||!this._isBrowser||!pt.some(Yi=>Yi)&&!it.some(Yi=>Yi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ue=Ft[0],$e=ue.children.length,bt=this._getCellWidths(ue,It),Vt=this._getStickyStartColumnPositions(bt,pt),yi=this._getStickyEndColumnPositions(bt,it),Li=pt.lastIndexOf(!0),Ji=it.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Yi="rtl"===this.direction,an=Yi?"right":"left",pn=Yi?"left":"right";for(const Zt of Ft)for(let bi=0;bi<$e;bi++){const qe=Zt.children[bi];pt[bi]&&this._addStickyStyle(qe,an,Vt[bi],bi===Li),it[bi]&&this._addStickyStyle(qe,pn,yi[bi],bi===Ji)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Li?[]:bt.slice(0,Li+1).map((Zt,bi)=>pt[bi]?Zt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ji?[]:bt.slice(Ji).map((Zt,bi)=>it[bi+Ji]?Zt:null).reverse()}))})}stickRows(Ft,pt,it){if(!this._isBrowser)return;const It="bottom"===it?Ft.slice().reverse():Ft,ue="bottom"===it?pt.slice().reverse():pt,$e=[],bt=[],Vt=[];for(let Li=0,Ji=0;Li{var Li,Ji;for(let Yi=0;Yi{pt.some(It=>!It)?this._removeStickyStyle(it,["bottom"]):this._addStickyStyle(it,"bottom",0,!1)})}_removeStickyStyle(Ft,pt){for(const It of pt)Ft.style[It]="",Ft.classList.remove(this._borderCellCss[It]);$.some(It=>-1===pt.indexOf(It)&&Ft.style[It])?Ft.style.zIndex=this._getCalculatedZIndex(Ft):(Ft.style.zIndex="",this._needsPositionStickyOnElement&&(Ft.style.position=""),Ft.classList.remove(this._stickCellCss))}_addStickyStyle(Ft,pt,it,It){Ft.classList.add(this._stickCellCss),It&&Ft.classList.add(this._borderCellCss[pt]),Ft.style[pt]=`${it}px`,Ft.style.zIndex=this._getCalculatedZIndex(Ft),this._needsPositionStickyOnElement&&(Ft.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ft){const pt={top:100,bottom:10,left:1,right:1};let it=0;for(const It of $)Ft.style[It]&&(it+=pt[It]);return it?`${it}`:""}_getCellWidths(Ft,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const it=[],It=Ft.children;for(let ue=0;ue0;ue--)pt[ue]&&(it[ue]=It,It+=Ft[ue]);return it}}const pe=new e.OlP("CDK_SPL");let Le=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","rowOutlet",""]]}),ct})(),ot=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","headerRowOutlet",""]]}),ct})(),ht=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","footerRowOutlet",""]]}),ct})(),At=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","noDataRowOutlet",""]]}),ct})(),Gt=(()=>{class ct{constructor(pt,it,It,ue,$e,bt,Vt,yi,Li,Ji,Yi,an){this._differs=pt,this._changeDetectorRef=it,this._elementRef=It,this._dir=$e,this._platform=Vt,this._viewRepeater=yi,this._coalescedStyleScheduler=Li,this._viewportRuler=Ji,this._stickyPositioningListener=Yi,this._ngZone=an,this._onDestroy=new a.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new h.X({start:0,end:Number.MAX_VALUE}),ue||this._elementRef.nativeElement.setAttribute("role","table"),this._document=bt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,i.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,i.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,it)=>this.trackBy?this.trackBy(it.dataIndex,it.data):it),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const it=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||it,this._forceRecalculateCellWidths=it,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const it=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,it,(It,ue,$e)=>this._getEmbeddedViewArgs(It.item,$e),It=>It.item.data,It=>{1===It.operation&&It.context&&this._renderCellTemplateForItem(It.record.item.rowDef,It.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(It=>{it.get(It.currentIndex).context.$implicit=It.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,M.q)(1),(0,T.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),It=this._elementRef.nativeElement.querySelector("thead");It&&(It.style.display=pt.length?"":"none");const ue=this._headerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,ue,"top"),this._headerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),It=this._elementRef.nativeElement.querySelector("tfoot");It&&(It.style.display=pt.length?"":"none");const ue=this._footerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,ue,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ue),this._footerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),it=this._getRenderedRows(this._rowOutlet),It=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...it,...It],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach((ue,$e)=>{this._addStickyColumnStyles([ue],this._headerRowDefs[$e])}),this._rowDefs.forEach(ue=>{const $e=[];for(let bt=0;bt{this._addStickyColumnStyles([ue],this._footerRowDefs[$e])}),Array.from(this._columnDefsByName.values()).forEach(ue=>ue.resetStickyChanged())}_getAllRenderRows(){const pt=[],it=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let It=0;It{const bt=It&&It.has($e)?It.get($e):[];if(bt.length){const Vt=bt.shift();return Vt.dataIndex=it,Vt}return{data:pt,rowDef:$e,dataIndex:it}})}_cacheColumnDefs(){this._columnDefsByName.clear(),di(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(it=>{this._columnDefsByName.has(it.name),this._columnDefsByName.set(it.name,it)})}_cacheRowDefs(){this._headerRowDefs=di(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=di(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=di(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(it=>!it.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=($e,bt)=>$e||!!bt.getColumnsDiff(),it=this._rowDefs.reduce(pt,!1);it&&this._forceRenderDataRows();const It=this._headerRowDefs.reduce(pt,!1);It&&this._forceRenderHeaderRows();const ue=this._footerRowDefs.reduce(pt,!1);return ue&&this._forceRenderFooterRows(),it||It||ue}_switchDataSource(pt){this._data=[],(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,u.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,P.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,D.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._data=it||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,it)=>this._renderRow(this._headerRowOutlet,pt,it)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,it)=>this._renderRow(this._footerRowOutlet,pt,it)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,it){const It=Array.from(it.columns||[]).map(bt=>this._columnDefsByName.get(bt)),ue=It.map(bt=>bt.sticky),$e=It.map(bt=>bt.stickyEnd);this._stickyStyler.updateStickyColumns(pt,ue,$e,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const it=[];for(let It=0;It!ue.when||ue.when(it,pt));else{let ue=this._rowDefs.find($e=>$e.when&&$e.when(it,pt))||this._defaultRowDef;ue&&It.push(ue)}return It}_getEmbeddedViewArgs(pt,it){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:it}}_renderRow(pt,it,It,ue={}){const $e=pt.viewContainer.createEmbeddedView(it.template,ue,It);return this._renderCellTemplateForItem(it,ue),$e}_renderCellTemplateForItem(pt,it){for(let It of this._getCellTemplates(pt))Te.mostRecentCellOutlet&&Te.mostRecentCellOutlet._viewContainer.createEmbeddedView(It,it);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let it=0,It=pt.length;it{const It=this._columnDefsByName.get(it);return pt.extractCellTemplate(It)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),it=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const It of it){const ue=this._document.createElement(It.tag);ue.setAttribute("role","rowgroup");for(const $e of It.outlets)ue.appendChild($e.elementRef.nativeElement);pt.appendChild(ue)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(it,It)=>it||It.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ke(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,D.of)()).pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._stickyStyler.direction=it,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(it=>!it._table||it._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const it=0===this._rowOutlet.viewContainer.length;if(it===this._isShowingNoDataRow)return;const It=this._noDataRowOutlet.viewContainer;if(it){const ue=It.createEmbeddedView(pt.templateRef),$e=ue.rootNodes[0];1===ue.rootNodes.length&&(null==$e?void 0:$e.nodeType)===this._document.ELEMENT_NODE&&($e.setAttribute("role","row"),$e.classList.add(pt._contentClassName))}else It.clear();this._isShowingNoDataRow=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(b.K0),e.Y36(E.t4),e.Y36(u.k),e.Y36(S),e.Y36(k.rL),e.Y36(pe,12),e.Y36(e.R0b,8))},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,be,5),e.Suo(It,x,5),e.Suo(It,te,5),e.Suo(It,R,5),e.Suo(It,Z,5)),2&pt){let ue;e.iGM(ue=e.CRH())&&(it._noDataRow=ue.first),e.iGM(ue=e.CRH())&&(it._contentColumnDefs=ue),e.iGM(ue=e.CRH())&&(it._contentRowDefs=ue),e.iGM(ue=e.CRH())&&(it._contentHeaderRowDefs=ue),e.iGM(ue=e.CRH())&&(it._contentFooterRowDefs=ue)}},viewQuery:function(pt,it){if(1&pt&&(e.Gf(Le,7),e.Gf(ot,7),e.Gf(ht,7),e.Gf(At,7)),2&pt){let It;e.iGM(It=e.CRH())&&(it._rowOutlet=It.first),e.iGM(It=e.CRH())&&(it._headerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._footerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._noDataRowOutlet=It.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("cdk-table-fixed-layout",it.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:X,useExisting:ct},{provide:u.k,useClass:u.yy},{provide:S,useClass:I},{provide:pe,useValue:null}])],ngContentSelectors:V,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ot,Le,At,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})();function di(ct,Ft){return ct.concat(Array.from(Ft))}let mt=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[k.Cl]]}),ct})();var Xe=p(508),_t=p(6451),ei=p(9841),Kt=p(4004);const Pe=[[["caption"]],[["colgroup"],["col"]]],Ie=["caption","colgroup, col"];let ft=(()=>{class ct extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("mat-table-fixed-layout",it.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:u.k,useClass:u.yy},{provide:Gt,useExisting:ct},{provide:X,useExisting:ct},{provide:S,useClass:I},{provide:pe,useValue:null}]),e.qOj],ngContentSelectors:Ie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(Pe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[ot,Le,At,ht],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})(),Rt=(()=>{class ct extends q{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:q,useExisting:ct}]),e.qOj]}),ct})(),et=(()=>{class ct extends re{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:re,useExisting:ct}]),e.qOj]}),ct})(),Re=(()=>{class ct extends le{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:le,useExisting:ct}]),e.qOj]}),ct})(),Je=(()=>{class ct extends x{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:x,useExisting:ct},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})(),Ke=(()=>{class ct extends r{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),ct})(),we=(()=>{class ct extends d{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),ct})(),Fe=(()=>{class ct extends c{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),ct})(),rt=(()=>{class ct extends R{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:R,useExisting:ct}]),e.qOj]}),ct})(),at=(()=>{class ct extends Z{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:Z,useExisting:ct}]),e.qOj]}),ct})(),yt=(()=>{class ct extends te{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:te,useExisting:ct}]),e.qOj]}),ct})(),mi=(()=>{class ct extends Ee{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ee,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),Xt=(()=>{class ct extends ne{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:ne,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),qt=(()=>{class ct extends ze{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:ze,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[Te],encapsulation:2}),ct})(),qi=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[mt,Xe.BQ],Xe.BQ]}),ct})();class Ui extends u.o2{constructor(Ft=[]){super(),this._renderData=new h.X([]),this._filter=new h.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,it)=>{const It=pt[it];if((0,i.t6)(It)){const ue=Number(It);return ue<9007199254740991?ue:It}return It},this.sortData=(pt,it)=>{const It=it.active,ue=it.direction;return It&&""!=ue?pt.sort(($e,bt)=>{let Vt=this.sortingDataAccessor($e,It),yi=this.sortingDataAccessor(bt,It);const Li=typeof Vt,Ji=typeof yi;Li!==Ji&&("number"===Li&&(Vt+=""),"number"===Ji&&(yi+=""));let Yi=0;return null!=Vt&&null!=yi?Vt>yi?Yi=1:Vt{const It=Object.keys(pt).reduce(($e,bt)=>$e+pt[bt]+"\u25ec","").toLowerCase(),ue=it.trim().toLowerCase();return-1!=It.indexOf(ue)},this._data=new h.X(Ft),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ft){Ft=Array.isArray(Ft)?Ft:[],this._data.next(Ft),this._renderChangesSubscription||this._filterData(Ft)}get filter(){return this._filter.value}set filter(Ft){this._filter.next(Ft),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ft){this._sort=Ft,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ft){this._paginator=Ft,this._updateChangeSubscription()}_updateChangeSubscription(){var Ft;const pt=this._sort?(0,_t.T)(this._sort.sortChange,this._sort.initialized):(0,D.of)(null),it=this._paginator?(0,_t.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,D.of)(null),ue=(0,ei.a)([this._data,this._filter]).pipe((0,Kt.U)(([Vt])=>this._filterData(Vt))),$e=(0,ei.a)([ue,pt]).pipe((0,Kt.U)(([Vt])=>this._orderData(Vt))),bt=(0,ei.a)([$e,it]).pipe((0,Kt.U)(([Vt])=>this._pageData(Vt)));null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=bt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Ft){return this.filteredData=null==this.filter||""===this.filter?Ft:Ft.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ft){return this.sort?this.sortData(Ft.slice(),this.sort):Ft}_pageData(Ft){if(!this.paginator)return Ft;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Ft.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Ft){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Ft,pt.pageIndex>0)){const it=Math.ceil(pt.length/pt.pageSize)-1||0,It=Math.min(pt.pageIndex,it);It!==pt.pageIndex&&(pt.pageIndex=It,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ft;null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=null}}class Wi extends Ui{}},3251:(He,j,p)=>{"use strict";p.d(j,{BU:()=>ce,Nh:()=>et,Nj:()=>ft,SP:()=>Kt,uD:()=>De,uX:()=>xe});var e=p(5664),i=p(7144),u=p(7429),b=p(9808),a=p(5e3),y=p(508),h=p(6360),P=p(5698),D=p(8675),T=p(1884),M=p(2722),A=p(3900),E=p(5684),k=p(7579),w=p(727),V=p(4968),U=p(9646),Y=p(6451),ae=p(515),X=p(8306),de=p(2805),q=p(1777),re=p(226),le=p(3191),ee=p(1159),_e=p(925),x=p(5303);function t(Re,Je){1&Re&&a.Hsn(0)}const r=["*"];function d(Re,Je){}const c=function(Re){return{animationDuration:Re}},g=function(Re,Je){return{value:Re,params:Je}},S=["tabListContainer"],I=["tabList"],C=["tabListInner"],n=["nextPaginator"],_=["previousPaginator"],B=["tabBodyWrapper"],R=["tabHeader"];function H(Re,Je){}function Q(Re,Je){if(1&Re&&a.YNc(0,H,0,0,"ng-template",10),2&Re){const Ke=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Ke.templateLabel)}}function Z(Re,Je){if(1&Re&&a._uU(0),2&Re){const Ke=a.oxw().$implicit;a.Oqu(Ke.textLabel)}}function te(Re,Je){if(1&Re){const Ke=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Fe=a.CHM(Ke),rt=Fe.$implicit,at=Fe.index,yt=a.oxw(),mi=a.MAs(1);return yt._handleClick(rt,mi,at)})("cdkFocusChange",function(Fe){const at=a.CHM(Ke).index;return a.oxw()._tabFocusChanged(Fe,at)}),a.TgZ(1,"div",7),a.YNc(2,Q,1,1,"ng-template",8),a.YNc(3,Z,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Re){const Ke=Je.$implicit,we=Je.index,Fe=a.MAs(4),rt=a.oxw();a.ekj("mat-tab-label-active",rt.selectedIndex===we),a.Q6J("id",rt._getTabLabelId(we))("ngClass",Ke.labelClass)("disabled",Ke.disabled)("matRippleDisabled",Ke.disabled||rt.disableRipple),a.uIk("tabIndex",rt._getTabIndex(Ke,we))("aria-posinset",we+1)("aria-setsize",rt._tabs.length)("aria-controls",rt._getTabContentId(we))("aria-selected",rt.selectedIndex===we)("aria-label",Ke.ariaLabel||null)("aria-labelledby",!Ke.ariaLabel&&Ke.ariaLabelledby?Ke.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Ke.templateLabel)("ngIfElse",Fe)}}function Te(Re,Je){if(1&Re){const Ke=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(Ke),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return a.CHM(Ke),a.oxw()._setTabBodyWrapperHeight(Fe)}),a.qZA()}if(2&Re){const Ke=Je.$implicit,we=Je.index,Fe=a.oxw();a.ekj("mat-tab-body-active",Fe.selectedIndex===we),a.Q6J("id",Fe._getTabContentId(we))("ngClass",Ke.bodyClass)("content",Ke.content)("position",Ke.position)("origin",Ke.origin)("animationDuration",Fe.animationDuration),a.uIk("tabindex",null!=Fe.contentTabIndex&&Fe.selectedIndex===we?Fe.contentTabIndex:null)("aria-labelledby",Fe._getTabLabelId(we))}}const Ee=["mat-tab-nav-bar",""],ne=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ze(){return Je=>({left:Je?(Je.offsetLeft||0)+"px":"0",width:Je?(Je.offsetWidth||0)+"px":"0"})}});let be=(()=>{class Re{constructor(Ke,we,Fe,rt){this._elementRef=Ke,this._ngZone=we,this._inkBarPositioner=Fe,this._animationMode=rt}alignToElement(Ke){this.show(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const we=this._inkBarPositioner(Ke),Fe=this._elementRef.nativeElement;Fe.style.left=we.left,Fe.style.width=we.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ne),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Ke,we){2&Ke&&a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)}}),Re})();const $=new a.OlP("MatTabContent"),lt=new a.OlP("MatTabLabel"),W=new a.OlP("MAT_TAB");let De=(()=>{class Re extends u.ig{constructor(Ke,we,Fe){super(Ke,we),this._closestTab=Fe}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(W,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:lt,useExisting:Re}]),a.qOj]}),Re})();const he=(0,y.Id)(class{}),Ae=new a.OlP("MAT_TAB_GROUP");let xe=(()=>{class Re extends he{constructor(Ke,we){super(),this._viewContainerRef=Ke,this._closestTabGroup=we,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Ke){this._setTemplateLabelInput(Ke)}get content(){return this._contentPortal}ngOnChanges(Ke){(Ke.hasOwnProperty("textLabel")||Ke.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new u.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ke){Ke&&Ke._closestTab===this&&(this._templateLabel=Ke)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.s_b),a.Y36(Ae,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab"]],contentQueries:function(Ke,we,Fe){if(1&Ke&&(a.Suo(Fe,lt,5),a.Suo(Fe,$,7,a.Rgc)),2&Ke){let rt;a.iGM(rt=a.CRH())&&(we.templateLabel=rt.first),a.iGM(rt=a.CRH())&&(we._explicitContent=rt.first)}},viewQuery:function(Ke,we){if(1&Ke&&a.Gf(a.Rgc,7),2&Ke){let Fe;a.iGM(Fe=a.CRH())&&(we._implicitContent=Fe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:W,useExisting:Re}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Ke,we){1&Ke&&(a.F$t(),a.YNc(0,t,1,0,"ng-template"))},encapsulation:2}),Re})();const G={translateTab:(0,q.X$)("translateTab",[(0,q.SB)("center, void, left-origin-center, right-origin-center",(0,q.oB)({transform:"none"})),(0,q.SB)("left",(0,q.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,q.SB)("right",(0,q.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,q.eR)("* => left, * => right, left => center, right => center",(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,q.eR)("void => left-origin-center",[(0,q.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,q.eR)("void => right-origin-center",[(0,q.oB)({transform:"translate3d(100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ie=(()=>{class Re extends u.Pl{constructor(Ke,we,Fe,rt){super(Ke,we,rt),this._host=Fe,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,D.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ke=>{Ke&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>ye)),a.Y36(b.K0))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Re})(),pe=(()=>{class Re{constructor(Ke,we,Fe){this._elementRef=Ke,this._dir=we,this._dirChangeSubscription=w.w0.EMPTY,this._translateTabComplete=new k.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",we&&(this._dirChangeSubscription=we.change.subscribe(rt=>{this._computePositionAnimationState(rt),Fe.markForCheck()})),this._translateTabComplete.pipe((0,T.x)((rt,at)=>rt.fromState===at.fromState&&rt.toState===at.toState)).subscribe(rt=>{this._isCenterPosition(rt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(rt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Ke){this._positionIndex=Ke,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ke){const we=this._isCenterPosition(Ke.toState);this._beforeCentering.emit(we),we&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ke){return"center"==Ke||"left-origin-center"==Ke||"right-origin-center"==Ke}_computePositionAnimationState(Ke=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ke?"left":"right":this._positionIndex>0?"ltr"==Ke?"right":"left":"center"}_computePositionFromOrigin(Ke){const we=this._getLayoutDirection();return"ltr"==we&&Ke<=0||"rtl"==we&&Ke>0?"left-origin-center":"right-origin-center"}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},Re.\u0275dir=a.lG2({type:Re,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Re})(),ye=(()=>{class Re extends pe{constructor(Ke,we,Fe){super(Ke,we,Fe)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-body"]],viewQuery:function(Ke,we){if(1&Ke&&a.Gf(u.Pl,5),2&Ke){let Fe;a.iGM(Fe=a.CRH())&&(we._portalHost=Fe.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ke,we){1&Ke&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(rt){return we._onTranslateTabStarted(rt)})("@translateTab.done",function(rt){return we._translateTabComplete.next(rt)}),a.YNc(2,d,0,0,"ng-template",2),a.qZA()),2&Ke&&a.Q6J("@translateTab",a.WLB(3,g,we._position,a.VKq(1,c,we.animationDuration)))},directives:[ie],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[G.translateTab]}}),Re})();const Le=new a.OlP("MAT_TABS_CONFIG"),ot=(0,y.Id)(class{});let ht=(()=>{class Re extends ot{constructor(Ke){super(),this.elementRef=Ke}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ke,we){2&Ke&&(a.uIk("aria-disabled",!!we.disabled),a.ekj("mat-tab-disabled",we.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Re})();const At=(0,_e.i$)({passive:!0});let di=(()=>{class Re{constructor(Ke,we,Fe,rt,at,yt,mi){this._elementRef=Ke,this._changeDetectorRef=we,this._viewportRuler=Fe,this._dir=rt,this._ngZone=at,this._platform=yt,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,at.runOutsideAngular(()=>{(0,V.R)(Ke.nativeElement,"mouseleave").pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ke){Ke=(0,le.su)(Ke),this._selectedIndex!=Ke&&(this._selectedIndexChanged=!0,this._selectedIndex=Ke,this._keyManager&&this._keyManager.updateActiveItem(Ke))}ngAfterViewInit(){(0,V.R)(this._previousPaginator.nativeElement,"touchstart",At).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,V.R)(this._nextPaginator.nativeElement,"touchstart",At).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ke=this._dir?this._dir.change:(0,U.of)("ltr"),we=this._viewportRuler.change(150),Fe=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(Fe),(0,Y.T)(Ke,we,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Fe()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,M.R)(this._destroyed)).subscribe(rt=>{this.indexFocused.emit(rt),this._setTabFocus(rt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ae.E:this._items.changes.pipe((0,D.O)(this._items),(0,A.w)(Ke=>new X.y(we=>this._ngZone.runOutsideAngular(()=>{const Fe=new ResizeObserver(()=>{we.next()});return Ke.forEach(rt=>{Fe.observe(rt.elementRef.nativeElement)}),()=>{Fe.disconnect()}}))),(0,E.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ke){if(!(0,ee.Vb)(Ke))switch(Ke.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ke));break;default:this._keyManager.onKeydown(Ke)}}_onContentChanges(){const Ke=this._elementRef.nativeElement.textContent;Ke!==this._currentTextContent&&(this._currentTextContent=Ke||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ke){!this._isValidIndex(Ke)||this.focusIndex===Ke||!this._keyManager||this._keyManager.setActiveItem(Ke)}_isValidIndex(Ke){if(!this._items)return!0;const we=this._items?this._items.toArray()[Ke]:null;return!!we&&!we.disabled}_setTabFocus(Ke){if(this._showPaginationControls&&this._scrollToLabel(Ke),this._items&&this._items.length){this._items.toArray()[Ke].focus();const we=this._tabListContainer.nativeElement;we.scrollLeft="ltr"==this._getLayoutDirection()?0:we.scrollWidth-we.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ke=this.scrollDistance,we="ltr"===this._getLayoutDirection()?-Ke:Ke;this._tabList.nativeElement.style.transform=`translateX(${Math.round(we)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ke){this._scrollTo(Ke)}_scrollHeader(Ke){return this._scrollTo(this._scrollDistance+("before"==Ke?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ke){this._stopInterval(),this._scrollHeader(Ke)}_scrollToLabel(Ke){if(this.disablePagination)return;const we=this._items?this._items.toArray()[Ke]:null;if(!we)return;const Fe=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:rt,offsetWidth:at}=we.elementRef.nativeElement;let yt,mi;"ltr"==this._getLayoutDirection()?(yt=rt,mi=yt+at):(mi=this._tabListInner.nativeElement.offsetWidth-rt,yt=mi-at);const Xt=this.scrollDistance,qt=this.scrollDistance+Fe;ytqt&&(this.scrollDistance+=mi-qt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ke=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ke||(this.scrollDistance=0),Ke!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ke}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ke=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,we=Ke?Ke.elementRef.nativeElement:null;we?this._inkBar.alignToElement(we):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ke,we){we&&null!=we.button&&0!==we.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,M.R)((0,Y.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Fe,distance:rt}=this._scrollHeader(Ke);(0===rt||rt>=Fe)&&this._stopInterval()}))}_scrollTo(Ke){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const we=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(we,Ke)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:we,distance:this._scrollDistance}}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disablePagination:"disablePagination"}}),Re})(),vt=(()=>{class Re extends di{constructor(Ke,we,Fe,rt,at,yt,mi){super(Ke,we,Fe,rt,at,yt,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ke){this._disableRipple=(0,le.Ig)(Ke)}_itemSelected(Ke){Ke.preventDefault()}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Re})(),kt=(()=>{class Re extends vt{constructor(Ke,we,Fe,rt,at,yt,mi){super(Ke,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(h.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-header"]],contentQueries:function(Ke,we,Fe){if(1&Ke&&a.Suo(Fe,ht,4),2&Ke){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ke,we){if(1&Ke&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(C,7),a.Gf(n,5),a.Gf(_,5)),2&Ke){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Ke,we){2&Ke&&a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ke,we){1&Ke&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ke&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Re})(),mt=0;class Xe{}const _t=(0,y.pj)((0,y.Kr)(class{constructor(Re){this._elementRef=Re}}),"primary");let ei=(()=>{class Re extends _t{constructor(Ke,we,Fe,rt){var at;super(Ke),this._changeDetectorRef=we,this._animationMode=rt,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=mt++,this.animationDuration=Fe&&Fe.animationDuration?Fe.animationDuration:"500ms",this.disablePagination=!(!Fe||null==Fe.disablePagination)&&Fe.disablePagination,this.dynamicHeight=!(!Fe||null==Fe.dynamicHeight)&&Fe.dynamicHeight,this.contentTabIndex=null!==(at=null==Fe?void 0:Fe.contentTabIndex)&&void 0!==at?at:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ke){this._dynamicHeight=(0,le.Ig)(Ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ke){this._indexToSelect=(0,le.su)(Ke,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ke){this._animationDuration=/^\d+$/.test(Ke+"")?Ke+"ms":Ke}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ke){this._contentTabIndex=(0,le.su)(Ke,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ke){const we=this._elementRef.nativeElement;we.classList.remove(`mat-background-${this.backgroundColor}`),Ke&&we.classList.add(`mat-background-${Ke}`),this._backgroundColor=Ke}ngAfterContentChecked(){const Ke=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ke){const we=null==this._selectedIndex;if(!we){this.selectedTabChange.emit(this._createChangeEvent(Ke));const Fe=this._tabBodyWrapper.nativeElement;Fe.style.minHeight=Fe.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Fe,rt)=>Fe.isActive=rt===Ke),we||(this.selectedIndexChange.emit(Ke),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((we,Fe)=>{we.position=Fe-Ke,null!=this._selectedIndex&&0==we.position&&!we.origin&&(we.origin=Ke-this._selectedIndex)}),this._selectedIndex!==Ke&&(this._selectedIndex=Ke,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ke=this._clampTabIndex(this._indexToSelect);if(Ke===this._selectedIndex){const we=this._tabs.toArray();let Fe;for(let rt=0;rt{we[Ke].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ke))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,D.O)(this._allTabs)).subscribe(Ke=>{this._tabs.reset(Ke.filter(we=>we._closestTabGroup===this||!we._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ke){const we=this._tabHeader;we&&(we.focusIndex=Ke)}_focusChanged(Ke){this._lastFocusedTabIndex=Ke,this.focusChange.emit(this._createChangeEvent(Ke))}_createChangeEvent(Ke){const we=new Xe;return we.index=Ke,this._tabs&&this._tabs.length&&(we.tab=this._tabs.toArray()[Ke]),we}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Y.T)(...this._tabs.map(Ke=>Ke._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ke){return Math.min(this._tabs.length-1,Math.max(Ke||0,0))}_getTabLabelId(Ke){return`mat-tab-label-${this._groupId}-${Ke}`}_getTabContentId(Ke){return`mat-tab-content-${this._groupId}-${Ke}`}_setTabBodyWrapperHeight(Ke){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const we=this._tabBodyWrapper.nativeElement;we.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(we.style.height=Ke+"px")}_removeTabBodyWrapperHeight(){const Ke=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ke.clientHeight,Ke.style.height="",this.animationDone.emit()}_handleClick(Ke,we,Fe){Ke.disabled||(this.selectedIndex=we.focusIndex=Fe)}_getTabIndex(Ke,we){var Fe;return Ke.disabled?null:we===(null!==(Fe=this._lastFocusedTabIndex)&&void 0!==Fe?Fe:this.selectedIndex)?0:-1}_tabFocusChanged(Ke,we){Ke&&"mouse"!==Ke&&"touch"!==Ke&&(this._tabHeader.focusIndex=we)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),Re})(),Kt=(()=>{class Re extends ei{constructor(Ke,we,Fe,rt){super(Ke,we,Fe,rt)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(h.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-group"]],contentQueries:function(Ke,we,Fe){if(1&Ke&&a.Suo(Fe,xe,5),2&Ke){let rt;a.iGM(rt=a.CRH())&&(we._allTabs=rt)}},viewQuery:function(Ke,we){if(1&Ke&&(a.Gf(B,5),a.Gf(R,5)),2&Ke){let Fe;a.iGM(Fe=a.CRH())&&(we._tabBodyWrapper=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabHeader=Fe.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Ke,we){2&Ke&&a.ekj("mat-tab-group-dynamic-height",we.dynamicHeight)("mat-tab-group-inverted-header","below"===we.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Ae,useExisting:Re}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Ke,we){1&Ke&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(rt){return we._focusChanged(rt)})("selectFocusedIndex",function(rt){return we.selectedIndex=rt}),a.YNc(2,te,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Te,1,10,"mat-tab-body",5),a.qZA()),2&Ke&&(a.Q6J("selectedIndex",we.selectedIndex||0)("disableRipple",we.disableRipple)("disablePagination",we.disablePagination),a.xp6(2),a.Q6J("ngForOf",we._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(2),a.Q6J("ngForOf",we._tabs))},directives:[kt,ye,b.sg,ht,y.wG,e.kH,b.mk,b.O5,u.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Re})(),Pe=0,Ie=(()=>{class Re extends di{constructor(Ke,we,Fe,rt,at,yt,mi){super(Ke,rt,at,we,Fe,yt,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ke){const we=this._elementRef.nativeElement.classList;we.remove(`mat-background-${this.backgroundColor}`),Ke&&we.add(`mat-background-${Ke}`),this._backgroundColor=Ke}get disableRipple(){return this._disableRipple}set disableRipple(Ke){this._disableRipple=(0,le.Ig)(Ke)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,D.O)(null),(0,M.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Ke=this._items.toArray();for(let we=0;we{class Re extends Ie{constructor(Ke,we,Fe,rt,at,yt,mi){super(Ke,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(_e.t4),a.Y36(h.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Ke,we,Fe){if(1&Ke&&a.Suo(Fe,ft,5),2&Ke){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ke,we){if(1&Ke&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(C,7),a.Gf(n,5),a.Gf(_,5)),2&Ke){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Ke,we){2&Ke&&(a.uIk("role",we._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())("mat-primary","warn"!==we.color&&"accent"!==we.color)("mat-accent","accent"===we.color)("mat-warn","warn"===we.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:Ee,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ke,we){1&Ke&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ke&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Re})();const Me=(0,y.sb)((0,y.Kr)((0,y.Id)(class{})));let ut=(()=>{class Re extends Me{constructor(Ke,we,Fe,rt,at,yt){super(),this._tabNavBar=Ke,this.elementRef=we,this._focusMonitor=at,this._isActive=!1,this.id="mat-tab-link-"+Pe++,this.rippleConfig=Fe||{},this.tabIndex=parseInt(rt)||0,"NoopAnimations"===yt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Ke){const we=(0,le.Ig)(Ke);we!==this._isActive&&(this._isActive=we,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ke){this._tabNavBar.tabPanel&&Ke.keyCode===ee.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Ke;return this._tabNavBar.tabPanel?null===(Ke=this._tabNavBar.tabPanel)||void 0===Ke?void 0:Ke.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(Ie),a.Y36(a.SBq),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{active:"active",id:"id"},features:[a.qOj]}),Re})(),ft=(()=>{class Re extends ut{constructor(Ke,we,Fe,rt,at,yt,mi,Xt){super(Ke,we,at,yt,mi,Xt),this._tabLinkRipple=new y.IR(this,Fe,we,rt),this._tabLinkRipple.setupTriggerEvents(we.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Re.\u0275fac=function(Ke){return new(Ke||Re)(a.Y36(ce),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(h.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Ke,we){1&Ke&&a.NdJ("focus",function(){return we._handleFocus()})("keydown",function(rt){return we._handleKeydown(rt)}),2&Ke&&(a.uIk("aria-controls",we._getAriaControls())("aria-current",we._getAriaCurrent())("aria-disabled",we.disabled)("aria-selected",we._getAriaSelected())("id",we.id)("tabIndex",we._getTabIndex())("role",we._getRole()),a.ekj("mat-tab-disabled",we.disabled)("mat-tab-label-active",we.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Re})(),et=(()=>{class Re{}return Re.\u0275fac=function(Ke){return new(Ke||Re)},Re.\u0275mod=a.oAB({type:Re}),Re.\u0275inj=a.cJS({imports:[[b.ez,y.BQ,u.eL,y.si,i.Q8,e.rt],y.BQ]}),Re})()},4594:(He,j,p)=>{"use strict";p.d(j,{Ye:()=>D,g0:()=>M});var e=p(5e3),i=p(508),u=p(9808),b=p(925);const a=["*",[["mat-toolbar-row"]]],y=["*","mat-toolbar-row"],h=(0,i.pj)(class{constructor(A){this._elementRef=A}});let P=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),D=(()=>{class A extends h{constructor(k,w,V){super(k),this._platform=w,this._document=V}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(k){return new(k||A)(e.Y36(e.SBq),e.Y36(b.t4),e.Y36(u.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(k,w,V){if(1&k&&e.Suo(V,P,5),2&k){let U;e.iGM(U=e.CRH())&&(w._toolbarRows=U)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,w){2&k&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:y,decls:2,vars:0,template:function(k,w){1&k&&(e.F$t(a),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),M=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),A})()},7238:(He,j,p)=>{"use strict";p.d(j,{AV:()=>I,gM:()=>c});var e=p(9776),i=p(5664),u=p(9808),b=p(5e3),a=p(508),y=p(5303),h=p(3191),P=p(1159),D=p(5113),T=p(925),M=p(7429),A=p(6360),E=p(7579),k=p(2722),w=p(5698),V=p(226);p(1777);const Y=["tooltip"],de="tooltip-panel",q=(0,T.i$)({passive:!0}),ee=new b.OlP("mat-tooltip-scroll-strategy"),x={provide:ee,deps:[e.aV],useFactory:function _e(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},t=new b.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let d=(()=>{class n{constructor(B,R,H,Q,Z,te,Te,Ee,ne,ze,be,$){this._overlay=B,this._elementRef=R,this._scrollDispatcher=H,this._viewContainerRef=Q,this._ngZone=Z,this._platform=te,this._ariaDescriber=Te,this._focusMonitor=Ee,this._dir=ze,this._defaultOptions=be,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E.x,this._scrollStrategy=ne,this._document=$,be&&(be.position&&(this.position=be.position),be.touchGestures&&(this.touchGestures=be.touchGestures)),ze.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){var R;B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(R=this._tooltipInstance)||void 0===R||R.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,h.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,h.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,h.su)(B),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(B){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=B?String(B).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(B){this._tooltipClass=B,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(B=>{B?"keyboard"===B&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const B=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([R,H])=>{B.removeEventListener(R,H,q)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(B,this.message,"tooltip"),this._focusMonitor.stopMonitoring(B)}show(B=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const R=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=R.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(B)}hide(B=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(B)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var B;if(this._overlayRef)return this._overlayRef;const R=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(R);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(Q=>{this._updateCurrentPositionClass(Q.connectionPair),this._tooltipInstance&&Q.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${de}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var Q;return null===(Q=this._tooltipInstance)||void 0===Q?void 0:Q._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe(Q=>{this._isTooltipVisible()&&Q.keyCode===P.hY&&!(0,P.Vb)(Q)&&(Q.preventDefault(),Q.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(B=this._defaultOptions)||void 0===B?void 0:B.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(B){const R=B.getConfig().positionStrategy,H=this._getOrigin(),Q=this._getOverlayPosition();R.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),Q.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),Q.fallback))])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R||"below"==R?H={originX:"center",originY:"above"==R?"top":"bottom"}:"before"==R||"left"==R&&B||"right"==R&&!B?H={originX:"start",originY:"center"}:("after"==R||"right"==R&&B||"left"==R&&!B)&&(H={originX:"end",originY:"center"});const{x:Q,y:Z}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:Q,originY:Z}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R?H={overlayX:"center",overlayY:"bottom"}:"below"==R?H={overlayX:"center",overlayY:"top"}:"before"==R||"left"==R&&B||"right"==R&&!B?H={overlayX:"end",overlayY:"center"}:("after"==R||"right"==R&&B||"left"==R&&!B)&&(H={overlayX:"start",overlayY:"center"});const{x:Q,y:Z}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:Q,overlayY:Z}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(B){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=B,this._tooltipInstance._markForCheck())}_invertPosition(B,R){return"above"===this.position||"below"===this.position?"top"===R?R="bottom":"bottom"===R&&(R="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:R}}_updateCurrentPositionClass(B){const{overlayY:R,originX:H,originY:Q}=B;let Z;if(Z="center"===R?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===R&&"top"===Q?"above":"below",Z!==this._currentPosition){const te=this._overlayRef;if(te){const Te=`${this._cssClassPrefix}-${de}-`;te.removePanelClass(Te+this._currentPosition),te.addPanelClass(Te+Z)}this._currentPosition=Z}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const B=[];if(this._platformSupportsMouseEvents())B.push(["mouseleave",R=>{var H;const Q=R.relatedTarget;(!Q||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains(Q)))&&this.hide()}],["wheel",R=>this._wheelListener(R)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const R=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",R],["touchcancel",R])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([R,H])=>{this._elementRef.nativeElement.addEventListener(R,H,q)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const R=this._document.elementFromPoint(B.clientX,B.clientY),H=this._elementRef.nativeElement;R!==H&&!H.contains(R)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const R=this._elementRef.nativeElement,H=R.style;("on"===B||"INPUT"!==R.nodeName&&"TEXTAREA"!==R.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===B||!R.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(B){b.$Z()},n.\u0275dir=b.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends d{constructor(B,R,H,Q,Z,te,Te,Ee,ne,ze,be,$){super(B,R,H,Q,Z,te,Te,Ee,ne,ze,be,$),this._tooltipComponent=S}}return n.\u0275fac=function(B){return new(B||n)(b.Y36(e.aV),b.Y36(b.SBq),b.Y36(y.mF),b.Y36(b.s_b),b.Y36(b.R0b),b.Y36(T.t4),b.Y36(i.$s),b.Y36(i.tE),b.Y36(ee),b.Y36(V.Is,8),b.Y36(t,8),b.Y36(u.K0))},n.\u0275dir=b.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[b.qOj]}),n})(),g=(()=>{class n{constructor(B,R){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new E.x,this._animationsDisabled="NoopAnimations"===R}show(B){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},B)}hide(B){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},B)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:B}){(!B||!this._triggerElement.contains(B))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:B}){(B===this._showAnimation||B===this._hideAnimation)&&this._finalizeAnimation(B===this._showAnimation)}_finalizeAnimation(B){B?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(B){const R=this._tooltip.nativeElement,H=this._showAnimation,Q=this._hideAnimation;if(R.classList.remove(B?Q:H),R.classList.add(B?H:Q),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Z=getComputedStyle(R);("0s"===Z.getPropertyValue("animation-duration")||"none"===Z.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(R.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return n.\u0275fac=function(B){return new(B||n)(b.Y36(b.sBO),b.Y36(A.Qb,8))},n.\u0275dir=b.lG2({type:n}),n})(),S=(()=>{class n extends g{constructor(B,R,H){super(B,H),this._breakpointObserver=R,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(B){return new(B||n)(b.Y36(b.sBO),b.Y36(D.Yg),b.Y36(A.Qb,8))},n.\u0275cmp=b.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(B,R){if(1&B&&b.Gf(Y,7),2&B){let H;b.iGM(H=b.CRH())&&(R._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,R){1&B&&b.NdJ("mouseleave",function(Q){return R._handleMouseLeave(Q)}),2&B&&b.Udp("zoom",R.isVisible()?1:null)},features:[b.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,R){if(1&B&&(b.TgZ(0,"div",0,1),b.NdJ("animationend",function(Q){return R._handleAnimationEnd(Q)}),b.ALo(2,"async"),b._uU(3),b.qZA()),2&B){let H;b.ekj("mat-tooltip-handset",null==(H=b.lcZ(2,4,R._isHandset))?null:H.matches),b.Q6J("ngClass",R.tooltipClass),b.xp6(3),b.Oqu(R.message)}},directives:[u.mk],pipes:[u.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(B){return new(B||n)},n.\u0275mod=b.oAB({type:n}),n.\u0275inj=b.cJS({providers:[x],imports:[[i.rt,u.ez,e.U8,a.BQ],a.BQ,y.ZD]}),n})()},149:(He,j,p)=>{"use strict";p.d(j,{Ar:()=>k,GZ:()=>A,WX:()=>de,dp:()=>Y,eu:()=>V,fQ:()=>M,gi:()=>w,uo:()=>T});var e=p(8258),i=p(5e3),u=p(508),b=p(3191),a=p(449),y=p(1135),h=p(6451),P=p(4004);const D=(0,u.sb)((0,u.Id)(e.Hs));let T=(()=>{class q extends D{constructor(le,ee,_e){super(le,ee),this.tabIndex=Number(_e)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(le){return new(le||q)(i.Y36(i.SBq),i.Y36(e._0),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[i._Bn([{provide:e.Hs,useExisting:q}]),i.qOj]}),q})(),M=(()=>{class q extends e.rO{}return q.\u0275fac=function(){let re;return function(ee){return(re||(re=i.n5z(q)))(ee||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i._Bn([{provide:e.rO,useExisting:q}]),i.qOj]}),q})(),A=(()=>{class q extends e.Xx{constructor(le,ee,_e,x){super(le,ee,_e),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(le){this._disabled=(0,b.Ig)(le)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(le){this._tabIndex=null!=le?le:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(le){return new(le||q)(i.Y36(i.SBq),i.Y36(e._0),i.Y36(i.ZZ4),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[i._Bn([{provide:e.Xx,useExisting:q},{provide:e.Hs,useExisting:q},{provide:e.HI,useExisting:q}]),i.qOj]}),q})(),k=(()=>{class q{constructor(le,ee){this.viewContainer=le,this._node=ee}}return q.\u0275fac=function(le){return new(le||q)(i.Y36(i.s_b),i.Y36(e.HI,8))},q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeOutlet",""]],features:[i._Bn([{provide:e.cu,useExisting:q}])]}),q})(),w=(()=>{class q extends e._0{}return q.\u0275fac=function(){let re;return function(ee){return(re||(re=i.n5z(q)))(ee||q)}}(),q.\u0275cmp=i.Xpm({type:q,selectors:[["mat-tree"]],viewQuery:function(le,ee){if(1&le&&i.Gf(k,7),2&le){let _e;i.iGM(_e=i.CRH())&&(ee._nodeOutlet=_e.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[i._Bn([{provide:e._0,useExisting:q}]),i.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(le,ee){1&le&&i.GkF(0,0)},directives:[k],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),q})(),V=(()=>{class q extends e.Ud{}return q.\u0275fac=function(){let re;return function(ee){return(re||(re=i.n5z(q)))(ee||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i._Bn([{provide:e.Ud,useExisting:q}]),i.qOj]}),q})(),Y=(()=>{class q{}return q.\u0275fac=function(le){return new(le||q)},q.\u0275mod=i.oAB({type:q}),q.\u0275inj=i.cJS({imports:[[e.nZ,u.BQ],u.BQ]}),q})();class de extends a.o2{constructor(){super(...arguments),this._data=new y.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,h.T)(re.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},6360:(He,j,p)=>{"use strict";p.d(j,{Qb:()=>Ia,PW:()=>Vr});var e=p(5e3),i=p(2313),u=p(1777);const b=!1;function y(gt){return new e.vHH(3e3,b)}function Z(){return"undefined"!=typeof window&&void 0!==window.document}function te(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Te(gt){switch(gt.length){case 0:return new u.ZN;case 1:return gt[0];default:return new u.ZE(gt)}}function Ee(gt,se,me,We,xt={},Ht={}){const ii=[],ni=[];let Ci=-1,Pi=null;if(We.forEach(en=>{const ln=en.offset,En=ln==Ci,kn=En&&Pi||{};Object.keys(en).forEach(vn=>{let Sn=vn,Qn=en[vn];if("offset"!==vn)switch(Sn=se.normalizePropertyName(Sn,ii),Qn){case u.k1:Qn=xt[vn];break;case u.l3:Qn=Ht[vn];break;default:Qn=se.normalizeStyleValue(vn,Sn,Qn,ii)}kn[Sn]=Qn}),En||ni.push(kn),Pi=kn,Ci=ln}),ii.length)throw function d(gt){return new e.vHH(3502,b)}();return ni}function ne(gt,se,me,We){switch(se){case"start":gt.onStart(()=>We(me&&ze(me,"start",gt)));break;case"done":gt.onDone(()=>We(me&&ze(me,"done",gt)));break;case"destroy":gt.onDestroy(()=>We(me&&ze(me,"destroy",gt)))}}function ze(gt,se,me){const We=me.totalTime,Ht=be(gt.element,gt.triggerName,gt.fromState,gt.toState,se||gt.phaseName,null==We?gt.totalTime:We,!!me.disabled),ii=gt._data;return null!=ii&&(Ht._data=ii),Ht}function be(gt,se,me,We,xt="",Ht=0,ii){return{element:gt,triggerName:se,fromState:me,toState:We,phaseName:xt,totalTime:Ht,disabled:!!ii}}function $(gt,se,me){let We;return gt instanceof Map?(We=gt.get(se),We||gt.set(se,We=me)):(We=gt[se],We||(We=gt[se]=me)),We}function ke(gt){const se=gt.indexOf(":");return[gt.substring(1,se),gt.substr(se+1)]}let lt=(gt,se)=>!1,W=(gt,se,me)=>[],De=null;function he(gt){const se=gt.parentNode||gt.host;return se===De?null:se}(te()||"undefined"!=typeof Element)&&(Z()?(De=(()=>document.documentElement)(),lt=(gt,se)=>{for(;se;){if(se===gt)return!0;se=he(se)}return!1}):lt=(gt,se)=>gt.contains(se),W=(gt,se,me)=>{if(me)return Array.from(gt.querySelectorAll(se));const We=gt.querySelector(se);return We?[We]:[]});let G=null,ie=!1;function pe(gt){G||(G=function ye(){return"undefined"!=typeof document?document.body:null}()||{},ie=!!G.style&&"WebkitAppearance"in G.style);let se=!0;return G.style&&!function xe(gt){return"ebkit"==gt.substring(1,6)}(gt)&&(se=gt in G.style,!se&&ie&&(se="Webkit"+gt.charAt(0).toUpperCase()+gt.substr(1)in G.style)),se}const Le=lt,ot=W;let At=(()=>{class gt{validateStyleProperty(me){return pe(me)}matchesElement(me,We){return!1}containsElement(me,We){return Le(me,We)}getParentElement(me){return he(me)}query(me,We,xt){return ot(me,We,xt)}computeStyle(me,We,xt){return xt||""}animate(me,We,xt,Ht,ii,ni=[],Ci){return new u.ZN(xt,Ht)}}return gt.\u0275fac=function(me){return new(me||gt)},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac}),gt})(),hi=(()=>{class gt{}return gt.NOOP=new At,gt})();const vt="ng-enter",kt="ng-leave",mt="ng-trigger",Xe=".ng-trigger",_t="ng-animating",ei=".ng-animating";function Kt(gt){if("number"==typeof gt)return gt;const se=gt.match(/^(-?[\.\d]+)(m?s)/);return!se||se.length<2?0:Pe(parseFloat(se[1]),se[2])}function Pe(gt,se){return"s"===se?1e3*gt:gt}function Ie(gt,se,me){return gt.hasOwnProperty("duration")?gt:function ce(gt,se,me){let xt,Ht=0,ii="";if("string"==typeof gt){const ni=gt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return se.push(y()),{duration:0,delay:0,easing:""};xt=Pe(parseFloat(ni[1]),ni[2]);const Ci=ni[3];null!=Ci&&(Ht=Pe(parseFloat(Ci),ni[4]));const Pi=ni[5];Pi&&(ii=Pi)}else xt=gt;if(!me){let ni=!1,Ci=se.length;xt<0&&(se.push(function h(){return new e.vHH(3100,b)}()),ni=!0),Ht<0&&(se.push(function P(){return new e.vHH(3101,b)}()),ni=!0),ni&&se.splice(Ci,0,y())}return{duration:xt,delay:Ht,easing:ii}}(gt,se,me)}function Me(gt,se={}){return Object.keys(gt).forEach(me=>{se[me]=gt[me]}),se}function ft(gt,se,me={}){if(se)for(let We in gt)me[We]=gt[We];else Me(gt,me);return me}function Rt(gt,se,me){return me?se+":"+me+";":""}function et(gt){let se="";for(let me=0;me{const xt=Xt(We);me&&!me.hasOwnProperty(We)&&(me[We]=gt.style[xt]),gt.style[xt]=se[We]}),te()&&et(gt))}function Je(gt,se){gt.style&&(Object.keys(se).forEach(me=>{const We=Xt(me);gt.style[We]=""}),te()&&et(gt))}function Ke(gt){return Array.isArray(gt)?1==gt.length?gt[0]:(0,u.vP)(gt):gt}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function rt(gt){let se=[];if("string"==typeof gt){let me;for(;me=Fe.exec(gt);)se.push(me[1]);Fe.lastIndex=0}return se}function at(gt,se,me){const We=gt.toString(),xt=We.replace(Fe,(Ht,ii)=>{let ni=se[ii];return se.hasOwnProperty(ii)||(me.push(function T(gt){return new e.vHH(3003,b)}()),ni=""),ni.toString()});return xt==We?gt:xt}function yt(gt){const se=[];let me=gt.next();for(;!me.done;)se.push(me.value),me=gt.next();return se}const mi=/-+([a-z0-9])/g;function Xt(gt){return gt.replace(mi,(...se)=>se[1].toUpperCase())}function qt(gt){return gt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(gt,se,me){switch(se.type){case 7:return gt.visitTrigger(se,me);case 0:return gt.visitState(se,me);case 1:return gt.visitTransition(se,me);case 2:return gt.visitSequence(se,me);case 3:return gt.visitGroup(se,me);case 4:return gt.visitAnimate(se,me);case 5:return gt.visitKeyframes(se,me);case 6:return gt.visitStyle(se,me);case 8:return gt.visitReference(se,me);case 9:return gt.visitAnimateChild(se,me);case 10:return gt.visitAnimateRef(se,me);case 11:return gt.visitQuery(se,me);case 12:return gt.visitStagger(se,me);default:throw function M(gt){return new e.vHH(3004,b)}()}}function qi(gt,se){return window.getComputedStyle(gt)[se]}function ue(gt,se){const me=[];return"string"==typeof gt?gt.split(/\s*,\s*/).forEach(We=>function $e(gt,se,me){if(":"==gt[0]){const Ci=function bt(gt,se){switch(gt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(me,We)=>parseFloat(We)>parseFloat(me);case":decrement":return(me,We)=>parseFloat(We) *"}}(gt,me);if("function"==typeof Ci)return void se.push(Ci);gt=Ci}const We=gt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==We||We.length<4)return me.push(function ee(gt){return new e.vHH(3015,b)}()),se;const xt=We[1],Ht=We[2],ii=We[3];se.push(Li(xt,ii));"<"==Ht[0]&&!("*"==xt&&"*"==ii)&&se.push(Li(ii,xt))}(We,me,se)):me.push(gt),me}const Vt=new Set(["true","1"]),yi=new Set(["false","0"]);function Li(gt,se){const me=Vt.has(gt)||yi.has(gt),We=Vt.has(se)||yi.has(se);return(xt,Ht)=>{let ii="*"==gt||gt==xt,ni="*"==se||se==Ht;return!ii&&me&&"boolean"==typeof xt&&(ii=xt?Vt.has(gt):yi.has(gt)),!ni&&We&&"boolean"==typeof Ht&&(ni=Ht?Vt.has(se):yi.has(se)),ii&&ni}}const Yi=new RegExp("s*:selfs*,?","g");function an(gt,se,me,We){return new Zt(gt).build(se,me,We)}class Zt{constructor(se){this._driver=se}build(se,me,We){const xt=new Nt(me);this._resetContextStyleTimingState(xt);const Ht=si(this,Ke(se),xt);return xt.unsupportedCSSPropertiesFound.size&&xt.unsupportedCSSPropertiesFound.keys(),Ht}_resetContextStyleTimingState(se){se.currentQuerySelector="",se.collectedStyles={},se.collectedStyles[""]={},se.currentTime=0}visitTrigger(se,me){let We=me.queryCount=0,xt=me.depCount=0;const Ht=[],ii=[];return"@"==se.name.charAt(0)&&me.errors.push(function E(){return new e.vHH(3006,b)}()),se.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(me),0==ni.type){const Ci=ni,Pi=Ci.name;Pi.toString().split(/\s*,\s*/).forEach(en=>{Ci.name=en,Ht.push(this.visitState(Ci,me))}),Ci.name=Pi}else if(1==ni.type){const Ci=this.visitTransition(ni,me);We+=Ci.queryCount,xt+=Ci.depCount,ii.push(Ci)}else me.errors.push(function k(){return new e.vHH(3007,b)}())}),{type:7,name:se.name,states:Ht,transitions:ii,queryCount:We,depCount:xt,options:null}}visitState(se,me){const We=this.visitStyle(se.styles,me),xt=se.options&&se.options.params||null;if(We.containsDynamicStyles){const Ht=new Set,ii=xt||{};We.styles.forEach(ni=>{if(pi(ni)){const Ci=ni;Object.keys(Ci).forEach(Pi=>{rt(Ci[Pi]).forEach(en=>{ii.hasOwnProperty(en)||Ht.add(en)})})}}),Ht.size&&(yt(Ht.values()),me.errors.push(function w(gt,se){return new e.vHH(3008,b)}()))}return{type:0,name:se.name,style:We,options:xt?{params:xt}:null}}visitTransition(se,me){me.queryCount=0,me.depCount=0;const We=si(this,Ke(se.animation),me);return{type:1,matchers:ue(se.expr,me.errors),animation:We,queryCount:me.queryCount,depCount:me.depCount,options:Oi(se.options)}}visitSequence(se,me){return{type:2,steps:se.steps.map(We=>si(this,We,me)),options:Oi(se.options)}}visitGroup(se,me){const We=me.currentTime;let xt=0;const Ht=se.steps.map(ii=>{me.currentTime=We;const ni=si(this,ii,me);return xt=Math.max(xt,me.currentTime),ni});return me.currentTime=xt,{type:3,steps:Ht,options:Oi(se.options)}}visitAnimate(se,me){const We=function Ri(gt,se){if(gt.hasOwnProperty("duration"))return gt;if("number"==typeof gt)return dn(Ie(gt,se).duration,0,"");const me=gt;if(me.split(/\s+/).some(Ht=>"{"==Ht.charAt(0)&&"{"==Ht.charAt(1))){const Ht=dn(0,0,"");return Ht.dynamic=!0,Ht.strValue=me,Ht}const xt=Ie(me,se);return dn(xt.duration,xt.delay,xt.easing)}(se.timings,me.errors);me.currentAnimateTimings=We;let xt,Ht=se.styles?se.styles:(0,u.oB)({});if(5==Ht.type)xt=this.visitKeyframes(Ht,me);else{let ii=se.styles,ni=!1;if(!ii){ni=!0;const Pi={};We.easing&&(Pi.easing=We.easing),ii=(0,u.oB)(Pi)}me.currentTime+=We.duration+We.delay;const Ci=this.visitStyle(ii,me);Ci.isEmptyStep=ni,xt=Ci}return me.currentAnimateTimings=null,{type:4,timings:We,style:xt,options:null}}visitStyle(se,me){const We=this._makeStyleAst(se,me);return this._validateStyleAst(We,me),We}_makeStyleAst(se,me){const We=[];Array.isArray(se.styles)?se.styles.forEach(ii=>{"string"==typeof ii?ii==u.l3?We.push(ii):me.errors.push(function V(gt){return new e.vHH(3002,b)}()):We.push(ii)}):We.push(se.styles);let xt=!1,Ht=null;return We.forEach(ii=>{if(pi(ii)){const ni=ii,Ci=ni.easing;if(Ci&&(Ht=Ci,delete ni.easing),!xt)for(let Pi in ni)if(ni[Pi].toString().indexOf("{{")>=0){xt=!0;break}}}),{type:6,styles:We,easing:Ht,offset:se.offset,containsDynamicStyles:xt,options:null}}_validateStyleAst(se,me){const We=me.currentAnimateTimings;let xt=me.currentTime,Ht=me.currentTime;We&&Ht>0&&(Ht-=We.duration+We.delay),se.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void me.unsupportedCSSPropertiesFound.add(ni);const Ci=me.collectedStyles[me.currentQuerySelector],Pi=Ci[ni];let en=!0;Pi&&(Ht!=xt&&Ht>=Pi.startTime&&xt<=Pi.endTime&&(me.errors.push(function Y(gt,se,me,We,xt){return new e.vHH(3010,b)}()),en=!1),Ht=Pi.startTime),en&&(Ci[ni]={startTime:Ht,endTime:xt}),me.options&&function we(gt,se,me){const We=se.params||{},xt=rt(gt);xt.length&&xt.forEach(Ht=>{We.hasOwnProperty(Ht)||me.push(function D(gt){return new e.vHH(3001,b)}())})}(ii[ni],me.options,me.errors)})})}visitKeyframes(se,me){const We={type:5,styles:[],options:null};if(!me.currentAnimateTimings)return me.errors.push(function ae(){return new e.vHH(3011,b)}()),We;let Ht=0;const ii=[];let ni=!1,Ci=!1,Pi=0;const en=se.steps.map(Mr=>{const hr=this._makeStyleAst(Mr,me);let Zr=null!=hr.offset?hr.offset:function $t(gt){if("string"==typeof gt)return null;let se=null;if(Array.isArray(gt))gt.forEach(me=>{if(pi(me)&&me.hasOwnProperty("offset")){const We=me;se=parseFloat(We.offset),delete We.offset}});else if(pi(gt)&>.hasOwnProperty("offset")){const me=gt;se=parseFloat(me.offset),delete me.offset}return se}(hr.styles),Gr=0;return null!=Zr&&(Ht++,Gr=hr.offset=Zr),Ci=Ci||Gr<0||Gr>1,ni=ni||Gr0&&Ht{const Zr=En>0?hr==kn?1:En*hr:ii[hr],Gr=Zr*Qn;me.currentTime=vn+Sn.delay+Gr,Sn.duration=Gr,this._validateStyleAst(Mr,me),Mr.offset=Zr,We.styles.push(Mr)}),We}visitReference(se,me){return{type:8,animation:si(this,Ke(se.animation),me),options:Oi(se.options)}}visitAnimateChild(se,me){return me.depCount++,{type:9,options:Oi(se.options)}}visitAnimateRef(se,me){return{type:10,animation:this.visitReference(se.animation,me),options:Oi(se.options)}}visitQuery(se,me){const We=me.currentQuerySelector,xt=se.options||{};me.queryCount++,me.currentQuery=se;const[Ht,ii]=function bi(gt){const se=!!gt.split(/\s*,\s*/).find(me=>":self"==me);return se&&(gt=gt.replace(Yi,"")),gt=gt.replace(/@\*/g,Xe).replace(/@\w+/g,me=>Xe+"-"+me.substr(1)).replace(/:animating/g,ei),[gt,se]}(se.selector);me.currentQuerySelector=We.length?We+" "+Ht:Ht,$(me.collectedStyles,me.currentQuerySelector,{});const ni=si(this,Ke(se.animation),me);return me.currentQuery=null,me.currentQuerySelector=We,{type:11,selector:Ht,limit:xt.limit||0,optional:!!xt.optional,includeSelf:ii,animation:ni,originalSelector:se.selector,options:Oi(se.options)}}visitStagger(se,me){me.currentQuery||me.errors.push(function re(){return new e.vHH(3013,b)}());const We="full"===se.timings?{duration:0,delay:0,easing:"full"}:Ie(se.timings,me.errors,!0);return{type:12,animation:si(this,Ke(se.animation),me),timings:We,options:null}}}class Nt{constructor(se){this.errors=se,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function pi(gt){return!Array.isArray(gt)&&"object"==typeof gt}function Oi(gt){return gt?(gt=Me(gt)).params&&(gt.params=function qe(gt){return gt?Me(gt):null}(gt.params)):gt={},gt}function dn(gt,se,me){return{duration:gt,delay:se,easing:me}}function Nn(gt,se,me,We,xt,Ht,ii=null,ni=!1){return{type:1,element:gt,keyframes:se,preStyleProps:me,postStyleProps:We,duration:xt,delay:Ht,totalTime:xt+Ht,easing:ii,subTimeline:ni}}class Tn{constructor(){this._map=new Map}get(se){return this._map.get(se)||[]}append(se,me){let We=this._map.get(se);We||this._map.set(se,We=[]),We.push(...me)}has(se){return this._map.has(se)}clear(){this._map.clear()}}const wi=new RegExp(":enter","g"),yn=new RegExp(":leave","g");function Gn(gt,se,me,We,xt,Ht={},ii={},ni,Ci,Pi=[]){return(new ar).buildKeyframes(gt,se,me,We,xt,Ht,ii,ni,Ci,Pi)}class ar{buildKeyframes(se,me,We,xt,Ht,ii,ni,Ci,Pi,en=[]){Pi=Pi||new Tn;const ln=new Pr(se,me,Pi,xt,Ht,en,[]);ln.options=Ci,ln.currentTimeline.setStyles([ii],null,ln.errors,Ci),si(this,We,ln);const En=ln.timelines.filter(kn=>kn.containsAnimation());if(Object.keys(ni).length){let kn;for(let vn=En.length-1;vn>=0;vn--){const Sn=En[vn];if(Sn.element===me){kn=Sn;break}}kn&&!kn.allowOnlyTimelineStyles()&&kn.setStyles([ni],null,ln.errors,Ci)}return En.length?En.map(kn=>kn.buildKeyframes()):[Nn(me,[],[],[],0,0,"",!1)]}visitTrigger(se,me){}visitState(se,me){}visitTransition(se,me){}visitAnimateChild(se,me){const We=me.subInstructions.get(me.element);if(We){const xt=me.createSubContext(se.options),Ht=me.currentTimeline.currentTime,ii=this._visitSubInstructions(We,xt,xt.options);Ht!=ii&&me.transformIntoNewTimeline(ii)}me.previousNode=se}visitAnimateRef(se,me){const We=me.createSubContext(se.options);We.transformIntoNewTimeline(),this.visitReference(se.animation,We),me.transformIntoNewTimeline(We.currentTimeline.currentTime),me.previousNode=se}_visitSubInstructions(se,me,We){let Ht=me.currentTimeline.currentTime;const ii=null!=We.duration?Kt(We.duration):null,ni=null!=We.delay?Kt(We.delay):null;return 0!==ii&&se.forEach(Ci=>{const Pi=me.appendInstructionToTimeline(Ci,ii,ni);Ht=Math.max(Ht,Pi.duration+Pi.delay)}),Ht}visitReference(se,me){me.updateOptions(se.options,!0),si(this,se.animation,me),me.previousNode=se}visitSequence(se,me){const We=me.subContextCount;let xt=me;const Ht=se.options;if(Ht&&(Ht.params||Ht.delay)&&(xt=me.createSubContext(Ht),xt.transformIntoNewTimeline(),null!=Ht.delay)){6==xt.previousNode.type&&(xt.currentTimeline.snapshotCurrentStyles(),xt.previousNode=kr);const ii=Kt(Ht.delay);xt.delayNextStep(ii)}se.steps.length&&(se.steps.forEach(ii=>si(this,ii,xt)),xt.currentTimeline.applyStylesToKeyframe(),xt.subContextCount>We&&xt.transformIntoNewTimeline()),me.previousNode=se}visitGroup(se,me){const We=[];let xt=me.currentTimeline.currentTime;const Ht=se.options&&se.options.delay?Kt(se.options.delay):0;se.steps.forEach(ii=>{const ni=me.createSubContext(se.options);Ht&&ni.delayNextStep(Ht),si(this,ii,ni),xt=Math.max(xt,ni.currentTimeline.currentTime),We.push(ni.currentTimeline)}),We.forEach(ii=>me.currentTimeline.mergeTimelineCollectedStyles(ii)),me.transformIntoNewTimeline(xt),me.previousNode=se}_visitTiming(se,me){if(se.dynamic){const We=se.strValue;return Ie(me.params?at(We,me.params,me.errors):We,me.errors)}return{duration:se.duration,delay:se.delay,easing:se.easing}}visitAnimate(se,me){const We=me.currentAnimateTimings=this._visitTiming(se.timings,me),xt=me.currentTimeline;We.delay&&(me.incrementTime(We.delay),xt.snapshotCurrentStyles());const Ht=se.style;5==Ht.type?this.visitKeyframes(Ht,me):(me.incrementTime(We.duration),this.visitStyle(Ht,me),xt.applyStylesToKeyframe()),me.currentAnimateTimings=null,me.previousNode=se}visitStyle(se,me){const We=me.currentTimeline,xt=me.currentAnimateTimings;!xt&&We.getCurrentStyleProperties().length&&We.forwardFrame();const Ht=xt&&xt.easing||se.easing;se.isEmptyStep?We.applyEmptyStep(Ht):We.setStyles(se.styles,Ht,me.errors,me.options),me.previousNode=se}visitKeyframes(se,me){const We=me.currentAnimateTimings,xt=me.currentTimeline.duration,Ht=We.duration,ni=me.createSubContext().currentTimeline;ni.easing=We.easing,se.styles.forEach(Ci=>{ni.forwardTime((Ci.offset||0)*Ht),ni.setStyles(Ci.styles,Ci.easing,me.errors,me.options),ni.applyStylesToKeyframe()}),me.currentTimeline.mergeTimelineCollectedStyles(ni),me.transformIntoNewTimeline(xt+Ht),me.previousNode=se}visitQuery(se,me){const We=me.currentTimeline.currentTime,xt=se.options||{},Ht=xt.delay?Kt(xt.delay):0;Ht&&(6===me.previousNode.type||0==We&&me.currentTimeline.getCurrentStyleProperties().length)&&(me.currentTimeline.snapshotCurrentStyles(),me.previousNode=kr);let ii=We;const ni=me.invokeQuery(se.selector,se.originalSelector,se.limit,se.includeSelf,!!xt.optional,me.errors);me.currentQueryTotal=ni.length;let Ci=null;ni.forEach((Pi,en)=>{me.currentQueryIndex=en;const ln=me.createSubContext(se.options,Pi);Ht&&ln.delayNextStep(Ht),Pi===me.element&&(Ci=ln.currentTimeline),si(this,se.animation,ln),ln.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,ln.currentTimeline.currentTime)}),me.currentQueryIndex=0,me.currentQueryTotal=0,me.transformIntoNewTimeline(ii),Ci&&(me.currentTimeline.mergeTimelineCollectedStyles(Ci),me.currentTimeline.snapshotCurrentStyles()),me.previousNode=se}visitStagger(se,me){const We=me.parentContext,xt=me.currentTimeline,Ht=se.timings,ii=Math.abs(Ht.duration),ni=ii*(me.currentQueryTotal-1);let Ci=ii*me.currentQueryIndex;switch(Ht.duration<0?"reverse":Ht.easing){case"reverse":Ci=ni-Ci;break;case"full":Ci=We.currentStaggerTime}const en=me.currentTimeline;Ci&&en.delayNextStep(Ci);const ln=en.currentTime;si(this,se.animation,me),me.previousNode=se,We.currentStaggerTime=xt.currentTime-ln+(xt.startTime-We.currentTimeline.startTime)}}const kr={};class Pr{constructor(se,me,We,xt,Ht,ii,ni,Ci){this._driver=se,this.element=me,this.subInstructions=We,this._enterClassName=xt,this._leaveClassName=Ht,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ci||new ia(this._driver,me,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(se,me){if(!se)return;const We=se;let xt=this.options;null!=We.duration&&(xt.duration=Kt(We.duration)),null!=We.delay&&(xt.delay=Kt(We.delay));const Ht=We.params;if(Ht){let ii=xt.params;ii||(ii=this.options.params={}),Object.keys(Ht).forEach(ni=>{(!me||!ii.hasOwnProperty(ni))&&(ii[ni]=at(Ht[ni],ii,this.errors))})}}_copyOptions(){const se={};if(this.options){const me=this.options.params;if(me){const We=se.params={};Object.keys(me).forEach(xt=>{We[xt]=me[xt]})}}return se}createSubContext(se=null,me,We){const xt=me||this.element,Ht=new Pr(this._driver,xt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xt,We||0));return Ht.previousNode=this.previousNode,Ht.currentAnimateTimings=this.currentAnimateTimings,Ht.options=this._copyOptions(),Ht.updateOptions(se),Ht.currentQueryIndex=this.currentQueryIndex,Ht.currentQueryTotal=this.currentQueryTotal,Ht.parentContext=this,this.subContextCount++,Ht}transformIntoNewTimeline(se){return this.previousNode=kr,this.currentTimeline=this.currentTimeline.fork(this.element,se),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(se,me,We){const xt={duration:null!=me?me:se.duration,delay:this.currentTimeline.currentTime+(null!=We?We:0)+se.delay,easing:""},Ht=new sa(this._driver,se.element,se.keyframes,se.preStyleProps,se.postStyleProps,xt,se.stretchStartingKeyframe);return this.timelines.push(Ht),xt}incrementTime(se){this.currentTimeline.forwardTime(this.currentTimeline.duration+se)}delayNextStep(se){se>0&&this.currentTimeline.delayNextStep(se)}invokeQuery(se,me,We,xt,Ht,ii){let ni=[];if(xt&&ni.push(this.element),se.length>0){se=(se=se.replace(wi,"."+this._enterClassName)).replace(yn,"."+this._leaveClassName);let Pi=this._driver.query(this.element,se,1!=We);0!==We&&(Pi=We<0?Pi.slice(Pi.length+We,Pi.length):Pi.slice(0,We)),ni.push(...Pi)}return!Ht&&0==ni.length&&ii.push(function le(gt){return new e.vHH(3014,b)}()),ni}}class ia{constructor(se,me,We,xt){this._driver=se,this.element=me,this.startTime=We,this._elementTimelineStylesLookup=xt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(me),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(me,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(se){const me=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||me?(this.forwardTime(this.currentTime+se),me&&this.snapshotCurrentStyles()):this.startTime+=se}fork(se,me){return this.applyStylesToKeyframe(),new ia(this._driver,se,me||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(se){this.applyStylesToKeyframe(),this.duration=se,this._loadKeyframe()}_updateStyle(se,me){this._localTimelineStyles[se]=me,this._globalTimelineStyles[se]=me,this._styleSummary[se]={time:this.currentTime,value:me}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(se){se&&(this._previousKeyframe.easing=se),Object.keys(this._globalTimelineStyles).forEach(me=>{this._backFill[me]=this._globalTimelineStyles[me]||u.l3,this._currentKeyframe[me]=u.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(se,me,We,xt){me&&(this._previousKeyframe.easing=me);const Ht=xt&&xt.params||{},ii=function La(gt,se){const me={};let We;return gt.forEach(xt=>{"*"===xt?(We=We||Object.keys(se),We.forEach(Ht=>{me[Ht]=u.l3})):ft(xt,!1,me)}),me}(se,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const Ci=at(ii[ni],Ht,We);this._pendingStyles[ni]=Ci,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:u.l3),this._updateStyle(ni,Ci)})}applyStylesToKeyframe(){const se=this._pendingStyles,me=Object.keys(se);0!=me.length&&(this._pendingStyles={},me.forEach(We=>{this._currentKeyframe[We]=se[We]}),Object.keys(this._localTimelineStyles).forEach(We=>{this._currentKeyframe.hasOwnProperty(We)||(this._currentKeyframe[We]=this._localTimelineStyles[We])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(se=>{const me=this._localTimelineStyles[se];this._pendingStyles[se]=me,this._updateStyle(se,me)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const se=[];for(let me in this._currentKeyframe)se.push(me);return se}mergeTimelineCollectedStyles(se){Object.keys(se._styleSummary).forEach(me=>{const We=this._styleSummary[me],xt=se._styleSummary[me];(!We||xt.time>We.time)&&this._updateStyle(me,xt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const se=new Set,me=new Set,We=1===this._keyframes.size&&0===this.duration;let xt=[];this._keyframes.forEach((ni,Ci)=>{const Pi=ft(ni,!0);Object.keys(Pi).forEach(en=>{const ln=Pi[en];ln==u.k1?se.add(en):ln==u.l3&&me.add(en)}),We||(Pi.offset=Ci/this.duration),xt.push(Pi)});const Ht=se.size?yt(se.values()):[],ii=me.size?yt(me.values()):[];if(We){const ni=xt[0],Ci=Me(ni);ni.offset=0,Ci.offset=1,xt=[ni,Ci]}return Nn(this.element,xt,Ht,ii,this.duration,this.startTime,this.easing,!1)}}class sa extends ia{constructor(se,me,We,xt,Ht,ii,ni=!1){super(se,me,ii.delay),this.keyframes=We,this.preStyleProps=xt,this.postStyleProps=Ht,this._stretchStartingKeyframe=ni,this.timings={duration:ii.duration,delay:ii.delay,easing:ii.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let se=this.keyframes,{delay:me,duration:We,easing:xt}=this.timings;if(this._stretchStartingKeyframe&&me){const Ht=[],ii=We+me,ni=me/ii,Ci=ft(se[0],!1);Ci.offset=0,Ht.push(Ci);const Pi=ft(se[0],!1);Pi.offset=oa(ni),Ht.push(Pi);const en=se.length-1;for(let ln=1;ln<=en;ln++){let En=ft(se[ln],!1);En.offset=oa((me+En.offset*We)/ii),Ht.push(En)}We=ii,me=0,xt="",se=Ht}return Nn(this.element,se,this.preStyleProps,this.postStyleProps,We,me,xt,!0)}}function oa(gt,se=3){const me=Math.pow(10,se-1);return Math.round(gt*me)/me}class rr{}class na extends rr{normalizePropertyName(se,me){return Xt(se)}normalizeStyleValue(se,me,We,xt){let Ht="";const ii=We.toString().trim();if(Ra[me]&&0!==We&&"0"!==We)if("number"==typeof We)Ht="px";else{const ni=We.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&xt.push(function A(gt,se){return new e.vHH(3005,b)}())}return ii+Ht}}const Ra=(()=>function Jr(gt){const se={};return gt.forEach(me=>se[me]=!0),se}("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".split(",")))();function xa(gt,se,me,We,xt,Ht,ii,ni,Ci,Pi,en,ln,En){return{type:0,element:gt,triggerName:se,isRemovalTransition:xt,fromState:me,fromStyles:Ht,toState:We,toStyles:ii,timelines:ni,queriedElements:Ci,preStyleProps:Pi,postStyleProps:en,totalTime:ln,errors:En}}const Rr={};class Xn{constructor(se,me,We){this._triggerName=se,this.ast=me,this._stateStyles=We}match(se,me,We,xt){return function la(gt,se,me,We,xt){return gt.some(Ht=>Ht(se,me,We,xt))}(this.ast.matchers,se,me,We,xt)}buildStyles(se,me,We){const xt=this._stateStyles["*"],Ht=this._stateStyles[se],ii=xt?xt.buildStyles(me,We):{};return Ht?Ht.buildStyles(me,We):ii}build(se,me,We,xt,Ht,ii,ni,Ci,Pi,en){const ln=[],En=this.ast.options&&this.ast.options.params||Rr,vn=this.buildStyles(We,ni&&ni.params||Rr,ln),Sn=Ci&&Ci.params||Rr,Qn=this.buildStyles(xt,Sn,ln),Mr=new Set,hr=new Map,Zr=new Map,Gr="void"===xt,ur={params:Object.assign(Object.assign({},En),Sn)},zr=en?[]:Gn(se,me,this.ast.animation,Ht,ii,vn,Qn,ur,Pi,ln);let zn=0;if(zr.forEach(ka=>{zn=Math.max(ka.duration+ka.delay,zn)}),ln.length)return xa(me,this._triggerName,We,xt,Gr,vn,Qn,[],[],hr,Zr,zn,ln);zr.forEach(ka=>{const tt=ka.element,Et=$(hr,tt,{});ka.preStyleProps.forEach(Pt=>Et[Pt]=!0);const Lt=$(Zr,tt,{});ka.postStyleProps.forEach(Pt=>Lt[Pt]=!0),tt!==me&&Mr.add(tt)});const fr=yt(Mr.values());return xa(me,this._triggerName,We,xt,Gr,vn,Qn,zr,fr,hr,Zr,zn)}}class tr{constructor(se,me,We){this.styles=se,this.defaultParams=me,this.normalizer=We}buildStyles(se,me){const We={},xt=Me(this.defaultParams);return Object.keys(se).forEach(Ht=>{const ii=se[Ht];null!=ii&&(xt[Ht]=ii)}),this.styles.styles.forEach(Ht=>{if("string"!=typeof Ht){const ii=Ht;Object.keys(ii).forEach(ni=>{let Ci=ii[ni];Ci.length>1&&(Ci=at(Ci,xt,me));const Pi=this.normalizer.normalizePropertyName(ni,me);Ci=this.normalizer.normalizeStyleValue(ni,Pi,Ci,me),We[Pi]=Ci})}}),We}}class cr{constructor(se,me,We){this.name=se,this.ast=me,this._normalizer=We,this.transitionFactories=[],this.states={},me.states.forEach(xt=>{this.states[xt.name]=new tr(xt.style,xt.options&&xt.options.params||{},We)}),jr(this.states,"true","1"),jr(this.states,"false","0"),me.transitions.forEach(xt=>{this.transitionFactories.push(new Xn(se,xt,this.states))}),this.fallbackTransition=function ma(gt,se,me){return new Xn(gt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ii,ni)=>!0],options:null,queryCount:0,depCount:0},se)}(se,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(se,me,We,xt){return this.transitionFactories.find(ii=>ii.match(se,me,We,xt))||null}matchStyles(se,me,We){return this.fallbackTransition.buildStyles(se,me,We)}}function jr(gt,se,me){gt.hasOwnProperty(se)?gt.hasOwnProperty(me)||(gt[me]=gt[se]):gt.hasOwnProperty(me)&&(gt[se]=gt[me])}const Dr=new Tn;class Nr{constructor(se,me,We){this.bodyNode=se,this._driver=me,this._normalizer=We,this._animations={},this._playersById={},this.players=[]}register(se,me){const We=[],Ht=an(this._driver,me,We,[]);if(We.length)throw function c(gt){return new e.vHH(3503,b)}();this._animations[se]=Ht}_buildPlayer(se,me,We){const xt=se.element,Ht=Ee(0,this._normalizer,0,se.keyframes,me,We);return this._driver.animate(xt,Ht,se.duration,se.delay,se.easing,[],!0)}create(se,me,We={}){const xt=[],Ht=this._animations[se];let ii;const ni=new Map;if(Ht?(ii=Gn(this._driver,me,Ht,vt,kt,{},{},We,Dr,xt),ii.forEach(en=>{const ln=$(ni,en.element,{});en.postStyleProps.forEach(En=>ln[En]=null)})):(xt.push(function g(){return new e.vHH(3300,b)}()),ii=[]),xt.length)throw function S(gt){return new e.vHH(3504,b)}();ni.forEach((en,ln)=>{Object.keys(en).forEach(En=>{en[En]=this._driver.computeStyle(ln,En,u.l3)})});const Pi=Te(ii.map(en=>{const ln=ni.get(en.element);return this._buildPlayer(en,{},ln)}));return this._playersById[se]=Pi,Pi.onDestroy(()=>this.destroy(se)),this.players.push(Pi),Pi}destroy(se){const me=this._getPlayer(se);me.destroy(),delete this._playersById[se];const We=this.players.indexOf(me);We>=0&&this.players.splice(We,1)}_getPlayer(se){const me=this._playersById[se];if(!me)throw function I(gt){return new e.vHH(3301,b)}();return me}listen(se,me,We,xt){const Ht=be(me,"","","");return ne(this._getPlayer(se),We,Ht,xt),()=>{}}command(se,me,We,xt){if("register"==We)return void this.register(se,xt[0]);if("create"==We)return void this.create(se,me,xt[0]||{});const Ht=this._getPlayer(se);switch(We){case"play":Ht.play();break;case"pause":Ht.pause();break;case"reset":Ht.reset();break;case"restart":Ht.restart();break;case"finish":Ht.finish();break;case"init":Ht.init();break;case"setPosition":Ht.setPosition(parseFloat(xt[0]));break;case"destroy":this.destroy(se)}}}const Ur="ng-animate-queued",Cr="ng-animate-disabled",qn=[],ga={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ma={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$n="__ng_removed";class Jn{constructor(se,me=""){this.namespaceId=me;const We=se&&se.hasOwnProperty("value");if(this.value=function Ze(gt){return null!=gt?gt:null}(We?se.value:se),We){const Ht=Me(se);delete Ht.value,this.options=Ht}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(se){const me=se.params;if(me){const We=this.options.params;Object.keys(me).forEach(xt=>{null==We[xt]&&(We[xt]=me[xt])})}}}const Hr="void",xr=new Jn(Hr);class Fr{constructor(se,me,We){this.id=se,this.hostElement=me,this._engine=We,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+se,Ii(me,this._hostClassName)}listen(se,me,We,xt){if(!this._triggers.hasOwnProperty(me))throw function C(gt,se){return new e.vHH(3302,b)}();if(null==We||0==We.length)throw function n(gt){return new e.vHH(3303,b)}();if(!function je(gt){return"start"==gt||"done"==gt}(We))throw function _(gt,se){return new e.vHH(3400,b)}();const Ht=$(this._elementListeners,se,[]),ii={name:me,phase:We,callback:xt};Ht.push(ii);const ni=$(this._engine.statesByElement,se,{});return ni.hasOwnProperty(me)||(Ii(se,mt),Ii(se,mt+"-"+me),ni[me]=xr),()=>{this._engine.afterFlush(()=>{const Ci=Ht.indexOf(ii);Ci>=0&&Ht.splice(Ci,1),this._triggers[me]||delete ni[me]})}}register(se,me){return!this._triggers[se]&&(this._triggers[se]=me,!0)}_getTrigger(se){const me=this._triggers[se];if(!me)throw function B(gt){return new e.vHH(3401,b)}();return me}trigger(se,me,We,xt=!0){const Ht=this._getTrigger(me),ii=new Aa(this.id,me,se);let ni=this._engine.statesByElement.get(se);ni||(Ii(se,mt),Ii(se,mt+"-"+me),this._engine.statesByElement.set(se,ni={}));let Ci=ni[me];const Pi=new Jn(We,this.id);if(!(We&&We.hasOwnProperty("value"))&&Ci&&Pi.absorbOptions(Ci.options),ni[me]=Pi,Ci||(Ci=xr),Pi.value!==Hr&&Ci.value===Pi.value){if(!function ci(gt,se){const me=Object.keys(gt),We=Object.keys(se);if(me.length!=We.length)return!1;for(let xt=0;xt{Je(se,Qn),Re(se,Mr)})}return}const En=$(this._engine.playersByElement,se,[]);En.forEach(Sn=>{Sn.namespaceId==this.id&&Sn.triggerName==me&&Sn.queued&&Sn.destroy()});let kn=Ht.matchTransition(Ci.value,Pi.value,se,Pi.params),vn=!1;if(!kn){if(!xt)return;kn=Ht.fallbackTransition,vn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:se,triggerName:me,transition:kn,fromState:Ci,toState:Pi,player:ii,isFallbackTransition:vn}),vn||(Ii(se,Ur),ii.onStart(()=>{nn(se,Ur)})),ii.onDone(()=>{let Sn=this.players.indexOf(ii);Sn>=0&&this.players.splice(Sn,1);const Qn=this._engine.playersByElement.get(se);if(Qn){let Mr=Qn.indexOf(ii);Mr>=0&&Qn.splice(Mr,1)}}),this.players.push(ii),En.push(ii),ii}deregister(se){delete this._triggers[se],this._engine.statesByElement.forEach((me,We)=>{delete me[se]}),this._elementListeners.forEach((me,We)=>{this._elementListeners.set(We,me.filter(xt=>xt.name!=se))})}clearElementCache(se){this._engine.statesByElement.delete(se),this._elementListeners.delete(se);const me=this._engine.playersByElement.get(se);me&&(me.forEach(We=>We.destroy()),this._engine.playersByElement.delete(se))}_signalRemovalForInnerTriggers(se,me){const We=this._engine.driver.query(se,Xe,!0);We.forEach(xt=>{if(xt[$n])return;const Ht=this._engine.fetchNamespacesByElement(xt);Ht.size?Ht.forEach(ii=>ii.triggerLeaveAnimation(xt,me,!1,!0)):this.clearElementCache(xt)}),this._engine.afterFlushAnimationsDone(()=>We.forEach(xt=>this.clearElementCache(xt)))}triggerLeaveAnimation(se,me,We,xt){const Ht=this._engine.statesByElement.get(se),ii=new Map;if(Ht){const ni=[];if(Object.keys(Ht).forEach(Ci=>{if(ii.set(Ci,Ht[Ci].value),this._triggers[Ci]){const Pi=this.trigger(se,Ci,Hr,xt);Pi&&ni.push(Pi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,se,!0,me,ii),We&&Te(ni).onDone(()=>this._engine.processLeaveNode(se)),!0}return!1}prepareLeaveAnimationListeners(se){const me=this._elementListeners.get(se),We=this._engine.statesByElement.get(se);if(me&&We){const xt=new Set;me.forEach(Ht=>{const ii=Ht.name;if(xt.has(ii))return;xt.add(ii);const Ci=this._triggers[ii].fallbackTransition,Pi=We[ii]||xr,en=new Jn(Hr),ln=new Aa(this.id,ii,se);this._engine.totalQueuedPlayers++,this._queue.push({element:se,triggerName:ii,transition:Ci,fromState:Pi,toState:en,player:ln,isFallbackTransition:!0})})}}removeNode(se,me){const We=this._engine;if(se.childElementCount&&this._signalRemovalForInnerTriggers(se,me),this.triggerLeaveAnimation(se,me,!0))return;let xt=!1;if(We.totalAnimations){const Ht=We.players.length?We.playersByQueriedElement.get(se):[];if(Ht&&Ht.length)xt=!0;else{let ii=se;for(;ii=ii.parentNode;)if(We.statesByElement.get(ii)){xt=!0;break}}}if(this.prepareLeaveAnimationListeners(se),xt)We.markElementAsRemoved(this.id,se,!1,me);else{const Ht=se[$n];(!Ht||Ht===ga)&&(We.afterFlush(()=>this.clearElementCache(se)),We.destroyInnerAnimations(se),We._onRemovalComplete(se,me))}}insertNode(se,me){Ii(se,this._hostClassName)}drainQueuedTransitions(se){const me=[];return this._queue.forEach(We=>{const xt=We.player;if(xt.destroyed)return;const Ht=We.element,ii=this._elementListeners.get(Ht);ii&&ii.forEach(ni=>{if(ni.name==We.triggerName){const Ci=be(Ht,We.triggerName,We.fromState.value,We.toState.value);Ci._data=se,ne(We.player,ni.phase,Ci,ni.callback)}}),xt.markedForDestroy?this._engine.afterFlush(()=>{xt.destroy()}):me.push(We)}),this._queue=[],me.sort((We,xt)=>{const Ht=We.transition.ast.depCount,ii=xt.transition.ast.depCount;return 0==Ht||0==ii?Ht-ii:this._engine.driver.containsElement(We.element,xt.element)?1:-1})}destroy(se){this.players.forEach(me=>me.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,se)}elementContainsData(se){let me=!1;return this._elementListeners.has(se)&&(me=!0),me=!!this._queue.find(We=>We.element===se)||me,me}}class ha{constructor(se,me,We){this.bodyNode=se,this.driver=me,this._normalizer=We,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=(xt,Ht)=>{}}_onRemovalComplete(se,me){this.onRemovalComplete(se,me)}get queuedPlayers(){const se=[];return this._namespaceList.forEach(me=>{me.players.forEach(We=>{We.queued&&se.push(We)})}),se}createNamespace(se,me){const We=new Fr(se,me,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,me)?this._balanceNamespaceList(We,me):(this.newHostElements.set(me,We),this.collectEnterElement(me)),this._namespaceLookup[se]=We}_balanceNamespaceList(se,me){const We=this._namespaceList,xt=this.namespacesByHostElement,Ht=We.length-1;if(Ht>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(me);for(;ni;){const Ci=xt.get(ni);if(Ci){const Pi=We.indexOf(Ci);We.splice(Pi+1,0,se),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Ht;ni>=0;ni--)if(this.driver.containsElement(We[ni].hostElement,me)){We.splice(ni+1,0,se),ii=!0;break}ii||We.unshift(se)}else We.push(se);return xt.set(me,se),se}register(se,me){let We=this._namespaceLookup[se];return We||(We=this.createNamespace(se,me)),We}registerTrigger(se,me,We){let xt=this._namespaceLookup[se];xt&&xt.register(me,We)&&this.totalAnimations++}destroy(se,me){if(!se)return;const We=this._fetchNamespace(se);this.afterFlush(()=>{this.namespacesByHostElement.delete(We.hostElement),delete this._namespaceLookup[se];const xt=this._namespaceList.indexOf(We);xt>=0&&this._namespaceList.splice(xt,1)}),this.afterFlushAnimationsDone(()=>We.destroy(me))}_fetchNamespace(se){return this._namespaceLookup[se]}fetchNamespacesByElement(se){const me=new Set,We=this.statesByElement.get(se);if(We){const xt=Object.keys(We);for(let Ht=0;Ht=0&&this.collectedLeaveElements.splice(ii,1)}if(se){const ii=this._fetchNamespace(se);ii&&ii.insertNode(me,We)}xt&&this.collectEnterElement(me)}collectEnterElement(se){this.collectedEnterElements.push(se)}markElementAsDisabled(se,me){me?this.disabledNodes.has(se)||(this.disabledNodes.add(se),Ii(se,Cr)):this.disabledNodes.has(se)&&(this.disabledNodes.delete(se),nn(se,Cr))}removeNode(se,me,We,xt){if(Mt(me)){const Ht=se?this._fetchNamespace(se):null;if(Ht?Ht.removeNode(me,xt):this.markElementAsRemoved(se,me,!1,xt),We){const ii=this.namespacesByHostElement.get(me);ii&&ii.id!==se&&ii.removeNode(me,xt)}}else this._onRemovalComplete(me,xt)}markElementAsRemoved(se,me,We,xt,Ht){this.collectedLeaveElements.push(me),me[$n]={namespaceId:se,setForRemoval:xt,hasAnimation:We,removedBeforeQueried:!1,previousTriggersValues:Ht}}listen(se,me,We,xt,Ht){return Mt(me)?this._fetchNamespace(se).listen(me,We,xt,Ht):()=>{}}_buildInstruction(se,me,We,xt,Ht){return se.transition.build(this.driver,se.element,se.fromState.value,se.toState.value,We,xt,se.fromState.options,se.toState.options,me,Ht)}destroyInnerAnimations(se){let me=this.driver.query(se,Xe,!0);me.forEach(We=>this.destroyActiveAnimationsForElement(We)),0!=this.playersByQueriedElement.size&&(me=this.driver.query(se,ei,!0),me.forEach(We=>this.finishActiveQueriedAnimationOnElement(We)))}destroyActiveAnimationsForElement(se){const me=this.playersByElement.get(se);me&&me.forEach(We=>{We.queued?We.markedForDestroy=!0:We.destroy()})}finishActiveQueriedAnimationOnElement(se){const me=this.playersByQueriedElement.get(se);me&&me.forEach(We=>We.finish())}whenRenderingDone(){return new Promise(se=>{if(this.players.length)return Te(this.players).onDone(()=>se());se()})}processLeaveNode(se){var me;const We=se[$n];if(We&&We.setForRemoval){if(se[$n]=ga,We.namespaceId){this.destroyInnerAnimations(se);const xt=this._fetchNamespace(We.namespaceId);xt&&xt.clearElementCache(se)}this._onRemovalComplete(se,We.setForRemoval)}(null===(me=se.classList)||void 0===me?void 0:me.contains(Cr))&&this.markElementAsDisabled(se,!1),this.driver.query(se,".ng-animate-disabled",!0).forEach(xt=>{this.markElementAsDisabled(xt,!1)})}flush(se=-1){let me=[];if(this.newHostElements.size&&(this.newHostElements.forEach((We,xt)=>this._balanceNamespaceList(We,xt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let We=0;WeWe()),this._flushFns=[],this._whenQuietFns.length){const We=this._whenQuietFns;this._whenQuietFns=[],me.length?Te(me).onDone(()=>{We.forEach(xt=>xt())}):We.forEach(xt=>xt())}}reportError(se){throw function R(gt){return new e.vHH(3402,b)}()}_flushAnimations(se,me){const We=new Tn,xt=[],Ht=new Map,ii=[],ni=new Map,Ci=new Map,Pi=new Map,en=new Set;this.disabledNodes.forEach(ti=>{en.add(ti);const fi=this.driver.query(ti,".ng-animate-queued",!0);for(let Mi=0;Mi{const Mi=vt+Sn++;vn.set(fi,Mi),ti.forEach(Ki=>Ii(Ki,Mi))});const Qn=[],Mr=new Set,hr=new Set;for(let ti=0;tiMr.add(Ki)):hr.add(fi))}const Zr=new Map,Gr=Si(En,Array.from(Mr));Gr.forEach((ti,fi)=>{const Mi=kt+Sn++;Zr.set(fi,Mi),ti.forEach(Ki=>Ii(Ki,Mi))}),se.push(()=>{kn.forEach((ti,fi)=>{const Mi=vn.get(fi);ti.forEach(Ki=>nn(Ki,Mi))}),Gr.forEach((ti,fi)=>{const Mi=Zr.get(fi);ti.forEach(Ki=>nn(Ki,Mi))}),Qn.forEach(ti=>{this.processLeaveNode(ti)})});const ur=[],zr=[];for(let ti=this._namespaceList.length-1;ti>=0;ti--)this._namespaceList[ti].drainQueuedTransitions(me).forEach(Mi=>{const Ki=Mi.player,$i=Mi.element;if(ur.push(Ki),this.collectedEnterElements.length){const ir=$i[$n];if(ir&&ir.setForMove){if(ir.previousTriggersValues&&ir.previousTriggersValues.has(Mi.triggerName)){const vr=ir.previousTriggersValues.get(Mi.triggerName),pr=this.statesByElement.get(Mi.element);pr&&pr[Mi.triggerName]&&(pr[Mi.triggerName].value=vr)}return void Ki.destroy()}}const sn=!ln||!this.driver.containsElement(ln,$i),bn=Zr.get($i),jn=vn.get($i),In=this._buildInstruction(Mi,We,jn,bn,sn);if(In.errors&&In.errors.length)return void zr.push(In);if(sn)return Ki.onStart(()=>Je($i,In.fromStyles)),Ki.onDestroy(()=>Re($i,In.toStyles)),void xt.push(Ki);if(Mi.isFallbackTransition)return Ki.onStart(()=>Je($i,In.fromStyles)),Ki.onDestroy(()=>Re($i,In.toStyles)),void xt.push(Ki);const Kr=[];In.timelines.forEach(ir=>{ir.stretchStartingKeyframe=!0,this.disabledNodes.has(ir.element)||Kr.push(ir)}),In.timelines=Kr,We.append($i,In.timelines),ii.push({instruction:In,player:Ki,element:$i}),In.queriedElements.forEach(ir=>$(ni,ir,[]).push(Ki)),In.preStyleProps.forEach((ir,vr)=>{const pr=Object.keys(ir);if(pr.length){let Ir=Ci.get(vr);Ir||Ci.set(vr,Ir=new Set),pr.forEach(Br=>Ir.add(Br))}}),In.postStyleProps.forEach((ir,vr)=>{const pr=Object.keys(ir);let Ir=Pi.get(vr);Ir||Pi.set(vr,Ir=new Set),pr.forEach(Br=>Ir.add(Br))})});if(zr.length){const ti=[];zr.forEach(fi=>{ti.push(function Q(gt,se){return new e.vHH(3505,b)}())}),ur.forEach(fi=>fi.destroy()),this.reportError(ti)}const zn=new Map,fr=new Map;ii.forEach(ti=>{const fi=ti.element;We.has(fi)&&(fr.set(fi,fi),this._beforeAnimationBuild(ti.player.namespaceId,ti.instruction,zn))}),xt.forEach(ti=>{const fi=ti.element;this._getPreviousPlayers(fi,!1,ti.namespaceId,ti.triggerName,null).forEach(Ki=>{$(zn,fi,[]).push(Ki),Ki.destroy()})});const ka=Qn.filter(ti=>Ct(ti,Ci,Pi)),tt=new Map;ri(tt,this.driver,hr,Pi,u.l3).forEach(ti=>{Ct(ti,Ci,Pi)&&ka.push(ti)});const Lt=new Map;kn.forEach((ti,fi)=>{ri(Lt,this.driver,new Set(ti),Ci,u.k1)}),ka.forEach(ti=>{const fi=tt.get(ti),Mi=Lt.get(ti);tt.set(ti,Object.assign(Object.assign({},fi),Mi))});const Pt=[],Jt=[],gi={};ii.forEach(ti=>{const{element:fi,player:Mi,instruction:Ki}=ti;if(We.has(fi)){if(en.has(fi))return Mi.onDestroy(()=>Re(fi,Ki.toStyles)),Mi.disabled=!0,Mi.overrideTotalTime(Ki.totalTime),void xt.push(Mi);let $i=gi;if(fr.size>1){let bn=fi;const jn=[];for(;bn=bn.parentNode;){const In=fr.get(bn);if(In){$i=In;break}jn.push(bn)}jn.forEach(In=>fr.set(In,$i))}const sn=this._buildAnimation(Mi.namespaceId,Ki,zn,Ht,Lt,tt);if(Mi.setRealPlayer(sn),$i===gi)Pt.push(Mi);else{const bn=this.playersByElement.get($i);bn&&bn.length&&(Mi.parentPlayer=Te(bn)),xt.push(Mi)}}else Je(fi,Ki.fromStyles),Mi.onDestroy(()=>Re(fi,Ki.toStyles)),Jt.push(Mi),en.has(fi)&&xt.push(Mi)}),Jt.forEach(ti=>{const fi=Ht.get(ti.element);if(fi&&fi.length){const Mi=Te(fi);ti.setRealPlayer(Mi)}}),xt.forEach(ti=>{ti.parentPlayer?ti.syncPlayerEvents(ti.parentPlayer):ti.destroy()});for(let ti=0;ti!sn.destroyed);$i.length?Yn(this,fi,$i):this.processLeaveNode(fi)}return Qn.length=0,Pt.forEach(ti=>{this.players.push(ti),ti.onDone(()=>{ti.destroy();const fi=this.players.indexOf(ti);this.players.splice(fi,1)}),ti.play()}),Pt}elementContainsData(se,me){let We=!1;const xt=me[$n];return xt&&xt.setForRemoval&&(We=!0),this.playersByElement.has(me)&&(We=!0),this.playersByQueriedElement.has(me)&&(We=!0),this.statesByElement.has(me)&&(We=!0),this._fetchNamespace(se).elementContainsData(me)||We}afterFlush(se){this._flushFns.push(se)}afterFlushAnimationsDone(se){this._whenQuietFns.push(se)}_getPreviousPlayers(se,me,We,xt,Ht){let ii=[];if(me){const ni=this.playersByQueriedElement.get(se);ni&&(ii=ni)}else{const ni=this.playersByElement.get(se);if(ni){const Ci=!Ht||Ht==Hr;ni.forEach(Pi=>{Pi.queued||!Ci&&Pi.triggerName!=xt||ii.push(Pi)})}}return(We||xt)&&(ii=ii.filter(ni=>!(We&&We!=ni.namespaceId||xt&&xt!=ni.triggerName))),ii}_beforeAnimationBuild(se,me,We){const Ht=me.element,ii=me.isRemovalTransition?void 0:se,ni=me.isRemovalTransition?void 0:me.triggerName;for(const Ci of me.timelines){const Pi=Ci.element,en=Pi!==Ht,ln=$(We,Pi,[]);this._getPreviousPlayers(Pi,en,ii,ni,me.toState).forEach(kn=>{const vn=kn.getRealPlayer();vn.beforeDestroy&&vn.beforeDestroy(),kn.destroy(),ln.push(kn)})}Je(Ht,me.fromStyles)}_buildAnimation(se,me,We,xt,Ht,ii){const ni=me.triggerName,Ci=me.element,Pi=[],en=new Set,ln=new Set,En=me.timelines.map(vn=>{const Sn=vn.element;en.add(Sn);const Qn=Sn[$n];if(Qn&&Qn.removedBeforeQueried)return new u.ZN(vn.duration,vn.delay);const Mr=Sn!==Ci,hr=function Fn(gt){const se=[];return Tt(gt,se),se}((We.get(Sn)||qn).map(zn=>zn.getRealPlayer())).filter(zn=>!!zn.element&&zn.element===Sn),Zr=Ht.get(Sn),Gr=ii.get(Sn),ur=Ee(0,this._normalizer,0,vn.keyframes,Zr,Gr),zr=this._buildPlayer(vn,ur,hr);if(vn.subTimeline&&xt&&ln.add(Sn),Mr){const zn=new Aa(se,ni,Sn);zn.setRealPlayer(zr),Pi.push(zn)}return zr});Pi.forEach(vn=>{$(this.playersByQueriedElement,vn.element,[]).push(vn),vn.onDone(()=>function Wn(gt,se,me){let We;if(gt instanceof Map){if(We=gt.get(se),We){if(We.length){const xt=We.indexOf(me);We.splice(xt,1)}0==We.length&>.delete(se)}}else if(We=gt[se],We){if(We.length){const xt=We.indexOf(me);We.splice(xt,1)}0==We.length&&delete gt[se]}return We}(this.playersByQueriedElement,vn.element,vn))}),en.forEach(vn=>Ii(vn,_t));const kn=Te(En);return kn.onDestroy(()=>{en.forEach(vn=>nn(vn,_t)),Re(Ci,me.toStyles)}),ln.forEach(vn=>{$(xt,vn,[]).push(kn)}),kn}_buildPlayer(se,me,We){return me.length>0?this.driver.animate(se.element,me,se.duration,se.delay,se.easing,We):new u.ZN(se.duration,se.delay)}}class Aa{constructor(se,me,We){this.namespaceId=se,this.triggerName=me,this.element=We,this._player=new u.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(se){this._containsRealPlayer||(this._player=se,Object.keys(this._queuedCallbacks).forEach(me=>{this._queuedCallbacks[me].forEach(We=>ne(se,me,void 0,We))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(se.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(se){this.totalTime=se}syncPlayerEvents(se){const me=this._player;me.triggerCallback&&se.onStart(()=>me.triggerCallback("start")),se.onDone(()=>this.finish()),se.onDestroy(()=>this.destroy())}_queueEvent(se,me){$(this._queuedCallbacks,se,[]).push(me)}onDone(se){this.queued&&this._queueEvent("done",se),this._player.onDone(se)}onStart(se){this.queued&&this._queueEvent("start",se),this._player.onStart(se)}onDestroy(se){this.queued&&this._queueEvent("destroy",se),this._player.onDestroy(se)}init(){this._player.init()}hasStarted(){return!this.queued&&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(se){this.queued||this._player.setPosition(se)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(se){const me=this._player;me.triggerCallback&&me.triggerCallback(se)}}function Mt(gt){return gt&&1===gt.nodeType}function Ot(gt,se){const me=gt.style.display;return gt.style.display=null!=se?se:"none",me}function ri(gt,se,me,We,xt){const Ht=[];me.forEach(Ci=>Ht.push(Ot(Ci)));const ii=[];We.forEach((Ci,Pi)=>{const en={};Ci.forEach(ln=>{const En=en[ln]=se.computeStyle(Pi,ln,xt);(!En||0==En.length)&&(Pi[$n]=Ma,ii.push(Pi))}),gt.set(Pi,en)});let ni=0;return me.forEach(Ci=>Ot(Ci,Ht[ni++])),ii}function Si(gt,se){const me=new Map;if(gt.forEach(ni=>me.set(ni,[])),0==se.length)return me;const xt=new Set(se),Ht=new Map;function ii(ni){if(!ni)return 1;let Ci=Ht.get(ni);if(Ci)return Ci;const Pi=ni.parentNode;return Ci=me.has(Pi)?Pi:xt.has(Pi)?1:ii(Pi),Ht.set(ni,Ci),Ci}return se.forEach(ni=>{const Ci=ii(ni);1!==Ci&&me.get(Ci).push(ni)}),me}function Ii(gt,se){var me;null===(me=gt.classList)||void 0===me||me.add(se)}function nn(gt,se){var me;null===(me=gt.classList)||void 0===me||me.remove(se)}function Yn(gt,se,me){Te(me).onDone(()=>gt.processLeaveNode(se))}function Tt(gt,se){for(let me=0;mext.add(Ht)):se.set(gt,We),me.delete(gt),!0}class Wt{constructor(se,me,We){this.bodyNode=se,this._driver=me,this._normalizer=We,this._triggerCache={},this.onRemovalComplete=(xt,Ht)=>{},this._transitionEngine=new ha(se,me,We),this._timelineEngine=new Nr(se,me,We),this._transitionEngine.onRemovalComplete=(xt,Ht)=>this.onRemovalComplete(xt,Ht)}registerTrigger(se,me,We,xt,Ht){const ii=se+"-"+xt;let ni=this._triggerCache[ii];if(!ni){const Ci=[],en=an(this._driver,Ht,Ci,[]);if(Ci.length)throw function r(gt,se){return new e.vHH(3404,b)}();ni=function Sr(gt,se,me){return new cr(gt,se,me)}(xt,en,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(me,xt,ni)}register(se,me){this._transitionEngine.register(se,me)}destroy(se,me){this._transitionEngine.destroy(se,me)}onInsert(se,me,We,xt){this._transitionEngine.insertNode(se,me,We,xt)}onRemove(se,me,We,xt){this._transitionEngine.removeNode(se,me,xt||!1,We)}disableAnimations(se,me){this._transitionEngine.markElementAsDisabled(se,me)}process(se,me,We,xt){if("@"==We.charAt(0)){const[Ht,ii]=ke(We);this._timelineEngine.command(Ht,me,ii,xt)}else this._transitionEngine.trigger(se,me,We,xt)}listen(se,me,We,xt,Ht){if("@"==We.charAt(0)){const[ii,ni]=ke(We);return this._timelineEngine.listen(ii,me,ni,Ht)}return this._transitionEngine.listen(se,me,We,xt,Ht)}flush(se=-1){this._transitionEngine.flush(se)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ge=(()=>{class gt{constructor(me,We,xt){this._element=me,this._startStyles=We,this._endStyles=xt,this._state=0;let Ht=gt.initialStylesByElement.get(me);Ht||gt.initialStylesByElement.set(me,Ht={}),this._initialStyles=Ht}start(){this._state<1&&(this._startStyles&&Re(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Re(this._element,this._initialStyles),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(gt.initialStylesByElement.delete(this._element),this._startStyles&&(Je(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Je(this._element,this._endStyles),this._endStyles=null),Re(this._element,this._initialStyles),this._state=3)}}return gt.initialStylesByElement=new WeakMap,gt})();function Be(gt){let se=null;const me=Object.keys(gt);for(let We=0;Wese()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const se=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,se,this.options),this._finalKeyframe=se.length?se[se.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(se,me,We){return se.animate(me,We)}onStart(se){this._onStartFns.push(se)}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(se=>se()),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}_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(se=>se()),this._onDestroyFns=[])}setPosition(se){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=se*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const se={};if(this.hasStarted()){const me=this._finalKeyframe;Object.keys(me).forEach(We=>{"offset"!=We&&(se[We]=this._finished?me[We]:qi(this.element,We))})}this.currentSnapshot=se}triggerCallback(se){const me="start"==se?this._onStartFns:this._onDoneFns;me.forEach(We=>We()),me.length=0}}class Ei{validateStyleProperty(se){return pe(se)}matchesElement(se,me){return!1}containsElement(se,me){return Le(se,me)}getParentElement(se){return he(se)}query(se,me,We){return ot(se,me,We)}computeStyle(se,me,We){return window.getComputedStyle(se)[me]}animate(se,me,We,xt,Ht,ii=[]){const Ci={duration:We,delay:xt,fill:0==xt?"both":"forwards"};Ht&&(Ci.easing=Ht);const Pi={},en=ii.filter(En=>En instanceof wt);(function Xi(gt,se){return 0===gt||0===se})(We,xt)&&en.forEach(En=>{let kn=En.currentSnapshot;Object.keys(kn).forEach(vn=>Pi[vn]=kn[vn])}),me=function ui(gt,se,me){const We=Object.keys(me);if(We.length&&se.length){let Ht=se[0],ii=[];if(We.forEach(ni=>{Ht.hasOwnProperty(ni)||ii.push(ni),Ht[ni]=me[ni]}),ii.length)for(var xt=1;xtft(En,!1)),Pi);const ln=function ki(gt,se){let me=null,We=null;return Array.isArray(se)&&se.length?(me=Be(se[0]),se.length>1&&(We=Be(se[se.length-1]))):se&&(me=Be(se)),me||We?new Ge(gt,me,We):null}(se,me);return new wt(se,me,Ci,ln)}}var Bi=p(9808);let Rn=(()=>{class gt extends u._j{constructor(me,We){super(),this._nextAnimationId=0,this._renderer=me.createRenderer(We.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(me){const We=this._nextAnimationId.toString();this._nextAnimationId++;const xt=Array.isArray(me)?(0,u.vP)(me):me;return qr(this._renderer,null,We,"register",[xt]),new sr(We,this._renderer)}}return gt.\u0275fac=function(me){return new(me||gt)(e.LFG(e.FYo),e.LFG(Bi.K0))},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac}),gt})();class sr extends u.LC{constructor(se,me){super(),this._id=se,this._renderer=me}create(se,me){return new Ca(this._id,se,me||{},this._renderer)}}class Ca{constructor(se,me,We,xt){this.id=se,this.element=me,this._renderer=xt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",We)}_listen(se,me){return this._renderer.listen(this.element,`@@${this.id}:${se}`,me)}_command(se,...me){return qr(this._renderer,this.element,this.id,se,me)}onDone(se){this._listen("done",se)}onStart(se){this._listen("start",se)}onDestroy(se){this._listen("destroy",se)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(se){this._command("setPosition",se)}getPosition(){var se,me;return null!==(me=null===(se=this._renderer.engine.players[+this.id])||void 0===se?void 0:se.getPosition())&&void 0!==me?me:0}}function qr(gt,se,me,We,xt){return gt.setProperty(se,`@@${me}:${We}`,xt)}const Hi="@.disabled";let Vn=(()=>{class gt{constructor(me,We,xt){this.delegate=me,this.engine=We,this._zone=xt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),We.onRemovalComplete=(Ht,ii)=>{const ni=null==ii?void 0:ii.parentNode(Ht);ni&&ii.removeChild(ni,Ht)}}createRenderer(me,We){const Ht=this.delegate.createRenderer(me,We);if(!(me&&We&&We.data&&We.data.animation)){let en=this._rendererCache.get(Ht);return en||(en=new ms("",Ht,this.engine),this._rendererCache.set(Ht,en)),en}const ii=We.id,ni=We.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,me);const Ci=en=>{Array.isArray(en)?en.forEach(Ci):this.engine.registerTrigger(ii,ni,me,en.name,en)};return We.data.animation.forEach(Ci),new _r(this,ni,Ht,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(me,We,xt){me>=0&&meWe(xt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ht=>{const[ii,ni]=Ht;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([We,xt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return gt.\u0275fac=function(me){return new(me||gt)(e.LFG(e.FYo),e.LFG(Wt),e.LFG(e.R0b))},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac}),gt})();class ms{constructor(se,me,We){this.namespaceId=se,this.delegate=me,this.engine=We,this.destroyNode=this.delegate.destroyNode?xt=>me.destroyNode(xt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(se,me){return this.delegate.createElement(se,me)}createComment(se){return this.delegate.createComment(se)}createText(se){return this.delegate.createText(se)}appendChild(se,me){this.delegate.appendChild(se,me),this.engine.onInsert(this.namespaceId,me,se,!1)}insertBefore(se,me,We,xt=!0){this.delegate.insertBefore(se,me,We),this.engine.onInsert(this.namespaceId,me,se,xt)}removeChild(se,me,We){this.engine.onRemove(this.namespaceId,me,this.delegate,We)}selectRootElement(se,me){return this.delegate.selectRootElement(se,me)}parentNode(se){return this.delegate.parentNode(se)}nextSibling(se){return this.delegate.nextSibling(se)}setAttribute(se,me,We,xt){this.delegate.setAttribute(se,me,We,xt)}removeAttribute(se,me,We){this.delegate.removeAttribute(se,me,We)}addClass(se,me){this.delegate.addClass(se,me)}removeClass(se,me){this.delegate.removeClass(se,me)}setStyle(se,me,We,xt){this.delegate.setStyle(se,me,We,xt)}removeStyle(se,me,We){this.delegate.removeStyle(se,me,We)}setProperty(se,me,We){"@"==me.charAt(0)&&me==Hi?this.disableAnimations(se,!!We):this.delegate.setProperty(se,me,We)}setValue(se,me){this.delegate.setValue(se,me)}listen(se,me,We){return this.delegate.listen(se,me,We)}disableAnimations(se,me){this.engine.disableAnimations(se,me)}}class _r extends ms{constructor(se,me,We,xt){super(me,We,xt),this.factory=se,this.namespaceId=me}setProperty(se,me,We){"@"==me.charAt(0)?"."==me.charAt(1)&&me==Hi?this.disableAnimations(se,We=void 0===We||!!We):this.engine.process(this.namespaceId,se,me.substr(1),We):this.delegate.setProperty(se,me,We)}listen(se,me,We){if("@"==me.charAt(0)){const xt=function ss(gt){switch(gt){case"body":return document.body;case"document":return document;case"window":return window;default:return gt}}(se);let Ht=me.substr(1),ii="";return"@"!=Ht.charAt(0)&&([Ht,ii]=function Da(gt){const se=gt.indexOf(".");return[gt.substring(0,se),gt.substr(se+1)]}(Ht)),this.engine.listen(this.namespaceId,xt,Ht,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,We,ni)})}return this.delegate.listen(se,me,We)}}let dr=(()=>{class gt extends Wt{constructor(me,We,xt){super(me.body,We,xt)}ngOnDestroy(){this.flush()}}return gt.\u0275fac=function(me){return new(me||gt)(e.LFG(Bi.K0),e.LFG(hi),e.LFG(rr))},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac}),gt})();const Ia=new e.OlP("AnimationModuleType"),_s=[{provide:u._j,useClass:Rn},{provide:rr,useFactory:function gs(){return new na}},{provide:Wt,useClass:dr},{provide:e.FYo,useFactory:function Cs(gt,se,me){return new Vn(gt,se,me)},deps:[i.se,Wt,e.R0b]}],os=[{provide:hi,useFactory:()=>new Ei},{provide:Ia,useValue:"BrowserAnimations"},..._s],is=[{provide:hi,useClass:At},{provide:Ia,useValue:"NoopAnimations"},..._s];let Vr=(()=>{class gt{static withConfig(me){return{ngModule:gt,providers:me.disableAnimations?is:os}}}return gt.\u0275fac=function(me){return new(me||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({providers:os,imports:[i.b2]}),gt})()},2313:(He,j,p)=>{"use strict";p.d(j,{H7:()=>et,b2:()=>lt,q6:()=>$,se:()=>c,t6:()=>Rt});var e=p(9808),i=p(5e3);class u extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b extends u{static makeCurrent(){(0,e.HT)(new b)}onAndCancel(Fe,rt,at){return Fe.addEventListener(rt,at,!1),()=>{Fe.removeEventListener(rt,at,!1)}}dispatchEvent(Fe,rt){Fe.dispatchEvent(rt)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,rt){return(rt=rt||this.getDefaultDocument()).createElement(Fe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Fe){return Fe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Fe){return Fe instanceof DocumentFragment}getGlobalEventTarget(Fe,rt){return"window"===rt?window:"document"===rt?Fe:"body"===rt?Fe.body:null}getBaseHref(Fe){const rt=function y(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==rt?null:function P(we){h=h||document.createElement("a"),h.setAttribute("href",we);const Fe=h.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(rt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let h,a=null;const D=new i.OlP("TRANSITION_ID"),M=[{provide:i.ip1,useFactory:function T(we,Fe,rt){return()=>{rt.get(i.CZH).donePromise.then(()=>{const at=(0,e.q)(),yt=Fe.querySelectorAll(`style[ng-transition="${we}"]`);for(let mi=0;mi{const mi=Fe.findTestabilityInTree(at,yt);if(null==mi)throw new Error("Could not find testability for element.");return mi},i.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(at=>{const yt=i.dqk.getAllAngularTestabilities();let mi=yt.length,Xt=!1;const qt=function(Xi){Xt=Xt||Xi,mi--,0==mi&&at(Xt)};yt.forEach(function(Xi){Xi.whenStable(qt)})})}findTestabilityInTree(Fe,rt,at){if(null==rt)return null;const yt=Fe.getTestability(rt);return null!=yt?yt:at?(0,e.q)().isShadowRoot(rt)?this.findTestabilityInTree(Fe,rt.host,!0):this.findTestabilityInTree(Fe,rt.parentElement,!0):null}}let E=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const k=new i.OlP("EventManagerPlugins");let w=(()=>{class we{constructor(rt,at){this._zone=at,this._eventNameToPlugin=new Map,rt.forEach(yt=>yt.manager=this),this._plugins=rt.slice().reverse()}addEventListener(rt,at,yt){return this._findPluginFor(at).addEventListener(rt,at,yt)}addGlobalEventListener(rt,at,yt){return this._findPluginFor(at).addGlobalEventListener(rt,at,yt)}getZone(){return this._zone}_findPluginFor(rt){const at=this._eventNameToPlugin.get(rt);if(at)return at;const yt=this._plugins;for(let mi=0;mi{class we{constructor(){this._stylesSet=new Set}addStyles(rt){const at=new Set;rt.forEach(yt=>{this._stylesSet.has(yt)||(this._stylesSet.add(yt),at.add(yt))}),this.onStylesAdded(at)}onStylesAdded(rt){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),Y=(()=>{class we extends U{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,at,yt){rt.forEach(mi=>{const Xt=this._doc.createElement("style");Xt.textContent=mi,yt.push(at.appendChild(Xt))})}addHost(rt){const at=[];this._addStylesToHost(this._stylesSet,rt,at),this._hostNodes.set(rt,at)}removeHost(rt){const at=this._hostNodes.get(rt);at&&at.forEach(ae),this._hostNodes.delete(rt)}onStylesAdded(rt){this._hostNodes.forEach((at,yt)=>{this._addStylesToHost(rt,yt,at)})}ngOnDestroy(){this._hostNodes.forEach(rt=>rt.forEach(ae))}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();function ae(we){(0,e.q)().remove(we)}const X={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/MathML/"},de=/%COMP%/g;function t(we,Fe,rt){for(let at=0;at{if("__ngUnwrap__"===Fe)return we;!1===we(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let c=(()=>{class we{constructor(rt,at,yt){this.eventManager=rt,this.sharedStylesHost=at,this.appId=yt,this.rendererByCompId=new Map,this.defaultRenderer=new g(rt)}createRenderer(rt,at){if(!rt||!at)return this.defaultRenderer;switch(at.encapsulation){case i.ifc.Emulated:{let yt=this.rendererByCompId.get(at.id);return yt||(yt=new C(this.eventManager,this.sharedStylesHost,at,this.appId),this.rendererByCompId.set(at.id,yt)),yt.applyToHost(rt),yt}case 1:case i.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,rt,at);default:if(!this.rendererByCompId.has(at.id)){const yt=t(at.id,at.styles,[]);this.sharedStylesHost.addStyles(yt),this.rendererByCompId.set(at.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(w),i.LFG(Y),i.LFG(i.AFp))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();class g{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,rt){return rt?document.createElementNS(X[rt]||rt,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,rt){Fe.appendChild(rt)}insertBefore(Fe,rt,at){Fe&&Fe.insertBefore(rt,at)}removeChild(Fe,rt){Fe&&Fe.removeChild(rt)}selectRootElement(Fe,rt){let at="string"==typeof Fe?document.querySelector(Fe):Fe;if(!at)throw new Error(`The selector "${Fe}" did not match any elements`);return rt||(at.textContent=""),at}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,rt,at,yt){if(yt){rt=yt+":"+rt;const mi=X[yt];mi?Fe.setAttributeNS(mi,rt,at):Fe.setAttribute(rt,at)}else Fe.setAttribute(rt,at)}removeAttribute(Fe,rt,at){if(at){const yt=X[at];yt?Fe.removeAttributeNS(yt,rt):Fe.removeAttribute(`${at}:${rt}`)}else Fe.removeAttribute(rt)}addClass(Fe,rt){Fe.classList.add(rt)}removeClass(Fe,rt){Fe.classList.remove(rt)}setStyle(Fe,rt,at,yt){yt&(i.JOm.DashCase|i.JOm.Important)?Fe.style.setProperty(rt,at,yt&i.JOm.Important?"important":""):Fe.style[rt]=at}removeStyle(Fe,rt,at){at&i.JOm.DashCase?Fe.style.removeProperty(rt):Fe.style[rt]=""}setProperty(Fe,rt,at){Fe[rt]=at}setValue(Fe,rt){Fe.nodeValue=rt}listen(Fe,rt,at){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,rt,r(at)):this.eventManager.addEventListener(Fe,rt,r(at))}}class C extends g{constructor(Fe,rt,at,yt){super(Fe),this.component=at;const mi=t(yt+"-"+at.id,at.styles,[]);rt.addStyles(mi),this.contentAttr=function _e(we){return"_ngcontent-%COMP%".replace(de,we)}(yt+"-"+at.id),this.hostAttr=function x(we){return"_nghost-%COMP%".replace(de,we)}(yt+"-"+at.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,rt){const at=super.createElement(Fe,rt);return super.setAttribute(at,this.contentAttr,""),at}}class n extends g{constructor(Fe,rt,at,yt){super(Fe),this.sharedStylesHost=rt,this.hostEl=at,this.shadowRoot=at.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=t(yt.id,yt.styles,[]);for(let Xt=0;Xt{class we extends V{constructor(rt){super(rt)}supports(rt){return!0}addEventListener(rt,at,yt){return rt.addEventListener(at,yt,!1),()=>this.removeEventListener(rt,at,yt)}removeEventListener(rt,at,yt){return rt.removeEventListener(at,yt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const B=["alt","control","meta","shift"],H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Z={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let te=(()=>{class we extends V{constructor(rt){super(rt)}supports(rt){return null!=we.parseEventName(rt)}addEventListener(rt,at,yt){const mi=we.parseEventName(at),Xt=we.eventCallback(mi.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(rt,mi.domEventName,Xt))}static parseEventName(rt){const at=rt.toLowerCase().split("."),yt=at.shift();if(0===at.length||"keydown"!==yt&&"keyup"!==yt)return null;const mi=we._normalizeKey(at.pop());let Xt="";if(B.forEach(Xi=>{const ui=at.indexOf(Xi);ui>-1&&(at.splice(ui,1),Xt+=Xi+".")}),Xt+=mi,0!=at.length||0===mi.length)return null;const qt={};return qt.domEventName=yt,qt.fullKey=Xt,qt}static getEventFullKey(rt){let at="",yt=function Te(we){let Fe=we.key;if(null==Fe){if(Fe=we.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===we.location&&Q.hasOwnProperty(Fe)&&(Fe=Q[Fe]))}return H[Fe]||Fe}(rt);return yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),B.forEach(mi=>{mi!=yt&&Z[mi](rt)&&(at+=mi+".")}),at+=yt,at}static eventCallback(rt,at,yt){return mi=>{we.getEventFullKey(mi)===rt&&yt.runGuarded(()=>at(mi))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const $=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:e.bD},{provide:i.g9A,useValue:function Ee(){b.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function ze(){return(0,i.RDi)(document),document},deps:[]}]),ke=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function ne(){return new i.qLn},deps:[]},{provide:k,useClass:_,multi:!0,deps:[e.K0,i.R0b,i.Lbi]},{provide:k,useClass:te,multi:!0,deps:[e.K0]},{provide:c,useClass:c,deps:[w,Y,i.AFp]},{provide:i.FYo,useExisting:c},{provide:U,useExisting:Y},{provide:Y,useClass:Y,deps:[e.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:w,useClass:w,deps:[k,i.R0b]},{provide:e.JF,useClass:E,deps:[]}];let lt=(()=>{class we{constructor(rt){if(rt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(rt){return{ngModule:we,providers:[{provide:i.AFp,useValue:rt.appId},{provide:D,useExisting:i.AFp},M]}}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(we,12))},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:ke,imports:[e.ez,i.hGG]}),we})();"undefined"!=typeof window&&window;const Ie={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},ce=new i.OlP("HammerGestureConfig"),Me=new i.OlP("HammerLoader");let ut=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(rt){const at=new Hammer(rt,this.options);at.get("pinch").set({enable:!0}),at.get("rotate").set({enable:!0});for(const yt in this.overrides)at.get(yt).set(this.overrides[yt]);return at}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),ft=(()=>{class we extends V{constructor(rt,at,yt,mi){super(rt),this._config=at,this.console=yt,this.loader=mi,this._loaderPromise=null}supports(rt){return!(!Ie.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,at,yt){const mi=this.manager.getZone();if(at=at.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Xt=!1,qt=()=>{Xt=!0};return this._loaderPromise.then(()=>{window.Hammer?Xt||(qt=this.addEventListener(rt,at,yt)):qt=()=>{}}).catch(()=>{qt=()=>{}}),()=>{qt()}}return mi.runOutsideAngular(()=>{const Xt=this._config.buildHammer(rt),qt=function(Xi){mi.runGuarded(function(){yt(Xi)})};return Xt.on(at,qt),()=>{Xt.off(at,qt),"function"==typeof Xt.destroy&&Xt.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0),i.LFG(ce),i.LFG(i.c2e),i.LFG(Me,8))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),Rt=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:[{provide:k,useClass:ft,multi:!0,deps:[e.K0,ce,i.c2e,[new i.FiY,Me]]},{provide:ce,useClass:ut,deps:[]}]}),we})(),et=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new(rt||we):i.LFG(Je),at},providedIn:"root"}),we})(),Je=(()=>{class we extends et{constructor(rt){super(),this._doc=rt}sanitize(rt,at){if(null==at)return null;switch(rt){case i.q3G.NONE:return at;case i.q3G.HTML:return(0,i.qzn)(at,"HTML")?(0,i.z3N)(at):(0,i.EiD)(this._doc,String(at)).toString();case i.q3G.STYLE:return(0,i.qzn)(at,"Style")?(0,i.z3N)(at):at;case i.q3G.SCRIPT:if((0,i.qzn)(at,"Script"))return(0,i.z3N)(at);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(at),(0,i.qzn)(at,"URL")?(0,i.z3N)(at):(0,i.mCW)(String(at));case i.q3G.RESOURCE_URL:if((0,i.qzn)(at,"ResourceURL"))return(0,i.z3N)(at);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${rt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(rt){return(0,i.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,i.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,i.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,i.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,i.pB0)(rt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new rt:function Re(we){return new Je(we.get(e.K0))}(i.LFG(i.zs3)),at},providedIn:"root"}),we})()},1402:(He,j,p)=>{"use strict";p.d(j,{gz:()=>Yi,gk:()=>H,m2:()=>R,Q3:()=>Q,OD:()=>B,Av:()=>ne,F0:()=>fr,rH:()=>Et,Od:()=>Jt,yS:()=>Lt,Bz:()=>_a,lC:()=>Cr});var e=p(5e3),i=p(8306),u=p(727),b=p(4482),a=p(5403);function y(){return(0,b.e)((Ce,ge)=>{let fe=null;Ce._refCount++;const Ue=(0,a.x)(ge,void 0,void 0,void 0,()=>{if(!Ce||Ce._refCount<=0||0<--Ce._refCount)return void(fe=null);const nt=Ce._connection,Dt=fe;fe=null,nt&&(!Dt||nt===Dt)&&nt.unsubscribe(),ge.unsubscribe()});Ce.subscribe(Ue),Ue.closed||(fe=Ce.connect())})}class h extends i.y{constructor(ge,fe){super(),this.source=ge,this.subjectFactory=fe,this._subject=null,this._refCount=0,this._connection=null,(0,b.A)(ge)&&(this.lift=ge.lift)}_subscribe(ge){return this.getSubject().subscribe(ge)}getSubject(){const ge=this._subject;return(!ge||ge.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ge}=this;this._subject=this._connection=null,null==ge||ge.unsubscribe()}connect(){let ge=this._connection;if(!ge){ge=this._connection=new u.w0;const fe=this.getSubject();ge.add(this.source.subscribe((0,a.x)(fe,void 0,()=>{this._teardown(),fe.complete()},Ue=>{this._teardown(),fe.error(Ue)},()=>this._teardown()))),ge.closed&&(this._connection=null,ge=u.w0.EMPTY)}return ge}refCount(){return y()(this)}}var P=p(457),D=p(9646),T=p(1135),M=p(9841),A=p(2843),E=p(6805),k=p(7272),w=p(9770),V=p(515),U=p(7579),Y=p(9300);function ae(Ce){return Ce<=0?()=>V.E:(0,b.e)((ge,fe)=>{let Ue=[];ge.subscribe((0,a.x)(fe,nt=>{Ue.push(nt),Ce{for(const nt of Ue)fe.next(nt);fe.complete()},void 0,()=>{Ue=null}))})}var X=p(8068),de=p(6590),q=p(4671),le=p(4004),ee=p(3900),_e=p(5698),x=p(8675),t=p(5026),r=p(262),d=p(4351),c=p(590),g=p(5577),S=p(8505),I=p(8746),C=p(8189),n=p(9808);class _{constructor(ge,fe){this.id=ge,this.url=fe}}class B extends _{constructor(ge,fe,Ue="imperative",nt=null){super(ge,fe),this.navigationTrigger=Ue,this.restoredState=nt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class R extends _{constructor(ge,fe,Ue){super(ge,fe),this.urlAfterRedirects=Ue}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends _{constructor(ge,fe,Ue){super(ge,fe),this.reason=Ue}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Q extends _{constructor(ge,fe,Ue){super(ge,fe),this.error=Ue}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z extends _{constructor(ge,fe,Ue,nt){super(ge,fe),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends _{constructor(ge,fe,Ue,nt){super(ge,fe),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Te extends _{constructor(ge,fe,Ue,nt,Dt){super(ge,fe),this.urlAfterRedirects=Ue,this.state=nt,this.shouldActivate=Dt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends _{constructor(ge,fe,Ue,nt){super(ge,fe),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ne extends _{constructor(ge,fe,Ue,nt){super(ge,fe),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class be{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ${constructor(ge){this.snapshot=ge}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ke{constructor(ge){this.snapshot=ge}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lt{constructor(ge){this.snapshot=ge}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(ge){this.snapshot=ge}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class De{constructor(ge,fe,Ue){this.routerEvent=ge,this.position=fe,this.anchor=Ue}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const he="primary";class Ae{constructor(ge){this.params=ge||{}}has(ge){return Object.prototype.hasOwnProperty.call(this.params,ge)}get(ge){if(this.has(ge)){const fe=this.params[ge];return Array.isArray(fe)?fe[0]:fe}return null}getAll(ge){if(this.has(ge)){const fe=this.params[ge];return Array.isArray(fe)?fe:[fe]}return[]}get keys(){return Object.keys(this.params)}}function xe(Ce){return new Ae(Ce)}const G="ngNavigationCancelingError";function ie(Ce){const ge=Error("NavigationCancelingError: "+Ce);return ge[G]=!0,ge}function ye(Ce,ge,fe){const Ue=fe.path.split("/");if(Ue.length>Ce.length||"full"===fe.pathMatch&&(ge.hasChildren()||Ue.lengthUe[Dt]===nt)}return Ce===ge}function At(Ce){return Array.prototype.concat.apply([],Ce)}function hi(Ce){return Ce.length>0?Ce[Ce.length-1]:null}function Gt(Ce,ge){for(const fe in Ce)Ce.hasOwnProperty(fe)&&ge(Ce[fe],fe)}function di(Ce){return(0,e.CqO)(Ce)?Ce:(0,e.QGY)(Ce)?(0,P.D)(Promise.resolve(Ce)):(0,D.of)(Ce)}const kt={exact:function ei(Ce,ge,fe){if(!et(Ce.segments,ge.segments)||!ce(Ce.segments,ge.segments,fe)||Ce.numberOfChildren!==ge.numberOfChildren)return!1;for(const Ue in ge.children)if(!Ce.children[Ue]||!ei(Ce.children[Ue],ge.children[Ue],fe))return!1;return!0},subset:Pe},mt={exact:function _t(Ce,ge){return ot(Ce,ge)},subset:function Kt(Ce,ge){return Object.keys(ge).length<=Object.keys(Ce).length&&Object.keys(ge).every(fe=>ht(Ce[fe],ge[fe]))},ignored:()=>!0};function Xe(Ce,ge,fe){return kt[fe.paths](Ce.root,ge.root,fe.matrixParams)&&mt[fe.queryParams](Ce.queryParams,ge.queryParams)&&!("exact"===fe.fragment&&Ce.fragment!==ge.fragment)}function Pe(Ce,ge,fe){return Ie(Ce,ge,ge.segments,fe)}function Ie(Ce,ge,fe,Ue){if(Ce.segments.length>fe.length){const nt=Ce.segments.slice(0,fe.length);return!(!et(nt,fe)||ge.hasChildren()||!ce(nt,fe,Ue))}if(Ce.segments.length===fe.length){if(!et(Ce.segments,fe)||!ce(Ce.segments,fe,Ue))return!1;for(const nt in ge.children)if(!Ce.children[nt]||!Pe(Ce.children[nt],ge.children[nt],Ue))return!1;return!0}{const nt=fe.slice(0,Ce.segments.length),Dt=fe.slice(Ce.segments.length);return!!(et(Ce.segments,nt)&&ce(Ce.segments,nt,Ue)&&Ce.children[he])&&Ie(Ce.children[he],ge,Dt,Ue)}}function ce(Ce,ge,fe){return ge.every((Ue,nt)=>mt[fe](Ce[nt].parameters,Ue.parameters))}class Me{constructor(ge,fe,Ue){this.root=ge,this.queryParams=fe,this.fragment=Ue}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return we.serialize(this)}}class ut{constructor(ge,fe){this.segments=ge,this.children=fe,this.parent=null,Gt(fe,(Ue,nt)=>Ue.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fe(this)}}class ft{constructor(ge,fe){this.path=ge,this.parameters=fe}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ui(this)}}function et(Ce,ge){return Ce.length===ge.length&&Ce.every((fe,Ue)=>fe.path===ge[Ue].path)}class Je{}class Ke{parse(ge){const fe=new it(ge);return new Me(fe.parseRootSegment(),fe.parseQueryParams(),fe.parseFragment())}serialize(ge){const fe=`/${rt(ge.root,!0)}`,Ue=function qi(Ce){const ge=Object.keys(Ce).map(fe=>{const Ue=Ce[fe];return Array.isArray(Ue)?Ue.map(nt=>`${yt(fe)}=${yt(nt)}`).join("&"):`${yt(fe)}=${yt(Ue)}`}).filter(fe=>!!fe);return ge.length?`?${ge.join("&")}`:""}(ge.queryParams);return`${fe}${Ue}${"string"==typeof ge.fragment?`#${function mi(Ce){return encodeURI(Ce)}(ge.fragment)}`:""}`}}const we=new Ke;function Fe(Ce){return Ce.segments.map(ge=>ui(ge)).join("/")}function rt(Ce,ge){if(!Ce.hasChildren())return Fe(Ce);if(ge){const fe=Ce.children[he]?rt(Ce.children[he],!1):"",Ue=[];return Gt(Ce.children,(nt,Dt)=>{Dt!==he&&Ue.push(`${Dt}:${rt(nt,!1)}`)}),Ue.length>0?`${fe}(${Ue.join("//")})`:fe}{const fe=function Re(Ce,ge){let fe=[];return Gt(Ce.children,(Ue,nt)=>{nt===he&&(fe=fe.concat(ge(Ue,nt)))}),Gt(Ce.children,(Ue,nt)=>{nt!==he&&(fe=fe.concat(ge(Ue,nt)))}),fe}(Ce,(Ue,nt)=>nt===he?[rt(Ce.children[he],!1)]:[`${nt}:${rt(Ue,!1)}`]);return 1===Object.keys(Ce.children).length&&null!=Ce.children[he]?`${Fe(Ce)}/${fe[0]}`:`${Fe(Ce)}/(${fe.join("//")})`}}function at(Ce){return encodeURIComponent(Ce).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(Ce){return at(Ce).replace(/%3B/gi,";")}function Xt(Ce){return at(Ce).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qt(Ce){return decodeURIComponent(Ce)}function Xi(Ce){return qt(Ce.replace(/\+/g,"%20"))}function ui(Ce){return`${Xt(Ce.path)}${function si(Ce){return Object.keys(Ce).map(ge=>`;${Xt(ge)}=${Xt(Ce[ge])}`).join("")}(Ce.parameters)}`}const Gi=/^[^\/()?;=#]+/;function Ui(Ce){const ge=Ce.match(Gi);return ge?ge[0]:""}const Wi=/^[^=?&#]+/,Ft=/^[^&#]+/;class it{constructor(ge){this.url=ge,this.remaining=ge}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],this.parseChildren())}parseQueryParams(){const ge={};if(this.consumeOptional("?"))do{this.parseQueryParam(ge)}while(this.consumeOptional("&"));return ge}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ge=[];for(this.peekStartsWith("(")||ge.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ge.push(this.parseSegment());let fe={};this.peekStartsWith("/(")&&(this.capture("/"),fe=this.parseParens(!0));let Ue={};return this.peekStartsWith("(")&&(Ue=this.parseParens(!1)),(ge.length>0||Object.keys(fe).length>0)&&(Ue[he]=new ut(ge,fe)),Ue}parseSegment(){const ge=Ui(this.remaining);if(""===ge&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ge),new ft(qt(ge),this.parseMatrixParams())}parseMatrixParams(){const ge={};for(;this.consumeOptional(";");)this.parseParam(ge);return ge}parseParam(ge){const fe=Ui(this.remaining);if(!fe)return;this.capture(fe);let Ue="";if(this.consumeOptional("=")){const nt=Ui(this.remaining);nt&&(Ue=nt,this.capture(Ue))}ge[qt(fe)]=qt(Ue)}parseQueryParam(ge){const fe=function ct(Ce){const ge=Ce.match(Wi);return ge?ge[0]:""}(this.remaining);if(!fe)return;this.capture(fe);let Ue="";if(this.consumeOptional("=")){const Qt=function pt(Ce){const ge=Ce.match(Ft);return ge?ge[0]:""}(this.remaining);Qt&&(Ue=Qt,this.capture(Ue))}const nt=Xi(fe),Dt=Xi(Ue);if(ge.hasOwnProperty(nt)){let Qt=ge[nt];Array.isArray(Qt)||(Qt=[Qt],ge[nt]=Qt),Qt.push(Dt)}else ge[nt]=Dt}parseParens(ge){const fe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ue=Ui(this.remaining),nt=this.remaining[Ue.length];if("/"!==nt&&")"!==nt&&";"!==nt)throw new Error(`Cannot parse url '${this.url}'`);let Dt;Ue.indexOf(":")>-1?(Dt=Ue.substr(0,Ue.indexOf(":")),this.capture(Dt),this.capture(":")):ge&&(Dt=he);const Qt=this.parseChildren();fe[Dt]=1===Object.keys(Qt).length?Qt[he]:new ut([],Qt),this.consumeOptional("//")}return fe}peekStartsWith(ge){return this.remaining.startsWith(ge)}consumeOptional(ge){return!!this.peekStartsWith(ge)&&(this.remaining=this.remaining.substring(ge.length),!0)}capture(ge){if(!this.consumeOptional(ge))throw new Error(`Expected "${ge}".`)}}class It{constructor(ge){this._root=ge}get root(){return this._root.value}parent(ge){const fe=this.pathFromRoot(ge);return fe.length>1?fe[fe.length-2]:null}children(ge){const fe=ue(ge,this._root);return fe?fe.children.map(Ue=>Ue.value):[]}firstChild(ge){const fe=ue(ge,this._root);return fe&&fe.children.length>0?fe.children[0].value:null}siblings(ge){const fe=$e(ge,this._root);return fe.length<2?[]:fe[fe.length-2].children.map(nt=>nt.value).filter(nt=>nt!==ge)}pathFromRoot(ge){return $e(ge,this._root).map(fe=>fe.value)}}function ue(Ce,ge){if(Ce===ge.value)return ge;for(const fe of ge.children){const Ue=ue(Ce,fe);if(Ue)return Ue}return null}function $e(Ce,ge){if(Ce===ge.value)return[ge];for(const fe of ge.children){const Ue=$e(Ce,fe);if(Ue.length)return Ue.unshift(ge),Ue}return[]}class bt{constructor(ge,fe){this.value=ge,this.children=fe}toString(){return`TreeNode(${this.value})`}}function Vt(Ce){const ge={};return Ce&&Ce.children.forEach(fe=>ge[fe.value.outlet]=fe),ge}class yi extends It{constructor(ge,fe){super(ge),this.snapshot=fe,qe(this,ge)}toString(){return this.snapshot.toString()}}function Li(Ce,ge){const fe=function Ji(Ce,ge){const Qt=new Zt([],{},{},"",{},he,ge,null,Ce.root,-1,{});return new bi("",new bt(Qt,[]))}(Ce,ge),Ue=new T.X([new ft("",{})]),nt=new T.X({}),Dt=new T.X({}),Qt=new T.X({}),ai=new T.X(""),Ai=new Yi(Ue,nt,Qt,ai,Dt,he,ge,fe.root);return Ai.snapshot=fe.root,new yi(new bt(Ai,[]),fe)}class Yi{constructor(ge,fe,Ue,nt,Dt,Qt,ai,Ai){this.url=ge,this.params=fe,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this._futureSnapshot=Ai}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._paramMap=this.params.pipe((0,le.U)(ge=>xe(ge)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(ge=>xe(ge)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function an(Ce,ge="emptyOnly"){const fe=Ce.pathFromRoot;let Ue=0;if("always"!==ge)for(Ue=fe.length-1;Ue>=1;){const nt=fe[Ue],Dt=fe[Ue-1];if(nt.routeConfig&&""===nt.routeConfig.path)Ue--;else{if(Dt.component)break;Ue--}}return function pn(Ce){return Ce.reduce((ge,fe)=>({params:Object.assign(Object.assign({},ge.params),fe.params),data:Object.assign(Object.assign({},ge.data),fe.data),resolve:Object.assign(Object.assign({},ge.resolve),fe._resolvedData)}),{params:{},data:{},resolve:{}})}(fe.slice(Ue))}class Zt{constructor(ge,fe,Ue,nt,Dt,Qt,ai,Ai,Vi,xn,zi){this.url=ge,this.params=fe,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this.routeConfig=Ai,this._urlSegment=Vi,this._lastPathIndex=xn,this._resolve=zi}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._paramMap=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ue=>Ue.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class bi extends It{constructor(ge,fe){super(fe),this.url=ge,qe(this,fe)}toString(){return Nt(this._root)}}function qe(Ce,ge){ge.value._routerState=Ce,ge.children.forEach(fe=>qe(Ce,fe))}function Nt(Ce){const ge=Ce.children.length>0?` { ${Ce.children.map(Nt).join(", ")} } `:"";return`${Ce.value}${ge}`}function $t(Ce){if(Ce.snapshot){const ge=Ce.snapshot,fe=Ce._futureSnapshot;Ce.snapshot=fe,ot(ge.queryParams,fe.queryParams)||Ce.queryParams.next(fe.queryParams),ge.fragment!==fe.fragment&&Ce.fragment.next(fe.fragment),ot(ge.params,fe.params)||Ce.params.next(fe.params),function Le(Ce,ge){if(Ce.length!==ge.length)return!1;for(let fe=0;feot(fe.parameters,ge[Ue].parameters))}(Ce.url,ge.url);return fe&&!(!Ce.parent!=!ge.parent)&&(!Ce.parent||pi(Ce.parent,ge.parent))}function Oi(Ce,ge,fe){if(fe&&Ce.shouldReuseRoute(ge.value,fe.value.snapshot)){const Ue=fe.value;Ue._futureSnapshot=ge.value;const nt=function dn(Ce,ge,fe){return ge.children.map(Ue=>{for(const nt of fe.children)if(Ce.shouldReuseRoute(Ue.value,nt.value.snapshot))return Oi(Ce,Ue,nt);return Oi(Ce,Ue)})}(Ce,ge,fe);return new bt(Ue,nt)}{if(Ce.shouldAttach(ge.value)){const Dt=Ce.retrieve(ge.value);if(null!==Dt){const Qt=Dt.route;return Qt.value._futureSnapshot=ge.value,Qt.children=ge.children.map(ai=>Oi(Ce,ai)),Qt}}const Ue=function Nn(Ce){return new Yi(new T.X(Ce.url),new T.X(Ce.params),new T.X(Ce.queryParams),new T.X(Ce.fragment),new T.X(Ce.data),Ce.outlet,Ce.component,Ce)}(ge.value),nt=ge.children.map(Dt=>Oi(Ce,Dt));return new bt(Ue,nt)}}function Kn(Ce){return"object"==typeof Ce&&null!=Ce&&!Ce.outlets&&!Ce.segmentPath}function gn(Ce){return"object"==typeof Ce&&null!=Ce&&Ce.outlets}function wi(Ce,ge,fe,Ue,nt){let Dt={};if(Ue&&Gt(Ue,(ai,Ai)=>{Dt[Ai]=Array.isArray(ai)?ai.map(Vi=>`${Vi}`):`${ai}`}),Ce===ge)return new Me(fe,Dt,nt);const Qt=ji(Ce,ge,fe);return new Me(Qt,Dt,nt)}function ji(Ce,ge,fe){const Ue={};return Gt(Ce.children,(nt,Dt)=>{Ue[Dt]=nt===ge?fe:ji(nt,ge,fe)}),new ut(Ce.segments,Ue)}class yn{constructor(ge,fe,Ue){if(this.isAbsolute=ge,this.numberOfDoubleDots=fe,this.commands=Ue,ge&&Ue.length>0&&Kn(Ue[0]))throw new Error("Root segment cannot have matrix parameters");const nt=Ue.find(gn);if(nt&&nt!==hi(Ue))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ar{constructor(ge,fe,Ue){this.segmentGroup=ge,this.processChildren=fe,this.index=Ue}}function sa(Ce,ge,fe){if(Ce||(Ce=new ut([],{})),0===Ce.segments.length&&Ce.hasChildren())return oa(Ce,ge,fe);const Ue=function La(Ce,ge,fe){let Ue=0,nt=ge;const Dt={match:!1,pathIndex:0,commandIndex:0};for(;nt=fe.length)return Dt;const Qt=Ce.segments[nt],ai=fe[Ue];if(gn(ai))break;const Ai=`${ai}`,Vi=Ue0&&void 0===Ai)break;if(Ai&&Vi&&"object"==typeof Vi&&void 0===Vi.outlets){if(!na(Ai,Vi,Qt))return Dt;Ue+=2}else{if(!na(Ai,{},Qt))return Dt;Ue++}nt++}return{match:!0,pathIndex:nt,commandIndex:Ue}}(Ce,ge,fe),nt=fe.slice(Ue.commandIndex);if(Ue.match&&Ue.pathIndex{"string"==typeof Dt&&(Dt=[Dt]),null!==Dt&&(nt[Qt]=sa(Ce.children[Qt],ge,Dt))}),Gt(Ce.children,(Dt,Qt)=>{void 0===Ue[Qt]&&(nt[Qt]=Dt)}),new ut(Ce.segments,nt)}}function Ta(Ce,ge,fe){const Ue=Ce.segments.slice(0,ge);let nt=0;for(;nt{"string"==typeof fe&&(fe=[fe]),null!==fe&&(ge[Ue]=Ta(new ut([],{}),0,fe))}),ge}function Yr(Ce){const ge={};return Gt(Ce,(fe,Ue)=>ge[Ue]=`${fe}`),ge}function na(Ce,ge,fe){return Ce==fe.path&&ot(ge,fe.parameters)}class Jr{constructor(ge,fe,Ue,nt){this.routeReuseStrategy=ge,this.futureState=fe,this.currState=Ue,this.forwardEvent=nt}activate(ge){const fe=this.futureState._root,Ue=this.currState?this.currState._root:null;this.deactivateChildRoutes(fe,Ue,ge),$t(this.futureState.root),this.activateChildRoutes(fe,Ue,ge)}deactivateChildRoutes(ge,fe,Ue){const nt=Vt(fe);ge.children.forEach(Dt=>{const Qt=Dt.value.outlet;this.deactivateRoutes(Dt,nt[Qt],Ue),delete nt[Qt]}),Gt(nt,(Dt,Qt)=>{this.deactivateRouteAndItsChildren(Dt,Ue)})}deactivateRoutes(ge,fe,Ue){const nt=ge.value,Dt=fe?fe.value:null;if(nt===Dt)if(nt.component){const Qt=Ue.getContext(nt.outlet);Qt&&this.deactivateChildRoutes(ge,fe,Qt.children)}else this.deactivateChildRoutes(ge,fe,Ue);else Dt&&this.deactivateRouteAndItsChildren(fe,Ue)}deactivateRouteAndItsChildren(ge,fe){ge.value.component&&this.routeReuseStrategy.shouldDetach(ge.value.snapshot)?this.detachAndStoreRouteSubtree(ge,fe):this.deactivateRouteAndOutlet(ge,fe)}detachAndStoreRouteSubtree(ge,fe){const Ue=fe.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:fe,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);if(Ue&&Ue.outlet){const Qt=Ue.outlet.detach(),ai=Ue.children.onOutletDeactivated();this.routeReuseStrategy.store(ge.value.snapshot,{componentRef:Qt,route:ge,contexts:ai})}}deactivateRouteAndOutlet(ge,fe){const Ue=fe.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:fe,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);Ue&&Ue.outlet&&(Ue.outlet.deactivate(),Ue.children.onOutletDeactivated(),Ue.attachRef=null,Ue.resolver=null,Ue.route=null)}activateChildRoutes(ge,fe,Ue){const nt=Vt(fe);ge.children.forEach(Dt=>{this.activateRoutes(Dt,nt[Dt.value.outlet],Ue),this.forwardEvent(new W(Dt.value.snapshot))}),ge.children.length&&this.forwardEvent(new ke(ge.value.snapshot))}activateRoutes(ge,fe,Ue){const nt=ge.value,Dt=fe?fe.value:null;if($t(nt),nt===Dt)if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);this.activateChildRoutes(ge,fe,Qt.children)}else this.activateChildRoutes(ge,fe,Ue);else if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);if(this.routeReuseStrategy.shouldAttach(nt.snapshot)){const ai=this.routeReuseStrategy.retrieve(nt.snapshot);this.routeReuseStrategy.store(nt.snapshot,null),Qt.children.onOutletReAttached(ai.contexts),Qt.attachRef=ai.componentRef,Qt.route=ai.route.value,Qt.outlet&&Qt.outlet.attach(ai.componentRef,ai.route.value),$t(ai.route.value),this.activateChildRoutes(ge,null,Qt.children)}else{const ai=function xa(Ce){for(let ge=Ce.parent;ge;ge=ge.parent){const fe=ge.routeConfig;if(fe&&fe._loadedConfig)return fe._loadedConfig;if(fe&&fe.component)return null}return null}(nt.snapshot),Ai=ai?ai.module.componentFactoryResolver:null;Qt.attachRef=null,Qt.route=nt,Qt.resolver=Ai,Qt.outlet&&Qt.outlet.activateWith(nt,Ai),this.activateChildRoutes(ge,null,Qt.children)}}else this.activateChildRoutes(ge,null,Ue)}}class Rr{constructor(ge,fe){this.routes=ge,this.module=fe}}function Xn(Ce){return"function"==typeof Ce}function tr(Ce){return Ce instanceof Me}const Dr=Symbol("INITIAL_VALUE");function Nr(){return(0,ee.w)(Ce=>(0,M.a)(Ce.map(ge=>ge.pipe((0,_e.q)(1),(0,x.O)(Dr)))).pipe((0,t.R)((ge,fe)=>{let Ue=!1;return fe.reduce((nt,Dt,Qt)=>nt!==Dr?nt:(Dt===Dr&&(Ue=!0),Ue||!1!==Dt&&Qt!==fe.length-1&&!tr(Dt)?nt:Dt),ge)},Dr),(0,Y.h)(ge=>ge!==Dr),(0,le.U)(ge=>tr(ge)?ge:!0===ge),(0,_e.q)(1)))}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gr,this.attachRef=null}}class gr{constructor(){this.contexts=new Map}onChildOutletCreated(ge,fe){const Ue=this.getOrCreateContext(ge);Ue.outlet=fe,this.contexts.set(ge,Ue)}onChildOutletDestroyed(ge){const fe=this.getContext(ge);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const ge=this.contexts;return this.contexts=new Map,ge}onOutletReAttached(ge){this.contexts=ge}getOrCreateContext(ge){let fe=this.getContext(ge);return fe||(fe=new Ur,this.contexts.set(ge,fe)),fe}getContext(ge){return this.contexts.get(ge)||null}}let Cr=(()=>{class Ce{constructor(fe,Ue,nt,Dt,Qt){this.parentContexts=fe,this.location=Ue,this.resolver=nt,this.changeDetector=Qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Dt||he,fe.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const fe=this.parentContexts.getContext(this.name);fe&&fe.route&&(fe.attachRef?this.attach(fe.attachRef,fe.route):this.activateWith(fe.route,fe.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const fe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(fe.instance),fe}attach(fe,Ue){this.activated=fe,this._activatedRoute=Ue,this.location.insert(fe.hostView),this.attachEvents.emit(fe.instance)}deactivate(){if(this.activated){const fe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(fe)}}activateWith(fe,Ue){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=fe;const Qt=(Ue=Ue||this.resolver).resolveComponentFactory(fe._futureSnapshot.routeConfig.component),ai=this.parentContexts.getOrCreateContext(this.name).children,Ai=new ra(fe,ai,this.location.injector);this.activated=this.location.createComponent(Qt,this.location.length,Ai),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(gr),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ce})();class ra{constructor(ge,fe,Ue){this.route=ge,this.childContexts=fe,this.parent=Ue}get(ge,fe){return ge===Yi?this.route:ge===gr?this.childContexts:this.parent.get(ge,fe)}}let ca=(()=>{class Ce{}return Ce.\u0275fac=function(fe){return new(fe||Ce)},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["ng-component"]],decls:1,vars:0,template:function(fe,Ue){1&fe&&e._UZ(0,"router-outlet")},directives:[Cr],encapsulation:2}),Ce})();function da(Ce,ge=""){for(let fe=0;fe$n(Ue)===ge);return fe.push(...Ce.filter(Ue=>$n(Ue)!==ge)),fe}const Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xr(Ce,ge,fe){var Ue;if(""===ge.path)return"full"===ge.pathMatch&&(Ce.hasChildren()||fe.length>0)?Object.assign({},Hr):{matched:!0,consumedSegments:[],remainingSegments:fe,parameters:{},positionalParamSegments:{}};const Dt=(ge.matcher||ye)(fe,Ce,ge);if(!Dt)return Object.assign({},Hr);const Qt={};Gt(Dt.posParams,(Ai,Vi)=>{Qt[Vi]=Ai.path});const ai=Dt.consumed.length>0?Object.assign(Object.assign({},Qt),Dt.consumed[Dt.consumed.length-1].parameters):Qt;return{matched:!0,consumedSegments:Dt.consumed,remainingSegments:fe.slice(Dt.consumed.length),parameters:ai,positionalParamSegments:null!==(Ue=Dt.posParams)&&void 0!==Ue?Ue:{}}}function Fr(Ce,ge,fe,Ue,nt="corrected"){if(fe.length>0&&function Wn(Ce,ge,fe){return fe.some(Ue=>Mt(Ce,ge,Ue)&&$n(Ue)!==he)}(Ce,fe,Ue)){const Qt=new ut(ge,function Aa(Ce,ge,fe,Ue){const nt={};nt[he]=Ue,Ue._sourceSegment=Ce,Ue._segmentIndexShift=ge.length;for(const Dt of fe)if(""===Dt.path&&$n(Dt)!==he){const Qt=new ut([],{});Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,nt[$n(Dt)]=Qt}return nt}(Ce,ge,Ue,new ut(fe,Ce.children)));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:[]}}if(0===fe.length&&function Ze(Ce,ge,fe){return fe.some(Ue=>Mt(Ce,ge,Ue))}(Ce,fe,Ue)){const Qt=new ut(Ce.segments,function ha(Ce,ge,fe,Ue,nt,Dt){const Qt={};for(const ai of Ue)if(Mt(Ce,fe,ai)&&!nt[$n(ai)]){const Ai=new ut([],{});Ai._sourceSegment=Ce,Ai._segmentIndexShift="legacy"===Dt?Ce.segments.length:ge.length,Qt[$n(ai)]=Ai}return Object.assign(Object.assign({},nt),Qt)}(Ce,ge,fe,Ue,Ce.children,nt));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:fe}}const Dt=new ut(Ce.segments,Ce.children);return Dt._sourceSegment=Ce,Dt._segmentIndexShift=ge.length,{segmentGroup:Dt,slicedSegments:fe}}function Mt(Ce,ge,fe){return(!(Ce.hasChildren()||ge.length>0)||"full"!==fe.pathMatch)&&""===fe.path}function je(Ce,ge,fe,Ue){return!!($n(Ce)===Ue||Ue!==he&&Mt(ge,fe,Ce))&&("**"===Ce.path||xr(ge,Ce,fe).matched)}function Ot(Ce,ge,fe){return 0===ge.length&&!Ce.children[fe]}class ri{constructor(ge){this.segmentGroup=ge||null}}class Si{constructor(ge){this.urlTree=ge}}function Ii(Ce){return(0,A._)(new ri(Ce))}function nn(Ce){return(0,A._)(new Si(Ce))}class ci{constructor(ge,fe,Ue,nt,Dt){this.configLoader=fe,this.urlSerializer=Ue,this.urlTree=nt,this.config=Dt,this.allowRedirects=!0,this.ngModule=ge.get(e.h0i)}apply(){const ge=Fr(this.urlTree.root,[],[],this.config).segmentGroup,fe=new ut(ge.segments,ge.children);return this.expandSegmentGroup(this.ngModule,this.config,fe,he).pipe((0,le.U)(Dt=>this.createUrlTree(Wt(Dt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(Dt=>{if(Dt instanceof Si)return this.allowRedirects=!1,this.match(Dt.urlTree);throw Dt instanceof ri?this.noMatchError(Dt):Dt}))}match(ge){return this.expandSegmentGroup(this.ngModule,this.config,ge.root,he).pipe((0,le.U)(nt=>this.createUrlTree(Wt(nt),ge.queryParams,ge.fragment))).pipe((0,r.K)(nt=>{throw nt instanceof ri?this.noMatchError(nt):nt}))}noMatchError(ge){return new Error(`Cannot match any routes. URL Segment: '${ge.segmentGroup}'`)}createUrlTree(ge,fe,Ue){const nt=ge.segments.length>0?new ut([],{[he]:ge}):ge;return new Me(nt,fe,Ue)}expandSegmentGroup(ge,fe,Ue,nt){return 0===Ue.segments.length&&Ue.hasChildren()?this.expandChildren(ge,fe,Ue).pipe((0,le.U)(Dt=>new ut([],Dt))):this.expandSegment(ge,Ue,fe,Ue.segments,nt,!0)}expandChildren(ge,fe,Ue){const nt=[];for(const Dt of Object.keys(Ue.children))"primary"===Dt?nt.unshift(Dt):nt.push(Dt);return(0,P.D)(nt).pipe((0,d.b)(Dt=>{const Qt=Ue.children[Dt],ai=Jn(fe,Dt);return this.expandSegmentGroup(ge,ai,Qt,Dt).pipe((0,le.U)(Ai=>({segment:Ai,outlet:Dt})))}),(0,t.R)((Dt,Qt)=>(Dt[Qt.outlet]=Qt.segment,Dt),{}),function re(Ce,ge){const fe=arguments.length>=2;return Ue=>Ue.pipe(Ce?(0,Y.h)((nt,Dt)=>Ce(nt,Dt,Ue)):q.y,ae(1),fe?(0,de.d)(ge):(0,X.T)(()=>new E.K))}())}expandSegment(ge,fe,Ue,nt,Dt,Qt){return(0,P.D)(Ue).pipe((0,d.b)(ai=>this.expandSegmentAgainstRoute(ge,fe,Ue,ai,nt,Dt,Qt).pipe((0,r.K)(Vi=>{if(Vi instanceof ri)return(0,D.of)(null);throw Vi}))),(0,c.P)(ai=>!!ai),(0,r.K)((ai,Ai)=>{if(ai instanceof E.K||"EmptyError"===ai.name)return Ot(fe,nt,Dt)?(0,D.of)(new ut([],{})):Ii(fe);throw ai}))}expandSegmentAgainstRoute(ge,fe,Ue,nt,Dt,Qt,ai){return je(nt,fe,Dt,Qt)?void 0===nt.redirectTo?this.matchSegmentAgainstRoute(ge,fe,nt,Dt,Qt):ai&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ge,fe,Ue,nt,Dt,Qt):Ii(fe):Ii(fe)}expandSegmentAgainstRouteUsingRedirect(ge,fe,Ue,nt,Dt,Qt){return"**"===nt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ge,Ue,nt,Qt):this.expandRegularSegmentAgainstRouteUsingRedirect(ge,fe,Ue,nt,Dt,Qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ge,fe,Ue,nt){const Dt=this.applyRedirectCommands([],Ue.redirectTo,{});return Ue.redirectTo.startsWith("/")?nn(Dt):this.lineralizeSegments(Ue,Dt).pipe((0,g.z)(Qt=>{const ai=new ut(Qt,{});return this.expandSegment(ge,ai,fe,Qt,nt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ge,fe,Ue,nt,Dt,Qt){const{matched:ai,consumedSegments:Ai,remainingSegments:Vi,positionalParamSegments:xn}=xr(fe,nt,Dt);if(!ai)return Ii(fe);const zi=this.applyRedirectCommands(Ai,nt.redirectTo,xn);return nt.redirectTo.startsWith("/")?nn(zi):this.lineralizeSegments(nt,zi).pipe((0,g.z)(hn=>this.expandSegment(ge,fe,Ue,hn.concat(Vi),Qt,!1)))}matchSegmentAgainstRoute(ge,fe,Ue,nt,Dt){if("**"===Ue.path)return Ue.loadChildren?(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.configLoader.load(ge.injector,Ue)).pipe((0,le.U)(zi=>(Ue._loadedConfig=zi,new ut(nt,{})))):(0,D.of)(new ut(nt,{}));const{matched:Qt,consumedSegments:ai,remainingSegments:Ai}=xr(fe,Ue,nt);return Qt?this.getChildConfig(ge,Ue,nt).pipe((0,g.z)(xn=>{const zi=xn.module,hn=xn.routes,{segmentGroup:On,slicedSegments:ns}=Fr(fe,ai,Ai,hn),Ss=new ut(On.segments,On.children);if(0===ns.length&&Ss.hasChildren())return this.expandChildren(zi,hn,Ss).pipe((0,le.U)(lo=>new ut(ai,lo)));if(0===hn.length&&0===ns.length)return(0,D.of)(new ut(ai,{}));const Ko=$n(Ue)===Dt;return this.expandSegment(zi,Ss,hn,ns,Ko?he:Dt,!0).pipe((0,le.U)(Ea=>new ut(ai.concat(Ea.segments),Ea.children)))})):Ii(fe)}getChildConfig(ge,fe,Ue){return fe.children?(0,D.of)(new Rr(fe.children,ge)):fe.loadChildren?void 0!==fe._loadedConfig?(0,D.of)(fe._loadedConfig):this.runCanLoadGuards(ge.injector,fe,Ue).pipe((0,g.z)(nt=>nt?this.configLoader.load(ge.injector,fe).pipe((0,le.U)(Dt=>(fe._loadedConfig=Dt,Dt))):function Fn(Ce){return(0,A._)(ie(`Cannot load children because the guard of the route "path: '${Ce.path}'" returned false`))}(fe))):(0,D.of)(new Rr([],ge))}runCanLoadGuards(ge,fe,Ue){const nt=fe.canLoad;if(!nt||0===nt.length)return(0,D.of)(!0);const Dt=nt.map(Qt=>{const ai=ge.get(Qt);let Ai;if(function Sr(Ce){return Ce&&Xn(Ce.canLoad)}(ai))Ai=ai.canLoad(fe,Ue);else{if(!Xn(ai))throw new Error("Invalid CanLoad guard");Ai=ai(fe,Ue)}return di(Ai)});return(0,D.of)(Dt).pipe(Nr(),(0,S.b)(Qt=>{if(!tr(Qt))return;const ai=ie(`Redirecting to "${this.urlSerializer.serialize(Qt)}"`);throw ai.url=Qt,ai}),(0,le.U)(Qt=>!0===Qt))}lineralizeSegments(ge,fe){let Ue=[],nt=fe.root;for(;;){if(Ue=Ue.concat(nt.segments),0===nt.numberOfChildren)return(0,D.of)(Ue);if(nt.numberOfChildren>1||!nt.children[he])return(0,A._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${ge.redirectTo}'`));nt=nt.children[he]}}applyRedirectCommands(ge,fe,Ue){return this.applyRedirectCreatreUrlTree(fe,this.urlSerializer.parse(fe),ge,Ue)}applyRedirectCreatreUrlTree(ge,fe,Ue,nt){const Dt=this.createSegmentGroup(ge,fe.root,Ue,nt);return new Me(Dt,this.createQueryParams(fe.queryParams,this.urlTree.queryParams),fe.fragment)}createQueryParams(ge,fe){const Ue={};return Gt(ge,(nt,Dt)=>{if("string"==typeof nt&&nt.startsWith(":")){const ai=nt.substring(1);Ue[Dt]=fe[ai]}else Ue[Dt]=nt}),Ue}createSegmentGroup(ge,fe,Ue,nt){const Dt=this.createSegments(ge,fe.segments,Ue,nt);let Qt={};return Gt(fe.children,(ai,Ai)=>{Qt[Ai]=this.createSegmentGroup(ge,ai,Ue,nt)}),new ut(Dt,Qt)}createSegments(ge,fe,Ue,nt){return fe.map(Dt=>Dt.path.startsWith(":")?this.findPosParam(ge,Dt,nt):this.findOrReturn(Dt,Ue))}findPosParam(ge,fe,Ue){const nt=Ue[fe.path.substring(1)];if(!nt)throw new Error(`Cannot redirect to '${ge}'. Cannot find '${fe.path}'.`);return nt}findOrReturn(ge,fe){let Ue=0;for(const nt of fe){if(nt.path===ge.path)return fe.splice(Ue),nt;Ue++}return ge}}function Wt(Ce){const ge={};for(const Ue of Object.keys(Ce.children)){const Dt=Wt(Ce.children[Ue]);(Dt.segments.length>0||Dt.hasChildren())&&(ge[Ue]=Dt)}return function Ct(Ce){if(1===Ce.numberOfChildren&&Ce.children[he]){const ge=Ce.children[he];return new ut(Ce.segments.concat(ge.segments),ge.children)}return Ce}(new ut(Ce.segments,ge))}class Ge{constructor(ge){this.path=ge,this.route=this.path[this.path.length-1]}}class Be{constructor(ge,fe){this.component=ge,this.route=fe}}function Ne(Ce,ge,fe){const Ue=Ce._root;return Rn(Ue,ge?ge._root:null,fe,[Ue.value])}function Ei(Ce,ge,fe){const Ue=function Bi(Ce){if(!Ce)return null;for(let ge=Ce.parent;ge;ge=ge.parent){const fe=ge.routeConfig;if(fe&&fe._loadedConfig)return fe._loadedConfig}return null}(ge);return(Ue?Ue.module.injector:fe).get(Ce)}function Rn(Ce,ge,fe,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Vt(ge);return Ce.children.forEach(Qt=>{(function sr(Ce,ge,fe,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Ce.value,Qt=ge?ge.value:null,ai=fe?fe.getContext(Ce.value.outlet):null;if(Qt&&Dt.routeConfig===Qt.routeConfig){const Ai=function Ca(Ce,ge,fe){if("function"==typeof fe)return fe(Ce,ge);switch(fe){case"pathParamsChange":return!et(Ce.url,ge.url);case"pathParamsOrQueryParamsChange":return!et(Ce.url,ge.url)||!ot(Ce.queryParams,ge.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pi(Ce,ge)||!ot(Ce.queryParams,ge.queryParams);default:return!pi(Ce,ge)}}(Qt,Dt,Dt.routeConfig.runGuardsAndResolvers);Ai?nt.canActivateChecks.push(new Ge(Ue)):(Dt.data=Qt.data,Dt._resolvedData=Qt._resolvedData),Rn(Ce,ge,Dt.component?ai?ai.children:null:fe,Ue,nt),Ai&&ai&&ai.outlet&&ai.outlet.isActivated&&nt.canDeactivateChecks.push(new Be(ai.outlet.component,Qt))}else Qt&&qr(ge,ai,nt),nt.canActivateChecks.push(new Ge(Ue)),Rn(Ce,null,Dt.component?ai?ai.children:null:fe,Ue,nt)})(Qt,Dt[Qt.value.outlet],fe,Ue.concat([Qt.value]),nt),delete Dt[Qt.value.outlet]}),Gt(Dt,(Qt,ai)=>qr(Qt,fe.getContext(ai),nt)),nt}function qr(Ce,ge,fe){const Ue=Vt(Ce),nt=Ce.value;Gt(Ue,(Dt,Qt)=>{qr(Dt,nt.component?ge?ge.children.getContext(Qt):null:ge,fe)}),fe.canDeactivateChecks.push(new Be(nt.component&&ge&&ge.outlet&&ge.outlet.isActivated?ge.outlet.component:null,nt))}class gs{}function Cs(Ce){return new i.y(ge=>ge.error(Ce))}class _s{constructor(ge,fe,Ue,nt,Dt,Qt){this.rootComponentType=ge,this.config=fe,this.urlTree=Ue,this.url=nt,this.paramsInheritanceStrategy=Dt,this.relativeLinkResolution=Qt}recognize(){const ge=Fr(this.urlTree.root,[],[],this.config.filter(Qt=>void 0===Qt.redirectTo),this.relativeLinkResolution).segmentGroup,fe=this.processSegmentGroup(this.config,ge,he);if(null===fe)return null;const Ue=new Zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},he,this.rootComponentType,null,this.urlTree.root,-1,{}),nt=new bt(Ue,fe),Dt=new bi(this.url,nt);return this.inheritParamsAndData(Dt._root),Dt}inheritParamsAndData(ge){const fe=ge.value,Ue=an(fe,this.paramsInheritanceStrategy);fe.params=Object.freeze(Ue.params),fe.data=Object.freeze(Ue.data),ge.children.forEach(nt=>this.inheritParamsAndData(nt))}processSegmentGroup(ge,fe,Ue){return 0===fe.segments.length&&fe.hasChildren()?this.processChildren(ge,fe):this.processSegment(ge,fe,fe.segments,Ue)}processChildren(ge,fe){const Ue=[];for(const Dt of Object.keys(fe.children)){const Qt=fe.children[Dt],ai=Jn(ge,Dt),Ai=this.processSegmentGroup(ai,Qt,Dt);if(null===Ai)return null;Ue.push(...Ai)}const nt=Oa(Ue);return function os(Ce){Ce.sort((ge,fe)=>ge.value.outlet===he?-1:fe.value.outlet===he?1:ge.value.outlet.localeCompare(fe.value.outlet))}(nt),nt}processSegment(ge,fe,Ue,nt){for(const Dt of ge){const Qt=this.processSegmentAgainstRoute(Dt,fe,Ue,nt);if(null!==Qt)return Qt}return Ot(fe,Ue,nt)?[]:null}processSegmentAgainstRoute(ge,fe,Ue,nt){if(ge.redirectTo||!je(ge,fe,Ue,nt))return null;let Dt,Qt=[],ai=[];if("**"===ge.path){const On=Ue.length>0?hi(Ue).parameters:{};Dt=new Zt(Ue,On,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(ge),$n(ge),ge.component,ge,se(fe),me(fe)+Ue.length,xt(ge))}else{const On=xr(fe,ge,Ue);if(!On.matched)return null;Qt=On.consumedSegments,ai=On.remainingSegments,Dt=new Zt(Qt,On.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(ge),$n(ge),ge.component,ge,se(fe),me(fe)+Qt.length,xt(ge))}const Ai=function is(Ce){return Ce.children?Ce.children:Ce.loadChildren?Ce._loadedConfig.routes:[]}(ge),{segmentGroup:Vi,slicedSegments:xn}=Fr(fe,Qt,ai,Ai.filter(On=>void 0===On.redirectTo),this.relativeLinkResolution);if(0===xn.length&&Vi.hasChildren()){const On=this.processChildren(Ai,Vi);return null===On?null:[new bt(Dt,On)]}if(0===Ai.length&&0===xn.length)return[new bt(Dt,[])];const zi=$n(ge)===nt,hn=this.processSegment(Ai,Vi,xn,zi?he:nt);return null===hn?null:[new bt(Dt,hn)]}}function Vr(Ce){const ge=Ce.value.routeConfig;return ge&&""===ge.path&&void 0===ge.redirectTo}function Oa(Ce){const ge=[],fe=new Set;for(const Ue of Ce){if(!Vr(Ue)){ge.push(Ue);continue}const nt=ge.find(Dt=>Ue.value.routeConfig===Dt.value.routeConfig);void 0!==nt?(nt.children.push(...Ue.children),fe.add(nt)):ge.push(Ue)}for(const Ue of fe){const nt=Oa(Ue.children);ge.push(new bt(Ue.value,nt))}return ge.filter(Ue=>!fe.has(Ue))}function se(Ce){let ge=Ce;for(;ge._sourceSegment;)ge=ge._sourceSegment;return ge}function me(Ce){let ge=Ce,fe=ge._segmentIndexShift?ge._segmentIndexShift:0;for(;ge._sourceSegment;)ge=ge._sourceSegment,fe+=ge._segmentIndexShift?ge._segmentIndexShift:0;return fe-1}function We(Ce){return Ce.data||{}}function xt(Ce){return Ce.resolve||{}}function Pi(Ce){return[...Object.keys(Ce),...Object.getOwnPropertySymbols(Ce)]}function ln(Ce){return(0,ee.w)(ge=>{const fe=Ce(ge);return fe?(0,P.D)(fe).pipe((0,le.U)(()=>ge)):(0,D.of)(ge)})}class vn extends class kn{shouldDetach(ge){return!1}store(ge,fe){}shouldAttach(ge){return!1}retrieve(ge){return null}shouldReuseRoute(ge,fe){return ge.routeConfig===fe.routeConfig}}{}const Sn=new e.OlP("ROUTES");class Qn{constructor(ge,fe,Ue,nt){this.injector=ge,this.compiler=fe,this.onLoadStartListener=Ue,this.onLoadEndListener=nt}load(ge,fe){if(fe._loader$)return fe._loader$;this.onLoadStartListener&&this.onLoadStartListener(fe);const nt=this.loadModuleFactory(fe.loadChildren).pipe((0,le.U)(Dt=>{this.onLoadEndListener&&this.onLoadEndListener(fe);const Qt=Dt.create(ge);return new Rr(At(Qt.injector.get(Sn,void 0,e.XFs.Self|e.XFs.Optional)).map(Ma),Qt)}),(0,r.K)(Dt=>{throw fe._loader$=void 0,Dt}));return fe._loader$=new h(nt,()=>new U.x).pipe(y()),fe._loader$}loadModuleFactory(ge){return di(ge()).pipe((0,g.z)(fe=>fe instanceof e.YKP?(0,D.of)(fe):(0,P.D)(this.compiler.compileModuleAsync(fe))))}}class hr{shouldProcessUrl(ge){return!0}extract(ge){return ge}merge(ge,fe){return ge}}function Zr(Ce){throw Ce}function Gr(Ce,ge,fe){return ge.parse("/")}function ur(Ce,ge){return(0,D.of)(null)}const zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fr=(()=>{class Ce{constructor(fe,Ue,nt,Dt,Qt,ai,Ai){this.rootComponentType=fe,this.urlSerializer=Ue,this.rootContexts=nt,this.location=Dt,this.config=Ai,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U.x,this.errorHandler=Zr,this.malformedUriErrorHandler=Gr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ur,afterPreactivation:ur},this.urlHandlingStrategy=new hr,this.routeReuseStrategy=new vn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Qt.get(e.h0i),this.console=Qt.get(e.c2e);const zi=Qt.get(e.R0b);this.isNgZoneEnabled=zi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ai),this.currentUrlTree=function vt(){return new Me(new ut([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qn(Qt,ai,hn=>this.triggerEvent(new ze(hn)),hn=>this.triggerEvent(new be(hn))),this.routerState=Li(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var fe;return null===(fe=this.location.getState())||void 0===fe?void 0:fe.\u0275routerPageId}setupNavigations(fe){const Ue=this.events;return fe.pipe((0,Y.h)(nt=>0!==nt.id),(0,le.U)(nt=>Object.assign(Object.assign({},nt),{extractedUrl:this.urlHandlingStrategy.extract(nt.rawUrl)})),(0,ee.w)(nt=>{let Dt=!1,Qt=!1;return(0,D.of)(nt).pipe((0,S.b)(ai=>{this.currentNavigation={id:ai.id,initialUrl:ai.currentRawUrl,extractedUrl:ai.extractedUrl,trigger:ai.source,extras:ai.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ee.w)(ai=>{const Ai=this.browserUrlTree.toString(),Vi=!this.navigated||ai.extractedUrl.toString()!==Ai||Ai!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Vi)&&this.urlHandlingStrategy.shouldProcessUrl(ai.rawUrl))return tt(ai.source)&&(this.browserUrlTree=ai.extractedUrl),(0,D.of)(ai).pipe((0,ee.w)(zi=>{const hn=this.transitions.getValue();return Ue.next(new B(zi.id,this.serializeUrl(zi.extractedUrl),zi.source,zi.restoredState)),hn!==this.transitions.getValue()?V.E:Promise.resolve(zi)}),function ki(Ce,ge,fe,Ue){return(0,ee.w)(nt=>function Tt(Ce,ge,fe,Ue,nt){return new ci(Ce,ge,fe,Ue,nt).apply()}(Ce,ge,fe,nt.extractedUrl,Ue).pipe((0,le.U)(Dt=>Object.assign(Object.assign({},nt),{urlAfterRedirects:Dt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,S.b)(zi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:zi.urlAfterRedirects})}),function Ht(Ce,ge,fe,Ue,nt){return(0,g.z)(Dt=>function Ia(Ce,ge,fe,Ue,nt="emptyOnly",Dt="legacy"){try{const Qt=new _s(Ce,ge,fe,Ue,nt,Dt).recognize();return null===Qt?Cs(new gs):(0,D.of)(Qt)}catch(Qt){return Cs(Qt)}}(Ce,ge,Dt.urlAfterRedirects,fe(Dt.urlAfterRedirects),Ue,nt).pipe((0,le.U)(Qt=>Object.assign(Object.assign({},Dt),{targetSnapshot:Qt}))))}(this.rootComponentType,this.config,zi=>this.serializeUrl(zi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,S.b)(zi=>{if("eager"===this.urlUpdateStrategy){if(!zi.extras.skipLocationChange){const On=this.urlHandlingStrategy.merge(zi.urlAfterRedirects,zi.rawUrl);this.setBrowserUrl(On,zi)}this.browserUrlTree=zi.urlAfterRedirects}const hn=new Z(zi.id,this.serializeUrl(zi.extractedUrl),this.serializeUrl(zi.urlAfterRedirects),zi.targetSnapshot);Ue.next(hn)}));if(Vi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:hn,extractedUrl:On,source:ns,restoredState:Ss,extras:Ko}=ai,B1=new B(hn,this.serializeUrl(On),ns,Ss);Ue.next(B1);const Ea=Li(On,this.rootComponentType).snapshot;return(0,D.of)(Object.assign(Object.assign({},ai),{targetSnapshot:Ea,urlAfterRedirects:On,extras:Object.assign(Object.assign({},Ko),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ai.rawUrl,ai.resolve(null),V.E}),ln(ai=>{const{targetSnapshot:Ai,id:Vi,extractedUrl:xn,rawUrl:zi,extras:{skipLocationChange:hn,replaceUrl:On}}=ai;return this.hooks.beforePreactivation(Ai,{navigationId:Vi,appliedUrlTree:xn,rawUrlTree:zi,skipLocationChange:!!hn,replaceUrl:!!On})}),(0,S.b)(ai=>{const Ai=new te(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot);this.triggerEvent(Ai)}),(0,le.U)(ai=>Object.assign(Object.assign({},ai),{guards:Ne(ai.targetSnapshot,ai.currentSnapshot,this.rootContexts)})),function $a(Ce,ge){return(0,g.z)(fe=>{const{targetSnapshot:Ue,currentSnapshot:nt,guards:{canActivateChecks:Dt,canDeactivateChecks:Qt}}=fe;return 0===Qt.length&&0===Dt.length?(0,D.of)(Object.assign(Object.assign({},fe),{guardsResult:!0})):function Hi(Ce,ge,fe,Ue){return(0,P.D)(Ce).pipe((0,g.z)(nt=>function dr(Ce,ge,fe,Ue,nt){const Dt=ge&&ge.routeConfig?ge.routeConfig.canDeactivate:null;if(!Dt||0===Dt.length)return(0,D.of)(!0);const Qt=Dt.map(ai=>{const Ai=Ei(ai,ge,nt);let Vi;if(function jr(Ce){return Ce&&Xn(Ce.canDeactivate)}(Ai))Vi=di(Ai.canDeactivate(Ce,ge,fe,Ue));else{if(!Xn(Ai))throw new Error("Invalid CanDeactivate guard");Vi=di(Ai(Ce,ge,fe,Ue))}return Vi.pipe((0,c.P)())});return(0,D.of)(Qt).pipe(Nr())}(nt.component,nt.route,fe,ge,Ue)),(0,c.P)(nt=>!0!==nt,!0))}(Qt,Ue,nt,Ce).pipe((0,g.z)(ai=>ai&&function la(Ce){return"boolean"==typeof Ce}(ai)?function Vn(Ce,ge,fe,Ue){return(0,P.D)(ge).pipe((0,d.b)(nt=>(0,k.z)(function _r(Ce,ge){return null!==Ce&&ge&&ge(new $(Ce)),(0,D.of)(!0)}(nt.route.parent,Ue),function ms(Ce,ge){return null!==Ce&&ge&&ge(new lt(Ce)),(0,D.of)(!0)}(nt.route,Ue),function Da(Ce,ge,fe){const Ue=ge[ge.length-1],Dt=ge.slice(0,ge.length-1).reverse().map(Qt=>function wt(Ce){const ge=Ce.routeConfig?Ce.routeConfig.canActivateChild:null;return ge&&0!==ge.length?{node:Ce,guards:ge}:null}(Qt)).filter(Qt=>null!==Qt).map(Qt=>(0,w.P)(()=>{const ai=Qt.guards.map(Ai=>{const Vi=Ei(Ai,Qt.node,fe);let xn;if(function ma(Ce){return Ce&&Xn(Ce.canActivateChild)}(Vi))xn=di(Vi.canActivateChild(Ue,Ce));else{if(!Xn(Vi))throw new Error("Invalid CanActivateChild guard");xn=di(Vi(Ue,Ce))}return xn.pipe((0,c.P)())});return(0,D.of)(ai).pipe(Nr())}));return(0,D.of)(Dt).pipe(Nr())}(Ce,nt.path,fe),function ss(Ce,ge,fe){const Ue=ge.routeConfig?ge.routeConfig.canActivate:null;if(!Ue||0===Ue.length)return(0,D.of)(!0);const nt=Ue.map(Dt=>(0,w.P)(()=>{const Qt=Ei(Dt,ge,fe);let ai;if(function cr(Ce){return Ce&&Xn(Ce.canActivate)}(Qt))ai=di(Qt.canActivate(ge,Ce));else{if(!Xn(Qt))throw new Error("Invalid CanActivate guard");ai=di(Qt(ge,Ce))}return ai.pipe((0,c.P)())}));return(0,D.of)(nt).pipe(Nr())}(Ce,nt.route,fe))),(0,c.P)(nt=>!0!==nt,!0))}(Ue,Dt,Ce,ge):(0,D.of)(ai)),(0,le.U)(ai=>Object.assign(Object.assign({},fe),{guardsResult:ai})))})}(this.ngModule.injector,ai=>this.triggerEvent(ai)),(0,S.b)(ai=>{if(tr(ai.guardsResult)){const Vi=ie(`Redirecting to "${this.serializeUrl(ai.guardsResult)}"`);throw Vi.url=ai.guardsResult,Vi}const Ai=new Te(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot,!!ai.guardsResult);this.triggerEvent(Ai)}),(0,Y.h)(ai=>!!ai.guardsResult||(this.restoreHistory(ai),this.cancelNavigationTransition(ai,""),!1)),ln(ai=>{if(ai.guards.canActivateChecks.length)return(0,D.of)(ai).pipe((0,S.b)(Ai=>{const Vi=new Ee(Ai.id,this.serializeUrl(Ai.extractedUrl),this.serializeUrl(Ai.urlAfterRedirects),Ai.targetSnapshot);this.triggerEvent(Vi)}),(0,ee.w)(Ai=>{let Vi=!1;return(0,D.of)(Ai).pipe(function ii(Ce,ge){return(0,g.z)(fe=>{const{targetSnapshot:Ue,guards:{canActivateChecks:nt}}=fe;if(!nt.length)return(0,D.of)(fe);let Dt=0;return(0,P.D)(nt).pipe((0,d.b)(Qt=>function ni(Ce,ge,fe,Ue){return function Ci(Ce,ge,fe,Ue){const nt=Pi(Ce);if(0===nt.length)return(0,D.of)({});const Dt={};return(0,P.D)(nt).pipe((0,g.z)(Qt=>function en(Ce,ge,fe,Ue){const nt=Ei(Ce,ge,Ue);return di(nt.resolve?nt.resolve(ge,fe):nt(ge,fe))}(Ce[Qt],ge,fe,Ue).pipe((0,S.b)(ai=>{Dt[Qt]=ai}))),ae(1),(0,g.z)(()=>Pi(Dt).length===nt.length?(0,D.of)(Dt):V.E))}(Ce._resolve,Ce,ge,Ue).pipe((0,le.U)(Dt=>(Ce._resolvedData=Dt,Ce.data=Object.assign(Object.assign({},Ce.data),an(Ce,fe).resolve),null)))}(Qt.route,Ue,Ce,ge)),(0,S.b)(()=>Dt++),ae(1),(0,g.z)(Qt=>Dt===nt.length?(0,D.of)(fe):V.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,S.b)({next:()=>Vi=!0,complete:()=>{Vi||(this.restoreHistory(Ai),this.cancelNavigationTransition(Ai,"At least one route resolver didn't emit any value."))}}))}),(0,S.b)(Ai=>{const Vi=new ne(Ai.id,this.serializeUrl(Ai.extractedUrl),this.serializeUrl(Ai.urlAfterRedirects),Ai.targetSnapshot);this.triggerEvent(Vi)}))}),ln(ai=>{const{targetSnapshot:Ai,id:Vi,extractedUrl:xn,rawUrl:zi,extras:{skipLocationChange:hn,replaceUrl:On}}=ai;return this.hooks.afterPreactivation(Ai,{navigationId:Vi,appliedUrlTree:xn,rawUrlTree:zi,skipLocationChange:!!hn,replaceUrl:!!On})}),(0,le.U)(ai=>{const Ai=function Ri(Ce,ge,fe){const Ue=Oi(Ce,ge._root,fe?fe._root:void 0);return new yi(Ue,ge)}(this.routeReuseStrategy,ai.targetSnapshot,ai.currentRouterState);return Object.assign(Object.assign({},ai),{targetRouterState:Ai})}),(0,S.b)(ai=>{this.currentUrlTree=ai.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ai.urlAfterRedirects,ai.rawUrl),this.routerState=ai.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ai.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ai),this.browserUrlTree=ai.urlAfterRedirects)}),((Ce,ge,fe)=>(0,le.U)(Ue=>(new Jr(ge,Ue.targetRouterState,Ue.currentRouterState,fe).activate(Ce),Ue)))(this.rootContexts,this.routeReuseStrategy,ai=>this.triggerEvent(ai)),(0,S.b)({next(){Dt=!0},complete(){Dt=!0}}),(0,I.x)(()=>{var ai;Dt||Qt||this.cancelNavigationTransition(nt,`Navigation ID ${nt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ai=this.currentNavigation)||void 0===ai?void 0:ai.id)===nt.id&&(this.currentNavigation=null)}),(0,r.K)(ai=>{if(Qt=!0,function pe(Ce){return Ce&&Ce[G]}(ai)){const Ai=tr(ai.url);Ai||(this.navigated=!0,this.restoreHistory(nt,!0));const Vi=new H(nt.id,this.serializeUrl(nt.extractedUrl),ai.message);Ue.next(Vi),Ai?setTimeout(()=>{const xn=this.urlHandlingStrategy.merge(ai.url,this.rawUrlTree),zi={skipLocationChange:nt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tt(nt.source)};this.scheduleNavigation(xn,"imperative",null,zi,{resolve:nt.resolve,reject:nt.reject,promise:nt.promise})},0):nt.resolve(!1)}else{this.restoreHistory(nt,!0);const Ai=new Q(nt.id,this.serializeUrl(nt.extractedUrl),ai);Ue.next(Ai);try{nt.resolve(this.errorHandler(ai))}catch(Vi){nt.reject(Vi)}}return V.E}))}))}resetRootComponentType(fe){this.rootComponentType=fe,this.routerState.root.component=this.rootComponentType}setTransition(fe){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),fe))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(fe=>{const Ue="popstate"===fe.type?"popstate":"hashchange";"popstate"===Ue&&setTimeout(()=>{var nt;const Dt={replaceUrl:!0},Qt=(null===(nt=fe.state)||void 0===nt?void 0:nt.navigationId)?fe.state:null;if(Qt){const Ai=Object.assign({},Qt);delete Ai.navigationId,delete Ai.\u0275routerPageId,0!==Object.keys(Ai).length&&(Dt.state=Ai)}const ai=this.parseUrl(fe.url);this.scheduleNavigation(ai,Ue,Qt,Dt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(fe){this.events.next(fe)}resetConfig(fe){da(fe),this.config=fe.map(Ma),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(fe,Ue={}){const{relativeTo:nt,queryParams:Dt,fragment:Qt,queryParamsHandling:ai,preserveFragment:Ai}=Ue,Vi=nt||this.routerState.root,xn=Ai?this.currentUrlTree.fragment:Qt;let zi=null;switch(ai){case"merge":zi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Dt);break;case"preserve":zi=this.currentUrlTree.queryParams;break;default:zi=Dt||null}return null!==zi&&(zi=this.removeEmptyProps(zi)),function Tn(Ce,ge,fe,Ue,nt){if(0===fe.length)return wi(ge.root,ge.root,ge.root,Ue,nt);const Dt=function Gn(Ce){if("string"==typeof Ce[0]&&1===Ce.length&&"/"===Ce[0])return new yn(!0,0,Ce);let ge=0,fe=!1;const Ue=Ce.reduce((nt,Dt,Qt)=>{if("object"==typeof Dt&&null!=Dt){if(Dt.outlets){const ai={};return Gt(Dt.outlets,(Ai,Vi)=>{ai[Vi]="string"==typeof Ai?Ai.split("/"):Ai}),[...nt,{outlets:ai}]}if(Dt.segmentPath)return[...nt,Dt.segmentPath]}return"string"!=typeof Dt?[...nt,Dt]:0===Qt?(Dt.split("/").forEach((ai,Ai)=>{0==Ai&&"."===ai||(0==Ai&&""===ai?fe=!0:".."===ai?ge++:""!=ai&&nt.push(ai))}),nt):[...nt,Dt]},[]);return new yn(fe,ge,Ue)}(fe);if(Dt.toRoot())return wi(ge.root,ge.root,new ut([],{}),Ue,nt);const Qt=function kr(Ce,ge,fe){if(Ce.isAbsolute)return new ar(ge.root,!0,0);if(-1===fe.snapshot._lastPathIndex){const Dt=fe.snapshot._urlSegment;return new ar(Dt,Dt===ge.root,0)}const Ue=Kn(Ce.commands[0])?0:1;return function Pr(Ce,ge,fe){let Ue=Ce,nt=ge,Dt=fe;for(;Dt>nt;){if(Dt-=nt,Ue=Ue.parent,!Ue)throw new Error("Invalid number of '../'");nt=Ue.segments.length}return new ar(Ue,!1,nt-Dt)}(fe.snapshot._urlSegment,fe.snapshot._lastPathIndex+Ue,Ce.numberOfDoubleDots)}(Dt,ge,Ce),ai=Qt.processChildren?oa(Qt.segmentGroup,Qt.index,Dt.commands):sa(Qt.segmentGroup,Qt.index,Dt.commands);return wi(ge.root,Qt.segmentGroup,ai,Ue,nt)}(Vi,this.currentUrlTree,fe,zi,null!=xn?xn:null)}navigateByUrl(fe,Ue={skipLocationChange:!1}){const nt=tr(fe)?fe:this.parseUrl(fe),Dt=this.urlHandlingStrategy.merge(nt,this.rawUrlTree);return this.scheduleNavigation(Dt,"imperative",null,Ue)}navigate(fe,Ue={skipLocationChange:!1}){return function ka(Ce){for(let ge=0;ge{const Dt=fe[nt];return null!=Dt&&(Ue[nt]=Dt),Ue},{})}processNavigations(){this.navigations.subscribe(fe=>{this.navigated=!0,this.lastSuccessfulId=fe.id,this.currentPageId=fe.targetPageId,this.events.next(new R(fe.id,this.serializeUrl(fe.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,fe.resolve(!0)},fe=>{this.console.warn(`Unhandled Navigation Error: ${fe}`)})}scheduleNavigation(fe,Ue,nt,Dt,Qt){var ai,Ai;if(this.disposed)return Promise.resolve(!1);let Vi,xn,zi;Qt?(Vi=Qt.resolve,xn=Qt.reject,zi=Qt.promise):zi=new Promise((ns,Ss)=>{Vi=ns,xn=Ss});const hn=++this.navigationId;let On;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(nt=this.location.getState()),On=nt&&nt.\u0275routerPageId?nt.\u0275routerPageId:Dt.replaceUrl||Dt.skipLocationChange?null!==(ai=this.browserPageId)&&void 0!==ai?ai:0:(null!==(Ai=this.browserPageId)&&void 0!==Ai?Ai:0)+1):On=0,this.setTransition({id:hn,targetPageId:On,source:Ue,restoredState:nt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:fe,extras:Dt,resolve:Vi,reject:xn,promise:zi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),zi.catch(ns=>Promise.reject(ns))}setBrowserUrl(fe,Ue){const nt=this.urlSerializer.serialize(fe),Dt=Object.assign(Object.assign({},Ue.extras.state),this.generateNgRouterState(Ue.id,Ue.targetPageId));this.location.isCurrentPathEqualTo(nt)||Ue.extras.replaceUrl?this.location.replaceState(nt,"",Dt):this.location.go(nt,"",Dt)}restoreHistory(fe,Ue=!1){var nt,Dt;if("computed"===this.canceledNavigationResolution){const Qt=this.currentPageId-fe.targetPageId;"popstate"!==fe.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(nt=this.currentNavigation)||void 0===nt?void 0:nt.finalUrl)||0===Qt?this.currentUrlTree===(null===(Dt=this.currentNavigation)||void 0===Dt?void 0:Dt.finalUrl)&&0===Qt&&(this.resetState(fe),this.browserUrlTree=fe.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Qt)}else"replace"===this.canceledNavigationResolution&&(Ue&&this.resetState(fe),this.resetUrlToCurrentUrlTree())}resetState(fe){this.routerState=fe.currentRouterState,this.currentUrlTree=fe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,fe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(fe,Ue){const nt=new H(fe.id,this.serializeUrl(fe.extractedUrl),Ue);this.triggerEvent(nt),fe.resolve(!1)}generateNgRouterState(fe,Ue){return"computed"===this.canceledNavigationResolution?{navigationId:fe,\u0275routerPageId:Ue}:{navigationId:fe}}}return Ce.\u0275fac=function(fe){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function tt(Ce){return"imperative"!==Ce}let Et=(()=>{class Ce{constructor(fe,Ue,nt,Dt,Qt){this.router=fe,this.route=Ue,this.tabIndexAttribute=nt,this.renderer=Dt,this.el=Qt,this.commands=null,this.onChanges=new U.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(fe){if(null!=this.tabIndexAttribute)return;const Ue=this.renderer,nt=this.el.nativeElement;null!==fe?Ue.setAttribute(nt,"tabindex",fe):Ue.removeAttribute(nt,"tabindex")}ngOnChanges(fe){this.onChanges.next(this)}set routerLink(fe){null!=fe?(this.commands=Array.isArray(fe)?fe:[fe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const fe={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,fe),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(fr),e.Y36(Yi),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(fe,Ue){1&fe&&e.NdJ("click",function(){return Ue.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})(),Lt=(()=>{class Ce{constructor(fe,Ue,nt){this.router=fe,this.route=Ue,this.locationStrategy=nt,this.commands=null,this.href=null,this.onChanges=new U.x,this.subscription=fe.events.subscribe(Dt=>{Dt instanceof R&&this.updateTargetUrlAndHref()})}set routerLink(fe){this.commands=null!=fe?Array.isArray(fe)?fe:[fe]:null}ngOnChanges(fe){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(fe,Ue,nt,Dt,Qt){if(0!==fe||Ue||nt||Dt||Qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ai={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ai),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(fr),e.Y36(Yi),e.Y36(n.S$))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(fe,Ue){1&fe&&e.NdJ("click",function(Dt){return Ue.onClick(Dt.button,Dt.ctrlKey,Dt.shiftKey,Dt.altKey,Dt.metaKey)}),2&fe&&e.uIk("target",Ue.target)("href",Ue.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})();function Pt(Ce){return""===Ce||!!Ce}let Jt=(()=>{class Ce{constructor(fe,Ue,nt,Dt,Qt,ai){this.router=fe,this.element=Ue,this.renderer=nt,this.cdr=Dt,this.link=Qt,this.linkWithHref=ai,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=fe.events.subscribe(Ai=>{Ai instanceof R&&this.update()})}ngAfterContentInit(){(0,D.of)(this.links.changes,this.linksWithHrefs.changes,(0,D.of)(null)).pipe((0,C.J)()).subscribe(fe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var fe;null===(fe=this.linkInputChangesSubscription)||void 0===fe||fe.unsubscribe();const Ue=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(nt=>!!nt).map(nt=>nt.onChanges);this.linkInputChangesSubscription=(0,P.D)(Ue).pipe((0,C.J)()).subscribe(nt=>{this.isActive!==this.isLinkActive(this.router)(nt)&&this.update()})}set routerLinkActive(fe){const Ue=Array.isArray(fe)?fe:fe.split(" ");this.classes=Ue.filter(nt=>!!nt)}ngOnChanges(fe){this.update()}ngOnDestroy(){var fe;this.routerEventsSubscription.unsubscribe(),null===(fe=this.linkInputChangesSubscription)||void 0===fe||fe.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const fe=this.hasActiveLinks();this.isActive!==fe&&(this.isActive=fe,this.cdr.markForCheck(),this.classes.forEach(Ue=>{fe?this.renderer.addClass(this.element.nativeElement,Ue):this.renderer.removeClass(this.element.nativeElement,Ue)}),this.isActiveChange.emit(fe))})}isLinkActive(fe){const Ue=function gi(Ce){return!!Ce.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return nt=>!!nt.urlTree&&fe.isActive(nt.urlTree,Ue)}hasActiveLinks(){const fe=this.isLinkActive(this.router);return this.link&&fe(this.link)||this.linkWithHref&&fe(this.linkWithHref)||this.links.some(fe)||this.linksWithHrefs.some(fe)}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.Y36(fr),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Et,8),e.Y36(Lt,8))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLinkActive",""]],contentQueries:function(fe,Ue,nt){if(1&fe&&(e.Suo(nt,Et,5),e.Suo(nt,Lt,5)),2&fe){let Dt;e.iGM(Dt=e.CRH())&&(Ue.links=Dt),e.iGM(Dt=e.CRH())&&(Ue.linksWithHrefs=Dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ce})();class ti{}class Mi{preload(ge,fe){return(0,D.of)(null)}}let Ki=(()=>{class Ce{constructor(fe,Ue,nt,Dt){this.router=fe,this.injector=nt,this.preloadingStrategy=Dt,this.loader=new Qn(nt,Ue,Ai=>fe.triggerEvent(new ze(Ai)),Ai=>fe.triggerEvent(new be(Ai)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Y.h)(fe=>fe instanceof R),(0,d.b)(()=>this.preload())).subscribe(()=>{})}preload(){const fe=this.injector.get(e.h0i);return this.processRoutes(fe,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(fe,Ue){const nt=[];for(const Dt of Ue)if(Dt.loadChildren&&!Dt.canLoad&&Dt._loadedConfig){const Qt=Dt._loadedConfig;nt.push(this.processRoutes(Qt.module,Qt.routes))}else Dt.loadChildren&&!Dt.canLoad?nt.push(this.preloadConfig(fe,Dt)):Dt.children&&nt.push(this.processRoutes(fe,Dt.children));return(0,P.D)(nt).pipe((0,C.J)(),(0,le.U)(Dt=>{}))}preloadConfig(fe,Ue){return this.preloadingStrategy.preload(Ue,()=>(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.loader.load(fe.injector,Ue)).pipe((0,g.z)(Dt=>(Ue._loadedConfig=Dt,this.processRoutes(Dt.module,Dt.routes)))))}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.LFG(fr),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(ti))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),$i=(()=>{class Ce{constructor(fe,Ue,nt={}){this.router=fe,this.viewportScroller=Ue,this.options=nt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},nt.scrollPositionRestoration=nt.scrollPositionRestoration||"disabled",nt.anchorScrolling=nt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(fe=>{fe instanceof B?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=fe.navigationTrigger,this.restoredId=fe.restoredState?fe.restoredState.navigationId:0):fe instanceof R&&(this.lastId=fe.id,this.scheduleScrollEvent(fe,this.router.parseUrl(fe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(fe=>{fe instanceof De&&(fe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(fe.position):fe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(fe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(fe,Ue){this.router.triggerEvent(new De(fe,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ue))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ce.\u0275fac=function(fe){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const bn=new e.OlP("ROUTER_CONFIGURATION"),jn=new e.OlP("ROUTER_FORROOT_GUARD"),In=[n.Ye,{provide:Je,useClass:Ke},{provide:fr,useFactory:function Br(Ce,ge,fe,Ue,nt,Dt,Qt={},ai,Ai){const Vi=new fr(null,Ce,ge,fe,Ue,nt,At(Dt));return ai&&(Vi.urlHandlingStrategy=ai),Ai&&(Vi.routeReuseStrategy=Ai),function Na(Ce,ge){Ce.errorHandler&&(ge.errorHandler=Ce.errorHandler),Ce.malformedUriErrorHandler&&(ge.malformedUriErrorHandler=Ce.malformedUriErrorHandler),Ce.onSameUrlNavigation&&(ge.onSameUrlNavigation=Ce.onSameUrlNavigation),Ce.paramsInheritanceStrategy&&(ge.paramsInheritanceStrategy=Ce.paramsInheritanceStrategy),Ce.relativeLinkResolution&&(ge.relativeLinkResolution=Ce.relativeLinkResolution),Ce.urlUpdateStrategy&&(ge.urlUpdateStrategy=Ce.urlUpdateStrategy),Ce.canceledNavigationResolution&&(ge.canceledNavigationResolution=Ce.canceledNavigationResolution)}(Qt,Vi),Qt.enableTracing&&Vi.events.subscribe(xn=>{var zi,hn;null===(zi=console.group)||void 0===zi||zi.call(console,`Router Event: ${xn.constructor.name}`),console.log(xn.toString()),console.log(xn),null===(hn=console.groupEnd)||void 0===hn||hn.call(console)}),Vi},deps:[Je,gr,n.Ye,e.zs3,e.Sil,Sn,bn,[class Mr{},new e.FiY],[class En{},new e.FiY]]},gr,{provide:Yi,useFactory:function za(Ce){return Ce.routerState.root},deps:[fr]},Ki,Mi,class fi{preload(ge,fe){return fe().pipe((0,r.K)(()=>(0,D.of)(null)))}},{provide:bn,useValue:{enableTracing:!1}}];function Kr(){return new e.PXZ("Router",fr)}let _a=(()=>{class Ce{constructor(fe,Ue){}static forRoot(fe,Ue){return{ngModule:Ce,providers:[In,Ir(fe),{provide:jn,useFactory:pr,deps:[[fr,new e.FiY,new e.tp0]]},{provide:bn,useValue:Ue||{}},{provide:n.S$,useFactory:vr,deps:[n.lw,[new e.tBr(n.mr),new e.FiY],bn]},{provide:$i,useFactory:ir,deps:[fr,n.EM,bn]},{provide:ti,useExisting:Ue&&Ue.preloadingStrategy?Ue.preloadingStrategy:Mi},{provide:e.PXZ,multi:!0,useFactory:Kr},[Qa,{provide:e.ip1,multi:!0,useFactory:ve,deps:[Qa]},{provide:K,useFactory:Qe,deps:[Qa]},{provide:e.tb,multi:!0,useExisting:K}]]}}static forChild(fe){return{ngModule:Ce,providers:[Ir(fe)]}}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.LFG(jn,8),e.LFG(fr,8))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();function ir(Ce,ge,fe){return fe.scrollOffset&&ge.setOffset(fe.scrollOffset),new $i(Ce,ge,fe)}function vr(Ce,ge,fe={}){return fe.useHash?new n.Do(Ce,ge):new n.b0(Ce,ge)}function pr(Ce){return"guarded"}function Ir(Ce){return[{provide:e.deG,multi:!0,useValue:Ce},{provide:Sn,multi:!0,useValue:Ce}]}let Qa=(()=>{class Ce{constructor(fe){this.injector=fe,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ue=null;const nt=new Promise(ai=>Ue=ai),Dt=this.injector.get(fr),Qt=this.injector.get(bn);return"disabled"===Qt.initialNavigation?(Dt.setUpLocationChangeListener(),Ue(!0)):"enabled"===Qt.initialNavigation||"enabledBlocking"===Qt.initialNavigation?(Dt.hooks.afterPreactivation=()=>this.initNavigation?(0,D.of)(null):(this.initNavigation=!0,Ue(!0),this.resultOfPreactivationDone),Dt.initialNavigation()):Ue(!0),nt})}bootstrapListener(fe){const Ue=this.injector.get(bn),nt=this.injector.get(Ki),Dt=this.injector.get($i),Qt=this.injector.get(fr),ai=this.injector.get(e.z2F);fe===ai.components[0]&&(("enabledNonBlocking"===Ue.initialNavigation||void 0===Ue.initialNavigation)&&Qt.initialNavigation(),nt.setUpPreloading(),Dt.init(),Qt.resetRootComponentType(ai.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ce.\u0275fac=function(fe){return new(fe||Ce)(e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function ve(Ce){return Ce.appInitializer.bind(Ce)}function Qe(Ce){return Ce.bootstrapListener.bind(Ce)}const K=new e.OlP("Router Initializer")},9444:(He,j,p)=>{"use strict";p.d(j,{BN:()=>Zr,uH:()=>ka});var e=p(5e3);function i(tt,Et){var Lt=Object.keys(tt);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(tt);Et&&(Pt=Pt.filter(function(Jt){return Object.getOwnPropertyDescriptor(tt,Jt).enumerable})),Lt.push.apply(Lt,Pt)}return Lt}function u(tt){for(var Et=1;Ettt.length)&&(Et=tt.length);for(var Lt=0,Pt=new Array(Et);Lt0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Ie(tt){for(var Et=[],Lt=(tt||[]).length>>>0;Lt--;)Et[Lt]=tt[Lt];return Et}function ce(tt){return tt.classList?Ie(tt.classList):(tt.getAttribute("class")||"").split(" ").filter(function(Et){return Et})}function Me(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ft(tt){return Object.keys(tt||{}).reduce(function(Et,Lt){return Et+"".concat(Lt,": ").concat(tt[Lt].trim(),";")},"")}function Rt(tt){return tt.size!==_t.size||tt.x!==_t.x||tt.y!==_t.y||tt.rotate!==_t.rotate||tt.flipX||tt.flipY}function Ke(){var Et=H,Lt=vt.familyPrefix,Pt=vt.replacementClass,Jt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==Lt||Pt!==Et){var gi=new RegExp("\\.".concat("fa","\\-"),"g"),ti=new RegExp("\\--".concat("fa","\\-"),"g"),fi=new RegExp("\\.".concat(Et),"g");Jt=Jt.replace(gi,".".concat(Lt,"-")).replace(ti,"--".concat(Lt,"-")).replace(fi,".".concat(Pt))}return Jt}var we=!1;function Fe(){vt.autoAddCss&&!we&&(function ei(tt){if(tt&&C){var Et=c.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var Lt=c.head.childNodes,Pt=null,Jt=Lt.length-1;Jt>-1;Jt--){var gi=Lt[Jt],ti=(gi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ti)>-1&&(Pt=gi)}c.head.insertBefore(Et,Pt)}}(Ke()),we=!0)}var rt={mixout:function(){return{dom:{css:Ke,insertCss:Fe}}},hooks:function(){return{beforeDOMElementCreation:function(){Fe()},beforeI2svg:function(){Fe()}}}},at=d||{};at[_]||(at[_]={}),at[_].styles||(at[_].styles={}),at[_].hooks||(at[_].hooks={}),at[_].shims||(at[_].shims=[]);var yt=at[_],mi=[],qt=!1;function Xi(tt){!C||(qt?setTimeout(tt,0):mi.push(tt))}function ui(tt){var Et=tt.tag,Lt=tt.attributes,Pt=void 0===Lt?{}:Lt,Jt=tt.children,gi=void 0===Jt?[]:Jt;return"string"==typeof tt?Me(tt):"<".concat(Et," ").concat(function ut(tt){return Object.keys(tt||{}).reduce(function(Et,Lt){return Et+"".concat(Lt,'="').concat(Me(tt[Lt]),'" ')},"").trim()}(Pt),">").concat(gi.map(ui).join(""),"")}function si(tt,Et,Lt){if(tt&&tt[Et]&&tt[Et][Lt])return{prefix:Et,iconName:Lt,icon:tt[Et][Lt]}}C&&((qt=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function tt(){c.removeEventListener("DOMContentLoaded",tt),qt=1,mi.map(function(Et){return Et()})}));var Gi=function(Et,Lt,Pt,Jt){var Mi,Ki,$i,gi=Object.keys(Et),ti=gi.length,fi=void 0!==Jt?function(Et,Lt){return function(Pt,Jt,gi,ti){return Et.call(Lt,Pt,Jt,gi,ti)}}(Lt,Jt):Lt;for(void 0===Pt?(Mi=1,$i=Et[gi[0]]):(Mi=0,$i=Pt);Mi=55296&&Jt<=56319&&Lt2&&void 0!==arguments[2]?arguments[2]:{},Pt=Lt.skipHooks,Jt=void 0!==Pt&&Pt,gi=Ft(Et);"function"!=typeof yt.hooks.addPack||Jt?yt.styles[tt]=u(u({},yt.styles[tt]||{}),gi):yt.hooks.addPack(tt,Ft(Et)),"fas"===tt&&pt("fa",Et)}var It=yt.styles,ue=yt.shims,$e=Object.values(W),bt=null,Vt={},yi={},Li={},Ji={},Yi={},an=Object.keys(ke);function Zt(tt,Et){var Lt=Et.split("-"),Pt=Lt[0],Jt=Lt.slice(1).join("-");return Pt!==tt||""===Jt||function pn(tt){return~ot.indexOf(tt)}(Jt)?null:Jt}var bi=function(){var Et=function(gi){return Gi(It,function(ti,fi,Mi){return ti[Mi]=Gi(fi,gi,{}),ti},{})};Vt=Et(function(Jt,gi,ti){return gi[3]&&(Jt[gi[3]]=ti),gi[2]&&gi[2].filter(function(Mi){return"number"==typeof Mi}).forEach(function(Mi){Jt[Mi.toString(16)]=ti}),Jt}),yi=Et(function(Jt,gi,ti){return Jt[ti]=ti,gi[2]&&gi[2].filter(function(Mi){return"string"==typeof Mi}).forEach(function(Mi){Jt[Mi]=ti}),Jt}),Yi=Et(function(Jt,gi,ti){var fi=gi[2];return Jt[ti]=ti,fi.forEach(function(Mi){Jt[Mi]=ti}),Jt});var Lt="far"in It||vt.autoFetchSvg,Pt=Gi(ue,function(Jt,gi){var ti=gi[0],fi=gi[1],Mi=gi[2];return"far"===fi&&!Lt&&(fi="fas"),"string"==typeof ti&&(Jt.names[ti]={prefix:fi,iconName:Mi}),"number"==typeof ti&&(Jt.unicodes[ti.toString(16)]={prefix:fi,iconName:Mi}),Jt},{names:{},unicodes:{}});Li=Pt.names,Ji=Pt.unicodes,bt=Nn(vt.styleDefault)};function qe(tt,Et){return(Vt[tt]||{})[Et]}function $t(tt,Et){return(Yi[tt]||{})[Et]}function pi(tt){return Li[tt]||{prefix:null,iconName:null}}function Oi(){return bt}function Nn(tt){return lt[tt]||lt[ke[tt]]||(tt in yt.styles?tt:null)||null}function Tn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Lt=Et.skipLookups,Pt=void 0!==Lt&&Lt,Jt=null,gi=tt.reduce(function(ti,fi){var Mi=Zt(vt.familyPrefix,fi);if(It[fi]?(fi=$e.includes(fi)?De[fi]:fi,Jt=fi,ti.prefix=fi):an.indexOf(fi)>-1?(Jt=fi,ti.prefix=Nn(fi)):Mi?ti.iconName=Mi:fi!==vt.replacementClass&&ti.rest.push(fi),!Pt&&ti.prefix&&ti.iconName){var Ki="fa"===Jt?pi(ti.iconName):{},$i=$t(ti.prefix,ti.iconName);Ki.prefix&&(Jt=null),ti.iconName=Ki.iconName||$i||ti.iconName,ti.prefix=Ki.prefix||ti.prefix,"far"===ti.prefix&&!It.far&&It.fas&&!vt.autoFetchSvg&&(ti.prefix="fas")}return ti},{prefix:null,iconName:null,rest:[]});return("fa"===gi.prefix||"fa"===Jt)&&(gi.prefix=Oi()||"fas"),gi}(function mt(tt){kt.push(tt)})(function(tt){bt=Nn(tt.styleDefault)}),bi();var Kn=function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function P(tt,Et,Lt){Et&&h(tt.prototype,Et),Lt&&h(tt,Lt),Object.defineProperty(tt,"prototype",{writable:!1})}(tt,[{key:"add",value:function(){for(var Lt=this,Pt=arguments.length,Jt=new Array(Pt),gi=0;gi0&&$i.forEach(function(sn){"string"==typeof sn&&(Lt[fi][sn]=Ki)}),Lt[fi][Mi]=Ki}),Lt}}]),tt}(),gn=[],wi={},ji={},yn=Object.keys(ji);function ar(tt,Et){for(var Lt=arguments.length,Pt=new Array(Lt>2?Lt-2:0),Jt=2;Jt1?Et-1:0),Pt=1;Pt0&&void 0!==arguments[0]?arguments[0]:{};return C?(kr("beforeI2svg",Et),Pr("pseudoElements2svg",Et),Pr("i2svg",Et)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Lt=Et.autoReplaceSvgRoot;!1===vt.autoReplaceSvg&&(vt.autoReplaceSvg=!0),vt.observeMutations=!0,Xi(function(){Yr({autoReplaceSvgRoot:Lt}),kr("watch",Et)})}},rr={noAuto:function(){vt.autoReplaceSvg=!1,vt.observeMutations=!1,kr("noAuto")},config:vt,dom:La,parse:{icon:function(Et){if(null===Et)return null;if("object"===b(Et)&&Et.prefix&&Et.iconName)return{prefix:Et.prefix,iconName:$t(Et.prefix,Et.iconName)||Et.iconName};if(Array.isArray(Et)&&2===Et.length){var Lt=0===Et[1].indexOf("fa-")?Et[1].slice(3):Et[1],Pt=Nn(Et[0]);return{prefix:Pt,iconName:$t(Pt,Lt)||Lt}}if("string"==typeof Et&&(Et.indexOf("".concat(vt.familyPrefix,"-"))>-1||Et.match(he))){var Jt=Tn(Et.split(" "),{skipLookups:!0});return{prefix:Jt.prefix||Oi(),iconName:$t(Jt.prefix,Jt.iconName)||Jt.iconName}}if("string"==typeof Et){var gi=Oi();return{prefix:gi,iconName:$t(gi,Et)||Et}}}},library:sa,findIconDefinition:ia,toHtml:ui},Yr=function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Lt=Et.autoReplaceSvgRoot,Pt=void 0===Lt?c:Lt;(Object.keys(yt.styles).length>0||vt.autoFetchSvg)&&C&&vt.autoReplaceSvg&&rr.dom.i2svg({node:Pt})};function na(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(Pt){return ui(Pt)})}}),Object.defineProperty(tt,"node",{get:function(){if(C){var Pt=c.createElement("div");return Pt.innerHTML=tt.html,Pt.children}}}),tt}function xa(tt){var Et=tt.icons,Lt=Et.main,Pt=Et.mask,Jt=tt.prefix,gi=tt.iconName,ti=tt.transform,fi=tt.symbol,Mi=tt.title,Ki=tt.maskId,$i=tt.titleId,sn=tt.extra,bn=tt.watchable,jn=void 0!==bn&&bn,In=Pt.found?Pt:Lt,Kr=In.width,_a=In.height,ir="fak"===Jt,vr=[vt.replacementClass,gi?"".concat(vt.familyPrefix,"-").concat(gi):""].filter(function(ve){return-1===sn.classes.indexOf(ve)}).filter(function(ve){return""!==ve||!!ve}).concat(sn.classes).join(" "),pr={children:[],attributes:u(u({},sn.attributes),{},{"data-prefix":Jt,"data-icon":gi,class:vr,role:sn.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Kr," ").concat(_a)})},Ir=ir&&!~sn.classes.indexOf("fa-fw")?{width:"".concat(Kr/_a*16*.0625,"em")}:{};jn&&(pr.attributes[Q]=""),Mi&&(pr.children.push({tag:"title",attributes:{id:pr.attributes["aria-labelledby"]||"title-".concat($i||Pe())},children:[Mi]}),delete pr.attributes.title);var Br=u(u({},pr),{},{prefix:Jt,iconName:gi,main:Lt,mask:Pt,maskId:Ki,transform:ti,symbol:fi,styles:u(u({},Ir),sn.styles)}),Na=Pt.found&&Lt.found?Pr("generateAbstractMask",Br)||{children:[],attributes:{}}:Pr("generateAbstractIcon",Br)||{children:[],attributes:{}},Qa=Na.attributes;return Br.children=Na.children,Br.attributes=Qa,fi?function Jr(tt){var Lt=tt.iconName,Pt=tt.children,Jt=tt.attributes,gi=tt.symbol,ti=!0===gi?"".concat(tt.prefix,"-").concat(vt.familyPrefix,"-").concat(Lt):gi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u(u({},Jt),{},{id:ti}),children:Pt}]}]}(Br):function Ra(tt){var Et=tt.children,Lt=tt.main,Pt=tt.mask,Jt=tt.attributes,gi=tt.styles,ti=tt.transform;if(Rt(ti)&&Lt.found&&!Pt.found){var Ki={x:Lt.width/Lt.height/2,y:.5};Jt.style=ft(u(u({},gi),{},{"transform-origin":"".concat(Ki.x+ti.x/16,"em ").concat(Ki.y+ti.y/16,"em")}))}return[{tag:"svg",attributes:Jt,children:Et}]}(Br)}function Rr(tt){var Et=tt.content,Lt=tt.width,Pt=tt.height,Jt=tt.transform,gi=tt.title,ti=tt.extra,fi=tt.watchable,Mi=void 0!==fi&&fi,Ki=u(u(u({},ti.attributes),gi?{title:gi}:{}),{},{class:ti.classes.join(" ")});Mi&&(Ki[Q]="");var $i=u({},ti.styles);Rt(Jt)&&($i.transform=function Re(tt){var Et=tt.transform,Lt=tt.width,Jt=tt.height,gi=void 0===Jt?16:Jt,ti=tt.startCentered,fi=void 0!==ti&&ti,Mi="";return Mi+=fi&&n?"translate(".concat(Et.x/16-(void 0===Lt?16:Lt)/2,"em, ").concat(Et.y/16-gi/2,"em) "):fi?"translate(calc(-50% + ".concat(Et.x/16,"em), calc(-50% + ").concat(Et.y/16,"em)) "):"translate(".concat(Et.x/16,"em, ").concat(Et.y/16,"em) "),(Mi+="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "))+"rotate(".concat(Et.rotate,"deg) ")}({transform:Jt,startCentered:!0,width:Lt,height:Pt}),$i["-webkit-transform"]=$i.transform);var sn=ft($i);sn.length>0&&(Ki.style=sn);var bn=[];return bn.push({tag:"span",attributes:Ki,children:[Et]}),gi&&bn.push({tag:"span",attributes:{class:"sr-only"},children:[gi]}),bn}function Xn(tt){var Et=tt.content,Lt=tt.title,Pt=tt.extra,Jt=u(u(u({},Pt.attributes),Lt?{title:Lt}:{}),{},{class:Pt.classes.join(" ")}),gi=ft(Pt.styles);gi.length>0&&(Jt.style=gi);var ti=[];return ti.push({tag:"span",attributes:Jt,children:[Et]}),Lt&&ti.push({tag:"span",attributes:{class:"sr-only"},children:[Lt]}),ti}var la=yt.styles;function tr(tt){var Et=tt[0],Lt=tt[1],gi=A(tt.slice(4),1)[0];return{found:!0,width:Et,height:Lt,icon:Array.isArray(gi)?{tag:"g",attributes:{class:"".concat(vt.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:gi[0]}},{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("primary"),fill:"currentColor",d:gi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:gi}}}}var Sr={found:!1,width:512,height:512};function ma(tt,Et){var Lt=Et;return"fa"===Et&&null!==vt.styleDefault&&(Et=Oi()),new Promise(function(Pt,Jt){if(Pr("missingIconAbstract"),"fa"===Lt){var ti=pi(tt)||{};tt=ti.iconName||tt,Et=ti.prefix||Et}if(tt&&Et&&la[Et]&&la[Et][tt])return Pt(tr(la[Et][tt]));(function cr(tt,Et){!$&&!vt.showMissingIcons&&tt&&console.error('Icon with name "'.concat(tt,'" and prefix "').concat(Et,'" is missing.'))})(tt,Et),Pt(u(u({},Sr),{},{icon:vt.showMissingIcons&&tt&&Pr("missingIconAbstract")||{}}))})}var jr=function(){},Dr=vt.measurePerformance&&S&&S.mark&&S.measure?S:{mark:jr,measure:jr},Nr='FA "6.1.2"',Cr_begin=function(Et){return Dr.mark("".concat(Nr," ").concat(Et," begins")),function(){return function(Et){Dr.mark("".concat(Nr," ").concat(Et," ends")),Dr.measure("".concat(Nr," ").concat(Et),"".concat(Nr," ").concat(Et," begins"),"".concat(Nr," ").concat(Et," ends"))}(Et)}},ra=function(){};function ca(tt){return"string"==typeof(tt.getAttribute?tt.getAttribute(Q):null)}function Ma(tt){return c.createElementNS("http://www.w3.org/2000/svg",tt)}function $n(tt){return c.createElement(tt)}function Jn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Lt=Et.ceFn,Pt=void 0===Lt?"svg"===tt.tag?Ma:$n:Lt;if("string"==typeof tt)return c.createTextNode(tt);var Jt=Pt(tt.tag);Object.keys(tt.attributes||[]).forEach(function(ti){Jt.setAttribute(ti,tt.attributes[ti])});var gi=tt.children||[];return gi.forEach(function(ti){Jt.appendChild(Jn(ti,{ceFn:Pt}))}),Jt}var xr={replace:function(Et){var Lt=Et[0];if(Lt.parentNode)if(Et[1].forEach(function(Jt){Lt.parentNode.insertBefore(Jn(Jt),Lt)}),null===Lt.getAttribute(Q)&&vt.keepOriginalSource){var Pt=c.createComment(function Hr(tt){var Et=" ".concat(tt.outerHTML," ");return"".concat(Et,"Font Awesome fontawesome.com ")}(Lt));Lt.parentNode.replaceChild(Pt,Lt)}else Lt.remove()},nest:function(Et){var Lt=Et[0],Pt=Et[1];if(~ce(Lt).indexOf(vt.replacementClass))return xr.replace(Et);var Jt=new RegExp("".concat(vt.familyPrefix,"-.*"));if(delete Pt[0].attributes.id,Pt[0].attributes.class){var gi=Pt[0].attributes.class.split(" ").reduce(function(fi,Mi){return Mi===vt.replacementClass||Mi.match(Jt)?fi.toSvg.push(Mi):fi.toNode.push(Mi),fi},{toNode:[],toSvg:[]});Pt[0].attributes.class=gi.toSvg.join(" "),0===gi.toNode.length?Lt.removeAttribute("class"):Lt.setAttribute("class",gi.toNode.join(" "))}var ti=Pt.map(function(fi){return ui(fi)}).join("\n");Lt.setAttribute(Q,""),Lt.innerHTML=ti}};function Fr(tt){tt()}function ha(tt,Et){var Lt="function"==typeof Et?Et:ra;if(0===tt.length)Lt();else{var Pt=Fr;"async"===vt.mutateApproach&&(Pt=d.requestAnimationFrame||Fr),Pt(function(){var Jt=function ga(){return!0===vt.autoReplaceSvg?xr.replace:xr[vt.autoReplaceSvg]||xr.replace}(),gi=Cr_begin("mutate");tt.map(Jt),gi(),Lt()})}}var Aa=!1;function Wn(){Aa=!0}function Ze(){Aa=!1}var Mt=null;function je(tt){if(g&&vt.observeMutations){var Et=tt.treeCallback,Lt=void 0===Et?ra:Et,Pt=tt.nodeCallback,Jt=void 0===Pt?ra:Pt,gi=tt.pseudoElementsCallback,ti=void 0===gi?ra:gi,fi=tt.observeMutationsRoot,Mi=void 0===fi?c:fi;Mt=new g(function(Ki){if(!Aa){var $i=Oi();Ie(Ki).forEach(function(sn){if("childList"===sn.type&&sn.addedNodes.length>0&&!ca(sn.addedNodes[0])&&(vt.searchPseudoElements&&ti(sn.target),Lt(sn.target)),"attributes"===sn.type&&sn.target.parentNode&&vt.searchPseudoElements&&ti(sn.target.parentNode),"attributes"===sn.type&&ca(sn.target)&&~ye.indexOf(sn.attributeName))if("class"===sn.attributeName&&function da(tt){var Et=tt.getAttribute?tt.getAttribute(Te):null,Lt=tt.getAttribute?tt.getAttribute(Ee):null;return Et&&Lt}(sn.target)){var bn=Tn(ce(sn.target)),In=bn.iconName;sn.target.setAttribute(Te,bn.prefix||$i),In&&sn.target.setAttribute(Ee,In)}else(function qn(tt){return tt&&tt.classList&&tt.classList.contains&&tt.classList.contains(vt.replacementClass)})(sn.target)&&Jt(sn.target)})}}),C&&Mt.observe(Mi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(tt){var Et=tt.getAttribute("style"),Lt=[];return Et&&(Lt=Et.split(";").reduce(function(Pt,Jt){var gi=Jt.split(":"),ti=gi[0],fi=gi.slice(1);return ti&&fi.length>0&&(Pt[ti]=fi.join(":").trim()),Pt},{})),Lt}function Si(tt){var Et=tt.getAttribute("data-prefix"),Lt=tt.getAttribute("data-icon"),Pt=void 0!==tt.innerText?tt.innerText.trim():"",Jt=Tn(ce(tt));return Jt.prefix||(Jt.prefix=Oi()),Et&&Lt&&(Jt.prefix=Et,Jt.iconName=Lt),Jt.iconName&&Jt.prefix||(Jt.prefix&&Pt.length>0&&(Jt.iconName=function Nt(tt,Et){return(yi[tt]||{})[Et]}(Jt.prefix,tt.innerText)||qe(Jt.prefix,Wi(tt.innerText))),!Jt.iconName&&vt.autoFetchSvg&&tt.firstChild&&tt.firstChild.nodeType===Node.TEXT_NODE&&(Jt.iconName=tt.firstChild.data)),Jt}function Ii(tt){var Et=Ie(tt.attributes).reduce(function(Jt,gi){return"class"!==Jt.name&&"style"!==Jt.name&&(Jt[gi.name]=gi.value),Jt},{}),Lt=tt.getAttribute("title"),Pt=tt.getAttribute("data-fa-title-id");return vt.autoA11y&&(Lt?Et["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(Pt||Pe()):(Et["aria-hidden"]="true",Et.focusable="false")),Et}function Yn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Lt=Si(tt),Pt=Lt.iconName,Jt=Lt.prefix,gi=Lt.rest,ti=Ii(tt),fi=ar("parseNodeAttributes",{},tt),Mi=Et.styleParser?ri(tt):[];return u({iconName:Pt,title:tt.getAttribute("title"),titleId:tt.getAttribute("data-fa-title-id"),prefix:Jt,transform:_t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:gi,styles:Mi,attributes:ti}},fi)}var Fn=yt.styles;function Tt(tt){var Et="nest"===vt.autoReplaceSvg?Yn(tt,{styleParser:!1}):Yn(tt);return~Et.extra.classes.indexOf(Ae)?Pr("generateLayersText",tt,Et):Pr("generateSvgReplacementMutation",tt,Et)}function ci(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!C)return Promise.resolve();var Lt=c.documentElement.classList,Pt=function(sn){return Lt.add("".concat(ne,"-").concat(sn))},Jt=function(sn){return Lt.remove("".concat(ne,"-").concat(sn))},gi=Object.keys(vt.autoFetchSvg?ke:Fn);gi.includes("fa")||gi.push("fa");var ti=[".".concat(Ae,":not([").concat(Q,"])")].concat(gi.map(function($i){return".".concat($i,":not([").concat(Q,"])")})).join(", ");if(0===ti.length)return Promise.resolve();var fi=[];try{fi=Ie(tt.querySelectorAll(ti))}catch($i){}if(!(fi.length>0))return Promise.resolve();Pt("pending"),Jt("complete");var Mi=Cr_begin("onTree"),Ki=fi.reduce(function($i,sn){try{var bn=Tt(sn);bn&&$i.push(bn)}catch(jn){$||"MissingIcon"===jn.name&&console.error(jn)}return $i},[]);return new Promise(function($i,sn){Promise.all(Ki).then(function(bn){ha(bn,function(){Pt("active"),Pt("complete"),Jt("pending"),"function"==typeof Et&&Et(),Mi(),$i()})}).catch(function(bn){Mi(),sn(bn)})})}function Ct(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Tt(tt).then(function(Lt){Lt&&ha([Lt],Et)})}var ki=function(Et){var Lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=Lt.transform,Jt=void 0===Pt?_t:Pt,gi=Lt.symbol,ti=void 0!==gi&&gi,fi=Lt.mask,Mi=void 0===fi?null:fi,Ki=Lt.maskId,$i=void 0===Ki?null:Ki,sn=Lt.title,bn=void 0===sn?null:sn,jn=Lt.titleId,In=void 0===jn?null:jn,Kr=Lt.classes,_a=void 0===Kr?[]:Kr,ir=Lt.attributes,vr=void 0===ir?{}:ir,pr=Lt.styles,Ir=void 0===pr?{}:pr;if(Et){var Br=Et.prefix,Na=Et.iconName,za=Et.icon;return na(u({type:"icon"},Et),function(){return kr("beforeDOMElementCreation",{iconDefinition:Et,params:Lt}),vt.autoA11y&&(bn?vr["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(In||Pe()):(vr["aria-hidden"]="true",vr.focusable="false")),xa({icons:{main:tr(za),mask:Mi?tr(Mi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Br,iconName:Na,transform:u(u({},_t),Jt),symbol:ti,title:bn,maskId:$i,titleId:In,extra:{attributes:vr,styles:Ir,classes:_a}})})}},Ge={mixout:function(){return{icon:(tt=ki,function(Et){var Lt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=(Et||{}).icon?Et:ia(Et||{}),Jt=Lt.mask;return Jt&&(Jt=(Jt||{}).icon?Jt:ia(Jt||{})),tt(Pt,u(u({},Lt),{},{mask:Jt}))})};var tt},hooks:function(){return{mutationObserverCallbacks:function(Lt){return Lt.treeCallback=ci,Lt.nodeCallback=Ct,Lt}}},provides:function(Et){Et.i2svg=function(Lt){var Pt=Lt.node,gi=Lt.callback;return ci(void 0===Pt?c:Pt,void 0===gi?function(){}:gi)},Et.generateSvgReplacementMutation=function(Lt,Pt){var Jt=Pt.iconName,gi=Pt.title,ti=Pt.titleId,fi=Pt.prefix,Mi=Pt.transform,Ki=Pt.symbol,$i=Pt.mask,sn=Pt.maskId,bn=Pt.extra;return new Promise(function(jn,In){Promise.all([ma(Jt,fi),$i.iconName?ma($i.iconName,$i.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Kr){var _a=A(Kr,2);jn([Lt,xa({icons:{main:_a[0],mask:_a[1]},prefix:fi,iconName:Jt,transform:Mi,symbol:Ki,maskId:sn,title:gi,titleId:ti,extra:bn,watchable:!0})])}).catch(In)})},Et.generateAbstractIcon=function(Lt){var Ki,Pt=Lt.children,Jt=Lt.attributes,gi=Lt.main,ti=Lt.transform,Mi=ft(Lt.styles);return Mi.length>0&&(Jt.style=Mi),Rt(ti)&&(Ki=Pr("generateAbstractTransformGrouping",{main:gi,transform:ti,containerWidth:gi.width,iconWidth:gi.width})),Pt.push(Ki||gi.icon),{children:Pt,attributes:Jt}}}},Be={mixout:function(){return{layer:function(Lt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Jt=Pt.classes,gi=void 0===Jt?[]:Jt;return na({type:"layer"},function(){kr("beforeDOMElementCreation",{assembler:Lt,params:Pt});var ti=[];return Lt(function(fi){Array.isArray(fi)?fi.map(function(Mi){ti=ti.concat(Mi.abstract)}):ti=ti.concat(fi.abstract)}),[{tag:"span",attributes:{class:["".concat(vt.familyPrefix,"-layers")].concat(E(gi)).join(" ")},children:ti}]})}}}},Ne={mixout:function(){return{counter:function(Lt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Jt=Pt.title,gi=void 0===Jt?null:Jt,ti=Pt.classes,fi=void 0===ti?[]:ti,Mi=Pt.attributes,Ki=void 0===Mi?{}:Mi,$i=Pt.styles,sn=void 0===$i?{}:$i;return na({type:"counter",content:Lt},function(){return kr("beforeDOMElementCreation",{content:Lt,params:Pt}),Xn({content:Lt.toString(),title:gi,extra:{attributes:Ki,styles:sn,classes:["".concat(vt.familyPrefix,"-layers-counter")].concat(E(fi))}})})}}}},wt={mixout:function(){return{text:function(Lt){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Jt=Pt.transform,gi=void 0===Jt?_t:Jt,ti=Pt.title,fi=void 0===ti?null:ti,Mi=Pt.classes,Ki=void 0===Mi?[]:Mi,$i=Pt.attributes,sn=void 0===$i?{}:$i,bn=Pt.styles,jn=void 0===bn?{}:bn;return na({type:"text",content:Lt},function(){return kr("beforeDOMElementCreation",{content:Lt,params:Pt}),Rr({content:Lt,transform:u(u({},_t),gi),title:fi,extra:{attributes:sn,styles:jn,classes:["".concat(vt.familyPrefix,"-layers-text")].concat(E(Ki))}})})}}},provides:function(Et){Et.generateLayersText=function(Lt,Pt){var Jt=Pt.title,gi=Pt.transform,ti=Pt.extra,fi=null,Mi=null;if(n){var Ki=parseInt(getComputedStyle(Lt).fontSize,10),$i=Lt.getBoundingClientRect();fi=$i.width/Ki,Mi=$i.height/Ki}return vt.autoA11y&&!Jt&&(ti.attributes["aria-hidden"]="true"),Promise.resolve([Lt,Rr({content:Lt.innerHTML,width:fi,height:Mi,transform:gi,title:Jt,extra:ti,watchable:!0})])}}},Ei=new RegExp('"',"ug"),Bi=[1105920,1112319];function sr(tt,Et){var Lt="".concat("data-fa-pseudo-element-pending").concat(Et.replace(":","-"));return new Promise(function(Pt,Jt){if(null!==tt.getAttribute(Lt))return Pt();var ti=Ie(tt.children).filter(function(Na){return Na.getAttribute(Z)===Et})[0],fi=d.getComputedStyle(tt,Et),Mi=fi.getPropertyValue("font-family").match(xe),Ki=fi.getPropertyValue("font-weight"),$i=fi.getPropertyValue("content");if(ti&&!Mi)return tt.removeChild(ti),Pt();if(Mi&&"none"!==$i&&""!==$i){var sn=fi.getPropertyValue("content"),bn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Mi[2])?lt[Mi[2].toLowerCase()]:G[Ki],jn=function Rn(tt){var Et=tt.replace(Ei,""),Lt=function ct(tt,Et){var Jt,Lt=tt.length,Pt=tt.charCodeAt(Et);return Pt>=55296&&Pt<=56319&&Lt>Et+1&&(Jt=tt.charCodeAt(Et+1))>=56320&&Jt<=57343?1024*(Pt-55296)+Jt-56320+65536:Pt}(Et,0),Pt=Lt>=Bi[0]&&Lt<=Bi[1],Jt=2===Et.length&&Et[0]===Et[1];return{value:Wi(Jt?Et[0]:Et),isSecondary:Pt||Jt}}(sn),In=jn.value,Kr=jn.isSecondary,_a=Mi[0].startsWith("FontAwesome"),ir=qe(bn,In),vr=ir;if(_a){var pr=function Ri(tt){var Et=Ji[tt],Lt=qe("fas",tt);return Et||(Lt?{prefix:"fas",iconName:Lt}:null)||{prefix:null,iconName:null}}(In);pr.iconName&&pr.prefix&&(ir=pr.iconName,bn=pr.prefix)}if(!ir||Kr||ti&&ti.getAttribute(Te)===bn&&ti.getAttribute(Ee)===vr)Pt();else{tt.setAttribute(Lt,vr),ti&&tt.removeChild(ti);var Ir=function nn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Br=Ir.extra;Br.attributes[Z]=Et,ma(ir,bn).then(function(Na){var za=xa(u(u({},Ir),{},{icons:{main:Na,mask:{prefix:null,iconName:null,rest:[]}},prefix:bn,iconName:vr,extra:Br,watchable:!0})),Qa=c.createElement("svg");"::before"===Et?tt.insertBefore(Qa,tt.firstChild):tt.appendChild(Qa),Qa.outerHTML=za.map(function(ve){return ui(ve)}).join("\n"),tt.removeAttribute(Lt),Pt()}).catch(Jt)}}else Pt()})}function Ca(tt){return Promise.all([sr(tt,"::before"),sr(tt,"::after")])}function qr(tt){return!(tt.parentNode===document.head||~be.indexOf(tt.tagName.toUpperCase())||tt.getAttribute(Z)||tt.parentNode&&"svg"===tt.parentNode.tagName)}function $a(tt){if(C)return new Promise(function(Et,Lt){var Pt=Ie(tt.querySelectorAll("*")).filter(qr).map(Ca),Jt=Cr_begin("searchPseudoElements");Wn(),Promise.all(Pt).then(function(){Jt(),Ze(),Et()}).catch(function(){Jt(),Ze(),Lt()})})}var Vn=!1,_r=function(Et){return Et.toLowerCase().split(" ").reduce(function(Pt,Jt){var gi=Jt.toLowerCase().split("-"),ti=gi[0],fi=gi.slice(1).join("-");if(ti&&"h"===fi)return Pt.flipX=!0,Pt;if(ti&&"v"===fi)return Pt.flipY=!0,Pt;if(fi=parseFloat(fi),isNaN(fi))return Pt;switch(ti){case"grow":Pt.size=Pt.size+fi;break;case"shrink":Pt.size=Pt.size-fi;break;case"left":Pt.x=Pt.x-fi;break;case"right":Pt.x=Pt.x+fi;break;case"up":Pt.y=Pt.y-fi;break;case"down":Pt.y=Pt.y+fi;break;case"rotate":Pt.rotate=Pt.rotate+fi}return Pt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Da={x:0,y:0,width:"100%",height:"100%"};function dr(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}!function Gn(tt,Et){var Lt=Et.mixoutsTo;gn=tt,wi={},Object.keys(ji).forEach(function(Pt){-1===yn.indexOf(Pt)&&delete ji[Pt]}),gn.forEach(function(Pt){var Jt=Pt.mixout?Pt.mixout():{};if(Object.keys(Jt).forEach(function(ti){"function"==typeof Jt[ti]&&(Lt[ti]=Jt[ti]),"object"===b(Jt[ti])&&Object.keys(Jt[ti]).forEach(function(fi){Lt[ti]||(Lt[ti]={}),Lt[ti][fi]=Jt[ti][fi]})}),Pt.hooks){var gi=Pt.hooks();Object.keys(gi).forEach(function(ti){wi[ti]||(wi[ti]=[]),wi[ti].push(gi[ti])})}Pt.provides&&Pt.provides(ji)})}([rt,Ge,Be,Ne,wt,{hooks:function(){return{mutationObserverCallbacks:function(Lt){return Lt.pseudoElementsCallback=$a,Lt}}},provides:function(Et){Et.pseudoElements2svg=function(Lt){var Pt=Lt.node;vt.searchPseudoElements&&$a(void 0===Pt?c:Pt)}}},{mixout:function(){return{dom:{unwatch:function(){Wn(),Vn=!0}}}},hooks:function(){return{bootstrap:function(){je(ar("mutationObserverCallbacks",{}))},noAuto:function(){!function Ot(){!Mt||Mt.disconnect()}()},watch:function(Lt){var Pt=Lt.observeMutationsRoot;Vn?Ze():je(ar("mutationObserverCallbacks",{observeMutationsRoot:Pt}))}}}},{mixout:function(){return{parse:{transform:function(Lt){return _r(Lt)}}}},hooks:function(){return{parseNodeAttributes:function(Lt,Pt){var Jt=Pt.getAttribute("data-fa-transform");return Jt&&(Lt.transform=_r(Jt)),Lt}}},provides:function(Et){Et.generateAbstractTransformGrouping=function(Lt){var Pt=Lt.main,Jt=Lt.transform,ti=Lt.iconWidth,fi={transform:"translate(".concat(Lt.containerWidth/2," 256)")},Mi="translate(".concat(32*Jt.x,", ").concat(32*Jt.y,") "),Ki="scale(".concat(Jt.size/16*(Jt.flipX?-1:1),", ").concat(Jt.size/16*(Jt.flipY?-1:1),") "),$i="rotate(".concat(Jt.rotate," 0 0)"),jn={outer:fi,inner:{transform:"".concat(Mi," ").concat(Ki," ").concat($i)},path:{transform:"translate(".concat(ti/2*-1," -256)")}};return{tag:"g",attributes:u({},jn.outer),children:[{tag:"g",attributes:u({},jn.inner),children:[{tag:Pt.icon.tag,children:Pt.icon.children,attributes:u(u({},Pt.icon.attributes),jn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Lt,Pt){var Jt=Pt.getAttribute("data-fa-mask"),gi=Jt?Tn(Jt.split(" ").map(function(ti){return ti.trim()})):{prefix:null,iconName:null,rest:[]};return gi.prefix||(gi.prefix=Oi()),Lt.mask=gi,Lt.maskId=Pt.getAttribute("data-fa-mask-id"),Lt}}},provides:function(Et){Et.generateAbstractMask=function(Lt){var tt,Pt=Lt.children,Jt=Lt.attributes,gi=Lt.main,ti=Lt.mask,fi=Lt.maskId,$i=gi.icon,bn=ti.icon,jn=function et(tt){var Et=tt.transform,Pt=tt.iconWidth,Jt={transform:"translate(".concat(tt.containerWidth/2," 256)")},gi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),ti="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),fi="rotate(".concat(Et.rotate," 0 0)");return{outer:Jt,inner:{transform:"".concat(gi," ").concat(ti," ").concat(fi)},path:{transform:"translate(".concat(Pt/2*-1," -256)")}}}({transform:Lt.transform,containerWidth:ti.width,iconWidth:gi.width}),In={tag:"rect",attributes:u(u({},Da),{},{fill:"white"})},Kr=$i.children?{children:$i.children.map(dr)}:{},_a={tag:"g",attributes:u({},jn.inner),children:[dr(u({tag:$i.tag,attributes:u(u({},$i.attributes),jn.path)},Kr))]},ir={tag:"g",attributes:u({},jn.outer),children:[_a]},vr="mask-".concat(fi||Pe()),pr="clip-".concat(fi||Pe()),Ir={tag:"mask",attributes:u(u({},Da),{},{id:vr,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[In,ir]},Br={tag:"defs",children:[{tag:"clipPath",attributes:{id:pr},children:(tt=bn,"g"===tt.tag?tt.children:[tt])},Ir]};return Pt.push(Br,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(pr,")"),mask:"url(#".concat(vr,")")},Da)}),{children:Pt,attributes:Jt}}}},{provides:function(Et){var Lt=!1;d.matchMedia&&(Lt=d.matchMedia("(prefers-reduced-motion: reduce)").matches),Et.missingIconAbstract=function(){var Pt=[],Jt={fill:"currentColor"},gi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Pt.push({tag:"path",attributes:u(u({},Jt),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ti=u(u({},gi),{},{attributeName:"opacity"}),fi={tag:"circle",attributes:u(u({},Jt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Lt||fi.children.push({tag:"animate",attributes:u(u({},gi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;1;1;0;1;"})}),Pt.push(fi),Pt.push({tag:"path",attributes:u(u({},Jt),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:Lt?[]:[{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;0;0;0;1;"})}]}),Lt||Pt.push({tag:"path",attributes:u(u({},Jt),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:u(u({},ti),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Pt}}}},{hooks:function(){return{parseNodeAttributes:function(Lt,Pt){var Jt=Pt.getAttribute("data-fa-symbol");return Lt.symbol=null!==Jt&&(""===Jt||Jt),Lt}}}}],{mixoutsTo:rr});var se=rr.parse,xt=rr.icon,Ci=p(2313);const Pi=["*"],En=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(Lt=>Et[Lt]?Lt:null).filter(Lt=>Lt)};let Sn=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(Lt){return new(Lt||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Qn=(()=>{class tt{constructor(){this.definitions={}}addIcons(...Lt){for(const Pt of Lt){Pt.prefix in this.definitions||(this.definitions[Pt.prefix]={}),this.definitions[Pt.prefix][Pt.iconName]=Pt;for(const Jt of Pt.icon[2])"string"==typeof Jt&&(this.definitions[Pt.prefix][Jt]=Pt)}}addIconPacks(...Lt){for(const Pt of Lt){const Jt=Object.keys(Pt).map(gi=>Pt[gi]);this.addIcons(...Jt)}}getIconDefinition(Lt,Pt){return Lt in this.definitions&&Pt in this.definitions[Lt]?this.definitions[Lt][Pt]:null}}return tt.\u0275fac=function(Lt){return new(Lt||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Mr=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(Lt){if("size"in Lt)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(Lt){return new(Lt||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),hr=(()=>{class tt{constructor(Lt,Pt){this.renderer=Lt,this.elementRef=Pt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Lt){"size"in Lt&&(null!=Lt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Lt.size.currentValue}`),null!=Lt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Lt.size.previousValue}`))}}return tt.\u0275fac=function(Lt){return new(Lt||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:Pi,decls:1,vars:0,template:function(Lt,Pt){1&Lt&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Zr=(()=>{class tt{constructor(Lt,Pt,Jt,gi,ti){this.sanitizer=Lt,this.config=Pt,this.iconLibrary=Jt,this.stackItem=gi,this.classes=[],null!=ti&&null==gi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Lt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Pt=null;if(Pt=null==this.icon?this.config.fallbackIcon:this.icon,Lt){const Jt=this.findIconDefinition(Pt);if(null!=Jt){const gi=this.buildParams();this.renderIcon(Jt,gi)}}}render(){this.ngOnChanges({})}findIconDefinition(Lt){const Pt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(Lt,this.config.defaultPrefix);if("icon"in Pt)return Pt;const Jt=this.iconLibrary.getIconDefinition(Pt.prefix,Pt.iconName);return null!=Jt?Jt:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(Pt),null)}buildParams(){const Lt={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Pt="string"==typeof this.transform?se.transform(this.transform):this.transform;return{title:this.title,transform:Pt,classes:[...En(Lt),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Lt,Pt){const Jt=xt(Lt,Pt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(Jt.html.join("\n"))}}return tt.\u0275fac=function(Lt){return new(Lt||tt)(e.Y36(Ci.H7),e.Y36(Sn),e.Y36(Qn),e.Y36(Mr,8),e.Y36(hr,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Lt,Pt){2&Lt&&(e.Ikx("innerHTML",Pt.renderedIconHTML,e.oJD),e.uIk("title",Pt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(Lt,Pt){},encapsulation:2}),tt})(),ka=(()=>{class tt{}return tt.\u0275fac=function(Lt){return new(Lt||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(He,j,p)=>{"use strict";p.d(j,{eX:()=>Z,sQ:()=>kt,GW:()=>t,l4:()=>te});var e=p(5620),i=p(6451),u=p(8306),b=p(7579),a=p(515),y=p(9646),h=p(2843),P=p(576);class T{constructor(Ie,ce,Me){this.kind=Ie,this.value=ce,this.error=Me,this.hasValue="N"===Ie}observe(Ie){return M(this,Ie)}do(Ie,ce,Me){const{kind:ut,value:ft,error:Rt}=this;return"N"===ut?null==Ie?void 0:Ie(ft):"E"===ut?null==ce?void 0:ce(Rt):null==Me?void 0:Me()}accept(Ie,ce,Me){var ut;return(0,P.m)(null===(ut=Ie)||void 0===ut?void 0:ut.next)?this.observe(Ie):this.do(Ie,ce,Me)}toObservable(){const{kind:Ie,value:ce,error:Me}=this,ut="N"===Ie?(0,y.of)(ce):"E"===Ie?(0,h._)(()=>Me):"C"===Ie?a.E:0;if(!ut)throw new TypeError(`Unexpected notification kind ${Ie}`);return ut}static createNext(Ie){return new T("N",Ie)}static createError(Ie){return new T("E",void 0,Ie)}static createComplete(){return T.completeNotification}}function M(Pe,Ie){var ce,Me,ut;const{kind:ft,value:Rt,error:et}=Pe;if("string"!=typeof ft)throw new TypeError('Invalid notification, missing "kind"');"N"===ft?null===(ce=Ie.next)||void 0===ce||ce.call(Ie,Rt):"E"===ft?null===(Me=Ie.error)||void 0===Me||Me.call(Ie,et):null===(ut=Ie.complete)||void 0===ut||ut.call(Ie)}T.completeNotification=new T("C");var A=p(4482),E=p(5403),w=p(8421);function V(Pe,Ie,ce,Me){return(0,A.e)((ut,ft)=>{let Rt;Ie&&"function"!=typeof Ie?({duration:ce,element:Rt,connector:Me}=Ie):Rt=Ie;const et=new Map,Re=at=>{et.forEach(at),at(ft)},Je=at=>Re(yt=>yt.error(at));let Ke=0,we=!1;const Fe=new E.Q(ft,at=>{try{const yt=Pe(at);let mi=et.get(yt);if(!mi){et.set(yt,mi=Me?Me():new b.x);const Xt=function rt(at,yt){const mi=new u.y(Xt=>{Ke++;const qt=yt.subscribe(Xt);return()=>{qt.unsubscribe(),0==--Ke&&we&&Fe.unsubscribe()}});return mi.key=at,mi}(yt,mi);if(ft.next(Xt),ce){const qt=(0,E.x)(mi,()=>{mi.complete(),null==qt||qt.unsubscribe()},void 0,void 0,()=>et.delete(yt));Fe.add((0,w.Xf)(ce(Xt)).subscribe(qt))}}mi.next(Rt?Rt(at):at)}catch(yt){Je(yt)}},()=>Re(at=>at.complete()),Je,()=>et.clear(),()=>(we=!0,0===Ke));ut.subscribe(Fe)})}var U=p(4004);function Y(Pe,Ie){return Ie?ce=>ce.pipe(Y((Me,ut)=>(0,w.Xf)(Pe(Me,ut)).pipe((0,U.U)((ft,Rt)=>Ie(Me,ft,ut,Rt))))):(0,A.e)((ce,Me)=>{let ut=0,ft=null,Rt=!1;ce.subscribe((0,E.x)(Me,et=>{ft||(ft=(0,E.x)(Me,void 0,()=>{ft=null,Rt&&Me.complete()}),(0,w.Xf)(Pe(et,ut++)).subscribe(ft))},()=>{Rt=!0,!ft&&Me.complete()}))})}var X=p(8502),de=p(262),q=p(9300),re=p(5577),le=p(5698),ee=p(5e3);const _e={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function t(Pe,Ie){const ce=Pe(),Me=Object.assign(Object.assign({},_e),Ie);return Object.defineProperty(ce,x,{value:Me}),ce}function r(Pe){return Object.getOwnPropertyNames(Pe).filter(Me=>!(!Pe[Me]||!Pe[Me].hasOwnProperty(x))&&Pe[Me][x].hasOwnProperty("dispatch")).map(Me=>Object.assign({propertyName:Me},Pe[Me][x]))}function d(Pe){return Object.getPrototypeOf(Pe)}const c="__@ngrx/effects__";function S(Pe){return(0,e.qC)(n,d)(Pe)}function n(Pe){return function I(Pe){return Pe.constructor.hasOwnProperty(c)}(Pe)?Pe.constructor[c]:[]}function R(Pe,Ie,ce){const Me=d(Pe).constructor.name,ut=function B(Pe){return[S,r].reduce((ce,Me)=>ce.concat(Me(Pe)),[])}(Pe).map(({propertyName:ft,dispatch:Rt,useEffectsErrorHandler:et})=>{const Re="function"==typeof Pe[ft]?Pe[ft]():Pe[ft],Je=et?ce(Re,Ie):Re;return!1===Rt?Je.pipe((0,X.l)()):Je.pipe(function k(){return(0,A.e)((Pe,Ie)=>{Pe.subscribe((0,E.x)(Ie,ce=>{Ie.next(T.createNext(ce))},()=>{Ie.next(T.createComplete()),Ie.complete()},ce=>{Ie.next(T.createError(ce)),Ie.complete()}))})}()).pipe((0,U.U)(we=>({effect:Pe[ft],notification:we,propertyName:ft,sourceName:Me,sourceInstance:Pe})))});return(0,i.T)(...ut)}function Q(Pe,Ie,ce=10){return Pe.pipe((0,de.K)(Me=>(Ie&&Ie.handleError(Me),ce<=1?Pe:Q(Pe,Ie,ce-1))))}let Z=(()=>{class Pe extends u.y{constructor(ce){super(),ce&&(this.source=ce)}lift(ce){const Me=new Pe;return Me.source=this,Me.operator=ce,Me}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(ee.LFG(e.Y$))},Pe.\u0275prov=ee.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function te(...Pe){return(0,q.h)(Ie=>Pe.some(ce=>"string"==typeof ce?ce===Ie.type:ce.type===Ie.type))}function De(Pe){return he(Pe,"ngrxOnInitEffects")}function he(Pe,Ie){return Pe&&Ie in Pe&&"function"==typeof Pe[Ie]}const Ae=new ee.OlP("@ngrx/effects Internal Root Guard"),xe=new ee.OlP("@ngrx/effects User Provided Effects"),G=new ee.OlP("@ngrx/effects Internal Root Effects"),ie=new ee.OlP("@ngrx/effects Root Effects"),pe=new ee.OlP("@ngrx/effects Internal Feature Effects"),ye=new ee.OlP("@ngrx/effects Feature Effects"),Le=new ee.OlP("@ngrx/effects Effects Error Handler");let ot=(()=>{class Pe extends b.x{constructor(ce,Me){super(),this.errorHandler=ce,this.effectsErrorHandler=Me}addEffects(ce){this.next(ce)}toActions(){return this.pipe(V(d),(0,re.z)(ce=>ce.pipe(V(ht))),(0,re.z)(ce=>{const Me=ce.pipe(Y(ft=>function At(Pe,Ie){return ce=>{const Me=R(ce,Pe,Ie);return function lt(Pe){return he(Pe,"ngrxOnRunEffects")}(ce)?ce.ngrxOnRunEffects(Me):Me}}(this.errorHandler,this.effectsErrorHandler)(ft)),(0,U.U)(ft=>(function Te(Pe,Ie){if("N"===Pe.notification.kind){const ce=Pe.notification.value;!function Ee(Pe){return"function"!=typeof Pe&&Pe&&Pe.type&&"string"==typeof Pe.type}(ce)&&Ie.handleError(new Error(`Effect ${function ne({propertyName:Pe,sourceInstance:Ie,sourceName:ce}){const Me="function"==typeof Ie[Pe];return`"${ce}.${String(Pe)}${Me?"()":""}"`}(Pe)} dispatched an invalid action: ${function ze(Pe){try{return JSON.stringify(Pe)}catch(Ie){return Pe}}(ce)}`))}}(ft,this.errorHandler),ft.notification)),(0,q.h)(ft=>"N"===ft.kind&&null!=ft.value),function ae(){return(0,A.e)((Pe,Ie)=>{Pe.subscribe((0,E.x)(Ie,ce=>M(ce,Ie)))})}()),ut=ce.pipe((0,le.q)(1),(0,q.h)(De),(0,U.U)(ft=>ft.ngrxOnInitEffects()));return(0,i.T)(Me,ut)}))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(ee.LFG(ee.qLn),ee.LFG(Le))},Pe.\u0275prov=ee.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ht(Pe){return function $(Pe){return he(Pe,"ngrxOnIdentifyEffects")}(Pe)?Pe.ngrxOnIdentifyEffects():""}let hi=(()=>{class Pe{constructor(ce,Me){this.effectSources=ce,this.store=Me,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(ee.LFG(ot),ee.LFG(e.yh))},Pe.\u0275prov=ee.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const jt="@ngrx/effects/init";(0,e.PH)(jt);let di=(()=>{class Pe{constructor(ce,Me,ut,ft,Rt,et,Re){this.sources=ce,Me.start(),ft.forEach(Je=>ce.addEffects(Je)),ut.dispatch({type:jt})}addEffects(ce){this.sources.addEffects(ce)}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(ee.LFG(ot),ee.LFG(hi),ee.LFG(e.yh),ee.LFG(ie),ee.LFG(e.cr,8),ee.LFG(e.CK,8),ee.LFG(Ae,8))},Pe.\u0275mod=ee.oAB({type:Pe}),Pe.\u0275inj=ee.cJS({}),Pe})(),vt=(()=>{class Pe{constructor(ce,Me,ut,ft){Me.forEach(Rt=>Rt.forEach(et=>ce.addEffects(et)))}}return Pe.\u0275fac=function(ce){return new(ce||Pe)(ee.LFG(di),ee.LFG(ye),ee.LFG(e.cr,8),ee.LFG(e.CK,8))},Pe.\u0275mod=ee.oAB({type:Pe}),Pe.\u0275inj=ee.cJS({}),Pe})(),kt=(()=>{class Pe{static forFeature(ce=[]){return{ngModule:vt,providers:[ce,{provide:pe,multi:!0,useValue:ce},{provide:xe,multi:!0,useValue:[]},{provide:ye,multi:!0,useFactory:mt,deps:[ee.zs3,pe,xe]}]}}static forRoot(ce=[]){return{ngModule:di,providers:[{provide:Le,useValue:Q},hi,ot,Z,ce,{provide:G,useValue:[ce]},{provide:Ae,useFactory:_t,deps:[[hi,new ee.FiY,new ee.tp0],[G,new ee.PiD]]},{provide:xe,multi:!0,useValue:[]},{provide:ie,useFactory:mt,deps:[ee.zs3,G,xe]}]}}}return Pe.\u0275fac=function(ce){return new(ce||Pe)},Pe.\u0275mod=ee.oAB({type:Pe}),Pe.\u0275inj=ee.cJS({}),Pe})();function mt(Pe,Ie,ce){const Me=[];for(const ut of Ie)Me.push(...ut);for(const ut of ce)Me.push(...ut);return function Xe(Pe,Ie){return Ie.map(ce=>Pe.get(ce))}(Pe,Me)}function _t(Pe,Ie){if((1!==Ie.length||0!==Ie[0].length)&&Pe)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(He){const j={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof He?He():He,u=Object.assign({},j,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||j.features},p);if(u.maxAge&&u.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${u.maxAge}`);return u}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(j,p){if(this.action=j,this.timestamp=p,this.type=PERFORM_ACTION,void 0===j.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(j){this.timestamp=j,this.type=RESET}}class Rollback{constructor(j){this.timestamp=j,this.type=ROLLBACK}}class Commit{constructor(j){this.timestamp=j,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(j){this.id=j,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(j,p,e=!0){this.start=j,this.end=p,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(j){this.index=j,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(j){this.actionId=j,this.type=JUMP_TO_ACTION}}class ImportState{constructor(j){this.nextLiftedState=j,this.type=IMPORT_STATE}}class LockChanges{constructor(j){this.status=j,this.type=LOCK_CHANGES}}class PauseRecording{constructor(j){this.status=j,this.type=PAUSE_RECORDING}}function difference(He,j){return He.filter(p=>j.indexOf(p)<0)}function unliftState(He){const{computedStates:j,currentStateIndex:p}=He;if(p>=j.length){const{state:i}=j[j.length-1];return i}const{state:e}=j[p];return e}function unliftAction(He){return He.actionsById[He.nextActionId-1]}function liftAction(He){return new PerformAction(He,+Date.now())}function sanitizeActions(He,j){return Object.keys(j).reduce((p,e)=>{const i=Number(e);return p[i]=sanitizeAction(He,j[i],i),p},{})}function sanitizeAction(He,j,p){return Object.assign(Object.assign({},j),{action:He(j.action,p)})}function sanitizeStates(He,j){return j.map((p,e)=>({state:sanitizeState(He,p.state,e),error:p.error}))}function sanitizeState(He,j,p){return He(j,p)}function shouldFilterActions(He){return He.predicate||He.actionsSafelist||He.actionsBlocklist}function filterLiftedState(He,j,p,e){const i=[],u={},b=[];return He.stagedActionIds.forEach((a,y)=>{const h=He.actionsById[a];!h||y&&isActionFiltered(He.computedStates[y],h,j,p,e)||(u[a]=h,i.push(a),b.push(He.computedStates[y]))}),Object.assign(Object.assign({},He),{stagedActionIds:i,actionsById:u,computedStates:b})}function isActionFiltered(He,j,p,e,i){const u=p&&!p(He,j.action),b=e&&!j.action.type.match(e.map(y=>escapeRegExp(y)).join("|")),a=i&&j.action.type.match(i.map(y=>escapeRegExp(y)).join("|"));return u||b||a}function escapeRegExp(He){return He.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(He,j,p,e,i){if(e)return{state:p,error:"Interrupted by an error up the chain"};let b,u=p;try{u=He(p,j)}catch(a){b=a.toString(),i.handleError(a)}return{state:u,error:b}}function recomputeStates(He,j,p,e,i,u,b,a,y){if(j>=He.length&&He.length===u.length)return He;const h=He.slice(0,j),P=u.length-(y?1:0);for(let D=j;D-1?A:computeNextEntry(p,M,E,k,a);h.push(V)}return y&&h.push(He[He.length-1]),h}function liftInitialState(He,j){return{monitorState:j(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:He,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(He,j,p,e,i={}){return u=>(b,a)=>{let{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=b||j;function V(ae){let X=ae,de=D.slice(1,X+1);for(let q=0;q-1===de.indexOf(q)),D=[0,...D.slice(X+1)],M=E[X].state,E=E.slice(X),A=A>X?A-X:0}function U(){h={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=E[A].state,A=0,E=[]}b||(h=Object.create(h));let Y=0;switch(a.type){case LOCK_CHANGES:k=a.status,Y=1/0;break;case PAUSE_RECORDING:w=a.status,w?(D=[...D,P],h[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,Y=D.length-1,E=E.concat(E[E.length-1]),A===D.length-2&&A++,Y=1/0):U();break;case RESET:h={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=He,A=0,E=[];break;case COMMIT:U();break;case ROLLBACK:h={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:ae}=a;T=-1===T.indexOf(ae)?[ae,...T]:T.filter(de=>de!==ae),Y=D.indexOf(ae);break}case SET_ACTIONS_ACTIVE:{const{start:ae,end:X,active:de}=a,q=[];for(let re=ae;rei.maxAge&&(E=recomputeStates(E,Y,u,M,h,D,T,p,w),V(D.length-i.maxAge),Y=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(X=>X.error).length>0)Y=0,i.maxAge&&D.length>i.maxAge&&(E=recomputeStates(E,Y,u,M,h,D,T,p,w),V(D.length-i.maxAge),Y=1/0);else{if(!w&&!k){A===D.length-1&&A++;const X=P++;h[X]=new PerformAction(a,+Date.now()),D=[...D,X],Y=D.length-1,E=recomputeStates(E,Y,u,M,h,D,T,p,w)}E=E.map(X=>Object.assign(Object.assign({},X),{state:u(X.state,RECOMPUTE_ACTION)})),A=D.length-1,i.maxAge&&D.length>i.maxAge&&V(D.length-i.maxAge),Y=1/0}break;default:Y=1/0}return E=recomputeStates(E,Y,u,M,h,D,T,p,w),y=e(y,a),{monitorState:y,actionsById:h,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}}}let DevtoolsDispatcher=(()=>{class He extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return He.\u0275fac=function(){let j;return function(e){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(He)))(e||He)}}(),He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(He,j,p){this.config=j,this.dispatcher=p,this.devtoolsExtension=He,this.createActionStreams()}notify(He,j){if(this.devtoolsExtension)if(He.type===PERFORM_ACTION){if(j.isLocked||j.isPaused)return;const p=unliftState(j);if(shouldFilterActions(this.config)&&isActionFiltered(p,He,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,j.currentStateIndex):p,i=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,He,j.nextActionId):He;this.sendToReduxDevtools(()=>this.extensionConnection.send(i,e))}else{const p=Object.assign(Object.assign({},j),{stagedActionIds:j.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,j.actionsById):j.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,j.computedStates):j.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(He=>{const j=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=j,j.init(),j.subscribe(p=>He.next(p)),j.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const He=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),j=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),e=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(y=>y.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),u=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),b=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>u)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>b))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(He){var j;const p={name:He.name,features:He.features,serialize:He.serialize,autoPause:null!==(j=He.autoPause)&&void 0!==j&&j};return!1!==He.maxAge&&(p.maxAge=He.maxAge),p}sendToReduxDevtools(He){try{He()}catch(j){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",j)}}}return DevtoolsExtension.\u0275fac=function He(j){return new(j||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class He{constructor(p,e,i,u,b,a,y,h){const P=liftInitialState(y,h.monitor),D=liftReducerWith(y,P,a,h.monitor,h),T=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),u.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,u.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),M=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(D)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=T.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(M),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:U},[Y,ae])=>{let X=ae(U,Y);return Y.type!==PERFORM_ACTION&&shouldFilterActions(h)&&(X=filterLiftedState(X,h.predicate,h.actionsSafelist,h.actionsBlocklist)),u.notify(Y,X),{state:X,action:Y}},{state:P,action:null})).subscribe(({state:U,action:Y})=>{A.next(U),Y.type===PERFORM_ACTION&&b.next(Y.action)}),k=u.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),V=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=E,this.dispatcher=p,this.liftedState=w,this.state=V}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return He.\u0275fac=function(p){return new(p||He)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(He,j){return Boolean(He)||j.monitor!==noMonitor}function createReduxDevtoolsExtension(){const He="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[He]?window[He]:null}function createStateObservable(He){return He.state}let StoreDevtoolsModule=(()=>{class He{static instrument(p={}){return{ngModule:He,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return He.\u0275fac=function(p){return new(p||He)},He.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:He}),He.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),He})()},5620:(He,j,p)=>{"use strict";p.d(j,{UO:()=>le,qg:()=>re,Y6:()=>t,mK:()=>De,n$:()=>W,Y$:()=>G,FR:()=>pe,yh:()=>ht,CK:()=>bt,Aw:()=>Vt,cr:()=>$e,wb:()=>he,qC:()=>$,PH:()=>k,ZF:()=>rt,Lq:()=>bi,P1:()=>Ke,on:()=>Zt,Ky:()=>w});var e=p(5e3),i=p(1135),u=p(8306),b=p(7579),a=p(233),y=p(4004),P=p(5363),D=p(1365),T=p(5026),M=p(1884);const A={};function k(qe,Nt){if(A[qe]=(A[qe]||0)+1,"function"==typeof Nt)return U(qe,(...pi)=>Object.assign(Object.assign({},Nt(...pi)),{type:qe}));switch(Nt?Nt._as:"empty"){case"empty":return U(qe,()=>({type:qe}));case"props":return U(qe,pi=>Object.assign(Object.assign({},pi),{type:qe}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function U(qe,Nt){return Object.defineProperty(Nt,"type",{value:qe,writable:!1})}const re="@ngrx/store/init";let le=(()=>{class qe extends i.X{constructor(){super({type:re})}next($t){if("function"==typeof $t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===$t)throw new TypeError("Actions must be objects");if(void 0===$t.type)throw new TypeError("Actions must have a type property");super.next($t)}complete(){}ngOnDestroy(){super.complete()}}return qe.\u0275fac=function($t){return new($t||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const ee=[le],_e=new e.OlP("@ngrx/store Internal Root Guard"),x=new e.OlP("@ngrx/store Internal Initial State"),t=new e.OlP("@ngrx/store Initial State"),r=new e.OlP("@ngrx/store Reducer Factory"),d=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new e.OlP("@ngrx/store Initial Reducers"),g=new e.OlP("@ngrx/store Internal Initial Reducers"),S=new e.OlP("@ngrx/store Store Features"),I=new e.OlP("@ngrx/store Internal Store Reducers"),C=new e.OlP("@ngrx/store Internal Feature Reducers"),n=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),B=new e.OlP("@ngrx/store Internal Feature Reducers Token"),R=new e.OlP("@ngrx/store Feature Reducers"),H=new e.OlP("@ngrx/store User Provided Meta Reducers"),Q=new e.OlP("@ngrx/store Meta Reducers"),Z=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),te=new e.OlP("@ngrx/store User Runtime Checks Config"),Te=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),Ee=new e.OlP("@ngrx/store Internal Runtime Checks"),ne=new e.OlP("@ngrx/store Check if Action types are unique");function ze(qe,Nt={}){const $t=Object.keys(qe),pi={};for(let Oi=0;Oi<$t.length;Oi++){const dn=$t[Oi];"function"==typeof qe[dn]&&(pi[dn]=qe[dn])}const Ri=Object.keys(pi);return function(dn,Nn){dn=void 0===dn?Nt:dn;let Tn=!1;const Kn={};for(let gn=0;gnOi(Ri),$t(Nt))}}function ke(qe,Nt){return Array.isArray(Nt)&&Nt.length>0&&(qe=$.apply(null,[...Nt,qe])),($t,pi)=>{const Ri=qe($t);return(Oi,dn)=>Ri(Oi=void 0===Oi?pi:Oi,dn)}}class W extends u.y{}class De extends le{}const he="@ngrx/store/update-reducers";let Ae=(()=>{class qe extends i.X{constructor($t,pi,Ri,Oi){super(Oi(Ri,pi)),this.dispatcher=$t,this.initialState=pi,this.reducers=Ri,this.reducerFactory=Oi}get currentReducers(){return this.reducers}addFeature($t){this.addFeatures([$t])}addFeatures($t){const pi=$t.reduce((Ri,{reducers:Oi,reducerFactory:dn,metaReducers:Nn,initialState:Tn,key:Kn})=>{const gn="function"==typeof Oi?function lt(qe){const Nt=Array.isArray(qe)&&qe.length>0?$(...qe):$t=>$t;return($t,pi)=>($t=Nt($t),(Ri,Oi)=>$t(Ri=void 0===Ri?pi:Ri,Oi))}(Nn)(Oi,Tn):ke(dn,Nn)(Oi,Tn);return Ri[Kn]=gn,Ri},{});this.addReducers(pi)}removeFeature($t){this.removeFeatures([$t])}removeFeatures($t){this.removeReducers($t.map(pi=>pi.key))}addReducer($t,pi){this.addReducers({[$t]:pi})}addReducers($t){this.reducers=Object.assign(Object.assign({},this.reducers),$t),this.updateReducers(Object.keys($t))}removeReducer($t){this.removeReducers([$t])}removeReducers($t){$t.forEach(pi=>{this.reducers=function be(qe,Nt){return Object.keys(qe).filter($t=>$t!==Nt).reduce(($t,pi)=>Object.assign($t,{[pi]:qe[pi]}),{})}(this.reducers,pi)}),this.updateReducers($t)}updateReducers($t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:he,features:$t})}ngOnDestroy(){this.complete()}}return qe.\u0275fac=function($t){return new($t||qe)(e.LFG(De),e.LFG(t),e.LFG(c),e.LFG(r))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const xe=[Ae,{provide:W,useExisting:Ae},{provide:De,useExisting:le}];let G=(()=>{class qe extends b.x{ngOnDestroy(){this.complete()}}return qe.\u0275fac=function(){let Nt;return function(pi){return(Nt||(Nt=e.n5z(qe)))(pi||qe)}}(),qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const ie=[G];class pe extends u.y{}let ye=(()=>{class qe extends i.X{constructor($t,pi,Ri,Oi){super(Oi);const Kn=$t.pipe((0,P.Q)(a.N)).pipe((0,D.M)(pi)).pipe((0,T.R)(Le,{state:Oi}));this.stateSubscription=Kn.subscribe(({state:gn,action:wi})=>{this.next(gn),Ri.next(wi)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return qe.INIT=re,qe.\u0275fac=function($t){return new($t||qe)(e.LFG(le),e.LFG(W),e.LFG(G),e.LFG(t))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();function Le(qe={state:void 0},[Nt,$t]){const{state:pi}=qe;return{state:$t(pi,Nt),action:Nt}}const ot=[ye,{provide:pe,useExisting:ye}];let ht=(()=>{class qe extends u.y{constructor($t,pi,Ri){super(),this.actionsObserver=pi,this.reducerManager=Ri,this.source=$t}select($t,...pi){return hi.call(null,$t,...pi)(this)}lift($t){const pi=new qe(this,this.actionsObserver,this.reducerManager);return pi.operator=$t,pi}dispatch($t){this.actionsObserver.next($t)}next($t){this.actionsObserver.next($t)}error($t){this.actionsObserver.error($t)}complete(){this.actionsObserver.complete()}addReducer($t,pi){this.reducerManager.addReducer($t,pi)}removeReducer($t){this.reducerManager.removeReducer($t)}}return qe.\u0275fac=function($t){return new($t||qe)(e.LFG(pe),e.LFG(le),e.LFG(Ae))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const At=[ht];function hi(qe,Nt,...$t){return function(Ri){let Oi;if("string"==typeof qe){const dn=[Nt,...$t].filter(Boolean);Oi=Ri.pipe(function h(...qe){const Nt=qe.length;if(0===Nt)throw new Error("list of properties cannot be empty.");return(0,y.U)($t=>{let pi=$t;for(let Ri=0;Riqe(dn,Nt)))}return Oi.pipe((0,M.x)())}}const jt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(qe){return void 0===qe}function di(qe){return null===qe}function vt(qe){return Array.isArray(qe)}function _t(qe){return"object"==typeof qe&&null!==qe}function Pe(qe){return"function"==typeof qe}function Rt(qe,Nt){return qe===Nt}function et(qe,Nt,$t){for(let pi=0;pign.release&&"function"==typeof gn.release),Nn=qe(function(...gn){return Oi.apply(null,gn)}),Tn=Je(function(gn,wi){return Nt.stateFn.apply(null,[gn,Ri,wi,Nn])});return Object.assign(Tn.memoized,{release:function Kn(){Tn.reset(),Nn.reset(),dn.forEach(gn=>gn.release())},projector:Nn.memoized,setResult:Tn.setResult,clearResult:Tn.clearResult})}}(Je)(...qe)}function we(qe,Nt,$t,pi){if(void 0===$t){const Oi=Nt.map(dn=>dn(qe));return pi.memoized.apply(null,Oi)}const Ri=Nt.map(Oi=>Oi(qe,$t));return pi.memoized.apply(null,[...Ri,$t])}function rt(qe){return Ke(Nt=>{const $t=Nt[qe];return(0,e.X6Q)()&&!(qe in Nt)&&console.warn(`@ngrx/store: The feature name "${qe}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${qe}', ...) or StoreModule.forFeature('${qe}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),$t},Nt=>Nt)}function qt(qe){Object.freeze(qe);const Nt=Pe(qe);return Object.getOwnPropertyNames(qe).forEach($t=>{if(!$t.startsWith("\u0275")&&function ce(qe,Nt){return Object.prototype.hasOwnProperty.call(qe,Nt)}(qe,$t)&&(!Nt||"caller"!==$t&&"callee"!==$t&&"arguments"!==$t)){const pi=qe[$t];(_t(pi)||Pe(pi))&&!Object.isFrozen(pi)&&qt(pi)}}),qe}function ui(qe,Nt=[]){return(Gt(qe)||di(qe))&&0===Nt.length?{path:["root"],value:qe}:Object.keys(qe).reduce((pi,Ri)=>{if(pi)return pi;const Oi=qe[Ri];return function Ie(qe){return Pe(qe)&&qe.hasOwnProperty("\u0275cmp")}(Oi)?pi:!(Gt(Oi)||di(Oi)||function Xe(qe){return"number"==typeof qe}(Oi)||function mt(qe){return"boolean"==typeof qe}(Oi)||function kt(qe){return"string"==typeof qe}(Oi)||vt(Oi))&&(function Kt(qe){if(!function ei(qe){return _t(qe)&&!vt(qe)}(qe))return!1;const Nt=Object.getPrototypeOf(qe);return Nt===Object.prototype||null===Nt}(Oi)?ui(Oi,[...Nt,Ri]):{path:[...Nt,Ri],value:Oi})},!1)}function si(qe,Nt){if(!1===qe)return;const $t=qe.path.join("."),pi=new Error(`Detected unserializable ${Nt} at "${$t}". ${jt}#strict${Nt}serializability`);throw pi.value=qe.value,pi.unserializablePath=$t,pi}function Gi(qe){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},qe):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ui({strictActionSerializability:qe,strictStateSerializability:Nt}){return $t=>qe||Nt?function Xi(qe,Nt){return function($t,pi){Nt.action(pi)&&si(ui(pi),"action");const Ri=qe($t,pi);return Nt.state()&&si(ui(Ri),"state"),Ri}}($t,{action:pi=>qe&&!ct(pi),state:()=>Nt}):$t}function Wi({strictActionImmutability:qe,strictStateImmutability:Nt}){return $t=>qe||Nt?function Xt(qe,Nt){return function($t,pi){const Ri=Nt.action(pi)?qt(pi):pi,Oi=qe($t,Ri);return Nt.state()?qt(Oi):Oi}}($t,{action:pi=>qe&&!ct(pi),state:()=>Nt}):$t}function ct(qe){return qe.type.startsWith("@ngrx")}function Ft({strictActionWithinNgZone:qe}){return Nt=>qe?function qi(qe,Nt){return function($t,pi){if(Nt.action(pi)&&!e.R0b.isInAngularZone())throw new Error(`Action '${pi.type}' running outside NgZone. ${jt}#strictactionwithinngzone`);return qe($t,pi)}}(Nt,{action:$t=>qe&&!ct($t)}):Nt}function pt(qe){return[{provide:Te,useValue:qe},{provide:te,useFactory:It,deps:[Te]},{provide:Ee,deps:[te],useFactory:Gi},{provide:Q,multi:!0,deps:[Ee],useFactory:Wi},{provide:Q,multi:!0,deps:[Ee],useFactory:Ui},{provide:Q,multi:!0,deps:[Ee],useFactory:Ft}]}function it(){return[{provide:ne,multi:!0,deps:[Ee],useFactory:ue}]}function It(qe){return qe}function ue(qe){if(!qe.strictActionTypeUniqueness)return;const Nt=Object.entries(A).filter(([,$t])=>$t>1).map(([$t])=>$t);if(Nt.length)throw new Error(`Action types are registered more than once, ${Nt.map($t=>`"${$t}"`).join(", ")}. ${jt}#strictactiontypeuniqueness`)}let $e=(()=>{class qe{constructor($t,pi,Ri,Oi,dn,Nn){}}return qe.\u0275fac=function($t){return new($t||qe)(e.LFG(le),e.LFG(W),e.LFG(G),e.LFG(ht),e.LFG(_e,8),e.LFG(ne,8))},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({}),qe})(),bt=(()=>{class qe{constructor($t,pi,Ri,Oi,dn){this.features=$t,this.featureReducers=pi,this.reducerManager=Ri;const Nn=$t.map((Tn,Kn)=>{const wi=pi.shift()[Kn];return Object.assign(Object.assign({},Tn),{reducers:wi,initialState:Yi(Tn.initialState)})});Ri.addFeatures(Nn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return qe.\u0275fac=function($t){return new($t||qe)(e.LFG(_),e.LFG(R),e.LFG(Ae),e.LFG($e),e.LFG(ne,8))},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({}),qe})(),Vt=(()=>{class qe{static forRoot($t,pi={}){return{ngModule:$e,providers:[{provide:_e,useFactory:pn,deps:[[ht,new e.FiY,new e.tp0]]},{provide:x,useValue:pi.initialState},{provide:t,useFactory:Yi,deps:[x]},{provide:g,useValue:$t},{provide:I,useExisting:$t instanceof e.OlP?$t:g},{provide:c,deps:[e.zs3,g,[new e.tBr(I)]],useFactory:yi},{provide:H,useValue:pi.metaReducers?pi.metaReducers:[]},{provide:Z,deps:[Q,H],useFactory:an},{provide:d,useValue:pi.reducerFactory?pi.reducerFactory:ze},{provide:r,deps:[d,Z],useFactory:ke},ee,xe,ie,ot,At,pt(pi.runtimeChecks),it()]}}static forFeature($t,pi,Ri={}){return{ngModule:bt,providers:[{provide:n,multi:!0,useValue:$t instanceof Object?{}:Ri},{provide:S,multi:!0,useValue:{key:$t instanceof Object?$t.name:$t,reducerFactory:Ri instanceof e.OlP||!Ri.reducerFactory?ze:Ri.reducerFactory,metaReducers:Ri instanceof e.OlP||!Ri.metaReducers?[]:Ri.metaReducers,initialState:Ri instanceof e.OlP||!Ri.initialState?void 0:Ri.initialState}},{provide:_,deps:[e.zs3,n,S],useFactory:Li},{provide:C,multi:!0,useValue:$t instanceof Object?$t.reducer:pi},{provide:B,multi:!0,useExisting:pi instanceof e.OlP?pi:C},{provide:R,multi:!0,deps:[e.zs3,C,[new e.tBr(B)]],useFactory:Ji},it()]}}}return qe.\u0275fac=function($t){return new($t||qe)},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({}),qe})();function yi(qe,Nt){return Nt instanceof e.OlP?qe.get(Nt):Nt}function Li(qe,Nt,$t){return $t.map((pi,Ri)=>{if(Nt[Ri]instanceof e.OlP){const Oi=qe.get(Nt[Ri]);return{key:pi.key,reducerFactory:Oi.reducerFactory?Oi.reducerFactory:ze,metaReducers:Oi.metaReducers?Oi.metaReducers:[],initialState:Oi.initialState}}return pi})}function Ji(qe,Nt){return Nt.map(pi=>pi instanceof e.OlP?qe.get(pi):pi)}function Yi(qe){return"function"==typeof qe?qe():qe}function an(qe,Nt){return qe.concat(Nt)}function pn(qe){if(qe)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Zt(...qe){return{reducer:qe.pop(),types:qe.map(pi=>pi.type)}}function bi(qe,...Nt){const $t=new Map;for(const pi of Nt)for(const Ri of pi.types){const Oi=$t.get(Ri);$t.set(Ri,Oi?(Nn,Tn)=>pi.reducer(Oi(Nn,Tn),Tn):pi.reducer)}return function(pi=qe,Ri){const Oi=$t.get(Ri.type);return Oi?Oi(pi,Ri):pi}}},1210:(He,j,p)=>{"use strict";p.d(j,{H5:()=>p0,K$:()=>yh,a4:()=>Hh});var e=p(5e3),i=p(9808),u=p(655),b=p(7429),a=p(4968),y=p(8372),h=p(1777);function P(){}function D(f){return null==f?P:function(){return this.querySelector(f)}}function M(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function V(f){return function(){return this.matches(f)}}function U(f){return function(O){return O.matches(f)}}var Y=Array.prototype.find;function X(){return this.firstElementChild}var q=Array.prototype.filter;function re(){return this.children}function x(f){return new Array(f.length)}function r(f,O){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=O}function d(f){return function(){return f}}function c(f,O,o,v,F,J){for(var st,Oe=0,Ut=O.length,Bt=J.length;OeO?1:f>=O?0:NaN}r.prototype={constructor:r,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,O){return this._parent.insertBefore(f,O)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var ze="http://www.w3.org/1999/xhtml";const be={svg:"http://www.w3.org/2000/svg",xhtml:ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $(f){var O=f+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=f.slice(0,o))&&(f=f.slice(o+1)),be.hasOwnProperty(O)?{space:be[O],local:f}:f}function ke(f){return function(){this.removeAttribute(f)}}function lt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function W(f,O){return function(){this.setAttribute(f,O)}}function De(f,O){return function(){this.setAttributeNS(f.space,f.local,O)}}function he(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(f):this.setAttribute(f,o)}}function Ae(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,o)}}function G(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function ie(f){return function(){this.style.removeProperty(f)}}function pe(f,O,o){return function(){this.style.setProperty(f,O,o)}}function ye(f,O,o){return function(){var v=O.apply(this,arguments);null==v?this.style.removeProperty(f):this.style.setProperty(f,v,o)}}function ot(f,O){return f.style.getPropertyValue(O)||G(f).getComputedStyle(f,null).getPropertyValue(O)}function ht(f){return function(){delete this[f]}}function At(f,O){return function(){this[f]=O}}function hi(f,O){return function(){var o=O.apply(this,arguments);null==o?delete this[f]:this[f]=o}}function Gt(f){return f.trim().split(/^|\s+/)}function di(f){return f.classList||new vt(f)}function vt(f){this._node=f,this._names=Gt(f.getAttribute("class")||"")}function kt(f,O){for(var o=di(f),v=-1,F=O.length;++v=0&&(o=O.slice(v+1),O=O.slice(0,v)),{type:O,name:o}})}function ct(f){return function(){var O=this.__on;if(O){for(var J,o=0,v=-1,F=O.length;o=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Vt=[null];function yi(f,O){this._groups=f,this._parents=O}function Li(){return new yi([[document.documentElement]],Vt)}yi.prototype=Li.prototype={constructor:yi,select:function T(f){"function"!=typeof f&&(f=D(f));for(var O=this._groups,o=O.length,v=new Array(o),F=0;F=fn&&(fn=Cn+1);!(An=Di[fn])&&++fn=0;)(Oe=v[F])&&(J&&4^Oe.compareDocumentPosition(J)&&J.parentNode.insertBefore(Oe,J),J=Oe);return this},sort:function R(f){function O(vi,xi){return vi&&xi?f(vi.__data__,xi.__data__):!vi-!xi}f||(f=H);for(var o=this._groups,v=o.length,F=new Array(v),J=0;J1?this.each((null==O?ie:"function"==typeof O?ye:pe)(f,O,null==o?"":o)):ot(this.node(),f)},property:function jt(f,O){return arguments.length>1?this.each((null==O?ht:"function"==typeof O?hi:At)(f,O)):this.node()[f]},classed:function Kt(f,O){var o=Gt(f+"");if(arguments.length<2){for(var v=di(this.node()),F=-1,J=o.length;++F{}};function Zt(){for(var v,f=0,O=arguments.length,o={};f=0&&(v=o.slice(F+1),o=o.slice(0,F)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:v}})}function Nt(f,O){for(var F,o=0,v=f.length;o0)for(var F,J,o=new Array(F),v=0;v>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Rr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Rr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=Pr.exec(f))?new tr(O[1],O[2],O[3],1):(O=ia.exec(f))?new tr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=sa.exec(f))?Rr(O[1],O[2],O[3],O[4]):(O=oa.exec(f))?Rr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=La.exec(f))?jr(O[1],O[2]/100,O[3]/100,1):(O=Ta.exec(f))?jr(O[1],O[2]/100,O[3]/100,O[4]):rr.hasOwnProperty(f)?xa(rr[f]):"transparent"===f?new tr(NaN,NaN,NaN,0):null}function xa(f){return new tr(f>>16&255,f>>8&255,255&f,1)}function Rr(f,O,o,v){return v<=0&&(f=O=o=NaN),new tr(f,O,o,v)}function Xn(f){return f instanceof gn||(f=Jr(f)),f?new tr((f=f.rgb()).r,f.g,f.b,f.opacity):new tr}function la(f,O,o,v){return 1===arguments.length?Xn(f):new tr(f,O,o,null==v?1:v)}function tr(f,O,o,v){this.r=+f,this.g=+O,this.b=+o,this.opacity=+v}function Sr(){return"#"+ma(this.r)+ma(this.g)+ma(this.b)}function cr(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function ma(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function jr(f,O,o,v){return v<=0?f=O=o=NaN:o<=0||o>=1?f=O=NaN:O<=0&&(f=NaN),new Ur(f,O,o,v)}function Dr(f){if(f instanceof Ur)return new Ur(f.h,f.s,f.l,f.opacity);if(f instanceof gn||(f=Jr(f)),!f)return new Ur;if(f instanceof Ur)return f;var O=(f=f.rgb()).r/255,o=f.g/255,v=f.b/255,F=Math.min(O,o,v),J=Math.max(O,o,v),Oe=NaN,st=J-F,Ut=(J+F)/2;return st?(Oe=O===J?(o-v)/st+6*(o0&&Ut<1?0:Oe,new Ur(Oe,st,Ut,f.opacity)}function Ur(f,O,o,v){this.h=+f,this.s=+O,this.l=+o,this.opacity=+v}function gr(f,O,o){return 255*(f<60?O+(o-O)*f/60:f<180?o:f<240?O+(o-O)*(240-f)/60:O)}function Cr(f,O,o,v,F){var J=f*f,Oe=J*f;return((1-3*f+3*J-Oe)*O+(4-6*J+3*Oe)*o+(1+3*f+3*J-3*Oe)*v+Oe*F)/6}Tn(gn,Jr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Yr,formatHex:Yr,formatHsl:function na(){return Dr(this).formatHsl()},formatRgb:Ra,toString:Ra}),Tn(tr,la,Kn(gn,{brighter:function(f){return f=null==f?ji:Math.pow(ji,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sr,formatHex:Sr,formatRgb:cr,toString:cr})),Tn(Ur,function Nr(f,O,o,v){return 1===arguments.length?Dr(f):new Ur(f,O,o,null==v?1:v)},Kn(gn,{brighter:function(f){return f=null==f?ji:Math.pow(ji,f),new Ur(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Ur(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),O=isNaN(f)||isNaN(this.s)?0:this.s,o=this.l,v=o+(o<.5?o:1-o)*O,F=2*o-v;return new tr(gr(f>=240?f-240:f+120,F,v),gr(f,F,v),gr(f<120?f+240:f-120,F,v),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const da=f=>()=>f;function Jn(f,O){var o=O-f;return o?function qn(f,O){return function(o){return f+o*O}}(f,o):da(isNaN(f)?O:f)}const Hr=function f(O){var o=function $n(f){return 1==(f=+f)?Jn:function(O,o){return o-O?function ga(f,O,o){return f=Math.pow(f,o),O=Math.pow(O,o)-f,o=1/o,function(v){return Math.pow(f+v*O,o)}}(O,o,f):da(isNaN(O)?o:O)}}(O);function v(F,J){var Oe=o((F=la(F)).r,(J=la(J)).r),st=o(F.g,J.g),Ut=o(F.b,J.b),Bt=Jn(F.opacity,J.opacity);return function(oi){return F.r=Oe(oi),F.g=st(oi),F.b=Ut(oi),F.opacity=Bt(oi),F+""}}return v.gamma=f,v}(1);function xr(f){return function(O){var Oe,st,o=O.length,v=new Array(o),F=new Array(o),J=new Array(o);for(Oe=0;Oe=1?(o=1,O-1):Math.floor(o*O),F=f[v],J=f[v+1];return Cr((o-v/O)*O,v>0?f[v-1]:2*F-J,F,J,vo&&(J=O.slice(o,J),st[Oe]?st[Oe]+=J:st[++Oe]=J),(v=v[0])===(F=F[0])?st[Oe]?st[Oe]+=F:st[++Oe]=F:(st[++Oe]=null,Ut.push({i:Oe,x:Mt(v,F)})),o=ri.lastIndex;return o=0&&f._call.call(null,O),f=f._next;--Wt}()}finally{Wt=0,function Da(){for(var f,o,O=Ne,v=1/0;O;)O._call?(v>O._time&&(v=O._time),f=O,O=O._next):(o=O._next,O._next=null,O=f?f._next=o:Ne=o);wt=f,dr(v)}(),Bi=0}}function ss(){var f=sr.now(),O=f-Ei;O>1e3&&(Rn-=O,Ei=f)}function dr(f){Wt||(ki&&(ki=clearTimeout(ki)),f-Bi>24?(f<1/0&&(ki=setTimeout(_r,f-sr.now()-Rn)),Ge&&(Ge=clearInterval(Ge))):(Ge||(Ei=sr.now(),Ge=setInterval(ss,1e3)),Wt=1,Ca(_r)))}function gs(f,O,o){var v=new Hi;return v.restart(F=>{v.stop(),f(F+O)},O=null==O?0:+O,o),v}Hi.prototype=Vn.prototype={constructor:Hi,restart:function(f,O,o){if("function"!=typeof f)throw new TypeError("callback is not a function");o=(null==o?qr():+o)+(null==O?0:+O),!this._next&&wt!==this&&(wt?wt._next=this:Ne=this,wt=this),this._call=f,this._time=o,dr()},stop:function(){this._call&&(this._call=null,this._time=1/0,dr())}};var Cs=pi("start","end","cancel","interrupt"),Ia=[];function me(f,O,o,v,F,J){var Oe=f.__transition;if(Oe){if(o in Oe)return}else f.__transition={};!function ii(f,O,o){var F,v=f.__transition;function Oe(Bt){var oi,vi,xi,Ti;if(1!==o.state)return Ut();for(oi in v)if((Ti=v[oi]).name===o.name){if(3===Ti.state)return gs(Oe);4===Ti.state?(Ti.state=6,Ti.timer.stop(),Ti.on.call("interrupt",f,f.__data__,Ti.index,Ti.group),delete v[oi]):+oi0)throw new Error("too late; already scheduled");return o}function xt(f,O){var o=Ht(f,O);if(o.state>3)throw new Error("too late; already running");return o}function Ht(f,O){var o=f.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var En,Pi=180/Math.PI,en={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ln(f,O,o,v,F,J){var Oe,st,Ut;return(Oe=Math.sqrt(f*f+O*O))&&(f/=Oe,O/=Oe),(Ut=f*o+O*v)&&(o-=f*Ut,v-=O*Ut),(st=Math.sqrt(o*o+v*v))&&(o/=st,v/=st,Ut/=st),f*v180?oi+=360:oi-Bt>180&&(Bt+=360),xi.push({i:vi.push(F(vi)+"rotate(",null,v)-2,x:Mt(Bt,oi)})):oi&&vi.push(F(vi)+"rotate("+oi+v)}(Bt.rotate,oi.rotate,vi,xi),function st(Bt,oi,vi,xi){Bt!==oi?xi.push({i:vi.push(F(vi)+"skewX(",null,v)-2,x:Mt(Bt,oi)}):oi&&vi.push(F(vi)+"skewX("+oi+v)}(Bt.skewX,oi.skewX,vi,xi),function Ut(Bt,oi,vi,xi,Ti,tn){if(Bt!==vi||oi!==xi){var _n=Ti.push(F(Ti)+"scale(",null,",",null,")");tn.push({i:_n-4,x:Mt(Bt,vi)},{i:_n-2,x:Mt(oi,xi)})}else(1!==vi||1!==xi)&&Ti.push(F(Ti)+"scale("+vi+","+xi+")")}(Bt.scaleX,Bt.scaleY,oi.scaleX,oi.scaleY,vi,xi),Bt=oi=null,function(Ti){for(var Di,tn=-1,_n=xi.length;++tn<_n;)vi[(Di=xi[tn]).i]=Di.x(Ti);return vi.join("")}}}var Qn=Sn(function kn(f){const O=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return O.isIdentity?en:ln(O.a,O.b,O.c,O.d,O.e,O.f)},"px, ","px)","deg)"),Mr=Sn(function vn(f){return null!=f&&(En||(En=document.createElementNS("http://www.w3.org/2000/svg","g")),En.setAttribute("transform",f),f=En.transform.baseVal.consolidate())?ln((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):en},", ",")",")");function hr(f,O){var o,v;return function(){var F=xt(this,f),J=F.tween;if(J!==o)for(var Oe=0,st=(v=o=J).length;Oe=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?We:xt;return function(){var Oe=J(this,f),st=Oe.on;st!==v&&(F=(v=st).copy()).on(O,o),Oe.on=F}}var Ye=Yi.prototype.constructor;function ge(f){return function(){this.style.removeProperty(f)}}function Qt(f,O,o){return function(v){this.style.setProperty(f,O.call(this,v),o)}}function ai(f,O,o){var v,F;function J(){var Oe=O.apply(this,arguments);return Oe!==F&&(v=(F=Oe)&&Qt(f,Oe,o)),v}return J._value=O,J}function hn(f){return function(O){this.textContent=f.call(this,O)}}function On(f){var O,o;function v(){var F=f.apply(this,arguments);return F!==o&&(O=(o=F)&&hn(F)),O}return v._value=f,v}var B1=0;function Ea(f,O,o,v){this._groups=f,this._parents=O,this._name=o,this._id=v}function c3(){return++B1}var $s=Yi.prototype;Ea.prototype=function lo(f){return Yi().transition(f)}.prototype={constructor:Ea,select:function Qe(f){var O=this._name,o=this._id;"function"!=typeof f&&(f=D(f));for(var v=this._groups,F=v.length,J=new Array(F),Oe=0;Oe2&&v.state<5,v.state=6,v.timer.stop(),v.on.call(F?"interrupt":"cancel",f,f.__data__,v.index,v.group),delete o[Oe]):J=!1;J&&delete f.__transition}}(this,f)})},Yi.prototype.transition=function Eo(f){var O,o;f instanceof Ea?(O=f._id,f=f._name):(O=c3(),(o=al).time=qr(),f=null==f?null:f+"");for(var v=this._groups,F=v.length,J=0;JO?1:f>=O?0:NaN}function Xs(f){let O=f,o=f;function v(Oe,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=Oe.length);Ut>>1;o(Oe[oi],st)<0?Ut=oi+1:Bt=oi}return Ut}return 1===f.length&&(O=(Oe,st)=>f(Oe)-st,o=function ed(f){return(O,o)=>e1(f(O),o)}(f)),{left:v,center:function J(Oe,st,Ut,Bt){null==Ut&&(Ut=0),null==Bt&&(Bt=Oe.length);const oi=v(Oe,st,Ut,Bt-1);return oi>Ut&&O(Oe[oi-1],st)>-O(Oe[oi],st)?oi-1:oi},right:function F(Oe,st,Ut,Bt){for(null==Ut&&(Ut=0),null==Bt&&(Bt=Oe.length);Ut>>1;o(Oe[oi],st)>0?Bt=oi:Ut=oi+1}return Ut}}}["w","e"].map(Xa),["n","s"].map(Xa),["n","w","e","s","nw","ne","sw","se"].map(Xa);var W1=Math.sqrt(50),hl=Math.sqrt(10),ul=Math.sqrt(2);function p3(f,O,o){var v=(O-f)/Math.max(0,o),F=Math.floor(Math.log(v)/Math.LN10),J=v/Math.pow(10,F);return F>=0?(J>=W1?10:J>=hl?5:J>=ul?2:1)*Math.pow(10,F):-Math.pow(10,-F)/(J>=W1?10:J>=hl?5:J>=ul?2:1)}function fl(f,O,o){var v=Math.abs(O-f)/Math.max(0,o),F=Math.pow(10,Math.floor(Math.log(v)/Math.LN10)),J=v/F;return J>=W1?F*=10:J>=hl?F*=5:J>=ul&&(F*=2),O0))return Ut;do{Ut.push(Bt=new Date(+J)),O(J,st),f(J)}while(Bt=Oe)for(;f(Oe),!J(Oe);)Oe.setTime(Oe-1)},function(Oe,st){if(Oe>=Oe)if(st<0)for(;++st<=0;)for(;O(Oe,-1),!J(Oe););else for(;--st>=0;)for(;O(Oe,1),!J(Oe););})},o&&(F.count=function(J,Oe){return pl.setTime(+J),ml.setTime(+Oe),f(pl),f(ml),Math.floor(o(pl,ml))},F.every=function(J){return J=Math.floor(J),isFinite(J)&&J>0?J>1?F.filter(v?function(Oe){return v(Oe)%J==0}:function(Oe){return F.count(0,Oe)%J==0}):F:null}),F}var t1=ya(function(){},function(f,O){f.setTime(+f+O)},function(f,O){return O-f});t1.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ya(function(O){O.setTime(Math.floor(O/f)*f)},function(O,o){O.setTime(+O+o*f)},function(O,o){return(o-O)/f}):t1:null};const id=t1;const n1=ya(function(f){f.setTime(f-f.getMilliseconds())},function(f,O){f.setTime(+f+O*Ls)},function(f,O){return(O-f)/Ls},function(f){return f.getUTCSeconds()});const Z1=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls)},function(f,O){f.setTime(+f+O*Ja)},function(f,O){return(O-f)/Ja},function(f){return f.getMinutes()});const g3=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls-f.getMinutes()*Ja)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getHours()});const po=ya(f=>f.setHours(0,0,0,0),(f,O)=>f.setDate(f.getDate()+O),(f,O)=>(O-f-(O.getTimezoneOffset()-f.getTimezoneOffset())*Ja)/Lo,f=>f.getDate()-1);function Vs(f){return ya(function(O){O.setDate(O.getDate()-(O.getDay()+7-f)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*Ja)/Js})}var Ts=Vs(0),K1=Vs(1),As=(Vs(2),Vs(3),Vs(4));const y3=(Vs(5),Vs(6),ya(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,O){f.setMonth(f.getMonth()+O)},function(f,O){return O.getMonth()-f.getMonth()+12*(O.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var yl=ya(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,O){f.setFullYear(f.getFullYear()+O)},function(f,O){return O.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});yl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setFullYear(Math.floor(O.getFullYear()/f)*f),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*f)}):null};const Ds=yl;const sd=ya(function(f){f.setUTCSeconds(0,0)},function(f,O){f.setTime(+f+O*Ja)},function(f,O){return(O-f)/Ja},function(f){return f.getUTCMinutes()});const Q1=ya(function(f){f.setUTCMinutes(0,0,0)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getUTCHours()});const X1=ya(function(f){f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCDate(f.getUTCDate()+O)},function(f,O){return(O-f)/Lo},function(f){return f.getUTCDate()-1});function rs(f){return ya(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-f)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/Js})}var xl=rs(0),J1=rs(1),To=(rs(2),rs(3),rs(4));const L3=(rs(5),rs(6),ya(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCMonth(f.getUTCMonth()+O)},function(f,O){return O.getUTCMonth()-f.getUTCMonth()+12*(O.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var q1=ya(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCFullYear(f.getUTCFullYear()+O)},function(f,O){return O.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});q1.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/f)*f),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*f)}):null};const s1=q1;function Do(f,O,o,v,F,J){const Oe=[[n1,1,Ls],[n1,5,5e3],[n1,15,15e3],[n1,30,3e4],[J,1,Ja],[J,5,5*Ja],[J,15,15*Ja],[J,30,30*Ja],[F,1,cs],[F,3,3*cs],[F,6,6*cs],[F,12,12*cs],[v,1,Lo],[v,2,2*Lo],[o,1,Js],[O,1,Y1],[O,3,3*Y1],[f,1,uo]];function Ut(Bt,oi,vi){const xi=Math.abs(oi-Bt)/vi,Ti=Xs(([,,Di])=>Di).right(Oe,xi);if(Ti===Oe.length)return f.every(fl(Bt/uo,oi/uo,vi));if(0===Ti)return id.every(Math.max(fl(Bt,oi,vi),1));const[tn,_n]=Oe[xi/Oe[Ti-1][2][O.toLowerCase(),o]))}function I3(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.w=+v[0],o+v[0].length):-1}function pd(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.u=+v[0],o+v[0].length):-1}function md(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.U=+v[0],o+v[0].length):-1}function O3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.V=+v[0],o+v[0].length):-1}function d1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.W=+v[0],o+v[0].length):-1}function El(f,O,o){var v=ua.exec(O.slice(o,o+4));return v?(f.y=+v[0],o+v[0].length):-1}function h1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.y=+v[0]+(+v[0]>68?1900:2e3),o+v[0].length):-1}function gd(f,O,o){var v=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return v?(f.Z=v[1]?0:-(v[2]+(v[3]||"00")),o+v[0].length):-1}function ea(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.q=3*v[0]-3,o+v[0].length):-1}function k3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.m=v[0]-1,o+v[0].length):-1}function wl(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.d=+v[0],o+v[0].length):-1}function Sl(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.m=0,f.d=+v[0],o+v[0].length):-1}function n2(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.H=+v[0],o+v[0].length):-1}function Cd(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.M=+v[0],o+v[0].length):-1}function P3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.S=+v[0],o+v[0].length):-1}function _d(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.L=+v[0],o+v[0].length):-1}function R3(f,O,o){var v=ua.exec(O.slice(o,o+6));return v?(f.L=Math.floor(v[0]/1e3),o+v[0].length):-1}function vd(f,O,o){var v=t2.exec(O.slice(o,o+1));return v?o+v[0].length:-1}function yd(f,O,o){var v=ua.exec(O.slice(o));return v?(f.Q=+v[0],o+v[0].length):-1}function s5(f,O,o){var v=ua.exec(O.slice(o));return v?(f.s=+v[0],o+v[0].length):-1}function Co(f,O){return or(f.getDate(),O,2)}function Ga(f,O){return or(f.getHours(),O,2)}function u1(f,O){return or(f.getHours()%12||12,O,2)}function N3(f,O){return or(1+po.count(Ds(f),f),O,3)}function Ll(f,O){return or(f.getMilliseconds(),O,3)}function Va(f,O){return Ll(f,O)+"000"}function f1(f,O){return or(f.getMonth()+1,O,2)}function Tl(f,O){return or(f.getMinutes(),O,2)}function bd(f,O){return or(f.getSeconds(),O,2)}function xd(f){var O=f.getDay();return 0===O?7:O}function H3(f,O){return or(Ts.count(Ds(f)-1,f),O,2)}function F3(f){var O=f.getDay();return O>=4||0===O?As(f):As.ceil(f)}function Al(f,O){return f=F3(f),or(As.count(Ds(f),f)+(4===Ds(f).getDay()),O,2)}function Md(f){return f.getDay()}function Dl(f,O){return or(K1.count(Ds(f)-1,f),O,2)}function V3(f,O){return or(f.getFullYear()%100,O,2)}function Ed(f,O){return or((f=F3(f)).getFullYear()%100,O,2)}function Il(f,O){return or(f.getFullYear()%1e4,O,4)}function wd(f,O){var o=f.getDay();return or((f=o>=4||0===o?As(f):As.ceil(f)).getFullYear()%1e4,O,4)}function Ol(f){var O=f.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+or(O/60|0,"0",2)+or(O%60,"0",2)}function r2(f,O){return or(f.getUTCDate(),O,2)}function Sd(f,O){return or(f.getUTCHours(),O,2)}function kl(f,O){return or(f.getUTCHours()%12||12,O,2)}function a2(f,O){return or(1+X1.count(s1(f),f),O,3)}function z3(f,O){return or(f.getUTCMilliseconds(),O,3)}function B3(f,O){return z3(f,O)+"000"}function Ld(f,O){return or(f.getUTCMonth()+1,O,2)}function Td(f,O){return or(f.getUTCMinutes(),O,2)}function Ad(f,O){return or(f.getUTCSeconds(),O,2)}function U3(f){var O=f.getUTCDay();return 0===O?7:O}function Dd(f,O){return or(xl.count(s1(f)-1,f),O,2)}function G3(f){var O=f.getUTCDay();return O>=4||0===O?To(f):To.ceil(f)}function Id(f,O){return f=G3(f),or(To.count(s1(f),f)+(4===s1(f).getUTCDay()),O,2)}function Od(f){return f.getUTCDay()}function kd(f,O){return or(J1.count(s1(f)-1,f),O,2)}function W3(f,O){return or(f.getUTCFullYear()%100,O,2)}function Y3(f,O){return or((f=G3(f)).getUTCFullYear()%100,O,2)}function j3(f,O){return or(f.getUTCFullYear()%1e4,O,4)}function Oo(f,O){var o=f.getUTCDay();return or((f=o>=4||0===o?To(f):To.ceil(f)).getUTCFullYear()%1e4,O,4)}function Os(){return"+0000"}function Pd(){return"%"}function Rd(f){return+f}function Pl(f){return Math.floor(+f/1e3)}function ko(f){return null===f?NaN:+f}!function K3(f){(function a5(f){var O=f.dateTime,o=f.date,v=f.time,F=f.periods,J=f.days,Oe=f.shortDays,st=f.months,Ut=f.shortMonths,Bt=go(F),oi=c1(F),vi=go(J),xi=c1(J),Ti=go(Oe),tn=c1(Oe),_n=go(st),Di=c1(st),un=go(Ut),Cn=c1(Ut),fn={a:function on(cn){return Oe[cn.getDay()]},A:function ja(cn){return J[cn.getDay()]},b:function yr(cn){return Ut[cn.getMonth()]},B:function ba(cn){return st[cn.getMonth()]},c:null,d:Co,e:Co,f:Va,g:Ed,G:wd,H:Ga,I:u1,j:N3,L:Ll,m:f1,M:Tl,p:function Wr(cn){return F[+(cn.getHours()>=12)]},q:function aa(cn){return 1+~~(cn.getMonth()/3)},Q:Rd,s:Pl,S:bd,u:xd,U:H3,V:Al,w:Md,W:Dl,x:null,X:null,y:V3,Y:Il,Z:Ol,"%":Pd},Hn={a:function ao(cn){return Oe[cn.getUTCDay()]},A:function Ks(cn){return J[cn.getUTCDay()]},b:function Ar(cn){return Ut[cn.getUTCMonth()]},B:function F1(cn){return st[cn.getUTCMonth()]},c:null,d:r2,e:r2,f:B3,g:Y3,G:Oo,H:Sd,I:kl,j:a2,L:z3,m:Ld,M:Td,p:function Pa(cn){return F[+(cn.getUTCHours()>=12)]},q:function Q2(cn){return 1+~~(cn.getUTCMonth()/3)},Q:Rd,s:Pl,S:Ad,u:U3,U:Dd,V:Id,w:Od,W:kd,x:null,X:null,y:W3,Y:j3,Z:Os,"%":Pd},An={a:function Lr(cn,Un,er){var Zi=Ti.exec(Un.slice(er));return Zi?(cn.w=tn.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},A:function Dn(cn,Un,er){var Zi=vi.exec(Un.slice(er));return Zi?(cn.w=xi.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},b:function pa(cn,Un,er){var Zi=un.exec(Un.slice(er));return Zi?(cn.m=Cn.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},B:function lr(cn,Un,er){var Zi=_n.exec(Un.slice(er));return Zi?(cn.m=Di.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},c:function Tr(cn,Un,er){return Er(cn,O,Un,er)},d:wl,e:wl,f:R3,g:h1,G:El,H:n2,I:n2,j:Sl,L:_d,m:k3,M:Cd,p:function Sa(cn,Un,er){var Zi=Bt.exec(Un.slice(er));return Zi?(cn.p=oi.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},q:ea,Q:yd,s:s5,S:P3,u:pd,U:md,V:O3,w:I3,W:d1,x:function Ya(cn,Un,er){return Er(cn,o,Un,er)},X:function Qr(cn,Un,er){return Er(cn,v,Un,er)},y:h1,Y:El,Z:gd,"%":vd};function Mn(cn,Un){return function(er){var Ka,Pn,ta,Zi=[],Xr=-1,br=0,Za=cn.length;for(er instanceof Date||(er=new Date(+er));++Xr53)return null;"w"in Zi||(Zi.w=1),"Z"in Zi?(Za=(br=e2(l1(Zi.y,0,1))).getUTCDay(),br=Za>4||0===Za?J1.ceil(br):J1(br),br=X1.offset(br,7*(Zi.V-1)),Zi.y=br.getUTCFullYear(),Zi.m=br.getUTCMonth(),Zi.d=br.getUTCDate()+(Zi.w+6)%7):(Za=(br=o1(l1(Zi.y,0,1))).getDay(),br=Za>4||0===Za?K1.ceil(br):K1(br),br=po.offset(br,7*(Zi.V-1)),Zi.y=br.getFullYear(),Zi.m=br.getMonth(),Zi.d=br.getDate()+(Zi.w+6)%7)}else("W"in Zi||"U"in Zi)&&("w"in Zi||(Zi.w="u"in Zi?Zi.u%7:"W"in Zi?1:0),Za="Z"in Zi?e2(l1(Zi.y,0,1)).getUTCDay():o1(l1(Zi.y,0,1)).getDay(),Zi.m=0,Zi.d="W"in Zi?(Zi.w+6)%7+7*Zi.W-(Za+5)%7:Zi.w+7*Zi.U-(Za+6)%7);return"Z"in Zi?(Zi.H+=Zi.Z/100|0,Zi.M+=Zi.Z%100,e2(Zi)):o1(Zi)}}function Er(cn,Un,er,Zi){for(var Ka,Pn,Xr=0,br=Un.length,Za=er.length;Xr=Za)return-1;if(37===(Ka=Un.charCodeAt(Xr++))){if(Ka=Un.charAt(Xr++),!(Pn=An[Ka in D3?Un.charAt(Xr++):Ka])||(Zi=Pn(cn,er,Zi))<0)return-1}else if(Ka!=er.charCodeAt(Zi++))return-1}return Zi}return fn.x=Mn(o,fn),fn.X=Mn(v,fn),fn.c=Mn(O,fn),Hn.x=Mn(o,Hn),Hn.X=Mn(v,Hn),Hn.c=Mn(O,Hn),{format:function(cn){var Un=Mn(cn+="",fn);return Un.toString=function(){return cn},Un},parse:function(cn){var Un=mr(cn+="",!1);return Un.toString=function(){return cn},Un},utcFormat:function(cn){var Un=Mn(cn+="",Hn);return Un.toString=function(){return cn},Un},utcParse:function(cn){var Un=mr(cn+="",!0);return Un.toString=function(){return cn},Un}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Hl=Xs(e1).right,Fd=(Xs(ko),Hl);function Po(f,O){return f=+f,O=+O,function(o){return Math.round(f*(1-o)+O*o)}}function Q3(f){return+f}var X3=[0,1];function qs(f){return f}function l2(f,O){return(O-=f=+f)?function(o){return(o-f)/O}:function o2(f){return function(){return f}}(isNaN(O)?NaN:.5)}function zd(f,O,o){var v=f[0],F=f[1],J=O[0],Oe=O[1];return FO&&(o=f,f=O,O=o),function(v){return Math.max(f,Math.min(O,v))}}(f[0],f[xi-1])),st=xi>2?Bd:zd,Ut=Bt=null,vi}function vi(xi){return null==xi||isNaN(xi=+xi)?J:(Ut||(Ut=st(f.map(v),O,o)))(v(Oe(xi)))}return vi.invert=function(xi){return Oe(F((Bt||(Bt=st(O,f.map(v),Mt)))(xi)))},vi.domain=function(xi){return arguments.length?(f=Array.from(xi,Q3),oi()):f.slice()},vi.range=function(xi){return arguments.length?(O=Array.from(xi),oi()):O.slice()},vi.rangeRound=function(xi){return O=Array.from(xi),o=Po,oi()},vi.clamp=function(xi){return arguments.length?(Oe=!!xi||qs,oi()):Oe!==qs},vi.interpolate=function(xi){return arguments.length?(o=xi,oi()):o},vi.unknown=function(xi){return arguments.length?(J=xi,vi):J},function(xi,Ti){return v=xi,F=Ti,oi()}}()(qs,qs)}function _o(f,O){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(O).domain(f)}return this}var d2,vo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function m1(f){if(!(O=vo.exec(f)))throw new Error("invalid format: "+f);var O;return new c2({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function c2(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function yo(f,O){if((o=(f=O?f.toExponential(O-1):f.toExponential()).indexOf("e"))<0)return null;var o,v=f.slice(0,o);return[v.length>1?v[0]+v.slice(2):v,+f.slice(o+1)]}function Ro(f){return(f=yo(Math.abs(f)))?f[1]:NaN}function g1(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1];return F<0?"0."+new Array(-F).join("0")+v:v.length>F+1?v.slice(0,F+1)+"."+v.slice(F+1):v+new Array(F-v.length+2).join("0")}m1.prototype=c2.prototype,c2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const u2={"%":(f,O)=>(100*f).toFixed(O),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function Wd(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,O)=>f.toExponential(O),f:(f,O)=>f.toFixed(O),g:(f,O)=>f.toPrecision(O),o:f=>Math.round(f).toString(8),p:(f,O)=>g1(100*f,O),r:g1,s:function h2(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1],J=F-(d2=3*Math.max(-8,Math.min(8,Math.floor(F/3))))+1,Oe=v.length;return J===Oe?v:J>Oe?v+new Array(J-Oe+1).join("0"):J>0?v.slice(0,J)+"."+v.slice(J):"0."+new Array(1-J).join("0")+yo(f,Math.max(0,O+J-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function f2(f){return f}var _1,m2,r4,Gl=Array.prototype.map,p2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function o5(f){var O=f.domain;return f.ticks=function(o){var v=O();return function td(f,O,o){var v,J,Oe,st,F=-1;if(o=+o,(f=+f)==(O=+O)&&o>0)return[f];if((v=O0){let Ut=Math.round(f/st),Bt=Math.round(O/st);for(Ut*stO&&--Bt,Oe=new Array(J=Bt-Ut+1);++FO&&--Bt,Oe=new Array(J=Bt-Ut+1);++F0;){if((Bt=p3(Oe,st,o))===Ut)return v[F]=Oe,v[J]=st,O(v);if(Bt>0)Oe=Math.floor(Oe/Bt)*Bt,st=Math.ceil(st/Bt)*Bt;else{if(!(Bt<0))break;Oe=Math.ceil(Oe*Bt)/Bt,st=Math.floor(st*Bt)/Bt}Ut=Bt}return f},f}function eo(){var f=Vl();return f.copy=function(){return Fl(f,eo())},_o.apply(f,arguments),o5(f)}function s4(f,O,o){f=+f,O=+O,o=(F=arguments.length)<2?(O=f,f=0,1):F<3?1:+o;for(var v=-1,F=0|Math.max(0,Math.ceil((O-f)/o)),J=new Array(F);++v0&&st>0&&(Ut+st+1>v&&(st=Math.max(1,v-Ut)),J.push(o.substring(F-=st,F+st)),!((Ut+=st+1)>v));)st=f[Oe=(Oe+1)%f.length];return J.reverse().join(O)}}(Gl.call(f.grouping,Number),f.thousands+""),o=void 0===f.currency?"":f.currency[0]+"",v=void 0===f.currency?"":f.currency[1]+"",F=void 0===f.decimal?".":f.decimal+"",J=void 0===f.numerals?f2:function n4(f){return function(O){return O.replace(/[0-9]/g,function(o){return f[+o]})}}(Gl.call(f.numerals,String)),Oe=void 0===f.percent?"%":f.percent+"",st=void 0===f.minus?"\u2212":f.minus+"",Ut=void 0===f.nan?"NaN":f.nan+"";function Bt(vi){var xi=(vi=m1(vi)).fill,Ti=vi.align,tn=vi.sign,_n=vi.symbol,Di=vi.zero,un=vi.width,Cn=vi.comma,fn=vi.precision,Hn=vi.trim,An=vi.type;"n"===An?(Cn=!0,An="g"):u2[An]||(void 0===fn&&(fn=12),Hn=!0,An="g"),(Di||"0"===xi&&"="===Ti)&&(Di=!0,xi="0",Ti="=");var Mn="$"===_n?o:"#"===_n&&/[boxX]/.test(An)?"0"+An.toLowerCase():"",mr="$"===_n?v:/[%p]/.test(An)?Oe:"",Er=u2[An],Sa=/[defgprs%]/.test(An);function Lr(Dn){var Tr,Ya,Qr,pa=Mn,lr=mr;if("c"===An)lr=Er(Dn)+lr,Dn="";else{var on=(Dn=+Dn)<0||1/Dn<0;if(Dn=isNaN(Dn)?Ut:Er(Math.abs(Dn),fn),Hn&&(Dn=function Ul(f){e:for(var F,O=f.length,o=1,v=-1;o0&&(v=0)}return v>0?f.slice(0,v)+f.slice(F+1):f}(Dn)),on&&0==+Dn&&"+"!==tn&&(on=!1),pa=(on?"("===tn?tn:st:"-"===tn||"("===tn?"":tn)+pa,lr=("s"===An?p2[8+d2/3]:"")+lr+(on&&"("===tn?")":""),Sa)for(Tr=-1,Ya=Dn.length;++Tr(Qr=Dn.charCodeAt(Tr))||Qr>57){lr=(46===Qr?F+Dn.slice(Tr+1):Dn.slice(Tr))+lr,Dn=Dn.slice(0,Tr);break}}Cn&&!Di&&(Dn=O(Dn,1/0));var ja=pa.length+Dn.length+lr.length,yr=ja>1)+pa+Dn+lr+yr.slice(ja);break;default:Dn=yr+pa+Dn+lr}return J(Dn)}return fn=void 0===fn?6:/[gprs]/.test(An)?Math.max(1,Math.min(21,fn)):Math.max(0,Math.min(20,fn)),Lr.toString=function(){return vi+""},Lr}return{format:Bt,formatPrefix:function oi(vi,xi){var Ti=Bt(((vi=m1(vi)).type="f",vi)),tn=3*Math.max(-8,Math.min(8,Math.floor(Ro(xi)/3))),_n=Math.pow(10,-tn),Di=p2[8+tn/3];return function(un){return Ti(_n*un)+Di}}}}(f),m2=_1.format,r4=_1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const jl=Symbol("implicit");function Zl(){var f=new Map,O=[],o=[],v=jl;function F(J){var Oe=J+"",st=f.get(Oe);if(!st){if(v!==jl)return v;f.set(Oe,st=O.push(J))}return o[(st-1)%o.length]}return F.domain=function(J){if(!arguments.length)return O.slice();O=[],f=new Map;for(const Oe of J){const st=Oe+"";f.has(st)||f.set(st,O.push(Oe))}return F},F.range=function(J){return arguments.length?(o=Array.from(J),F):o.slice()},F.unknown=function(J){return arguments.length?(v=J,F):v},F.copy=function(){return Zl(O,o).unknown(v)},_o.apply(F,arguments),F}function No(){var J,Oe,f=Zl().unknown(void 0),O=f.domain,o=f.range,v=0,F=1,st=!1,Ut=0,Bt=0,oi=.5;function vi(){var xi=O().length,Ti=F=1)return+o(f[v-1],v-1,f);var v,F=(v-1)*O,J=Math.floor(F),Oe=+o(f[J],J,f);return Oe+(+o(f[J+1],J+1,f)-Oe)*(F-J)}}function o4(){var v,f=[],O=[],o=[];function F(){var Oe=0,st=Math.max(1,O.length);for(o=new Array(st-1);++Oe0?o[st-1]:f[0],st{return(f=Zn||(Zn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Zn;var f})();function xc(f,O,o){return o===Zn.Top?f.top-7:o===Zn.Bottom?f.top+f.height-O.height+7:o===Zn.Center?f.top+f.height/2-O.height/2:void 0}function Mc(f,O,o){return o===Zn.Left?f.left-7:o===Zn.Right?f.left+f.width-O.width+7:o===Zn.Center?f.left+f.width/2-O.width/2:void 0}class es{static calculateVerticalAlignment(O,o,v){let F=xc(O,o,v);return F+o.height>window.innerHeight&&(F=window.innerHeight-o.height),F}static calculateVerticalCaret(O,o,v,F){let J;F===Zn.Top&&(J=O.height/2-v.height/2+7),F===Zn.Bottom&&(J=o.height-O.height/2-v.height/2-7),F===Zn.Center&&(J=o.height/2-v.height/2);const Oe=xc(O,o,F);return Oe+o.height>window.innerHeight&&(J+=Oe+o.height-window.innerHeight),J}static calculateHorizontalAlignment(O,o,v){let F=Mc(O,o,v);return F+o.width>window.innerWidth&&(F=window.innerWidth-o.width),F}static calculateHorizontalCaret(O,o,v,F){let J;F===Zn.Left&&(J=O.width/2-v.width/2+7),F===Zn.Right&&(J=o.width-O.width/2-v.width/2-7),F===Zn.Center&&(J=o.width/2-v.width/2);const Oe=Mc(O,o,F);return Oe+o.width>window.innerWidth&&(J+=Oe+o.width-window.innerWidth),J}static shouldFlip(O,o,v,F){let J=!1;return v===Zn.Right&&O.left+O.width+o.width+F>window.innerWidth&&(J=!0),v===Zn.Left&&O.left-o.width-F<0&&(J=!0),v===Zn.Top&&O.top-o.height-F<0&&(J=!0),v===Zn.Bottom&&O.top+O.height+o.height+F>window.innerHeight&&(J=!0),J}static positionCaret(O,o,v,F,J){let Oe=0,st=0;return O===Zn.Right?(st=-7,Oe=es.calculateVerticalCaret(v,o,F,J)):O===Zn.Left?(st=o.width,Oe=es.calculateVerticalCaret(v,o,F,J)):O===Zn.Top?(Oe=o.height,st=es.calculateHorizontalCaret(v,o,F,J)):O===Zn.Bottom&&(Oe=-7,st=es.calculateHorizontalCaret(v,o,F,J)),{top:Oe,left:st}}static positionContent(O,o,v,F,J){let Oe=0,st=0;return O===Zn.Right?(st=v.left+v.width+F,Oe=es.calculateVerticalAlignment(v,o,J)):O===Zn.Left?(st=v.left-o.width-F,Oe=es.calculateVerticalAlignment(v,o,J)):O===Zn.Top?(Oe=v.top-o.height-F,st=es.calculateHorizontalAlignment(v,o,J)):O===Zn.Bottom&&(Oe=v.top+v.height+F,st=es.calculateHorizontalAlignment(v,o,J)),{top:Oe,left:st}}static determinePlacement(O,o,v,F){if(es.shouldFlip(v,o,O,F)){if(O===Zn.Right)return Zn.Left;if(O===Zn.Left)return Zn.Right;if(O===Zn.Top)return Zn.Bottom;if(O===Zn.Bottom)return Zn.Top}return O}}let q4=(()=>{class f{constructor(o,v,F){this.element=o,this.renderer=v,this.platformId=F}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const o=this.element.nativeElement,v=this.host.nativeElement.getBoundingClientRect();if(!v.height&&!v.width)return;const F=o.getBoundingClientRect();this.checkFlip(v,F),this.positionContent(o,v,F),this.showCaret&&this.positionCaret(v,F),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,v,F){const{top:J,left:Oe}=es.positionContent(this.placement,F,v,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${J}px`),this.renderer.setStyle(o,"left",`${Oe}px`)}positionCaret(o,v){const F=this.caretElm.nativeElement,J=F.getBoundingClientRect(),{top:Oe,left:st}=es.positionCaret(this.placement,v,o,J,this.alignment);this.renderer.setStyle(F,"top",`${Oe}px`),this.renderer.setStyle(F,"left",`${st}px`)}checkFlip(o,v){this.placement=es.determinePlacement(this.placement,v,o,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,v){if(1&o&&e.Gf($d,5),2&o){let F;e.iGM(F=e.CRH())&&(v.caretElm=F.first)}},hostVars:2,hostBindings:function(o,v){1&o&&e.NdJ("resize",function(){return v.onWindowResize()},!1,e.Jf7),2&o&&e.Tol(v.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,v){1&o&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,Xd,2,4,"span",3),e.YNc(5,l4,1,1,"span",4),e.qZA()()),2&o&&(e.xp6(1),e.Gre("tooltip-caret position-",v.placement,""),e.Q6J("hidden",!v.showCaret),e.xp6(3),e.Q6J("ngIf",!v.title),e.xp6(1),e.Q6J("ngIf",v.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,u.gn)([J4(100)],f.prototype,"onWindowResize",null),f})(),wc=(()=>{class f{constructor(o,v,F){this.applicationRef=o,this.componentFactoryResolver=v,this.injector=F}static setGlobalRootViewContainer(o){f.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function Ec(f){return f.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,v){if(v){if(void 0!==v.inputs){const F=Object.getOwnPropertyNames(v.inputs);for(const J of F)o.instance[J]=v.inputs[J]}if(void 0!==v.outputs){const F=Object.getOwnPropertyNames(v.outputs);for(const J of F)o.instance[J]=v.outputs[J]}}return o}appendComponent(o,v={},F){F||(F=this.getRootViewContainer());const J=this.getComponentRootNode(F),Oe=new b.u0(J,this.componentFactoryResolver,this.applicationRef,this.injector),st=new b.C5(o),Ut=Oe.attach(st);return this.projectComponentBindings(Ut,v),Ut}}return f.globalRootViewContainer=null,f.\u0275fac=function(o){return new(o||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})(),Sc=(()=>{class f extends class oh{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const v=this.injectComponent(O,o);return this.register(O,v),v}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const v=o.indexOf(O);v>-1&&(o[v].destroy(),o.splice(v,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let v=o.length-1;for(;v>=0;)this.destroy(o[v--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),v=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),v&&(O.outputs=Object.assign(Object.assign({},v),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=q4}}return f.\u0275fac=function(o){return new(o||f)(e.LFG(wc))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var xs=(()=>{return(f=xs||(xs={})).Right="right",f.Below="below",xs;var f})(),xo=(()=>{return(f=xo||(xo={})).ScaleLegend="scaleLegend",f.Legend="legend",xo;var f})(),wn=(()=>{return(f=wn||(wn={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",wn;var f})();let H2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(o){const v=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${v})`}gradientString(o,v){v.push(1);const F=[];return o.reverse().forEach((J,Oe)=>{F.push(`${J} ${Math.round(100*v[Oe])}%`)}),F.join(", ")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,v){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA()(),e._UZ(4,"div",2),e.TgZ(5,"div",1)(6,"span"),e._uU(7),e.qZA()()()),2&o&&(e.Udp("height",v.horizontal?void 0:v.height,"px")("width",v.width,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(3),e.Oqu(v.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",v.gradient),e.xp6(3),e.Oqu(v.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})();function A1(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}let F2=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,v){1&o&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return v.select.emit(v.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return v.toggle.emit(v.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA()()),2&o&&(e.ekj("active",v.isActive),e.Q6J("title",v.formattedLabel),e.xp6(1),e.Udp("background-color",v.color),e.xp6(2),e.hij(" ",v.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const v of this.data){const F=A1(v);-1===o.findIndex(Oe=>Oe.label===F)&&o.push({label:v,formattedLabel:F,color:this.colors.getColor(v)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.label===F.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,v){return v.label}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(o,v){1&o&&(e.TgZ(0,"div"),e.YNc(1,Bn,3,1,"header",0),e.TgZ(2,"div",1)(3,"ul",2),e.YNc(4,c4,2,4,"li",3),e.qZA()()()),2&o&&(e.Udp("width",v.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==v.title?null:v.title.length)>0),e.xp6(2),e.Udp("max-height",v.height-45,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(1),e.Q6J("ngForOf",v.legendEntries)("ngForTrackBy",v.trackBy))},directives:[F2,i.O5,i.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),Lc=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=xs,this.LegendType=xo}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===xs.Right)&&(o=this.legendType===xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==xs.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===wn.Linear?xo.ScaleLegend:xo.Legend}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Sc]),e.TTD],ngContentSelectors:v1,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(o,v){1&o&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,d4,1,5,"ngx-charts-scale-legend",2),e.YNc(4,h4,1,7,"ngx-charts-legend",3),e.qZA()),2&o&&(e.Udp("width",v.view[0],"px"),e.xp6(1),e.uIk("width",v.chartWidth)("height",v.view[1]),e.xp6(2),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.Legend))},directives:[H2,V2,i.O5],encapsulation:2,changeDetection:0}),f})(),Y5=(()=>{class f{constructor(o,v){this.element=o,this.zone=v,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:v,offsetWidth:F}=this.element.nativeElement;v&&F?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Tc(f){return"[object Date]"===toString.call(f)}let z2=(()=>{class f{constructor(o,v,F,J){this.chartElement=o,this.zone=v,this.cd=F,this.platformId=J,this.scheme="cool",this.schemeType=wn.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,i.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Y5(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,v;const F=this.chartElement.nativeElement;if((0,i.NF)(this.platformId)&&null!==F.parentNode){const J=F.parentNode.getBoundingClientRect();o=J.width,v=J.height}return o&&v?{width:o,height:v}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=v}cloneData(o){const v=[];for(const F of o){const J={name:F.name};if(void 0!==F.value&&(J.value=F.value),void 0!==F.series){J.series=[];for(const Oe of F.series){const st=Object.assign({},Oe);J.series.push(st)}}void 0!==F.extra&&(J.extra=JSON.parse(JSON.stringify(F.extra))),v.push(J)}return v}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(o,v){1&o&&e._UZ(0,"div")},encapsulation:2}),f})();var fa=(()=>{return(f=fa||(fa={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",fa;var f})();let e0=(()=>{class f{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case fa.Top:case fa.Bottom:this.y=this.offset,this.x=this.width/2;break;case fa.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case fa.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:hs,decls:2,vars:6,template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&o&&(e.uIk("stroke-width",v.strokeWidth)("x",v.x)("y",v.y)("text-anchor",v.textAnchor)("transform",v.transform),e.xp6(1),e.hij(" ",v.label," "))},encapsulation:2,changeDetection:0}),f})();function no(f,O=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=O?f:`${f.slice(0,O)}...`}function Ac(f,O){if(f.length>O){const o=[],v=Math.floor(f.length/O);for(let F=0;F{return(f=fs||(fs={})).Start="start",f.Middle="middle",f.End="end",fs;var f})();let Dc=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=fs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()};const v=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(F){return this.scale(F)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",v&&0!==v?(this.textTransform=`rotate(${v})`,this.textAnchor=fs.End,this.verticalSpacing=10):this.textAnchor=fs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let v=0;this.maxTicksLength=0;for(let Bt=0;Btthis.maxTicksLength&&(this.maxTicksLength=vi)}const Oe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Oe;const Ut=Math.floor(this.width/o.length);for(;st>Ut&&v>-90;)v-=30,st=Math.cos(v*(Math.PI/180))*Oe;return this.approxHeight=Math.max(Math.abs(Math.sin(v*(Math.PI/180))*Oe),10),v}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:u4,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,$l,5,7,"g",1),e.qZA(),e.YNc(3,Ql,2,2,"g",2)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.ticks))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),B2=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=fa.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=fa}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const v=o+25+5;v!==this.labelOffset&&(this.labelOffset=v,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Dc,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f4,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,C2,1,12,"g",0),e.YNc(2,c5,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.xAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[Dc,e0,i.O5],encapsulation:2,changeDetection:0}),f})();function ps(f,O,o,v,F,[J,Oe,st,Ut]){let Bt="";return Bt=`M${[f+F,O]}`,Bt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*F),Bt+=Oe?`a${[F,F]} 0 0 1 ${[F,F]}`:`h${F}v${F}`,Bt+="v"+((v=0===(v=Math.floor(v))?1:v)-2*F),Bt+=Ut?`a${[F,F]} 0 0 1 ${[-F,F]}`:`v${F}h${-F}`,Bt+="h"+(2*F-o),Bt+=st?`a${[F,F]} 0 0 1 ${[-F,-F]}`:`h${-F}v${-F}`,Bt+="v"+(2*F-v),Bt+=J?`a${[F,F]} 0 0 1 ${[F,-F]}`:`v${-F}h${F}`,Bt+="z",Bt}let t0=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=fs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=fa}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const v=this.orient===fa.Top||this.orient===fa.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()},this.adjustedScale=o.bandwidth?function(F){return o(F)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case fa.Top:case fa.Bottom:this.transform=function(F){return"translate("+this.adjustedScale(F)+",0)"},this.textAnchor=fs.Middle,this.y2=this.innerTickSize*v,this.y1=this.tickSpacing*v,this.dy=v<0?"0em":".71em";break;case fa.Left:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.End,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em";break;case fa.Right:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.Start,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=ps(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(F=>this.tickTrim(this.tickFormat(F)).length))}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:Xl,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,d5,5,9,"g",1),e.qZA(),e.YNc(3,_2,1,2,"path",2),e.YNc(4,ql,2,2,"g",3),e.YNc(5,qd,2,1,"g",3)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngIf",v.referenceLineLength>1&&v.refMax&&v.refMin&&v.showRefLines),e.xp6(1),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.referenceLines))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),Ic=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=fa.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===fa.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:o}){o!==this.labelOffset&&this.yOrient===fa.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(t0,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:b2,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,e6,1,14,"g",0),e.YNc(2,p4,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.yAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.yScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[t0,e0,i.O5],encapsulation:2,changeDetection:0}),f})(),n0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez]]}),f})();var Mo=(()=>{return(f=Mo||(Mo={})).popover="popover",f.tooltip="tooltip",Mo;var f})(),ro=(()=>{return(f=ro||(ro={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",ro;var f})();let Oc=(()=>{class f{constructor(o,v,F){this.tooltipService=o,this.viewContainerRef=v,this.renderer=F,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Zn.Top,this.tooltipAlignment=Zn.Center,this.tooltipType=Mo.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ro.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.focus}get listensForHover(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const v=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const F=this.createBoundOptions();this.component=this.tooltipService.create(F),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},v)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",v=>{o.contains(v.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const v=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?v():this.timeout=setTimeout(v,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(Sc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,v){1&o&&e.NdJ("focusin",function(){return v.onFocus()})("blur",function(){return v.onBlur()})("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(J){return v.onMouseLeave(J.target)})("click",function(){return v.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),f})(),r0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[wc,Sc],imports:[[i.ez]]}),f})();const kc={};function I1(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,kc[f]?I1():(kc[f]=!0,f)}var $r=(()=>{return(f=$r||($r={})).Vertical="vertical",f.Horizontal="horizontal",$r;var f})();let Go=(()=>{class f{constructor(){this.orientation=$r.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$r.Horizontal?this.x2="100%":this.orientation===$r.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:u5,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,m4,1,5,"stop",1),e.qZA()),2&o&&(e.Q6J("id",v.name),e.uIk("x1",v.x1)("y1",v.y1)("x2",v.x2)("y2",v.y2),e.xp6(1),e.Q6J("ngForOf",v.stops))},directives:[i.sg],encapsulation:2,changeDetection:0}),f})(),a0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:m5,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,v){1&o&&(e.O4$(),e._UZ(0,"rect",0)),2&o&&e.uIk("height",v.height)("width",v.width)("x",v.x)("y",v.y)},encapsulation:2,changeDetection:0}),f})();var k1=(()=>{return(f=k1||(k1={})).Odd="odd",f.Even="even",k1;var f})();let R1,Wo=(()=>{class f{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let v,F,J,Oe,st,Ut=k1.Odd;if(this.orient===$r.Vertical){const Bt=this.xScale(o.name);Number.parseInt((Bt/this.xScale.step()).toString(),10)%2==1&&(Ut=k1.Even),v=this.xScale.bandwidth()*this.xScale.paddingInner(),F=this.xScale.bandwidth()+v,J=this.dims.height,Oe=this.xScale(o.name)-v/2,st=0}else if(this.orient===$r.Horizontal){const Bt=this.yScale(o.name);Number.parseInt((Bt/this.yScale.step()).toString(),10)%2==1&&(Ut=k1.Even),v=this.yScale.bandwidth()*this.yScale.paddingInner(),F=this.dims.width,J=this.yScale.bandwidth()+v,Oe=0,st=this.yScale(o.name)-v/2}return{name:o.name,class:Ut,height:J,width:F,x:Oe,y:st}})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:t6,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(o,v){1&o&&e.YNc(0,g5,1,10,"g",0),2&o&&e.Q6J("ngForOf",v.gridPanels)},directives:[a0,i.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?R1=window:"undefined"!=typeof global&&(R1=global);let ts=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez,n0,r0],i.ez,n0,r0]}),f})();function j2({width:f,height:O,margins:o,showXAxis:v=!1,showYAxis:F=!1,xAxisHeight:J=0,yAxisWidth:Oe=0,showXLabel:st=!1,showYLabel:Ut=!1,showLegend:Bt=!1,legendType:oi=wn.Ordinal,legendPosition:vi=xs.Right,columns:xi=12}){let Ti=o[3],tn=f,_n=O-o[0]-o[2];return Bt&&vi===xs.Right&&(xi-=oi===wn.Ordinal?2:1),tn=tn*xi/12,tn=tn-o[1]-o[3],v&&(_n-=5,_n-=J,st&&(_n-=30)),F&&(tn-=5,tn-=Oe,Ti+=Oe,Ti+=10,Ut&&(tn-=30,Ti+=30)),tn=Math.max(0,tn),_n=Math.max(0,_n),{width:Math.floor(tn),height:Math.floor(_n),xOffset:Math.floor(Ti)}}let Vc=[{name:"vivid",selectable:!0,group:wn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:wn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:wn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:wn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:wn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:wn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:wn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:wn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:wn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:wn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:wn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:wn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:wn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:wn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:wn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class N1{constructor(O,o,v,F){"string"==typeof O&&(O=Vc.find(J=>J.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=v,this.customColors=F,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,v){let F;switch("string"==typeof O&&(O=Vc.find(J=>J.name===O)),o){case wn.Quantile:F=o4().range(O.domain).domain(v);break;case wn.Ordinal:F=Zl().range(O.domain).domain(v);break;case wn.Linear:{const J=[...O.domain];1===J.length&&(J.push(J[0]),this.colorDomain=J);const Oe=s4(0,1,1/J.length);F=eo().range(J).domain(Oe)}}return F}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===wn.Linear){const o=eo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let v;return this.customColors&&this.customColors.length>0&&(v=this.customColors.find(F=>F.name.toLowerCase()===o.toLowerCase())),v?v.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const v=eo().domain(this.domain).range([0,1]),F=No().domain(this.colorDomain).range([0,1]),J=this.getColor(O),Oe=v(o),st=this.getColor(o),Ut=v(O);let Bt=1,oi=Oe;const vi=[];for(vi.push({color:st,offset:Oe,originalOffset:Oe,opacity:1});oi=(Ut-F.bandwidth()).toFixed(4))break;vi.push({color:xi,offset:Ti,opacity:1}),oi=Ti,Bt++}}if(vi[vi.length-1].offset<100&&vi.push({color:J,offset:Ut,opacity:1}),Ut===Oe)vi[0].offset=0,vi[1].offset=100;else if(100!==vi[vi.length-1].offset)for(const xi of vi)xi.offset=(xi.offset-Oe)/(Ut-Oe)*100;return vi}}let Z2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),h0=(()=>{class f{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+I1().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const o=function an(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],Vt)}(this.element).select(".bar"),v=this.getPath();this.animations?o.transition().duration(500).attr("d",v):o.attr("d",v)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$r.Vertical?v=ps(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$r.Horizontal&&(v=ps(this.x,this.y,1,this.height,0,this.edges)),v}getPath(){let v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):v=ps(this.x,this.y,this.width,this.height,o,this.edges),v}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$r.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$r.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$r.Vertical&&0===this.height||this.orientation===$r.Horizontal&&0===this.width)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:u6,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(o,v){1&o&&(e.YNc(0,qa,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return v.select.emit(v.data)}),e.qZA()),2&o&&(e.Q6J("ngIf",v.hasGradient),e.xp6(1),e.ekj("active",v.isActive)("hidden",v.hideBar),e.uIk("d",v.path)("aria-label",v.ariaLabel)("fill",v.hasGradient?v.gradientFill:v.fill))},directives:[Go,i.O5],encapsulation:2,changeDetection:0}),f})();var Ms=(()=>{return(f=Ms||(Ms={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",Ms;var f})(),js=(()=>{return(f=js||(js={})).positive="positive",f.negative="negative",js;var f})();let u0=(()=>{class f{constructor(o){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):A1(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f6,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&o&&(e.uIk("text-anchor",v.textAnchor)("transform",v.transform)("x",v.x)("y",v.y),e.xp6(1),e.hij(" ",v.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),f0=(()=>{class f{constructor(o){this.platformId=o,this.type=Ms.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=$r,this.isSSR=!1}ngOnInit(){(0,i.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const v=Math.max(this.yScale.domain()[0],0),F={[js.positive]:0,[js.negative]:0};let Oe,J=js.positive;this.type===Ms.Normalized&&(Oe=this.series.map(st=>st.value).reduce((st,Ut)=>st+Ut,0)),this.bars=this.series.map((st,Ut)=>{let Bt=st.value;const oi=this.getLabel(st),vi=A1(oi);J=Bt>0?js.positive:js.negative;const Ti={value:Bt,label:oi,roundEdges:this.roundEdges,data:st,width:o,formattedLabel:vi,height:0,x:0,y:0};if(this.type===Ms.Standard)Ti.height=Math.abs(this.yScale(Bt)-this.yScale(v)),Ti.x=this.xScale(oi),Ti.y=this.yScale(Bt<0?0:Bt);else if(this.type===Ms.Stacked){const _n=F[J],Di=_n+Bt;F[J]+=Bt,Ti.height=this.yScale(_n)-this.yScale(Di),Ti.x=0,Ti.y=this.yScale(Di),Ti.offset0=_n,Ti.offset1=Di}else if(this.type===Ms.Normalized){let _n=F[J],Di=_n+Bt;F[J]+=Bt,Oe>0?(_n=100*_n/Oe,Di=100*Di/Oe):(_n=0,Di=0),Ti.height=this.yScale(_n)-this.yScale(Di),Ti.x=0,Ti.y=this.yScale(Di),Ti.offset0=_n,Ti.offset1=Di,Bt=(Di-_n).toFixed(2)+"%"}this.colors.scaleType===wn.Ordinal?Ti.color=this.colors.getColor(oi):this.type===Ms.Standard?(Ti.color=this.colors.getColor(Bt),Ti.gradientStops=this.colors.getLinearGradientStops(Bt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let tn=vi;return Ti.ariaLabel=vi+" "+Bt.toLocaleString(),null!=this.seriesName&&(tn=`${this.seriesName} \u2022 ${vi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n ${function D1(f){return f.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(tn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Bt):Bt.toLocaleString()}\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===Ms.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const v=this.series.map(J=>J.value).reduce((J,Oe)=>Oe>0?J+Oe:J,0),F=this.series.map(J=>J.value).reduce((J,Oe)=>Oe<0?J+Oe:J,0);o.total=v+F,o.x=0,o.y=0,o.height=this.yScale(o.total>0?v:F),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var v;const F={};return F.series=null!==(v=this.seriesName)&&void 0!==v?v:o.label,F.total=o.value,F.x=this.xScale(o.label),F.y=this.yScale(0),F.height=this.yScale(F.total)-this.yScale(0),F.width=this.xScale.bandwidth(),F})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Zn.Top,this.tooltipType=this.tooltipDisabled?void 0:Mo.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.name===F.name&&o.value===F.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,v){return v.label}trackDataLabelBy(o,v){return o+"#"+v.series+"#"+v.total}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:dc,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(o,v){1&o&&(e.YNc(0,k4,2,2,"g",0),e.YNc(1,L2,2,2,"g",0),e.YNc(2,P4,2,2,"g",0)),2&o&&(e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR),e.xp6(1),e.Q6J("ngIf",v.showDataLabel))},directives:[h0,u0,i.O5,i.sg,Oc],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1}),(0,h.jt)(500,(0,h.oB)({opacity:0}))])])]},changeDetection:0}),f})(),yh=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const o=this.xDomain.length/(this.dims.width/this.barPadding+1);return No().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=eo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map(J=>J.value);let v=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(v=Math.min(v,...this.yAxisTicks));let F=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(F=Math.max(F,...this.yAxisTicks)),[v,F]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===wn.Ordinal?this.xDomain:this.yDomain,this.colors=new N1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===wn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,v=!1){o=this.results.find(J=>v?J.label===o.name:J.name===o.name),!(this.activeEntries.findIndex(J=>J.name===o.name&&J.value===o.value&&J.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,v=!1){o=this.results.find(J=>v?J.label===o.name:J.name===o.name);const F=this.activeEntries.findIndex(J=>J.name===o.name&&J.value===o.value&&J.series===o.series);this.activeEntries.splice(F,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let J;e.iGM(J=e.CRH())&&(v.tooltipTemplate=J.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(J){return v.onClick(J)})("legendLabelActivate",function(J){return v.onActivate(J,!0)})("legendLabelDeactivate",function(J){return v.onDeactivate(J,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,T2,1,11,"g",2),e.YNc(3,A2,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(J){return v.onActivate(J)})("deactivate",function(J){return v.onDeactivate(J)})("select",function(J){return v.onClick(J)})("dataLabelHeightChanged",function(J){return v.onDataLabelMaxHeightChanged(J)}),e.qZA()()()),2&o&&(e.Q6J("view",e.WLB(22,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("xScale",v.xScale)("yScale",v.yScale)("colors",v.colors)("series",v.results)("dims",v.dims)("gradient",v.gradient)("tooltipDisabled",v.tooltipDisabled)("tooltipTemplate",v.tooltipTemplate)("showDataLabel",v.showDataLabel)("dataLabelFormatting",v.dataLabelFormatting)("activeEntries",v.activeEntries)("roundEdges",v.roundEdges)("animations",v.animations)("noBarWhenZero",v.noBarWhenZero))},directives:[Lc,B2,Ic,f0,i.O5],styles:[E4],encapsulation:2,changeDetection:0}),f})(),p0=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.Right,this.tooltipDisabled=!1,this.scaleType=wn.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=$r,this.trackBy=(o,v)=>v.name}ngOnInit(){(0,i.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(o,v){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),v===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return No().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),v=this.innerDomain.length/(o/this.barPadding+1);return No().rangeRound([0,o]).paddingInner(v).domain(this.innerDomain)}getValueScale(){const o=eo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const v of this.results)o.includes(v.label)||o.push(v.label);return o}getInnerDomain(){const o=[];for(const v of this.results)for(const F of v.series)o.includes(F.label)||o.push(F.label);return o}getValueDomain(){const o=[];for(const J of this.results)for(const Oe of J.series)o.includes(Oe.value)||o.push(Oe.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,v){v&&(o.series=v.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===wn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new N1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===wn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,v,F=!1){const J=Object.assign({},o);v&&(J.series=v.name);const Oe=this.results.map(st=>st.series).flat().filter(st=>F?st.label===J.name:st.name===J.name&&st.series===J.series);this.activeEntries=[...Oe],this.activate.emit({value:J,entries:this.activeEntries})}onDeactivate(o,v,F=!1){const J=Object.assign({},o);v&&(J.series=v.name),this.activeEntries=this.activeEntries.filter(Oe=>F?Oe.label!==J.name:!(Oe.name===J.name&&Oe.series===J.series)),this.deactivate.emit({value:J,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let J;e.iGM(J=e.CRH())&&(v.tooltipTemplate=J.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(J){return v.onActivate(J,void 0,!0)})("legendLabelDeactivate",function(J){return v.onDeactivate(J,void 0,!0)})("legendLabelClick",function(J){return v.onClick(J)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,S6,1,10,"g",3),e.YNc(4,D2,1,9,"g",4),e.YNc(5,uc,2,2,"g",5),e.qZA(),e.YNc(6,L6,2,2,"g",5),e.qZA()),2&o&&(e.Q6J("view",e.WLB(15,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("xScale",v.groupScale)("yScale",v.valueScale)("data",v.results)("dims",v.dims)("orient",v.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR))},directives:[Lc,Wo,B2,Ic,f0,i.O5,i.sg],styles:[E4],encapsulation:2,data:{animation:[(0,h.X$)("animationState",[(0,h.eR)(":leave",[(0,h.oB)({opacity:1,transform:"*"}),(0,h.jt)(500,(0,h.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})(),Bc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),xh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Eh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Q5=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Yc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})();Math;let $2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Ah=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Yc]]}),f})(),$c=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),E0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Nh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Bc]]}),f})(),Hh=(()=>{class f{constructor(){!function Qc(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[ts,Z2,Bc,xh,Eh,Q5,Yc,Ah,$c,$2,E0,Nh]}),f})()},159:(He,j,p)=>{"use strict";p.d(j,{OF:()=>T,uU:()=>D});var e=p(5e3),i=p(9808),u=p(655),b=p(3259);function a(M,A){if(1&M&&e._UZ(0,"canvas",1),2&M){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const y=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let h=(()=>{class M{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=M.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,k;return(0,u.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const V=w.getContext("2d");V&&V.clearRect(0,0,V.canvas.width,V.canvas.height);const U=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:M.DEFAULT_ERROR_CORRECTION_LEVEL,Y=y.test(this.darkColor)?this.darkColor:void 0,ae=y.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!Y&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ae&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield b.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:U,width:this.width,margin:this.margin,color:{dark:Y,light:ae}});const X=this.centerImageSrc,de=P(this.centerImageWidth,M.DEFAULT_CENTER_IMAGE_SIZE),q=P(this.centerImageHeight,M.DEFAULT_CENTER_IMAGE_SIZE);if(X&&V){this.centerImage||(this.centerImage=new Image(de,q)),X!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=X),de!==this.centerImage.width&&(this.centerImage.width=de),q!==this.centerImage.height&&(this.centerImage.height=q);const re=this.centerImage;re.onload=()=>{V.drawImage(re,w.width/2-de/2,w.height/2-q/2,de,q)}}})}}return M.DEFAULT_ERROR_CORRECTION_LEVEL="M",M.DEFAULT_CENTER_IMAGE_SIZE=40,M.\u0275fac=function(E){return new(E||M)(e.Y36(e.s_b))},M.\u0275dir=e.lG2({type:M,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),M})();function P(M,A){return void 0===M||""===M?A:"string"==typeof M?parseInt(M,10):M}let D=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,k){1&E&&e.YNc(0,a,1,10,"canvas",0),2&E&&e.Q6J("ngIf",k.value)},directives:[i.O5,h],encapsulation:2}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[i.ez]]}),M})()},8129:(He,j,p)=>{"use strict";p.d(j,{op:()=>ei,$V:()=>Me,Xd:()=>Rt});var e=p(7579),i=p(4968),u=p(3601),b=p(2722),a=p(5e3),y=p(9808);function h(et){return getComputedStyle(et)}function P(et,Re){for(var Je in Re){var Ke=Re[Je];"number"==typeof Ke&&(Ke+="px"),et.style[Je]=Ke}return et}function D(et){var Re=document.createElement("div");return Re.className=et,Re}var T="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function M(et,Re){if(!T)throw new Error("No element matching method supported");return T.call(et,Re)}function A(et){et.remove?et.remove():et.parentNode&&et.parentNode.removeChild(et)}function E(et,Re){return Array.prototype.filter.call(et.children,function(Je){return M(Je,Re)})}var k_element_thumb=function(et){return"ps__thumb-"+et},k_element_rail=function(et){return"ps__rail-"+et},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(et){return"ps--active-"+et},k_state_scrolling=function(et){return"ps--scrolling-"+et},w={x:null,y:null};function V(et,Re){var Je=et.element.classList,Ke=k_state_scrolling(Re);Je.contains(Ke)?clearTimeout(w[Re]):Je.add(Ke)}function U(et,Re){w[Re]=setTimeout(function(){return et.isAlive&&et.element.classList.remove(k_state_scrolling(Re))},et.settings.scrollingThreshold)}var ae=function(Re){this.element=Re,this.handlers={}},X={isEmpty:{configurable:!0}};ae.prototype.bind=function(Re,Je){void 0===this.handlers[Re]&&(this.handlers[Re]=[]),this.handlers[Re].push(Je),this.element.addEventListener(Re,Je,!1)},ae.prototype.unbind=function(Re,Je){var Ke=this;this.handlers[Re]=this.handlers[Re].filter(function(we){return!(!Je||we===Je)||(Ke.element.removeEventListener(Re,we,!1),!1)})},ae.prototype.unbindAll=function(){for(var Re in this.handlers)this.unbind(Re)},X.isEmpty.get=function(){var et=this;return Object.keys(this.handlers).every(function(Re){return 0===et.handlers[Re].length})},Object.defineProperties(ae.prototype,X);var de=function(){this.eventElements=[]};function q(et){if("function"==typeof window.CustomEvent)return new CustomEvent(et);var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(et,!1,!1,void 0),Re}function re(et,Re,Je,Ke,we){var Fe;if(void 0===Ke&&(Ke=!0),void 0===we&&(we=!1),"top"===Re)Fe=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Re)throw new Error("A proper axis should be provided");Fe=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function le(et,Re,Je,Ke,we){var Fe=Je[0],rt=Je[1],at=Je[2],yt=Je[3],mi=Je[4],Xt=Je[5];void 0===Ke&&(Ke=!0),void 0===we&&(we=!1);var qt=et.element;et.reach[yt]=null,qt[at]<1&&(et.reach[yt]="start"),qt[at]>et[Fe]-et[rt]-1&&(et.reach[yt]="end"),Re&&(qt.dispatchEvent(q("ps-scroll-"+yt)),Re<0?qt.dispatchEvent(q("ps-scroll-"+mi)):Re>0&&qt.dispatchEvent(q("ps-scroll-"+Xt)),Ke&&function Y(et,Re){V(et,Re),U(et,Re)}(et,yt)),et.reach[yt]&&(Re||we)&&qt.dispatchEvent(q("ps-"+yt+"-reach-"+et.reach[yt]))}(et,Je,Fe,Ke,we)}function ee(et){return parseInt(et,10)||0}de.prototype.eventElement=function(Re){var Je=this.eventElements.filter(function(Ke){return Ke.element===Re})[0];return Je||(Je=new ae(Re),this.eventElements.push(Je)),Je},de.prototype.bind=function(Re,Je,Ke){this.eventElement(Re).bind(Je,Ke)},de.prototype.unbind=function(Re,Je,Ke){var we=this.eventElement(Re);we.unbind(Je,Ke),we.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(we),1)},de.prototype.unbindAll=function(){this.eventElements.forEach(function(Re){return Re.unbindAll()}),this.eventElements=[]},de.prototype.once=function(Re,Je,Ke){var we=this.eventElement(Re),Fe=function(rt){we.unbind(Je,Fe),Ke(rt)};we.bind(Je,Fe)};var t={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function r(et){var Re=et.element,Je=Math.floor(Re.scrollTop),Ke=Re.getBoundingClientRect();et.containerWidth=Math.round(Ke.width),et.containerHeight=Math.round(Ke.height),et.contentWidth=Re.scrollWidth,et.contentHeight=Re.scrollHeight,Re.contains(et.scrollbarXRail)||(E(Re,k_element_rail("x")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarXRail)),Re.contains(et.scrollbarYRail)||(E(Re,k_element_rail("y")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarYRail)),!et.settings.suppressScrollX&&et.containerWidth+et.settings.scrollXMarginOffset=et.railXWidth-et.scrollbarXWidth&&(et.scrollbarXLeft=et.railXWidth-et.scrollbarXWidth),et.scrollbarYTop>=et.railYHeight-et.scrollbarYHeight&&(et.scrollbarYTop=et.railYHeight-et.scrollbarYHeight),function c(et,Re){var Je={width:Re.railXWidth},Ke=Math.floor(et.scrollTop);Je.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+Re.containerWidth-Re.contentWidth:et.scrollLeft,Re.isScrollbarXUsingBottom?Je.bottom=Re.scrollbarXBottom-Ke:Je.top=Re.scrollbarXTop+Ke,P(Re.scrollbarXRail,Je);var we={top:Ke,height:Re.railYHeight};Re.isScrollbarYUsingRight?we.right=Re.isRtl?Re.contentWidth-(Re.negativeScrollAdjustment+et.scrollLeft)-Re.scrollbarYRight-Re.scrollbarYOuterWidth-9:Re.scrollbarYRight-et.scrollLeft:we.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+2*Re.containerWidth-Re.contentWidth-Re.scrollbarYLeft-Re.scrollbarYOuterWidth:Re.scrollbarYLeft+et.scrollLeft,P(Re.scrollbarYRail,we),P(Re.scrollbarX,{left:Re.scrollbarXLeft,width:Re.scrollbarXWidth-Re.railBorderXWidth}),P(Re.scrollbarY,{top:Re.scrollbarYTop,height:Re.scrollbarYHeight-Re.railBorderYWidth})}(Re,et),et.scrollbarXActive?Re.classList.add(k_state_active("x")):(Re.classList.remove(k_state_active("x")),et.scrollbarXWidth=0,et.scrollbarXLeft=0,Re.scrollLeft=!0===et.isRtl?et.contentWidth:0),et.scrollbarYActive?Re.classList.add(k_state_active("y")):(Re.classList.remove(k_state_active("y")),et.scrollbarYHeight=0,et.scrollbarYTop=0,Re.scrollTop=0)}function d(et,Re){return et.settings.minScrollbarLength&&(Re=Math.max(Re,et.settings.minScrollbarLength)),et.settings.maxScrollbarLength&&(Re=Math.min(Re,et.settings.maxScrollbarLength)),Re}function I(et,Re){var Je=Re[0],Ke=Re[1],we=Re[2],Fe=Re[3],rt=Re[4],at=Re[5],yt=Re[6],mi=Re[7],Xt=Re[8],qt=et.element,Xi=null,ui=null,si=null;function qi(Wi){Wi.touches&&Wi.touches[0]&&(Wi[we]=Wi.touches[0].pageY),qt[yt]=Xi+si*(Wi[we]-ui),V(et,mi),r(et),Wi.stopPropagation(),Wi.type.startsWith("touch")&&Wi.changedTouches.length>1&&Wi.preventDefault()}function Gi(){U(et,mi),et[Xt].classList.remove(k_state_clicking),et.event.unbind(et.ownerDocument,"mousemove",qi)}function Ui(Wi,ct){Xi=qt[yt],ct&&Wi.touches&&(Wi[we]=Wi.touches[0].pageY),ui=Wi[we],si=(et[Ke]-et[Je])/(et[Fe]-et[at]),ct?et.event.bind(et.ownerDocument,"touchmove",qi):(et.event.bind(et.ownerDocument,"mousemove",qi),et.event.once(et.ownerDocument,"mouseup",Gi),Wi.preventDefault()),et[Xt].classList.add(k_state_clicking),Wi.stopPropagation()}et.event.bind(et[rt],"mousedown",function(Wi){Ui(Wi)}),et.event.bind(et[rt],"touchstart",function(Wi){Ui(Wi,!0)})}var R={"click-rail":function g(et){et.event.bind(et.scrollbarY,"mousedown",function(Je){return Je.stopPropagation()}),et.event.bind(et.scrollbarYRail,"mousedown",function(Je){var Ke=Je.pageY-window.pageYOffset-et.scrollbarYRail.getBoundingClientRect().top;et.element.scrollTop+=(Ke>et.scrollbarYTop?1:-1)*et.containerHeight,r(et),Je.stopPropagation()}),et.event.bind(et.scrollbarX,"mousedown",function(Je){return Je.stopPropagation()}),et.event.bind(et.scrollbarXRail,"mousedown",function(Je){var Ke=Je.pageX-window.pageXOffset-et.scrollbarXRail.getBoundingClientRect().left;et.element.scrollLeft+=(Ke>et.scrollbarXLeft?1:-1)*et.containerWidth,r(et),Je.stopPropagation()})},"drag-thumb":function S(et){I(et,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(et,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function C(et){var Re=et.element;et.event.bind(et.ownerDocument,"keydown",function(Fe){if(!(Fe.isDefaultPrevented&&Fe.isDefaultPrevented()||Fe.defaultPrevented)&&(M(Re,":hover")||M(et.scrollbarX,":focus")||M(et.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:et.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function _e(et){return M(et,"input,[contenteditable]")||M(et,"select,[contenteditable]")||M(et,"textarea,[contenteditable]")||M(et,"button,[contenteditable]")}(rt))return}var at=0,yt=0;switch(Fe.which){case 37:at=Fe.metaKey?-et.contentWidth:Fe.altKey?-et.containerWidth:-30;break;case 38:yt=Fe.metaKey?et.contentHeight:Fe.altKey?et.containerHeight:30;break;case 39:at=Fe.metaKey?et.contentWidth:Fe.altKey?et.containerWidth:30;break;case 40:yt=Fe.metaKey?-et.contentHeight:Fe.altKey?-et.containerHeight:-30;break;case 32:yt=Fe.shiftKey?et.containerHeight:-et.containerHeight;break;case 33:yt=et.containerHeight;break;case 34:yt=-et.containerHeight;break;case 36:yt=et.contentHeight;break;case 35:yt=-et.contentHeight;break;default:return}et.settings.suppressScrollX&&0!==at||et.settings.suppressScrollY&&0!==yt||(Re.scrollTop-=yt,Re.scrollLeft+=at,r(et),function we(Fe,rt){var at=Math.floor(Re.scrollTop);if(0===Fe){if(!et.scrollbarYActive)return!1;if(0===at&&rt>0||at>=et.contentHeight-et.containerHeight&&rt<0)return!et.settings.wheelPropagation}var yt=Re.scrollLeft;if(0===rt){if(!et.scrollbarXActive)return!1;if(0===yt&&Fe<0||yt>=et.contentWidth-et.containerWidth&&Fe>0)return!et.settings.wheelPropagation}return!0}(at,yt)&&Fe.preventDefault())}})},wheel:function n(et){var Re=et.element;function Fe(rt){var at=function Ke(rt){var at=rt.deltaX,yt=-1*rt.deltaY;return(void 0===at||void 0===yt)&&(at=-1*rt.wheelDeltaX/6,yt=rt.wheelDeltaY/6),rt.deltaMode&&1===rt.deltaMode&&(at*=10,yt*=10),at!=at&&yt!=yt&&(at=0,yt=rt.wheelDelta),rt.shiftKey?[-yt,-at]:[at,yt]}(rt),yt=at[0],mi=at[1];if(!function we(rt,at,yt){if(!t.isWebKit&&Re.querySelector("select:focus"))return!0;if(!Re.contains(rt))return!1;for(var mi=rt;mi&&mi!==Re;){if(mi.classList.contains(k_element_consuming))return!0;var Xt=h(mi);if(yt&&Xt.overflowY.match(/(scroll|auto)/)){var qt=mi.scrollHeight-mi.clientHeight;if(qt>0&&(mi.scrollTop>0&&yt<0||mi.scrollTop0))return!0}if(at&&Xt.overflowX.match(/(scroll|auto)/)){var Xi=mi.scrollWidth-mi.clientWidth;if(Xi>0&&(mi.scrollLeft>0&&at<0||mi.scrollLeft0))return!0}mi=mi.parentNode}return!1}(rt.target,yt,mi)){var Xt=!1;et.settings.useBothWheelAxes?et.scrollbarYActive&&!et.scrollbarXActive?(mi?Re.scrollTop-=mi*et.settings.wheelSpeed:Re.scrollTop+=yt*et.settings.wheelSpeed,Xt=!0):et.scrollbarXActive&&!et.scrollbarYActive&&(yt?Re.scrollLeft+=yt*et.settings.wheelSpeed:Re.scrollLeft-=mi*et.settings.wheelSpeed,Xt=!0):(Re.scrollTop-=mi*et.settings.wheelSpeed,Re.scrollLeft+=yt*et.settings.wheelSpeed),r(et),Xt=Xt||function Je(rt,at){var yt=Math.floor(Re.scrollTop),mi=0===Re.scrollTop,Xt=yt+Re.offsetHeight===Re.scrollHeight,qt=0===Re.scrollLeft,Xi=Re.scrollLeft+Re.offsetWidth===Re.scrollWidth;return!(Math.abs(at)>Math.abs(rt)?mi||Xt:qt||Xi)||!et.settings.wheelPropagation}(yt,mi),Xt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?et.event.bind(Re,"wheel",Fe):void 0!==window.onmousewheel&&et.event.bind(Re,"mousewheel",Fe)},touch:function _(et){if(t.supportsTouch||t.supportsIePointer){var Re=et.element,we={},Fe=0,rt={},at=null;t.supportsTouch?(et.event.bind(Re,"touchstart",Xt),et.event.bind(Re,"touchmove",Xi),et.event.bind(Re,"touchend",ui)):t.supportsIePointer&&(window.PointerEvent?(et.event.bind(Re,"pointerdown",Xt),et.event.bind(Re,"pointermove",Xi),et.event.bind(Re,"pointerup",ui)):window.MSPointerEvent&&(et.event.bind(Re,"MSPointerDown",Xt),et.event.bind(Re,"MSPointerMove",Xi),et.event.bind(Re,"MSPointerUp",ui)))}function Ke(si,qi){Re.scrollTop-=qi,Re.scrollLeft-=si,r(et)}function yt(si){return si.targetTouches?si.targetTouches[0]:si}function mi(si){return!(si.pointerType&&"pen"===si.pointerType&&0===si.buttons||!(si.targetTouches&&1===si.targetTouches.length||si.pointerType&&"mouse"!==si.pointerType&&si.pointerType!==si.MSPOINTER_TYPE_MOUSE))}function Xt(si){if(mi(si)){var qi=yt(si);we.pageX=qi.pageX,we.pageY=qi.pageY,Fe=(new Date).getTime(),null!==at&&clearInterval(at)}}function Xi(si){if(mi(si)){var qi=yt(si),Gi={pageX:qi.pageX,pageY:qi.pageY},Ui=Gi.pageX-we.pageX,Wi=Gi.pageY-we.pageY;if(function qt(si,qi,Gi){if(!Re.contains(si))return!1;for(var Ui=si;Ui&&Ui!==Re;){if(Ui.classList.contains(k_element_consuming))return!0;var Wi=h(Ui);if(Gi&&Wi.overflowY.match(/(scroll|auto)/)){var ct=Ui.scrollHeight-Ui.clientHeight;if(ct>0&&(Ui.scrollTop>0&&Gi<0||Ui.scrollTop0))return!0}if(qi&&Wi.overflowX.match(/(scroll|auto)/)){var Ft=Ui.scrollWidth-Ui.clientWidth;if(Ft>0&&(Ui.scrollLeft>0&&qi<0||Ui.scrollLeft0))return!0}Ui=Ui.parentNode}return!1}(si.target,Ui,Wi))return;Ke(Ui,Wi),we=Gi;var ct=(new Date).getTime(),Ft=ct-Fe;Ft>0&&(rt.x=Ui/Ft,rt.y=Wi/Ft,Fe=ct),function Je(si,qi){var Gi=Math.floor(Re.scrollTop),Ui=Re.scrollLeft,Wi=Math.abs(si),ct=Math.abs(qi);if(ct>Wi){if(qi<0&&Gi===et.contentHeight-et.containerHeight||qi>0&&0===Gi)return 0===window.scrollY&&qi>0&&t.isChrome}else if(Wi>ct&&(si<0&&Ui===et.contentWidth-et.containerWidth||si>0&&0===Ui))return!0;return!0}(Ui,Wi)&&si.preventDefault()}}function ui(){et.settings.swipeEasing&&(clearInterval(at),at=setInterval(function(){et.isInitialized?clearInterval(at):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(at):et.element?(Ke(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(at):clearInterval(at)},10))}}},H=function(Re,Je){var Ke=this;if(void 0===Je&&(Je={}),"string"==typeof Re&&(Re=document.querySelector(Re)),!Re||!Re.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var we in this.element=Re,Re.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Je)this.settings[we]=Je[we];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Xt,mi,Fe=function(){return Re.classList.add(k_state_focus)},rt=function(){return Re.classList.remove(k_state_focus)};this.isRtl="rtl"===h(Re).direction,!0===this.isRtl&&Re.classList.add("ps__rtl"),this.isNegativeScroll=(mi=Re.scrollLeft,Re.scrollLeft=-1,Xt=Re.scrollLeft<0,Re.scrollLeft=mi,Xt),this.negativeScrollAdjustment=this.isNegativeScroll?Re.scrollWidth-Re.clientWidth:0,this.event=new de,this.ownerDocument=Re.ownerDocument||document,this.scrollbarXRail=D(k_element_rail("x")),Re.appendChild(this.scrollbarXRail),this.scrollbarX=D(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Fe),this.event.bind(this.scrollbarX,"blur",rt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var at=h(this.scrollbarXRail);this.scrollbarXBottom=parseInt(at.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ee(at.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ee(at.borderLeftWidth)+ee(at.borderRightWidth),P(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ee(at.marginLeft)+ee(at.marginRight),P(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=D(k_element_rail("y")),Re.appendChild(this.scrollbarYRail),this.scrollbarY=D(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Fe),this.event.bind(this.scrollbarY,"blur",rt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var yt=h(this.scrollbarYRail);this.scrollbarYRight=parseInt(yt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ee(yt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function x(et){var Re=h(et);return ee(Re.width)+ee(Re.paddingLeft)+ee(Re.paddingRight)+ee(Re.borderLeftWidth)+ee(Re.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ee(yt.borderTopWidth)+ee(yt.borderBottomWidth),P(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ee(yt.marginTop)+ee(yt.marginBottom),P(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Re.scrollLeft<=0?"start":Re.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Re.scrollTop<=0?"start":Re.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return R[mi](Ke)}),this.lastScrollTop=Math.floor(Re.scrollTop),this.lastScrollLeft=Re.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return Ke.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,P(this.scrollbarXRail,{display:"block"}),P(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ee(h(this.scrollbarXRail).marginLeft)+ee(h(this.scrollbarXRail).marginRight),this.railYMarginHeight=ee(h(this.scrollbarYRail).marginTop)+ee(h(this.scrollbarYRail).marginBottom),P(this.scrollbarXRail,{display:"none"}),P(this.scrollbarYRail,{display:"none"}),r(this),re(this,"top",0,!1,!0),re(this,"left",0,!1,!0),P(this.scrollbarXRail,{display:""}),P(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(Re){!this.isAlive||(r(this),re(this,"top",this.element.scrollTop-this.lastScrollTop),re(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),A(this.scrollbarX),A(this.scrollbarY),A(this.scrollbarXRail),A(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Re){return!Re.match(/^ps([-_].+|)$/)}).join(" ")};const Q=H;var Z=function(){if("undefined"!=typeof Map)return Map;function et(Re,Je){var Ke=-1;return Re.some(function(we,Fe){return we[0]===Je&&(Ke=Fe,!0)}),Ke}return function(){function Re(){this.__entries__=[]}return Object.defineProperty(Re.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Re.prototype.get=function(Je){var Ke=et(this.__entries__,Je),we=this.__entries__[Ke];return we&&we[1]},Re.prototype.set=function(Je,Ke){var we=et(this.__entries__,Je);~we?this.__entries__[we][1]=Ke:this.__entries__.push([Je,Ke])},Re.prototype.delete=function(Je){var Ke=this.__entries__,we=et(Ke,Je);~we&&Ke.splice(we,1)},Re.prototype.has=function(Je){return!!~et(this.__entries__,Je)},Re.prototype.clear=function(){this.__entries__.splice(0)},Re.prototype.forEach=function(Je,Ke){void 0===Ke&&(Ke=null);for(var we=0,Fe=this.__entries__;we0},et.prototype.connect_=function(){!te||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},et.prototype.disconnect_=function(){!te||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},et.prototype.onTransitionEnd_=function(Re){var Je=Re.propertyName,Ke=void 0===Je?"":Je;$.some(function(Fe){return!!~Ke.indexOf(Fe)})&&this.refresh()},et.getInstance=function(){return this.instance_||(this.instance_=new et),this.instance_},et.instance_=null,et}(),W=function(et,Re){for(var Je=0,Ke=Object.keys(Re);Je0},et}(),di="undefined"!=typeof WeakMap?new WeakMap:new Z,vt=function et(Re){if(!(this instanceof et))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Je=lt.getInstance(),Ke=new Gt(Re,Je,this);di.set(this,Ke)};["observe","unobserve","disconnect"].forEach(function(et){vt.prototype[et]=function(){var Re;return(Re=di.get(this))[et].apply(Re,arguments)}});const mt=void 0!==Te.ResizeObserver?Te.ResizeObserver:vt,ei=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class Kt{constructor(Re,Je,Ke,we){this.x=Re,this.y=Je,this.w=Ke,this.h=we}}class Pe{constructor(Re,Je){this.x=Re,this.y=Je}}const Ie=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ce{constructor(Re={}){this.assign(Re)}assign(Re={}){for(const Je in Re)this[Je]=Re[Je]}}let Me=(()=>{class et{constructor(Je,Ke,we,Fe,rt){this.zone=Je,this.differs=Ke,this.elementRef=we,this.platformId=Fe,this.defaults=rt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,y.NF)(this.platformId)){const Je=new ce(this.defaults);Je.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Q(this.elementRef.nativeElement,Je)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new mt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Ie.forEach(Ke=>{const we=Ke.replace(/([A-Z])/g,Fe=>`-${Fe.toLowerCase()}`);(0,i.R)(this.elementRef.nativeElement,we).pipe((0,u.e)(20),(0,b.R)(this.ngDestroy)).subscribe(Fe=>{this[Ke].emit(Fe)})})})}}ngOnDestroy(){(0,y.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,y.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Je){Je.disabled&&!Je.disabled.isFirstChange()&&(0,y.NF)(this.platformId)&&Je.disabled.currentValue!==Je.disabled.previousValue&&(!0===Je.disabled.currentValue?this.ngOnDestroy():!1===Je.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(Je){}},0))}geometry(Je="scroll"){return new Kt(this.elementRef.nativeElement[Je+"Left"],this.elementRef.nativeElement[Je+"Top"],this.elementRef.nativeElement[Je+"Width"],this.elementRef.nativeElement[Je+"Height"])}position(Je=!1){return!Je&&this.instance?new Pe(this.instance.reach.x||0,this.instance.reach.y||0):new Pe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Je="any"){const Ke=this.elementRef.nativeElement;return"any"===Je?Ke.classList.contains("ps--active-x")||Ke.classList.contains("ps--active-y"):"both"===Je?Ke.classList.contains("ps--active-x")&&Ke.classList.contains("ps--active-y"):Ke.classList.contains("ps--active-"+Je)}scrollTo(Je,Ke,we){this.disabled||(null==Ke&&null==we?this.animateScrolling("scrollTop",Je,we):(null!=Je&&this.animateScrolling("scrollLeft",Je,we),null!=Ke&&this.animateScrolling("scrollTop",Ke,we)))}scrollToX(Je,Ke){this.animateScrolling("scrollLeft",Je,Ke)}scrollToY(Je,Ke){this.animateScrolling("scrollTop",Je,Ke)}scrollToTop(Je,Ke){this.animateScrolling("scrollTop",Je||0,Ke)}scrollToLeft(Je,Ke){this.animateScrolling("scrollLeft",Je||0,Ke)}scrollToRight(Je,Ke){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Je||0),Ke)}scrollToBottom(Je,Ke){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Je||0),Ke)}scrollToElement(Je,Ke,we){if("string"==typeof Je&&(Je=this.elementRef.nativeElement.querySelector(Je)),Je){const Fe=Je.getBoundingClientRect(),rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Fe.left-rt.left+this.elementRef.nativeElement.scrollLeft+(Ke||0),we),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Fe.top-rt.top+this.elementRef.nativeElement.scrollTop+(Ke||0),we)}}animateScrolling(Je,Ke,we){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),we&&"undefined"!=typeof window){if(Ke!==this.elementRef.nativeElement[Je]){let Fe=0,rt=0,at=performance.now(),yt=this.elementRef.nativeElement[Je];const mi=(yt-Ke)/2,Xt=qt=>{rt+=Math.PI/(we/(qt-at)),Fe=Math.round(Ke+mi+mi*Math.cos(rt)),this.elementRef.nativeElement[Je]===yt&&(rt>=Math.PI?this.animateScrolling(Je,Ke,0):(this.elementRef.nativeElement[Je]=Fe,yt=this.elementRef.nativeElement[Je],at=qt,this.animation=window.requestAnimationFrame(Xt)))};window.requestAnimationFrame(Xt)}}else this.elementRef.nativeElement[Je]=Ke}}return et.\u0275fac=function(Je){return new(Je||et)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(ei,8))},et.\u0275dir=a.lG2({type:et,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.TTD]}),et})(),Rt=(()=>{class et{}return et.\u0275fac=function(Je){return new(Je||et)},et.\u0275mod=a.oAB({type:et}),et.\u0275inj=a.cJS({imports:[[y.ez],y.ez]}),et})()},4946:He=>{"use strict";He.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},5207:He=>{"use strict";He.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:He=>{"use strict";He.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},9799:He=>{"use strict";He.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:He=>{"use strict";He.exports={i8:"6.5.4"}},2562:He=>{"use strict";He.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},He=>{He(He.s=5901)}]); \ No newline at end of file diff --git a/frontend/main.b852398d8716a19c.js b/frontend/main.b852398d8716a19c.js deleted file mode 100644 index b5ec2240..00000000 --- a/frontend/main.b852398d8716a19c.js +++ /dev/null @@ -1 +0,0 @@ -var Ew=Object.defineProperty,ww=Object.defineProperties,Sw=Object.getOwnPropertyDescriptors,XC=Object.getOwnPropertySymbols,Lw=Object.prototype.hasOwnProperty,Tw=Object.prototype.propertyIsEnumerable,qC=(He,j,p)=>j in He?Ew(He,j,{enumerable:!0,configurable:!0,writable:!0,value:p}):He[j]=p,ws=(He,j)=>{for(var p in j||(j={}))Lw.call(j,p)&&qC(He,p,j[p]);if(XC)for(var p of XC(j))Tw.call(j,p)&&qC(He,p,j[p]);return He},JC=(He,j)=>ww(He,Sw(j));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(He,j,p)=>{"use strict";p.d(j,{Acd:()=>d3,Aq:()=>oc,B$L:()=>gC,BDt:()=>os,CgH:()=>q9,DL8:()=>Z9,FJU:()=>DC,FVb:()=>kC,FlN:()=>y2,FpQ:()=>G9,HLz:()=>Lc,KOR:()=>r6,Krp:()=>_f,Mdf:()=>bs,N2j:()=>fi,NBC:()=>QC,OS1:()=>vl,Psp:()=>_i,Sbq:()=>C,Ssp:()=>V9,SuH:()=>fg,TmZ:()=>m2,USL:()=>T8,Vfw:()=>V,X5K:()=>BC,XsY:()=>yu,aj4:()=>l8,b7W:()=>B2,byT:()=>Pf,co4:()=>uu,dLy:()=>jo,dT$:()=>Y3,eHv:()=>lC,gNZ:()=>SC,hkK:()=>xC,hnx:()=>MC,iOm:()=>j7,kXW:()=>Cu,kZ_:()=>Fl,koM:()=>Ts,mh3:()=>j3,nNP:()=>I0,q7m:()=>ks,qO$:()=>V3,r8p:()=>X8,sqG:()=>fd,uli:()=>xf,vqe:()=>zh,wn1:()=>Ff,wyP:()=>KC,xf3:()=>tg,yOe:()=>Gc});var C={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M169.4 278.6C175.6 284.9 183.8 288 192 288s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25s-32.75-12.5-45.25 0L192 210.8L54.63 73.38c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25L169.4 278.6zM329.4 265.4L192 402.8L54.63 265.4c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25l160 160C175.6 476.9 183.8 480 192 480s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25S341.9 252.9 329.4 265.4z"]},V={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M54.63 246.6L192 109.3l137.4 137.4C335.6 252.9 343.8 256 352 256s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25l-160-160c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25S42.13 259.1 54.63 246.6zM214.6 233.4c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0L192 301.3l137.4 137.4C335.6 444.9 343.8 448 352 448s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25L214.6 233.4z"]},os={prefix:"fas",iconName:"bolt",icon:[384,512,[9889,"zap"],"f0e7","M240.5 224H352C365.3 224 377.3 232.3 381.1 244.7C386.6 257.2 383.1 271.3 373.1 280.1L117.1 504.1C105.8 513.9 89.27 514.7 77.19 505.9C65.1 497.1 60.7 481.1 66.59 467.4L143.5 288H31.1C18.67 288 6.733 279.7 2.044 267.3C-2.645 254.8 .8944 240.7 10.93 231.9L266.9 7.918C278.2-1.92 294.7-2.669 306.8 6.114C318.9 14.9 323.3 30.87 317.4 44.61L240.5 224z"]},fi={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 432C32 458.5 53.49 480 80 480h352c26.51 0 48-21.49 48-48V160H32V432zM160 236C160 229.4 165.4 224 172 224h168C346.6 224 352 229.4 352 236v8C352 250.6 346.6 256 340 256h-168C165.4 256 160 250.6 160 244V236zM480 32H32C14.31 32 0 46.31 0 64v48C0 120.8 7.188 128 16 128h480C504.8 128 512 120.8 512 112V64C512 46.31 497.7 32 480 32z"]},d3={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128363,128226],"f0a1","M480 179.6C498.6 188.4 512 212.1 512 240C512 267.9 498.6 291.6 480 300.4V448C480 460.9 472.2 472.6 460.2 477.6C448.3 482.5 434.5 479.8 425.4 470.6L381.7 426.1C333.7 378.1 268.6 352 200.7 352H192V480C192 497.7 177.7 512 160 512H96C78.33 512 64 497.7 64 480V352C28.65 352 0 323.3 0 288V192C0 156.7 28.65 128 64 128H200.7C268.6 128 333.7 101 381.7 53.02L425.4 9.373C434.5 .2215 448.3-2.516 460.2 2.437C472.2 7.39 480 19.06 480 32V179.6zM200.7 192H192V288H200.7C280.5 288 357.2 317.8 416 371.3V108.7C357.2 162.2 280.5 192 200.7 192V192z"]},Ts={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32C49.67 32 64 46.33 64 64V400C64 408.8 71.16 416 80 416H480C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H80C35.82 480 0 444.2 0 400V64C0 46.33 14.33 32 32 32zM128 128C128 110.3 142.3 96 160 96H352C369.7 96 384 110.3 384 128C384 145.7 369.7 160 352 160H160C142.3 160 128 145.7 128 128zM288 192C305.7 192 320 206.3 320 224C320 241.7 305.7 256 288 256H160C142.3 256 128 241.7 128 224C128 206.3 142.3 192 160 192H288zM416 288C433.7 288 448 302.3 448 320C448 337.7 433.7 352 416 352H160C142.3 352 128 337.7 128 320C128 302.3 142.3 288 160 288H416z"]},vl={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 16.58C304 7.555 310.1 0 320 0C443.7 0 544 100.3 544 224C544 233 536.4 240 527.4 240H304V16.58zM32 272C32 150.7 122.1 50.34 238.1 34.25C248.2 32.99 256 40.36 256 49.61V288L412.5 444.5C419.2 451.2 418.7 462.2 411 467.7C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zM558.4 288C567.6 288 575 295.8 573.8 305C566.1 360.9 539.1 410.6 499.9 447.3C493.9 452.1 484.5 452.5 478.7 446.7L320 288H558.4z"]},fd={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},V3={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C201.7 512 151.2 495 109.7 466.1C95.2 455.1 91.64 436 101.8 421.5C111.9 407 131.8 403.5 146.3 413.6C177.4 435.3 215.2 448 256 448C362 448 448 362 448 256C448 149.1 362 64 256 64C202.1 64 155 85.46 120.2 120.2L151 151C166.1 166.1 155.4 192 134.1 192H24C10.75 192 0 181.3 0 168V57.94C0 36.56 25.85 25.85 40.97 40.97L74.98 74.98C121.3 28.69 185.3 0 255.1 0L256 0zM256 128C269.3 128 280 138.7 280 152V246.1L344.1 311C354.3 320.4 354.3 335.6 344.1 344.1C335.6 354.3 320.4 354.3 311 344.1L239 272.1C234.5 268.5 232 262.4 232 256V152C232 138.7 242.7 128 256 128V128z"]},Y3={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M414.8 40.79L286.8 488.8C281.9 505.8 264.2 515.6 247.2 510.8C230.2 505.9 220.4 488.2 225.2 471.2L353.2 23.21C358.1 6.216 375.8-3.624 392.8 1.232C409.8 6.087 419.6 23.8 414.8 40.79H414.8zM518.6 121.4L630.6 233.4C643.1 245.9 643.1 266.1 630.6 278.6L518.6 390.6C506.1 403.1 485.9 403.1 473.4 390.6C460.9 378.1 460.9 357.9 473.4 345.4L562.7 256L473.4 166.6C460.9 154.1 460.9 133.9 473.4 121.4C485.9 108.9 506.1 108.9 518.6 121.4V121.4zM166.6 166.6L77.25 256L166.6 345.4C179.1 357.9 179.1 378.1 166.6 390.6C154.1 403.1 133.9 403.1 121.4 390.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4L121.4 121.4C133.9 108.9 154.1 108.9 166.6 121.4C179.1 133.9 179.1 154.1 166.6 166.6V166.6z"]},j3={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M160 80C160 112.8 140.3 140.1 112 153.3V241.1C130.8 230.2 152.7 224 176 224H272C307.3 224 336 195.3 336 160V153.3C307.7 140.1 288 112.8 288 80C288 35.82 323.8 0 368 0C412.2 0 448 35.82 448 80C448 112.8 428.3 140.1 400 153.3V160C400 230.7 342.7 288 272 288H176C140.7 288 112 316.7 112 352V358.7C140.3 371 160 399.2 160 432C160 476.2 124.2 512 80 512C35.82 512 0 476.2 0 432C0 399.2 19.75 371 48 358.7V153.3C19.75 140.1 0 112.8 0 80C0 35.82 35.82 0 80 0C124.2 0 160 35.82 160 80V80zM80 104C93.25 104 104 93.25 104 80C104 66.75 93.25 56 80 56C66.75 56 56 66.75 56 80C56 93.25 66.75 104 80 104zM368 56C354.7 56 344 66.75 344 80C344 93.25 354.7 104 368 104C381.3 104 392 93.25 392 80C392 66.75 381.3 56 368 56zM80 456C93.25 456 104 445.3 104 432C104 418.7 93.25 408 80 408C66.75 408 56 418.7 56 432C56 445.3 66.75 456 80 456z"]},Fl={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"]},m2={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.49 21.49 32 48 32H144C170.5 32 192 53.49 192 80V96H384V80C384 53.49 405.5 32 432 32H528C554.5 32 576 53.49 576 80V176C576 202.5 554.5 224 528 224H432C405.5 224 384 202.5 384 176V160H192V176C192 177.7 191.9 179.4 191.7 180.1L272 288H368C394.5 288 416 309.5 416 336V432C416 458.5 394.5 480 368 480H272C245.5 480 224 458.5 224 432V336C224 334.3 224.1 332.6 224.3 331L144 224H48C21.49 224 0 202.5 0 176V80z"]},ks={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z"]},y2={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96h-48C42.75 96 32 106.8 32 120V224C14.33 224 0 238.3 0 256c0 17.67 14.33 32 31.1 32L32 392C32 405.3 42.75 416 56 416h48C117.3 416 128 405.3 128 392v-272C128 106.8 117.3 96 104 96zM456 32h-48C394.8 32 384 42.75 384 56V224H256V56C256 42.75 245.3 32 232 32h-48C170.8 32 160 42.75 160 56v400C160 469.3 170.8 480 184 480h48C245.3 480 256 469.3 256 456V288h128v168c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V56C480 42.75 469.3 32 456 32zM608 224V120C608 106.8 597.3 96 584 96h-48C522.8 96 512 106.8 512 120v272c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24V288c17.67 0 32-14.33 32-32C640 238.3 625.7 224 608 224z"]},r6={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M48.01 319.1h351.1c41.62 0 63.49-49.63 35.37-80.38l-175.1-192.1c-19-20.62-51.75-20.62-70.75 0L12.64 239.6C-15.48 270.2 6.393 319.1 48.01 319.1zM399.1 384H48.01c-26.39 0-47.99 21.59-47.99 47.98C.0117 458.4 21.61 480 48.01 480h351.1c26.39 0 47.99-21.6 47.99-47.99C447.1 405.6 426.4 384 399.1 384z"]},bs={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"]},oc={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},Lc={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 64C238.3 64 224 78.33 224 96C224 113.7 238.3 128 256 128C273.7 128 288 113.7 288 96C288 78.33 273.7 64 256 64zM256 416C291.3 416 320 387.3 320 352C320 334.6 313.1 318.9 301.9 307.4L365.1 161.7C371.3 149.5 365.8 135.4 353.7 130C341.5 124.7 327.4 130.2 322 142.3L257.9 288C257.3 288 256.6 287.1 256 287.1C220.7 287.1 192 316.7 192 352C192 387.3 220.7 416 256 416V416zM144 112C126.3 112 112 126.3 112 144C112 161.7 126.3 176 144 176C161.7 176 176 161.7 176 144C176 126.3 161.7 112 144 112zM96 288C113.7 288 128 273.7 128 256C128 238.3 113.7 224 96 224C78.33 224 64 238.3 64 256C64 273.7 78.33 288 96 288zM416 224C398.3 224 384 238.3 384 256C384 273.7 398.3 288 416 288C433.7 288 448 273.7 448 256C448 238.3 433.7 224 416 224z"]},B2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"]},Gc={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M0 383.9l64 .0404c17.75 0 32-14.29 32-32.03V128.3L0 128.3V383.9zM48 320.1c8.75 0 16 7.118 16 15.99c0 8.742-7.25 15.99-16 15.99S32 344.8 32 336.1C32 327.2 39.25 320.1 48 320.1zM348.8 64c-7.941 0-15.66 2.969-21.52 8.328L228.9 162.3C228.8 162.5 228.8 162.7 228.6 162.7C212 178.3 212.3 203.2 226.5 218.7c12.75 13.1 39.38 17.62 56.13 2.75C282.8 221.3 282.9 221.3 283 221.2l79.88-73.1c6.5-5.871 16.75-5.496 22.62 1c6 6.496 5.5 16.62-1 22.62l-26.12 23.87L504 313.7c2.875 2.496 5.5 4.996 7.875 7.742V127.1c-40.98-40.96-96.48-63.88-154.4-63.88L348.8 64zM334.6 217.4l-30 27.49c-29.75 27.11-75.25 24.49-101.8-4.371C176 211.2 178.1 165.7 207.3 138.9L289.1 64H282.5C224.7 64 169.1 87.08 128.2 127.9L128 351.8l18.25 .0369l90.5 81.82c27.5 22.37 67.75 18.12 90-9.246l18.12 15.24c15.88 12.1 39.38 10.5 52.38-5.371l31.38-38.6l5.374 4.498c13.75 11 33.88 9.002 45-4.748l9.538-11.78c11.12-13.75 9.036-33.78-4.694-44.93L334.6 217.4zM544 128.4v223.6c0 17.62 14.25 32.05 31.1 32.05L640 384V128.1L544 128.4zM592 352c-8.75 0-16-7.246-16-15.99c0-8.875 7.25-15.99 16-15.99S608 327.2 608 336.1C608 344.8 600.8 352 592 352z"]},zh={prefix:"fas",iconName:"infinity",icon:[640,512,[9854,8734],"f534","M494.9 96.01c-38.78 0-75.22 15.09-102.6 42.5L320 210.8L247.8 138.5c-27.41-27.41-63.84-42.5-102.6-42.5C65.11 96.01 0 161.1 0 241.1v29.75c0 80.03 65.11 145.1 145.1 145.1c38.78 0 75.22-15.09 102.6-42.5L320 301.3l72.23 72.25c27.41 27.41 63.84 42.5 102.6 42.5C574.9 416 640 350.9 640 270.9v-29.75C640 161.1 574.9 96.01 494.9 96.01zM202.5 328.3c-15.31 15.31-35.69 23.75-57.38 23.75C100.4 352 64 315.6 64 270.9v-29.75c0-44.72 36.41-81.13 81.14-81.13c21.69 0 42.06 8.438 57.38 23.75l72.23 72.25L202.5 328.3zM576 270.9c0 44.72-36.41 81.13-81.14 81.13c-21.69 0-42.06-8.438-57.38-23.75l-72.23-72.25l72.23-72.25c15.31-15.31 35.69-23.75 57.38-23.75C539.6 160 576 196.4 576 241.1V270.9z"]},_f={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.171C247.4-1.718 264.6-1.718 279.5 5.171L498.1 106.2C506.6 110.1 512 118.6 512 127.1C512 137.3 506.6 145.8 498.1 149.8L279.5 250.8C264.6 257.7 247.4 257.7 232.5 250.8L13.93 149.8C5.438 145.8 0 137.3 0 127.1C0 118.6 5.437 110.1 13.93 106.2L232.5 5.171zM498.1 234.2C506.6 238.1 512 246.6 512 255.1C512 265.3 506.6 273.8 498.1 277.8L279.5 378.8C264.6 385.7 247.4 385.7 232.5 378.8L13.93 277.8C5.438 273.8 0 265.3 0 255.1C0 246.6 5.437 238.1 13.93 234.2L67.13 209.6L219.1 279.8C242.5 290.7 269.5 290.7 292.9 279.8L444.9 209.6L498.1 234.2zM292.9 407.8L444.9 337.6L498.1 362.2C506.6 366.1 512 374.6 512 383.1C512 393.3 506.6 401.8 498.1 405.8L279.5 506.8C264.6 513.7 247.4 513.7 232.5 506.8L13.93 405.8C5.438 401.8 0 393.3 0 383.1C0 374.6 5.437 366.1 13.93 362.2L67.13 337.6L219.1 407.8C242.5 418.7 269.5 418.7 292.9 407.8V407.8z"]},xf={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M470.6 425.4C483.1 437.9 483.1 458.1 470.6 470.6C458.1 483.1 437.9 483.1 425.4 470.6L412.1 458.2C369.6 491.9 315.2 512 255.1 512C196.8 512 142.4 491.9 99.02 458.2L86.63 470.6C74.13 483.1 53.87 483.1 41.37 470.6C28.88 458.1 28.88 437.9 41.37 425.4L53.76 412.1C20.07 369.6 0 315.2 0 255.1C0 196.8 20.07 142.4 53.76 99.02L41.37 86.63C28.88 74.13 28.88 53.87 41.37 41.37C53.87 28.88 74.13 28.88 86.63 41.37L99.02 53.76C142.4 20.07 196.8 0 255.1 0C315.2 0 369.6 20.07 412.1 53.76L425.4 41.37C437.9 28.88 458.1 28.88 470.6 41.37C483.1 53.87 483.1 74.13 470.6 86.63L458.2 99.02C491.9 142.4 512 196.8 512 255.1C512 315.2 491.9 369.6 458.2 412.1L470.6 425.4zM309.3 354.5C293.4 363.1 275.3 368 255.1 368C236.7 368 218.6 363.1 202.7 354.5L144.8 412.5C176.1 434.9 214.5 448 255.1 448C297.5 448 335.9 434.9 367.2 412.5L309.3 354.5zM448 255.1C448 214.5 434.9 176.1 412.5 144.8L354.5 202.7C363.1 218.6 368 236.7 368 256C368 275.3 363.1 293.4 354.5 309.3L412.5 367.2C434.9 335.9 448 297.5 448 256V255.1zM255.1 63.1C214.5 63.1 176.1 77.14 144.8 99.5L202.7 157.5C218.6 148.9 236.7 143.1 255.1 143.1C275.3 143.1 293.4 148.9 309.3 157.5L367.2 99.5C335.9 77.14 297.5 63.1 256 63.1H255.1zM157.5 309.3C148.9 293.4 143.1 275.3 143.1 255.1C143.1 236.7 148.9 218.6 157.5 202.7L99.5 144.8C77.14 176.1 63.1 214.5 63.1 255.1C63.1 297.5 77.14 335.9 99.5 367.2L157.5 309.3zM255.1 207.1C229.5 207.1 207.1 229.5 207.1 255.1C207.1 282.5 229.5 303.1 255.1 303.1C282.5 303.1 304 282.5 304 255.1C304 229.5 282.5 207.1 255.1 207.1z"]},I0={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M172.5 131.1C228.1 75.51 320.5 75.51 376.1 131.1C426.1 181.1 433.5 260.8 392.4 318.3L391.3 319.9C381 334.2 361 337.6 346.7 327.3C332.3 317 328.9 297 339.2 282.7L340.3 281.1C363.2 249 359.6 205.1 331.7 177.2C300.3 145.8 249.2 145.8 217.7 177.2L105.5 289.5C73.99 320.1 73.99 372 105.5 403.5C133.3 431.4 177.3 435 209.3 412.1L210.9 410.1C225.3 400.7 245.3 404 255.5 418.4C265.8 432.8 262.5 452.8 248.1 463.1L246.5 464.2C188.1 505.3 110.2 498.7 60.21 448.8C3.741 392.3 3.741 300.7 60.21 244.3L172.5 131.1zM467.5 380C411 436.5 319.5 436.5 263 380C213 330 206.5 251.2 247.6 193.7L248.7 192.1C258.1 177.8 278.1 174.4 293.3 184.7C307.7 194.1 311.1 214.1 300.8 229.3L299.7 230.9C276.8 262.1 280.4 306.9 308.3 334.8C339.7 366.2 390.8 366.2 422.3 334.8L534.5 222.5C566 191 566 139.1 534.5 108.5C506.7 80.63 462.7 76.99 430.7 99.9L429.1 101C414.7 111.3 394.7 107.1 384.5 93.58C374.2 79.2 377.5 59.21 391.9 48.94L393.5 47.82C451 6.731 529.8 13.25 579.8 63.24C636.3 119.7 636.3 211.3 579.8 267.7L467.5 380z"]},Pf={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"]},Ff={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},uu={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M252 208C252 196.1 260.1 188 272 188H288C299 188 308 196.1 308 208V276H312C323 276 332 284.1 332 296C332 307 323 316 312 316H264C252.1 316 244 307 244 296C244 284.1 252.1 276 264 276H268V227.6C258.9 225.7 252 217.7 252 208zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H64C28.65 448 0 419.3 0 384V128C0 92.65 28.65 64 64 64H512zM128 384C128 348.7 99.35 320 64 320V384H128zM64 192C99.35 192 128 163.3 128 128H64V192zM512 384V320C476.7 320 448 348.7 448 384H512zM512 128H448C448 163.3 476.7 192 512 192V128zM288 144C226.1 144 176 194.1 176 256C176 317.9 226.1 368 288 368C349.9 368 400 317.9 400 256C400 194.1 349.9 144 288 144z"]},l8={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M48.66 79.13C128.4 100.9 208.2 80.59 288 60.25C375 38.08 462 15.9 549 48.38C565.9 54.69 576 71.62 576 89.66V399.5C576 423.4 550.4 439.2 527.3 432.9C447.6 411.1 367.8 431.4 288 451.7C200.1 473.9 113.1 496.1 26.97 463.6C10.06 457.3 0 440.4 0 422.3V112.5C0 88.59 25.61 72.83 48.66 79.13L48.66 79.13zM287.1 352C332.2 352 368 309 368 255.1C368 202.1 332.2 159.1 287.1 159.1C243.8 159.1 207.1 202.1 207.1 255.1C207.1 309 243.8 352 287.1 352zM63.1 416H127.1C127.1 380.7 99.35 352 63.1 352V416zM63.1 143.1V207.1C99.35 207.1 127.1 179.3 127.1 143.1H63.1zM512 303.1C476.7 303.1 448 332.7 448 368H512V303.1zM448 95.1C448 131.3 476.7 159.1 512 159.1V95.1H448z"]},Cu={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M400 0C426.5 0 448 21.49 448 48V144C448 170.5 426.5 192 400 192H352V224H608C625.7 224 640 238.3 640 256C640 273.7 625.7 288 608 288H512V320H560C586.5 320 608 341.5 608 368V464C608 490.5 586.5 512 560 512H400C373.5 512 352 490.5 352 464V368C352 341.5 373.5 320 400 320H448V288H192V320H240C266.5 320 288 341.5 288 368V464C288 490.5 266.5 512 240 512H80C53.49 512 32 490.5 32 464V368C32 341.5 53.49 320 80 320H128V288H32C14.33 288 0 273.7 0 256C0 238.3 14.33 224 32 224H288V192H240C213.5 192 192 170.5 192 144V48C192 21.49 213.5 0 240 0H400zM256 64V128H384V64H256zM224 448V384H96V448H224zM416 384V448H544V384H416z"]},yu={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M224 263.3C224.2 233.3 238.4 205.2 262.4 187.2L499.1 9.605C517.7-4.353 543.6-2.965 560.7 12.9C577.7 28.76 580.8 54.54 568.2 74.07L406.5 324.1C391.3 347.7 366.6 363.2 339.3 367.1L224 263.3zM320 400C320 461.9 269.9 512 208 512H64C46.33 512 32 497.7 32 480C32 462.3 46.33 448 64 448H68.81C86.44 448 98.4 429.1 96.59 411.6C96.2 407.8 96 403.9 96 400C96 339.6 143.9 290.3 203.7 288.1L319.8 392.5C319.9 394.1 320 397.5 320 400V400z"]},j7={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M184 88C184 118.9 158.9 144 128 144C97.07 144 72 118.9 72 88C72 57.07 97.07 32 128 32C158.9 32 184 57.07 184 88zM208.4 196.3C178.7 222.7 160 261.2 160 304C160 338.3 171.1 369.8 192 394.5V416C192 433.7 177.7 448 160 448H96C78.33 448 64 433.7 64 416V389.2C26.16 371.2 0 332.7 0 288C0 226.1 50.14 176 112 176H144C167.1 176 190.2 183.5 208.4 196.3V196.3zM64 245.7C54.04 256.9 48 271.8 48 288C48 304.2 54.04 319.1 64 330.3V245.7zM448 416V394.5C468 369.8 480 338.3 480 304C480 261.2 461.3 222.7 431.6 196.3C449.8 183.5 472 176 496 176H528C589.9 176 640 226.1 640 288C640 332.7 613.8 371.2 576 389.2V416C576 433.7 561.7 448 544 448H480C462.3 448 448 433.7 448 416zM576 330.3C585.1 319.1 592 304.2 592 288C592 271.8 585.1 256.9 576 245.7V330.3zM568 88C568 118.9 542.9 144 512 144C481.1 144 456 118.9 456 88C456 57.07 481.1 32 512 32C542.9 32 568 57.07 568 88zM256 96C256 60.65 284.7 32 320 32C355.3 32 384 60.65 384 96C384 131.3 355.3 160 320 160C284.7 160 256 131.3 256 96zM448 304C448 348.7 421.8 387.2 384 405.2V448C384 465.7 369.7 480 352 480H288C270.3 480 256 465.7 256 448V405.2C218.2 387.2 192 348.7 192 304C192 242.1 242.1 192 304 192H336C397.9 192 448 242.1 448 304zM256 346.3V261.7C246 272.9 240 287.8 240 304C240 320.2 246 335.1 256 346.3zM384 261.7V346.3C393.1 335 400 320.2 400 304C400 287.8 393.1 272.9 384 261.7z"]},T8={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 73.39c-12.5-12.5-32.75-12.5-45.25 0l-320 320c-12.5 12.5-12.5 32.75 0 45.25C15.63 444.9 23.81 448 32 448s16.38-3.125 22.62-9.375l320-320C387.1 106.1 387.1 85.89 374.6 73.39zM64 192c35.3 0 64-28.72 64-64S99.3 64.01 64 64.01S0 92.73 0 128S28.7 192 64 192zM320 320c-35.3 0-64 28.72-64 64s28.7 64 64 64s64-28.72 64-64S355.3 320 320 320z"]},X8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},_i={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M204.3 32.01H96c-52.94 0-96 43.06-96 96c0 17.67 14.31 31.1 32 31.1s32-14.32 32-31.1c0-17.64 14.34-32 32-32h108.3C232.8 96.01 256 119.2 256 147.8c0 19.72-10.97 37.47-30.5 47.33L127.8 252.4C117.1 258.2 112 268.7 112 280v40c0 17.67 14.31 31.99 32 31.99s32-14.32 32-31.99V298.3L256 251.3c39.47-19.75 64-59.42 64-103.5C320 83.95 268.1 32.01 204.3 32.01zM144 400c-22.09 0-40 17.91-40 40s17.91 39.1 40 39.1s40-17.9 40-39.1S166.1 400 144 400z"]},jo={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M13.97 2.196C22.49-1.72 32.5-.3214 39.62 5.778L80 40.39L120.4 5.778C129.4-1.926 142.6-1.926 151.6 5.778L192 40.39L232.4 5.778C241.4-1.926 254.6-1.926 263.6 5.778L304 40.39L344.4 5.778C351.5-.3214 361.5-1.72 370 2.196C378.5 6.113 384 14.63 384 24V488C384 497.4 378.5 505.9 370 509.8C361.5 513.7 351.5 512.3 344.4 506.2L304 471.6L263.6 506.2C254.6 513.9 241.4 513.9 232.4 506.2L192 471.6L151.6 506.2C142.6 513.9 129.4 513.9 120.4 506.2L80 471.6L39.62 506.2C32.5 512.3 22.49 513.7 13.97 509.8C5.456 505.9 0 497.4 0 488V24C0 14.63 5.456 6.112 13.97 2.196V2.196zM96 144C87.16 144 80 151.2 80 160C80 168.8 87.16 176 96 176H288C296.8 176 304 168.8 304 160C304 151.2 296.8 144 288 144H96zM96 368H288C296.8 368 304 360.8 304 352C304 343.2 296.8 336 288 336H96C87.16 336 80 343.2 80 352C80 360.8 87.16 368 96 368zM96 240C87.16 240 80 247.2 80 256C80 264.8 87.16 272 96 272H288C296.8 272 304 264.8 304 256C304 247.2 296.8 240 288 240H96z"]},V9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 160h319.9l.0791 72c0 9.547 5.652 18.19 14.41 22c8.754 3.812 18.93 2.078 25.93-4.406l112-104c10.24-9.5 10.24-25.69 0-35.19l-112-104c-6.992-6.484-17.17-8.217-25.93-4.408c-8.758 3.816-14.41 12.46-14.41 22L351.9 96H32C14.31 96 0 110.3 0 127.1S14.31 160 32 160zM480 352H160.1L160 279.1c0-9.547-5.652-18.19-14.41-22C136.9 254.2 126.7 255.9 119.7 262.4l-112 104c-10.24 9.5-10.24 25.69 0 35.19l112 104c6.992 6.484 17.17 8.219 25.93 4.406C154.4 506.2 160 497.5 160 488L160.1 416H480c17.69 0 32-14.31 32-32S497.7 352 480 352z"]},G9={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M320 256C302.3 256 288 270.3 288 288C288 305.7 302.3 320 320 320H416C469 320 512 362.1 512 416C512 469 469 512 416 512H139.6C148.3 502.1 158.9 489.4 169.6 475.2C175.9 466.8 182.4 457.6 188.6 448H416C433.7 448 448 433.7 448 416C448 398.3 433.7 384 416 384H320C266.1 384 223.1 341 223.1 288C223.1 234.1 266.1 192 320 192H362.1C340.2 161.5 320 125.4 320 96C320 42.98 362.1 0 416 0C469 0 512 42.98 512 96C512 160 416 256 416 256H320zM416 128C433.7 128 448 113.7 448 96C448 78.33 433.7 64 416 64C398.3 64 384 78.33 384 96C384 113.7 398.3 128 416 128zM118.3 487.8C118.1 488 117.9 488.2 117.7 488.4C113.4 493.4 109.5 497.7 106.3 501.2C105.9 501.6 105.5 502 105.2 502.4C99.5 508.5 96 512 96 512C96 512 0 416 0 352C0 298.1 42.98 255.1 96 255.1C149 255.1 192 298.1 192 352C192 381.4 171.8 417.5 149.9 448C138.1 463.2 127.7 476.9 118.3 487.8L118.3 487.8zM95.1 384C113.7 384 127.1 369.7 127.1 352C127.1 334.3 113.7 320 95.1 320C78.33 320 63.1 334.3 63.1 352C63.1 369.7 78.33 384 95.1 384z"]},Z9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z"]},q9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},tg={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 288H32c-17.62 0-32 14.38-32 32v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32v-128C512 302.4 497.6 288 480 288zM352 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S365.3 408 352 408zM416 408c-13.25 0-24-10.75-24-24s10.75-24 24-24s24 10.75 24 24S429.3 408 416 408zM480 32H32C14.38 32 0 46.38 0 64v128c0 17.62 14.38 32 32 32h448c17.62 0 32-14.38 32-32V64C512 46.38 497.6 32 480 32zM352 152c-13.25 0-24-10.75-24-24S338.8 104 352 104S376 114.8 376 128S365.3 152 352 152zM416 152c-13.25 0-24-10.75-24-24S402.8 104 416 104S440 114.8 440 128S429.3 152 416 152z"]},fg={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M223.1 32C223.1 14.33 238.3 0 255.1 0C273.7 0 288 14.33 288 32H441.4C445.6 32 449.7 33.69 452.7 36.69L500.7 84.69C506.9 90.93 506.9 101.1 500.7 107.3L452.7 155.3C449.7 158.3 445.6 160 441.4 160H63.1C46.33 160 31.1 145.7 31.1 128V64C31.1 46.33 46.33 32 63.1 32L223.1 32zM480 320C480 337.7 465.7 352 448 352H70.63C66.38 352 62.31 350.3 59.31 347.3L11.31 299.3C5.065 293.1 5.065 282.9 11.31 276.7L59.31 228.7C62.31 225.7 66.38 223.1 70.63 223.1H223.1V191.1H288V223.1H448C465.7 223.1 480 238.3 480 255.1V320zM255.1 512C238.3 512 223.1 497.7 223.1 480V384H288V480C288 497.7 273.7 512 255.1 512z"]},lC={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"]},gC={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64C179.8 64 144 99.82 144 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80V144C80 64.47 144.5 0 224 0C281.5 0 331 33.69 354.1 82.27C361.7 98.23 354.9 117.3 338.1 124.9C322.1 132.5 303.9 125.7 296.3 109.7C283.4 82.63 255.9 64 224 64H224zM256 384C273.7 384 288 369.7 288 352C288 334.3 273.7 320 256 320H192C174.3 320 160 334.3 160 352C160 369.7 174.3 384 192 384H256z"]},xC={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M274.7 304H173.3C77.61 304 0 381.6 0 477.3C0 496.5 15.52 512 34.66 512H413.3C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM632.3 134.4c-9.703-9-24.91-8.453-33.92 1.266l-87.05 93.75l-38.39-38.39c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94l56 56C499.5 285.5 505.6 288 512 288h.4375c6.531-.125 12.72-2.891 17.16-7.672l104-112C642.6 158.6 642 143.4 632.3 134.4z"]},MC={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.63 0-144 64.38-144 144s64.38 144 144 144s144-64.38 144-144S575.6 224 496 224zM544 384h-54.25C484.4 384 480 379.6 480 374.3V304c0-8.836 7.164-16 16-16c8.838 0 16 7.164 16 16v48h32c8.838 0 16 7.164 16 15.1S552.8 384 544 384zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 368c0-19.3 3.221-37.82 8.961-55.2C311.9 307.2 293.6 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H395C349.7 480.2 320 427.6 320 368z"]},SC={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M425.1 482.6c-2.303-1.25-4.572-2.559-6.809-3.93l-7.818 4.493c-6.002 3.504-12.83 5.352-19.75 5.352c-10.71 0-21.13-4.492-28.97-12.75c-18.41-20.09-32.29-44.15-40.22-69.9c-5.352-18.06 2.343-36.87 17.83-45.24l8.018-4.669c-.0664-2.621-.0664-5.242 0-7.859l-7.655-4.461c-12.3-6.953-19.4-19.66-19.64-33.38C305.6 306.3 290.4 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512H413.3c5.727 0 10.9-1.727 15.66-4.188c-2.271-4.984-3.86-10.3-3.86-16.06V482.6zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM610.5 373.3c2.625-14 2.625-28.5 0-42.5l25.75-15c3-1.625 4.375-5.125 3.375-8.5c-6.75-21.5-18.25-41.13-33.25-57.38c-2.25-2.5-6-3.125-9-1.375l-25.75 14.88c-10.88-9.25-23.38-16.5-36.88-21.25V212.3c0-3.375-2.5-6.375-5.75-7c-22.25-5-45-4.875-66.25 0c-3.25 .625-5.625 3.625-5.625 7v29.88c-13.5 4.75-26 12-36.88 21.25L394.4 248.5c-2.875-1.75-6.625-1.125-9 1.375c-15 16.25-26.5 35.88-33.13 57.38c-1 3.375 .3751 6.875 3.25 8.5l25.75 15c-2.5 14-2.5 28.5 0 42.5l-25.75 15c-3 1.625-4.25 5.125-3.25 8.5c6.625 21.5 18.13 41 33.13 57.38c2.375 2.5 6 3.125 9 1.375l25.88-14.88c10.88 9.25 23.38 16.5 36.88 21.25v29.88c0 3.375 2.375 6.375 5.625 7c22.38 5 45 4.875 66.25 0c3.25-.625 5.75-3.625 5.75-7v-29.88c13.5-4.75 26-12 36.88-21.25l25.75 14.88c2.875 1.75 6.75 1.125 9-1.375c15-16.25 26.5-35.88 33.25-57.38c1-3.375-.3751-6.875-3.375-8.5L610.5 373.3zM496 400.5c-26.75 0-48.5-21.75-48.5-48.5s21.75-48.5 48.5-48.5c26.75 0 48.5 21.75 48.5 48.5S522.8 400.5 496 400.5z"]},DC={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M592 288H576V212.7c0-41.84-30.03-80.04-71.66-84.27C456.5 123.6 416 161.1 416 208V288h-16C373.6 288 352 309.6 352 336v128c0 26.4 21.6 48 48 48h192c26.4 0 48-21.6 48-48v-128C640 309.6 618.4 288 592 288zM496 432c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S513.6 432 496 432zM528 288h-64V208c0-17.62 14.38-32 32-32s32 14.38 32 32V288zM224 256c70.7 0 128-57.31 128-128S294.7 0 224 0C153.3 0 96 57.31 96 128S153.3 256 224 256zM320 336c0-8.672 1.738-16.87 4.303-24.7C308.6 306.6 291.9 304 274.7 304H173.3C77.61 304 0 381.7 0 477.4C0 496.5 15.52 512 34.66 512h301.7C326.3 498.6 320 482.1 320 464V336z"]},kC={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM183.9 216c0-5.449 .9824-10.63 1.609-15.91C174.6 194.1 162.6 192 149.9 192H88.08C39.44 192 0 233.8 0 285.3C0 295.6 7.887 304 17.62 304h199.5C196.7 280.2 183.9 249.7 183.9 216zM128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM551.9 192h-61.84c-12.8 0-24.88 3.037-35.86 8.24C454.8 205.5 455.8 210.6 455.8 216c0 33.71-12.78 64.21-33.16 88h199.7C632.1 304 640 295.6 640 285.3C640 233.8 600.6 192 551.9 192z"]},BC={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"]},KC={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"]},QC={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"]}},429:(He,j,p)=>{"use strict";p.d(j,{$2:()=>di,$A:()=>V,$W:()=>W,BL:()=>_,CN:()=>y,CX:()=>d,EG:()=>A,EK:()=>se,El:()=>Q,HI:()=>me,HJ:()=>T,HW:()=>Gt,I8:()=>M,JK:()=>ve,Lu:()=>E,Ly:()=>ot,My:()=>Zt,Ni:()=>u,Nr:()=>ke,OG:()=>n,QJ:()=>fe,RX:()=>D,Rd:()=>Ee,SN:()=>P,Sf:()=>g,TM:()=>t,UH:()=>Ie,UR:()=>c,VD:()=>ce,WM:()=>ye,WO:()=>r,Wi:()=>Z,X3:()=>q,YP:()=>te,YX:()=>I,Z8:()=>ne,ZH:()=>ee,Zu:()=>xe,_9:()=>Tt,_E:()=>z,aL:()=>ze,as:()=>C,bP:()=>gt,cQ:()=>J,d7:()=>lt,dh:()=>G,e9:()=>ht,eM:()=>Ae,en:()=>hi,g3:()=>k,g6:()=>be,i9:()=>ue,it:()=>_t,kL:()=>h,n7:()=>R,oF:()=>vt,oV:()=>x,oo:()=>a,p7:()=>Qe,pW:()=>S,pc:()=>ei,u0:()=>$,uT:()=>Le,v_:()=>H,xH:()=>b,xS:()=>w,yl:()=>Te,z:()=>ie});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.AB.UPDATE_API_CALL_STATUS_CLN,(0,e.Ky)()),b=(0,e.PH)(i.AB.RESET_CLN_STORE,(0,e.Ky)()),a=(0,e.PH)(i.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,e.Ky)()),y=(0,e.PH)(i.AB.FETCH_INFO_CLN,(0,e.Ky)()),d=(0,e.PH)(i.AB.SET_INFO_CLN,(0,e.Ky)()),P=(0,e.PH)(i.AB.FETCH_FEES_CLN),D=(0,e.PH)(i.AB.SET_FEES_CLN,(0,e.Ky)()),T=(0,e.PH)(i.AB.FETCH_FEE_RATES_CLN,(0,e.Ky)()),M=(0,e.PH)(i.AB.SET_FEE_RATES_CLN,(0,e.Ky)()),A=(0,e.PH)(i.AB.FETCH_BALANCE_CLN),E=(0,e.PH)(i.AB.SET_BALANCE_CLN,(0,e.Ky)()),k=(0,e.PH)(i.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),w=(0,e.PH)(i.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,e.Ky)()),z=(0,e.PH)(i.AB.GET_NEW_ADDRESS_CLN,(0,e.Ky)()),W=((0,e.PH)(i.AB.SET_NEW_ADDRESS_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_PEERS_CLN)),ne=(0,e.PH)(i.AB.SET_PEERS_CLN,(0,e.Ky)()),Q=(0,e.PH)(i.AB.SAVE_NEW_PEER_CLN,(0,e.Ky)()),q=((0,e.PH)(i.AB.NEWLY_ADDED_PEER_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.ADD_PEER_CLN,(0,e.Ky)())),ie=(0,e.PH)(i.AB.DETACH_PEER_CLN,(0,e.Ky)()),se=(0,e.PH)(i.AB.REMOVE_PEER_CLN,(0,e.Ky)()),J=(0,e.PH)(i.AB.FETCH_PAYMENTS_CLN),me=(0,e.PH)(i.AB.SET_PAYMENTS_CLN,(0,e.Ky)()),x=(0,e.PH)(i.AB.SEND_PAYMENT_CLN,(0,e.Ky)()),t=(0,e.PH)(i.AB.SEND_PAYMENT_STATUS_CLN,(0,e.Ky)()),r=(0,e.PH)(i.AB.GET_QUERY_ROUTES_CLN,(0,e.Ky)()),h=(0,e.PH)(i.AB.SET_QUERY_ROUTES_CLN,(0,e.Ky)()),c=(0,e.PH)(i.AB.FETCH_CHANNELS_CLN),C=(0,e.PH)(i.AB.SET_CHANNELS_CLN,(0,e.Ky)()),S=(0,e.PH)(i.AB.UPDATE_CHANNEL_CLN,(0,e.Ky)()),I=(0,e.PH)(i.AB.SAVE_NEW_CHANNEL_CLN,(0,e.Ky)()),_=(0,e.PH)(i.AB.CLOSE_CHANNEL_CLN,(0,e.Ky)()),n=(0,e.PH)(i.AB.REMOVE_CHANNEL_CLN,(0,e.Ky)()),g=(0,e.PH)(i.AB.PEER_LOOKUP_CLN,(0,e.Ky)()),V=(0,e.PH)(i.AB.CHANNEL_LOOKUP_CLN,(0,e.Ky)()),R=(0,e.PH)(i.AB.INVOICE_LOOKUP_CLN,(0,e.Ky)()),H=(0,e.PH)(i.AB.SET_LOOKUP_CLN,(0,e.Ky)()),$=(0,e.PH)(i.AB.GET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),fe=(0,e.PH)(i.AB.SET_FORWARDING_HISTORY_CLN,(0,e.Ky)()),ye=(0,e.PH)(i.AB.FETCH_INVOICES_CLN,(0,e.Ky)()),ke=(0,e.PH)(i.AB.SET_INVOICES_CLN,(0,e.Ky)()),Ee=(0,e.PH)(i.AB.SAVE_NEW_INVOICE_CLN,(0,e.Ky)()),te=(0,e.PH)(i.AB.ADD_INVOICE_CLN,(0,e.Ky)()),ze=(0,e.PH)(i.AB.UPDATE_INVOICE_CLN,(0,e.Ky)()),be=(0,e.PH)(i.AB.DELETE_EXPIRED_INVOICE_CLN,(0,e.Ky)()),Z=(0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_CLN,(0,e.Ky)()),ot=((0,e.PH)(i.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,e.Ky)()),(0,e.PH)(i.AB.FETCH_UTXOS_CLN)),Ie=(0,e.PH)(i.AB.SET_UTXOS_CLN,(0,e.Ky)()),Ae=(0,e.PH)(i.AB.FETCH_OFFER_INVOICE_CLN,(0,e.Ky)()),ce=(0,e.PH)(i.AB.SET_OFFER_INVOICE_CLN,(0,e.Ky)()),Te=(0,e.PH)(i.AB.FETCH_OFFERS_CLN),xe=(0,e.PH)(i.AB.SET_OFFERS_CLN,(0,e.Ky)()),G=(0,e.PH)(i.AB.SAVE_NEW_OFFER_CLN,(0,e.Ky)()),ee=(0,e.PH)(i.AB.ADD_OFFER_CLN,(0,e.Ky)()),ue=(0,e.PH)(i.AB.DISABLE_OFFER_CLN,(0,e.Ky)()),ve=(0,e.PH)(i.AB.UPDATE_OFFER_CLN,(0,e.Ky)()),Le=(0,e.PH)(i.AB.FETCH_OFFER_BOOKMARKS_CLN),lt=(0,e.PH)(i.AB.SET_OFFER_BOOKMARKS_CLN,(0,e.Ky)()),ht=(0,e.PH)(i.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Tt=(0,e.PH)(i.AB.DELETE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),hi=(0,e.PH)(i.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,e.Ky)()),Gt=((0,e.PH)(i.AB.FETCH_SWAPS_CLN),(0,e.PH)(i.AB.SET_SWAPS_CLN,(0,e.Ky)())),di=(0,e.PH)(i.AB.FETCH_SWAP_PEERS_CLN),vt=(0,e.PH)(i.AB.SET_SWAP_PEERS_CLN,(0,e.Ky)()),gt=((0,e.PH)(i.AB.FETCH_SWAP_REQUESTS_CLN),(0,e.PH)(i.AB.SET_SWAP_REQUESTS_CLN,(0,e.Ky)())),Qe=(0,e.PH)(i.AB.SWAPOUT_CLN,(0,e.Ky)()),_t=(0,e.PH)(i.AB.ADD_SWAPOUT_CLN,(0,e.Ky)()),ei=(0,e.PH)(i.AB.SWAPIN_CLN,(0,e.Ky)()),Zt=(0,e.PH)(i.AB.ADD_SWAPIN_CLN,(0,e.Ky)())},4947:(He,j,p)=>{"use strict";p.d(j,{J:()=>J});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(2340),D=p(1786),T=p(5566),M=p(7731),A=p(7861),E=p(429),k=p(9828),w=p(1462),z=p(5e3),U=p(8138),W=p(5620),ne=p(5986),Q=p(62),le=p(5043),q=p(1402),ie=p(7998),se=p(9808);let J=(()=>{class me{constructor(t,r,h,c,C,S,I,_,n){this.actions=t,this.httpClient=r,this.store=h,this.sessionService=c,this.commonService=C,this.logger=S,this.router=I,this.wsService=_,this.location=n,this.CHILD_API_URL=P.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INFO_CLN),(0,b.z)(g=>(this.flgInitialized=!1,this.store.dispatch((0,A.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.INITIATED}})),this.store.dispatch((0,A.ac)({payload:M.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(M.pg.SET_SELECTED_NODE))),(0,y.U)(V=>(this.logger.info(V),V.chains&&V.chains.length&&V.chains[0]&&"object"==typeof V.chains[0]&&V.chains[0].hasOwnProperty("chain")&&(null==V?void 0:V.chains[0].chain)&&(null==V?void 0:V.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),this.store.dispatch((0,A.ts)()),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:M.pg.LOGOUT}):(this.initializeRemainingData(V,g.payload.loadPage),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInfo",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.GET_NODE_INFO})),{type:M.AB.SET_INFO_CLN,payload:V||{}}))),(0,d.K)(V=>{const R=this.commonService.extractErrorCode(V),H="ETIMEDOUT"===R?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(V);return this.router.navigate(["/error"],{state:{errorCode:R,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",M.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:R,error:H}),(0,u.of)({type:M.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEES_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFees",status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEES_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchFees",M.m6.NO_SPINNER,"Fetching Fees Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_FEE_RATES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+g.payload,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/feeRates/"+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchFeeRates"+g.payload,status:M.Bn.COMPLETED}})),{type:M.AB.SET_FEE_RATES_CLN,payload:V||{}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchFeeRates"+g.payload,M.m6.NO_SPINNER,"Fetching Fee Rates Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.BALANCE_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_BALANCE_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchLocalRemoteBalance",status:M.Bn.COMPLETED}})),{type:M.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:g||{}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",M.m6.NO_SPINNER,"Fetching Balances Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_NEW_ADDRESS_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+g.payload.addressCode).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.GENERATE_NEW_ADDRESS})),{type:M.AB.SET_NEW_ADDRESS_CLN,payload:V&&V.address?V.address:{}})),(0,d.K)(V=>(this.handleErrorWithAlert("GenerateNewAddress",M.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"?type="+g.payload.addressId,V),(0,u.of)({type:M.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_NEW_ADDRESS_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PEERS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PEERS_CLN,payload:g||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchPeers",M.m6.NO_SPINNER,"Fetching Peers Failed.",g),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_PEER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API,{id:g.payload.id}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewPeer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:V||[]})),{type:M.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:V.find(R=>0===g.payload.id.indexOf(R.id?R.id:""))}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewPeer",M.m6.CONNECT_PEER,"Peer Connection Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DETACH_PEER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+g.payload.id+"?force="+g.payload.force).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.DISCONNECT_PEER})),this.store.dispatch((0,A.jW)({payload:"Peer Disconnected Successfully!"})),{type:M.AB.REMOVE_PEER_CLN,payload:{id:g.payload.id}})),(0,d.K)(V=>(this.handleErrorWithAlert("PeerDisconnect",M.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+g.payload.id,V),(0,u.of)({type:M.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_CHANNELS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listChannels"))),(0,y.U)(g=>{this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchChannels",status:M.Bn.COMPLETED}}));const V={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return g.forEach(R=>{"CHANNELD_NORMAL"===R.state?R.connected?V.activeChannels.push(R):V.inactiveChannels.push(R):V.pendingChannels.push(R)}),{type:M.AB.SET_CHANNELS_CLN,payload:V}}),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",M.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_CHANNEL_CLN),(0,b.z)(g=>{this.store.dispatch((0,A.ac)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.INITIATED}}));const V={id:g.payload.peerId,satoshis:g.payload.satoshis,feeRate:g.payload.feeRate,announce:g.payload.announce};return g.payload.minconf&&(V.minconf=g.payload.minconf),g.payload.utxos&&(V.utxos=g.payload.utxos),g.payload.requestAmount&&(V.request_amt=g.payload.requestAmount),g.payload.compactLease&&(V.compact_lease=g.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,V).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewChannel",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.OPEN_CHANNEL})),this.store.dispatch((0,A.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.FETCH_CHANNELS_CLN})),(0,d.K)(R=>(this.handleErrorWithoutAlert("SaveNewChannel",M.m6.OPEN_CHANNEL,"Opening Channel Failed.",R),(0,u.of)({type:M.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.UPDATE_CHANNEL_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/setChannelFee",{id:g.payload.channelId,base:g.payload.baseFeeMsat,ppm:g.payload.feeRate}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,A.jW)("all"===g.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:M.AB.FETCH_CHANNELS_CLN})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannel",M.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,V),(0,u.of)({type:M.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CLOSE_CHANNEL_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/"+g.payload.channelId+(g.payload.force?"?force="+g.payload.force:"")).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,A.uO)({payload:g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,A.jW)({payload:"Channel Closed Successfully!"})),{type:M.AB.REMOVE_CHANNEL_CLN,payload:g.payload})),(0,d.K)(R=>(this.handleErrorWithAlert("CloseChannel",g.payload.force?M.m6.FORCE_CLOSE_CHANNEL:M.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,R),(0,u.of)({type:M.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_PAYMENTS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchPayments",status:M.Bn.COMPLETED}})),{type:M.AB.SET_PAYMENTS_CLN,payload:g||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchPayments",M.m6.NO_SPINNER,"Fetching Payments Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API+"/fetchOfferInvoice",g.payload).pipe((0,y.U)(V=>{this.logger.info(V),setTimeout(()=>{this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.FETCH_INVOICE})),this.store.dispatch((0,E.VD)({payload:V||{}}))},500)}),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferInvoice",M.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",V),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_OFFER_INVOICE_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SEND_PAYMENT_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,g.payload).pipe((0,y.U)(V=>{this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SendPayment",status:M.Bn.COMPLETED}}));let R="Payment Sent Successfully!";V.saveToDBError&&(R="Payment Sent Successfully but Offer Saving to Database Failed."),V.saveToDBResponse&&"NA"!==V.saveToDBResponse&&(this.store.dispatch((0,E.e9)({payload:V.saveToDBResponse})),R="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.cQ)()),this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,A.jW)({payload:R})),this.store.dispatch((0,E.TM)({payload:V.paymentResponse}))},1e3)}),(0,d.K)(V=>(this.logger.error("Error: "+JSON.stringify(V)),g.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed.",V):this.handleErrorWithAlert("SendPayment",g.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,V),(0,u.of)({type:M.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_QUERY_ROUTES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"GetQueryRoutes",status:M.Bn.COMPLETED}})),{type:M.AB.SET_QUERY_ROUTES_CLN,payload:V})),(0,d.K)(V=>(this.store.dispatch((0,E.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",M.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/getRoute/"+g.payload.destPubkey+"/"+g.payload.amount,V),(0,u.of)({type:M.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_QUERY_ROUTES_CLN),(0,y.U)(g=>g.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.PEER_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_NODE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_NODE})),{type:M.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithAlert("Lookup",M.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listNode/"+g.payload,V),(0,u.of)({type:M.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.CHANNEL_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+g.payload.shortChannelID).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),{type:M.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(g.payload.showError?this.handleErrorWithAlert("Lookup",g.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/listChannel/"+g.payload.shortChannelID,V):this.store.dispatch((0,A.uO)({payload:g.payload.uiMessage})),this.store.dispatch((0,E.v_)({payload:[]})),(0,u.of)({type:M.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.INVOICE_LOOKUP_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?label="+g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"Lookup",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEARCHING_INVOICE})),V.invoices&&V.invoices.length&&V.invoices.length>0&&this.store.dispatch((0,E.aL)({payload:V.invoices[0]})),{type:M.AB.SET_LOOKUP_CLN,payload:V.invoices&&V.invoices.length&&V.invoices.length>0?V.invoices[0]:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("Lookup",M.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",V),this.store.dispatch((0,A.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:M.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_LOOKUP_CLN),(0,y.U)(g=>(this.logger.info(g.payload),g.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.GET_FORWARDING_HISTORY_CLN),(0,b.z)(g=>{const V=g.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+V,status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+g.payload.status).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,E.Ni)({payload:{action:"FetchForwardingHistory"+V,status:M.Bn.COMPLETED}})),g.payload.status===M.OO.FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.FAILED,totalForwards:R.length,listForwards:R}})):g.payload.status===M.OO.LOCAL_FAILED?this.store.dispatch((0,E.QJ)({payload:{status:M.OO.LOCAL_FAILED,totalForwards:R.length,listForwards:R}})):g.payload.status===M.OO.SETTLED&&this.store.dispatch((0,E.QJ)({payload:{status:M.OO.SETTLED,totalForwards:R.length,listForwards:R}})),{type:M.pg.VOID})),(0,d.K)(R=>(this.handleErrorWithAlert("FetchForwardingHistory"+V,M.m6.NO_SPINNER,"Get "+g.payload.status+" Forwarding History Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API+"/listForwards?status="+g.payload.status,R),(0,u.of)({type:M.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_EXPIRED_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.INVOICES_API+(g.payload?"?maxexpiry="+g.payload:"")).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_INVOICE})),this.store.dispatch((0,A.jW)({payload:"Invoices Deleted Successfully!"})),{type:M.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(R=>(this.handleErrorWithAlert("DeleteInvoices",M.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+P.NZ.INVOICES_API,R),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_INVOICE_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.ADD_INVOICE})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,{label:g.payload.label,amount:g.payload.amount,description:g.payload.description,expiry:g.payload.expiry,private:g.payload.private}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewInvoice",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.ADD_INVOICE})),V.msatoshi=g.payload.amount,V.label=g.payload.label,V.expires_at=Math.round((new Date).getTime()/1e3+g.payload.expiry),V.description=g.payload.description,V.status="unpaid",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{invoice:V,newlyAdded:!0,component:T.y}}}))},100),{type:M.AB.ADD_INVOICE_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewInvoice",M.m6.ADD_INVOICE,"Add Invoice Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SAVE_NEW_OFFER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.CREATE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.OFFERS_API,{amount:g.payload.amount,description:g.payload.description,vendor:g.payload.vendor}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SaveNewOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{offer:V,newlyAdded:!0,component:w.k}}}))},100),{type:M.AB.ADD_OFFER_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewOffer",M.m6.CREATE_OFFER,"Create Offer Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_INVOICES_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"?num_max_invoices="+(g.payload.num_max_invoices?g.payload.num_max_invoices:1e6)+"&index_offset="+(g.payload.index_offset?g.payload.index_offset:0)+"&reversed="+(!g.payload.reversed||g.payload.reversed)).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.Ni)({payload:{action:"FetchInvoices",status:M.Bn.COMPLETED}})),{type:M.AB.SET_INVOICES_CLN,payload:$})),(0,d.K)($=>(this.handleErrorWithoutAlert("FetchInvoices",M.m6.NO_SPINNER,"Fetching Invoices Failed.",$),(0,u.of)({type:M.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFERS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOffers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFERS_CLN,payload:V.offers?V.offers:[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOffers",M.m6.NO_SPINNER,"Fetching Offers Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DISABLE_OFFER_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/"+g.payload.offer_id).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"DisableOffer",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DISABLE_OFFER})),this.store.dispatch((0,A.jW)({payload:"Offer Disabled Successfully!"})),{type:M.AB.UPDATE_OFFER_CLN,payload:{offer:V}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("DisableOffer",M.m6.DISABLE_OFFER,"Disabling Offer Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmarks").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchOfferBookmarks",status:M.Bn.COMPLETED}})),{type:M.AB.SET_OFFER_BOOKMARKS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",M.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.DELETE_OFFER_BOOKMARK_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+g.payload.bolt12).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"DeleteOfferBookmark",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,A.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:M.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:g.payload.bolt12}})),(0,d.K)(V=>(this.handleErrorWithAlert("DeleteOfferBookmark",M.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+P.NZ.OFFERS_API+"/offerbookmark/"+g.payload.bolt12,V),(0,u.of)({type:M.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SET_CHANNEL_TRANSACTION_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,g.payload).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"SetChannelTransaction",status:M.Bn.COMPLETED}})),this.store.dispatch((0,A.uO)({payload:M.m6.SEND_FUNDS})),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.Ly)()),{type:M.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SetChannelTransaction",M.m6.SEND_FUNDS,"Sending Fund Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_UTXOS_CLN),(0,b.z)(()=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/utxos"))),(0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.Ni)({payload:{action:"FetchUTXOs",status:M.Bn.COMPLETED}})),{type:M.AB.SET_UTXOS_CLN,payload:g.outputs||[]})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchUTXOs",M.m6.NO_SPINNER,"Fetching UTXOs Failed.",g),(0,u.of)({type:M.pg.VOID}))))),this.swapsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAPS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwaps").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwaps",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAPS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swaps Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.swapPeersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_PEERS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapPeers").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapPeers",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_PEERS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwapPeers",M.m6.NO_SPINNER,"Fetching Swap Peers Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.swapRequestsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.FETCH_SWAP_REQUESTS_CLN),(0,b.z)(g=>(this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/listSwapRequests").pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.Ni)({payload:{action:"FetchSwapRequests",status:M.Bn.COMPLETED}})),{type:M.AB.SET_SWAP_REQUESTS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchSwaps",M.m6.NO_SPINNER,"Fetching Swap Requests Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapOutCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPOUT_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapOut",{amountSats:g.payload.amountSats,shortChannelId:g.payload.shortChannelId,asset:g.payload.asset}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPOUT})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapout",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapout Initiated",message:V.id}}}))},100),{type:M.AB.ADD_SWAPOUT_CLN,message:[{key:"id",value:V.id,title:"Swap Id",width:100,type:M.Gi.STRING}]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("PeerswapSwapout",M.m6.PEERSWAP_SWAPOUT,"Swapout Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.peerswapInCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(M.AB.SWAPIN_CLN),(0,b.z)(g=>(this.store.dispatch((0,A.ac)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERSWAP_API+"/swapIn",{amountSats:g.payload.amountSats,shortChannelId:g.payload.shortChannelId,asset:g.payload.asset}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,A.uO)({payload:M.m6.PEERSWAP_SWAPIN})),this.store.dispatch((0,E.Ni)({payload:{action:"PeerswapSwapin",status:M.Bn.COMPLETED}})),setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:M.n_.INFORMATION,alertTitle:"Swapin Initiated",message:[{key:"id",value:V.id,title:"Swap Id",width:100,type:M.Gi.STRING}]}}}))},100),{type:M.AB.ADD_SWAPIN_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("PeerswapSwapin",M.m6.PEERSWAP_SWAPIN,"Swapin Failed.",V),(0,u.of)({type:M.pg.VOID})))))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(g=>{g.FetchInfo.status!==M.Bn.COMPLETED&&g.FetchInfo.status!==M.Bn.ERROR||g.FetchFees.status!==M.Bn.COMPLETED&&g.FetchFees.status!==M.Bn.ERROR||g.FetchChannels.status!==M.Bn.COMPLETED&&g.FetchChannels.status!==M.Bn.ERROR||g.FetchBalance.status!==M.Bn.COMPLETED&&g.FetchBalance.status!==M.Bn.ERROR||g.FetchLocalRemoteBalance.status!==M.Bn.COMPLETED&&g.FetchLocalRemoteBalance.status!==M.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,A.uO)({payload:M.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(g=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(g)),g)switch(g.event){case M.nM.INVOICE:this.logger.info(g),g&&g.data&&g.data.label&&this.store.dispatch((0,E.aL)({payload:g.data}));break;case M.nM.SEND_PAYMENT:case M.nM.BLOCK_HEIGHT:this.logger.info(g);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(g))}})}initializeRemainingData(t,r){this.sessionService.setItem("clUnlocked","true");const h={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch((0,A.ac)({payload:M.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,A._V)({payload:h}));let c=this.location.path();c.includes("/lnd/")?c=null==c?void 0:c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=null==c?void 0:c.replace("/ecl/","/cln/")),(c.includes("/login")||c.includes("/error")||""===c||"HOME"===r||c.includes("?access-key="))&&(c="/cln/home"),this.router.navigate([c]),this.store.dispatch((0,E.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.UR)()),this.store.dispatch((0,E.EG)()),this.store.dispatch((0,E.g3)()),this.store.dispatch((0,E.HJ)({payload:"perkw"})),this.store.dispatch((0,E.HJ)({payload:"perkb"})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.Ly)()),this.store.dispatch((0,E.cQ)())}handleErrorWithoutAlert(t,r,h,c){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(c)),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:r}));const C=this.commonService.extractErrorMessage(c,h);this.store.dispatch((0,E.Ni)({payload:{action:t,status:M.Bn.ERROR,statusCode:c.status.toString(),message:C}}))}}handleErrorWithAlert(t,r,h,c,C){if(this.logger.error(C),401===C.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.ts)()),this.store.dispatch((0,A.kS)()),this.store.dispatch((0,A.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,A.uO)({payload:r}));const S=this.commonService.extractErrorMessage(C);this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:h,message:{code:C.status,message:S,URL:c},component:D.H}}})),this.store.dispatch((0,E.Ni)({payload:{action:t,status:M.Bn.ERROR,statusCode:C.status.toString(),message:S,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return me.\u0275fac=function(t){return new(t||me)(z.LFG(e.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(ne.m),z.LFG(Q.v),z.LFG(le.mQ),z.LFG(q.F0),z.LFG(ie.d),z.LFG(se.Ye))},me.\u0275prov=z.Yz7({token:me,factory:me.\u0275fac}),me})()},9828:(He,j,p)=>{"use strict";p.d(j,{Ao:()=>q,Bo:()=>U,EQ:()=>J,Ho:()=>r,Hz:()=>ie,JG:()=>D,OL:()=>Q,PP:()=>d,Rn:()=>w,T4:()=>E,Wi:()=>P,Wj:()=>z,Y_:()=>se,ZW:()=>k,ey:()=>b,gc:()=>A,hx:()=>M,jK:()=>le,lK:()=>ne,lw:()=>u,xQ:()=>W,yA:()=>y,zm:()=>T});var e=p(5620);const i=(0,e.ZF)("cln"),u=(0,e.P1)(i,c=>c.nodeSettings),b=(0,e.P1)(i,c=>c.information),y=((0,e.P1)(i,c=>c.apisCallStatus.FetchInfo),(0,e.P1)(i,c=>c.apisCallStatus)),d=(0,e.P1)(i,c=>({payments:c.payments,apiCallStatus:c.apisCallStatus.FetchPayments})),P=(0,e.P1)(i,c=>({peers:c.peers,apiCallStatus:c.apisCallStatus.FetchPeers})),D=(0,e.P1)(i,c=>({fees:c.fees,apiCallStatus:c.apisCallStatus.FetchFees})),T=(0,e.P1)(i,c=>({feeRatesPerKB:c.feeRatesPerKB,apiCallStatus:c.apisCallStatus.FetchFeeRatesperkb})),M=(0,e.P1)(i,c=>({feeRatesPerKW:c.feeRatesPerKW,apiCallStatus:c.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(i,c=>({listInvoices:c.invoices,apiCallStatus:c.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,c=>({utxos:c.utxos,apiCallStatus:c.apisCallStatus.FetchUTXOs})),k=(0,e.P1)(i,c=>({activeChannels:c.activeChannels,pendingChannels:c.pendingChannels,inactiveChannels:c.inactiveChannels,apiCallStatus:c.apisCallStatus.FetchChannels})),w=(0,e.P1)(i,c=>({balance:c.balance,apiCallStatus:c.apisCallStatus.FetchBalance})),z=(0,e.P1)(i,c=>({localRemoteBalance:c.localRemoteBalance,apiCallStatus:c.apisCallStatus.FetchLocalRemoteBalance})),U=(0,e.P1)(i,c=>({forwardingHistory:c.forwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryS})),W=(0,e.P1)(i,c=>({failedForwardingHistory:c.failedForwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryF})),ne=(0,e.P1)(i,c=>({localFailedForwardingHistory:c.localFailedForwardingHistory,apiCallStatus:c.apisCallStatus.FetchForwardingHistoryL})),Q=(0,e.P1)(i,c=>({information:c.information,nodeSettings:c.nodeSettings,balance:c.balance})),le=(0,e.P1)(i,c=>({information:c.information,balance:c.balance,numPeers:c.peers.length})),q=(0,e.P1)(i,c=>({information:c.information,balance:c.balance})),ie=(0,e.P1)(i,c=>({information:c.information,nodeSettings:c.nodeSettings,apisCallStatus:[c.apisCallStatus.FetchInfo,c.apisCallStatus.FetchForwardingHistoryS]})),se=(0,e.P1)(i,c=>({offers:c.offers,apiCallStatus:c.apisCallStatus.FetchOffers})),J=(0,e.P1)(i,c=>({offersBookmarks:c.offersBookmarks,apiCallStatus:c.apisCallStatus.FetchOfferBookmarks})),r=((0,e.P1)(i,c=>({swapOuts:c.swapOuts,apiCallStatus:c.apisCallStatus.FetchSwaps})),(0,e.P1)(i,c=>({swapIns:c.swapIns,apiCallStatus:c.apisCallStatus.FetchSwaps})),(0,e.P1)(i,c=>({totalSwapPeers:c.totalSwapPeers,swapPeers:c.swapPeers,apiCallStatus:c.apisCallStatus.FetchSwapPeers})));(0,e.P1)(i,c=>({swapRequests:c.swapRequests,apiCallStatus:c.apisCallStatus.FetchSwapRequests}))},5566:(He,j,p)=>{"use strict";p.d(j,{y:()=>ot});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7238),ne=p(7423),Q=p(4834),le=p(773),q=p(3390),ie=p(6895);function se(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function J(Ie,Ae){1&Ie&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const me=function(Ie){return{"mr-0":Ie}};function x(Ie,Ae){if(1&Ie&&d._UZ(0,"span",35),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function t(Ie,Ae){if(1&Ie&&d._UZ(0,"span",36),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function r(Ie,Ae){if(1&Ie&&d._UZ(0,"span",37),2&Ie){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,me,ce.screenSize===ce.screenSizeEnum.XS))}}function h(Ie,Ae){if(1&Ie&&d._UZ(0,"qr-code",33),2&Ie){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function c(Ie,Ae){1&Ie&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(Ie,Ae){1&Ie&&d._UZ(0,"mat-divider",39),2&Ie&&d.Q6J("inset",!0)}function S(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Ie){const ce=d.oxw();d.xp6(2),d.Q6J("icon",ce.faExclamationTriangle),d.xp6(2),d.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function I(Ie,Ae){1&Ie&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function _(Ie,Ae){1&Ie&&d._UZ(0,"span",47)}const n=function(){return[]};function g(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,_,1,0,"span",46),d.qZA()()),2&Ie){const ce=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function V(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Ie){const ce=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function R(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,g,6,5,"div",42),d.YNc(2,V,3,3,"div",23),d.BQk()),2&Ie){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf",ce.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ce.flgInvoicePaid)}}function H(Ie,Ae){1&Ie&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function $(Ie,Ae){1&Ie&&d._UZ(0,"mat-spinner",49),2&Ie&&d.Q6J("diameter",20)}function fe(Ie,Ae){if(1&Ie&&(d.ynx(0),d.YNc(1,H,2,0,"span",23),d.YNc(2,$,1,1,"mat-spinner",48),d.BQk()),2&Ie){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function ye(Ie,Ae){if(1&Ie&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Ie){const ce=d.oxw();d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.label)}}function ke(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(Ie,Ae){1&Ie&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function te(Ie,Ae){if(1&Ie){const ce=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(xe){return d.CHM(ce),d.oxw().onCopyPayment(xe)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Ie){const ce=d.oxw();d.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function ze(Ie,Ae){if(1&Ie){const ce=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(ce),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const be=function(Ie){return{"display-none":Ie}},Z=function(Ie){return{"xs-scroll-y":Ie}},Y=function(Ie,Ae){return{"mt-2":Ie,"mt-1":Ae}};let ot=(()=>{class Ie{constructor(ce,Te,xe,G,ee,ue){this.dialogRef=ce,this.data=Te,this.logger=xe,this.commonService=G,this.snackBar=ee,this.store=ue,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(y.gc).pipe((0,b.R)(this.unSubs[1])).subscribe(ce=>{const Te=this.invoice.status,xe=ce.listInvoices.invoices||[];this.invoice=null==xe?void 0:xe.find(G=>G.payment_hash===this.invoice.payment_hash),Te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Ie.\u0275fac=function(ce){return new(ce||Ie)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},Ie.\u0275cmp=d.Xpm({type:Ie,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Te){if(1&ce&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,se,1,3,"qr-code",2),d.YNc(3,J,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,x,1,3,"span",9),d.YNc(11,t,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return Te.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,h,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,C,1,1,"mat-divider",17),d.YNc(21,S,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,I,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,R,3,2,"ng-container",23),d.YNc(35,fe,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,ye,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,ke,2,0,"p",29),d.YNc(68,Ee,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,te,2,1,"button",31),d.YNc(71,ze,2,0,"button",32),d.qZA()()()()()),2&ce){const xe=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,be,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(4),d.Q6J("icon",Te.faReceipt),d.xp6(2),d.hij(" ",Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Invoice":Te.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,Z,Te.screenSize===Te.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,be,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==Te.invoice?null:Te.invoice.warning_capacity),d.xp6(4),d.Oqu(Te.screenSize===Te.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==Te.invoice?null:Te.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.msatoshi)||"0"===(null==Te.invoice?null:Te.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==Te.invoice?null:Te.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==Te.invoice?null:Te.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==Te.invoice?null:Te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==Te.invoice?null:Te.invoice.description)||"-"),d.xp6(5),d.hij("",null!=Te.invoice&&Te.invoice.bolt12?"Bolt12":null!=Te.invoice&&Te.invoice.bolt11&&!Te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Y,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",xe),d.xp6(3),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.gM,ne.lW,z.dn,Q.d,E.sg,le.Ou,q.h,ie.y],pipes:[E.JJ,E.uU],styles:[""]}),Ie})()},1462:(He,j,p)=>{"use strict";p.d(j,{k:()=>H});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(9828),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(8104),E=p(7093),k=p(9808),w=p(3322),z=p(159),U=p(9224),W=p(9444),ne=p(7423),Q=p(4834),le=p(3390),q=p(6895);function ie($,fe){if(1&$&&d._UZ(0,"qr-code",28),2&$){const ye=d.oxw();d.Q6J("value",null==ye.offer?null:ye.offer.bolt12)("size",ye.qrWidth)("errorCorrectionLevel","L")}}function se($,fe){1&$&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function J($,fe){if(1&$&&d._UZ(0,"qr-code",28),2&$){const ye=d.oxw();d.Q6J("value",null==ye.offer?null:ye.offer.bolt12)("size",ye.qrWidth)("errorCorrectionLevel","L")}}function me($,fe){1&$&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x($,fe){1&$&&d._UZ(0,"mat-divider",31),2&$&&d.Q6J("inset",!0)}function t($,fe){1&$&&d._UZ(0,"mat-divider",19)}function r($,fe){if(1&$&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&$){const ye=d.oxw(2);d.xp6(5),d.hij(" ",null!=ye.offer&&ye.offer.used?null!=ye.offer&&ye.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=ye.offer&&ye.offer.single_use?null!=ye.offer&&ye.offer.single_use?"Yes":"No":"N/K"," ")}}function h($,fe){1&$&&d._UZ(0,"mat-divider",19)}function c($,fe){if(1&$&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&$){const ye=d.oxw(2);d.xp6(5),d.Oqu((null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer))}}function C($,fe){if(1&$&&(d.TgZ(0,"div"),d.YNc(1,t,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,h,1,0,"mat-divider",32),d.YNc(4,c,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&$){const ye=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==ye.offer?null:ye.offer.used)||(null==ye.offer?null:ye.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==ye.offer?null:ye.offer.used)||(null==ye.offer?null:ye.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==ye.offerDecoded?null:ye.offerDecoded.vendor)||(null==ye.offerDecoded?null:ye.offerDecoded.issuer)),d.xp6(7),d.Oqu(ye.offerDecoded.offer_id)}}function S($,fe){1&$&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I($,fe){1&$&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function _($,fe){if(1&$){const ye=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(Ee){return d.CHM(ye),d.oxw().onCopyOffer(Ee)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&$){const ye=d.oxw();d.Q6J("payload",null==ye.offer?null:ye.offer.bolt12)}}function n($,fe){if(1&$){const ye=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(ye),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const g=function($){return{"display-none":$}},V=function($){return{"xs-scroll-y":$}},R=function($,fe){return{"mt-2":$,"mt-1":fe}};let H=(()=>{class ${constructor(ye,ke,Ee,te,ze,be,Z){this.dialogRef=ye,this.data=ke,this.logger=Ee,this.commonService=te,this.snackBar=ze,this.store=be,this.dataService=Z,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.ey).pipe((0,b.R)(this.unSubs[0])).subscribe(ye=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ye.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,b.R)(this.unSubs[1])).subscribe(ye=>{var ke;this.offerDecoded=ye,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(ke=this.offerDecoded.amount_msat)||void 0===ke?void 0:ke.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ye){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ye)}ngOnDestroy(){this.unSubs.forEach(ye=>{ye.next(null),ye.complete()})}}return $.\u0275fac=function(ye){return new(ye||$)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh),d.Y36(A.D))},$.\u0275cmp=d.Xpm({type:$,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ye,ke){if(1&ye&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,se,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return ke.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,J,1,3,"qr-code",2),d.YNc(16,me,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,C,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return ke.onShowAdvanced()}),d.YNc(47,S,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,_,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&ye){const Ee=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=ke.offer&&ke.offer.bolt12&&""!==(null==ke.offer?null:ke.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,g,ke.screenSize===ke.screenSizeEnum.XS||ke.screenSize===ke.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12)),d.xp6(4),d.Q6J("icon",ke.faReceipt),d.xp6(2),d.Oqu(ke.screenSize===ke.screenSizeEnum.XS?ke.newlyAdded?"Created":"Offer":ke.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,V,ke.screenSize===ke.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=ke.offer&&ke.offer.bolt12&&""!==(null==ke.offer?null:ke.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,g,ke.screenSize!==ke.screenSizeEnum.XS&&ke.screenSize!==ke.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",ke.screenSize===ke.screenSizeEnum.XS||ke.screenSize===ke.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=ke.offerDecoded&&ke.offerDecoded.amount_msat&&0!==(null==ke.offerDecoded?null:ke.offerDecoded.amount)?d.lcZ(24,22,(null==ke.offerDecoded?null:ke.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=ke.offer&&ke.offer.active?null!=ke.offer&&ke.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==ke.offerDecoded?null:ke.offerDecoded.description," "),d.xp6(7),d.Oqu(null==ke.offer?null:ke.offer.bolt12),d.xp6(1),d.Q6J("ngIf",ke.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,R,!ke.showAdvanced,ke.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!ke.showAdvanced)("ngIfElse",Ee),d.xp6(3),d.Q6J("ngIf",(null==ke.offer?null:ke.offer.bolt12)&&""!==(null==ke.offer?null:ke.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=ke.offer&&ke.offer.bolt12)||""===(null==ke.offer?null:ke.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,k.mk,w.oO,k.O5,z.uU,U.dk,W.BN,ne.lW,U.dn,Q.d,le.h,q.y],pipes:[k.JJ],styles:[""]}),$})()},2994:(He,j,p)=>{"use strict";p.d(j,{$W:()=>W,BL:()=>r,Bw:()=>w,CX:()=>d,DJ:()=>Z,EK:()=>se,El:()=>Q,Fd:()=>b,GD:()=>ie,HG:()=>U,HI:()=>C,Iy:()=>R,Lf:()=>V,Nr:()=>fe,OG:()=>h,On:()=>z,QZ:()=>u,RX:()=>D,SN:()=>P,Sf:()=>te,TM:()=>n,TW:()=>A,UR:()=>T,WM:()=>$,WO:()=>S,YP:()=>ke,YX:()=>x,Z$:()=>ye,Z8:()=>ne,Zr:()=>a,_E:()=>J,aL:()=>Ee,cQ:()=>c,eN:()=>M,i:()=>E,iL:()=>k,iz:()=>y,kL:()=>I,mC:()=>g,n7:()=>ze,oV:()=>_,pW:()=>t,ti:()=>Y});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(i.lr.RESET_ECL_STORE,(0,e.Ky)()),a=(0,e.PH)(i.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),y=(0,e.PH)(i.lr.FETCH_INFO_ECL,(0,e.Ky)()),d=(0,e.PH)(i.lr.SET_INFO_ECL,(0,e.Ky)()),P=(0,e.PH)(i.lr.FETCH_FEES_ECL),D=(0,e.PH)(i.lr.SET_FEES_ECL,(0,e.Ky)()),T=(0,e.PH)(i.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),M=(0,e.PH)(i.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(i.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(i.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),k=(0,e.PH)(i.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(i.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),z=(0,e.PH)(i.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),U=(0,e.PH)(i.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(i.lr.FETCH_PEERS_ECL),ne=(0,e.PH)(i.lr.SET_PEERS_ECL,(0,e.Ky)()),Q=(0,e.PH)(i.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),ie=((0,e.PH)(i.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.DETACH_PEER_ECL,(0,e.Ky)())),se=(0,e.PH)(i.lr.REMOVE_PEER_ECL,(0,e.Ky)()),J=(0,e.PH)(i.lr.GET_NEW_ADDRESS_ECL),x=((0,e.PH)(i.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),t=(0,e.PH)(i.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),r=(0,e.PH)(i.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),h=(0,e.PH)(i.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),c=(0,e.PH)(i.lr.FETCH_PAYMENTS_ECL),C=(0,e.PH)(i.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),S=(0,e.PH)(i.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(i.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),_=(0,e.PH)(i.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),n=(0,e.PH)(i.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),g=(0,e.PH)(i.lr.FETCH_TRANSACTIONS_ECL),V=(0,e.PH)(i.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),R=(0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),$=((0,e.PH)(i.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.FETCH_INVOICES_ECL)),fe=(0,e.PH)(i.lr.SET_INVOICES_ECL,(0,e.Ky)()),ye=(0,e.PH)(i.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),ke=(0,e.PH)(i.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Ee=(0,e.PH)(i.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),te=(0,e.PH)(i.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),ze=(0,e.PH)(i.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),Z=((0,e.PH)(i.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(i.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),Y=(0,e.PH)(i.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(He,j,p)=>{"use strict";p.d(j,{o:()=>se});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(7766),E=p(2994),k=p(2501),w=p(5e3),z=p(8138),U=p(5620),W=p(5986),ne=p(62),Q=p(5043),le=p(1402),q=p(7998),ie=p(9808);let se=(()=>{class J{constructor(x,t,r,h,c,C,S,I,_){this.actions=x,this.httpClient=t,this.store=r,this.sessionService=h,this.commonService=c,this.logger=C,this.router=S,this.wsService=I,this.location=_,this.CHILD_API_URL=P.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new i.x,new i.x,new i.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INFO_ECL),(0,b.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,M.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,M.ac)({payload:T.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(T.pg.SET_SELECTED_NODE))),(0,y.U)(g=>(this.logger.info(g),this.initializeRemainingData(g,n.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.GET_NODE_INFO})),{type:T.lr.SET_INFO_ECL,payload:g||{}})),(0,d.K)(g=>{const V=this.commonService.extractErrorCode(g),R=503===V?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(g);return this.router.navigate(["/error"],{state:{errorCode:V,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",T.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:V,error:R}),(0,u.of)({type:T.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_FEES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/fees").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:T.Bn.COMPLETED}})),{type:T.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",T.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PAYMENTS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.FEES_API+"/payments").pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",T.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_CHANNELS_ECL),(0,b.z)(n=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.CHANNELS_API).pipe((0,y.U)(g=>(this.logger.info(g),this.rawChannelsList=g,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:T.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:T.pg.VOID})),(0,d.K)(g=>(this.handleErrorWithoutAlert("FetchChannels",T.m6.NO_SPINNER,"Fetching Channels Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/balance"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:T.Bn.COMPLETED}})),{type:T.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",T.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_PEERS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.PEERS_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:T.Bn.COMPLETED}})),{type:T.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",T.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_NEW_ADDRESS_ECL),(0,b.z)(()=>(this.store.dispatch((0,M.ac)({payload:T.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,M.uO)({payload:T.m6.GENERATE_NEW_ADDRESS})),{type:T.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",T.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n),(0,u.of)({type:T.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_NEW_ADDRESS_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:T.Bn.COMPLETED}})),g=g||[],this.store.dispatch((0,M.uO)({payload:T.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:g})),{type:T.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:g.find(V=>V.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(g=>(this.handleErrorWithoutAlert("SaveNewPeer",T.m6.CONNECT_PEER,"Peer Connection Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.DETACH_PEER_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,M.uO)({payload:T.m6.DISCONNECT_PEER})),this.store.dispatch((0,M.jW)({payload:"Disconnecting Peer!"})),{type:T.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(g=>(this.handleErrorWithAlert("DisconnectPeer",T.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+P.NZ.PEERS_API+"/"+n.payload.nodeId,g),(0,u.of)({type:T.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SAVE_NEW_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API,n.payload.feeRate&&n.payload.feeRate>0?{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private,fundingFeerateSatByte:n.payload.feeRate}:{nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,channelFlags:+!n.payload.private}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:T.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,M.uO)({payload:T.m6.OPEN_CHANNEL})),this.store.dispatch((0,M.jW)({payload:"Channel Added Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewChannel",T.m6.OPEN_CHANNEL,"Opening Channel Failed.",V),(0,u.of)({type:T.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.UPDATE_CHANNEL_ECL),(0,b.z)(n=>{this.store.dispatch((0,M.ac)({payload:T.m6.UPDATE_CHAN_POLICY}));let g="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return g=n.payload.nodeIds?g+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?g+"&nodeId="+n.payload.nodeId:n.payload.channelIds?g+"&channelIds="+n.payload.channelIds:g+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+P.NZ.CHANNELS_API+"/updateRelayFee"+g,{}).pipe((0,y.U)(V=>(this.logger.info(V),this.store.dispatch((0,M.uO)({payload:T.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,M.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:T.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannels",T.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+P.NZ.CHANNELS_API,V),(0,u.of)({type:T.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CLOSE_CHANNEL_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+P.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,y.U)(g=>(this.logger.info(g),setTimeout(()=>{this.store.dispatch((0,M.uO)({payload:n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,M.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:T.pg.VOID})),(0,d.K)(g=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?T.m6.FORCE_CLOSE_CHANNEL:T.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+P.NZ.CHANNELS_API,g),(0,u.of)({type:T.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.GET_QUERY_ROUTES_ECL),(0,b.z)(n=>this.httpClient.get(this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,y.U)(g=>(this.logger.info(g),{type:T.lr.SET_QUERY_ROUTES_ECL,payload:g})),(0,d.K)(g=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",T.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,g),(0,u.of)({type:T.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_QUERY_ROUTES_ECL),(0,y.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_PAYMENT_ECL),(0,b.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,M.ac)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.PAYMENTS_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.latestPaymentRes=g,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:T.pg.VOID})),(0,d.K)(g=>(this.logger.error("Error: "+JSON.stringify(g)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed.",g):this.handleErrorWithAlert("SendPayment",T.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+P.NZ.PAYMENTS_API,g),(0,u.of)({type:T.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_TRANSACTIONS_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:T.Bn.COMPLETED}})),{type:T.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",T.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,u.of)({type:T.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SEND_ONCHAIN_FUNDS_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.ON_CHAIN_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:T.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("SendOnchainFunds",T.m6.SEND_FUNDS,"Sending Fund Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.CREATE_INVOICE_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+P.NZ.INVOICES_API,n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.CREATE_INVOICE})),g.timestamp=Math.round((new Date).getTime()/1e3),g.expiresAt=Math.round(g.timestamp+n.payload.expireIn),g.description=n.payload.description,g.status="unpaid",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{invoice:g,newlyAdded:!0,component:A.R}}}))},100),{type:T.lr.ADD_INVOICE_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("CreateInvoice",T.m6.CREATE_INVOICE,"Create Invoice Failed.",g),(0,u.of)({type:T.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.FETCH_INVOICES_ECL),(0,b.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API).pipe((0,y.U)(n=>(this.logger.info(n),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:T.Bn.COMPLETED}})),{type:T.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",T.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,u.of)({type:T.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.PEER_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_NODE})),{type:T.lr.SET_LOOKUP_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithAlert("Lookup",T.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+P.NZ.NETWORK_API+"/nodes/"+n.payload,g),(0,u.of)({type:T.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.INVOICE_LOOKUP_ECL),(0,b.z)(n=>(this.store.dispatch((0,M.ac)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+P.NZ.INVOICES_API+"/"+n.payload).pipe((0,y.U)(g=>(this.logger.info(g),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:g})),{type:T.lr.SET_LOOKUP_ECL,payload:g})),(0,d.K)(g=>(this.handleErrorWithoutAlert("Lookup",T.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",g),this.store.dispatch((0,M.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:T.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(T.lr.SET_LOOKUP_ECL),(0,y.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:T.Bn.COMPLETED}})),this.store.dispatch((0,M.uO)({payload:T.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,M.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==T.Bn.COMPLETED&&n.FetchInfo.status!==T.Bn.ERROR||n.FetchFees.status!==T.Bn.COMPLETED&&n.FetchFees.status!==T.Bn.ERROR||n.FetchOnchainBalance.status!==T.Bn.COMPLETED&&n.FetchOnchainBalance.status!==T.Bn.ERROR||n.FetchChannels.status!==T.Bn.COMPLETED&&n.FetchChannels.status!==T.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,M.uO)({payload:T.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{var g;this.logger.info("Received new message from the service: "+JSON.stringify(n));let V="";if(n)switch(n.type){case T.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case T.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case T.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:n}));break;case T.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,E.ti)({payload:n}));break;case T.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(g=this.rawChannelsList)||void 0===g?void 0:g.map(R=>(R.channelId===n.channelId&&R.nodeId===n.remoteNodeId&&(R.state=n.currentState),R)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,t=0,r=0,h={localBalance:0,remoteBalance:0},c=[];const C=[],S=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((_,n)=>{var g,V,R,H,$;_&&("NORMAL"===_.state?(x=(_.toLocal||0)+(_.toRemote||0),t+=_.toLocal||0,r+=_.toRemote||0,_.balancedness=0===x?1:+(1-Math.abs(((_.toLocal||0)-(_.toRemote||0))/x)).toFixed(3),c.push(_),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(_.toLocal||0)):(null===(g=_.state)||void 0===g?void 0:g.includes("WAIT"))||(null===(V=_.state)||void 0===V?void 0:V.includes("CLOSING"))||(null===(R=_.state)||void 0===R?void 0:R.includes("SYNCING"))?(_.state=null===(H=_.state)||void 0===H?void 0:H.replace(/_/g," "),C.push(_),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(_.toLocal||0)):(_.state=null===($=_.state)||void 0===$?void 0:$.replace(/_/g," "),S.push(_),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(_.toLocal||0)))}),h={localBalance:t,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(C)),this.logger.info("Inactive Channels: "+JSON.stringify(S)),this.logger.info("Lightning Balances: "+JSON.stringify(h)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:C,inactive:S,balances:h,status:I})),this.store.dispatch((0,E.eN)({payload:c})),this.store.dispatch((0,E.TW)({payload:C})),this.store.dispatch((0,E.i)({payload:S})),this.store.dispatch((0,E.On)({payload:h})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(x,t){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:x.nodeId,alias:x.alias,testnet:"testnet"===x.network,chains:x.publicAddresses,uris:x.uris,version:x.version,numberOfPendingChannels:0};this.store.dispatch((0,M.ac)({payload:T.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,M._V)({payload:r}));let h=this.location.path();h.includes("/lnd/")?h=null==h?void 0:h.replace("/lnd/","/ecl/"):h.includes("/cln/")&&(h=null==h?void 0:h.replace("/cln/","/ecl/")),(h.includes("/login")||h.includes("/error")||""===h||"HOME"===t||h.includes("?access-key="))&&(h="/ecl/home"),this.router.navigate([h]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(x,t,r,h){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(h)),401===h.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,M.uO)({payload:t})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:h.status.toString(),message:this.commonService.extractErrorMessage(h,r)}})))}handleErrorWithAlert(x,t,r,h,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.ts)()),this.store.dispatch((0,M.kS)()),this.store.dispatch((0,M.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,M.uO)({payload:t}));const C=this.commonService.extractErrorMessage(c);this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:C,URL:h},component:D.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:x,status:T.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:h}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(w.LFG(e.eX),w.LFG(z.eN),w.LFG(U.yh),w.LFG(W.m),w.LFG(ne.v),w.LFG(Q.mQ),w.LFG(le.F0),w.LFG(q.d),w.LFG(ie.Ye))},J.\u0275prov=w.Yz7({token:J,factory:J.\u0275fac}),J})()},2501:(He,j,p)=>{"use strict";p.d(j,{Bo:()=>E,Ef:()=>A,JG:()=>D,PP:()=>P,T$:()=>a,Xz:()=>T,dx:()=>M,kY:()=>k,pg:()=>u,yA:()=>d,yD:()=>b});var e=p(5620);const i=(0,e.ZF)("ecl"),u=(0,e.P1)(i,w=>w.nodeSettings),b=(0,e.P1)(i,w=>w.information),a=(0,e.P1)(i,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),d=((0,e.P1)(i,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(i,w=>w.apisCallStatus)),P=(0,e.P1)(i,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),T=(0,e.P1)(i,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),M=(0,e.P1)(i,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),k=(0,e.P1)(i,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(He,j,p)=>{"use strict";p.d(j,{R:()=>Ee});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(2501),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7423),ne=p(4834),Q=p(773),le=p(3390),q=p(6895);function ie(te,ze){if(1&te&&d._UZ(0,"qr-code",29),2&te){const be=d.oxw();d.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function se(te,ze){1&te&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function J(te,ze){if(1&te&&d._UZ(0,"qr-code",29),2&te){const be=d.oxw();d.Q6J("value",null==be.invoice?null:be.invoice.serialized)("size",be.qrWidth)("errorCorrectionLevel","L")}}function me(te,ze){1&te&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(te,ze){1&te&&d._UZ(0,"mat-divider",32),2&te&&d.Q6J("inset",!0)}function t(te,ze){1&te&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(te,ze){1&te&&d._UZ(0,"span",38)}const h=function(){return[]};function c(te,ze){if(1&te&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&te){const be=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==be.invoice?null:be.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,h).constructor(35))}}function C(te,ze){if(1&te&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&te){const be=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==be.invoice?null:be.invoice.amountSettled)," Sats")}}function S(te,ze){if(1&te&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,C,3,3,"div",19),d.BQk()),2&te){const be=d.oxw();d.xp6(1),d.Q6J("ngIf",be.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!be.flgInvoicePaid)}}function I(te,ze){1&te&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function _(te,ze){1&te&&d._UZ(0,"mat-spinner",40),2&te&&d.Q6J("diameter",20)}function n(te,ze){if(1&te&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,_,1,1,"mat-spinner",39),d.BQk()),2&te){const be=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==be.invoice?null:be.invoice.status)||!be.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==be.invoice?null:be.invoice.status)&&be.flgVersionCompatible)}}function g(te,ze){if(1&te&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node Id"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&te){const be=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==be.invoice?null:be.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==be.invoice?null:be.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==be.invoice?null:be.invoice.paymentHash),d.xp6(7),d.Oqu(null==be.invoice?null:be.invoice.nodeId)}}function V(te,ze){1&te&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function R(te,ze){1&te&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function H(te,ze){if(1&te){const be=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Y){return d.CHM(be),d.oxw().onCopyPayment(Y)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&te){const be=d.oxw();d.Q6J("payload",null==be.invoice?null:be.invoice.serialized)}}function $(te,ze){if(1&te){const be=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(be),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const fe=function(te){return{"display-none":te}},ye=function(te){return{"xs-scroll-y":te}},ke=function(te,ze){return{"mt-2":te,"mt-1":ze}};let Ee=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae){this.dialogRef=be,this.data=Z,this.logger=Y,this.commonService=ot,this.snackBar=Ie,this.store=Ae,this.faReceipt=i.dLy,this.faExclamationTriangle=i.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.yD).pipe((0,b.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.version,"0.5.0")}),this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(be=>{const Z=this.invoice.status,Y=be.invoices&&be.invoices.length>0?be.invoices:[];this.invoice=(null==Y?void 0:Y.find(ot=>ot.paymentHash===this.invoice.paymentHash))||{},Z!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(be)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(be){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return te.\u0275fac=function(be){return new(be||te)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},te.\u0275cmp=d.Xpm({type:te,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(be,Z){if(1&be&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ie,1,3,"qr-code",2),d.YNc(3,se,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Z.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,J,1,3,"qr-code",2),d.YNc(16,me,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,t,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,S,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,g,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return Z.onShowAdvanced()}),d.YNc(63,V,2,0,"p",25),d.YNc(64,R,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,H,2,1,"button",27),d.YNc(67,$,2,0,"button",28),d.qZA()()()()()),2&be){const Y=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Z.invoice&&Z.invoice.serialized&&""!==(null==Z.invoice?null:Z.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,fe,Z.screenSize===Z.screenSizeEnum.XS||Z.screenSize===Z.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(4),d.Q6J("icon",Z.faReceipt),d.xp6(2),d.Oqu(Z.screenSize===Z.screenSizeEnum.XS?Z.newlyAdded?"Created":"Invoice":Z.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,ye,Z.screenSize===Z.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Z.invoice&&Z.invoice.serialized&&""!==(null==Z.invoice?null:Z.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,fe,Z.screenSize!==Z.screenSizeEnum.XS&&Z.screenSize!==Z.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",Z.screenSize===Z.screenSizeEnum.XS||Z.screenSize===Z.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==Z.invoice?null:Z.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.amount)||"0"===(null==Z.invoice?null:Z.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==Z.invoice?null:Z.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==Z.invoice?null:Z.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==Z.invoice?null:Z.invoice.status)),d.xp6(8),d.Oqu((null==Z.invoice?null:Z.invoice.description)||"-"),d.xp6(7),d.Oqu((null==Z.invoice?null:Z.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",Z.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,ke,!Z.showAdvanced,Z.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Z.showAdvanced)("ngIfElse",Y),d.xp6(3),d.Q6J("ngIf",(null==Z.invoice?null:Z.invoice.serialized)&&""!==(null==Z.invoice?null:Z.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=Z.invoice&&Z.invoice.serialized)||""===(null==Z.invoice?null:Z.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.lW,z.dn,ne.d,E.sg,Q.Ou,le.h,q.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),te})()},6523:(He,j,p)=>{"use strict";p.d(j,{$A:()=>hi,$W:()=>P,BL:()=>c,B_:()=>V,Bl:()=>ne,CX:()=>d,Cp:()=>I,EK:()=>E,El:()=>T,Fr:()=>ei,HI:()=>Y,JT:()=>a,Jl:()=>Q,Jo:()=>_t,Lf:()=>te,Ll:()=>b,Ly:()=>ze,Nr:()=>fe,OG:()=>C,PC:()=>u,QJ:()=>kt,RX:()=>W,Rd:()=>k,Rv:()=>le,SN:()=>U,Sf:()=>Tt,TW:()=>me,UH:()=>be,UR:()=>ie,Vv:()=>S,WM:()=>$,WO:()=>gt,Wi:()=>G,YP:()=>z,YX:()=>h,Z7:()=>J,Z8:()=>D,Zh:()=>x,_E:()=>Te,_L:()=>t,aL:()=>ye,as:()=>se,cQ:()=>Z,dV:()=>Ae,fu:()=>ue,kL:()=>Qe,ks:()=>q,mC:()=>Ee,n7:()=>jt,oV:()=>ot,pW:()=>r,qY:()=>ke,sQ:()=>y,tb:()=>g,u0:()=>vt,vV:()=>R,xG:()=>ht,y2:()=>Le,yZ:()=>Gt,z:()=>A});var e=p(5620),i=p(7731);const u=(0,e.PH)(i.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),b=(0,e.PH)(i.uR.RESET_LND_STORE,(0,e.Ky)()),a=(0,e.PH)(i.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),y=(0,e.PH)(i.uR.FETCH_INFO_LND,(0,e.Ky)()),d=(0,e.PH)(i.uR.SET_INFO_LND,(0,e.Ky)()),P=(0,e.PH)(i.uR.FETCH_PEERS_LND),D=(0,e.PH)(i.uR.SET_PEERS_LND,(0,e.Ky)()),T=(0,e.PH)(i.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(i.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(i.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(i.uR.REMOVE_PEER_LND,(0,e.Ky)()),k=(0,e.PH)(i.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),z=((0,e.PH)(i.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.ADD_INVOICE_LND,(0,e.Ky)())),U=(0,e.PH)(i.uR.FETCH_FEES_LND),W=(0,e.PH)(i.uR.SET_FEES_LND,(0,e.Ky)()),ne=(0,e.PH)(i.uR.FETCH_BLOCKCHAIN_BALANCE_LND),Q=(0,e.PH)(i.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),le=(0,e.PH)(i.uR.FETCH_NETWORK_LND),q=(0,e.PH)(i.uR.SET_NETWORK_LND,(0,e.Ky)()),ie=(0,e.PH)(i.uR.FETCH_CHANNELS_LND),se=(0,e.PH)(i.uR.SET_CHANNELS_LND,(0,e.Ky)()),J=(0,e.PH)(i.uR.FETCH_PENDING_CHANNELS_LND),me=(0,e.PH)(i.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),x=(0,e.PH)(i.uR.FETCH_CLOSED_CHANNELS_LND),t=(0,e.PH)(i.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),r=(0,e.PH)(i.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),h=(0,e.PH)(i.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),c=(0,e.PH)(i.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),C=(0,e.PH)(i.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),S=(0,e.PH)(i.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(i.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),g=((0,e.PH)(i.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.RESTORE_CHANNELS_LIST_LND)),V=(0,e.PH)(i.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),R=(0,e.PH)(i.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),$=((0,e.PH)(i.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_INVOICES_LND,(0,e.Ky)())),fe=(0,e.PH)(i.uR.SET_INVOICES_LND,(0,e.Ky)()),ye=(0,e.PH)(i.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),ke=(0,e.PH)(i.uR.UPDATE_PAYMENT_LND,(0,e.Ky)()),Ee=(0,e.PH)(i.uR.FETCH_TRANSACTIONS_LND),te=(0,e.PH)(i.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),ze=(0,e.PH)(i.uR.FETCH_UTXOS_LND),be=(0,e.PH)(i.uR.SET_UTXOS_LND,(0,e.Ky)()),Z=(0,e.PH)(i.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),Y=(0,e.PH)(i.uR.SET_PAYMENTS_LND,(0,e.Ky)()),ot=(0,e.PH)(i.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ae=((0,e.PH)(i.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),Te=((0,e.PH)(i.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),G=((0,e.PH)(i.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),ue=((0,e.PH)(i.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GEN_SEED_LND,(0,e.Ky)())),Le=((0,e.PH)(i.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.INIT_WALLET_LND,(0,e.Ky)())),ht=((0,e.PH)(i.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(i.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),Tt=(0,e.PH)(i.uR.PEER_LOOKUP_LND,(0,e.Ky)()),hi=(0,e.PH)(i.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),jt=(0,e.PH)(i.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),Gt=(0,e.PH)(i.uR.PAYMENT_LOOKUP_LND,(0,e.Ky)()),vt=((0,e.PH)(i.uR.SET_LOOKUP_LND,(0,e.Ky)()),(0,e.PH)(i.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)())),kt=(0,e.PH)(i.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),gt=(0,e.PH)(i.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),Qe=(0,e.PH)(i.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),_t=(0,e.PH)(i.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ei=(0,e.PH)(i.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(He,j,p)=>{"use strict";p.d(j,{l:()=>me});var e=p(6642),i=p(7579),u=p(9646),b=p(5577),a=p(2722),y=p(4004),d=p(262),P=p(1365),D=p(2340),T=p(8627),M=p(1786),A=p(7731),E=p(7861),k=p(6523),w=p(6529),z=p(5e3),U=p(8138),W=p(5620),ne=p(5043),Q=p(62),le=p(5986),q=p(8966),ie=p(1402),se=p(7998),J=p(9808);let me=(()=>{class x{constructor(r,h,c,C,S,I,_,n,g,V){this.actions=r,this.httpClient=h,this.store=c,this.logger=C,this.commonService=S,this.sessionService=I,this.dialog=_,this.router=n,this.wsService=g,this.location=V,this.CHILD_API_URL=D.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new i.x,new i.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,b.z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,y.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,R.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const $=this.commonService.extractErrorCode(H),fe=503===$?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:$,errorMessage:fe}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:$,error:fe})}return(0,u.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PEERS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,d.K)(H=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+D.NZ.PEERS_API+"/"+R.payload.pubkey,H),(0,u.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.INVOICES_API,{memo:R.payload.memo,amount:R.payload.invoiceValue,private:R.payload.private,expiry:R.payload.expiry}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(H.memo=R.payload.memo,H.value=R.payload.invoiceValue,H.expiry=R.payload.expiry,H.cltv_expiry="144",H.private=R.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:T.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/chanPolicy",H),(0,u.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(H=H+"&target_conf="+R.payload.targetConf),R.payload.satPerByte&&(H=H+"&sat_per_byte="+R.payload.satPerByte),this.httpClient.delete(H).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.uO)({payload:R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:$.message}})),{type:A.pg.VOID})),(0,d.K)($=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,$),(0,u.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:R.payload.showMessage+" "+H.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.FEES_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:R||{}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.BALANCE_API))),(0,y.U)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(R),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/info"))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:R||{}})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API).pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:R.channels||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/pending").pipe((0,y.U)(R=>{this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const H={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return R&&(H.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(H.closing.num_channels=R.pending_closing_channels.length,H.total_channels=H.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach($=>{H.closing.limbo_balance=+H.closing.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.pending_force_closing_channels&&(H.force_closing.num_channels=R.pending_force_closing_channels.length,H.total_channels=H.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach($=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.pending_open_channels&&(H.open.num_channels=R.pending_open_channels.length,H.total_channels=H.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach($=>{H.open.limbo_balance=+H.open.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)})),R.waiting_close_channels&&(H.waiting_close.num_channels=R.waiting_close_channels.length,H.total_channels=H.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach($=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+($.channel.local_balance?+$.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/closed").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(ye.total_invoices=+(ye.last_index_offset||0)),{type:A.uR.SET_INVOICES_LND,payload:ye})),(0,d.K)(ye=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",ye),(0,u.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,P.M)(this.store.select(w.Q5)),(0,b.z)(([R,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:R||[]})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,u.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,y.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:ye})),(0,d.K)(ye=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",ye),(0,u.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const H={};return H.paymentReq=R.payload.paymentReq,R.payload.paymentAmount&&(H.paymentAmount=R.payload.paymentAmount),R.payload.outgoingChannel&&(H.outgoingChannel=R.payload.outgoingChannel.chan_id),R.payload.allowSelfPayment&&(H.allowSelfPayment=R.payload.allowSelfPayment),R.payload.lastHopPubkey&&(H.lastHopPubkey=R.payload.lastHopPubkey),R.payload.feeLimitType&&R.payload.feeLimitType!==A.Vc[0].id&&(H.feeLimit={},H.feeLimit[R.payload.feeLimitType]=R.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",H).pipe((0,y.U)($=>{if(this.logger.info($),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),$.payment_error)return R.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:$}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",$.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:A.IV,reversed:!0}})),R.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let fe="Payment Sent Successfully.";$.payment_route&&$.payment_route.total_fees_msat&&(fe="Payment sent successfully with the total fee "+$.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:fe}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:$}}),(0,d.K)($=>(this.logger.error("Error: "+JSON.stringify($)),R.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,u.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage($)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",$):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+D.NZ.CHANNELS_API+"/transactions",$),(0,u.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,d.K)(H=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+D.NZ.NEW_ADDRESS_API+"?type="+R.payload.addressId,H),(0,u.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,u.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,b.z)(R=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+D.NZ.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:$})),(0,d.K)($=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+D.NZ.SWITCH_API,$),(0,u.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,b.z)(R=>{let H=this.CHILD_API_URL+D.NZ.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(H).pipe((0,y.U)($=>(this.logger.info($),{type:A.uR.SET_QUERY_ROUTES_LND,payload:$})),(0,d.K)($=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+D.NZ.NETWORK_API,$),(0,u.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload).pipe((0,y.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,d.K)(H=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/genseed/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,b.z)(()=>this.httpClient.get(this.CHILD_API_URL+D.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,y.U)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:A.pg.VOID})),(0,d.K)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,u.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,y.U)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/initwallet",H),(0,u.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+D.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,y.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,d.K)(H=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+D.NZ.WALLET_API+"/unlockwallet",H),(0,u.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/node/"+R.payload,H),(0,u.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:R.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+D.NZ.NETWORK_API+"/edge/"+R.payload.channelID,H),(0,u.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,b.z)(R=>{this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}}));let H=this.CHILD_API_URL+D.NZ.INVOICES_API+"/lookup";return H=R.payload.paymentAddress&&""!==R.payload.paymentAddress?H+"?payment_addr="+R.payload.paymentAddress:H+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(H).pipe((0,y.U)($=>(this.logger.info($),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:$})),{type:A.uR.SET_LOOKUP_LND,payload:$})),(0,d.K)($=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",$),R.payload.openSnackBar&&this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:$}}))))}))),this.paymentLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PAYMENT_LOOKUP_LND),(0,b.z)(R=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,y.U)(H=>(this.logger.info(H),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:A.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,u.of)({type:A.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,d.K)(R=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+D.NZ.CHANNELS_BACKUP_API,R),(0,u.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,y.U)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,b.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+D.NZ.PAYMENTS_API+"/alltransactions").pipe((0,y.U)(R=>(this.logger.info(R),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,d.K)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,u.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==A.Bn.COMPLETED&&R.FetchInfo.status!==A.Bn.ERROR||R.FetchFees.status!==A.Bn.COMPLETED&&R.FetchFees.status!==A.Bn.ERROR||R.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&R.FetchBalanceBlockchain.status!==A.Bn.ERROR||R.FetchAllChannels.status!==A.Bn.COMPLETED&&R.FetchAllChannels.status!==A.Bn.ERROR||R.FetchPendingChannels.status!==A.Bn.COMPLETED&&R.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===A.g8.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,k.aL)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(r,h){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:c}));let C=this.location.path();C.includes("/cln/")?C=null==C?void 0:C.replace("/cln/","/lnd/"):C.includes("/ecl/")&&(C=null==C?void 0:C.replace("/ecl/","/lnd/")),(C.includes("/unlock")||C.includes("/login")||C.includes("/error")||""===C||"HOME"===h||C.includes("?access-key="))&&(C="/lnd/home"),this.router.navigate([C]),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,h,c,C){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(C)),401===C.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:h})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:C.status.toString(),message:this.commonService.extractErrorMessage(C,c)}})))}handleErrorWithAlert(r,h,c,C,S){if(this.logger.error(S),401===S.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:h}));const I=this.commonService.extractErrorMessage(S);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:S.status,message:I,URL:C},component:M.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:A.Bn.ERROR,statusCode:S.status.toString(),message:I,URL:C}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(z.LFG(e.eX),z.LFG(U.eN),z.LFG(W.yh),z.LFG(ne.mQ),z.LFG(Q.v),z.LFG(le.m),z.LFG(q.uw),z.LFG(ie.F0),z.LFG(se.d),z.LFG(J.Ye))},x.\u0275prov=z.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(He,j,p)=>{"use strict";p.d(j,{$k:()=>u,Bo:()=>d,Ef:()=>A,JG:()=>D,N7:()=>Q,P2:()=>z,PP:()=>P,Q5:()=>b,T4:()=>ne,Wi:()=>T,ZW:()=>E,_f:()=>q,bx:()=>ie,dx:()=>M,l5:()=>le,ni:()=>w,qU:()=>U,yA:()=>y});var e=p(5620);const i=(0,e.ZF)("lnd"),u=(0,e.P1)(i,se=>se.nodeSettings),b=(0,e.P1)(i,se=>se.information),y=((0,e.P1)(i,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo})),(0,e.P1)(i,se=>se.apisCallStatus)),d=(0,e.P1)(i,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistory})),P=(0,e.P1)(i,se=>({listPayments:se.listPayments,apiCallStatus:se.apisCallStatus.FetchPayments})),D=(0,e.P1)(i,se=>({fees:se.fees,apiCallStatus:se.apisCallStatus.FetchFees})),T=(0,e.P1)(i,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),M=(0,e.P1)(i,se=>({transactions:se.transactions,apiCallStatus:se.apisCallStatus.FetchTransactions})),A=(0,e.P1)(i,se=>({listInvoices:se.listInvoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),E=(0,e.P1)(i,se=>({channels:se.channels,channelsSummary:se.channelsSummary,lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(i,se=>({channelsSummary:se.channelsSummary,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,se=>({pendingChannels:se.pendingChannels,pendingChannelsSummary:se.pendingChannelsSummary,apiCallStatus:se.apisCallStatus.FetchPendingChannels}))),z=(0,e.P1)(i,se=>({closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchClosedChannels})),U=(0,e.P1)(i,se=>({blockchainBalance:se.blockchainBalance,apiCallStatus:se.apisCallStatus.FetchBalanceBlockchain})),ne=((0,e.P1)(i,se=>({lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,e.P1)(i,se=>({utxos:se.utxos,apiCallStatus:se.apisCallStatus.FetchUTXOs}))),Q=(0,e.P1)(i,se=>({networkInfo:se.networkInfo,apiCallStatus:se.apisCallStatus.FetchNetwork})),le=(0,e.P1)(i,se=>({allLightningTransactions:se.allLightningTransactions,apiCallStatus:se.apisCallStatus.FetchLightningTransactions})),q=(0,e.P1)(i,se=>({channels:se.channels,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels})),ie=(0,e.P1)(i,se=>({information:se.information,nodeSettings:se.nodeSettings,apiCallStatus:se.apisCallStatus.FetchInfo}))},8627:(He,j,p)=>{"use strict";p.d(j,{v:()=>ee});var e=p(8966),i=p(801),u=p(7579),b=p(2722),a=p(7731),y=p(6529),d=p(5e3),P=p(5043),D=p(62),T=p(7261),M=p(5620),A=p(7093),E=p(9808),k=p(3322),w=p(159),z=p(9224),U=p(9444),W=p(7423),ne=p(4834),Q=p(8129),le=p(773),q=p(1125),ie=p(7238),se=p(5245),J=p(3390),me=p(6895);const x=["scrollContainer"];function t(ue,ve){if(1&ue&&d._UZ(0,"qr-code",32),2&ue){const Le=d.oxw();d.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function r(ue,ve){1&ue&&(d.TgZ(0,"span",33),d._uU(1,"N/A"),d.qZA())}function h(ue,ve){if(1&ue&&d._UZ(0,"qr-code",32),2&ue){const Le=d.oxw();d.Q6J("value",null==Le.invoice?null:Le.invoice.payment_request)("size",Le.qrWidth)("errorCorrectionLevel","L")}}function c(ue,ve){1&ue&&(d.TgZ(0,"span",34),d._uU(1,"QR Code Not Applicable"),d.qZA())}function C(ue,ve){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function S(ue,ve){1&ue&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function I(ue,ve){1&ue&&d._UZ(0,"span",40)}const _=function(){return[]};function n(ue,ve){if(1&ue&&(d.TgZ(0,"div",36)(1,"div",37)(2,"span",38),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,I,1,0,"span",39),d.qZA()()),2&ue){const Le=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,_).constructor(35))}}function g(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&ue){const Le=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Le.invoice?null:Le.invoice.amt_paid_sat)," Sats")}}function V(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,n,6,5,"div",35),d.YNc(2,g,3,3,"div",21),d.BQk()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("ngIf",Le.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Le.flgInvoicePaid)}}function R(ue,ve){1&ue&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function H(ue,ve){1&ue&&d._UZ(0,"mat-spinner",42),2&ue&&d.Q6J("diameter",20)}function $(ue,ve){if(1&ue&&(d.ynx(0),d.YNc(1,R,2,0,"span",21),d.YNc(2,H,1,1,"mat-spinner",41),d.BQk()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==Le.invoice?null:Le.invoice.state)||!Le.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==Le.invoice?null:Le.invoice.state)&&Le.flgVersionCompatible)}}const fe=function(ue){return{"mr-0":ue}};function ye(ue,ve){if(1&ue&&d._UZ(0,"span",59),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function ke(ue,ve){if(1&ue&&d._UZ(0,"span",60),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function Ee(ue,ve){if(1&ue&&d._UZ(0,"span",61),2&ue){const Le=d.oxw(4);d.Q6J("ngClass",d.VKq(1,fe,Le.screenSize===Le.screenSizeEnum.XS))}}function te(ue,ve){if(1&ue&&(d.TgZ(0,"div",48)(1,"div",53)(2,"span",54),d.YNc(3,ye,1,3,"span",55),d.YNc(4,ke,1,3,"span",56),d.YNc(5,Ee,1,3,"span",57),d._uU(6),d.qZA(),d.TgZ(7,"span",58),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&ue){const Le=ve.$implicit,lt=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===Le.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===Le.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===Le.state),d.xp6(1),d.hij(" ",Le.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+Le.amt_msat/1e3||0,lt.getDecimalFormat(Le))),d.xp6(2),d.Q6J("inset",!0)}}function ze(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",46),d.NdJ("opened",function(){return d.CHM(Le),d.oxw(2).flgOpened=!0})("closed",function(){return d.CHM(Le),d.oxw(2).onExpansionClosed()}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",47),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",48)(7,"div",49)(8,"span",50),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",51),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,te,11,9,"div",52),d.qZA()()()}if(2&ue){const Le=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==Le.invoice?null:Le.invoice.htlcs)}}function be(ue,ve){1&ue&&d._UZ(0,"mat-divider",22),2&ue&&d.Q6J("inset",!0)}function Z(ue,ve){if(1&ue&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",22),d.TgZ(2,"div",17)(3,"div",23)(4,"h4",19),d._uU(5,"Preimage"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",22),d.TgZ(9,"div",17)(10,"div",43)(11,"h4",19),d._uU(12,"State"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()(),d.TgZ(15,"div",44)(16,"h4",19),d._uU(17,"Expiry"),d.qZA(),d.TgZ(18,"span",24),d._uU(19),d.qZA()(),d.TgZ(20,"div",44)(21,"h4",19),d._uU(22,"Private Routing Hints"),d.qZA(),d.TgZ(23,"span",24),d._uU(24),d.qZA()()(),d._UZ(25,"mat-divider",22),d.YNc(26,ze,14,2,"div",45),d.YNc(27,be,1,1,"mat-divider",14),d.qZA()),2&ue){const Le=d.oxw();d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==Le.invoice?null:Le.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==Le.invoice?null:Le.invoice.state),d.xp6(5),d.Oqu(null==Le.invoice?null:Le.invoice.expiry),d.xp6(5),d.Oqu(null!=Le.invoice&&Le.invoice.private?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0)}}function Y(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"div",62)(1,"button",63),d.NdJ("click",function(){return d.CHM(Le),d.oxw().onScrollDown()}),d.TgZ(2,"mat-icon",64),d._uU(3,"arrow_downward"),d.qZA()()()}}function ot(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ie(ue,ve){1&ue&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function Ae(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",65),d.NdJ("copied",function(ht){return d.CHM(Le),d.oxw().onCopyPayment(ht)}),d._uU(1),d.qZA()}if(2&ue){const Le=d.oxw();d.Q6J("payload",null==Le.invoice?null:Le.invoice.payment_request),d.xp6(1),d.Oqu(Le.screenSize===Le.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ce(ue,ve){if(1&ue){const Le=d.EpF();d.TgZ(0,"button",66),d.NdJ("click",function(){return d.CHM(Le),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Te=function(ue){return{"display-none":ue}},xe=function(ue){return{"xs-scroll-y":ue}},G=function(ue){return{"h-50":ue}};let ee=(()=>{class ue{constructor(Le,lt,ht,Tt,hi,jt){this.dialogRef=Le,this.data=lt,this.logger=ht,this.commonService=Tt,this.snackBar=hi,this.store=jt,this.faReceipt=i.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}set container(Le){Le&&(this.scrollContainer=Le)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(y.Q5).pipe((0,b.R)(this.unSubs[0])).subscribe(lt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(lt.version,"0.11.0")});const Le=JSON.parse(JSON.stringify(this.invoice));this.store.select(y.Ef).pipe((0,b.R)(this.unSubs[1])).subscribe(lt=>{var ht,Tt,hi;const jt=null===(ht=this.invoice)||void 0===ht?void 0:ht.state,di=(lt.listInvoices.invoices||[]).find(vt=>vt.r_hash===Le.r_hash)||null;this.invoice=di,jt!==(null===(Tt=this.invoice)||void 0===Tt?void 0:Tt.state)&&"SETTLED"===(null===(hi=this.invoice)||void 0===hi?void 0:hi.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(lt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(Le){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Le)}getDecimalFormat(Le){return Le.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Le=>{Le.next(null),Le.complete()})}}return ue.\u0275fac=function(Le){return new(Le||ue)(d.Y36(e.so),d.Y36(e.WI),d.Y36(P.mQ),d.Y36(D.v),d.Y36(T.ux),d.Y36(M.yh))},ue.\u0275cmp=d.Xpm({type:ue,selectors:[["rtl-invoice-information"]],viewQuery:function(Le,lt){if(1&Le&&d.Gf(x,5),2&Le){let ht;d.iGM(ht=d.CRH())&&(lt.container=ht.first)}},decls:78,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Le,lt){if(1&Le&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,t,1,3,"qr-code",2),d.YNc(3,r,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return lt.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,h,1,3,"qr-code",2),d.YNc(16,c,2,0,"span",13),d.qZA(),d.YNc(17,C,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,S,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,V,3,2,"ng-container",21),d.YNc(33,$,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,Z,28,9,"div",21),d.qZA()()(),d.YNc(70,Y,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return lt.onShowAdvanced()}),d.YNc(73,ot,2,0,"p",28),d.YNc(74,Ie,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,Ae,2,2,"button",30),d.YNc(77,ce,2,0,"button",31),d.qZA()()()),2&Le){const ht=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,Te,lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(4),d.Q6J("icon",lt.faReceipt),d.xp6(2),d.Oqu(lt.screenSize===lt.screenSizeEnum.XS?lt.newlyAdded?"Created":"Invoice":lt.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,xe,lt.screenSize===lt.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=lt.invoice&<.invoice.payment_request&&""!==(null==lt.invoice?null:lt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,Te,lt.screenSize!==lt.screenSizeEnum.XS&<.screenSize!==lt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",lt.screenSize===lt.screenSizeEnum.XS||lt.screenSize===lt.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,G,(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced)),d.xp6(5),d.Oqu(lt.screenSize===lt.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==lt.invoice?null:lt.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=lt.invoice&<.invoice.value)||"0"===(null==lt.invoice?null:lt.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.amt_paid_sat)&&"OPEN"!==(null==lt.invoice?null:lt.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&<.invoice.amt_paid_sat)||"0"===(null==lt.invoice?null:lt.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==lt.invoice?null:lt.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==lt.invoice?null:lt.invoice.settle_date)?d.xi3(47,38,1e3*+(null==lt.invoice?null:lt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==lt.invoice?null:lt.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==lt.invoice?null:lt.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==lt.invoice?null:lt.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",lt.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.htlcs)&&(null==lt.invoice?null:lt.invoice.htlcs.length)>0&<.showAdvanced&<.flgOpened),d.xp6(3),d.Q6J("ngIf",!lt.showAdvanced)("ngIfElse",ht),d.xp6(3),d.Q6J("ngIf",(null==lt.invoice?null:lt.invoice.payment_request)&&""!==(null==lt.invoice?null:lt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=lt.invoice&<.invoice.payment_request)||""===(null==lt.invoice?null:lt.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.uU,z.dk,U.BN,W.lW,z.dn,ne.d,Q.$V,E.sg,le.Ou,q.ib,q.yz,q.yK,ie.gM,se.Hw,J.h,me.y],pipes:[E.JJ,E.uU],styles:[""]}),ue})()},8878:(He,j,p)=>{"use strict";p.d(j,{g:()=>i});var e=p(1777);const i=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},1786:(He,j,p)=>{"use strict";p.d(j,{H:()=>M});var e=p(8966),i=p(5e3),u=p(5043),b=p(7093),a=p(9224),y=p(7423),d=p(9808),P=p(4834),D=p(3390);function T(A,E){if(1&A&&(i.TgZ(0,"p",14),i._uU(1),i.qZA()),2&A){const k=i.oxw();i.xp6(1),i.Oqu(k.data.titleMessage)}}let M=(()=>{class A{constructor(k,w,z){this.dialogRef=k,this.data=w,this.logger=z,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return A.\u0275fac=function(k){return new(k||A)(i.Y36(e.so),i.Y36(e.WI),i.Y36(u.mQ))},A.\u0275cmp=i.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,w){1&k&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return w.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7),i.YNc(10,T,2,1,"p",8),i.TgZ(11,"h4",9),i._uU(12,"Error Code"),i.qZA(),i.TgZ(13,"span"),i._uU(14),i.qZA(),i._UZ(15,"mat-divider",10),i.TgZ(16,"h4",9),i._uU(17,"Error Message"),i.qZA(),i.TgZ(18,"span",11),i._uU(19),i.qZA(),i._UZ(20,"mat-divider",10),i.TgZ(21,"h4",9),i._uU(22,"API URL"),i.qZA(),i.TgZ(23,"span",11),i._uU(24),i.qZA(),i._UZ(25,"mat-divider",10),i.TgZ(26,"div",12)(27,"button",13),i._uU(28,"OK"),i.qZA()()()()()()),2&k&&(i.xp6(5),i.Oqu(w.data.alertTitle||"ERROR"),i.xp6(5),i.Q6J("ngIf",w.data.titleMessage),i.xp6(4),i.Oqu(w.data.message.code),i.xp6(5),i.Oqu(w.errorMessage),i.xp6(5),i.Oqu(w.data.message.URL),i.xp6(3),i.Q6J("mat-dialog-close",!1))},directives:[b.xw,b.yH,a.dk,b.Wh,y.lW,a.dn,d.O5,P.d,D.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(He,j,p)=>{"use strict";p.d(j,{w:()=>P});var e=p(801),i=p(5e3),u=p(1402),b=p(7093),a=p(9444),y=p(9224),d=p(7423);let P=(()=>{class D{constructor(M){this.router=M,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return D.\u0275fac=function(M){return new(M||D)(i.Y36(u.F0))},D.\u0275cmp=i.Xpm({type:D,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(M,A){1&M&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Page Not Found"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),i._uU(9,"This page does not exist!"),i.qZA(),i.TgZ(10,"span",7)(11,"button",8),i.NdJ("click",function(){return A.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()()),2&M&&(i.xp6(1),i.Q6J("icon",A.faTimes))},directives:[b.xw,b.Wh,a.BN,y.a8,y.dn,b.yH,d.lW],encapsulation:2}),D})()},3390:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(e.SBq))},u.\u0275dir=e.lG2({type:u,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),u})()},6895:(He,j,p)=>{"use strict";p.d(j,{y:()=>i});var e=p(5e3);let i=(()=>{class u{constructor(){this.copied=new e.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},y=>{this.copied.emit("Error could not copy text: "+JSON.stringify(y))})}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275dir=e.lG2({type:u,selectors:[["","rtlClipboard",""]],hostBindings:function(a,y){1&a&&e.NdJ("click",function(P){return y.onClick(P)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),u})()},9843:(He,j,p)=>{"use strict";p.d(j,{F:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.max?e.kI.max(+this.max)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","max",""]],inputs:{max:"max"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},6534:(He,j,p)=>{"use strict";p.d(j,{q:()=>u});var e=p(3075),i=p(5e3);let u=(()=>{class b{validate(y){return this.min?e.kI.min(+this.min)(y):null}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=i.lG2({type:b,selectors:[["input","min",""]],inputs:{min:"min"},features:[i._Bn([{provide:e.Cf,useExisting:b,multi:!0}])]}),b})()},1643:(He,j,p)=>{"use strict";p.d(j,{QM:()=>y,a1:()=>a,eQ:()=>d,fY:()=>P});var e=p(4004),i=p(5e3),u=p(1402),b=p(5986);let a=(()=>{class D{constructor(M,A){this.router=M,this.sessionService=A}canActivate(M){return!(!this.sessionService.getItem("token")||"settings"!==M.url[0].path&&"auth"!==M.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(u.F0),i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),y=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.lndUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),d=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.clUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})(),P=(()=>{class D{constructor(M){this.sessionService=M}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(M=>M.eclUnlocked))}}return D.\u0275fac=function(M){return new(M||D)(i.LFG(b.m))},D.\u0275prov=i.Yz7({token:D,factory:D.\u0275fac}),D})()},2218:(He,j,p)=>{"use strict";p.d(j,{X:()=>U});var e=p(1135),i=p(7579),u=p(9646),b=p(2843),a=p(2722),y=p(262),d=p(4004),P=p(2340),D=p(1786),T=p(7731),M=p(7861),A=p(5e3),E=p(8138),k=p(5043),w=p(5620),z=p(62);let U=(()=>{class W{constructor(Q,le,q,ie){this.httpClient=Q,this.logger=le,this.store=q,this.commonService=ie,this.swapUrl="",this.swaps={},this.swapsChanged=new e.X({}),this.unSubs=[new i.x,new i.x,new i.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,M.ac)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[0])).subscribe({next:Q=>{this.store.dispatch((0,M.uO)({payload:T.m6.GET_BOLTZ_SWAPS})),this.swaps=Q,this.swapsChanged.next(this.swaps)},error:Q=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_BOLTZ_SWAPS,this.swapUrl,Q))})}swapInfo(Q){return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/swapInfo/"+Q,this.httpClient.get(this.swapUrl).pipe((0,y.K)(le=>(0,u.of)(this.handleErrorWithAlert(T.m6.NO_SPINNER,this.swapUrl,le))))}serviceInfo(){return this.store.dispatch((0,M.ac)({payload:T.m6.GET_SERVICE_INFO})),this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,a.R)(this.unSubs[1]),(0,d.U)(Q=>(this.store.dispatch((0,M.uO)({payload:T.m6.GET_SERVICE_INFO})),Q)),(0,y.K)(Q=>(0,u.of)(this.handleErrorWithAlert(T.m6.GET_SERVICE_INFO,this.swapUrl,Q))))}swapOut(Q,le){const q={amount:Q,address:le};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,q).pipe((0,y.K)(ie=>this.handleErrorWithoutAlert("Swap Out for Address: "+le,T.m6.NO_SPINNER,ie)))}swapIn(Q){const le={amount:Q};return this.swapUrl=P.T5+P.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,le).pipe((0,y.K)(q=>this.handleErrorWithoutAlert("Swap In for Amount: "+Q,T.m6.NO_SPINNER,q)))}handleErrorWithoutAlert(Q,le,q){let ie="";return this.logger.error("ERROR IN: "+Q+"\n"+JSON.stringify(q)),this.store.dispatch((0,M.uO)({payload:le})),401===q.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())):503===q.status?(ie="Unable to Connect to Boltz Server.",this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:Q},component:D.H}}}))):ie=this.commonService.extractErrorMessage(q),(0,b._)(()=>new Error(ie))}handleErrorWithAlert(Q,le,q){let ie="";if(401===q.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)())),this.logger.error(q),this.store.dispatch((0,M.uO)({payload:Q})),401===q.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,M.kS)());else if(503===q.status)ie="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:q.status,message:"Unable to Connect to Boltz Server",URL:le},component:D.H}}}))},100);else{ie=this.commonService.extractErrorMessage(q);const se=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,M.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:le},component:D.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(Q=>{Q.next(null),Q.complete()})}}return W.\u0275fac=function(Q){return new(Q||W)(A.LFG(E.eN),A.LFG(k.mQ),A.LFG(w.yh),A.LFG(z.v))},W.\u0275prov=A.Yz7({token:W,factory:W.\u0275fac}),W})()},62:(He,j,p)=>{"use strict";p.d(j,{v:()=>M});var e=p(1135),i=p(9646),u=p(2843),b=p(5698),a=p(4004),y=p(262),d=p(7731),P=p(5e3),D=p(8104),T=p(5043);let M=(()=>{class A{constructor(k,w){this.dataService=k,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,w){this.containerSize={width:k,height:w},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,w,z,U="asc"){return k.sort("number"===z?"desc"===U?(W,ne)=>+W[w]>+ne[w]?-1:1:(W,ne)=>+W[w]>+ne[w]?1:-1:"desc"===U?(W,ne)=>W[w]>ne[w]?-1:1:(W,ne)=>W[w]>ne[w]?1:-1)}sortDescByKey(k,w){return k.sort((z,U)=>{const W=+z[w],ne=+U[w];return W>ne?-1:W{const W=+z[w],ne=+U[w];return Wne?1:0})}camelCase(k){var w,z;return null===(z=null===(w=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(U,W)=>U.toUpperCase()))||void 0===w?void 0:w.replace(/\s+/g,""))||void 0===z?void 0:z.replace(/-/g," ")}titleCase(k,w,z){var U,W;return w&&z&&""!==w&&""!==z&&(k=null==k?void 0:k.replace(new RegExp(w,"g"),z)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(U=k.split("\n"))||void 0===U?void 0:U.reduce((ne,Q)=>ne+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(W=k.split(" "))||void 0===W?void 0:W.reduce((ne,Q)=>ne+Q.charAt(0).toUpperCase()+Q.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,w,z,U,W){const ne=(new Date).valueOf();return W&&U&&this.ratesAPIStatus!==d.Bn.INITIATED&&(w===d.NT.OTHER||z===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ne(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=Q&&"object"==typeof Q?Q:Q&&"string"==typeof Q?JSON.parse(Q):{},this.conversionData.last_fetched=ne,this.convertWithFiat(k,w,U))),(0,y.K)(Q=>(this.ratesAPIStatus=d.Bn.ERROR,(0,u._)(()=>this.extractErrorMessage(Q,"Currency Conversion Error.")))))):(0,i.of)(this.convertWithoutFiat(k,w))}convertWithoutFiat(k,w){const z={};switch(z[d.NT.SATS]=0,z[d.NT.BTC]=0,w){case d.NT.SATS:z[d.NT.SATS]=k,z[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:z[d.NT.SATS]=1e8*k,z[d.NT.BTC]=k}return z}convertWithFiat(k,w,z){const U={unit:z,symbol:this.conversionData.data[z].symbol};switch(U[d.NT.SATS]=0,U[d.NT.BTC]=0,U[d.NT.OTHER]=0,w){case d.NT.SATS:U[d.NT.SATS]=k,U[d.NT.BTC]=1e-8*k,U[d.NT.OTHER]=1e-8*k*this.conversionData.data[z].last;break;case d.NT.BTC:U[d.NT.SATS]=1e8*k,U[d.NT.BTC]=k,U[d.NT.OTHER]=k*this.conversionData.data[z].last;break;case d.NT.OTHER:U[d.NT.SATS]=k/this.conversionData.data[z].last*1e8,U[d.NT.BTC]=k/this.conversionData.data[z].last,U[d.NT.OTHER]=k}return U}convertTime(k,w,z){switch(w){case d.Qk.SECS:switch(z){case d.Qk.MINS:k/=60;break;case d.Qk.HOURS:k/=3600;break;case d.Qk.DAYS:k/=86400}break;case d.Qk.MINS:switch(z){case d.Qk.SECS:k*=60;break;case d.Qk.HOURS:k/=60;break;case d.Qk.DAYS:k/=1440}break;case d.Qk.HOURS:switch(z){case d.Qk.SECS:k*=3600;break;case d.Qk.MINS:k*=60;break;case d.Qk.DAYS:k/=24}break;case d.Qk.DAYS:switch(z){case d.Qk.SECS:k=3600*k*24;break;case d.Qk.MINS:k=60*k*24;break;case d.Qk.HOURS:k*=24}}return k}downloadFile(k,w,z=".json",U=".csv"){let W=new Blob;W=".json"===z?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ne=document.createElement("a"),Q=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ne.setAttribute("target","_blank"),ne.setAttribute("href",Q),ne.setAttribute("download",w+U),ne.style.visibility="hidden",document.body.appendChild(ne),ne.click(),document.body.removeChild(ne)}convertToCSV(k){const w=[];let z="",U="",W="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((Q,le)=>{for(const q in Q)w.findIndex(ie=>ie===q)<0&&w.push(q)}),W=w.join(",")+"\r\n",k.forEach(Q=>{z="",w.forEach(le=>{var q;Q.hasOwnProperty(le)?Array.isArray(Q[le])?(U="",Q[le].forEach((ie,se)=>{var J;U+="object"==typeof ie?"("+(null===(J=JSON.stringify(ie))||void 0===J?void 0:J.replace(/\,/g,";"))+")":"("+ie+")"}),z+=U+","):z+="object"==typeof Q[le]?(null===(q=JSON.stringify(Q[le]))||void 0===q?void 0:q.replace(/\,/g,";"))+",":Q[le]+",":z+=","}),W+=z.slice(0,-1)+"\r\n"}),W}isVersionCompatible(k,w){var z;if(k){const U=(null===(z=k.trim())||void 0===z?void 0:z.replace("v","").split("-")[0].split("."))||[],W=w.split(".");return+U[0]>+W[0]||+U[0]==+W[0]&&+U[1]>+W[1]||+U[0]==+W[0]&&+U[1]==+W[1]&&+U[2]>=+W[2]}return!1}extractErrorMessage(k,w="Unknown Error."){const z=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:w);return this.logger.info("Error Message: "+z),z}extractErrorCode(k,w=500){const z=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:w;return this.logger.info("Error Code: "+z),z}extractErrorNumber(k,w=500){const z=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:w;return this.logger.info("Error Number: "+z),z}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(k){return new(k||A)(P.LFG(D.D),P.LFG(T.mQ))},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(He,j,p)=>{"use strict";p.d(j,{$I:()=>r,$v:()=>k,AB:()=>ye,Bn:()=>n,Df:()=>Ee,Dr:()=>T,Er:()=>a,Fq:()=>t,Gi:()=>q,HW:()=>se,H_:()=>te,IV:()=>d,IX:()=>V,JX:()=>I,LO:()=>y,NT:()=>le,OJ:()=>ne,OO:()=>Z,Qk:()=>Q,Qw:()=>c,TJ:()=>P,Vc:()=>M,Xr:()=>H,Xz:()=>b,Zs:()=>x,_t:()=>D,cu:()=>ie,fO:()=>R,g8:()=>z,gB:()=>be,gg:()=>C,hZ:()=>ze,hc:()=>h,kO:()=>_,lr:()=>ke,m6:()=>g,nM:()=>w,n_:()=>W,ol:()=>U,op:()=>S,p7:()=>me,pg:()=>$,pt:()=>i,uA:()=>u,uR:()=>fe,vn:()=>A,wZ:()=>E,x$:()=>J});var e=p(6087);function i(Y){const ot=new e.ye;return ot.itemsPerPageLabel=Y+" per page:",ot}const u=["Sats","BTC"],b={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],y=["SECS","MINS","HOURS","DAYS"],d=10,P=[5,10,25,100],D=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],T=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],M=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var k=(()=>{return(Y=k||(k={})).PAYMENT_RECEIVED="payment-received",Y.PAYMENT_RELAYED="payment-relayed",Y.PAYMENT_SENT="payment-sent",Y.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Y.PAYMENT_FAILED="payment-failed",Y.CHANNEL_OPENED="channel-opened",Y.CHANNEL_STATE_CHANGED="channel-state-changed",Y.CHANNEL_CLOSED="channel-closed",k;var Y})(),w=(()=>{return(Y=w||(w={})).INVOICE="invoice",Y.BLOCK_HEIGHT="block-height",Y.SEND_PAYMENT="send-payment",w;var Y})(),z=(()=>((z||(z={})).INVOICE="invoice",z))(),U=(()=>{return(Y=U||(U={})).OPERATOR="OPERATOR",Y.MERCHANT="MERCHANT",Y.ALL="ALL",U;var Y})(),W=(()=>{return(Y=W||(W={})).INFORMATION="Information",Y.WARNING="Warning",Y.ERROR="Error",Y.SUCCESS="Success",Y.CONFIRM="Confirm",W;var Y})(),ne=(()=>{return(Y=ne||(ne={})).JWT="JWT",Y.PASSWORD="PASSWORD",ne;var Y})(),Q=(()=>{return(Y=Q||(Q={})).SECS="SECS",Y.MINS="MINS",Y.HOURS="HOURS",Y.DAYS="DAYS",Q;var Y})(),le=(()=>{return(Y=le||(le={})).SATS="Sats",Y.BTC="BTC",Y.OTHER="OTHER",le;var Y})(),q=(()=>{return(Y=q||(q={})).ARRAY="ARRAY",Y.NUMBER="NUMBER",Y.STRING="STRING",Y.BOOLEAN="BOOLEAN",Y.PASSWORD="PASSWORD",Y.DATE="DATE",Y.DATE_TIME="DATE_TIME",q;var Y})(),ie=(()=>{return(Y=ie||(ie={})).XS="XS",Y.SM="SM",Y.MD="MD",Y.LG="LG",Y.XL="XL",ie;var Y})();const se={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},J={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var me=(()=>{return(Y=me||(me={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Y.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Y.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Y.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Y.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Y.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Y.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Y.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Y.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Y.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Y.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Y.WIRE_CHANNEL_DISABLED="Channel Disabled",Y.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Y.WIRE_INVALID_REALM="Invalid Realm",Y.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Y.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Y.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Y.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Y.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Y.WIRE_MPP_TIMEOUT="MPP Timeout",Y.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Y.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",me;var Y})(),x=(()=>{return(Y=x||(x={})).CHANNELD_NORMAL="Active",Y.OPENINGD="Opening",Y.CHANNELD_AWAITING_LOCKIN="Pending Open",Y.CHANNELD_SHUTTING_DOWN="Shutting Down",Y.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Y.CLOSINGD_COMPLETE="Closed",Y.AWAITING_UNILATERAL="Awaiting Unilateral Close",Y.FUNDING_SPEND_SEEN="Funding Spend Seen",Y.ONCHAIN="Onchain",Y.DUALOPEND_OPEN_INIT="Dual Open Initialized",Y.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var Y})(),t=(()=>{return(Y=t||(t={})).INITIATED="Initiated",Y.PREIMAGE_REVEALED="Preimage Revealed",Y.HTLC_PUBLISHED="HTLC Published",Y.SUCCESS="Successful",Y.FAILED="Failed",Y.INVOICE_SETTLED="Invoice Settled",t;var Y})(),r=(()=>{return(Y=r||(r={})).LOOP_OUT="LOOP_OUT",Y.LOOP_IN="LOOP_IN",r;var Y})(),h=(()=>{return(Y=h||(h={})).SWAP_OUT="SWAP_OUT",Y.SWAP_IN="SWAP_IN",h;var Y})(),c=(()=>{return(Y=c||(c={}))["swap.created"]="Swap Created",Y["swap.expired"]="Swap Expired",Y["invoice.set"]="Invoice Set",Y["invoice.paid"]="Invoice Paid",Y["invoice.pending"]="Invoice Pending",Y["invoice.settled"]="Invoice Settled",Y["invoice.failedToPay"]="Invoice Failed To Pay",Y["channel.created"]="Channel Created",Y["transaction.failed"]="Transaction Failed",Y["transaction.mempool"]="Transaction Mempool",Y["transaction.claimed"]="Transaction Claimed",Y["transaction.refunded"]="Transaction Refunded",Y["transaction.confirmed"]="Transaction Confirmed",Y["swap.refunded"]="Swap Refunded",Y["swap.abandoned"]="Swap Abandoned",c;var Y})();const C=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],S=["MONTHLY","YEARLY"];var I=(()=>{return(Y=I||(I={})).LOOP="LOOP",Y.BOLTZ="BOLTZ",Y.OFFERS="OFFERS",Y.PEERSWAP="PEERSWAP",I;var Y})();const _=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(Y=n||(n={})).UN_INITIATED="UN_INITIATED",Y.INITIATED="INITIATED",Y.COMPLETED="COMPLETED",Y.ERROR="ERROR",n;var Y})();const g={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",PEERSWAP_SWAPOUT:"Initializing Swapout...",PEERSWAP_SWAPIN:"Initializing Swapin...",LOG_OUT:"Logging Out..."};var V=(()=>{return(Y=V||(V={})).INVOICE="INVOICE",Y.OFFER="OFFER",Y.KEYSEND="KEYSEND",V;var Y})(),R=(()=>{return(Y=R||(R={})).SWAP_OUT="swap-out",Y.SWAP_IN="swap-in",R;var Y})(),H=(()=>{return(Y=H||(H={})).FEES="FEES",Y.EVENTS="EVENTS",H;var Y})(),$=(()=>{return(Y=$||($={})).VOID="VOID",Y.SET_API_URL_ECL="SET_API_URL_ECL",Y.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Y.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Y.RESET_ROOT_STORE="RESET_ROOT_STORE",Y.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Y.OPEN_SNACK_BAR="OPEN_SNACKBAR",Y.OPEN_SPINNER="OPEN_SPINNER",Y.CLOSE_SPINNER="CLOSE_SPINNER",Y.OPEN_ALERT="OPEN_ALERT",Y.CLOSE_ALERT="CLOSE_ALERT",Y.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Y.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Y.SHOW_PUBKEY="SHOW_PUBKEY",Y.FETCH_CONFIG="FETCH_CONFIG",Y.SHOW_CONFIG="SHOW_CONFIG",Y.FETCH_STORE="FETCH_STORE",Y.SET_STORE="SET_STORE",Y.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Y.SET_RTL_CONFIG="SET_RTL_CONFIG",Y.SAVE_SSO="SAVE_SSO",Y.SAVE_SETTINGS="SAVE_SETTINGS",Y.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Y.SET_SELECTED_NODE="SET_SELECTED_NODE",Y.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Y.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Y.SET_NODE_DATA="SET_NODE_DATA",Y.IS_AUTHORIZED="IS_AUTHORIZED",Y.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Y.LOGIN="LOGIN",Y.VERIFY_TWO_FA="VERIFY_TWO_FA",Y.LOGOUT="LOGOUT",Y.RESET_PASSWORD="RESET_PASSWORD",Y.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Y.FETCH_FILE="FETCH_FILE",Y.SHOW_FILE="SHOW_FILE",$;var Y})(),fe=(()=>{return(Y=fe||(fe={})).RESET_LND_STORE="RESET_LND_STORE",Y.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Y.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Y.FETCH_INFO_LND="FETCH_INFO_LND",Y.SET_INFO_LND="SET_INFO_LND",Y.FETCH_PEERS_LND="FETCH_PEERS_LND",Y.SET_PEERS_LND="SET_PEERS_LND",Y.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Y.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Y.DETACH_PEER_LND="DETACH_PEER_LND",Y.REMOVE_PEER_LND="REMOVE_PEER_LND",Y.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Y.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Y.ADD_INVOICE_LND="ADD_INVOICE_LND",Y.FETCH_FEES_LND="FETCH_FEES_LND",Y.SET_FEES_LND="SET_FEES_LND",Y.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Y.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Y.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Y.SET_NETWORK_LND="SET_NETWORK_LND",Y.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Y.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Y.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Y.SET_CHANNELS_LND="SET_CHANNELS_LND",Y.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Y.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Y.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Y.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Y.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Y.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Y.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Y.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Y.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Y.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Y.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Y.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Y.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Y.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Y.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Y.SET_INVOICES_LND="SET_INVOICES_LND",Y.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Y.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Y.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Y.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Y.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Y.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Y.SET_UTXOS_LND="SET_UTXOS_LND",Y.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Y.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Y.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Y.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Y.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Y.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Y.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Y.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Y.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Y.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Y.GEN_SEED_LND="GEN_SEED_LND",Y.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Y.INIT_WALLET_LND="INIT_WALLET_LND",Y.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Y.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Y.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Y.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Y.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Y.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Y.SET_LOOKUP_LND="SET_LOOKUP_LND",Y.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Y.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Y.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Y.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Y.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Y.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",fe;var Y})(),ye=(()=>{return(Y=ye||(ye={})).RESET_CLN_STORE="RESET_CLN_STORE",Y.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Y.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Y.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Y.SET_INFO_CLN="SET_INFO_CLN",Y.FETCH_FEES_CLN="FETCH_FEES_CLN",Y.SET_FEES_CLN="SET_FEES_CLN",Y.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Y.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Y.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Y.SET_BALANCE_CLN="SET_BALANCE_CLN",Y.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Y.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Y.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Y.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Y.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Y.SET_UTXOS_CLN="SET_UTXOS_CLN",Y.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Y.SET_PEERS_CLN="SET_PEERS_CLN",Y.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Y.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Y.ADD_PEER_CLN="ADD_PEER_CLN",Y.DETACH_PEER_CLN="DETACH_PEER_CLN",Y.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Y.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Y.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Y.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Y.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Y.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Y.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Y.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Y.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Y.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Y.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Y.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Y.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Y.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Y.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Y.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Y.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Y.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Y.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Y.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Y.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Y.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Y.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Y.SET_INVOICES_CLN="SET_INVOICES_CLN",Y.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Y.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Y.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Y.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Y.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Y.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Y.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Y.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Y.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Y.SET_OFFERS_CLN="SET_OFFERS_CLN",Y.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Y.ADD_OFFER_CLN="ADD_OFFER_CLN",Y.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Y.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Y.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Y.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Y.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Y.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Y.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Y.FETCH_SWAPS_CLN="FETCH_SWAPS_CLN",Y.SET_SWAPS_CLN="SET_SWAPS_CLN",Y.FETCH_SWAP_PEERS_CLN="FETCH_SWAP_PEERS_CLN",Y.SET_SWAP_PEERS_CLN="SET_SWAP_PEERS_CLN",Y.FETCH_SWAP_REQUESTS_CLN="FETCH_SWAP_REQUESTS_CLN",Y.SET_SWAP_REQUESTS_CLN="SET_SWAP_REQUESTS_CLN",Y.SWAPOUT_CLN="SWAPOUT_CLN",Y.ADD_SWAPOUT_CLN="ADD_SWAPOUT_CLN",Y.SWAPIN_CLN="SWAPIN_CLN",Y.ADD_SWAPIN_CLN="ADD_SWAPIN_CLN",ye;var Y})(),ke=(()=>{return(Y=ke||(ke={})).RESET_ECL_STORE="RESET_ECL_STORE",Y.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Y.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Y.FETCH_INFO_ECL="FETCH_INFO_ECL",Y.SET_INFO_ECL="SET_INFO_ECL",Y.FETCH_FEES_ECL="FETCH_FEES_ECL",Y.SET_FEES_ECL="SET_FEES_ECL",Y.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Y.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Y.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Y.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Y.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Y.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Y.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Y.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Y.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Y.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Y.SET_PEERS_ECL="SET_PEERS_ECL",Y.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Y.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Y.ADD_PEER_ECL="ADD_PEER_ECL",Y.DETACH_PEER_ECL="DETACH_PEER_ECL",Y.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Y.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Y.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Y.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Y.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Y.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Y.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Y.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Y.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Y.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Y.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Y.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Y.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Y.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Y.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Y.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Y.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Y.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Y.SET_INVOICES_ECL="SET_INVOICES_ECL",Y.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Y.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Y.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Y.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Y.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Y.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Y.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Y.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Y.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",ke;var Y})();const Ee=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var te=(()=>{return(Y=te||(te={})).gossip_queries_ex="Gossip queries including additional information",Y.option_anchor_outputs="Anchor outputs",Y.option_data_loss_protect="Extra channel re-establish fields",Y.var_onion_optin="Variable-length routing onion payloads",Y.option_static_remotekey="Static key for remote output",Y.option_support_large_channel="Create large channels",Y.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.payment_secret="Payment secret field",Y.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Y.basic_mpp="Basic multi-part payments",Y.gossip_queries="More sophisticated gossip control",Y.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Y.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",te;var Y})(),ze=(()=>{return(Y=ze||(ze={}))["data-loss-protect"]="Extra channel re-establish fields",Y["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Y["gossip-queries"]="More sophisticated gossip control",Y["tlv-onion"]="Variable-length routing onion payloads",Y["ext-gossip-queries"]="Gossip queries can include additional information",Y["static-remote-key"]="Static key for remote output",Y["payment-addr"]="Payment secret field",Y["multi-path-payments"]="Basic multi-part payments",Y["wumbo-channels"]="Wumbo Channels",Y.anchors="Anchor outputs",Y["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Y.amp="AMP",ze;var Y})();const be=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var Z=(()=>{return(Y=Z||(Z={})).OFFERED="offered",Y.SETTLED="settled",Y.FAILED="failed",Y.LOCAL_FAILED="local_failed",Z;var Y})()},8104:(He,j,p)=>{"use strict";p.d(j,{D:()=>se});var e=p(8138),i=p(1135),u=p(7579),b=p(2843),a=p(9646),y=p(590),d=p(5577),P=p(2722),D=p(4004),T=p(262),M=p(1365),A=p(2340),E=p(7731),k=p(1786),w=p(7861),z=p(6523),U=p(6529),W=p(9828),ne=p(5e3),Q=p(5620),le=p(5043),q=p(7261),ie=p(9808);let se=(()=>{class J{constructor(x,t,r,h,c){this.httpClient=x,this.store=t,this.logger=r,this.snackBar=h,this.titleCasePipe=c,this.APIUrl=A.T5,this.lnImplementation="",this.lnImplementationUpdated=new i.X(null),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x,new u.x],this.mapAliases=(C,S)=>(C&&C.length>0?C.forEach((I,_)=>{var n;if(S&&S.length>0)for(let g=0;gnull!==r),(0,d.z)(r=>{let h=this.APIUrl+"/"+r+A.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(h=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,w.ac)({payload:E.m6.DECODE_PAYMENT})),this.httpClient.get(h).pipe((0,P.R)(this.unSubs[0]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.DECODE_PAYMENT})),c)),(0,T.K)(c=>(t?this.handleErrorWithoutAlert("Decode Payment",E.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",E.m6.DECODE_PAYMENT,"Decode Payment Failed",h,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>{let r="",h="";return"ecl"===t?(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API+"/getsentinfos",h=E.m6.GET_SENT_PAYMENTS):"cln"===t?(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API,h=E.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+t+A.NZ.PAYMENTS_API,h=E.m6.DECODE_PAYMENTS),this.store.dispatch((0,w.ac)({payload:h})),this.httpClient.post(r,{payments:x}).pipe((0,P.R)(this.unSubs[1]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:h})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",h,h+" Failed",r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{if(t){const h=(new e.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/nodes",{params:h})}return this.httpClient.get(this.APIUrl+"/"+r+A.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>{let r=this.APIUrl+"/"+t+A.NZ.MESSAGE_API+"/sign";return"cln"===t&&(r=this.APIUrl+"/"+t+A.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,w.ac)({payload:E.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,P.R)(this.unSubs[2]),(0,D.U)(h=>(this.store.dispatch((0,w.uO)({payload:E.m6.SIGN_MESSAGE})),h)),(0,T.K)(h=>(this.handleErrorWithAlert("signMessageData",E.m6.SIGN_MESSAGE,"Sign Message Failed",r,h),(0,b._)(()=>new Error(this.extractErrorMessage(h))))))}))}verifyMessage(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{let h=this.APIUrl+"/"+r+A.NZ.MESSAGE_API+"/verify";return"cln"===r&&(h=this.APIUrl+"/"+r+A.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,w.ac)({payload:E.m6.VERIFY_MESSAGE})),this.httpClient.post(h,{message:x,signature:t}).pipe((0,P.R)(this.unSubs[3]),(0,D.U)(c=>(this.store.dispatch((0,w.uO)({payload:E.m6.VERIFY_MESSAGE})),c)),(0,T.K)(c=>(this.handleErrorWithAlert("verifyMessageData",E.m6.VERIFY_MESSAGE,"Verify Message Failed",h,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,t,r,h){return this.lnImplementationUpdated.pipe((0,y.P)(c=>null!==c),(0,d.z)(c=>{const C={txid:x,outputIndex:t};return r&&(C.targetConf=r),h&&(C.satPerByte=h),this.store.dispatch((0,w.ac)({payload:E.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+A.NZ.WALLET_API+"/bumpfee",C).pipe((0,P.R)(this.unSubs[4]),(0,D.U)(S=>(this.store.dispatch((0,w.uO)({payload:E.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),S)),(0,T.K)(S=>(this.handleErrorWithoutAlert("Bump Fee",E.m6.BUMP_FEE,S),(0,b._)(()=>new Error(this.extractErrorMessage(S))))))}))}labelUTXO(x,t,r=!0){return this.lnImplementationUpdated.pipe((0,y.P)(h=>null!==h),(0,d.z)(h=>{const c={txid:x,label:t,overwrite:r};return this.store.dispatch((0,w.ac)({payload:E.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+h+A.NZ.WALLET_API+"/label",c).pipe((0,P.R)(this.unSubs[5]),(0,D.U)(C=>(this.store.dispatch((0,w.uO)({payload:E.m6.LABEL_UTXO})),C)),(0,T.K)(C=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LABEL_UTXO,C),(0,b._)(()=>new Error(this.extractErrorMessage(C))))))}))}leaseUTXO(x,t){return this.lnImplementationUpdated.pipe((0,y.P)(r=>null!==r),(0,d.z)(r=>{const h={txid:x,outputIndex:t};return this.store.dispatch((0,w.ac)({payload:E.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+A.NZ.WALLET_API+"/lease",h).pipe((0,P.R)(this.unSubs[6]),(0,D.U)(c=>{this.store.dispatch((0,w.uO)({payload:E.m6.LEASE_UTXO})),this.store.dispatch((0,z.mC)()),this.store.dispatch((0,z.Ly)());const C=new Date(1e3*c.expiration),S=Math.round(C.getTime())-60*C.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(S).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,T.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",E.m6.LEASE_UTXO,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,t,r,h){if("LND"===x){const c={end_time:r,start_time:t};return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+A.NZ.SWITCH_API,c).pipe((0,P.R)(this.unSubs[7]),(0,M.M)(this.store.select(U._f)),(0,d.z)(([C,S])=>{if(C.forwarding_events){const I=[...S.channels,...S.closedChannels];C.forwarding_events.forEach(_=>{var n,g;if(I&&I.length>0)for(let V=0;V(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+A.NZ.SWITCH_API,C),(0,b._)(()=>new Error(this.extractErrorMessage(C))))))}return"CLN"===x?(this.store.dispatch((0,w.ac)({payload:E.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+h).pipe((0,P.R)(this.unSubs[8]),(0,M.M)(this.store.select(W.ZW)),(0,d.z)(([c,C])=>{const S=this.mapAliases(c,[...C.activeChannels,...C.pendingChannels,...C.inactiveChannels]);return this.store.dispatch((0,w.uO)({payload:E.m6.GET_FORWARDING_HISTORY})),(0,a.of)(S)}),(0,T.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",E.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+A.NZ.CHANNELS_API+"/listForwards?status="+h+"&start="+t+"&end="+r,c),(0,b._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,y.P)(t=>null!==t),(0,d.z)(t=>(this.store.dispatch((0,w.ac)({payload:E.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+t+A.NZ.NETWORK_API+"/listNodes"+x).pipe((0,P.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,w.uO)({payload:E.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,T.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",E.m6.LIST_NETWORK_NODES,r),(0,b._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,y.P)(x=>null!==x),(0,d.z)(x=>(this.store.dispatch((0,w.ac)({payload:E.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+A.NZ.UTILITY_API+"/listConfigs").pipe((0,P.R)(this.unSubs[10]),(0,d.z)(t=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_LIST_CONFIGS})),(0,a.of)(t))),(0,T.K)(t=>(this.handleErrorWithoutAlert("List Configurations",E.m6.GET_LIST_CONFIGS,t),(0,b._)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(x,t,r,h,c,C){return this.lnImplementationUpdated.pipe((0,y.P)(S=>null!==S),(0,d.z)(S=>{const I=x?{policy:x,policy_mod:t,lease_fee_base_msat:r,lease_fee_basis:h,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:C}:null;return this.store.dispatch((0,w.ac)({payload:E.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+S+A.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,P.R)(this.unSubs[11]),(0,D.U)(_=>(this.store.dispatch((0,w.uO)({payload:E.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,w.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+_.compact_lease+"!"})),_)),(0,T.K)(_=>(this.handleErrorWithoutAlert("Funder Policy",E.m6.GET_FUNDER_POLICY,_),(0,b._)(()=>new Error(this.extractErrorMessage(_))))))}))}extractErrorMessage(x,t="Unknown Error."){return this.titleCasePipe.transform(x.error.text&&"string"==typeof x.error.text&&x.error.text.includes('')?"API Route Does Not Exist.":x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.error&&"string"==typeof x.error.error.error.error.error?x.error.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&"string"==typeof x.error.error.error.error?x.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&"string"==typeof x.error.error.error?x.error.error.error:x.error&&x.error.error&&"string"==typeof x.error.error?x.error.error:x.error&&"string"==typeof x.error?x.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.message&&"string"==typeof x.error.error.error.error.message?x.error.error.error.error.message:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.message&&"string"==typeof x.error.error.error.message?x.error.error.error.message:x.error&&x.error.error&&x.error.error.message&&"string"==typeof x.error.error.message?x.error.error.message:x.error&&x.error.message&&"string"==typeof x.error.message?x.error.message:x.message&&"string"==typeof x.message?x.message:t)}handleErrorWithoutAlert(x,t,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:t})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,t,r,h,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:t}));const C=this.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:C,URL:h},component:k.H}}})),this.store.dispatch((0,w.qi)({payload:{action:x,status:E.Bn.ERROR,statusCode:c.status.toString(),message:C,URL:h}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return J.\u0275fac=function(x){return new(x||J)(ne.LFG(e.eN),ne.LFG(Q.yh),ne.LFG(le.mQ),ne.LFG(q.ux),ne.LFG(ie.rS))},J.\u0275prov=ne.Yz7({token:J,factory:J.\u0275fac}),J})()},5043:(He,j,p)=>{"use strict";p.d(j,{LG:()=>d,mQ:()=>y});var e=p(2340),i=p(5e3);const{isDebugMode:u}=e.NZ,b=()=>null;let y=(()=>{class P{invokeConsoleMethod(T,M){}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})(),d=(()=>{class P{get info(){return u?console.log.bind(console):b}get warn(){return u?console.warn.bind(console):b}get error(){return u?console.error.bind(console):b}invokeConsoleMethod(T,M){(console[T]||console.log||b).apply(console,[M])}}return P.\u0275fac=function(T){return new(T||P)},P.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac}),P})()},9107:(He,j,p)=>{"use strict";p.d(j,{W:()=>U});var e=p(8138),i=p(1135),u=p(7579),b=p(9646),a=p(2843),y=p(2722),d=p(262),P=p(4004),D=p(2340),T=p(7731),M=p(1786),A=p(7861),E=p(5e3),k=p(5043),w=p(5620),z=p(62);let U=(()=>{class W{constructor(Q,le,q,ie){this.httpClient=Q,this.logger=le,this.store=q,this.commonService=ie,this.loopUrl="",this.swaps=[],this.swapsChanged=new i.X([]),this.unSubs=[new u.x,new u.x,new u.x,new u.x,new u.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,A.ac)({payload:T.m6.GET_LOOP_SWAPS})),this.loopUrl=D.T5+D.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:Q=>{this.store.dispatch((0,A.uO)({payload:T.m6.GET_LOOP_SWAPS})),this.swaps=Q,this.swapsChanged.next(this.swaps)},error:Q=>this.swapsChanged.error(this.handleErrorWithAlert(T.m6.GET_LOOP_SWAPS,this.loopUrl,Q))})}loopOut(Q,le,q,ie,se,J,me,x,t,r){const h={amount:Q,targetConf:q,swapRoutingFee:ie,minerFee:se,prepayRoutingFee:J,prepayAmt:me,swapFee:x,swapPublicationDeadline:t,destAddress:r};return""!==le&&(h.chanId=le),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,h).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+le,T.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(Q=>this.handleErrorWithoutAlert("Loop Out Terms",T.m6.NO_SPINNER,Q)))}getLoopOutQuote(Q,le,q){let ie=new e.LE;return ie=ie.append("targetConf",le.toString()),ie=ie.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/quote/"+Q,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[1]),(0,P.U)(se=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),se)),(0,d.K)(se=>this.handleErrorWithoutAlert("Loop Out Quote",T.m6.GET_QUOTE,se)))}getLoopOutTermsAndQuotes(Q){let le=new e.LE;return le=le.append("targetConf",Q.toString()),le=le.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:le}).pipe((0,y.R)(this.unSubs[2]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,d.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}loopIn(Q,le,q,ie,se){const J={amount:Q,swapFee:le,minerFee:q,lastHop:ie,externalHtlc:se};return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,J).pipe((0,d.K)(me=>this.handleErrorWithoutAlert("Loop In",T.m6.NO_SPINNER,me)))}getLoopInTerms(){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(Q=>this.handleErrorWithoutAlert("Loop In Terms",T.m6.NO_SPINNER,Q)))}getLoopInQuote(Q,le,q){let ie=new e.LE;return ie=ie.append("targetConf",le.toString()),ie=ie.append("swapPublicationDeadline",q.toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/quote/"+Q,this.store.dispatch((0,A.ac)({payload:T.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,y.R)(this.unSubs[3]),(0,P.U)(se=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_QUOTE})),se)),(0,d.K)(se=>this.handleErrorWithoutAlert("Loop In Qoute",T.m6.GET_QUOTE,se)))}getLoopInTermsAndQuotes(Q){let le=new e.LE;return le=le.append("targetConf",Q.toString()),le=le.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=D.T5+D.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,A.ac)({payload:T.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:le}).pipe((0,y.R)(this.unSubs[4]),(0,P.U)(q=>(this.store.dispatch((0,A.uO)({payload:T.m6.GET_TERMS_QUOTES})),q)),(0,d.K)(q=>(0,b.of)(this.handleErrorWithAlert(T.m6.GET_TERMS_QUOTES,this.loopUrl,q))))}getSwap(Q){return this.loopUrl=D.T5+D.NZ.LOOP_API+"/swap/"+Q,this.httpClient.get(this.loopUrl).pipe((0,d.K)(le=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+Q,T.m6.NO_SPINNER,le)))}handleErrorWithoutAlert(Q,le,q){let ie="";return this.logger.error("ERROR IN: "+Q+"\n"+JSON.stringify(q)),this.store.dispatch((0,A.uO)({payload:le})),401===q.status?(ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)())):503===q.status?(ie="Unable to Connect to Loop Server.",this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:Q},component:M.H}}}))):ie=this.commonService.extractErrorMessage(q),(0,a._)(()=>new Error(ie))}handleErrorWithAlert(Q,le,q){let ie="";if(this.logger.error(q),this.store.dispatch((0,A.uO)({payload:Q})),401===q.status)ie="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,A.kS)());else if(503===q.status)ie="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:q.status,message:"Unable to Connect to Loop Server",URL:le},component:M.H}}}))},100);else{ie=this.commonService.extractErrorMessage(q);const se=q.error&&q.error.error&&q.error.error.code?q.error.error.code:q.error&&q.error.code?q.error.code:q.code?q.code:q.status;setTimeout(()=>{this.store.dispatch((0,A.qR)({payload:{data:{type:T.n_.ERROR,alertTitle:"ERROR",message:{code:se,message:ie,URL:le},component:M.H}}}))},100)}return{message:ie}}ngOnDestroy(){this.unSubs.forEach(Q=>{Q.next(null),Q.complete()})}}return W.\u0275fac=function(Q){return new(Q||W)(E.LFG(e.eN),E.LFG(k.mQ),E.LFG(w.yh),E.LFG(z.v))},W.\u0275prov=E.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(He,j,p)=>{"use strict";p.d(j,{m:()=>u});var e=p(7579),i=p(5e3);let u=(()=>{class b{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(y){return sessionStorage.getItem(y)}getAllItems(){return sessionStorage}setItem(y,d){sessionStorage.setItem(y,d),this.sessionSub.next(sessionStorage)}removeItem(y){sessionStorage.removeItem(y),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275prov=i.Yz7({token:b,factory:b.\u0275fac}),b})()},7998:(He,j,p)=>{"use strict";p.d(j,{d:()=>k});var e=p(1135),i=p(7579),u=p(2722),b=p(930),a=p(8306),y=p(727),d=p(4707);const P={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class T extends i.u{constructor(z,U){if(super(),this._socket=null,z instanceof a.y)this.destination=U,this.source=z;else{const W=this._config=Object.assign({},P);if(this._output=new i.x,"string"==typeof z)W.url=z;else for(const ne in z)z.hasOwnProperty(ne)&&(W[ne]=z[ne]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(z){const U=new T(this._config,this.destination);return U.operator=z,U.source=this,U}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new i.x}multiplex(z,U,W){const ne=this;return new a.y(Q=>{try{ne.next(z())}catch(q){Q.error(q)}const le=ne.subscribe({next:q=>{try{W(q)&&Q.next(q)}catch(ie){Q.error(ie)}},error:q=>Q.error(q),complete:()=>Q.complete()});return()=>{try{ne.next(U())}catch(q){Q.error(q)}le.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:z,protocol:U,url:W,binaryType:ne}=this._config,Q=this._output;let le=null;try{le=U?new z(W,U):new z(W),this._socket=le,ne&&(this._socket.binaryType=ne)}catch(ie){return void Q.error(ie)}const q=new y.w0(()=>{this._socket=null,le&&1===le.readyState&&le.close()});le.onopen=ie=>{const{_socket:se}=this;if(!se)return le.close(),void this._resetState();const{openObserver:J}=this._config;J&&J.next(ie);const me=this.destination;this.destination=b.Lv.create(x=>{if(1===le.readyState)try{const{serializer:t}=this._config;le.send(t(x))}catch(t){this.destination.error(t)}},x=>{const{closingObserver:t}=this._config;t&&t.next(void 0),x&&x.code?le.close(x.code,x.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:x}=this._config;x&&x.next(void 0),le.close(),this._resetState()}),me&&me instanceof d.t&&q.add(me.subscribe(this.destination))},le.onerror=ie=>{this._resetState(),Q.error(ie)},le.onclose=ie=>{le===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ie),ie.wasClean?Q.complete():Q.error(ie)},le.onmessage=ie=>{try{const{deserializer:se}=this._config;Q.next(se(ie))}catch(se){Q.error(se)}}}_subscribe(z){const{source:U}=this;return U?U.subscribe(z):(this._socket||this._connectSocket(),this._output.subscribe(z),z.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),z)}unsubscribe(){const{_socket:z}=this;z&&(1===z.readyState||0===z.readyState)&&z.close(),this._resetState(),super.unsubscribe()}}var M=p(5e3),A=p(5043),E=p(5986);let k=(()=>{class w{constructor(U,W){this.logger=U,this.sessionService=W,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x,new i.x]}connectWebSocket(U,W){(!this.socket||this.socket.closed)&&(this.wsUrl=U,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new T({url:U,protocol:[this.sessionService.getItem("token")||"",W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var U;null===(U=this.socket)||void 0===U||U.pipe((0,u.R)(this.unSubs[1])).subscribe({next:W=>{if((W="string"==typeof W?JSON.parse(W):W).error)this.handleError(W.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(W)),W.source){case"LND":this.lndWSMessages.next(W);break;case"CLN":this.clWSMessages.next(W);break;case"ECL":this.eclWSMessages.next(W)}},error:W=>this.handleError(W),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(U){this.logger.error(U),this.clWSMessages.error(U),this.eclWSMessages.error(U),this.lndWSMessages.error(U),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(U){return new(U||w)(M.LFG(A.mQ),M.LFG(E.m))},w.\u0275prov=M.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(He,j,p)=>{"use strict";p.d(j,{m:()=>Yn});var e=p(9808),i=p(1402),u=p(3075),b=p(8138),a=p(9444),y=p(5e3),d=p(3270),P=p(3322),D=p(7093);p(3191);let it=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[d.IR]]}),At})(),de=(()=>{class At{constructor(mt,$t){(0,e.PM)($t)&&!mt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(mt,$t=[]){return{ngModule:At,providers:mt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:$t,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),mt)},{provide:d.Bs,useValue:$t,multi:!0}]}}}return At.\u0275fac=function(mt){return new(mt||At)(y.LFG(d.wY),y.LFG(y.Lbi))},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[D.ae,P.aT,it],D.ae,P.aT,it]}),At})();var $e=p(5113),bt=p(508),Vt=p(8966),bi=p(1079),Li=p(7544),Ji=p(7423);p(449),p(5664);let Hn=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[bt.BQ,bt.si],bt.BQ]}),At})();var An=p(9224),Kn=p(7446),Cn=p(6856),wi=p(1125),Yi=p(3954),bn=p(5245),Gn=p(7531),ar=p(4623),kr=p(2181),Pr=p(6087),ia=p(5899),sa=p(773),oa=p(9814),La=p(4107),Ta=p(2638),rr=p(2368);p(1159),p(6360),p(925),p(727),p(226);let da=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({imports:[[e.ez,bt.BQ],bt.BQ]}),At})();var Jn=p(7261),ga=p(4847),Ma=p(5615),$n=p(2075),qn=p(3251),Hr=p(4594),br=p(7238),Fr=p(149),ha=p(6688),Aa=p(1210),Wn=p(159),je=p(8129),Mt=p(9776);let Ye=(()=>{class At extends Mt.Xj{_createContainer(){const mt=document.createElement("div");mt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(mt),this._containerElement=mt}}return At.\u0275fac=function(){let oi;return function($t){return(oi||(oi=y.n5z(At)))($t||At)}}(),At.\u0275prov=y.Yz7({token:At,factory:At.\u0275fac}),At})();var Ot=p(5043),ri=p(7731);const Si={suppressScrollX:!1,suppressScrollY:!1};let Oi=(()=>{class At extends bt.LF{format(mt,$t){if("input"===$t){let Ai=mt.getDate().toString();return Ai=+Ai<10?"0"+Ai:Ai,Ai+"/"+ri.gg[mt.getMonth()].name.toUpperCase()+"/"+mt.getFullYear()}return ri.gg[mt.getMonth()].name.toUpperCase()+" "+mt.getFullYear()}}return At.\u0275fac=function(){let oi;return function($t){return(oi||(oi=y.n5z(At)))($t||At)}}(),At.\u0275prov=y.Yz7({token:At,factory:At.\u0275fac}),At})();const rn={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let Yn=(()=>{class At{}return At.\u0275fac=function(mt){return new(mt||At)},At.\u0275mod=y.oAB({type:At}),At.\u0275inj=y.cJS({providers:[{provide:Ot.mQ,useClass:Ot.LG},{provide:je.op,useValue:Si},{provide:Jn.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Vt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:bt._A,useClass:Oi},{provide:bt.sG,useValue:rn},{provide:Mt.Xj,useClass:Ye},e.JJ,e.rS,e.uU],imports:[[e.ez,u.u5,u.UX,a.uH,de,$e.xu,Vt.Is,Ji.ot,Hn,An.QW,Kn.p9,wi.To,Yi.N6,Cn.FA,bt.XK,bn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,br.AV,Li.g,Pr.TU,Ma.T5,da,qn.Nh,Jn.ZX,bi.Bb,Aa.a4,Wn.OF,i.Bz,b.JF,je.Xd],u.u5,u.UX,a.uH,de,$e.xu,Vt.Is,Ji.ot,Hn,An.QW,Kn.p9,wi.To,Yi.N6,Cn.FA,bt.XK,bn.Ps,Gn.c,ar.ie,kr.Tx,ia.Cv,sa.Cq,oa.Fk,Fr.dp,ha.Hi,La.LD,Ta.SJ,rr.rP,ga.JX,$n.p0,Hr.g0,br.AV,Li.g,Pr.TU,Ma.T5,da,qn.Nh,Jn.ZX,bi.Bb,Aa.a4,Wn.OF,je.Xd]}),At})()},7861:(He,j,p)=>{"use strict";p.d(j,{M6:()=>M,Q2:()=>w,QO:()=>c,Tm:()=>se,Uy:()=>q,XT:()=>Q,_V:()=>me,ac:()=>P,c0:()=>r,c1:()=>A,dc:()=>_,ey:()=>ne,fk:()=>ie,jS:()=>J,jW:()=>d,kS:()=>t,lC:()=>b,qR:()=>T,qi:()=>a,tj:()=>k,ts:()=>y,tw:()=>U,uO:()=>D,vI:()=>W,x4:()=>S,yb:()=>E,zQ:()=>le});var e=p(5620),i=p(7731);(0,e.PH)(i.pg.VOID);const b=(0,e.PH)(i.pg.SET_API_URL_ECL,(0,e.Ky)()),a=(0,e.PH)(i.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),y=(0,e.PH)(i.pg.CLOSE_ALL_DIALOGS),d=(0,e.PH)(i.pg.OPEN_SNACK_BAR,(0,e.Ky)()),P=(0,e.PH)(i.pg.OPEN_SPINNER,(0,e.Ky)()),D=(0,e.PH)(i.pg.CLOSE_SPINNER,(0,e.Ky)()),T=(0,e.PH)(i.pg.OPEN_ALERT,(0,e.Ky)()),M=(0,e.PH)(i.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(i.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(i.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),k=(0,e.PH)(i.pg.SHOW_PUBKEY),w=(0,e.PH)(i.pg.FETCH_CONFIG,(0,e.Ky)()),U=((0,e.PH)(i.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(i.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(i.pg.RESET_ROOT_STORE,(0,e.Ky)()),ne=(0,e.PH)(i.pg.FETCH_RTL_CONFIG),Q=(0,e.PH)(i.pg.SET_RTL_CONFIG,(0,e.Ky)()),le=(0,e.PH)(i.pg.SAVE_SETTINGS,(0,e.Ky)()),q=(0,e.PH)(i.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),ie=(0,e.PH)(i.pg.SET_SELECTED_NODE,(0,e.Ky)()),se=(0,e.PH)(i.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),J=(0,e.PH)(i.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),me=(0,e.PH)(i.pg.SET_NODE_DATA,(0,e.Ky)()),t=((0,e.PH)(i.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(i.pg.LOGOUT)),r=(0,e.PH)(i.pg.RESET_PASSWORD,(0,e.Ky)()),c=((0,e.PH)(i.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(i.pg.IS_AUTHORIZED,(0,e.Ky)())),S=((0,e.PH)(i.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(i.pg.LOGIN,(0,e.Ky)())),_=((0,e.PH)(i.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(i.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(i.pg.SHOW_FILE,(0,e.Ky)())},3093:(He,j,p)=>{"use strict";p.d(j,{V:()=>mn});var e=p(6642),i=p(7579),u=p(9646),b=p(8306),a=p(4128),y=p(4004),d=p(5698),P=p(1365),D=p(5577),T=p(262),M=p(2722),A=p(2340),E=p(7731),k=p(8966),w=p(5e3),z=p(7093),U=p(773);let W=(()=>{class Yt{constructor(Je,Nt){this.dialogRef=Je,this.data=Nt}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA()()()),2&Je&&(w.xp6(4),w.Oqu(Nt.data.titleMessage))},directives:[z.xw,z.Wh,U.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),Yt})();var ne=p(5043),Q=p(7261),le=p(62),q=p(9808),ie=p(3322),se=p(159),J=p(9224),me=p(7423),x=p(8129),t=p(5245),r=p(3390),h=p(6895),c=p(4834);const C=["scrollContainer"];function S(Yt,Mi){if(1&Yt&&w._UZ(0,"qr-code",15),2&Yt){const Je=w.oxw();w.Q6J("value",Je.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(Yt,Mi){1&Yt&&w.GkF(0)}const _=function(Yt){return{"h-40":Yt}};function n(Yt,Mi){if(1&Yt&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Yt){const Je=w.oxw(),Nt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,_,Je.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Nt)}}function g(Yt,Mi){1&Yt&&w.GkF(0)}function V(Yt,Mi){if(1&Yt&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,g,1,0,"ng-container",18),w.qZA(),w.BQk()),2&Yt){w.oxw();const Je=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",Je)}}function R(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function H(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function $(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"div",20)(1,"button",21),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onScroll()}),w.YNc(2,R,2,0,"mat-icon",22),w.YNc(3,H,2,0,"mat-icon",22),w.qZA()()}if(2&Yt){const Je=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===Je.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===Je.scrollDirection)}}function fe(Yt,Mi){1&Yt&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function ye(Yt,Mi){1&Yt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function ke(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Kt){return w.CHM(Je),w.oxw().onCopyField(Kt)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.Q6J("payload",Je.showCopyField),w.xp6(1),w.hij("Copy ",Je.showCopyName,"")}}function Ee(Yt,Mi){1&Yt&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&Yt&&w.Q6J("mat-dialog-close",!1)}function te(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(Kt){return w.CHM(Je),w.oxw().onCopyField(Kt)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.Q6J("payload",Je.showQRField),w.xp6(1),w.hij("Copy ",Je.showQRName,"")}}function ze(Yt,Mi){if(1&Yt&&w._UZ(0,"qr-code",15),2&Yt){const Je=w.oxw(2);w.Q6J("value",Je.showQRField)("size",200)("errorCorrectionLevel","L")}}function be(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Oqu(Je.data.titleMessage)}}function Z(Yt,Mi){1&Yt&&w._UZ(0,"span",46),2&Yt&&w.Q6J("innerHTML",Mi.$implicit,w.oJD)}function Y(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,Z,1,1,"span",45),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",Je.value)}}function ot(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*Je.value,"dd/MMM/y HH:mm"))}}function Ie(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,Je.value,Je.digitsInfo?Je.digitsInfo:"1.0-3"))}}function Ae(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(Je.value?"True":"False")}}function ce(Yt,Mi){1&Yt&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Te=function(Yt){return{"failed-status":Yt}};function xe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ce,2,0,"mat-icon",50),w.qZA()),2&Yt){const Je=w.oxw(3).$implicit,Nt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Te,Je.value===Nt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",Je.value," "),w.xp6(1),w.Q6J("ngIf",Je.value===Nt.LoopStateEnum.FAILED)}}function G(Yt,Mi){if(1&Yt&&w._uU(0),2&Yt){const Je=w.oxw(3).$implicit;w.Oqu(Je.value)}}function ee(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,xe,3,5,"p",47),w.YNc(2,G,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&Yt){const Je=w.MAs(3),Nt=w.oxw(2).$implicit,Kt=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===Kt.data.openedBy&&"state"===Nt.key)("ngIfElse",Je)}}function ue(Yt,Mi){if(1&Yt&&(w.TgZ(0,"span")(1,"span",42),w.YNc(2,Y,2,1,"ng-container",43),w.YNc(3,ot,3,4,"ng-container",43),w.YNc(4,Ie,3,4,"ng-container",43),w.YNc(5,Ae,2,1,"ng-container",43),w.YNc(6,ee,4,2,"ng-container",44),w.qZA()()),2&Yt){const Je=w.oxw().$implicit,Nt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",Je.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function ve(Yt,Mi){1&Yt&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Le(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",37)(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,ue,7,5,"span",39),w.YNc(4,ve,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&Yt){const Je=Mi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",Je.width),w.xp6(2),w.Oqu(Je.title),w.xp6(1),w.Q6J("ngIf",Je&&(!!Je.value||0===Je.value))("ngIfElse",Nt)}}function lt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div")(1,"div",35),w.YNc(2,Le,7,4,"div",36),w.qZA()()),2&Yt){const Je=Mi.$implicit;w.xp6(2),w.Q6J("ngForOf",Je)}}function ht(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",33),w.YNc(1,lt,3,1,"div",34),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",Je.messageObjs)}}const Tt=function(Yt){return{"display-none":Yt}};function hi(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",27)(1,"div",28),w.YNc(2,ze,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,be,2,1,"p",30),w.YNc(5,ht,2,1,"div",31),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,Tt,""===Je.showQRField||Je.screenSize!==Je.screenSizeEnum.XS&&Je.screenSize!==Je.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Je.showQRField),w.xp6(2),w.Q6J("ngIf",Je.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==Je.messageObjs?null:Je.messageObjs.length)>0)}}let jt=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri,ki){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.snackBar=pi,this.commonService=Ri,this.renderer=ki,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(Je){Je&&(this.scrollContainer=Je,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Nt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Nt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(Je){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Je)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(Q.ux),w.Y36(le.v),w.Y36(w.Qsj))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-alert-message"]],viewQuery:function(Je,Nt){if(1&Je&&w.Gf(C,5),2&Je){let Kt;w.iGM(Kt=w.CRH())&&(Nt.container=Kt.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w.YNc(2,S,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),w._uU(7),w.qZA()(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Nt.onClose()}),w._uU(9,"X"),w.qZA()(),w.YNc(10,n,4,4,"ng-container",8),w.YNc(11,V,3,1,"ng-container",8),w.YNc(12,$,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,fe,2,1,"button",11),w.YNc(15,ye,2,1,"button",12),w.YNc(16,ke,2,2,"button",13),w.YNc(17,Ee,2,1,"button",12),w.YNc(18,te,2,2,"button",13),w.qZA()()(),w.YNc(19,hi,6,6,"ng-template",null,14,w.W1O)),2&Je&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,Tt,""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Nt.showQRField||Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(3),w.Q6J("ngIf",Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Nt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Nt.data.scrollable&&Nt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Nt.showQRField||""===Nt.showQRField)&&""===Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Nt.showQRField))},directives:[z.xw,z.Wh,z.yH,q.mk,ie.oO,q.O5,se.uU,J.dk,me.lW,J.dn,x.$V,q.tP,t.Hw,r.h,k.ZT,h.y,q.sg,q.RF,q.n9,q.ED,c.d],pipes:[q.uU,q.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),Yt})();var Gt=p(801),di=p(7861),vt=p(5620),kt=p(3075),gt=p(9444),Qe=p(7322),_t=p(7531),ei=p(6534);function Zt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",18),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("icon",Je.faExclamationTriangle),w.xp6(2),w.Oqu(Je.warningMessage)}}function Pe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",20),w._UZ(1,"fa-icon",19),w.TgZ(2,"span"),w._uU(3),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("icon",Je.faInfoCircle),w.xp6(2),w.Oqu(Je.informationMessage)}}function De(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.data.titleMessage)}}function oe(Yt,Mi){1&Yt&&w._UZ(0,"div",36),2&Yt&&w.Q6J("innerHTML",Mi.$implicit,w.oJD)}function Me(Yt,Mi){if(1&Yt&&(w.ynx(0,34),w.YNc(1,oe,1,1,"div",35),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",Je.value)}}function ut(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*Je.value,"dd/MMM/y HH:mm"))}}function ft(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,Je.value,"1.0-3"))}}function Rt(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===Je.value?"True":"False")}}function et(Yt,Mi){if(1&Yt&&(w.ynx(0),w._uU(1),w.BQk()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.Oqu(Je.value)}}function Re(Yt,Mi){if(1&Yt&&(w.TgZ(0,"span")(1,"span",30),w.YNc(2,Me,2,1,"ng-container",31),w.YNc(3,ut,3,4,"ng-container",32),w.YNc(4,ft,3,4,"ng-container",32),w.YNc(5,Rt,2,1,"ng-container",32),w.YNc(6,et,2,1,"ng-container",33),w.qZA()()),2&Yt){const Je=w.oxw().$implicit,Nt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",Je.type),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Nt.dataTypeEnum.BOOLEAN)}}function qe(Yt,Mi){1&Yt&&(w.TgZ(0,"span",37),w._uU(1,"\xa0"),w.qZA())}function Ze(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",25)(1,"h4",26),w._uU(2),w.qZA(),w.YNc(3,Re,7,5,"span",27),w.YNc(4,qe,2,0,"ng-template",null,28,w.W1O),w._UZ(6,"mat-divider",29),w.qZA()),2&Yt){const Je=Mi.$implicit,Nt=w.MAs(5);w.s9C("fxFlex.gt-md",Je.width),w.xp6(2),w.Oqu(Je.title),w.xp6(1),w.Q6J("ngIf",Je&&(!!Je.value||0===Je.value))("ngIfElse",Nt)}}function we(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div")(1,"div",23),w.YNc(2,Ze,7,4,"div",24),w.qZA()()),2&Yt){const Je=Mi.$implicit;w.xp6(2),w.Q6J("ngForOf",Je)}}function Fe(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div"),w.YNc(1,we,3,1,"div",22),w.qZA()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngForOf",Je.messageObjs)}}function rt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"p",21),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2);w.xp6(1),w.Oqu(Je.data.titleMessage)}}function at(Yt,Mi){if(1&Yt&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&Yt){const Je=w.oxw(2).$implicit;w.xp6(1),w.hij("",Je.placeholder," is required.")}}function yt(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"mat-form-field",41)(1,"input",42),w.NdJ("ngModelChange",function(Kt){return w.CHM(Je),w.oxw().$implicit.inputValue=Kt}),w.ALo(2,"lowercase"),w.qZA(),w.YNc(3,at,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA()()}if(2&Yt){const Je=w.oxw(),Nt=Je.$implicit,Kt=Je.index;w.Q6J("fxFlex",Nt.width),w.xp6(1),w.MGl("name","input",Kt,""),w.Q6J("autoFocus",0===Kt)("placeholder",Nt.placeholder)("min",Nt.min)("step",Nt.step)("type",w.lcZ(2,11,Nt.inputType))("ngModel",Nt.inputValue)("tabindex",Kt+1),w.xp6(2),w.Q6J("ngIf",!Nt.inputValue),w.xp6(2),w.Oqu(Nt.hintFunction?Nt.hintFunction(Nt.inputValue):Nt.hintText)}}function mi(Yt,Mi){if(1&Yt&&(w.ynx(0),w.YNc(1,yt,6,13,"mat-form-field",40),w.BQk()),2&Yt){const Je=Mi.$implicit,Nt=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!Je.advancedField||Nt.showAdvanced)}}function Xt(Yt,Mi){if(1&Yt&&(w.TgZ(0,"div",38),w.YNc(1,rt,2,1,"p",10),w.TgZ(2,"div",39),w.YNc(3,mi,2,1,"ng-container",22),w.qZA()()),2&Yt){const Je=w.oxw();w.xp6(1),w.Q6J("ngIf",Je.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",Je.getInputs)}}function Jt(Yt,Mi){1&Yt&&(w.TgZ(0,"p"),w._uU(1,"Show Advanced"),w.qZA())}function qi(Yt,Mi){1&Yt&&(w.TgZ(0,"p"),w._uU(1,"Hide Advanced"),w.qZA())}function ui(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onShowAdvanced()}),w.YNc(1,Jt,2,0,"p",27),w.YNc(2,qi,2,0,"ng-template",null,44,w.W1O),w.qZA()}if(2&Yt){const Je=w.MAs(3),Nt=w.oxw();w.xp6(1),w.Q6J("ngIf",!Nt.showAdvanced)("ngIfElse",Je)}}function si(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(Je);const Kt=w.oxw();return Kt.onClose(Kt.getInputs)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.yesBtnText)}}function en(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){return w.CHM(Je),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&Yt){const Je=w.oxw();w.xp6(1),w.Oqu(Je.yesBtnText)}}let Ui=(()=>{class Yt{constructor(Je,Nt,Kt,pi){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.store=pi,this.faInfoCircle=Gt.sqG,this.faExclamationTriangle=Gt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Je){if(Je&&this.getInputs&&this.getInputs.some(Nt=>void 0===Nt.inputValue))return!0;!this.showAdvanced&&Je.length&&(Je=null==Je?void 0:Je.reduce((Nt,Kt)=>(Kt.advancedField||Nt.push(Kt),Nt),[])),this.store.dispatch((0,di.yb)({payload:Je}))}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(vt.yh))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),w._uU(5),w.qZA()(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(7,"X"),w.qZA()(),w.TgZ(8,"mat-card-content",6)(9,"form",7),w.YNc(10,Zt,4,2,"div",8),w.YNc(11,Pe,4,2,"div",9),w.YNc(12,De,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Xt,4,2,"div",12),w.TgZ(15,"div",13)(16,"button",14),w.NdJ("click",function(){return Nt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,ui,4,2,"button",15),w.YNc(19,si,2,1,"button",16),w.YNc(20,en,2,1,"button",17),w.qZA()()()()()),2&Je&&(w.xp6(5),w.Oqu(Nt.data.alertTitle||Nt.alertTypeEnum[Nt.data.type]),w.xp6(5),w.Q6J("ngIf",Nt.warningMessage&&""!==Nt.warningMessage),w.xp6(1),w.Q6J("ngIf",Nt.informationMessage&&""!==Nt.informationMessage),w.xp6(1),w.Q6J("ngIf",Nt.data.titleMessage&&!Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Nt.messageObjs?null:Nt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(3),w.Oqu(Nt.noBtnText),w.xp6(1),w.Q6J("ngIf",Nt.hasAdvanced),w.xp6(1),w.Q6J("ngIf",Nt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Nt.flgShowInput))},directives:[z.xw,z.yH,J.dk,z.Wh,me.lW,J.dn,kt._Y,kt.JL,kt.F,q.O5,gt.BN,q.sg,q.RF,q.n9,q.ED,c.d,Qe.KE,_t.Nt,ei.q,kt.Fj,kt.Q7,r.h,kt.JJ,kt.On,Qe.TO,Qe.bx],pipes:[q.uU,q.JJ,q.i8],styles:[""]}),Yt})();var Bi=p(1786),Gi=p(4107),ct=p(508);function Ft(Yt,Mi){if(1&Yt&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&Yt){const Je=Mi.$implicit;w.Q6J("value",Je),w.xp6(1),w.hij(" ",Je.infoName," ")}}function pt(Yt,Mi){if(1&Yt){const Je=w.EpF();w.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),w.NdJ("valueChange",function(Kt){return w.CHM(Je),w.oxw().selInfoType=Kt}),w.YNc(3,Ft,2,2,"mat-option",22),w.qZA()()()}if(2&Yt){const Je=w.oxw();w.xp6(2),w.Q6J("value",Je.selInfoType),w.xp6(1),w.Q6J("ngForOf",Je.infoTypes)}}const it=function(Yt){return{"display-none":Yt}};let It=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri){this.dialogRef=Je,this.data=Nt,this.logger=Kt,this.snackBar=pi,this.commonService=Ri,this.faReceipt=Gt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((Je,Nt)=>{this.infoTypes.push({infoID:Nt+1,infoKey:"node URI "+(Nt+1),infoName:"Node URI "+(Nt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Je){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Je)}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.Y36(k.so),w.Y36(k.WI),w.Y36(ne.mQ),w.Y36(Q.ux),w.Y36(le.v))},Yt.\u0275cmp=w.Xpm({type:Yt,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(Je,Nt){1&Je&&(w.TgZ(0,"div",0)(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA()(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Nt.onClose()}),w._uU(10,"X"),w.qZA()(),w.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,pt,4,2,"div",12),w.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA()()(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18)(24,"button",19),w.NdJ("copied",function(pi){return Nt.onCopyPubkey(pi)}),w._uU(25),w.qZA()()()()()()),2&Je&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,it,Nt.screenSize===Nt.screenSizeEnum.XS||Nt.screenSize===Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Nt.faReceipt),w.xp6(2),w.Oqu(Nt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,it,Nt.screenSize!==Nt.screenSizeEnum.XS&&Nt.screenSize!==Nt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.Q6J("size",Nt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Nt.information.uris&&Nt.information.uris.length>0),w.xp6(4),w.Oqu(Nt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Nt.selInfoType.infoID?Nt.information.identity_pubkey:Nt.information.uris[Nt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Nt.selInfoType.infoKey,""))},directives:[z.xw,z.Wh,z.yH,q.mk,ie.oO,se.uU,J.dk,gt.BN,me.lW,J.dn,q.O5,Qe.KE,Gi.gD,q.sg,ct.ey,c.d,r.h,h.y],styles:[""]}),Yt})();var de=p(6523),$e=p(429),bt=p(2994),Vt=p(8377),bi=p(8138),Li=p(7998),Ji=p(5986),Wi=p(8104),sn=p(1402);let mn=(()=>{class Yt{constructor(Je,Nt,Kt,pi,Ri,ki,hn,Hn,An,Kn,Cn){this.actions=Je,this.httpClient=Nt,this.store=Kt,this.logger=pi,this.wsService=Ri,this.sessionService=ki,this.commonService=hn,this.dataService=Hn,this.dialog=An,this.snackBar=Kn,this.router=Cn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new i.x,new i.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,y.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,y.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,y.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,y.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Yi=>{Yi.componentInstance&&Yi.componentInstance.data&&Yi.componentInstance.data.titleMessage&&Yi.componentInstance.data.titleMessage===wi.payload&&Yi.close()})}catch(Yi){this.logger.error(Yi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,y.U)(wi=>{const Yi=JSON.parse(JSON.stringify(wi.payload));Yi.width||(Yi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:jt,Yi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,y.U)(wi=>{const Yi=JSON.parse(JSON.stringify(wi.payload));Yi.width||(Yi.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ui,Yi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,y.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,P.M)(this.store.select(Vt.R4)),(0,D.z)(([wi,Yi])=>(this.sessionService.getItem("token")&&Yi.identity_pubkey?this.store.dispatch((0,di.qR)({payload:{data:{information:Yi,component:It}}})):this.snackBar.open("Node Pubkey does not exist."),(0,u.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,D.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,di.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,y.U)(wi=>{this.logger.info(wi),this.store.dispatch((0,di.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,di.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}}));let Yi=null;return wi.nodes.forEach(bn=>{var Gn,ar;bn.settings.currencyUnits=[...E.uA,(null===(Gn=bn.settings)||void 0===Gn?void 0:Gn.currencyUnit)?null===(ar=bn.settings)||void 0===ar?void 0:ar.currencyUnit:""],+(bn.index||-1)===wi.selectedNodeIndex&&(Yi=bn)}),Yi?(this.store.dispatch((0,di.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Yi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,T.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Yi=new b.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const bn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Gn=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Yi=(0,a.D)([bn,Gn])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Yi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Yi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Yi.pipe((0,y.U)(bn=>(this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:bn.length?bn[0].message+".":bn.message+"."})),(0,T.K)(bn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,bn.length?bn[0]:bn),(0,u.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Yi.message+"."})),(0,T.K)(Yi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Yi),(0,u.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,P.M)(this.store.select(Vt.Yj)),(0,y.U)(([wi,Yi])=>{this.logger.info(wi),Yi.enable2FA=!Yi.enable2FA,this.store.dispatch((0,di.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,di.XT)({payload:Yi}))}),(0,T.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,u.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,y.U)(Yi=>(this.store.dispatch((0,di.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Yi})),(0,T.K)(Yi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Yi),(0,u.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Yi})),(0,T.K)(Yi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Yi),(0,u.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,y.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,Yi])=>(this.store.dispatch((0,de.Ll)({payload:null})),this.store.dispatch((0,$e.xH)({payload:null})),this.store.dispatch((0,bt.Fd)({payload:null})),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,y.U)(bn=>{this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,bn)}),(0,T.K)(bn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,bn),+Yi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:bn.error&&bn.error.error?bn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,D.z)(wi=>(this.store.dispatch((0,di.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,y.U)(Yi=>{this.logger.info(Yi),this.store.dispatch((0,di.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,di.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,T.K)(Yi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Yi),(0,u.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,P.M)(this.store.select(Vt.Yj)),(0,D.z)(([wi,Yi])=>(this.store.dispatch((0,di.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,y.U)(bn=>{this.logger.info(bn),this.store.dispatch((0,di.uO)({payload:E.m6.LOG_OUT})),+Yi.sso.rtlSSO?window.location.href=Yi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,di._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,M.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,D.z)(wi=>(this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,M.R)(this.unSubs[0]),(0,y.U)(Yi=>(this.logger.info(Yi),this.store.dispatch((0,di.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,di.jW)({payload:"Password Reset Successful!"})),this.SetToken(Yi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Yi.token})),(0,T.K)(Yi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Yi),(0,u.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,D.z)(wi=>{var Yi;return this.store.dispatch((0,di.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/updateSelNode/"+(null===(Yi=wi.payload.currentLnNode)||void 0===Yi?void 0:Yi.index)+"/"+wi.payload.prevLnNodeIndex).pipe((0,y.U)(bn=>(this.logger.info(bn),this.store.dispatch((0,di.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,T.K)(bn=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",bn),(0,u.of)({type:E.pg.VOID}))))}))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,D.z)(wi=>{this.store.dispatch((0,di.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Yi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Yi).pipe((0,y.U)(bn=>(this.store.dispatch((0,di.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,di.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:bn})),(0,T.K)(bn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Yi,{status:this.commonService.extractErrorNumber(bn),error:{error:this.commonService.extractErrorCode(bn)}}),(0,u.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,y.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(Je,Nt){this.logger.info("Initializing node from RTL Effects.");const Kt=Nt?"":"HOME";let pi={};if(pi=Je.settings.fiatConversion&&Je.settings.currencyUnit?{userPersona:Je.settings.userPersona,channelBackupPath:Je.settings.channelBackupPath,selCurrencyUnit:Je.settings.currencyUnit,currencyUnits:[...E.uA,Je.settings.currencyUnit],fiatConversion:Je.settings.fiatConversion,lnImplementation:Je.lnImplementation,swapServerUrl:Je.settings.swapServerUrl,boltzServerUrl:Je.settings.boltzServerUrl,enableOffers:Je.settings.enableOffers,enablePeerswap:Je.settings.enablePeerswap}:{userPersona:Je.settings.userPersona,channelBackupPath:Je.settings.channelBackupPath,selCurrencyUnit:Je.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:Je.settings.fiatConversion,lnImplementation:Je.lnImplementation,swapServerUrl:Je.settings.swapServerUrl,boltzServerUrl:Je.settings.boltzServerUrl,enableOffers:Je.settings.enableOffers,enablePeerswap:Je.settings.enablePeerswap},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,di.vI)({payload:Je})),this.store.dispatch((0,de.Ll)({payload:pi})),this.store.dispatch((0,$e.xH)({payload:pi})),this.store.dispatch((0,bt.Fd)({payload:pi})),this.sessionService.getItem("token")){const Ri=Je.lnImplementation?Je.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ri);const ki=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket((null==ki?void 0:ki.replace(/^http/,"ws"))+A.NZ.Web_SOCKET_API,Je.index?Je.index.toString():"-1"),Ri){case"CLN":this.store.dispatch((0,$e.CN)({payload:{loadPage:Kt}}));break;case"ECL":this.store.dispatch((0,bt.iz)({payload:{loadPage:Kt}}));break;default:this.store.dispatch((0,de.sQ)({payload:{loadPage:Kt}}))}}}SetToken(Je){Je?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Je)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Je,Nt){this.logger.info("Successfully Authorized!"),this.SetToken(Nt.token),this.sessionService.setItem("defaultPassword",Je),Je?(this.store.dispatch((0,di.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,di.ey)())}handleErrorWithoutAlert(Je,Nt,Kt){this.logger.error("ERROR IN: "+Je+"\n"+JSON.stringify(Kt)),401===Kt.status&&"Login"!==Je?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,di.uO)({payload:Nt})),this.store.dispatch((0,di.qi)({payload:{action:Je,status:E.Bn.ERROR,statusCode:Kt.status?Kt.status.toString():"",message:this.commonService.extractErrorMessage(Kt)}})))}handleErrorWithAlert(Je,Nt,Kt,pi,Ri){if(this.logger.error(Ri),0===Ri.status&&Ri.statusText&&"Unknown Error"===Ri.statusText&&(Ri={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ri.status&&"Login"!==Je)this.logger.info("Redirecting to Login"),this.store.dispatch((0,di.ts)()),this.store.dispatch((0,di.kS)()),this.store.dispatch((0,di.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,di.uO)({payload:Nt}));const ki=this.commonService.extractErrorMessage(Ri);this.store.dispatch((0,di.qR)({payload:{data:{type:"ERROR",alertTitle:Kt,message:{code:Ri.status?Ri.status:"Unknown Error",message:ki,URL:pi},component:Bi.H}}})),this.store.dispatch((0,di.qi)({payload:{action:Je,status:E.Bn.ERROR,statusCode:Ri.status?Ri.status.toString():"",message:ki,URL:pi}}))}}ngOnDestroy(){this.unSubs.forEach(Je=>{Je.next(null),Je.complete()})}}return Yt.\u0275fac=function(Je){return new(Je||Yt)(w.LFG(e.eX),w.LFG(bi.eN),w.LFG(vt.yh),w.LFG(ne.mQ),w.LFG(Li.d),w.LFG(Ji.m),w.LFG(le.v),w.LFG(Wi.D),w.LFG(k.uw),w.LFG(Q.ux),w.LFG(sn.F0))},Yt.\u0275prov=w.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})()},8377:(He,j,p)=>{"use strict";p.d(j,{R4:()=>y,Sr:()=>P,Yj:()=>a,dT:()=>b,gW:()=>D,ul:()=>d});var e=p(5620);const i=(0,e.ZF)("root"),b=((0,e.P1)(i,T=>T.apiURL),(0,e.P1)(i,T=>T.selNode)),a=(0,e.P1)(i,T=>T.appConfig),y=(0,e.P1)(i,T=>T.nodeData),d=(0,e.P1)(i,T=>T.apisCallStatus.Login),P=(0,e.P1)(i,T=>T.apisCallStatus.IsAuthorized),D=(0,e.P1)(i,T=>({nodeDate:T.nodeData,selNode:T.selNode}))},2340:(He,j,p)=>{"use strict";p.d(j,{NZ:()=>i,T5:()=>e,q4:()=>u});const e="./api",i={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",PEERSWAP_API:"/peerswap",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},u="0.13.1-beta"},5901:(He,j,p)=>{"use strict";var e=p(2313),i=p(5e3),u=p(6360),b=p(8138),a=p(5113),y=p(5620),d=p(6642),P=p(9565),D=p(7579),T=p(6451),M=p(4968),A=p(457),E=p(4986),k=p(2805);function w(_e=0,Xe=E.z){return _e<0&&(_e=0),(0,k.H)(_e,_e,Xe)}var z=p(9646),U=p(727),W=p(4482),ne=p(5403),Q=p(8737),le=p(3269),q=p(9672),se=p(9300),J=p(8505),me=p(3900),x=p(2722),t=p(8746),r=p(1884),h=p(4004);class c{}let C=(()=>{class _e{constructor(K,We){this._ngZone=We,this.timerStart$=new D.x,this.idleDetected$=new D.x,this.timeout$=new D.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,K&&this.setConfig(K)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,T.T)((0,M.R)(window,"mousemove"),(0,M.R)(window,"resize"),(0,M.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ie(_e,...Xe){var K,We;const Bt=null!==(K=(0,le.yG)(Xe))&&void 0!==K?K:E.z,Ce=null!==(We=Xe[0])&&void 0!==We?We:null,ge=Xe[1]||1/0;return(0,W.e)((he,Ue)=>{let nt=[],Dt=!1;const Qt=Vi=>{const{buffer:Mn,subs:zi}=Vi;zi.unsubscribe(),(0,Q.P)(nt,Vi),Ue.next(Mn),Dt&&ai()},ai=()=>{if(nt){const Vi=new U.w0;Ue.add(Vi);const zi={buffer:[],subs:Vi};nt.push(zi),(0,q.f)(Vi,Bt,()=>Qt(zi),_e)}};null!==Ce&&Ce>=0?(0,q.f)(Ue,Bt,ai,Ce,!0):Dt=!0,ai();const Di=(0,ne.x)(Ue,Vi=>{const Mn=nt.slice();for(const zi of Mn){const{buffer:un}=zi;un.push(Vi),ge<=un.length&&Qt(zi)}},()=>{for(;null==nt?void 0:nt.length;)Ue.next(nt.shift().buffer);null==Di||Di.unsubscribe(),Ue.complete(),Ue.unsubscribe()},void 0,()=>nt=null);he.subscribe(Di)})}(this.idleSensitivityMillisec),(0,se.h)(K=>!K.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,J.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,me.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,x.R)((0,T.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,J.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,t.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,r.x)(),(0,me.w)(K=>K?this.timer$:(0,z.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,se.h)(K=>!!K),(0,J.b)(()=>this.isTimeout=!0),(0,h.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(K){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(K):console.error("Call stopWatching() before set config values")}setConfig(K){K.idle&&(this.idleMillisec=1e3*K.idle),K.ping&&(this.pingMillisec=1e3*K.ping),K.idleSensitivity&&(this.idleSensitivityMillisec=1e3*K.idleSensitivity),K.timeout&&(this.timeout=K.timeout)}setCustomActivityEvents(K){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=K:console.error("Call stopWatching() before set custom activity events")}setupTimer(K){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,z.of)(()=>new Date).pipe((0,h.U)(We=>We()),(0,me.w)(We=>w(1e3).pipe((0,h.U)(()=>Math.round(((new Date).valueOf()-We.valueOf())/1e3)),(0,J.b)(Bt=>{Bt>=K&&this.timeout$.next(!0)}))))})}setupPing(K){this.ping$=w(K).pipe((0,se.h)(()=>!this.isTimeout))}}return _e.\u0275fac=function(K){return new(K||_e)(i.LFG(c,8),i.LFG(i.R0b))},_e.\u0275prov=i.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),S=(()=>{class _e{static forRoot(K){return{ngModule:_e,providers:[{provide:c,useValue:K}]}}}return _e.\u0275fac=function(K){return new(K||_e)},_e.\u0275mod=i.oAB({type:_e}),_e.\u0275inj=i.cJS({imports:[[]]}),_e})();var I=p(1402),_=p(801),n=p(8377),g=p(7093),V=p(9444),R=p(9224),H=p(3251),$=p(9808);const fe=function(){return{initial:!1}};function ye(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,fe)),i.xp6(1),i.Oqu(K.links[1].name)}}function ke(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Ee=(()=>{class _e{constructor(K,We){this.store=K,this.router=We,this.faUserCog=_.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink=Bt?Bt.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.appConfig=We}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(We=>{this.showBitcoind=!1,this.selNode=We,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Settings"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return We.activeLink=We.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,ye,2,5,"div",7),i.YNc(11,ke,2,3,"div",8),i.qZA(),i.TgZ(12,"div",9),i._UZ(13,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faUserCog),i.xp6(7),i.s9C("routerLink",We.links[0].link),i.Q6J("active",We.activeLink===We.links[0].link),i.xp6(1),i.Oqu(We.links[0].name),i.xp6(1),i.Q6J("ngIf",!+We.appConfig.sso.rtlSSO),i.xp6(1),i.Q6J("ngIf",We.showBitcoind))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,$.O5,g.yH,I.lC],styles:[""]}),_e})();var te=p(7731),ze=p(7861),be=p(5043),Z=p(8129),Y=p(3075),ot=p(7322),Ie=p(4107),Ae=p(3390),ce=p(508),Te=p(7423);function xe(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",16),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function G(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",2,3)(2,"div",4),i._UZ(3,"fa-icon",5),i.TgZ(4,"span",6),i._uU(5,"Default Node"),i.qZA()(),i.TgZ(6,"div",7)(7,"div",8),i._UZ(8,"fa-icon",9),i.TgZ(9,"span"),i._uU(10,"The setting will apply after RTL server restarts."),i.qZA()(),i.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().appConfig.defaultNodeIndex=Bt}),i.YNc(14,xe,2,3,"mat-option",12),i.qZA()()(),i.TgZ(15,"div",13)(16,"div",10)(17,"button",14),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetSettings()}),i._uU(18,"Reset"),i.qZA(),i.TgZ(19,"button",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onUpdateSettings()}),i._uU(20,"Update"),i.qZA()()()()()}if(2&_e){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faWindowRestore),i.xp6(5),i.Q6J("icon",K.faInfoCircle),i.xp6(5),i.Q6J("ngModel",K.appConfig.defaultNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}let ee=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.faWindowRestore=_.wyP,this.faPlus=_.r8p,this.previousDefaultNode=0,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(K)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,ze.zQ)({payload:{uiMessage:te.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i.YNc(1,G,21,4,"form",1),i.qZA()),2&K&&(i.xp6(1),i.Q6J("ngIf",We.appConfig.nodes&&We.appConfig.nodes.length&&We.appConfig.nodes.length>0))},directives:[g.xw,g.yH,Z.$V,$.O5,Y._Y,Y.JL,Y.F,g.Wh,V.BN,ot.KE,Ie.gD,Ae.h,Y.JJ,Y.On,$.sg,ce.ey,Te.lW],styles:[""]}),_e})();var ue=p(8012),ve=p(5698),Le=p(8966),lt=p(5768),ht=p(3093),Tt=p(7261),hi=p(5615),jt=p(7531),Gt=p(159),di=p(6895);const vt=["stepper"];function kt(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw();i.Oqu(K.passwordFormLabel)}}function gt(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function Qe(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.secretFormLabel)}}function _t(_e,Xe){if(1&_e&&i._UZ(0,"qr-code",32),2&_e){const K=i.oxw(2);i.Q6J("value",K.otpauth)("size",180)("errorCorrectionLevel","L")}}function ei(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Secret Code is required."),i.qZA())}function Zt(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-step",10)(1,"form",21),i.YNc(2,Qe,1,1,"ng-template",22),i.TgZ(3,"div",23),i.YNc(4,_t,1,3,"qr-code",24),i.qZA(),i.TgZ(5,"div",25),i._UZ(6,"fa-icon",26),i.TgZ(7,"span"),i._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.qZA()(),i.TgZ(9,"div",27)(10,"mat-form-field",1),i._UZ(11,"input",28),i.TgZ(12,"fa-icon",29),i.NdJ("copied",function(Bt){return i.CHM(K),i.oxw().onCopySecret(Bt)}),i.qZA(),i.YNc(13,ei,2,0,"mat-error",14),i.qZA()(),i.TgZ(14,"div",30)(15,"button",31),i._uU(16,"Next"),i.qZA()()()()}if(2&_e){const K=i.oxw();i.Q6J("stepControl",K.secretFormGroup)("editable",K.flgEditable),i.xp6(1),i.Q6J("formGroup",K.secretFormGroup),i.xp6(3),i.Q6J("ngIf",K.otpauth),i.xp6(2),i.Q6J("icon",K.faInfoCircle),i.xp6(6),i.Q6J("icon",K.faCopy)("payload",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret?null:K.secretFormGroup.controls.secret.value),i.xp6(1),i.Q6J("ngIf",null==K.secretFormGroup||null==K.secretFormGroup.controls||null==K.secretFormGroup.controls.secret||null==K.secretFormGroup.controls.secret.errors?null:K.secretFormGroup.controls.secret.errors.required)}}function Pe(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.tokenFormLabel)}}function De(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}function oe(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is invalid."),i.qZA())}function Me(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),i._UZ(3,"input",36),i.YNc(4,De,2,0,"mat-error",14),i.YNc(5,oe,2,0,"mat-error",14),i.qZA()(),i.TgZ(6,"div",30)(7,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(8),i.qZA()()()}if(2&_e){const K=i.oxw(2);i.xp6(4),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.required),i.xp6(1),i.Q6J("ngIf",null==K.tokenFormGroup||null==K.tokenFormGroup.controls||null==K.tokenFormGroup.controls.token||null==K.tokenFormGroup.controls.token.errors?null:K.tokenFormGroup.controls.token.errors.notValid),i.xp6(3),i.Oqu(null!=K.tokenFormGroup&&null!=K.tokenFormGroup.controls&&null!=K.tokenFormGroup.controls.token&&null!=K.tokenFormGroup.controls.token.errors&&K.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ut(_e,Xe){1&_e&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Success! You are all set."),i.qZA()())}function ft(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Pe,1,1,"ng-template",12),i.YNc(3,Me,9,3,"div",35),i.YNc(4,ut,3,0,"div",14),i.qZA()()),2&_e){const K=i.oxw();i.Q6J("stepControl",K.tokenFormGroup),i.xp6(1),i.Q6J("formGroup",K.tokenFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}function Rt(_e,Xe){if(1&_e&&i._uU(0),2&_e){const K=i.oxw(2);i.Oqu(K.disableFormLabel)}}function et(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",7)(1,"div",38),i._UZ(2,"fa-icon",26),i.TgZ(3,"span"),i._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.qZA()(),i.TgZ(5,"div",30)(6,"button",37),i.NdJ("click",function(){return i.CHM(K),i.oxw(2).onVerifyToken()}),i._uU(7,"Disable"),i.qZA()()()}if(2&_e){const K=i.oxw(2);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function Re(_e,Xe){1&_e&&(i.TgZ(0,"div")(1,"strong"),i._uU(2,"Two factor authentication removed from RTL."),i.qZA()())}function qe(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-step",33)(1,"form",34),i.YNc(2,Rt,1,1,"ng-template",12),i.YNc(3,et,8,1,"div",35),i.YNc(4,Re,3,0,"div",14),i.qZA()()),2&_e){const K=i.oxw();i.Q6J("stepControl",K.disableFormGroup),i.xp6(1),i.Q6J("formGroup",K.disableFormGroup),i.xp6(2),i.Q6J("ngIf",!K.flgValidated||!K.isTokenValid),i.xp6(1),i.Q6J("ngIf",K.flgValidated&&K.isTokenValid)}}let Ze=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he){this.dialogRef=K,this.data=We,this.store=Bt,this.formBuilder=Ce,this.rtlEffects=ge,this.snackBar=he,this.faExclamationTriangle=_.eHv,this.faCopy=_.kZ_,this.faInfoCircle=_.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[Y.kI.required]],password:["",[Y.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Y.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Y.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new D.x,new D.x]}ngOnInit(){var K,We;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(We=this.appConfig)||void 0===We?void 0:We.enable2FA)?"":this.generateSecret(),disabled:!0},Y.kI.required]})}generateSecret(){const K=lt.authenticator.generateSecret();return this.otpauth=lt.authenticator.keyuri("","Ride The Lightning (RTL)",K),K}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,ze.QO)({payload:ue(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,ve.q)(1)).subscribe(K=>{"ERROR"!==K?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(K){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var K,We;if(null===(K=this.appConfig)||void 0===K?void 0:K.enable2FA)this.store.dispatch((0,ze.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=lt.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,ze.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(We=this.appConfig)||void 0===We?void 0:We.enable2FA))}stepSelectionChanged(K){switch(K.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}K.selectedIndex{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(Le.so),i.Y36(Le.WI),i.Y36(y.yh),i.Y36(Y.qu),i.Y36(ht.V),i.Y36(Tt.ux))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-two-factor-auth"]],viewQuery:function(K,We){if(1&K&&i.Gf(vt,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.stepper=Bt.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Setup Two Factor Authentication"),i.qZA()(),i.TgZ(6,"button",5),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),i.NdJ("selectionChange",function(Ce){return We.stepSelectionChanged(Ce)}),i.TgZ(12,"mat-step",10)(13,"form",11),i.YNc(14,kt,1,1,"ng-template",12),i.TgZ(15,"div",0)(16,"mat-form-field",1),i._UZ(17,"input",13),i.YNc(18,gt,2,0,"mat-error",14),i.qZA()(),i.TgZ(19,"div",15)(20,"button",16),i.NdJ("click",function(){return We.onAuthenticate()}),i._uU(21,"Confirm"),i.qZA()()()(),i.YNc(22,Zt,17,8,"mat-step",17),i.YNc(23,ft,5,4,"mat-step",18),i.YNc(24,qe,5,4,"mat-step",18),i.qZA(),i.TgZ(25,"div",19)(26,"button",20),i._uU(27),i.qZA()()()()()()),2&K&&(i.xp6(6),i.Q6J("mat-dialog-close",!1),i.xp6(4),i.Q6J("linear",!0),i.xp6(2),i.Q6J("stepControl",We.passwordFormGroup)("editable",We.flgEditable),i.xp6(1),i.Q6J("formGroup",We.passwordFormGroup),i.xp6(5),i.Q6J("ngIf",null==We.passwordFormGroup||null==We.passwordFormGroup.controls||null==We.passwordFormGroup.controls.password||null==We.passwordFormGroup.controls.password.errors?null:We.passwordFormGroup.controls.password.errors.required),i.xp6(4),i.Q6J("ngIf",!We.showDisableStepper),i.xp6(1),i.Q6J("ngIf",!We.showDisableStepper),i.xp6(1),i.Q6J("ngIf",We.showDisableStepper),i.xp6(2),i.Q6J("mat-dialog-close",!1),i.xp6(1),i.Oqu(We.flgValidated&&We.isTokenValid?"Close":"Cancel"))},directives:[g.xw,g.yH,R.dk,g.Wh,Te.lW,Le.ZT,R.dn,hi.Vq,hi.C0,Y._Y,Y.JL,Y.sg,hi.VY,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.JJ,Y.u,Y.Q7,$.O5,ot.TO,Gt.uU,V.BN,ot.R9,di.y,hi.Ic],styles:[""]}),_e})();var we=p(5986),Fe=p(4834);const rt=["authForm"];function at(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Current password is required."),i.qZA())}function yt(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorMsg)}}function mi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(1),i.Oqu(K.errorConfirmMsg)}}function Xt(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",10,11)(2,"div",12),i._UZ(3,"fa-icon",4),i.TgZ(4,"span",5),i._uU(5,"Password"),i.qZA()(),i.TgZ(6,"mat-form-field")(7,"input",13),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().currPassword=Bt}),i.qZA(),i.YNc(8,at,2,0,"mat-error",14),i.qZA(),i.TgZ(9,"mat-form-field")(10,"input",15),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().newPassword=Bt}),i.qZA(),i.YNc(11,yt,2,1,"mat-error",14),i.qZA(),i.TgZ(12,"mat-form-field")(13,"input",16),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw().confirmPassword=Bt}),i.qZA(),i.YNc(14,mi,2,1,"mat-error",14),i.qZA(),i.TgZ(15,"div",17)(16,"button",18),i.NdJ("click",function(){return i.CHM(K),i.oxw().onResetPassword()}),i._uU(17,"Reset"),i.qZA(),i.TgZ(18,"button",19),i.NdJ("click",function(){return i.CHM(K),i.oxw().onChangePassword()}),i._uU(19,"Change Password"),i.qZA()(),i.TgZ(20,"div",20),i._UZ(21,"mat-divider",21),i.qZA()()}if(2&_e){const K=i.oxw();i.xp6(3),i.Q6J("icon",K.faLock),i.xp6(4),i.Q6J("ngModel",K.currPassword),i.xp6(1),i.Q6J("ngIf",!K.currPassword),i.xp6(2),i.Q6J("ngModel",K.newPassword),i.xp6(1),i.Q6J("ngIf",K.matchOldAndNewPasswords()),i.xp6(2),i.Q6J("ngModel",K.confirmPassword),i.xp6(1),i.Q6J("ngIf",K.matchNewPasswords()),i.xp6(7),i.Q6J("inset",!0)}}let Jt=(()=>{class _e{constructor(K,We,Bt,Ce,ge){this.logger=K,this.store=We,this.actions=Bt,this.router=Ce,this.sessionService=ge,this.faInfoCircle=_.sqG,this.faUserLock=_.FJU,this.faUserClock=_.hnx,this.faLock=_.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.appConfig=K,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,se.h)(K=>K.type===te.pg.RESET_PASSWORD_RES)).subscribe(K=>{var We;if(te.kO.includes(this.currPassword.toLowerCase()))switch(null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||te.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,ze.c0)({payload:{currPassword:ue(this.currPassword).toString(),newPassword:ue(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let K=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",K=!0):te.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==te.kO?void 0:te.kO.reduce((We,Bt,Ce)=>Ce{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(d.eX),i.Y36(I.F0),i.Y36(we.m))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-auth-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(rt,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i.YNc(1,Xt,22,8,"form",1),i.TgZ(2,"div",2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Two Factor Authentication"),i.qZA()(),i.TgZ(7,"div",6),i._UZ(8,"fa-icon",7),i.TgZ(9,"span"),i._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){return We.on2FAuth()}),i._uU(13),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("ngIf",null==We.appConfig?null:We.appConfig.allowPasswordUpdate),i.xp6(3),i.Q6J("icon",We.faUserClock),i.xp6(4),i.Q6J("icon",We.faInfoCircle),i.xp6(5),i.Oqu(We.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[g.xw,g.yH,g.Wh,$.O5,Y._Y,Y.JL,Y.F,V.BN,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,ot.TO,Te.lW,Fe.d],styles:[""]}),_e})();var qi=p(4623);function ui(_e,Xe){1&_e&&i._UZ(0,"mat-divider",7)}function si(_e,Xe){if(1&_e&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,ui,1,0,"mat-divider",6),i.qZA()),2&_e){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function en(_e,Xe){if(1&_e&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ui(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Bi(_e,Xe){1&_e&&i._UZ(0,"mat-divider",15),2&_e&&i.Q6J("inset",!0)}function Gi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,en,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Ui,2,1,"h4",12),i.qZA(),i.YNc(5,Bi,1,1,"mat-divider",13),i.qZA()),2&_e){const K=Xe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function ct(_e,Xe){if(1&_e&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Gi,6,3,"mat-list-item",9),i.qZA()()),2&_e){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let Ft=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.rtlEffects=We,this.router=Bt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const We=K.data;this.fileFormat=K.format,this.configData=""===We||!We||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==We&&We&&"JSON"===this.fileFormat?We:"":We.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,si,5,4,"div",2),i.YNc(3,ct,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==We.configData&&"JSON"===We.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==We.configData&&("INI"===We.fileFormat||"HOCON"===We.fileFormat)))},directives:[g.xw,g.yH,g.Wh,$.O5,Fe.d,qi.i$,$.sg,qi.Tg,R.$j],pipes:[$.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const pt=function(){return{initial:!1}};function it(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,pt)),i.xp6(1),i.Oqu(K.links[1].name)}}function It(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}function de(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[3].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[3].link),i.Q6J("active",K.activeLink===K.links[3].link),i.xp6(1),i.Oqu(K.links[3].name)}}let $e=(()=>{class _e{constructor(K,We){this.store=K,this.router=We,this.faTools=_.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink=Bt?Bt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{var Bt;switch(this.showLnConfig=!1,this.selNode=We,null===(Bt=this.selNode.lnImplementation)||void 0===Bt?void 0:Bt.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-node-config"]],decls:15,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Node Config"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),i.NdJ("click",function(){return We.activeLink=We.links[0].link}),i._uU(9),i.qZA(),i.YNc(10,it,2,5,"div",7),i.YNc(11,It,2,3,"div",8),i.YNc(12,de,2,3,"div",8),i.qZA(),i.TgZ(13,"div",9),i._UZ(14,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faTools),i.xp6(7),i.s9C("routerLink",We.links[0].link),i.Q6J("active",We.activeLink===We.links[0].link),i.xp6(1),i.Oqu(We.links[0].name),i.xp6(1),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())||"CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf",We.showLnConfig))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,H.Nj,I.rH,$.O5,g.yH,I.lC],styles:[""]}),_e})();function bt(_e,Xe){1&_e&&i._UZ(0,"mat-divider",7)}function Vt(_e,Xe){if(1&_e&&(i.TgZ(0,"div",4)(1,"pre",5),i._uU(2),i.ALo(3,"json"),i.qZA(),i.YNc(4,bt,1,0,"mat-divider",6),i.qZA()),2&_e){const K=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,2,K.configData)),i.xp6(2),i.Q6J("ngIf",""!==K.configData)}}function bi(_e,Xe){if(1&_e&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Li(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",14),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K)}}function Ji(_e,Xe){1&_e&&i._UZ(0,"mat-divider",15),2&_e&&i.Q6J("inset",!0)}function Wi(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),i.YNc(2,bi,2,1,"h2",10),i.qZA(),i.TgZ(3,"mat-card-subtitle",11),i.YNc(4,Li,2,1,"h4",12),i.qZA(),i.YNc(5,Ji,1,1,"mat-divider",13),i.qZA()),2&_e){const K=Xe.$implicit;i.xp6(2),i.Q6J("ngIf",K.indexOf("[")>=0),i.xp6(2),i.Q6J("ngIf",K.indexOf("[")<0),i.xp6(1),i.Q6J("ngIf",K.indexOf("[")<0)}}function sn(_e,Xe){if(1&_e&&(i.TgZ(0,"div",8)(1,"mat-list"),i.YNc(2,Wi,6,3,"mat-list-item",9),i.qZA()()),2&_e){const K=i.oxw();i.xp6(2),i.Q6J("ngForOf",K.configData)}}let mn=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.rtlEffects=We,this.router=Bt,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=_.b7W,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(K=>K instanceof I.Av)).subscribe({next:K=>{this.selectedNodeType=K.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}}),this.store.dispatch((0,ze.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{const We=K.data;this.fileFormat=K.format,this.configData=""===We||!We||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==We&&We&&"JSON"===this.fileFormat?We:"":We.split("\n")})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(ht.V),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Vt,5,4,"div",2),i.YNc(3,sn,3,1,"div",3),i.qZA()()),2&K&&(i.xp6(2),i.Q6J("ngIf",""!==We.configData&&"JSON"===We.fileFormat),i.xp6(1),i.Q6J("ngIf",""!==We.configData&&("INI"===We.fileFormat||"HOCON"===We.fileFormat)))},directives:[g.xw,g.yH,g.Wh,$.O5,Fe.d,qi.i$,$.sg,qi.Tg,R.$j],pipes:[$.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();var Yt=p(2994),Mi=p(429),Je=p(6523),Nt=p(62),Kt=p(2368),pi=p(9814),Ri=p(3322);function ki(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",35),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.id),i.xp6(1),i.hij(" ",K.id," ")}}function hn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Currency unit is required."),i.qZA())}function Hn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-radio-button",36),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.Q6J("value",K)("checked",We.selNode.settings.userPersona===K),i.xp6(1),i.hij(" ",i.lcZ(2,3,K)," ")}}const An=function(_e){return{"mr-4":_e}};function Kn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-radio-button",37),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.Q6J("value",K)("ngClass",i.VKq(3,An,We.screenSize===We.screenSizeEnum.XS||We.screenSize===We.screenSizeEnum.SM)),i.xp6(1),i.hij("",K.name," ")}}const Cn=function(_e){return{skin:!0,"selected-color":_e}};function wi(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"span",38)(1,"div",39),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().changeThemeColor(Ce.id)}),i.ALo(2,"lowercase"),i.qZA(),i._uU(3),i.qZA()}if(2&_e){const K=Xe.$implicit,We=i.oxw();i.xp6(1),i.Tol(i.lcZ(2,4,K.id)),i.Q6J("ngClass",i.VKq(6,Cn,We.selectedThemeColor===K.id)),i.xp6(2),i.hij(" ",K.name," ")}}let Yi=(()=>{class _e{constructor(K,We,Bt){this.logger=K,this.commonService=We,this.store=Bt,this.faExclamationTriangle=_.eHv,this.faMoneyBillAlt=_.co4,this.faPaintBrush=_.XsY,this.faInfoCircle=_.sqG,this.userPersonas=[te.ol.OPERATOR,te.ol.MERCHANT],this.currencyUnits=te.Er,this.themeModes=te.wZ.modes,this.themeColors=te.wZ.themes,this.selectedThemeMode=te.wZ.modes[0],this.selectedThemeColor=te.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=te.cu,this.unSubs=[new D.x,new D.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.selectedThemeMode=this.themeModes.find(We=>this.selNode.settings.themeMode===We.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(K)})}onCurrencyChange(K){this.selNode.settings.currencyUnits=[...te.uA,K.value],this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:K.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(K,We){this.selNode.settings[K]=!this.selNode.settings[K]}changeThemeColor(K){this.selectedThemeColor=K,this.selNode.settings.themeColor=K}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,ze.zQ)({payload:{uiMessage:te.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const K=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(We=>We.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,ze.fk)({payload:{uiMessage:te.m6.NO_SPINNER,prevLnNodeIndex:+K,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6,"Balance Display"),i.qZA()(),i.TgZ(7,"div",6)(8,"div",7),i._UZ(9,"fa-icon",8),i.TgZ(10,"span"),i._uU(11,"Fiat conversion calls "),i.TgZ(12,"strong")(13,"a",9),i._uU(14,"Blockchain.com"),i.qZA()(),i._uU(15," API to get conversion rates."),i.qZA()(),i.TgZ(16,"div",10)(17,"mat-slide-toggle",11),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.fiatConversion=Ce})("change",function(Ce){return We.selNode.settings.currencyUnit=Ce.checked?We.selNode.settings.currencyUnit:null}),i._uU(18,"Enable Fiat Conversion"),i.qZA(),i.TgZ(19,"mat-form-field")(20,"mat-select",12,13),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.currencyUnit=Ce})("selectionChange",function(Ce){return We.onCurrencyChange(Ce)}),i.YNc(22,ki,2,2,"mat-option",14),i.qZA(),i.YNc(23,hn,2,0,"mat-error",15),i.qZA()()(),i.TgZ(24,"div",16)(25,"div",17)(26,"div",18),i._UZ(27,"fa-icon",4),i.TgZ(28,"span",5),i._uU(29,"Customization"),i.qZA()(),i.TgZ(30,"div",6)(31,"div",19)(32,"div",20),i._UZ(33,"fa-icon",8),i.TgZ(34,"span"),i._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),i.qZA()(),i.TgZ(36,"div",21)(37,"h4"),i._uU(38,"Dashboard Layout"),i.qZA(),i.TgZ(39,"mat-radio-group",22),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.userPersona=Ce}),i.YNc(40,Hn,3,5,"mat-radio-button",23),i.qZA()()(),i._UZ(41,"mat-divider",24),i.TgZ(42,"div",25)(43,"div",26)(44,"h4"),i._uU(45,"Mode"),i.qZA(),i.TgZ(46,"mat-radio-group",27),i.NdJ("ngModelChange",function(Ce){return We.selectedThemeMode=Ce})("change",function(){return We.chooseThemeMode()}),i.YNc(47,Kn,2,5,"mat-radio-button",28),i.qZA()()(),i._UZ(48,"mat-divider",24),i.TgZ(49,"div",25)(50,"div",29)(51,"h4"),i._uU(52,"Themes"),i.qZA(),i.TgZ(53,"div",30),i.YNc(54,wi,4,8,"span",31),i.qZA()()()()()()(),i.TgZ(55,"div",32)(56,"button",33),i.NdJ("click",function(){return We.onResetSettings()}),i._uU(57,"Reset"),i.qZA(),i.TgZ(58,"button",34),i.NdJ("click",function(){return We.onUpdateSettings()}),i._uU(59,"Update"),i.qZA()()()),2&K&&(i.xp6(4),i.Q6J("icon",We.faMoneyBillAlt),i.xp6(5),i.Q6J("icon",We.faExclamationTriangle),i.xp6(8),i.Q6J("ngModel",We.selNode.settings.fiatConversion),i.xp6(3),i.Q6J("ngModel",We.selNode.settings.currencyUnit)("disabled",!We.selNode.settings.fiatConversion)("required",We.selNode.settings.fiatConversion),i.xp6(2),i.Q6J("ngForOf",We.currencyUnits),i.xp6(1),i.Q6J("ngIf",We.selNode.settings.fiatConversion&&!We.selNode.settings.currencyUnit),i.xp6(4),i.Q6J("icon",We.faPaintBrush),i.xp6(6),i.Q6J("icon",We.faInfoCircle),i.xp6(6),i.Q6J("ngModel",We.selNode.settings.userPersona),i.xp6(1),i.Q6J("ngForOf",We.userPersonas),i.xp6(1),i.Q6J("inset",!0),i.xp6(5),i.Q6J("ngModel",We.selectedThemeMode),i.xp6(1),i.Q6J("ngForOf",We.themeModes),i.xp6(1),i.Q6J("inset",!0),i.xp6(6),i.Q6J("ngForOf",We.themeColors))},directives:[g.xw,g.yH,Z.$V,Y._Y,Y.JL,Y.F,g.Wh,V.BN,Kt.Rr,Y.JJ,Y.On,ot.KE,Ie.gD,Ae.h,Y.Q7,$.sg,ce.ey,$.O5,ot.TO,pi.VQ,pi.U0,Fe.d,$.mk,Ri.oO,Te.lW],pipes:[$.rS,$.i8],styles:[""]}),_e})();function bn(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[0].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[0].link),i.Q6J("active",K.activeLink===K.links[0].link),i.xp6(1),i.Oqu(K.links[0].name)}}const Gn=function(){return{initial:!1}};function ar(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[1].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[1].link),i.Q6J("active",K.activeLink===K.links[1].link)("state",i.DdM(4,Gn)),i.xp6(1),i.Oqu(K.links[1].name)}}function kr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",9),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.activeLink=Bt.links[2].link}),i._uU(1),i.qZA()}if(2&_e){const K=i.oxw();i.s9C("routerLink",K.links[2].link),i.Q6J("active",K.activeLink===K.links[2].link),i.xp6(1),i.Oqu(K.links[2].name)}}let Pr=(()=>{class _e{constructor(K,We,Bt){this.store=K,this.router=We,this.activatedRoute=Bt,this.faLayerGroup=_.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){const K=this.links.find(We=>this.router.url.includes(We.link));this.activeLink=K?K.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,se.h)(We=>We instanceof I.Av)).subscribe({next:We=>{const Bt=this.links.find(Ce=>We.urlAfterRedirects.includes(Ce.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:Bt?Bt.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.selNode=We,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(I.F0),i.Y36(I.gz))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-services-settings"]],decls:13,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i._UZ(1,"fa-icon",1),i.TgZ(2,"span",2),i._uU(3,"Services"),i.qZA()(),i.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),i.YNc(8,bn,2,3,"div",6),i.YNc(9,ar,2,5,"div",7),i.YNc(10,kr,2,3,"div",6),i.qZA(),i.TgZ(11,"div",8),i._UZ(12,"router-outlet"),i.qZA()()()()),2&K&&(i.xp6(1),i.Q6J("icon",We.faLayerGroup),i.xp6(7),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","LND"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())),i.xp6(1),i.Q6J("ngIf","CLN"===(null==We.selNode||null==We.selNode.lnImplementation?null:We.selNode.lnImplementation.toUpperCase())))},directives:[g.xw,g.Wh,V.BN,R.a8,R.dn,H.BU,$.O5,H.Nj,I.rH,g.yH,I.lC],styles:[""]}),_e})();const ia=["form"];function sa(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop server URL is required."),i.qZA())}function oa(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the loop server url with 'https://'."),i.qZA())}function La(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Loop macaroon path is required."),i.qZA())}let Ta=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enableLoop=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableLoop=!(!K.settings.swapServerUrl||""===K.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(K)})}onEnableServiceChanged(K){this.enableLoop=K.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_LOOP_SETTINGS,service:te.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-loop-service-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(ia,7),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"loopd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enableLoop=Ce})("change",function(Ce){return We.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Loop Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return We.selNode.settings.swapServerUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),i.qZA(),i.YNc(22,sa,2,0,"mat-error",11),i.YNc(23,oa,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return We.selNode.authentication.swapMacaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),i.qZA(),i.YNc(28,La,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return We.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const Bt=i.MAs(19);i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enableLoop),i.xp6(3),i.Q6J("ngModel",We.selNode.settings.swapServerUrl)("required",We.enableLoop)("disabled",!We.enableLoop),i.xp6(4),i.Q6J("ngIf",!We.selNode.settings.swapServerUrl&&We.enableLoop),i.xp6(1),i.Q6J("ngIf",(null==Bt||null==Bt.errors?null:Bt.errors.invalid)&&We.enableLoop),i.xp6(2),i.Q6J("ngModel",We.selNode.authentication.swapMacaroonPath)("required",We.enableLoop)("disabled",!We.enableLoop),i.xp6(3),i.Q6J("ngIf",!We.selNode.authentication.swapMacaroonPath&&We.enableLoop)}},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,jt.Nt,Y.Fj,Y.Q7,ot.bx,$.O5,ot.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const rr=["form"];function Yr(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz server URL is required."),i.qZA())}function na(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Specify the boltz server url with 'https://'."),i.qZA())}function Ra(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Boltz macaroon path is required."),i.qZA())}let qr=(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enableBoltz=!(!K.settings.boltzServerUrl||""===K.settings.boltzServerUrl.trim()),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(K)})}onEnableServiceChanged(K){this.enableBoltz=K.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_BOLTZ_SETTINGS,service:te.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(K,We){if(1&K&&i.Gf(rr,7),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.form=Bt.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"boltzd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about the installation."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enableBoltz=Ce})("change",function(Ce){return We.onEnableServiceChanged(Ce)}),i._uU(16,"Enable Boltz Service"),i.qZA(),i.TgZ(17,"mat-form-field",8)(18,"input",9,10),i.NdJ("ngModelChange",function(Ce){return We.serverUrl=Ce}),i.qZA(),i.TgZ(20,"mat-hint"),i._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),i.qZA(),i.YNc(22,Yr,2,0,"mat-error",11),i.YNc(23,na,2,0,"mat-error",11),i.qZA(),i.TgZ(24,"mat-form-field")(25,"input",12),i.NdJ("ngModelChange",function(Ce){return We.macaroonPath=Ce}),i.qZA(),i.TgZ(26,"mat-hint"),i._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),i.qZA(),i.YNc(28,Ra,2,0,"mat-error",11),i.qZA()()(),i.TgZ(29,"div",13)(30,"button",14),i.NdJ("click",function(){return We.onReset()}),i._uU(31,"Reset"),i.qZA(),i.TgZ(32,"button",15),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(33,"Update"),i.qZA()()()),2&K){const Bt=i.MAs(19);i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enableBoltz),i.xp6(3),i.Q6J("ngModel",We.serverUrl)("required",We.enableBoltz)("disabled",!We.enableBoltz),i.xp6(4),i.Q6J("ngIf",(!We.serverUrl||""===We.serverUrl.trim())&&We.enableBoltz),i.xp6(1),i.Q6J("ngIf",(null==Bt||null==Bt.errors?null:Bt.errors.invalid)&&We.enableBoltz),i.xp6(2),i.Q6J("ngModel",We.macaroonPath)("required",We.enableBoltz)("disabled",!We.enableBoltz),i.xp6(3),i.Q6J("ngIf",!We.macaroonPath&&We.enableBoltz)}},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,jt.Nt,Y.Fj,Y.Q7,ot.bx,$.O5,ot.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();class wr{constructor(Xe){this.help=Xe}}var lr=p(1125);function ma(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"mat-panel-description",9),i._UZ(5,"span",10),i.TgZ(6,"a",11),i._uU(7),i.qZA()()()),2&_e){const K=i.oxw().$implicit,We=i.oxw();i.xp6(3),i.Oqu(K.help.question),i.xp6(2),i.Q6J("innerHTML",K.help.answer,i.oJD),i.xp6(1),i.Q6J("routerLink",We.flgLoggedIn?We.LNPLink+K.help.link:"/login"),i.xp6(1),i.Oqu(We.flgLoggedIn?K.help.linkCaption:"Login to go to the page")}}function jr(_e,Xe){if(1&_e&&(i.TgZ(0,"div",6),i.YNc(1,ma,8,4,"mat-expansion-panel",7),i.qZA()),2&_e){const K=Xe.$implicit,We=i.oxw();i.xp6(1),i.Q6J("ngIf","ALL"===K.help.lnImplementation||K.help.lnImplementation===We.selNode.lnImplementation)}}let Dr=(()=>{class _e{constructor(K,We){this.store=K,this.sessionService=We,this.helpTopics=[],this.faQuestion=_.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],this.helpTopics.push(new wr({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new wr({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new wr({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new wr({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{var We;switch(this.selNode=K,null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.LNPLink="/cln/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.flgLoggedIn=!!K.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(y.yh),i.Y36(we.m))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span",3),i._uU(4,"Help"),i.qZA()(),i.TgZ(5,"div",4)(6,"div",0),i.YNc(7,jr,2,1,"div",5),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faQuestion),i.xp6(5),i.Q6J("ngForOf",We.helpTopics))},directives:[g.xw,g.yH,g.Wh,V.BN,$.sg,$.O5,lr.ib,lr.yz,lr.yK,lr.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),_e})();var Nr=p(9841);function Ur(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Token is required."),i.qZA())}let mr=(()=>{class _e{constructor(K,We){this.dialogRef=K,this.store=We,this.faUserClock=_.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,ze.M6)({payload:{twoFAToken:this.token}}))}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(Le.so),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),i._uU(5,"Two Factor Token"),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return We.onClose()}),i._uU(7,"X"),i.qZA()(),i.TgZ(8,"mat-card-content",6)(9,"form",7,8),i.NdJ("ngSubmit",function(){return We.onVerifyToken()}),i.TgZ(11,"mat-form-field")(12,"input",9),i.NdJ("ngModelChange",function(Ce){return We.token=Ce}),i.qZA(),i.YNc(13,Ur,2,0,"mat-error",10),i.qZA(),i.TgZ(14,"div",11)(15,"button",12),i._uU(16,"Verify Token"),i.qZA()()()()()()),2&K&&(i.xp6(12),i.Q6J("ngModel",We.token),i.xp6(1),i.Q6J("ngIf",!We.token))},directives:[g.xw,g.Wh,g.yH,R.dk,Te.lW,R.dn,Y._Y,Y.JL,Y.F,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,$.O5,ot.TO],styles:[""]}),_e})();var gr=p(5245);function ra(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Password is required."),i.qZA())}function ca(_e,Xe){if(1&_e&&(i.TgZ(0,"p",21)(1,"mat-icon",22),i._uU(2,"close"),i.qZA(),i._uU(3),i.qZA()),2&_e){const K=i.oxw();i.xp6(3),i.hij(" ",K.loginErrorMessage," ")}}const da=function(_e){return{"padding-gap-large":_e}},Jn=function(_e,Xe){return{"font-size-200":_e,"font-size-300":Xe}};let ga=(()=>{class _e{constructor(K,We,Bt,Ce){this.logger=K,this.store=We,this.rtlEffects=Bt,this.commonService=Ce,this.faUnlockAlt=_.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=te.cu,this.loginErrorMessage="",this.apiCallStatusEnum=te.Bn,this.unSubs=[new D.x,new D.x,new D.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Nr.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([K,We])=>{this.loginErrorMessage="",K.status===te.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof K.message?JSON.stringify(K.message):K.message),this.logger.error(K.message)),We.status===te.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof We.message?JSON.stringify(We.message):We.message),this.logger.error(We.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.appConfig=K,this.logger.info(K)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,ze.qR)({payload:{maxWidth:"35rem",data:{component:mr}}})),this.rtlEffects.closeAlert.pipe((0,ve.q)(1)).subscribe(K=>{K&&this.store.dispatch((0,ze.x4)({payload:{password:ue(this.password),defaultPassword:te.kO.includes(this.password.toLowerCase()),twoFAToken:K.twoFAToken}}))})):this.store.dispatch((0,ze.x4)({payload:{password:ue(this.password),defaultPassword:te.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(ht.V),i.Y36(Nt.v))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),i._UZ(5,"img",5),i.qZA(),i.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),i._uU(10,"Welcome"),i.qZA()()(),i.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),i.NdJ("ngModelChange",function(Ce){return We.password=Ce}),i.qZA(),i.TgZ(16,"mat-icon",15),i.NdJ("click",function(){return We.flgShow=!We.flgShow}),i._uU(17),i.qZA(),i.YNc(18,ra,2,0,"mat-error",16),i.qZA(),i.YNc(19,ca,4,1,"p",17),i.TgZ(20,"div",18)(21,"button",19),i.NdJ("click",function(){return We.resetData()}),i._uU(22,"Clear"),i.qZA(),i.TgZ(23,"button",20),i.NdJ("click",function(){return We.onLogin()}),i._uU(24,"Login"),i.qZA()()()()()()()()()),2&K&&(i.xp6(6),i.Q6J("ngClass",i.VKq(7,da,We.screenSize===We.screenSizeEnum.XS)),i.xp6(2),i.Q6J("ngClass",i.WLB(9,Jn,We.screenSize===We.screenSizeEnum.XS,We.screenSize!==We.screenSizeEnum.XS)),i.xp6(7),i.Q6J("type",We.flgShow?"text":"password")("ngModel",We.password),i.xp6(2),i.Oqu(We.flgShow?"visibility_off":"visibility"),i.xp6(1),i.Q6J("ngIf",!We.password),i.xp6(1),i.Q6J("ngIf",""!==We.loginErrorMessage))},directives:[g.xw,g.yH,g.Wh,R.a8,$.mk,Ri.oO,R.dk,R.n5,R.dn,Y._Y,Y.JL,Y.F,ot.KE,jt.Nt,Y.Fj,Ae.h,Y.Q7,Y.JJ,Y.On,gr.Hw,ot.R9,$.O5,ot.TO,Te.lW],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),_e})();var Ma=p(9442);let $n=(()=>{class _e{constructor(K,We){this.activatedRoute=K,this.router=We,this.error={errorCode:"",errorMessage:""},this.faTimes=_.NBC,this.unsubs=[new D.x,new D.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(K=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(I.gz),i.Y36(I.F0))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),i._UZ(4,"fa-icon",4),i.TgZ(5,"span",5),i._uU(6),i.qZA()()(),i.TgZ(7,"mat-card-content",6)(8,"div",7),i._uU(9),i.qZA(),i.TgZ(10,"span",8)(11,"button",9),i.NdJ("click",function(){return We.goToHelp()}),i._uU(12,"Go To Help"),i.qZA()()()()()),2&K&&(i.xp6(4),i.Q6J("icon",We.faTimes),i.xp6(2),i.hij("Error ",We.error.errorCode,""),i.xp6(3),i.Oqu(We.error.errorMessage))},directives:[g.xw,g.yH,g.Wh,R.a8,R.dk,R.n5,V.BN,R.dn,Te.lW],encapsulation:2}),_e})();var qn=p(1643),Hr=p(9828),br=p(8104),Fr=p(6534),ha=p(9843);function Aa(_e,Xe){1&_e&&i._UZ(0,"span",16)}function Wn(_e,Xe){1&_e&&i._UZ(0,"span",17)}function je(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"form",18,4)(2,"div",19),i._UZ(3,"fa-icon",2),i.TgZ(4,"span"),i._uU(5,"Please ensure that "),i.TgZ(6,"strong"),i._uU(7,"experimental-offers"),i.qZA(),i._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(9,"strong")(10,"a",20),i._uU(11,"here"),i.qZA()(),i._uU(12," to learn more about Core Lightning offers."),i.qZA()(),i.TgZ(13,"h4",21),i._uU(14,"Description"),i.qZA(),i.TgZ(15,"span"),i._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),i.qZA(),i.TgZ(17,"h4",21),i._uU(18,"Links"),i.qZA(),i.TgZ(19,"span")(20,"a",22),i._uU(21,"Core lightning Bolt12"),i.qZA()(),i._UZ(22,"mat-divider",23),i.TgZ(23,"div",24),i._UZ(24,"fa-icon",2),i.TgZ(25,"span"),i._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),i.qZA()(),i.TgZ(27,"mat-slide-toggle",25),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(2).enableOffers=Bt})("change",function(){return i.CHM(K),i.oxw(2).onUpdateFeature()}),i._uU(28),i.qZA()()}if(2&_e){const K=i.oxw(2);i.xp6(3),i.Q6J("icon",K.faInfoCircle),i.xp6(19),i.Q6J("inset",!0),i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(3),i.Q6J("ngModel",K.enableOffers),i.xp6(1),i.hij("Enable Offers ",K.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function Mt(_e,Xe){if(1&_e&&(i.TgZ(0,"div")(1,"div",28),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"experimental-dual-fund"),i.qZA(),i._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),i.TgZ(8,"strong")(9,"a",29),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about Core Lightning Liquidity Ads."),i.qZA()()()),2&_e){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle)}}function Ye(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",47),i._uU(1),i.ALo(2,"titlecase"),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K),i.xp6(1),i.hij(" ",i.lcZ(2,2,K.id)," ")}}function Ot(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.hij("",K.selPolicyType.placeholder," is required.")}}function ri(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be greater than or equal to ",K.selPolicyType.min,".")}}function Si(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-error"),i._uU(1),i.qZA()),2&_e){const K=i.oxw(4);i.xp6(1),i.AsE("",K.selPolicyType.placeholder," must be less than or equal to ",K.selPolicyType.max,".")}}function Oi(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base fee is required."),i.qZA())}function rn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Lease base basis is required."),i.qZA())}function Yn(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing base fee is required."),i.qZA())}function At(_e,Xe){1&_e&&(i.TgZ(0,"mat-error"),i._uU(1,"Max channel routing fee rate is required."),i.qZA())}const oi=function(_e,Xe){return{"alert-danger":_e,"alert-info":Xe}};function mt(_e,Xe){if(1&_e&&(i.TgZ(0,"h4",48)(1,"span",49),i._uU(2),i.qZA()()),2&_e){const K=i.oxw(4);i.xp6(1),i.Q6J("ngClass",i.WLB(2,oi,!!K.updateMsg.error,!!K.updateMsg.data)),i.xp6(1),i.hij(" ",K.updateMsg.error&&""!==K.updateMsg.error?"Error: "+K.updateMsg.error||0:K.updateMsg.data&&""!==K.updateMsg.data?K.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function $t(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"div",30)(1,"div",31),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),i.qZA()(),i.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).selPolicyType=Bt})("selectionChange",function(){return i.CHM(K),i.oxw(3).policyMod=null}),i.YNc(8,Ye,3,4,"mat-option",35),i.qZA()(),i.TgZ(9,"mat-form-field",36)(10,"input",37,38),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).policyMod=Bt}),i.qZA(),i.TgZ(12,"mat-hint"),i._uU(13),i.qZA(),i.YNc(14,Ot,2,1,"mat-error",26),i.YNc(15,ri,2,2,"mat-error",26),i.YNc(16,Si,2,2,"mat-error",26),i.qZA()(),i.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).leaseFeeBaseSat=Bt}),i.qZA(),i.YNc(20,Oi,2,0,"mat-error",26),i.qZA(),i.TgZ(21,"mat-form-field",36)(22,"input",40),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).leaseFeeBasis=Bt}),i.qZA(),i.YNc(23,rn,2,0,"mat-error",26),i.qZA()(),i.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).channelFeeMaxBaseSat=Bt}),i.qZA(),i.YNc(27,Yn,2,0,"mat-error",26),i.qZA(),i.TgZ(28,"mat-form-field",36)(29,"input",42),i.NdJ("ngModelChange",function(Bt){return i.CHM(K),i.oxw(3).channelFeeMaxProportional=Bt}),i.qZA(),i.YNc(30,At,2,0,"mat-error",26),i.qZA()(),i.YNc(31,mt,3,5,"h4",43),i.TgZ(32,"div",44)(33,"button",45),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onResetPolicy()}),i._uU(34,"Reset"),i.qZA(),i.TgZ(35,"button",46),i.NdJ("click",function(){return i.CHM(K),i.oxw(3).onUpdateFundingPolicy()}),i._uU(36,"Update"),i.qZA()()()}if(2&_e){const K=i.oxw(3);i.xp6(2),i.Q6J("icon",K.faExclamationTriangle),i.xp6(5),i.Q6J("ngModel",K.selPolicyType),i.xp6(1),i.Q6J("ngForOf",K.policyTypes),i.xp6(2),i.Q6J("ngModel",K.policyMod)("placeholder",K.selPolicyType.placeholder)("step","fixed"===K.selPolicyType.id?1e3:10)("min",K.selPolicyType.min)("max",K.selPolicyType.max),i.xp6(3),i.lnq("",K.selPolicyType.placeholder," should be between ",K.selPolicyType.min," and ",K.selPolicyType.max,""),i.xp6(1),i.Q6J("ngIf",!K.policyMod),i.xp6(1),i.Q6J("ngIf",K.policyModK.selPolicyType.max),i.xp6(3),i.Q6J("ngModel",K.leaseFeeBaseSat),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBaseSat),i.xp6(2),i.Q6J("ngModel",K.leaseFeeBasis),i.xp6(1),i.Q6J("ngIf",!K.leaseFeeBasis),i.xp6(3),i.Q6J("ngModel",K.channelFeeMaxBaseSat),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxBaseSat),i.xp6(2),i.Q6J("ngModel",K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",!K.channelFeeMaxProportional),i.xp6(1),i.Q6J("ngIf",K.flgUpdateCalled)}}function Ai(_e,Xe){if(1&_e&&(i.TgZ(0,"form",18,4),i.YNc(2,Mt,12,1,"div",26),i.YNc(3,$t,37,23,"div",27),i.qZA()),2&_e){const K=i.oxw(2);i.xp6(2),i.Q6J("ngIf",!K.features[1].enabled),i.xp6(1),i.Q6J("ngIf",K.features[1].enabled)}}function ji(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-expansion-panel",9),i.NdJ("opened",function(){const Ce=i.CHM(K).index;return i.oxw().onPanelExpanded(Ce)}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),i._uU(4),i.qZA(),i.TgZ(5,"h4",11),i.YNc(6,Aa,1,0,"span",12),i.YNc(7,Wn,1,0,"span",13),i._uU(8),i.qZA()()(),i.TgZ(9,"div",14),i.YNc(10,je,29,5,"form",15),i.YNc(11,Ai,4,2,"form",15),i.qZA()()}if(2&_e){const K=Xe.$implicit,We=Xe.index;i.Q6J("expanded",!1),i.xp6(4),i.Oqu(K.name),i.xp6(2),i.Q6J("ngIf",K.enabled),i.xp6(1),i.Q6J("ngIf",!K.enabled),i.xp6(1),i.hij(" ",K.enabled?"Enabled":"Disabled"," "),i.xp6(2),i.Q6J("ngIf",0===We),i.xp6(1),i.Q6J("ngIf",1===We)}}let Ke=(()=>{class _e{constructor(K,We,Bt,Ce){this.logger=K,this.store=We,this.dataService=Bt,this.commonService=Ce,this.faInfoCircle=_.sqG,this.faExclamationTriangle=_.eHv,this.faCode=_.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=te.gB,this.selPolicyType=te.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:K=>{this.logger.info("Received List Configs: "+JSON.stringify(K)),this.features[1].enabled=!!K["experimental-dual-fund"]},error:K=>{this.logger.error("List Configs Error: "+JSON.stringify(K)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.selNode=K,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(Hr.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.policyTypes[2].max=K.balance.totalBalance||1e3})}onPanelExpanded(K){1===K&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(We=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(We)),this.fundingPolicy=We,this.fundingPolicy.policy&&(this.selPolicyType=te.gB.find(Bt=>Bt.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_SETTING,service:te.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,this.leaseFeeBaseSat,this.leaseFeeBasis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,x.R)(this.unSubs[4])).subscribe({next:K=>{this.logger.info(K),this.fundingPolicy=K,this.updateMsg={data:"Compact Lease: "+K.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:K=>{this.logger.error(K),this.updateMsg={error:this.commonService.extractErrorMessage(K,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?te.gB.find(K=>K.id===this.fundingPolicy.policy)||this.policyTypes[0]:te.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.leaseFeeBaseSat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.leaseFeeBasis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh),i.Y36(br.D),i.Y36(Nt.v))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","leaseFeeBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","leaseFeeBasis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),i.qZA()(),i.TgZ(5,"form",3,4)(7,"div",5),i._UZ(8,"fa-icon",6),i.TgZ(9,"span",7),i._uU(10,"Features"),i.qZA()(),i.TgZ(11,"mat-accordion"),i.YNc(12,ji,12,7,"mat-expansion-panel",8),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(6),i.Q6J("icon",We.faCode),i.xp6(4),i.Q6J("ngForOf",We.features))},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,lr.pp,$.sg,lr.ib,lr.yz,lr.yK,$.O5,Fe.d,Kt.Rr,Ae.h,Y.JJ,Y.On,ot.KE,Ie.gD,ce.ey,jt.Nt,Y.wV,Y.qQ,Y.Fd,Y.Fj,Fr.q,ha.F,Y.Q7,ot.bx,ot.TO,$.mk,Ri.oO,Te.lW],pipes:[$.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})();const Lt=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(508),p.e(515)]).then(p.bind(p,1515)).then(_e=>_e.LNDModule),canActivate:[qn.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(508),p.e(253)]).then(p.bind(p,253)).then(_e=>_e.CLNModule),canActivate:[qn.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(508),p.e(924)]).then(p.bind(p,7924)).then(_e=>_e.ECLModule),canActivate:[qn.a1]},{path:"settings",component:Ee,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:ee,canActivate:[qn.a1]},{path:"auth",component:Jt,canActivate:[qn.a1]},{path:"bconfig",component:Ft,canActivate:[qn.a1]}]},{path:"config",component:$e,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Yi,canActivate:[qn.a1]},{path:"services",component:Pr,canActivate:[qn.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:Ta,canActivate:[qn.a1]},{path:"boltz",component:qr,canActivate:[qn.a1]},{path:"peerswap",component:(()=>{class _e{constructor(K,We){this.logger=K,this.store=We,this.faInfoCircle=_.sqG,this.enablePeerswap=!1,this.unSubs=[new D.x,new D.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{this.selNode=K,this.enablePeerswap=!!(null==K?void 0:K.settings.enablePeerswap),this.logger.info(K)})}onUpdateService(){this.store.dispatch((0,ze.jS)({payload:{uiMessage:te.m6.UPDATE_PEERSWAP_SETTINGS,service:te.JX.PEERSWAP,settings:{enablePeerswap:this.enablePeerswap}}})),this.store.dispatch((0,Je.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Mi.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}})),this.store.dispatch((0,Yt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers,enablePeerswap:this.selNode.settings.enablePeerswap}}))}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(y.yh))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-peerswap-service-settings"]],decls:20,vars:2,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.peerswap.dev/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","peerswap",1,"mb-1",3,"ngModel","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i._UZ(2,"fa-icon",2),i.TgZ(3,"span"),i._uU(4,"Please ensure that "),i.TgZ(5,"strong"),i._uU(6,"peerswapd"),i.qZA(),i._uU(7," is running and accessible to RTL before enabling this service. Click "),i.TgZ(8,"strong")(9,"a",3),i._uU(10,"here"),i.qZA()(),i._uU(11," to learn more about peerswap."),i.qZA()(),i.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),i.NdJ("ngModelChange",function(Ce){return We.enablePeerswap=Ce}),i._uU(16,"Enable Peerswap Service"),i.qZA()()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return We.onUpdateService()}),i._uU(19,"Update"),i.qZA()()()),2&K&&(i.xp6(2),i.Q6J("icon",We.faInfoCircle),i.xp6(13),i.Q6J("ngModel",We.enablePeerswap))},directives:[g.xw,g.yH,Z.$V,V.BN,Y._Y,Y.JL,Y.F,g.Wh,Kt.Rr,Ae.h,Y.JJ,Y.On,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),_e})(),canActivate:[qn.a1]}]},{path:"experimental",component:Ke,canActivate:[qn.a1]},{path:"lnconfig",component:mn,canActivate:[qn.a1]}]},{path:"help",component:Dr},{path:"login",component:ga},{path:"error",component:$n},{path:"**",component:Ma.w}]);var vi=p(8750),$i=p(8878),Nn=p(4594),Sr=p(7238),Ca=p(2340),Jr=p(2181);function $a(_e,Xe){if(1&_e&&(i.TgZ(0,"p",2),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faCode),i.xp6(2),i.hij("API Version: ",null==K.information?null:K.information.api_version,"")}}function Hi(_e,Xe){if(1&_e&&(i.TgZ(0,"a",11),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",12),i._uU(3,"Settings"),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faUserCog)}}function Vn(_e,Xe){if(1&_e&&(i.TgZ(0,"a",13),i._UZ(1,"fa-icon",3),i.TgZ(2,"span",14),i._uU(3,"Help"),i.qZA()()),2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faLifeRing)}}function ms(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"a",15),i.NdJ("click",function(){return i.CHM(K),i.oxw().onClick()}),i._UZ(1,"fa-icon",3),i.TgZ(2,"span"),i._uU(3,"Logout"),i.qZA()()}if(2&_e){const K=i.oxw();i.xp6(1),i.Q6J("icon",K.faEject)}}let Cr=(()=>{class _e{constructor(K,We,Bt,Ce,ge){this.logger=K,this.sessionService=We,this.store=Bt,this.rtlEffects=Ce,this.actions=ge,this.faUserCog=_.gNZ,this.faCodeBranch=_.mh3,this.faCode=_.dT$,this.faCog=_.b7W,this.faLifeRing=_.uli,this.faEject=_.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x],this.version=Ca.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{if(this.information=K,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const We=this.information.chains[0];this.informationChain.chain=We.chain,this.informationChain.network=We.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(K)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.showLogout=!!K.token,this.flgLoading=!!K.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,se.h)(K=>K.type===te.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,ze.c1)({payload:{data:{type:te.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{K&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(we.m),i.Y36(y.yh),i.Y36(ht.V),i.Y36(d.eX))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(K,We){if(1&K&&(i.TgZ(0,"mat-menu",0,1)(2,"p",2),i._UZ(3,"fa-icon",3),i.TgZ(4,"span"),i._uU(5),i.qZA()(),i.YNc(6,$a,4,2,"p",4),i.YNc(7,Hi,4,1,"a",5),i.YNc(8,Vn,4,1,"a",6),i.YNc(9,ms,4,1,"a",7),i.qZA(),i.TgZ(10,"button",8),i._UZ(11,"img",9),i.TgZ(12,"mat-icon",10),i._uU(13,"arrow_drop_down"),i.qZA()()),2&K){const Bt=i.MAs(1);i.Q6J("overlapTrigger",!1),i.xp6(3),i.Q6J("icon",We.faCodeBranch),i.xp6(2),i.hij("Version: ",We.version,""),i.xp6(1),i.Q6J("ngIf",null==We.information?null:We.information.api_version),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("ngIf",We.showLogout),i.xp6(1),i.Q6J("matMenuTriggerFor",Bt)}},directives:[Jr.VK,Jr.OP,V.BN,$.O5,I.yS,I.rH,Te.lW,Jr.p6,gr.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),_e})();var ss=p(2638),Da=p(8258),cr=p(149);const Ia={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/lnd/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/lnd/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/lnd/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/lnd/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/lnd/transactions",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/lnd/routing",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/lnd/reports",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/lnd/graph",userPersona:te.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/lnd/messages",userPersona:te.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:_.q7m,link:"/lnd/channelbackup",userPersona:te.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:_.TmZ,link:"/lnd/network",userPersona:te.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:_.xf3,link:"/lnd/network",userPersona:te.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:_.Krp,link:"/lnd/services/loop",userPersona:te.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:_.vqe,link:"/lnd/services/loop",userPersona:te.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/lnd/services/boltz",userPersona:te.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/cln/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/cln/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/cln/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/cln/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:_.Acd,link:"/cln/liquidityads",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/cln/transactions",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/cln/routing",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/cln/reports",userPersona:te.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/cln/graph",userPersona:te.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:_.hkK,link:"/cln/messages",userPersona:te.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:_.USL,link:"/cln/rates",userPersona:te.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:_.xf3,link:"/cln/rates",userPersona:te.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:_.Krp,link:"/cln/services/peerswap",userPersona:te.ol.ALL,children:[{id:41,parentId:4,name:"Peerswap",iconType:"FA",icon:_.yOe,link:"/cln/services/peerswap",userPersona:te.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:_.HLz,link:"/ecl/home",userPersona:te.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:_.nNP,link:"/ecl/onchain",userPersona:te.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:_.BDt,link:"/ecl/connections",userPersona:te.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:_.FVb,link:"/ecl/connections",userPersona:te.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:_.Ssp,link:"/ecl/transactions",userPersona:te.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:_.SuH,link:"/ecl/routing",userPersona:te.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:_.koM,link:"/ecl/reports",userPersona:te.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:_.wn1,link:"/ecl/graph",userPersona:te.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:_.CgH,link:"/config",userPersona:te.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:_.Psp,link:"/help",userPersona:te.ol.ALL}]};function _s(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-option",11),i._uU(1),i.qZA()),2&_e){const K=Xe.$implicit;i.Q6J("value",K.index),i.xp6(1),i.AsE(" ",K.lnNode," (",K.lnImplementation,") ")}}function os(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-select",9),i.NdJ("selectionChange",function(Bt){return i.CHM(K),i.oxw().onNodeSelectionChange(Bt.value)}),i.YNc(1,_s,2,3,"mat-option",10),i.qZA()}if(2&_e){const K=i.oxw();i.Q6J("value",K.selConfigNodeIndex),i.xp6(1),i.Q6J("ngForOf",K.appConfig.nodes)}}function is(_e,Xe){if(1&_e&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.oxw(2);const We=i.MAs(11);i.xp6(1),i.Q6J("ngTemplateOutlet","boltzIconBlock"===K.icon?We:null)}}function Vr(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",23),2&_e){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function Oa(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function Ct(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",15)(1,"div",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onChildNavClicked(Ce)}),i.TgZ(2,"div",17),i.YNc(3,is,2,1,"span",18),i.YNc(4,Vr,1,1,"fa-icon",19),i.YNc(5,Oa,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()()()()}if(2&_e){const K=Xe.$implicit;i.s9C("routerLink",K.link),i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function re(_e,Xe){if(1&_e&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function pe(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",23),2&_e){const K=i.oxw().$implicit;i.Q6J("icon",K.icon)}}function Ge(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",24),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Oqu(K.icon)}}function xt(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),i.YNc(3,re,2,1,"span",28),i.YNc(4,pe,1,1,"fa-icon",19),i.YNc(5,Ge,2,1,"mat-icon",20),i.TgZ(6,"span"),i._uU(7),i.qZA()(),i.TgZ(8,"button",29)(9,"mat-icon",30),i._uU(10),i.qZA()()(),i.TgZ(11,"div",31),i.GkF(12,32),i.qZA()()),2&_e){const K=Xe.$implicit,We=i.oxw(2);i.xp6(3),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name),i.xp6(1),i.uIk("aria-label","toggle "+K.name),i.xp6(2),i.Oqu(We.treeControlNested.isExpanded(K)?"arrow_drop_up":"arrow_drop_down"),i.xp6(1),i.ekj("tree-children-invisible",!We.treeControlNested.isExpanded(K))}}function Ht(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-tree",5,12),i.YNc(2,Ct,8,5,"mat-tree-node",13),i.YNc(3,xt,13,8,"mat-nested-tree-node",14),i.qZA()),2&_e){const K=i.oxw();i.Q6J("dataSource",K.navMenus)("treeControl",K.treeControlNested),i.xp6(3),i.Q6J("matTreeNodeDefWhen",K.hasChild)}}function ii(_e,Xe){if(1&_e&&(i.TgZ(0,"span",21),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function ni(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",36),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function Ci(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-icon",37),i._uU(1),i.qZA()),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.xp6(1),i.Oqu(K.icon)}}function Pi(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw().onShowData(Ce)}),i.YNc(1,ii,2,1,"span",18),i.YNc(2,ni,1,2,"fa-icon",34),i.YNc(3,Ci,2,2,"mat-icon",35),i.TgZ(4,"span"),i._uU(5),i.qZA()()}if(2&_e){const K=Xe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(1),i.Q6J("ngIf",!K.iconType),i.xp6(2),i.Oqu(K.name)}}function tn(_e,Xe){if(1&_e&&(i.TgZ(0,"span",33),i.GkF(1,22),i.qZA()),2&_e){const K=i.oxw().$implicit;i.xp6(1),i.Q6J("ngTemplateOutlet",K.icon)}}function cn(_e,Xe){if(1&_e&&i._UZ(0,"fa-icon",36),2&_e){const K=i.oxw().$implicit;i.s9C("matTooltip",K.name),i.Q6J("icon",K.icon)}}function wn(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"mat-tree-node",16),i.NdJ("click",function(){const Ce=i.CHM(K).$implicit;return i.oxw(2).onClick(Ce)}),i.YNc(1,tn,2,1,"span",28),i.YNc(2,cn,1,2,"fa-icon",34),i.TgZ(3,"span"),i._uU(4),i.qZA()()}if(2&_e){const K=Xe.$implicit;i.xp6(1),i.Q6J("ngIf","SVG"===K.iconType),i.xp6(1),i.Q6J("ngIf","FA"===K.iconType),i.xp6(2),i.Oqu(K.name)}}function Pn(_e,Xe){if(1&_e&&(i.TgZ(0,"mat-tree",5),i.YNc(1,wn,5,3,"mat-tree-node",6),i.qZA()),2&_e){const K=i.oxw();i.Q6J("dataSource",K.navMenusLogout)("treeControl",K.treeControlLogout)}}function yn(_e,Xe){1&_e&&(i.O4$(),i.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),i._UZ(3,"circle",41)(4,"path",42)(5,"path",43),i.qZA()()())}let Ln=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he){this.logger=K,this.commonService=We,this.sessionService=Bt,this.store=Ce,this.actions=ge,this.rtlEffects=he,this.ChildNavClicked=new i.vpe,this.faEject=_.KOR,this.faEye=_.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:_.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:_.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=te.ol,this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x,new D.x],this.treeControlNested=new Da.VY(Ue=>Ue.children),this.treeControlLogout=new Da.VY(Ue=>Ue.children),this.treeControlShowData=new Da.VY(Ue=>Ue.children),this.navMenus=new cr.WX,this.navMenusLogout=new cr.WX,this.navMenusShowData=new cr.WX,this.hasChild=(Ue,nt)=>!!nt.children&&nt.children.length>0,this.version=Ca.q4,Ia.LNDChildren&&200===Ia.LNDChildren[Ia.LNDChildren.length-1].id&&Ia.LNDChildren.pop(),this.navMenus.data=Ia.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const K=this.sessionService.getItem("token");this.showLogout=!!K,this.flgLoading=!!K,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(We=>{this.appConfig=We}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{var Bt,Ce;if(this.information=We.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ge=this.information.chains[0];this.informationChain.chain=ge.chain,this.informationChain.network=ge.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=We.selNode,this.settings=(null===(Bt=this.selNode)||void 0===Bt?void 0:Bt.settings)||null,this.selConfigNodeIndex=+((null===(Ce=We.selNode)||void 0===Ce?void 0:Ce.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(We)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(We=>{this.showLogout=!!We.token,this.flgLoading=!!We.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,se.h)(We=>We.type===te.pg.LOGOUT)).subscribe(We=>{this.showLogout=!1})}onClick(K){"Logout"===K.name&&(this.store.dispatch((0,ze.c1)({payload:{data:{type:te.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(We=>{We&&(this.showLogout=!1,this.store.dispatch((0,ze.kS)()))})),this.ChildNavClicked.emit(K)}onChildNavClicked(K){this.ChildNavClicked.emit(K)}filterSideMenuNodes(){var K,We;switch(null===(We=null===(K=this.selNode)||void 0===K?void 0:K.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.LNDChildren)),this.navMenus.data=null==K?void 0:K.filter(We=>{var Bt,Ce;return We.children&&We.children.length?(We.children=null===(Bt=We.children)||void 0===Bt?void 0:Bt.filter(ge=>{var he,Ue,nt;return(ge.userPersona===te.ol.ALL||ge.userPersona===(null===(he=this.settings)||void 0===he?void 0:he.userPersona))&&"/services/loop"!==ge.link&&"/services/boltz"!==ge.link||"/services/loop"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===ge.link&&(null===(nt=this.settings)||void 0===nt?void 0:nt.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),We.children.length>0):We.userPersona===te.ol.ALL||We.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadCLNMenu(){let K=[];K=JSON.parse(JSON.stringify(Ia.CLNChildren)),this.navMenus.data=null==K?void 0:K.filter(We=>{var Bt,Ce;return We.children&&We.children.length?(We.children=null===(Bt=We.children)||void 0===Bt?void 0:Bt.filter(ge=>{var he,Ue;return(ge.userPersona===te.ol.ALL||ge.userPersona===(null===(he=this.settings)||void 0===he?void 0:he.userPersona))&&"/services/peerswap"!==ge.link||"/services/peerswap"===ge.link&&(null===(Ue=this.settings)||void 0===Ue?void 0:Ue.enablePeerswap)}),We.children.length>0):We.userPersona===te.ol.ALL||We.userPersona===(null===(Ce=this.settings)||void 0===Ce?void 0:Ce.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Ia.ECLChildren))}onShowData(K){this.store.dispatch((0,ze.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(K){const We=this.selConfigNodeIndex;this.selConfigNodeIndex=K;const Bt=this.appConfig.nodes.find(Ce=>+Ce.index===K);this.store.dispatch((0,ze.fk)({payload:{uiMessage:te.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+We,currentLnNode:Bt||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(null),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(we.m),i.Y36(y.yh),i.Y36(d.eX),i.Y36(ht.V))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-side-navigation"]],viewQuery:function(K,We){if(1&K&&i.Gf(cr.gi,5),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.tree=Bt.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,os,2,2,"mat-select",2),i._UZ(3,"mat-divider",3),i.YNc(4,Ht,4,3,"mat-tree",4),i._UZ(5,"mat-divider",3),i.TgZ(6,"mat-tree",5),i.YNc(7,Pi,6,4,"mat-tree-node",6),i.qZA()(),i.TgZ(8,"div",7),i.YNc(9,Pn,2,2,"mat-tree",4),i.qZA()(),i.YNc(10,yn,6,0,"ng-template",null,8,i.W1O)),2&K&&(i.xp6(2),i.Q6J("ngIf",We.appConfig.nodes.length>1),i.xp6(2),i.Q6J("ngIf",null==We.settings?null:We.settings.lnServerUrl),i.xp6(2),i.Q6J("dataSource",We.navMenusShowData)("treeControl",We.treeControlShowData),i.xp6(3),i.Q6J("ngIf",We.showLogout))},directives:[g.xw,g.yH,g.Wh,Z.$V,$.O5,Ie.gD,$.sg,ce.ey,Fe.d,cr.gi,cr.fQ,cr.uo,cr.eu,I.Od,I.rH,$.tP,V.BN,gr.Hw,cr.GZ,Te.lW,cr.Ar,Sr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),_e})();var Qn=p(773);const xr=["sideNavigation"],dr=["sideNavContent"];function Zr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"button",13),i.NdJ("click",function(){return i.CHM(K),i.oxw().sideNavToggle()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&_e){const K=i.oxw();i.Q6J("matTooltip",K.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",K.smallScreen)}}function Gr(_e,Xe){1&_e&&(i.O4$(),i._UZ(0,"path",18))}function hr(_e,Xe){1&_e&&(i.O4$(),i._UZ(0,"path",19))}function zr(_e,Xe){if(1&_e){const K=i.EpF();i.TgZ(0,"button",14),i.NdJ("click",function(){i.CHM(K);const Bt=i.oxw();return Bt.flgSidenavPinned=!Bt.flgSidenavPinned}),i.O4$(),i.TgZ(1,"svg",15),i.YNc(2,Gr,1,0,"path",16),i.YNc(3,hr,1,0,"path",17),i.qZA()()}if(2&_e){const K=i.oxw();i.Q6J("matTooltip",K.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.xp6(2),i.Q6J("ngIf",!K.flgSidenavPinned),i.xp6(1),i.Q6J("ngIf",K.flgSidenavPinned)}}function zn(_e,Xe){if(1&_e&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&_e){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"RTL - "+K.information.alias:"RTL")}}function ur(_e,Xe){if(1&_e&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&_e){const K=i.oxw();i.xp6(1),i.Oqu(K.information.alias?"Ride The Lightning - "+K.information.alias:"Ride The Lightning")}}function ka(_e,Xe){1&_e&&(i.TgZ(0,"div",20),i._UZ(1,"mat-spinner",21),i.TgZ(2,"h4"),i._uU(3,"Loading RTL..."),i.qZA()())}const tt=function(_e,Xe){return[_e,Xe]};let Et=(()=>{class _e{constructor(K,We,Bt,Ce,ge,he,Ue,nt,Dt){this.logger=K,this.commonService=We,this.store=Bt,this.actions=Ce,this.userIdle=ge,this.router=he,this.sessionService=Ue,this.breakpointObserver=nt,this.renderer=Dt,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x,new D.x]}ngOnInit(){this.router.events.subscribe(K=>{K instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([a.u3.XSmall,a.u3.TabletPortrait,a.u3.Small,a.u3.Medium,a.u3.Large,a.u3.XLarge]).pipe((0,x.R)(this.unSubs[0])).subscribe(K=>{K.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(te.cu.XS),this.smallScreen=!0):K.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(te.cu.SM),this.smallScreen=!0):K.breakpoints[a.u3.Small]||K.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(te.cu.MD),this.smallScreen=!1):K.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(te.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(te.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,ze.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(K=>{this.settings=K.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[2])).subscribe(K=>{this.appConfig=K}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(K=>{this.information=K,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,x.R)(this.unSubs[4]),(0,se.h)(K=>K.type===te.pg.SET_RTL_CONFIG||K.type===te.pg.LOGIN||K.type===te.pg.LOGOUT)).subscribe(K=>{K.type===te.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+K.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,ze.x4)({payload:{password:ue(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),K.type===te.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),K.type===te.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(K=>{this.logger.info("Counting Down: "+(11-K))}),this.userIdle.onTimeout().pipe((0,x.R)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,ze.ts)()),this.store.dispatch((0,ze.qR)({payload:{data:{type:te.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,ze.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const K=window.location.href;return K.includes("access-key=")?K.substring(K.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(K){this.smallScreen&&this.sideNavigation.close()}copiedText(K){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+K)}ngOnDestroy(){this.unSubs.forEach(K=>{K.next(),K.complete()})}}return _e.\u0275fac=function(K){return new(K||_e)(i.Y36(be.mQ),i.Y36(Nt.v),i.Y36(y.yh),i.Y36(d.eX),i.Y36(C),i.Y36(I.F0),i.Y36(we.m),i.Y36(a.Yg),i.Y36(i.Qsj))},_e.\u0275cmp=i.Xpm({type:_e,selectors:[["rtl-app"]],viewQuery:function(K,We){if(1&K&&(i.Gf(xr,5),i.Gf(dr,5)),2&K){let Bt;i.iGM(Bt=i.CRH())&&(We.sideNavigation=Bt.first),i.iGM(Bt=i.CRH())&&(We.sideNavContent=Bt.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(K,We){1&K&&(i.TgZ(0,"div",0),i.ALo(1,"lowercase"),i.ALo(2,"lowercase"),i.TgZ(3,"mat-toolbar",1)(4,"div"),i.YNc(5,Zr,3,2,"button",2),i.YNc(6,zr,4,3,"button",3),i.qZA(),i.TgZ(7,"div"),i.YNc(8,zn,2,1,"span",4),i.YNc(9,ur,2,1,"span",4),i.qZA(),i.TgZ(10,"div"),i._UZ(11,"rtl-top-menu"),i.qZA()(),i.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),i.NdJ("ChildNavClicked",function(Ce){return We.onNavigationClicked(Ce)}),i.qZA()(),i.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),i._UZ(19,"router-outlet",null,11),i.qZA()(),i._uU(21,"> "),i.qZA(),i.YNc(22,ka,4,0,"div",12),i.qZA()),2&K&&(i.Q6J("ngClass",i.WLB(12,tt,i.lcZ(1,8,We.settings.themeColor),i.lcZ(2,10,We.settings.themeMode))),i.xp6(5),i.Q6J("ngIf",We.flgLoggedIn),i.xp6(1),i.Q6J("ngIf",!We.smallScreen&&We.flgLoggedIn),i.xp6(2),i.Q6J("ngIf",We.smallScreen),i.xp6(1),i.Q6J("ngIf",!We.smallScreen),i.xp6(4),i.Q6J("opened",We.flgSideNavOpened&&We.flgLoggedIn)("mode",We.flgSidenavPinned&&!We.smallScreen?"side":"over"),i.xp6(9),i.Q6J("ngIf",!We.settings.themeColor))},directives:[g.xw,$.mk,Ri.oO,Nn.Ye,g.Wh,$.O5,Te.lW,Sr.gM,gr.Hw,Cr,ss.TM,ss.JX,Z.$V,Ln,g.yH,ss.Rh,I.lC,Qn.Ou],pipes:[$.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[$i.g]}}),_e})(),St=(()=>{class _e{constructor(K){this.sessionService=K}intercept(K,We){if(this.sessionService.getItem("token")){const Bt=K.clone({headers:K.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return We.handle(Bt)}return We.handle(K)}}return _e.\u0275fac=function(K){return new(K||_e)(i.LFG(we.m))},_e.\u0275prov=i.Yz7({token:_e,factory:_e.\u0275fac}),_e})();var Pt=p(9107),qt=p(7998),gi=p(2218),ti=p(711),fi=p(4947),Ei=p(3289);const Ki={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},Qi={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},on={apiURL:"",apisCallStatus:{Login:{status:te.Bn.UN_INITIATED},IsAuthorized:{status:te.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Ki,authentication:Qi,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Ki,authentication:Qi}]},nodeData:{}},xn=(0,y.Lq)(on,(0,y.on)(ze.qi,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(ze.vI,(_e,{payload:Xe})=>Object.assign(Object.assign({},on),{apisCallStatus:_e.apisCallStatus,appConfig:_e.appConfig,selNode:Xe})),(0,y.on)(ze.fk,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{selNode:Xe.currentLnNode})),(0,y.on)(ze.Tm,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.selNode));switch(Xe.service){case te.JX.BOLTZ:K.settings.boltzServerUrl=Xe.settings.boltzServerUrl;break;case te.JX.LOOP:K.settings.swapServerUrl=Xe.settings.swapServerUrl;break;case te.JX.OFFERS:K.settings.enableOffers=Xe.settings.enableOffers;break;case te.JX.PEERSWAP:K.settings.enablePeerswap=Xe.settings.enablePeerswap}return Object.assign(Object.assign({},_e),{selNode:K})}),(0,y.on)(ze._V,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeData:Xe})),(0,y.on)(ze.XT,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{appConfig:Xe}))),jn={apisCallStatus:{FetchInfo:{status:te.Bn.UN_INITIATED},FetchFees:{status:te.Bn.UN_INITIATED},FetchPeers:{status:te.Bn.UN_INITIATED},FetchClosedChannels:{status:te.Bn.UN_INITIATED},FetchPendingChannels:{status:te.Bn.UN_INITIATED},FetchAllChannels:{status:te.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:te.Bn.UN_INITIATED},FetchInvoices:{status:te.Bn.UN_INITIATED},FetchPayments:{status:te.Bn.UN_INITIATED},FetchForwardingHistory:{status:te.Bn.UN_INITIATED},FetchUTXOs:{status:te.Bn.UN_INITIATED},FetchTransactions:{status:te.Bn.UN_INITIATED},FetchLightningTransactions:{status:te.Bn.UN_INITIATED},FetchNetwork:{status:te.Bn.UN_INITIATED}},nodeSettings:{userPersona:te.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let On=!1,Kr=!1;const _a=(0,y.Lq)(jn,(0,y.on)(Je.PC,(_e,{payload:Xe})=>{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Je.JT,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Je.Ll,(_e,{payload:Xe})=>Object.assign(Object.assign({},jn),{nodeSettings:Xe})),(0,y.on)(Je.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Je.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Je.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.pub_key===Xe.pubkey);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Je.YP,(_e,{payload:Xe})=>{var K;const We=_e.listInvoices;return null===(K=We.invoices)||void 0===K||K.unshift(Xe),Object.assign(Object.assign({},_e),{listInvoices:We})}),(0,y.on)(Je.aL,(_e,{payload:Xe})=>{var K;const We=_e.listInvoices;return We.invoices=null===(K=We.invoices)||void 0===K?void 0:K.map(Bt=>Bt.payment_request===Xe.payment_request?Xe:Bt),Object.assign(Object.assign({},_e),{listInvoices:We})}),(0,y.on)(Je.qY,(_e,{payload:Xe})=>{var K;const We=_e.listPayments;return We.payments=null===(K=We.payments)||void 0===K?void 0:K.map(Bt=>Bt.payment_hash===Xe.payment_hash?Xe:Bt),Object.assign(Object.assign({},_e),{listPayments:We})}),(0,y.on)(Je.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Je._L,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{closedChannels:Xe})),(0,y.on)(Je.TW,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{pendingChannels:Xe.pendingChannels,pendingChannelsSummary:Xe.pendingChannelsSummary})),(0,y.on)(Je.as,(_e,{payload:Xe})=>{let K=0,We=0,Bt=0,Ce=0,ge=0,he=0;return Xe&&Xe.forEach(Ue=>{Ue.local_balance||(Ue.local_balance=0),!0===Ue.active?(ge+=+Ue.local_balance,Bt+=1,Ue.local_balance?K=+K+ +Ue.local_balance:Ue.local_balance=0,Ue.remote_balance?We=+We+ +Ue.remote_balance:Ue.remote_balance=0):(he+=+Ue.local_balance,Ce+=1)}),Object.assign(Object.assign({},_e),{channels:Xe,channelsSummary:{active:{num_channels:Bt,capacity:ge},inactive:{num_channels:Ce,capacity:he}},lightningBalance:{local:K,remote:We}})}),(0,y.on)(Je.OG,(_e,{payload:Xe})=>{const K=[..._e.channels],We=_e.channels.findIndex(Bt=>Bt.channel_point===Xe.channelPoint);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{channels:K})}),(0,y.on)(Je.Jl,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{blockchainBalance:Xe})),(0,y.on)(Je.ks,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{networkInfo:Xe})),(0,y.on)(Je.Nr,(_e,{payload:Xe})=>(Xe.total_invoices||(Xe.total_invoices=_e.listInvoices.total_invoices),Object.assign(Object.assign({},_e),{listInvoices:Xe}))),(0,y.on)(Je.Lf,(_e,{payload:Xe})=>{if(On=!0,Xe.length&&Kr){const K=[..._e.utxos];return K.forEach(We=>{const Bt=Xe.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=We.outpoint)||void 0===ge?void 0:ge.txid_str)});We.label=Bt&&Bt.label?Bt.label:""}),Object.assign(Object.assign({},_e),{utxos:K,transactions:Xe})}return Object.assign(Object.assign({},_e),{transactions:Xe})}),(0,y.on)(Je.UH,(_e,{payload:Xe})=>{if(Kr=!0,Xe.length&&On){const K=[..._e.transactions];Xe.forEach(We=>{const Bt=K.find(Ce=>{var ge;return Ce.tx_hash===(null===(ge=We.outpoint)||void 0===ge?void 0:ge.txid_str)});We.label=Bt&&Bt.label?Bt.label:""})}return Object.assign(Object.assign({},_e),{utxos:Xe})}),(0,y.on)(Je.HI,(_e,{payload:Xe})=>{const K={listInvoicesAll:_e.allLightningTransactions.listInvoicesAll,listPaymentsAll:Xe};return Object.assign(Object.assign({},_e),{listPayments:Xe,allLightningTransactions:K})}),(0,y.on)(Je.Fr,(_e,{payload:Xe})=>{const K={listInvoicesAll:Xe.listInvoicesAll,listPaymentsAll:_e.listPayments};return Object.assign(Object.assign({},_e),{allLightningTransactions:K})}),(0,y.on)(Je.QJ,(_e,{payload:Xe})=>{const K=[..._e.channels,..._e.closedChannels];let We=Xe.forwarding_events?JSON.parse(JSON.stringify(Xe)):{};return We.forwarding_events&&(We=ir(We,K)),Object.assign(Object.assign({},_e),{forwardingHistory:We})})),ir=(_e,Xe)=>(_e.forwarding_events.forEach(K=>{var We,Bt;if(Xe&&Xe.length>0)for(let Ce=0;Ce{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Mi.oo,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Mi.xH,(_e,{payload:Xe})=>Object.assign(Object.assign({},_r),{nodeSettings:Xe})),(0,y.on)(Mi.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Mi.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Mi.I8,(_e,{payload:Xe})=>Xe.perkb?Object.assign(Object.assign({},_e),{feeRatesPerKB:Xe}):Xe.perkw?Object.assign(Object.assign({},_e),{feeRatesPerKW:Xe}):Object.assign({},_e)),(0,y.on)(Mi.Lu,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{balance:Xe})),(0,y.on)(Mi.xS,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{localRemoteBalance:Xe})),(0,y.on)(Mi.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Mi.X3,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:[..._e.peers,Xe]})),(0,y.on)(Mi.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.id===Xe.id);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Mi.as,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{activeChannels:Xe.activeChannels,pendingChannels:Xe.pendingChannels,inactiveChannels:Xe.inactiveChannels})),(0,y.on)(Mi.OG,(_e,{payload:Xe})=>{const K=[..._e.peers];return K.forEach(We=>{We.id===Xe.id&&(We.connected=!1,delete We.netaddr)}),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Mi.HI,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{payments:Xe})),(0,y.on)(Mi.QJ,(_e,{payload:Xe})=>{const K=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels],We=Ir(Xe.listForwards,K);switch(Xe.listForwards=We,Xe.status){case te.OO.SETTLED:const Bt=_e.fees;return Bt.totalTxCount=Xe.totalForwards||0,Object.assign(Object.assign({},_e),{fees:Bt,forwardingHistory:Xe});case te.OO.FAILED:return Object.assign(Object.assign({},_e),{failedForwardingHistory:Xe});case te.OO.LOCAL_FAILED:return Object.assign(Object.assign({},_e),{localFailedForwardingHistory:Xe});default:return Object.assign({},_e)}}),(0,y.on)(Mi.YP,(_e,{payload:Xe})=>{var K;const We=_e.invoices;return null===(K=We.invoices)||void 0===K||K.unshift(Xe),Object.assign(Object.assign({},_e),{invoices:We})}),(0,y.on)(Mi.Nr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{invoices:Xe})),(0,y.on)(Mi.aL,(_e,{payload:Xe})=>{var K;const We=_e.invoices;return We.invoices=null===(K=We.invoices)||void 0===K?void 0:K.map(Bt=>Bt.label===Xe.label?Xe:Bt),Object.assign(Object.assign({},_e),{invoices:We})}),(0,y.on)(Mi.UH,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{utxos:Xe})),(0,y.on)(Mi.Zu,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{offers:Xe})),(0,y.on)(Mi.ZH,(_e,{payload:Xe})=>{const K=_e.offers;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{offers:K})}),(0,y.on)(Mi.JK,(_e,{payload:Xe})=>{const K=[..._e.offers],We=_e.offers.findIndex(Bt=>Bt.offer_id===Xe.offer.offer_id);return We>-1&&K.splice(We,1,Xe.offer),Object.assign(Object.assign({},_e),{offers:K})}),(0,y.on)(Mi.d7,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{offersBookmarks:Xe})),(0,y.on)(Mi.e9,(_e,{payload:Xe})=>{const K=[..._e.offersBookmarks],We=K.findIndex(Bt=>Bt.bolt12===Xe.bolt12);if(We<0)null==K||K.unshift(Xe);else{const Bt=Object.assign({},K[We]);Bt.title=Xe.title,Bt.amountmSat=Xe.amountmSat,Bt.lastUpdatedAt=Xe.lastUpdatedAt,Bt.description=Xe.description,Bt.vendor=Xe.vendor,K.splice(We,1,Bt)}return Object.assign(Object.assign({},_e),{offersBookmarks:K})}),(0,y.on)(Mi.en,(_e,{payload:Xe})=>{const K=[..._e.offersBookmarks],We=_e.offersBookmarks.findIndex(Bt=>Bt.bolt12===Xe.bolt12);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{offersBookmarks:K})}),(0,y.on)(Mi.HW,(_e,{payload:Xe})=>{const K=[],We=[];return Xe.forEach(Bt=>{Bt.type===te.fO.SWAP_OUT?K.push(Bt):We.push(Bt)}),Object.assign(Object.assign({},_e),{swapOuts:K,swapIns:We})}),(0,y.on)(Mi.bP,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{swapRequests:Xe})),(0,y.on)(Mi.oF,(_e,{payload:Xe})=>{const K=Xe.reduce((We,Bt)=>{var Ce,ge,he;const Ue=[];return Bt.alias=(null===(ge=null===(Ce=_e.peers)||void 0===Ce?void 0:Ce.find(nt=>nt.id===Bt.nodeid))||void 0===ge?void 0:ge.alias)||Bt.nodeid,null===(he=Bt.channels)||void 0===he||he.forEach(nt=>Ue.push(Object.assign(Object.assign({},Bt),nt))),[...We,...Ue]},[]);return Object.assign(Object.assign({},_e),{totalSwapPeers:Xe.length||0,swapPeers:K})}),(0,y.on)(Mi.it,(_e,{payload:Xe})=>{const K=_e.swapOuts;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{swapOuts:K})}),(0,y.on)(Mi.My,(_e,{payload:Xe})=>{const K=_e.swapIns;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{swapIns:K})})),Ir=(_e,Xe)=>(_e&&_e.length>0?_e.forEach((K,We)=>{var Bt;if(Xe&&Xe.length>0)for(let Ce=0;Ce{const K=JSON.parse(JSON.stringify(_e.apisCallStatus));return Xe.action&&(K[Xe.action]={status:Xe.status,statusCode:Xe.statusCode,message:Xe.message,URL:Xe.URL,filePath:Xe.filePath}),Object.assign(Object.assign({},_e),{apisCallStatus:K})}),(0,y.on)(Yt.Zr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{nodeSettings:Xe})),(0,y.on)(Yt.Fd,(_e,{payload:Xe})=>Object.assign(Object.assign({},Br),{nodeSettings:Xe})),(0,y.on)(Yt.CX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{information:Xe})),(0,y.on)(Yt.RX,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{fees:Xe})),(0,y.on)(Yt.eN,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{activeChannels:Xe})),(0,y.on)(Yt.TW,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{pendingChannels:Xe})),(0,y.on)(Yt.i,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{inactiveChannels:Xe})),(0,y.on)(Yt.HG,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{channelsStatus:Xe})),(0,y.on)(Yt.Bw,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{onchainBalance:Xe})),(0,y.on)(Yt.On,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{lightningBalance:Xe})),(0,y.on)(Yt.Z8,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{peers:Xe})),(0,y.on)(Yt.EK,(_e,{payload:Xe})=>{const K=[..._e.peers],We=_e.peers.findIndex(Bt=>Bt.nodeId===Xe.nodeId);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{peers:K})}),(0,y.on)(Yt.OG,(_e,{payload:Xe})=>{const K=[..._e.activeChannels],We=_e.activeChannels.findIndex(Bt=>Bt.channelId===Xe.channelId);return We>-1&&K.splice(We,1),Object.assign(Object.assign({},_e),{activeChannels:K})}),(0,y.on)(Yt.HI,(_e,{payload:Xe})=>{var K;if(Xe&&Xe.sent){const We=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels];null===(K=Xe.sent)||void 0===K||K.map(Bt=>{var Ce;const ge=_e.peers.find(he=>he.nodeId===Bt.recipientNodeId);return Bt.recipientNodeAlias=ge?ge.alias:Bt.recipientNodeId,Bt.parts&&(null===(Ce=Bt.parts)||void 0===Ce||Ce.map(he=>{const Ue=We.find(nt=>nt.channelId===he.toChannelId);return he.toChannelAlias=Ue?Ue.alias:he.toChannelId,Bt.parts})),Xe.sent})}if(Xe&&Xe.relayed){const We=[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels];Xe.relayed.forEach(Bt=>{Bt=za(Bt,We)})}return Object.assign(Object.assign({},_e),{payments:Xe})}),(0,y.on)(Yt.Lf,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{transactions:Xe})),(0,y.on)(Yt.YP,(_e,{payload:Xe})=>{const K=_e.invoices;return null==K||K.unshift(Xe),Object.assign(Object.assign({},_e),{invoices:K})}),(0,y.on)(Yt.Nr,(_e,{payload:Xe})=>Object.assign(Object.assign({},_e),{invoices:Xe})),(0,y.on)(Yt.aL,(_e,{payload:Xe})=>{let K=_e.invoices;return K=null==K?void 0:K.map(We=>{if(We.paymentHash===Xe.paymentHash){if(Xe.hasOwnProperty("type")){const Bt=JSON.parse(JSON.stringify(We));return Bt.amountSettled=Xe.parts&&Xe.parts.length&&Xe.parts.length>0&&Xe.parts[0].amount?(Xe.parts[0].amount||0)/1e3:0,Bt.receivedAt=Xe.parts&&Xe.parts.length&&Xe.parts.length>0&&Xe.parts[0].timestamp?Math.round((Xe.parts[0].timestamp||0)/1e3):0,Bt.status="received",Bt}return Xe}return We}),Object.assign(Object.assign({},_e),{invoices:K})}),(0,y.on)(Yt.DJ,(_e,{payload:Xe})=>{let K=_e.pendingChannels;return K=null==K?void 0:K.map(We=>{var Bt;return We.channelId===Xe.channelId&&We.nodeId===Xe.remoteNodeId&&(Xe.currentState=null===(Bt=Xe.currentState)||void 0===Bt?void 0:Bt.replace(/_/g," "),We.state=Xe.currentState),We}),Object.assign(Object.assign({},_e),{pendingChannels:K})}),(0,y.on)(Yt.ti,(_e,{payload:Xe})=>{var K,We,Bt;const Ce=_e.payments,ge=za(Xe,[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels]);ge.amountIn=Math.round((Xe.amountIn||0)/1e3),ge.amountOut=Math.round((Xe.amountOut||0)/1e3),null===(K=Ce.relayed)||void 0===K||K.unshift(ge);const he=(Xe.amountIn||0)-(Xe.amountOut||0),Ue={localBalance:_e.lightningBalance.localBalance+he,remoteBalance:_e.lightningBalance.remoteBalance-he},nt=_e.channelsStatus;nt.active&&(nt.active.capacity=((null===(Bt=null===(We=_e.channelsStatus)||void 0===We?void 0:We.active)||void 0===Bt?void 0:Bt.capacity)||0)+he);const Dt={daily_fee:(_e.fees.daily_fee||0)+he,daily_txs:(_e.fees.daily_txs||0)+1,weekly_fee:(_e.fees.weekly_fee||0)+he,weekly_txs:(_e.fees.weekly_txs||0)+1,monthly_fee:(_e.fees.monthly_fee||0)+he,monthly_txs:(_e.fees.monthly_txs||0)+1},Qt=_e.activeChannels;let ai=!1,Di=!1;for(const Vi of Qt){if(Vi.channelId===Xe.fromChannelId){ai=!0;const Mn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)+ge.amountIn,Vi.toRemote=(Vi.toRemote||0)-ge.amountIn,Vi.balancedness=0===Mn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Mn)).toFixed(3)}if(Vi.channelId===Xe.toChannelId){Di=!0;const Mn=(Vi.toLocal||0)+(Vi.toRemote||0);Vi.toLocal=(Vi.toLocal||0)-ge.amountOut,Vi.toRemote=(Vi.toRemote||0)+ge.amountOut,Vi.balancedness=0===Mn?1:+(1-Math.abs((Vi.toLocal-Vi.toRemote)/Mn)).toFixed(3)}if(Di&&ai)break}return Object.assign(Object.assign({},_e),{payments:Ce,lightningBalance:Ue,channelStatus:nt,fees:Dt,activeChannels:Qt})})),za=(_e,Xe)=>{var K,We,Bt,Ce,ge,he,Ue,nt,Dt,Qt,ai,Di,Vi,Mn;if("payment-relayed"===_e.type)if(Xe&&Xe.length>0)for(let zi=0;zi0)for(let zi=0;zi{var kn;(null===(kn=Xe[zi].channelId)||void 0===kn?void 0:kn.toString())===un.channelId&&(un.channelAlias=Xe[zi].alias?Xe[zi].alias:un.channelId,un.shortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"")}),null===(nt=_e.outgoing)||void 0===nt||nt.forEach(un=>{var kn;(null===(kn=Xe[zi].channelId)||void 0===kn?void 0:kn.toString())===un.channelId&&(un.channelAlias=Xe[zi].alias?Xe[zi].alias:un.channelId,un.shortChannelId=Xe[zi].shortChannelId?Xe[zi].shortChannelId:"")}),zi===Xe.length-1&&(_e.incoming&&_e.incoming.length&&_e.incoming.length>0&&!_e.incoming[0].channelAlias&&(null===(Dt=_e.incoming)||void 0===Dt||Dt.forEach(un=>{var kn;un.channelAlias=(null===(kn=un.channelId)||void 0===kn?void 0:kn.substring(0,17))+"...",un.shortChannelId=""})),_e.outgoing&&_e.outgoing.length&&_e.outgoing.length>0&&!_e.outgoing[0].channelAlias&&(null===(Qt=_e.outgoing)||void 0===Qt||Qt.forEach(un=>{var kn;un.channelAlias=(null===(kn=un.channelId)||void 0===kn?void 0:kn.substring(0,17))+"...",un.shortChannelId=""})));else null===(ai=_e.incoming)||void 0===ai||ai.forEach(zi=>{var un;zi.channelAlias=(null===(un=zi.channelId)||void 0===un?void 0:un.substring(0,17))+"...",zi.shortChannelId=""}),null===(Di=_e.outgoing)||void 0===Di||Di.forEach(zi=>{var un;zi.channelAlias=(null===(un=zi.channelId)||void 0===un?void 0:un.substring(0,17))+"...",zi.shortChannelId=""});_e.amountIn=(null===(Vi=_e.incoming)||void 0===Vi?void 0:Vi.reduce((zi,un)=>zi+un.amount,0))||0,_e.fromChannelId=_e.incoming&&_e.incoming.length?_e.incoming[0].channelId:"",_e.fromChannelAlias=_e.incoming&&_e.incoming.length?_e.incoming[0].channelAlias:"",_e.fromShortChannelId=_e.incoming&&_e.incoming.length?_e.incoming[0].shortChannelId:"",_e.amountOut=(null===(Mn=_e.outgoing)||void 0===Mn?void 0:Mn.reduce((zi,un)=>zi+un.amount,0))||0,_e.toChannelId=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].channelId:"",_e.toChannelAlias=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].channelAlias:"",_e.toShortChannelId=_e.outgoing&&_e.outgoing.length?_e.outgoing[0].shortChannelId:""}return _e};let Qa=(()=>{class _e{}return _e.\u0275fac=function(K){return new(K||_e)},_e.\u0275mod=i.oAB({type:_e,bootstrap:[Et]}),_e.\u0275inj=i.cJS({providers:[{provide:b.TP,useClass:St,multi:!0},qn.a1,we.m,br.D,qt.d,Pt.W,Nt.v,gi.X],imports:[[u.PW,vi.m,Lt,a.xu,e.t6,S.forRoot({idle:3590,timeout:10,ping:12e3}),y.Aw.forRoot({root:xn,lnd:_a,cln:fr,ecl:Na},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([ht.V,ti.l,fi.J,Ei.o]),Ca.NZ.production?[]:P.FT.instrument()]]}),_e})();Ca.NZ.production&&(0,i.G48)(),e.q6().bootstrapModule(Qa).catch(_e=>console.log(_e))},7854:(He,j)=>{"use strict";function p(te){return Object.keys(te).map(ze=>te[ze])}var te;Object.defineProperty(j,"__esModule",{value:!0}),(te=j.HashAlgorithms||(j.HashAlgorithms={})).SHA1="sha1",te.SHA256="sha256",te.SHA512="sha512";const e=p(j.HashAlgorithms);!function(te){te.ASCII="ascii",te.BASE64="base64",te.HEX="hex",te.LATIN1="latin1",te.UTF8="utf8"}(j.KeyEncodings||(j.KeyEncodings={}));const i=p(j.KeyEncodings);!function(te){te.HOTP="hotp",te.TOTP="totp"}(j.Strategy||(j.Strategy={}));const u=p(j.Strategy),b=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(te){return/^(\d+)$/.test(te)}function y(te,ze,be){return te.length>=ze?te:`${Array(ze+1).join(be)}${te}`.slice(-1*ze)}function d(te){const ze=`otpauth://${te.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,be=[];if(u.indexOf(te.type)<0)throw new Error(`Expecting options.type to be one of ${u.join(", ")}. Received ${te.type}.`);if("hotp"===te.type){if(null==te.counter||"number"!=typeof te.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');be.push(`&counter=${te.counter}`)}return"totp"===te.type&&te.step&&be.push(`&period=${te.step}`),te.digits&&be.push(`&digits=${te.digits}`),te.algorithm&&be.push(`&algorithm=${te.algorithm.toUpperCase()}`),te.issuer&&be.push(`&issuer=${encodeURIComponent(te.issuer)}`),ze.replace("{labelPrefix}",encodeURIComponent(te.issuer||te.accountName)).replace("{accountName}",encodeURIComponent(te.accountName)).replace("{secret}",te.secret).replace("{query}",be.join(""))}class P{constructor(ze={}){this._defaultOptions=Object.freeze(ws({},ze)),this._options=Object.freeze({})}create(ze={}){return new P(ze)}clone(ze={}){const be=this.create(ws(ws({},this._defaultOptions),ze));return be.options=this._options,be}get options(){return Object.freeze(ws(ws({},this._defaultOptions),this._options))}set options(ze){this._options=Object.freeze(ws(ws({},this._options),ze))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function D(te){if("function"!=typeof te.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof te.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof te.digits)throw new Error("Expecting options.digits to be a number.");if(!te.algorithm||e.indexOf(te.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${te.algorithm}.`);if(!te.encoding||i.indexOf(te.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${i.join(", ")}. Received ${te.encoding}.`)}const T=(te,ze,be)=>Buffer.from(ze,be).toString("hex");function M(){return{algorithm:j.HashAlgorithms.SHA1,createHmacKey:T,createDigest:b,digits:6,encoding:j.KeyEncodings.ASCII}}function A(te){const ze=ws(ws({},M()),te);return D(ze),Object.freeze(ze)}function E(te){return y(te.toString(16),16,"0")}function k(te,ze){const be=Buffer.from(te,"hex"),Z=15&be[be.length-1],ot=((127&be[Z])<<24|(255&be[Z+1])<<16|(255&be[Z+2])<<8|255&be[Z+3])%Math.pow(10,ze);return y(String(ot),ze,"0")}function z(te,ze,be){const Z=be.digest||function w(te,ze,be){const Z=E(ze),Y=be.createHmacKey(be.algorithm,te,be.encoding);return be.createDigest(be.algorithm,Y,Z)}(te,ze,be);return k(Z,be.digits)}function U(te,ze,be,Z){return!!a(te)&&te===z(ze,be,Z)}function W(te,ze,be,Z,Y){return d({algorithm:Y.algorithm,digits:Y.digits,type:j.Strategy.HOTP,accountName:te,counter:Z,issuer:ze,secret:be})}class ne extends P{create(ze={}){return new ne(ze)}allOptions(){return A(this.options)}generate(ze,be){return z(ze,be,this.allOptions())}check(ze,be,Z){return U(ze,be,Z,this.allOptions())}verify(ze){if("object"!=typeof ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ze.token,ze.secret,ze.counter)}keyuri(ze,be,Z,Y){return W(ze,be,Z,Y,this.allOptions())}}function Q(te){if("number"==typeof te)return[Math.abs(te),Math.abs(te)];if(Array.isArray(te)){const[ze,be]=te;if("number"==typeof ze&&"number"==typeof be)return[Math.abs(ze),Math.abs(be)]}throw new Error("Expecting options.window to be an number or [number, number].")}function le(te){if(D(te),Q(te.window),"number"!=typeof te.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof te.step)throw new Error("Expecting options.step to be a number.")}const q=(te,ze,be)=>{const Z=te.length,Y=Buffer.from(te,ze).toString("hex");if(Z{switch(te){case j.HashAlgorithms.SHA1:return q(ze,be,20);case j.HashAlgorithms.SHA256:return q(ze,be,32);case j.HashAlgorithms.SHA512:return q(ze,be,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${te}.`)}};function se(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:ie,digits:6,encoding:j.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function J(te){const ze=ws(ws({},se()),te);return le(ze),Object.freeze(ze)}function me(te,ze){return Math.floor(te/ze/1e3)}function x(te,ze){return z(te,me(ze.epoch,ze.step),ze)}function t(te,ze,be,Z){const Y=[];if(0===Z)return Y;for(let ot=1;ot<=Z;ot++)Y.push(te+ze*ot*be);return Y}function r(te,ze,be){const Z=Q(be),Y=1e3*ze;return{current:te,past:t(te,-1,Y,Z[0]),future:t(te,1,Y,Z[1])}}function h(te,ze,be){return!!a(te)&&te===x(ze,be)}function c(te,ze,be,Z){let Y=null;return te.some((ot,Ie)=>!!h(ze,be,JC(ws({},Z),{epoch:ot}))&&(Y=Ie+1,!0)),Y}function C(te,ze,be){if(h(te,ze,be))return 0;const Z=r(be.epoch,be.step,be.window),Y=c(Z.past,te,ze,be);return null!==Y?-1*Y:c(Z.future,te,ze,be)}function S(te,ze){return Math.floor(te/1e3)%ze}function I(te,ze){return ze-S(te,ze)}function _(te,ze,be,Z){return d({algorithm:Z.algorithm,digits:Z.digits,step:Z.step,type:j.Strategy.TOTP,accountName:te,issuer:ze,secret:be})}class n extends ne{create(ze={}){return new n(ze)}allOptions(){return J(this.options)}generate(ze){return x(ze,this.allOptions())}checkDelta(ze,be){return C(ze,be,this.allOptions())}check(ze,be){return"number"==typeof this.checkDelta(ze,be)}verify(ze){if("object"!=typeof ze)throw new Error("Expecting argument 0 of verify to be an object");return this.check(ze.token,ze.secret)}timeRemaining(){const ze=this.allOptions();return I(ze.epoch,ze.step)}timeUsed(){const ze=this.allOptions();return S(ze.epoch,ze.step)}keyuri(ze,be,Z){return _(ze,be,Z,this.allOptions())}}function g(te){if(le(te),"function"!=typeof te.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(te.keyEncoder&&"function"!=typeof te.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function V(){return{algorithm:j.HashAlgorithms.SHA1,createDigest:b,createHmacKey:ie,digits:6,encoding:j.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(te){const ze=ws(ws({},V()),te);return g(ze),Object.freeze(ze)}function H(te,ze){return ze.keyEncoder(te,ze.encoding)}function $(te,ze){return ze.keyDecoder(te,ze.encoding)}function fe(te,ze){return H(ze.createRandomBytes(te,ze.encoding),ze)}function ye(te,ze){return x($(te,ze),ze)}function ke(te,ze,be){return C(te,$(ze,be),be)}class Ee extends n{create(ze={}){return new Ee(ze)}allOptions(){return R(this.options)}generate(ze){return ye(ze,this.allOptions())}checkDelta(ze,be){return ke(ze,be,this.allOptions())}encode(ze){return H(ze,this.allOptions())}decode(ze){return $(ze,this.allOptions())}generateSecret(ze=10){return fe(ze,this.allOptions())}}j.Authenticator=Ee,j.HASH_ALGORITHMS=e,j.HOTP=ne,j.KEY_ENCODINGS=i,j.OTP=P,j.STRATEGY=u,j.TOTP=n,j.authenticatorCheckWithWindow=ke,j.authenticatorDecoder=$,j.authenticatorDefaultOptions=V,j.authenticatorEncoder=H,j.authenticatorGenerateSecret=fe,j.authenticatorOptionValidator=g,j.authenticatorOptions=R,j.authenticatorToken=ye,j.createDigestPlaceholder=b,j.hotpCheck=U,j.hotpCounter=E,j.hotpCreateHmacKey=T,j.hotpDefaultOptions=M,j.hotpDigestToToken=k,j.hotpKeyuri=W,j.hotpOptions=A,j.hotpOptionsValidator=D,j.hotpToken=z,j.isTokenValid=a,j.keyuri=d,j.objectValues=p,j.padStart=y,j.totpCheck=h,j.totpCheckByEpoch=c,j.totpCheckWithWindow=C,j.totpCounter=me,j.totpCreateHmacKey=ie,j.totpDefaultOptions=se,j.totpEpochAvailable=r,j.totpKeyuri=_,j.totpOptions=J,j.totpOptionsValidator=le,j.totpPadSecret=q,j.totpTimeRemaining=I,j.totpTimeUsed=S,j.totpToken=x},6098:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));j.createDigest=(a,y,d)=>i.createHmac(a,Buffer.from(y,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),j.createRandomBytes=(a,y)=>i.randomBytes(a).toString(y)},1415:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var i=function e(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));j.keyDecoder=(a,y)=>i.decode(a).toString(y),j.keyEncoder=(a,y)=>i.encode(Buffer.from(a,y).toString("ascii")).toString().replace(/=/g,"")},842:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(6098),i=p(1415),u=p(7854);const b=new u.HOTP({createDigest:e.createDigest}),a=new u.TOTP({createDigest:e.createDigest}),y=new u.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:i.keyDecoder,keyEncoder:i.keyEncoder});j.authenticator=y,j.hotp=b,j.totp=a},7977:(He,j,p)=>{"use strict";const e=j;e.bignum=p(3854),e.define=p(9516).define,e.base=p(7813),e.constants=p(5459),e.decoders=p(196),e.encoders=p(1131)},9516:(He,j,p)=>{"use strict";const e=p(1131),i=p(196),u=p(3894);function a(y,d){this.name=y,this.body=d,this.decoders={},this.encoders={}}j.define=function(d,P){return new a(d,P)},a.prototype._createNamed=function(d){const P=this.name;function D(T){this._initNamed(T,P)}return u(D,d),D.prototype._initNamed=function(M,A){d.call(this,M,A)},new D(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(i[d])),this.decoders[d]},a.prototype.decode=function(d,P,D){return this._getDecoder(P).decode(d,D)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(e[d])),this.encoders[d]},a.prototype.encode=function(d,P,D){return this._getEncoder(P).encode(d,D)}},2769:(He,j,p)=>{"use strict";const e=p(3894),i=p(4919).b,u=p(2038).Buffer;function b(y,d){i.call(this,d),u.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function a(y,d){if(Array.isArray(y))this.length=0,this.value=y.map(function(P){return a.isEncoderBuffer(P)||(P=new a(P,d)),this.length+=P.length,P},this);else if("number"==typeof y){if(!(0<=y&&y<=255))return d.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if("string"==typeof y)this.value=y,this.length=u.byteLength(y);else{if(!u.isBuffer(y))return d.error("Unsupported type: "+typeof y);this.value=y,this.length=y.length}}e(b,i),j.C=b,b.isDecoderBuffer=function(d){return d instanceof b||"object"==typeof d&&u.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},b.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},b.prototype.restore=function(d){const P=new b(this.base);return P.offset=d.offset,P.length=this.offset,this.offset=d.offset,i.prototype.restore.call(this,d.reporter),P},b.prototype.isEmpty=function(){return this.offset===this.length},b.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},b.prototype.skip=function(d,P){if(!(this.offset+d<=this.length))return this.error(P||"DecoderBuffer overrun");const D=new b(this.base);return D._reporterState=this._reporterState,D.offset=this.offset,D.length=this.offset+d,this.offset+=d,D},b.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},j.R=a,a.isEncoderBuffer=function(d){return d instanceof a||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},a.prototype.join=function(d,P){return d||(d=u.alloc(this.length)),P||(P=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(D){D.join(d,P),P+=D.length}):("number"==typeof this.value?d[P]=this.value:"string"==typeof this.value?d.write(this.value,P):u.isBuffer(this.value)&&this.value.copy(d,P),P+=this.length)),d}},7813:(He,j,p)=>{"use strict";const e=j;e.Reporter=p(4919).b,e.DecoderBuffer=p(2769).C,e.EncoderBuffer=p(2769).R,e.Node=p(1430)},1430:(He,j,p)=>{"use strict";const e=p(4919).b,i=p(2769).R,u=p(2769).C,b=p(2391),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function P(T,M,A){const E={};this._baseState=E,E.name=A,E.enc=T,E.parent=M||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}He.exports=P;const D=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];P.prototype.clone=function(){const M=this._baseState,A={};D.forEach(function(k){A[k]=M[k]});const E=new this.constructor(A.parent);return E._baseState=A,E},P.prototype._wrap=function(){const M=this._baseState;y.forEach(function(A){this[A]=function(){const k=new this.constructor(this);return M.children.push(k),k[A].apply(k,arguments)}},this)},P.prototype._init=function(M){const A=this._baseState;b(null===A.parent),M.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),b.equal(A.children.length,1,"Root node can have only one child")},P.prototype._useArgs=function(M){const A=this._baseState,E=M.filter(function(k){return k instanceof this.constructor},this);M=M.filter(function(k){return!(k instanceof this.constructor)},this),0!==E.length&&(b(null===A.children),A.children=E,E.forEach(function(k){k._baseState.parent=this},this)),0!==M.length&&(b(null===A.args),A.args=M,A.reverseArgs=M.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const w={};return Object.keys(k).forEach(function(z){z==(0|z)&&(z|=0),w[k[z]]=z}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(T){P.prototype[T]=function(){throw new Error(T+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(T){P.prototype[T]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return b(null===A.tag),A.tag=T,this._useArgs(E),this}}),P.prototype.use=function(M){b(M);const A=this._baseState;return b(null===A.use),A.use=M,this},P.prototype.optional=function(){return this._baseState.optional=!0,this},P.prototype.def=function(M){const A=this._baseState;return b(null===A.default),A.default=M,A.optional=!0,this},P.prototype.explicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.explicit=M,this},P.prototype.implicit=function(M){const A=this._baseState;return b(null===A.explicit&&null===A.implicit),A.implicit=M,this},P.prototype.obj=function(){const M=this._baseState,A=Array.prototype.slice.call(arguments);return M.obj=!0,0!==A.length&&this._useArgs(A),this},P.prototype.key=function(M){const A=this._baseState;return b(null===A.key),A.key=M,this},P.prototype.any=function(){return this._baseState.any=!0,this},P.prototype.choice=function(M){const A=this._baseState;return b(null===A.choice),A.choice=M,this._useArgs(Object.keys(M).map(function(E){return M[E]})),this},P.prototype.contains=function(M){const A=this._baseState;return b(null===A.use),A.contains=M,this},P.prototype._decode=function(M,A){const E=this._baseState;if(null===E.parent)return M.wrapResult(E.children[0]._decode(M,A));let U,k=E.default,w=!0,z=null;if(null!==E.key&&(z=M.enterKey(E.key)),E.optional){let W=null;if(null!==E.explicit?W=E.explicit:null!==E.implicit?W=E.implicit:null!==E.tag&&(W=E.tag),null!==W||E.any){if(w=this._peekTag(M,W,E.any),M.isError(w))return w}else{const ne=M.save();try{null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A),w=!0}catch(Q){w=!1}M.restore(ne)}}if(E.obj&&w&&(U=M.enterObject()),w){if(null!==E.explicit){const ne=this._decodeTag(M,E.explicit);if(M.isError(ne))return ne;M=ne}const W=M.offset;if(null===E.use&&null===E.choice){let ne;E.any&&(ne=M.save());const Q=this._decodeTag(M,null!==E.implicit?E.implicit:E.tag,E.any);if(M.isError(Q))return Q;E.any?k=M.raw(ne):M=Q}if(A&&A.track&&null!==E.tag&&A.track(M.path(),W,M.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(M.path(),M.offset,M.length,"content"),E.any||(k=null===E.choice?this._decodeGeneric(E.tag,M,A):this._decodeChoice(M,A)),M.isError(k))return k;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(Q){Q._decode(M,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const ne=new u(k);k=this._getUse(E.contains,M._reporterState.obj)._decode(ne,A)}}return E.obj&&w&&(k=M.leaveObject(U)),null===E.key||null===k&&!0!==w?null!==z&&M.exitKey(z):M.leaveKey(z,E.key,k),k},P.prototype._decodeGeneric=function(M,A,E){const k=this._baseState;return"seq"===M||"set"===M?null:"seqof"===M||"setof"===M?this._decodeList(A,M,k.args[0],E):/str$/.test(M)?this._decodeStr(A,M,E):"objid"===M&&k.args?this._decodeObjid(A,k.args[0],k.args[1],E):"objid"===M?this._decodeObjid(A,null,null,E):"gentime"===M||"utctime"===M?this._decodeTime(A,M,E):"null_"===M?this._decodeNull(A,E):"bool"===M?this._decodeBool(A,E):"objDesc"===M?this._decodeStr(A,M,E):"int"===M||"enum"===M?this._decodeInt(A,k.args&&k.args[0],E):null!==k.use?this._getUse(k.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+M)},P.prototype._getUse=function(M,A){const E=this._baseState;return E.useDecoder=this._use(M,A),b(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},P.prototype._decodeChoice=function(M,A){const E=this._baseState;let k=null,w=!1;return Object.keys(E.choice).some(function(z){const U=M.save(),W=E.choice[z];try{const ne=W._decode(M,A);if(M.isError(ne))return!1;k={type:z,value:ne},w=!0}catch(ne){return M.restore(U),!1}return!0},this),w?k:M.error("Choice not matched")},P.prototype._createEncoderBuffer=function(M){return new i(M,this.reporter)},P.prototype._encode=function(M,A,E){const k=this._baseState;if(null!==k.default&&k.default===M)return;const w=this._encodeValue(M,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},P.prototype._encodeValue=function(M,A,E){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(M,A||new e);let w=null;if(this.reporter=A,k.optional&&void 0===M){if(null===k.default)return;M=k.default}let z=null,U=!1;if(k.any)w=this._createEncoderBuffer(M);else if(k.choice)w=this._encodeChoice(M,A);else if(k.contains)z=this._getUse(k.contains,E)._encode(M,A),U=!0;else if(k.children)z=k.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,A,M);if(null===W._baseState.key)return A.error("Child should have a key");const ne=A.enterKey(W._baseState.key);if("object"!=typeof M)return A.error("Child expected, but input is not object");const Q=W._encode(M[W._baseState.key],A,M);return A.leaveKey(ne),Q},this).filter(function(W){return W}),z=this._createEncoderBuffer(z);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return A.error("Too many args for : "+k.tag);if(!Array.isArray(M))return A.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,z=this._createEncoderBuffer(M.map(function(ne){return this._getUse(this._baseState.args[0],M)._encode(ne,A)},W))}else null!==k.use?w=this._getUse(k.use,E)._encode(M,A):(z=this._encodePrimitive(k.tag,M),U=!0);if(!k.any&&null===k.choice){const W=null!==k.implicit?k.implicit:k.tag,ne=null===k.implicit?"universal":"context";null===W?null===k.use&&A.error("Tag could be omitted only for .use()"):null===k.use&&(w=this._encodeComposite(W,U,ne,z))}return null!==k.explicit&&(w=this._encodeComposite(k.explicit,!1,"context",w)),w},P.prototype._encodeChoice=function(M,A){const E=this._baseState,k=E.choice[M.type];return k||b(!1,M.type+" not found in "+JSON.stringify(Object.keys(E.choice))),k._encode(M.value,A)},P.prototype._encodePrimitive=function(M,A){const E=this._baseState;if(/str$/.test(M))return this._encodeStr(A,M);if("objid"===M&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===M)return this._encodeObjid(A,null,null);if("gentime"===M||"utctime"===M)return this._encodeTime(A,M);if("null_"===M)return this._encodeNull();if("int"===M||"enum"===M)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===M)return this._encodeBool(A);if("objDesc"===M)return this._encodeStr(A,M);throw new Error("Unsupported tag: "+M)},P.prototype._isNumstr=function(M){return/^[0-9 ]*$/.test(M)},P.prototype._isPrintstr=function(M){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(M)}},4919:(He,j,p)=>{"use strict";const e=p(3894);function i(b){this._reporterState={obj:null,path:[],options:b||{},errors:[]}}function u(b,a){this.path=b,this.rethrow(a)}j.b=i,i.prototype.isError=function(a){return a instanceof u},i.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},i.prototype.restore=function(a){const y=this._reporterState;y.obj=a.obj,y.path=y.path.slice(0,a.pathLen)},i.prototype.enterKey=function(a){return this._reporterState.path.push(a)},i.prototype.exitKey=function(a){const y=this._reporterState;y.path=y.path.slice(0,a-1)},i.prototype.leaveKey=function(a,y,d){const P=this._reporterState;this.exitKey(a),null!==P.obj&&(P.obj[y]=d)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const a=this._reporterState,y=a.obj;return a.obj={},y},i.prototype.leaveObject=function(a){const y=this._reporterState,d=y.obj;return y.obj=a,d},i.prototype.error=function(a){let y;const d=this._reporterState,P=a instanceof u;if(y=P?a:new u(d.path.map(function(D){return"["+JSON.stringify(D)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw y;return P||d.errors.push(y),y},i.prototype.wrapResult=function(a){const y=this._reporterState;return y.options.partial?{result:this.isError(a)?null:a,errors:y.errors}:a},e(u,Error),u.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(y){this.stack=y.stack}return this}},5496:(He,j)=>{"use strict";function p(e){const i={};return Object.keys(e).forEach(function(u){(0|u)==u&&(u|=0),i[e[u]]=u}),i}j.tagClass={0:"universal",1:"application",2:"context",3:"private"},j.tagClassByName=p(j.tagClass),j.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},j.tagByName=p(j.tag)},5459:(He,j,p)=>{"use strict";const e=j;e._reverse=function(u){const b={};return Object.keys(u).forEach(function(a){(0|a)==a&&(a|=0),b[u[a]]=a}),b},e.der=p(5496)},7127:(He,j,p)=>{"use strict";const e=p(3894),i=p(3854),u=p(2769).C,b=p(1430),a=p(5496);function y(T){this.enc="der",this.name=T.name,this.entity=T,this.tree=new d,this.tree._init(T.body)}function d(T){b.call(this,"der",T)}function P(T,M){let A=T.readUInt8(M);if(T.isError(A))return A;const E=a.tagClass[A>>6],k=0==(32&A);if(31==(31&A)){let z=A;for(A=0;128==(128&z);){if(z=T.readUInt8(M),T.isError(z))return z;A<<=7,A|=127&z}}else A&=31;return{cls:E,primitive:k,tag:A,tagStr:a.tag[A]}}function D(T,M,A){let E=T.readUInt8(A);if(T.isError(E))return E;if(!M&&128===E)return null;if(0==(128&E))return E;const k=127&E;if(k>4)return T.error("length octect is too long");E=0;for(let w=0;w{"use strict";const e=j;e.der=p(7127),e.pem=p(9617)},9617:(He,j,p)=>{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(7127);function b(a){u.call(this,a),this.enc="pem"}e(b,u),He.exports=b,b.prototype.decode=function(y,d){const P=y.toString().split(/[\r\n]+/g),D=d.label.toUpperCase(),T=/^-----(BEGIN|END) ([^-]+)-----$/;let M=-1,A=-1;for(let w=0;w{"use strict";const e=p(3894),i=p(2038).Buffer,u=p(1430),b=p(5496);function a(D){this.enc="der",this.name=D.name,this.entity=D,this.tree=new y,this.tree._init(D.body)}function y(D){u.call(this,"der",D)}function d(D){return D<10?"0"+D:D}He.exports=a,a.prototype.encode=function(T,M){return this.tree._encode(T,M).join()},e(y,u),y.prototype._encodeComposite=function(T,M,A,E){const k=function P(D,T,M,A){let E;if("seqof"===D?D="seq":"setof"===D&&(D="set"),b.tagByName.hasOwnProperty(D))E=b.tagByName[D];else{if("number"!=typeof D||(0|D)!==D)return A.error("Unknown tag: "+D);E=D}return E>=31?A.error("Multi-octet tag encoding unsupported"):(T||(E|=32),E|=b.tagClassByName[M||"universal"]<<6,E)}(T,M,A,this.reporter);if(E.length<128){const U=i.alloc(2);return U[0]=k,U[1]=E.length,this._createEncoderBuffer([U,E])}let w=1;for(let U=E.length;U>=256;U>>=8)w++;const z=i.alloc(2+w);z[0]=k,z[1]=128|w;for(let U=1+w,W=E.length;W>0;U--,W>>=8)z[U]=255&W;return this._createEncoderBuffer([z,E])},y.prototype._encodeStr=function(T,M){if("bitstr"===M)return this._createEncoderBuffer([0|T.unused,T.data]);if("bmpstr"===M){const A=i.alloc(2*T.length);for(let E=0;E=40)return this.reporter.error("Second objid identifier OOB");T.splice(0,2,40*T[0]+T[1])}let E=0;for(let z=0;z=128;U>>=7)E++}const k=i.alloc(E);let w=k.length-1;for(let z=T.length-1;z>=0;z--){let U=T[z];for(k[w--]=127&U;(U>>=7)>0;)k[w--]=128|127&U}return this._createEncoderBuffer(k)},y.prototype._encodeTime=function(T,M){let A;const E=new Date(T);return"gentime"===M?A=[d(E.getUTCFullYear()),d(E.getUTCMonth()+1),d(E.getUTCDate()),d(E.getUTCHours()),d(E.getUTCMinutes()),d(E.getUTCSeconds()),"Z"].join(""):"utctime"===M?A=[d(E.getUTCFullYear()%100),d(E.getUTCMonth()+1),d(E.getUTCDate()),d(E.getUTCHours()),d(E.getUTCMinutes()),d(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+M+" time is not supported yet"),this._encodeStr(A,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(T,M){if("string"==typeof T){if(!M)return this.reporter.error("String int or enum given, but no values map");if(!M.hasOwnProperty(T))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(T));T=M[T]}if("number"!=typeof T&&!i.isBuffer(T)){const k=T.toArray();!T.sign&&128&k[0]&&k.unshift(0),T=i.from(k)}if(i.isBuffer(T)){let k=T.length;0===T.length&&k++;const w=i.alloc(k);return T.copy(w),0===T.length&&(w[0]=0),this._createEncoderBuffer(w)}if(T<128)return this._createEncoderBuffer(T);if(T<256)return this._createEncoderBuffer([0,T]);let A=1;for(let k=T;k>=256;k>>=8)A++;const E=new Array(A);for(let k=E.length-1;k>=0;k--)E[k]=255&T,T>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(i.from(E))},y.prototype._encodeBool=function(T){return this._createEncoderBuffer(T?255:0)},y.prototype._use=function(T,M){return"function"==typeof T&&(T=T(M)),T._getEncoder("der").tree},y.prototype._skipDefault=function(T,M,A){const E=this._baseState;let k;if(null===E.default)return!1;const w=T.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,M,A).join()),w.length!==E.defaultBuffer.length)return!1;for(k=0;k{"use strict";const e=j;e.der=p(6374),e.pem=p(3530)},3530:(He,j,p)=>{"use strict";const e=p(3894),i=p(6374);function u(b){i.call(this,b),this.enc="pem"}e(u,i),He.exports=u,u.prototype.encode=function(a,y){const P=i.prototype.encode.call(this,a).toString("base64"),D=["-----BEGIN "+y.label+"-----"];for(let T=0;T=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},5343:(He,j)=>{"use strict";j.byteLength=function d(E){var k=y(E),z=k[1];return 3*(k[0]+z)/4-z},j.toByteArray=function D(E){var k,le,w=y(E),z=w[0],U=w[1],W=new i(function P(E,k,w){return 3*(k+w)/4-w}(0,z,U)),ne=0,Q=U>0?z-4:z;for(le=0;le>16&255,W[ne++]=k>>8&255,W[ne++]=255&k;return 2===U&&(k=e[E.charCodeAt(le)]<<2|e[E.charCodeAt(le+1)]>>4,W[ne++]=255&k),1===U&&(k=e[E.charCodeAt(le)]<<10|e[E.charCodeAt(le+1)]<<4|e[E.charCodeAt(le+2)]>>2,W[ne++]=k>>8&255,W[ne++]=255&k),W},j.fromByteArray=function A(E){for(var k,w=E.length,z=w%3,U=[],W=16383,ne=0,Q=w-z;neQ?Q:ne+W));return 1===z?U.push(p[(k=E[w-1])>>2]+p[k<<4&63]+"=="):2===z&&U.push(p[(k=(E[w-2]<<8)+E[w-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),U.join("")};for(var p=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,a=u.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=k),[w,w===k?0:4-w%4]}function T(E){return p[E>>18&63]+p[E>>12&63]+p[E>>6&63]+p[63&E]}function M(E,k,w){for(var U=[],W=k;W=48&&C<=57?C-48:C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:void u(!1,"Invalid character in "+h)}function P(h,c,C){var S=d(h,C);return C-1>=c&&(S|=d(h,C-1)<<4),S}function D(h,c,C,S){for(var I=0,_=0,n=Math.min(h.length,C),g=c;g=49?V-49+10:V>=17?V-17+10:V,u(V>=0&&_0?c:C},a.min=function(c,C){return c.cmp(C)<0?c:C},a.prototype._init=function(c,C,S){if("number"==typeof c)return this._initNumber(c,C,S);if("object"==typeof c)return this._initArray(c,C,S);"hex"===C&&(C=16),u(C===(0|C)&&C>=2&&C<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[_]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<>>26-g&67108863,(g+=24)>=26&&(g-=26,_++);else if("le"===S)for(I=0,_=0;I>>26-g&67108863,(g+=24)>=26&&(g-=26,_++);return this._strip()},a.prototype._parseHex=function(c,C,S){this.length=Math.ceil((c.length-C)/6),this.words=new Array(this.length);for(var I=0;I=C;I-=2)g=P(c,C,I)<<_,this.words[n]|=67108863&g,_>=18?(_-=18,this.words[n+=1]|=g>>>26):_+=8;else for(I=(c.length-C)%2==0?C+1:C;I=18?(_-=18,this.words[n+=1]|=g>>>26):_+=8;this._strip()},a.prototype._parseBase=function(c,C,S){this.words=[0],this.length=1;for(var I=0,_=1;_<=67108863;_*=C)I++;I--,_=_/C|0;for(var n=c.length-S,g=n%I,V=Math.min(n,n-g)+S,R=0,H=S;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=M}catch(h){a.prototype.inspect=M}else a.prototype.inspect=M;function M(){return(this.red?""}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function U(h,c,C){C.negative=c.negative^h.negative;var S=h.length+c.length|0;C.length=S,S=S-1|0;var I=0|h.words[0],_=0|c.words[0],n=I*_,V=n/67108864|0;C.words[0]=67108863&n;for(var R=1;R>>26,$=67108863&V,fe=Math.min(R,c.length-1),ye=Math.max(0,R-h.length+1);ye<=fe;ye++)H+=(n=(I=0|h.words[R-ye|0])*(_=0|c.words[ye])+$)/67108864|0,$=67108863&n;C.words[R]=0|$,V=0|H}return 0!==V?C.words[R]=0|V:C.length--,C._strip()}a.prototype.toString=function(c,C){var S;if(C=0|C||1,16===(c=c||10)||"hex"===c){S="";for(var I=0,_=0,n=0;n>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),S=0!==_||n!==this.length-1?A[6-V.length]+V+S:V+S}for(0!==_&&(S=_.toString(16)+S);S.length%C!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}if(c===(0|c)&&c>=2&&c<=36){var R=E[c],H=k[c];S="";var $=this.clone();for($.negative=0;!$.isZero();){var fe=$.modrn(H).toString(c);S=($=$.idivn(H)).isZero()?fe+S:A[R-fe.length]+fe+S}for(this.isZero()&&(S="0"+S);S.length%C!=0;)S="0"+S;return 0!==this.negative&&(S="-"+S),S}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},y&&(a.prototype.toBuffer=function(c,C){return this.toArrayLike(y,c,C)}),a.prototype.toArray=function(c,C){return this.toArrayLike(Array,c,C)},a.prototype.toArrayLike=function(c,C,S){this._strip();var I=this.byteLength(),_=S||Math.max(1,I);u(I<=_,"byte array longer than desired length"),u(_>0,"Requested array length <= 0");var n=function(c,C){return c.allocUnsafe?c.allocUnsafe(C):new c(C)}(c,_);return this["_toArrayLike"+("le"===C?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,C){for(var S=0,I=0,_=0,n=0;_>8&255),S>16&255),6===n?(S>24&255),I=0,n=0):(I=g>>>24,n+=2)}if(S=0&&(c[S--]=g>>8&255),S>=0&&(c[S--]=g>>16&255),6===n?(S>=0&&(c[S--]=g>>24&255),I=0,n=0):(I=g>>>24,n+=2)}if(S>=0)for(c[S--]=I;S>=0;)c[S--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var C=c,S=0;return C>=4096&&(S+=13,C>>>=13),C>=64&&(S+=7,C>>>=7),C>=8&&(S+=4,C>>>=4),C>=2&&(S+=2,C>>>=2),S+C},a.prototype._zeroBits=function(c){if(0===c)return 26;var C=c,S=0;return 0==(8191&C)&&(S+=13,C>>>=13),0==(127&C)&&(S+=7,C>>>=7),0==(15&C)&&(S+=4,C>>>=4),0==(3&C)&&(S+=2,C>>>=2),0==(1&C)&&S++,S},a.prototype.bitLength=function(){var C=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+C},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,C=0;Cc.length?this.clone().ior(c):c.clone().ior(this)},a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},a.prototype.iuand=function(c){var C;C=this.length>c.length?c:this;for(var S=0;Sc.length?this.clone().iand(c):c.clone().iand(this)},a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},a.prototype.iuxor=function(c){var C,S;this.length>c.length?(C=this,S=c):(C=c,S=this);for(var I=0;Ic.length?this.clone().ixor(c):c.clone().ixor(this)},a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},a.prototype.inotn=function(c){u("number"==typeof c&&c>=0);var C=0|Math.ceil(c/26),S=c%26;this._expand(C),S>0&&C--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-S),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,C){u("number"==typeof c&&c>=0);var S=c/26|0,I=c%26;return this._expand(S+1),this.words[S]=C?this.words[S]|1<c.length?(S=this,I=c):(S=c,I=this);for(var _=0,n=0;n>>26;for(;0!==_&&n>>26;if(this.length=S.length,0!==_)this.words[this.length]=_,this.length++;else if(S!==this)for(;nc.length?this.clone().iadd(c):c.clone().iadd(this)},a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var C=this.iadd(c);return c.negative=1,C._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,_,S=this.cmp(c);if(0===S)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(I=this,_=c):(I=c,_=this);for(var n=0,g=0;g<_.length;g++)n=(C=(0|I.words[g])-(0|_.words[g])+n)>>26,this.words[g]=67108863&C;for(;0!==n&&g>26,this.words[g]=67108863&C;if(0===n&&g>>13,ke=0|I[1],Ee=8191&ke,te=ke>>>13,ze=0|I[2],be=8191&ze,Z=ze>>>13,Y=0|I[3],ot=8191&Y,Ie=Y>>>13,Ae=0|I[4],ce=8191&Ae,Te=Ae>>>13,xe=0|I[5],G=8191&xe,ee=xe>>>13,ue=0|I[6],ve=8191&ue,Le=ue>>>13,lt=0|I[7],ht=8191<,Tt=lt>>>13,hi=0|I[8],jt=8191&hi,Gt=hi>>>13,di=0|I[9],vt=8191&di,kt=di>>>13,gt=0|_[0],Qe=8191>,_t=gt>>>13,ei=0|_[1],Zt=8191&ei,Pe=ei>>>13,De=0|_[2],oe=8191&De,Me=De>>>13,ut=0|_[3],ft=8191&ut,Rt=ut>>>13,et=0|_[4],Re=8191&et,qe=et>>>13,Ze=0|_[5],we=8191&Ze,Fe=Ze>>>13,rt=0|_[6],at=8191&rt,yt=rt>>>13,mi=0|_[7],Xt=8191&mi,Jt=mi>>>13,qi=0|_[8],ui=8191&qi,si=qi>>>13,en=0|_[9],Ui=8191&en,Bi=en>>>13;S.negative=c.negative^C.negative,S.length=19;var Gi=(g+(V=Math.imul(fe,Qe))|0)+((8191&(R=(R=Math.imul(fe,_t))+Math.imul(ye,Qe)|0))<<13)|0;g=((H=Math.imul(ye,_t))+(R>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,V=Math.imul(Ee,Qe),R=(R=Math.imul(Ee,_t))+Math.imul(te,Qe)|0,H=Math.imul(te,_t);var ct=(g+(V=V+Math.imul(fe,Zt)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0))<<13)|0;g=((H=H+Math.imul(ye,Pe)|0)+(R>>>13)|0)+(ct>>>26)|0,ct&=67108863,V=Math.imul(be,Qe),R=(R=Math.imul(be,_t))+Math.imul(Z,Qe)|0,H=Math.imul(Z,_t),V=V+Math.imul(Ee,Zt)|0,R=(R=R+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,H=H+Math.imul(te,Pe)|0;var Ft=(g+(V=V+Math.imul(fe,oe)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0))<<13)|0;g=((H=H+Math.imul(ye,Me)|0)+(R>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,V=Math.imul(ot,Qe),R=(R=Math.imul(ot,_t))+Math.imul(Ie,Qe)|0,H=Math.imul(Ie,_t),V=V+Math.imul(be,Zt)|0,R=(R=R+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,H=H+Math.imul(Z,Pe)|0,V=V+Math.imul(Ee,oe)|0,R=(R=R+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,H=H+Math.imul(te,Me)|0;var pt=(g+(V=V+Math.imul(fe,ft)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0))<<13)|0;g=((H=H+Math.imul(ye,Rt)|0)+(R>>>13)|0)+(pt>>>26)|0,pt&=67108863,V=Math.imul(ce,Qe),R=(R=Math.imul(ce,_t))+Math.imul(Te,Qe)|0,H=Math.imul(Te,_t),V=V+Math.imul(ot,Zt)|0,R=(R=R+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,H=H+Math.imul(Ie,Pe)|0,V=V+Math.imul(be,oe)|0,R=(R=R+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,H=H+Math.imul(Z,Me)|0,V=V+Math.imul(Ee,ft)|0,R=(R=R+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,H=H+Math.imul(te,Rt)|0;var it=(g+(V=V+Math.imul(fe,Re)|0)|0)+((8191&(R=(R=R+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0))<<13)|0;g=((H=H+Math.imul(ye,qe)|0)+(R>>>13)|0)+(it>>>26)|0,it&=67108863,V=Math.imul(G,Qe),R=(R=Math.imul(G,_t))+Math.imul(ee,Qe)|0,H=Math.imul(ee,_t),V=V+Math.imul(ce,Zt)|0,R=(R=R+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,H=H+Math.imul(Te,Pe)|0,V=V+Math.imul(ot,oe)|0,R=(R=R+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,H=H+Math.imul(Ie,Me)|0,V=V+Math.imul(be,ft)|0,R=(R=R+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,H=H+Math.imul(Z,Rt)|0,V=V+Math.imul(Ee,Re)|0,R=(R=R+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,H=H+Math.imul(te,qe)|0;var It=(g+(V=V+Math.imul(fe,we)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0))<<13)|0;g=((H=H+Math.imul(ye,Fe)|0)+(R>>>13)|0)+(It>>>26)|0,It&=67108863,V=Math.imul(ve,Qe),R=(R=Math.imul(ve,_t))+Math.imul(Le,Qe)|0,H=Math.imul(Le,_t),V=V+Math.imul(G,Zt)|0,R=(R=R+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,H=H+Math.imul(ee,Pe)|0,V=V+Math.imul(ce,oe)|0,R=(R=R+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,H=H+Math.imul(Te,Me)|0,V=V+Math.imul(ot,ft)|0,R=(R=R+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,H=H+Math.imul(Ie,Rt)|0,V=V+Math.imul(be,Re)|0,R=(R=R+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,H=H+Math.imul(Z,qe)|0,V=V+Math.imul(Ee,we)|0,R=(R=R+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,H=H+Math.imul(te,Fe)|0;var de=(g+(V=V+Math.imul(fe,at)|0)|0)+((8191&(R=(R=R+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0))<<13)|0;g=((H=H+Math.imul(ye,yt)|0)+(R>>>13)|0)+(de>>>26)|0,de&=67108863,V=Math.imul(ht,Qe),R=(R=Math.imul(ht,_t))+Math.imul(Tt,Qe)|0,H=Math.imul(Tt,_t),V=V+Math.imul(ve,Zt)|0,R=(R=R+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,H=H+Math.imul(Le,Pe)|0,V=V+Math.imul(G,oe)|0,R=(R=R+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,H=H+Math.imul(ee,Me)|0,V=V+Math.imul(ce,ft)|0,R=(R=R+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,H=H+Math.imul(Te,Rt)|0,V=V+Math.imul(ot,Re)|0,R=(R=R+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,H=H+Math.imul(Ie,qe)|0,V=V+Math.imul(be,we)|0,R=(R=R+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,H=H+Math.imul(Z,Fe)|0,V=V+Math.imul(Ee,at)|0,R=(R=R+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,H=H+Math.imul(te,yt)|0;var $e=(g+(V=V+Math.imul(fe,Xt)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0))<<13)|0;g=((H=H+Math.imul(ye,Jt)|0)+(R>>>13)|0)+($e>>>26)|0,$e&=67108863,V=Math.imul(jt,Qe),R=(R=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,H=Math.imul(Gt,_t),V=V+Math.imul(ht,Zt)|0,R=(R=R+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,H=H+Math.imul(Tt,Pe)|0,V=V+Math.imul(ve,oe)|0,R=(R=R+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,H=H+Math.imul(Le,Me)|0,V=V+Math.imul(G,ft)|0,R=(R=R+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,H=H+Math.imul(ee,Rt)|0,V=V+Math.imul(ce,Re)|0,R=(R=R+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,H=H+Math.imul(Te,qe)|0,V=V+Math.imul(ot,we)|0,R=(R=R+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,H=H+Math.imul(Ie,Fe)|0,V=V+Math.imul(be,at)|0,R=(R=R+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,H=H+Math.imul(Z,yt)|0,V=V+Math.imul(Ee,Xt)|0,R=(R=R+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,H=H+Math.imul(te,Jt)|0;var bt=(g+(V=V+Math.imul(fe,ui)|0)|0)+((8191&(R=(R=R+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;g=((H=H+Math.imul(ye,si)|0)+(R>>>13)|0)+(bt>>>26)|0,bt&=67108863,V=Math.imul(vt,Qe),R=(R=Math.imul(vt,_t))+Math.imul(kt,Qe)|0,H=Math.imul(kt,_t),V=V+Math.imul(jt,Zt)|0,R=(R=R+Math.imul(jt,Pe)|0)+Math.imul(Gt,Zt)|0,H=H+Math.imul(Gt,Pe)|0,V=V+Math.imul(ht,oe)|0,R=(R=R+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,H=H+Math.imul(Tt,Me)|0,V=V+Math.imul(ve,ft)|0,R=(R=R+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,H=H+Math.imul(Le,Rt)|0,V=V+Math.imul(G,Re)|0,R=(R=R+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,H=H+Math.imul(ee,qe)|0,V=V+Math.imul(ce,we)|0,R=(R=R+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,H=H+Math.imul(Te,Fe)|0,V=V+Math.imul(ot,at)|0,R=(R=R+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,H=H+Math.imul(Ie,yt)|0,V=V+Math.imul(be,Xt)|0,R=(R=R+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,H=H+Math.imul(Z,Jt)|0,V=V+Math.imul(Ee,ui)|0,R=(R=R+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0,H=H+Math.imul(te,si)|0;var Vt=(g+(V=V+Math.imul(fe,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(fe,Bi)|0)+Math.imul(ye,Ui)|0))<<13)|0;g=((H=H+Math.imul(ye,Bi)|0)+(R>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,V=Math.imul(vt,Zt),R=(R=Math.imul(vt,Pe))+Math.imul(kt,Zt)|0,H=Math.imul(kt,Pe),V=V+Math.imul(jt,oe)|0,R=(R=R+Math.imul(jt,Me)|0)+Math.imul(Gt,oe)|0,H=H+Math.imul(Gt,Me)|0,V=V+Math.imul(ht,ft)|0,R=(R=R+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,H=H+Math.imul(Tt,Rt)|0,V=V+Math.imul(ve,Re)|0,R=(R=R+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,H=H+Math.imul(Le,qe)|0,V=V+Math.imul(G,we)|0,R=(R=R+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,H=H+Math.imul(ee,Fe)|0,V=V+Math.imul(ce,at)|0,R=(R=R+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,H=H+Math.imul(Te,yt)|0,V=V+Math.imul(ot,Xt)|0,R=(R=R+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,H=H+Math.imul(Ie,Jt)|0,V=V+Math.imul(be,ui)|0,R=(R=R+Math.imul(be,si)|0)+Math.imul(Z,ui)|0,H=H+Math.imul(Z,si)|0;var bi=(g+(V=V+Math.imul(Ee,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(Ee,Bi)|0)+Math.imul(te,Ui)|0))<<13)|0;g=((H=H+Math.imul(te,Bi)|0)+(R>>>13)|0)+(bi>>>26)|0,bi&=67108863,V=Math.imul(vt,oe),R=(R=Math.imul(vt,Me))+Math.imul(kt,oe)|0,H=Math.imul(kt,Me),V=V+Math.imul(jt,ft)|0,R=(R=R+Math.imul(jt,Rt)|0)+Math.imul(Gt,ft)|0,H=H+Math.imul(Gt,Rt)|0,V=V+Math.imul(ht,Re)|0,R=(R=R+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,H=H+Math.imul(Tt,qe)|0,V=V+Math.imul(ve,we)|0,R=(R=R+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,H=H+Math.imul(Le,Fe)|0,V=V+Math.imul(G,at)|0,R=(R=R+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,H=H+Math.imul(ee,yt)|0,V=V+Math.imul(ce,Xt)|0,R=(R=R+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,H=H+Math.imul(Te,Jt)|0,V=V+Math.imul(ot,ui)|0,R=(R=R+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0,H=H+Math.imul(Ie,si)|0;var Li=(g+(V=V+Math.imul(be,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(be,Bi)|0)+Math.imul(Z,Ui)|0))<<13)|0;g=((H=H+Math.imul(Z,Bi)|0)+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,V=Math.imul(vt,ft),R=(R=Math.imul(vt,Rt))+Math.imul(kt,ft)|0,H=Math.imul(kt,Rt),V=V+Math.imul(jt,Re)|0,R=(R=R+Math.imul(jt,qe)|0)+Math.imul(Gt,Re)|0,H=H+Math.imul(Gt,qe)|0,V=V+Math.imul(ht,we)|0,R=(R=R+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,H=H+Math.imul(Tt,Fe)|0,V=V+Math.imul(ve,at)|0,R=(R=R+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,H=H+Math.imul(Le,yt)|0,V=V+Math.imul(G,Xt)|0,R=(R=R+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,H=H+Math.imul(ee,Jt)|0,V=V+Math.imul(ce,ui)|0,R=(R=R+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0,H=H+Math.imul(Te,si)|0;var Ji=(g+(V=V+Math.imul(ot,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ot,Bi)|0)+Math.imul(Ie,Ui)|0))<<13)|0;g=((H=H+Math.imul(Ie,Bi)|0)+(R>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,V=Math.imul(vt,Re),R=(R=Math.imul(vt,qe))+Math.imul(kt,Re)|0,H=Math.imul(kt,qe),V=V+Math.imul(jt,we)|0,R=(R=R+Math.imul(jt,Fe)|0)+Math.imul(Gt,we)|0,H=H+Math.imul(Gt,Fe)|0,V=V+Math.imul(ht,at)|0,R=(R=R+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,H=H+Math.imul(Tt,yt)|0,V=V+Math.imul(ve,Xt)|0,R=(R=R+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,H=H+Math.imul(Le,Jt)|0,V=V+Math.imul(G,ui)|0,R=(R=R+Math.imul(G,si)|0)+Math.imul(ee,ui)|0,H=H+Math.imul(ee,si)|0;var Wi=(g+(V=V+Math.imul(ce,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ce,Bi)|0)+Math.imul(Te,Ui)|0))<<13)|0;g=((H=H+Math.imul(Te,Bi)|0)+(R>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,V=Math.imul(vt,we),R=(R=Math.imul(vt,Fe))+Math.imul(kt,we)|0,H=Math.imul(kt,Fe),V=V+Math.imul(jt,at)|0,R=(R=R+Math.imul(jt,yt)|0)+Math.imul(Gt,at)|0,H=H+Math.imul(Gt,yt)|0,V=V+Math.imul(ht,Xt)|0,R=(R=R+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,H=H+Math.imul(Tt,Jt)|0,V=V+Math.imul(ve,ui)|0,R=(R=R+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0,H=H+Math.imul(Le,si)|0;var sn=(g+(V=V+Math.imul(G,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(G,Bi)|0)+Math.imul(ee,Ui)|0))<<13)|0;g=((H=H+Math.imul(ee,Bi)|0)+(R>>>13)|0)+(sn>>>26)|0,sn&=67108863,V=Math.imul(vt,at),R=(R=Math.imul(vt,yt))+Math.imul(kt,at)|0,H=Math.imul(kt,yt),V=V+Math.imul(jt,Xt)|0,R=(R=R+Math.imul(jt,Jt)|0)+Math.imul(Gt,Xt)|0,H=H+Math.imul(Gt,Jt)|0,V=V+Math.imul(ht,ui)|0,R=(R=R+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0,H=H+Math.imul(Tt,si)|0;var mn=(g+(V=V+Math.imul(ve,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ve,Bi)|0)+Math.imul(Le,Ui)|0))<<13)|0;g=((H=H+Math.imul(Le,Bi)|0)+(R>>>13)|0)+(mn>>>26)|0,mn&=67108863,V=Math.imul(vt,Xt),R=(R=Math.imul(vt,Jt))+Math.imul(kt,Xt)|0,H=Math.imul(kt,Jt),V=V+Math.imul(jt,ui)|0,R=(R=R+Math.imul(jt,si)|0)+Math.imul(Gt,ui)|0,H=H+Math.imul(Gt,si)|0;var Yt=(g+(V=V+Math.imul(ht,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(ht,Bi)|0)+Math.imul(Tt,Ui)|0))<<13)|0;g=((H=H+Math.imul(Tt,Bi)|0)+(R>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,V=Math.imul(vt,ui),R=(R=Math.imul(vt,si))+Math.imul(kt,ui)|0,H=Math.imul(kt,si);var Mi=(g+(V=V+Math.imul(jt,Ui)|0)|0)+((8191&(R=(R=R+Math.imul(jt,Bi)|0)+Math.imul(Gt,Ui)|0))<<13)|0;g=((H=H+Math.imul(Gt,Bi)|0)+(R>>>13)|0)+(Mi>>>26)|0,Mi&=67108863;var Je=(g+(V=Math.imul(vt,Ui))|0)+((8191&(R=(R=Math.imul(vt,Bi))+Math.imul(kt,Ui)|0))<<13)|0;return g=((H=Math.imul(kt,Bi))+(R>>>13)|0)+(Je>>>26)|0,Je&=67108863,n[0]=Gi,n[1]=ct,n[2]=Ft,n[3]=pt,n[4]=it,n[5]=It,n[6]=de,n[7]=$e,n[8]=bt,n[9]=Vt,n[10]=bi,n[11]=Li,n[12]=Ji,n[13]=Wi,n[14]=sn,n[15]=mn,n[16]=Yt,n[17]=Mi,n[18]=Je,0!==g&&(n[19]=g,S.length++),S};function ne(h,c,C){C.negative=c.negative^h.negative,C.length=h.length+c.length;for(var S=0,I=0,_=0;_>>26)|0)>>>26,n&=67108863}C.words[_]=g,S=n,n=I}return 0!==S?C.words[_]=S:C.length--,C._strip()}function Q(h,c,C){return ne(h,c,C)}function le(h,c){this.x=h,this.y=c}Math.imul||(W=U),a.prototype.mulTo=function(c,C){var I=this.length+c.length;return 10===this.length&&10===c.length?W(this,c,C):I<63?U(this,c,C):I<1024?ne(this,c,C):Q(this,c,C)},le.prototype.makeRBT=function(c){for(var C=new Array(c),S=a.prototype._countBits(c)-1,I=0;I>=1;return I},le.prototype.permute=function(c,C,S,I,_,n){for(var g=0;g>>=1)_++;return 1<<_+1+I},le.prototype.conjugate=function(c,C,S){if(!(S<=1))for(var I=0;I>>=13),_>>>=13;for(n=2*C;n>=26,S+=_/67108864|0,S+=n>>>26,this.words[I]=67108863&n}return 0!==S&&(this.words[I]=S,this.length++),C?this.ineg():this},a.prototype.muln=function(c){return this.clone().imuln(c)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(c){var C=function z(h){for(var c=new Array(h.bitLength()),C=0;C>>C%26&1;return c}(c);if(0===C.length)return new a(1);for(var S=this,I=0;I=0);var _,C=c%26,S=(c-C)/26,I=67108863>>>26-C<<26-C;if(0!==C){var n=0;for(_=0;_>>26-C}n&&(this.words[_]=n,this.length++)}if(0!==S){for(_=this.length-1;_>=0;_--)this.words[_+S]=this.words[_];for(_=0;_=0),I=C?(C-C%26)/26:0;var _=c%26,n=Math.min((c-_)/26,this.length),g=67108863^67108863>>>_<<_,V=S;if(I-=n,I=Math.max(0,I),V){for(var R=0;Rn)for(this.length-=n,R=0;R=0&&(0!==H||R>=I);R--){var $=0|this.words[R];this.words[R]=H<<26-_|$>>>_,H=$&g}return V&&0!==H&&(V.words[V.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,C,S){return u(0===this.negative),this.iushrn(c,C,S)},a.prototype.shln=function(c){return this.clone().ishln(c)},a.prototype.ushln=function(c){return this.clone().iushln(c)},a.prototype.shrn=function(c){return this.clone().ishrn(c)},a.prototype.ushrn=function(c){return this.clone().iushrn(c)},a.prototype.testn=function(c){u("number"==typeof c&&c>=0);var C=c%26,S=(c-C)/26;return!(this.length<=S||!(this.words[S]&1<=0);var C=c%26,S=(c-C)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=S?this:(0!==C&&S++,this.length=Math.min(S,this.length),0!==C&&(this.words[this.length-1]&=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},a.prototype.isubn=function(c){if(u("number"==typeof c),u(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C>26)-(V/67108864|0),this.words[_+S]=67108863&n}for(;_>26,this.words[_+S]=67108863&n;if(0===g)return this._strip();for(u(-1===g),g=0,_=0;_>26,this.words[_]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,C){var S,I=this.clone(),_=c,n=0|_.words[_.length-1];0!=(S=26-this._countBits(n))&&(_=_.ushln(S),I.iushln(S),n=0|_.words[_.length-1]);var R,V=I.length-_.length;if("mod"!==C){(R=new a(null)).length=V+1,R.words=new Array(R.length);for(var H=0;H=0;fe--){var ye=67108864*(0|I.words[_.length+fe])+(0|I.words[_.length+fe-1]);for(ye=Math.min(ye/n|0,67108863),I._ishlnsubmul(_,ye,fe);0!==I.negative;)ye--,I.negative=0,I._ishlnsubmul(_,1,fe),I.isZero()||(I.negative^=1);R&&(R.words[fe]=ye)}return R&&R._strip(),I._strip(),"div"!==C&&0!==S&&I.iushrn(S),{div:R||null,mod:I}},a.prototype.divmod=function(c,C,S){return u(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,C),"mod"!==C&&(I=n.div.neg()),"div"!==C&&(_=n.mod.neg(),S&&0!==_.negative&&_.iadd(c)),{div:I,mod:_}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),C),"mod"!==C&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),C),"div"!==C&&(_=n.mod.neg(),S&&0!==_.negative&&_.isub(c)),{div:n.div,mod:_}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===C?{div:this.divn(c.words[0]),mod:null}:"mod"===C?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,C);var I,_,n},a.prototype.div=function(c){return this.divmod(c,"div",!1).div},a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},a.prototype.divRound=function(c){var C=this.divmod(c);if(C.mod.isZero())return C.div;var S=0!==C.div.negative?C.mod.isub(c):C.mod,I=c.ushrn(1),_=c.andln(1),n=S.cmp(I);return n<0||1===_&&0===n?C.div:0!==C.div.negative?C.div.isubn(1):C.div.iaddn(1)},a.prototype.modrn=function(c){var C=c<0;C&&(c=-c),u(c<=67108863);for(var S=(1<<26)%c,I=0,_=this.length-1;_>=0;_--)I=(S*I+(0|this.words[_]))%c;return C?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var C=c<0;C&&(c=-c),u(c<=67108863);for(var S=0,I=this.length-1;I>=0;I--){var _=(0|this.words[I])+67108864*S;this.words[I]=_/c|0,S=_%c}return this._strip(),C?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){u(0===c.negative),u(!c.isZero());var C=this,S=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var I=new a(1),_=new a(0),n=new a(0),g=new a(1),V=0;C.isEven()&&S.isEven();)C.iushrn(1),S.iushrn(1),++V;for(var R=S.clone(),H=C.clone();!C.isZero();){for(var $=0,fe=1;0==(C.words[0]&fe)&&$<26;++$,fe<<=1);if($>0)for(C.iushrn($);$-- >0;)(I.isOdd()||_.isOdd())&&(I.iadd(R),_.isub(H)),I.iushrn(1),_.iushrn(1);for(var ye=0,ke=1;0==(S.words[0]&ke)&&ye<26;++ye,ke<<=1);if(ye>0)for(S.iushrn(ye);ye-- >0;)(n.isOdd()||g.isOdd())&&(n.iadd(R),g.isub(H)),n.iushrn(1),g.iushrn(1);C.cmp(S)>=0?(C.isub(S),I.isub(n),_.isub(g)):(S.isub(C),n.isub(I),g.isub(_))}return{a:n,b:g,gcd:S.iushln(V)}},a.prototype._invmp=function(c){u(0===c.negative),u(!c.isZero());var $,C=this,S=c.clone();C=0!==C.negative?C.umod(c):C.clone();for(var I=new a(1),_=new a(0),n=S.clone();C.cmpn(1)>0&&S.cmpn(1)>0;){for(var g=0,V=1;0==(C.words[0]&V)&&g<26;++g,V<<=1);if(g>0)for(C.iushrn(g);g-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var R=0,H=1;0==(S.words[0]&H)&&R<26;++R,H<<=1);if(R>0)for(S.iushrn(R);R-- >0;)_.isOdd()&&_.iadd(n),_.iushrn(1);C.cmp(S)>=0?(C.isub(S),I.isub(_)):(S.isub(C),_.isub(I))}return($=0===C.cmpn(1)?I:_).cmpn(0)<0&&$.iadd(c),$},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var C=this.clone(),S=c.clone();C.negative=0,S.negative=0;for(var I=0;C.isEven()&&S.isEven();I++)C.iushrn(1),S.iushrn(1);for(;;){for(;C.isEven();)C.iushrn(1);for(;S.isEven();)S.iushrn(1);var _=C.cmp(S);if(_<0){var n=C;C=S,S=n}else if(0===_||0===S.cmpn(1))break;C.isub(S)}return S.iushln(I)},a.prototype.invm=function(c){return this.egcd(c).a.umod(c)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(c){return this.words[0]&c},a.prototype.bincn=function(c){u("number"==typeof c);var C=c%26,S=(c-C)/26,I=1<>>26,this.words[n]=g&=67108863}return 0!==_&&(this.words[n]=_,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var S,C=c<0;if(0!==this.negative&&!C)return-1;if(0===this.negative&&C)return 1;if(this._strip(),this.length>1)S=1;else{C&&(c=-c),u(c<=67108863,"Number is too big");var I=0|this.words[0];S=I===c?0:Ic.length)return 1;if(this.length=0;S--){var I=0|this.words[S],_=0|c.words[S];if(I!==_){I<_?C=-1:I>_&&(C=1);break}}return C},a.prototype.gtn=function(c){return 1===this.cmpn(c)},a.prototype.gt=function(c){return 1===this.cmp(c)},a.prototype.gten=function(c){return this.cmpn(c)>=0},a.prototype.gte=function(c){return this.cmp(c)>=0},a.prototype.ltn=function(c){return-1===this.cmpn(c)},a.prototype.lt=function(c){return-1===this.cmp(c)},a.prototype.lten=function(c){return this.cmpn(c)<=0},a.prototype.lte=function(c){return this.cmp(c)<=0},a.prototype.eqn=function(c){return 0===this.cmpn(c)},a.prototype.eq=function(c){return 0===this.cmp(c)},a.red=function(c){return new t(c)},a.prototype.toRed=function(c){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(c){return this.red=c,this},a.prototype.forceRed=function(c){return u(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return u(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var q={k256:null,p224:null,p192:null,p25519:null};function ie(h,c){this.name=h,this.p=new a(c,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function J(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function me(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(h){if("string"==typeof h){var c=a._prime(h);this.m=c.p,this.prime=c}else u(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}function r(h){t.call(this,h),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ie.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},ie.prototype.ireduce=function(c){var S,C=c;do{this.split(C,this.tmp),S=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength()}while(S>this.n);var I=S0?C.isub(this.p):void 0!==C.strip?C.strip():C._strip(),C},ie.prototype.split=function(c,C){c.iushrn(this.n,0,C)},ie.prototype.imulK=function(c){return c.imul(this.k)},b(se,ie),se.prototype.split=function(c,C){for(var S=4194303,I=Math.min(c.length,9),_=0;_>>22,n=g}c.words[_-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},se.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var C=0,S=0;S>>=26,c.words[S]=_,C=I}return 0!==C&&(c.words[c.length++]=C),c},a._prime=function(c){if(q[c])return q[c];var C;if("k256"===c)C=new se;else if("p224"===c)C=new J;else if("p192"===c)C=new me;else{if("p25519"!==c)throw new Error("Unknown prime "+c);C=new x}return q[c]=C,C},t.prototype._verify1=function(c){u(0===c.negative,"red works only with positives"),u(c.red,"red works only with red numbers")},t.prototype._verify2=function(c,C){u(0==(c.negative|C.negative),"red works only with positives"),u(c.red&&c.red===C.red,"red works only with red numbers")},t.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(T(c,c.umod(this.m)._forceRed(this)),c)},t.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},t.prototype.add=function(c,C){this._verify2(c,C);var S=c.add(C);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},t.prototype.iadd=function(c,C){this._verify2(c,C);var S=c.iadd(C);return S.cmp(this.m)>=0&&S.isub(this.m),S},t.prototype.sub=function(c,C){this._verify2(c,C);var S=c.sub(C);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},t.prototype.isub=function(c,C){this._verify2(c,C);var S=c.isub(C);return S.cmpn(0)<0&&S.iadd(this.m),S},t.prototype.shl=function(c,C){return this._verify1(c),this.imod(c.ushln(C))},t.prototype.imul=function(c,C){return this._verify2(c,C),this.imod(c.imul(C))},t.prototype.mul=function(c,C){return this._verify2(c,C),this.imod(c.mul(C))},t.prototype.isqr=function(c){return this.imul(c,c.clone())},t.prototype.sqr=function(c){return this.mul(c,c)},t.prototype.sqrt=function(c){if(c.isZero())return c.clone();var C=this.m.andln(3);if(u(C%2==1),3===C){var S=this.m.add(new a(1)).iushrn(2);return this.pow(c,S)}for(var I=this.m.subn(1),_=0;!I.isZero()&&0===I.andln(1);)_++,I.iushrn(1);u(!I.isZero());var n=new a(1).toRed(this),g=n.redNeg(),V=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new a(2*R*R).toRed(this);0!==this.pow(R,V).cmp(g);)R.redIAdd(g);for(var H=this.pow(R,I),$=this.pow(c,I.addn(1).iushrn(1)),fe=this.pow(c,I),ye=_;0!==fe.cmp(n);){for(var ke=fe,Ee=0;0!==ke.cmp(n);Ee++)ke=ke.redSqr();u(Ee=0;_--){for(var H=C.words[_],$=R-1;$>=0;$--){var fe=H>>$&1;n!==I[0]&&(n=this.sqr(n)),0!==fe||0!==g?(g<<=1,g|=fe,(4==++V||0===_&&0===$)&&(n=this.mul(n,I[g]),V=0,g=0)):V=0}R=26}return n},t.prototype.convertTo=function(c){var C=c.umod(this.m);return C===c?C.clone():C},t.prototype.convertFrom=function(c){var C=c.clone();return C.red=null,C},a.mont=function(c){return new r(c)},b(r,t),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var C=this.imod(c.mul(this.rinv));return C.red=null,C},r.prototype.imul=function(c,C){if(c.isZero()||C.isZero())return c.words[0]=0,c.length=1,c;var S=c.imul(C),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=S.isub(I).iushrn(this.shift),n=_;return _.cmp(this.m)>=0?n=_.isub(this.m):_.cmpn(0)<0&&(n=_.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,C){if(c.isZero()||C.isZero())return new a(0)._forceRed(this);var S=c.mul(C),I=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=S.isub(I).iushrn(this.shift),n=_;return _.cmp(this.m)>=0?n=_.isub(this.m):_.cmpn(0)<0&&(n=_.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},7950:(He,j,p)=>{var e;function i(b){this.rand=b}if(He.exports=function(a){return e||(e=new i(null)),e.generate(a)},He.exports.Rand=i,i.prototype.generate=function(a){return this._rand(a)},i.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var y=new Uint8Array(a),d=0;d{var e=p(3502).Buffer;function i(P){e.isBuffer(P)||(P=e.from(P));for(var D=P.length/4|0,T=new Array(D),M=0;M>>24]^k[W>>>16&255]^w[ne>>>8&255]^z[255&Q]^D[J++],q=E[W>>>24]^k[ne>>>16&255]^w[Q>>>8&255]^z[255&U]^D[J++],ie=E[ne>>>24]^k[Q>>>16&255]^w[U>>>8&255]^z[255&W]^D[J++],se=E[Q>>>24]^k[U>>>16&255]^w[W>>>8&255]^z[255&ne]^D[J++],U=le,W=q,ne=ie,Q=se;return le=(M[U>>>24]<<24|M[W>>>16&255]<<16|M[ne>>>8&255]<<8|M[255&Q])^D[J++],q=(M[W>>>24]<<24|M[ne>>>16&255]<<16|M[Q>>>8&255]<<8|M[255&U])^D[J++],ie=(M[ne>>>24]<<24|M[Q>>>16&255]<<16|M[U>>>8&255]<<8|M[255&W])^D[J++],se=(M[Q>>>24]<<24|M[U>>>16&255]<<16|M[W>>>8&255]<<8|M[255&ne])^D[J++],[le>>>=0,q>>>=0,ie>>>=0,se>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],y=function(){for(var P=new Array(256),D=0;D<256;D++)P[D]=D<128?D<<1:D<<1^283;for(var T=[],M=[],A=[[],[],[],[]],E=[[],[],[],[]],k=0,w=0,z=0;z<256;++z){var U=w^w<<1^w<<2^w<<3^w<<4;T[k]=U=U>>>8^255&U^99,M[U]=k;var W=P[k],ne=P[W],Q=P[ne],le=257*P[U]^16843008*U;A[0][k]=le<<24|le>>>8,A[1][k]=le<<16|le>>>16,A[2][k]=le<<8|le>>>24,A[3][k]=le,E[0][U]=(le=16843009*Q^65537*ne^257*W^16843008*k)<<24|le>>>8,E[1][U]=le<<16|le>>>16,E[2][U]=le<<8|le>>>24,E[3][U]=le,0===k?k=w=1:(k=W^P[P[P[Q^W]]],w^=P[P[w]])}return{SBOX:T,INV_SBOX:M,SUB_MIX:A,INV_SUB_MIX:E}}();function d(P){this._key=i(P),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var P=this._key,D=P.length,T=D+6,M=4*(T+1),A=[],E=0;E>>24)>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k],k^=a[E/D|0]<<24):D>6&&E%D==4&&(k=y.SBOX[k>>>24]<<24|y.SBOX[k>>>16&255]<<16|y.SBOX[k>>>8&255]<<8|y.SBOX[255&k]),A[E]=A[E-D]^k}for(var w=[],z=0;z>>24]]^y.INV_SUB_MIX[1][y.SBOX[W>>>16&255]]^y.INV_SUB_MIX[2][y.SBOX[W>>>8&255]]^y.INV_SUB_MIX[3][y.SBOX[255&W]]}this._nRounds=T,this._keySchedule=A,this._invKeySchedule=w},d.prototype.encryptBlockRaw=function(P){return b(P=i(P),this._keySchedule,y.SUB_MIX,y.SBOX,this._nRounds)},d.prototype.encryptBlock=function(P){var D=this.encryptBlockRaw(P),T=e.allocUnsafe(16);return T.writeUInt32BE(D[0],0),T.writeUInt32BE(D[1],4),T.writeUInt32BE(D[2],8),T.writeUInt32BE(D[3],12),T},d.prototype.decryptBlock=function(P){var D=(P=i(P))[1];P[1]=P[3],P[3]=D;var T=b(P,this._invKeySchedule,y.INV_SUB_MIX,y.INV_SBOX,this._nRounds),M=e.allocUnsafe(16);return M.writeUInt32BE(T[0],0),M.writeUInt32BE(T[3],4),M.writeUInt32BE(T[2],8),M.writeUInt32BE(T[1],12),M},d.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},He.exports.AES=d},9382:(He,j,p)=>{var e=p(1899),i=p(3502).Buffer,u=p(1052),b=p(3894),a=p(8857),y=p(8789),d=p(7968);function T(M,A,E,k){u.call(this);var w=i.alloc(4,0);this._cipher=new e.AES(A);var z=this._cipher.encryptBlock(w);this._ghash=new a(z),E=function D(M,A,E){if(12===A.length)return M._finID=i.concat([A,i.from([0,0,0,1])]),i.concat([A,i.from([0,0,0,2])]);var k=new a(E),w=A.length,z=w%16;k.update(A),z&&k.update(i.alloc(z=16-z,0)),k.update(i.alloc(8,0));var U=8*w,W=i.alloc(8);W.writeUIntBE(U,0,8),k.update(W),M._finID=k.state;var ne=i.from(M._finID);return d(ne),ne}(this,E,z),this._prev=i.from(E),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=M,this._authTag=null,this._called=!1}b(T,u),T.prototype._update=function(M){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=i.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,M);return this._ghash.update(this._decrypt?M:E),this._len+=M.length,E},T.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var M=y(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function P(M,A){var E=0;M.length!==A.length&&E++;for(var k=Math.min(M.length,A.length),w=0;w{var e=p(6900),i=p(856),u=p(4946);j.createCipher=j.Cipher=e.createCipher,j.createCipheriv=j.Cipheriv=e.createCipheriv,j.createDecipher=j.Decipher=i.createDecipher,j.createDecipheriv=j.Decipheriv=i.createDecipheriv,j.listCiphers=j.getCiphers=function b(){return Object.keys(u)}},856:(He,j,p)=>{var e=p(9382),i=p(3502).Buffer,u=p(9171),b=p(8441),a=p(1052),y=p(1899),d=p(347);function D(k,w,z){a.call(this),this._cache=new T,this._last=void 0,this._cipher=new y.AES(w),this._prev=i.from(z),this._mode=k,this._autopadding=!0}function T(){this.cache=i.allocUnsafe(0)}function A(k,w,z){var U=u[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof z&&(z=i.from(z)),"GCM"!==U.mode&&z.length!==U.iv)throw new TypeError("invalid iv length "+z.length);if("string"==typeof w&&(w=i.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===U.type?new b(U.module,w,z,!0):"auth"===U.type?new e(U.module,w,z,!0):new D(U.module,w,z)}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,z,U=[];w=this._cache.get(this._autopadding);)z=this._mode.decrypt(this,w),U.push(z);return i.concat(U)},D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function M(k){var w=k[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var z=-1;++z16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},T.prototype.flush=function(){if(this.cache.length)return this.cache},j.createDecipher=function E(k,w){var z=u[k.toLowerCase()];if(!z)throw new TypeError("invalid suite type");var U=d(w,!1,z.key,z.iv);return A(k,U.key,U.iv)},j.createDecipheriv=A},6900:(He,j,p)=>{var e=p(9171),i=p(9382),u=p(3502).Buffer,b=p(8441),a=p(1052),y=p(1899),d=p(347);function D(k,w,z){a.call(this),this._cache=new M,this._cipher=new y.AES(w),this._prev=u.from(z),this._mode=k,this._autopadding=!0}p(3894)(D,a),D.prototype._update=function(k){this._cache.add(k);for(var w,z,U=[];w=this._cache.get();)z=this._mode.encrypt(this,w),U.push(z);return u.concat(U)};var T=u.alloc(16,16);function M(){this.cache=u.allocUnsafe(0)}function A(k,w,z){var U=e[k.toLowerCase()];if(!U)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=u.from(w)),w.length!==U.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof z&&(z=u.from(z)),"GCM"!==U.mode&&z.length!==U.iv)throw new TypeError("invalid iv length "+z.length);return"stream"===U.type?new b(U.module,w,z):"auth"===U.type?new i(U.module,w,z):new D(U.module,w,z)}D.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(T))throw this._cipher.scrub(),new Error("data not multiple of block length")},D.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},M.prototype.add=function(k){this.cache=u.concat([this.cache,k])},M.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},M.prototype.flush=function(){for(var k=16-this.cache.length,w=u.allocUnsafe(k),z=-1;++z{var e=p(3502).Buffer,i=e.alloc(16,0);function b(y){var d=e.allocUnsafe(16);return d.writeUInt32BE(y[0]>>>0,0),d.writeUInt32BE(y[1]>>>0,4),d.writeUInt32BE(y[2]>>>0,8),d.writeUInt32BE(y[3]>>>0,12),d}function a(y){this.h=y,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}a.prototype.ghash=function(y){for(var d=-1;++d0;P--)y[P]=y[P]>>>1|(1&y[P-1])<<31;y[0]=y[0]>>>1,T&&(y[0]=y[0]^225<<24)}this.state=b(d)},a.prototype.update=function(y){this.cache=e.concat([this.cache,y]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},a.prototype.final=function(y,d){return this.cache.length&&this.ghash(e.concat([this.cache,i],16)),this.ghash(b([0,y,0,d])),this.state},He.exports=a},7968:He=>{He.exports=function j(p){for(var i,e=p.length;e--;){if(255!==(i=p.readUInt8(e))){i++,p.writeUInt8(i,e);break}p.writeUInt8(0,e)}}},4903:(He,j,p)=>{var e=p(8789);j.encrypt=function(i,u){var b=e(u,i._prev);return i._prev=i._cipher.encryptBlock(b),i._prev},j.decrypt=function(i,u){var b=i._prev;i._prev=u;var a=i._cipher.decryptBlock(u);return e(a,b)}},9885:(He,j,p)=>{var e=p(3502).Buffer,i=p(8789);function u(b,a,y){var d=a.length,P=i(a,b._cache);return b._cache=b._cache.slice(d),b._prev=e.concat([b._prev,y?a:P]),P}j.encrypt=function(b,a,y){for(var P,d=e.allocUnsafe(0);a.length;){if(0===b._cache.length&&(b._cache=b._cipher.encryptBlock(b._prev),b._prev=e.allocUnsafe(0)),!(b._cache.length<=a.length)){d=e.concat([d,u(b,a,y)]);break}d=e.concat([d,u(b,a.slice(0,P=b._cache.length),y)]),a=a.slice(P)}return d}},6531:(He,j,p)=>{var e=p(3502).Buffer;function i(b,a,y){for(var M,A,P=-1,T=0;++P<8;)T+=(128&(A=b._cipher.encryptBlock(b._prev)[0]^(M=a&1<<7-P?128:0)))>>P%8,b._prev=u(b._prev,y?M:A);return T}function u(b,a){var y=b.length,d=-1,P=e.allocUnsafe(b.length);for(b=e.concat([b,e.from([a])]);++d>7;return P}j.encrypt=function(b,a,y){for(var d=a.length,P=e.allocUnsafe(d),D=-1;++D{var e=p(3502).Buffer;function i(u,b,a){var d=u._cipher.encryptBlock(u._prev)[0]^b;return u._prev=e.concat([u._prev.slice(1),e.from([a?b:d])]),d}j.encrypt=function(u,b,a){for(var y=b.length,d=e.allocUnsafe(y),P=-1;++P{var e=p(8789),i=p(3502).Buffer,u=p(7968);function b(y){var d=y._cipher.encryptBlockRaw(y._prev);return u(y._prev),d}j.encrypt=function(y,d){var P=Math.ceil(d.length/16),D=y._cache.length;y._cache=i.concat([y._cache,i.allocUnsafe(16*P)]);for(var T=0;T{j.encrypt=function(p,e){return p._cipher.encryptBlock(e)},j.decrypt=function(p,e){return p._cipher.decryptBlock(e)}},9171:(He,j,p)=>{var e={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},i=p(4946);for(var u in i)i[u].module=e[i[u].mode];He.exports=i},6816:(He,j,p)=>{var e=p(8789);function i(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}j.encrypt=function(u,b){for(;u._cache.length{var e=p(1899),i=p(3502).Buffer,u=p(1052);function a(y,d,P,D){u.call(this),this._cipher=new e.AES(d),this._prev=i.from(P),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=D,this._mode=y}p(3894)(a,u),a.prototype._update=function(y){return this._mode.encrypt(this,y,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},He.exports=a},5255:(He,j,p)=>{var e=p(9004),i=p(4330),u=p(9171),b=p(1115),a=p(347);function P(M,A,E){if(M=M.toLowerCase(),u[M])return i.createCipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M});throw new TypeError("invalid suite type")}function D(M,A,E){if(M=M.toLowerCase(),u[M])return i.createDecipheriv(M,A,E);if(b[M])return new e({key:A,iv:E,mode:M,decrypt:!0});throw new TypeError("invalid suite type")}j.createCipher=j.Cipher=function y(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return P(M,w.key,w.iv)},j.createCipheriv=j.Cipheriv=P,j.createDecipher=j.Decipher=function d(M,A){var E,k;if(M=M.toLowerCase(),u[M])E=u[M].key,k=u[M].iv;else{if(!b[M])throw new TypeError("invalid suite type");E=8*b[M].key,k=b[M].iv}var w=a(A,!1,E,k);return D(M,w.key,w.iv)},j.createDecipheriv=j.Decipheriv=D,j.listCiphers=j.getCiphers=function T(){return Object.keys(b).concat(i.getCiphers())}},9004:(He,j,p)=>{var e=p(1052),i=p(3684),u=p(3894),b=p(3502).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function y(d){e.call(this);var T,P=d.mode.toLowerCase(),D=a[P];T=d.decrypt?"decrypt":"encrypt";var M=d.key;b.isBuffer(M)||(M=b.from(M)),("des-ede"===P||"des-ede-cbc"===P)&&(M=b.concat([M,M.slice(0,8)]));var A=d.iv;b.isBuffer(A)||(A=b.from(A)),this._des=D.create({key:M,iv:A,type:T})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],He.exports=y,u(y,e),y.prototype._update=function(d){return b.from(this._des.update(d))},y.prototype._final=function(){return b.from(this._des.final())}},1115:(He,j)=>{j["des-ecb"]={key:8,iv:0},j["des-cbc"]=j.des={key:8,iv:8},j["des-ede3-cbc"]=j.des3={key:24,iv:8},j["des-ede3"]={key:24,iv:0},j["des-ede-cbc"]={key:16,iv:8},j["des-ede"]={key:16,iv:0}},8466:(He,j,p)=>{var e=p(8538),i=p(3753);function b(y){var P,d=y.modulus.byteLength();do{P=new e(i(d))}while(P.cmp(y.modulus)>=0||!P.umod(y.prime1)||!P.umod(y.prime2));return P}function a(y,d){var P=function u(y){var d=b(y);return{blinder:d.toRed(e.mont(y.modulus)).redPow(new e(y.publicExponent)).fromRed(),unblinder:d.invm(y.modulus)}}(d),D=d.modulus.byteLength(),T=new e(y).mul(P.blinder).umod(d.modulus),M=T.toRed(e.mont(d.prime1)),A=T.toRed(e.mont(d.prime2)),E=d.coefficient,k=d.prime1,w=d.prime2,z=M.redPow(d.exponent1).fromRed(),U=A.redPow(d.exponent2).fromRed(),W=z.isub(U).imul(E).umod(k).imul(w);return U.iadd(W).imul(P.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",D)}a.getr=b,He.exports=a},7793:(He,j,p)=>{He.exports=p(5207)},3923:(He,j,p)=>{var e=p(8446).Buffer,i=p(6386),u=p(5685),b=p(3894),a=p(9947),y=p(3946),d=p(5207);function P(A){u.Writable.call(this);var E=d[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function D(A){u.Writable.call(this);var E=d[A];if(!E)throw new Error("Unknown message digest");this._hash=i(E.hash),this._tag=E.id,this._signType=E.sign}function T(A){return new P(A)}function M(A){return new D(A)}Object.keys(d).forEach(function(A){d[A].id=e.from(d[A].id,"hex"),d[A.toLowerCase()]=d[A]}),b(P,u.Writable),P.prototype._write=function(E,k,w){this._hash.update(E),w()},P.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},P.prototype.sign=function(E,k){this.end();var w=this._hash.digest(),z=a(w,E,this._hashType,this._signType,this._tag);return k?z.toString(k):z},b(D,u.Writable),D.prototype._write=function(E,k,w){this._hash.update(E),w()},D.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},D.prototype.verify=function(E,k,w){"string"==typeof k&&(k=e.from(k,w)),this.end();var z=this._hash.digest();return y(k,z,E,this._signType,this._tag)},He.exports={Sign:T,Verify:M,createSign:T,createVerify:M}},9947:(He,j,p)=>{var e=p(8446).Buffer,i=p(4529),u=p(8466),b=p(7715).ec,a=p(8538),y=p(2772),d=p(1308);function A(U,W,ne,Q){if((U=e.from(U.toArray())).length0&&ne.ishrn(Q),ne}function w(U,W,ne){var Q,le;do{for(Q=e.alloc(0);8*Q.length{var e=p(8446).Buffer,i=p(8538),u=p(7715).ec,b=p(2772),a=p(1308);function D(T,M){if(T.cmpn(0)<=0)throw new Error("invalid sig");if(T.cmp(M)>=M)throw new Error("invalid sig")}He.exports=function y(T,M,A,E,k){var w=b(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function d(T,M,A){var E=a[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new u(E).verify(M,T,A.data.subjectPrivateKey.data)}(T,M,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function P(T,M,A){var E=A.data.p,k=A.data.q,w=A.data.g,z=A.data.pub_key,U=b.signature.decode(T,"der"),W=U.s,ne=U.r;D(W,k),D(ne,k);var Q=i.mont(E),le=W.invm(k);return 0===w.toRed(Q).redPow(new i(M).mul(le).mod(k)).fromRed().mul(z.toRed(Q).redPow(ne.mul(le).mod(k)).fromRed()).mod(E).mod(k).cmp(ne)}(T,M,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");M=e.concat([k,M]);for(var z=w.modulus.byteLength(),U=[1],W=0;M.length+U.length+2{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},8789:He=>{He.exports=function(p,e){for(var i=Math.min(p.length,e.length),u=new Buffer(i),b=0;b{"use strict";var e=p(5343),i=p(8461),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=d,j.SlowBuffer=function W(Ie){return+Ie!=Ie&&(Ie=0),d.alloc(+Ie)},j.INSPECT_MAX_BYTES=50;var b=2147483647;function y(Ie){if(Ie>b)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var Ae=new Uint8Array(Ie);return Object.setPrototypeOf(Ae,d.prototype),Ae}function d(Ie,Ae,ce){if("number"==typeof Ie){if("string"==typeof Ae)throw new TypeError('The "string" argument must be of type string. Received type number');return M(Ie)}return P(Ie,Ae,ce)}function P(Ie,Ae,ce){if("string"==typeof Ie)return function A(Ie,Ae){if(("string"!=typeof Ae||""===Ae)&&(Ae="utf8"),!d.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);var ce=0|ne(Ie,Ae),Te=y(ce),xe=Te.write(Ie,Ae);return xe!==ce&&(Te=Te.slice(0,xe)),Te}(Ie,Ae);if(ArrayBuffer.isView(Ie))return function k(Ie){if(Z(Ie,Uint8Array)){var Ae=new Uint8Array(Ie);return w(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return E(Ie)}(Ie);if(null==Ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(Z(Ie,ArrayBuffer)||Ie&&Z(Ie.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Z(Ie,SharedArrayBuffer)||Ie&&Z(Ie.buffer,SharedArrayBuffer)))return w(Ie,Ae,ce);if("number"==typeof Ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var Te=Ie.valueOf&&Ie.valueOf();if(null!=Te&&Te!==Ie)return d.from(Te,Ae,ce);var xe=function z(Ie){if(d.isBuffer(Ie)){var Ae=0|U(Ie.length),ce=y(Ae);return 0===ce.length||Ie.copy(ce,0,0,Ae),ce}return void 0!==Ie.length?"number"!=typeof Ie.length||Y(Ie.length)?y(0):E(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?E(Ie.data):void 0}(Ie);if(xe)return xe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return d.from(Ie[Symbol.toPrimitive]("string"),Ae,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function D(Ie){if("number"!=typeof Ie)throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function M(Ie){return D(Ie),y(Ie<0?0:0|U(Ie))}function E(Ie){for(var Ae=Ie.length<0?0:0|U(Ie.length),ce=y(Ae),Te=0;Te=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Ie}function ne(Ie,Ae){if(d.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Z(Ie,ArrayBuffer))return Ie.byteLength;if("string"!=typeof Ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var ce=Ie.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===ce)return 0;for(var xe=!1;;)switch(Ae){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return ke(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return ze(Ie).length;default:if(xe)return Te?-1:ke(Ie).length;Ae=(""+Ae).toLowerCase(),xe=!0}}function Q(Ie,Ae,ce){var Te=!1;if((void 0===Ae||Ae<0)&&(Ae=0),Ae>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(Ae>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return _(this,Ae,ce);case"utf8":case"utf-8":return h(this,Ae,ce);case"ascii":return S(this,Ae,ce);case"latin1":case"binary":return I(this,Ae,ce);case"base64":return r(this,Ae,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,Ae,ce);default:if(Te)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Te=!0}}function le(Ie,Ae,ce){var Te=Ie[Ae];Ie[Ae]=Ie[ce],Ie[ce]=Te}function q(Ie,Ae,ce,Te,xe){if(0===Ie.length)return-1;if("string"==typeof ce?(Te=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Y(ce=+ce)&&(ce=xe?0:Ie.length-1),ce<0&&(ce=Ie.length+ce),ce>=Ie.length){if(xe)return-1;ce=Ie.length-1}else if(ce<0){if(!xe)return-1;ce=0}if("string"==typeof Ae&&(Ae=d.from(Ae,Te)),d.isBuffer(Ae))return 0===Ae.length?-1:ie(Ie,Ae,ce,Te,xe);if("number"==typeof Ae)return Ae&=255,"function"==typeof Uint8Array.prototype.indexOf?xe?Uint8Array.prototype.indexOf.call(Ie,Ae,ce):Uint8Array.prototype.lastIndexOf.call(Ie,Ae,ce):ie(Ie,[Ae],ce,Te,xe);throw new TypeError("val must be string, number or Buffer")}function ie(Ie,Ae,ce,Te,xe){var Le,G=1,ee=Ie.length,ue=Ae.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Ie.length<2||Ae.length<2)return-1;G=2,ee/=2,ue/=2,ce/=2}function ve(hi,jt){return 1===G?hi[jt]:hi.readUInt16BE(jt*G)}if(xe){var lt=-1;for(Le=ce;Leee&&(ce=ee-ue),Le=ce;Le>=0;Le--){for(var ht=!0,Tt=0;Ttxe&&(Te=xe):Te=xe;var G=Ae.length;Te>G/2&&(Te=G/2);for(var ee=0;ee>8,G.push(ce%256),G.push(Te);return G}(Ae,Ie.length-ce),Ie,ce,Te)}function r(Ie,Ae,ce){return e.fromByteArray(0===Ae&&ce===Ie.length?Ie:Ie.slice(Ae,ce))}function h(Ie,Ae,ce){ce=Math.min(Ie.length,ce);for(var Te=[],xe=Ae;xe239?4:G>223?3:G>191?2:1;if(xe+ue<=ce)switch(ue){case 1:G<128&&(ee=G);break;case 2:128==(192&(ve=Ie[xe+1]))&&(ht=(31&G)<<6|63&ve)>127&&(ee=ht);break;case 3:Le=Ie[xe+2],128==(192&(ve=Ie[xe+1]))&&128==(192&Le)&&(ht=(15&G)<<12|(63&ve)<<6|63&Le)>2047&&(ht<55296||ht>57343)&&(ee=ht);break;case 4:Le=Ie[xe+2],lt=Ie[xe+3],128==(192&(ve=Ie[xe+1]))&&128==(192&Le)&&128==(192<)&&(ht=(15&G)<<18|(63&ve)<<12|(63&Le)<<6|63<)>65535&&ht<1114112&&(ee=ht)}null===ee?(ee=65533,ue=1):ee>65535&&(Te.push((ee-=65536)>>>10&1023|55296),ee=56320|1023&ee),Te.push(ee),xe+=ue}return function C(Ie){var Ae=Ie.length;if(Ae<=c)return String.fromCharCode.apply(String,Ie);for(var ce="",Te=0;Texe.length?d.from(ee).copy(xe,G):Uint8Array.prototype.set.call(xe,ee,G);else{if(!d.isBuffer(ee))throw new TypeError('"list" argument must be an Array of Buffers');ee.copy(xe,G)}G+=ee.length}return xe},d.byteLength=ne,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var Ae=this.length;if(Ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(Ae+=" ... "),""},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(Ae,ce,Te,xe,G){if(Z(Ae,Uint8Array)&&(Ae=d.from(Ae,Ae.offset,Ae.byteLength)),!d.isBuffer(Ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ae);if(void 0===ce&&(ce=0),void 0===Te&&(Te=Ae?Ae.length:0),void 0===xe&&(xe=0),void 0===G&&(G=this.length),ce<0||Te>Ae.length||xe<0||G>this.length)throw new RangeError("out of range index");if(xe>=G&&ce>=Te)return 0;if(xe>=G)return-1;if(ce>=Te)return 1;if(this===Ae)return 0;for(var ee=(G>>>=0)-(xe>>>=0),ue=(Te>>>=0)-(ce>>>=0),ve=Math.min(ee,ue),Le=this.slice(xe,G),lt=Ae.slice(ce,Te),ht=0;ht>>=0,isFinite(Te)?(Te>>>=0,void 0===xe&&(xe="utf8")):(xe=Te,Te=void 0)}var G=this.length-ce;if((void 0===Te||Te>G)&&(Te=G),Ae.length>0&&(Te<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ee=!1;;)switch(xe){case"hex":return se(this,Ae,ce,Te);case"utf8":case"utf-8":return J(this,Ae,ce,Te);case"ascii":case"latin1":case"binary":return me(this,Ae,ce,Te);case"base64":return x(this,Ae,ce,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,Ae,ce,Te);default:if(ee)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ee=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function S(Ie,Ae,ce){var Te="";ce=Math.min(Ie.length,ce);for(var xe=Ae;xeTe)&&(ce=Te);for(var xe="",G=Ae;Gce)throw new RangeError("Trying to access beyond buffer length")}function V(Ie,Ae,ce,Te,xe,G){if(!d.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ae>xe||AeIe.length)throw new RangeError("Index out of range")}function R(Ie,Ae,ce,Te,xe,G){if(ce+Te>Ie.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function H(Ie,Ae,ce,Te,xe){return Ae=+Ae,ce>>>=0,xe||R(Ie,0,ce,4),i.write(Ie,Ae,ce,Te,23,4),ce+4}function $(Ie,Ae,ce,Te,xe){return Ae=+Ae,ce>>>=0,xe||R(Ie,0,ce,8),i.write(Ie,Ae,ce,Te,52,8),ce+8}d.prototype.slice=function(Ae,ce){var Te=this.length;(Ae=~~Ae)<0?(Ae+=Te)<0&&(Ae=0):Ae>Te&&(Ae=Te),(ce=void 0===ce?Te:~~ce)<0?(ce+=Te)<0&&(ce=0):ce>Te&&(ce=Te),ce>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae],G=1,ee=0;++ee>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae+--ce],G=1;ce>0&&(G*=256);)xe+=this[Ae+--ce]*G;return xe},d.prototype.readUint8=d.prototype.readUInt8=function(Ae,ce){return Ae>>>=0,ce||g(Ae,1,this.length),this[Ae]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,2,this.length),this[Ae]|this[Ae+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,2,this.length),this[Ae]<<8|this[Ae+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),(this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16)+16777216*this[Ae+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),16777216*this[Ae]+(this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3])},d.prototype.readIntLE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=this[Ae],G=1,ee=0;++ee=(G*=128)&&(xe-=Math.pow(2,8*ce)),xe},d.prototype.readIntBE=function(Ae,ce,Te){Ae>>>=0,ce>>>=0,Te||g(Ae,ce,this.length);for(var xe=ce,G=1,ee=this[Ae+--xe];xe>0&&(G*=256);)ee+=this[Ae+--xe]*G;return ee>=(G*=128)&&(ee-=Math.pow(2,8*ce)),ee},d.prototype.readInt8=function(Ae,ce){return Ae>>>=0,ce||g(Ae,1,this.length),128&this[Ae]?-1*(255-this[Ae]+1):this[Ae]},d.prototype.readInt16LE=function(Ae,ce){Ae>>>=0,ce||g(Ae,2,this.length);var Te=this[Ae]|this[Ae+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(Ae,ce){Ae>>>=0,ce||g(Ae,2,this.length);var Te=this[Ae+1]|this[Ae]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),this[Ae]|this[Ae+1]<<8|this[Ae+2]<<16|this[Ae+3]<<24},d.prototype.readInt32BE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),this[Ae]<<24|this[Ae+1]<<16|this[Ae+2]<<8|this[Ae+3]},d.prototype.readFloatLE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),i.read(this,Ae,!0,23,4)},d.prototype.readFloatBE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,4,this.length),i.read(this,Ae,!1,23,4)},d.prototype.readDoubleLE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,8,this.length),i.read(this,Ae,!0,52,8)},d.prototype.readDoubleBE=function(Ae,ce){return Ae>>>=0,ce||g(Ae,8,this.length),i.read(this,Ae,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(Ae,ce,Te,xe){Ae=+Ae,ce>>>=0,Te>>>=0,xe||V(this,Ae,ce,Te,Math.pow(2,8*Te)-1,0);var ee=1,ue=0;for(this[ce]=255&Ae;++ue>>=0,Te>>>=0,xe||V(this,Ae,ce,Te,Math.pow(2,8*Te)-1,0);var ee=Te-1,ue=1;for(this[ce+ee]=255&Ae;--ee>=0&&(ue*=256);)this[ce+ee]=Ae/ue&255;return ce+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,1,255,0),this[ce]=255&Ae,ce+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,65535,0),this[ce]=255&Ae,this[ce+1]=Ae>>>8,ce+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,65535,0),this[ce]=Ae>>>8,this[ce+1]=255&Ae,ce+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,4294967295,0),this[ce+3]=Ae>>>24,this[ce+2]=Ae>>>16,this[ce+1]=Ae>>>8,this[ce]=255&Ae,ce+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,4294967295,0),this[ce]=Ae>>>24,this[ce+1]=Ae>>>16,this[ce+2]=Ae>>>8,this[ce+3]=255&Ae,ce+4},d.prototype.writeIntLE=function(Ae,ce,Te,xe){if(Ae=+Ae,ce>>>=0,!xe){var G=Math.pow(2,8*Te-1);V(this,Ae,ce,Te,G-1,-G)}var ee=0,ue=1,ve=0;for(this[ce]=255&Ae;++ee>0)-ve&255;return ce+Te},d.prototype.writeIntBE=function(Ae,ce,Te,xe){if(Ae=+Ae,ce>>>=0,!xe){var G=Math.pow(2,8*Te-1);V(this,Ae,ce,Te,G-1,-G)}var ee=Te-1,ue=1,ve=0;for(this[ce+ee]=255&Ae;--ee>=0&&(ue*=256);)Ae<0&&0===ve&&0!==this[ce+ee+1]&&(ve=1),this[ce+ee]=(Ae/ue>>0)-ve&255;return ce+Te},d.prototype.writeInt8=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,1,127,-128),Ae<0&&(Ae=255+Ae+1),this[ce]=255&Ae,ce+1},d.prototype.writeInt16LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,32767,-32768),this[ce]=255&Ae,this[ce+1]=Ae>>>8,ce+2},d.prototype.writeInt16BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,2,32767,-32768),this[ce]=Ae>>>8,this[ce+1]=255&Ae,ce+2},d.prototype.writeInt32LE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,2147483647,-2147483648),this[ce]=255&Ae,this[ce+1]=Ae>>>8,this[ce+2]=Ae>>>16,this[ce+3]=Ae>>>24,ce+4},d.prototype.writeInt32BE=function(Ae,ce,Te){return Ae=+Ae,ce>>>=0,Te||V(this,Ae,ce,4,2147483647,-2147483648),Ae<0&&(Ae=4294967295+Ae+1),this[ce]=Ae>>>24,this[ce+1]=Ae>>>16,this[ce+2]=Ae>>>8,this[ce+3]=255&Ae,ce+4},d.prototype.writeFloatLE=function(Ae,ce,Te){return H(this,Ae,ce,!0,Te)},d.prototype.writeFloatBE=function(Ae,ce,Te){return H(this,Ae,ce,!1,Te)},d.prototype.writeDoubleLE=function(Ae,ce,Te){return $(this,Ae,ce,!0,Te)},d.prototype.writeDoubleBE=function(Ae,ce,Te){return $(this,Ae,ce,!1,Te)},d.prototype.copy=function(Ae,ce,Te,xe){if(!d.isBuffer(Ae))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!xe&&0!==xe&&(xe=this.length),ce>=Ae.length&&(ce=Ae.length),ce||(ce=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),Ae.length-ce>>=0,Te=void 0===Te?this.length:Te>>>0,Ae||(Ae=0),"number"==typeof Ae)for(ee=ce;ee55295&&ce<57344){if(!xe){if(ce>56319){(Ae-=3)>-1&&G.push(239,191,189);continue}if(ee+1===Te){(Ae-=3)>-1&&G.push(239,191,189);continue}xe=ce;continue}if(ce<56320){(Ae-=3)>-1&&G.push(239,191,189),xe=ce;continue}ce=65536+(xe-55296<<10|ce-56320)}else xe&&(Ae-=3)>-1&&G.push(239,191,189);if(xe=null,ce<128){if((Ae-=1)<0)break;G.push(ce)}else if(ce<2048){if((Ae-=2)<0)break;G.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((Ae-=3)<0)break;G.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((Ae-=4)<0)break;G.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return G}function ze(Ie){return e.toByteArray(function ye(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(fe,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function be(Ie,Ae,ce,Te){for(var xe=0;xe=Ae.length||xe>=Ie.length);++xe)Ae[xe+ce]=Ie[xe];return xe}function Z(Ie,Ae){return Ie instanceof Ae||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===Ae.name}function Y(Ie){return Ie!=Ie}var ot=function(){for(var Ie="0123456789abcdef",Ae=new Array(256),ce=0;ce<16;++ce)for(var Te=16*ce,xe=0;xe<16;++xe)Ae[Te+xe]=Ie[ce]+Ie[xe];return Ae}()},1052:(He,j,p)=>{var e=p(3502).Buffer,i=p(295).Transform,u=p(3054).s;function a(y){i.call(this),this.hashMode="string"==typeof y,this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,i),a.prototype.update=function(y,d,P){"string"==typeof y&&(y=e.from(y,d));var D=this._update(y);return this.hashMode?this:(P&&(D=this._toString(D,P)),D)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(y,d,P){var D;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(T){D=T}finally{P(D)}},a.prototype._flush=function(y){var d;try{this.push(this.__final())}catch(P){d=P}y(d)},a.prototype._finalOrDigest=function(y){var d=this.__final()||e.alloc(0);return y&&(d=this._toString(d,y,!0)),d},a.prototype._toString=function(y,d,P){if(this._decoder||(this._decoder=new u(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var D=this._decoder.write(y);return P&&(D+=this._decoder.end()),D},He.exports=a},7293:(He,j,p)=>{"use strict";const e=p(4315),i=p(2872),u=p(717);He.exports=function b(d,P){switch(i(d)){case"object":return function a(d,P){if("function"==typeof P)return P(d);if(P||u(d)){const D=new d.constructor;for(let T in d)D[T]=b(d[T],P);return D}return d}(d,P);case"array":return function y(d,P){const D=new d.constructor(d.length);for(let T=0;Tb?u:Array(b-u.length+1).join("0")+u}(b.toString(16),2)}).join("")}(u)},hexToBytes:function(u){if(u.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===u.indexOf("0x")&&(u=u.slice(2)),u.match(/../g).map(function(b){return parseInt(b,16)})}};He.exports?He.exports=p:j.convertHex=p}(this)},5612:function(He){!function(j){"use strict";var p={bytesToString:function(e){return e.map(function(i){return String.fromCharCode(i)}).join("")},stringToBytes:function(e){return e.split("").map(function(i){return i.charCodeAt(0)})}};p.UTF8={bytesToString:function(e){return decodeURIComponent(escape(p.bytesToString(e)))},stringToBytes:function(e){return p.stringToBytes(unescape(encodeURIComponent(e)))}},He.exports?He.exports=p:j.convertString=p}(this)},4746:(He,j,p)=>{var e=p(7715),i=p(6422);He.exports=function(d){return new b(d)};var u={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function b(y){this.curveType=u[y],this.curveType||(this.curveType={name:y}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function a(y,d,P){Array.isArray(y)||(y=y.toArray());var D=new Buffer(y);if(P&&D.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6386:(He,j,p)=>{"use strict";var e=p(3894),i=p(8095),u=p(5634),b=p(5244),a=p(1052);function y(d){a.call(this,"digest"),this._hash=d}e(y,a),y.prototype._update=function(d){this._hash.update(d)},y.prototype._final=function(){return this._hash.digest()},He.exports=function(P){return"md5"===(P=P.toLowerCase())?new i:"rmd160"===P||"ripemd160"===P?new u:new y(b(P))}},5640:(He,j,p)=>{var e=p(8095);He.exports=function(i){return(new e).update(i).digest()}},4529:(He,j,p)=>{"use strict";var e=p(3894),i=p(7309),u=p(1052),b=p(3502).Buffer,a=p(5640),y=p(5634),d=p(5244),P=b.alloc(128);function D(T,M){u.call(this,"digest"),"string"==typeof M&&(M=b.from(M));var A="sha512"===T||"sha384"===T?128:64;this._alg=T,this._key=M,M.length>A?M=("rmd160"===T?new y:d(T)).update(M).digest():M.length{"use strict";var e=p(3894),i=p(3502).Buffer,u=p(1052),b=i.alloc(128),a=64;function y(d,P){u.call(this,"digest"),"string"==typeof P&&(P=i.from(P)),this._alg=d,this._key=P,P.length>a?P=d(P):P.length{"use strict";j.randomBytes=j.rng=j.pseudoRandomBytes=j.prng=p(3753),j.createHash=j.Hash=p(6386),j.createHmac=j.Hmac=p(4529);var e=p(7793),i=Object.keys(e),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);j.getHashes=function(){return u};var b=p(9357);j.pbkdf2=b.pbkdf2,j.pbkdf2Sync=b.pbkdf2Sync;var a=p(5255);j.Cipher=a.Cipher,j.createCipher=a.createCipher,j.Cipheriv=a.Cipheriv,j.createCipheriv=a.createCipheriv,j.Decipher=a.Decipher,j.createDecipher=a.createDecipher,j.Decipheriv=a.Decipheriv,j.createDecipheriv=a.createDecipheriv,j.getCiphers=a.getCiphers,j.listCiphers=a.listCiphers;var y=p(8829);j.DiffieHellmanGroup=y.DiffieHellmanGroup,j.createDiffieHellmanGroup=y.createDiffieHellmanGroup,j.getDiffieHellman=y.getDiffieHellman,j.createDiffieHellman=y.createDiffieHellman,j.DiffieHellman=y.DiffieHellman;var d=p(3923);j.createSign=d.createSign,j.Sign=d.Sign,j.createVerify=d.createVerify,j.Verify=d.Verify,j.createECDH=p(4746);var P=p(3701);j.publicEncrypt=P.publicEncrypt,j.privateEncrypt=P.privateEncrypt,j.publicDecrypt=P.publicDecrypt,j.privateDecrypt=P.privateDecrypt;var D=p(4275);j.randomFill=D.randomFill,j.randomFillSync=D.randomFillSync,j.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},j.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(He,j,p)=>{"use strict";j.utils=p(7451),j.Cipher=p(8170),j.DES=p(4631),j.CBC=p(9454),j.EDE=p(1862)},9454:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u={};function b(y){e.equal(y.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d{"use strict";var e=p(2391);function i(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}He.exports=i,i.prototype._init=function(){},i.prototype.update=function(b){return 0===b.length?[]:"decrypt"===this.type?this._updateDecrypt(b):this._updateEncrypt(b)},i.prototype._buffer=function(b,a){for(var y=Math.min(this.buffer.length-this.bufferOff,b.length-a),d=0;d0;d--)a+=this._buffer(b,a),y+=this._flushBuffer(P,y);return a+=this._buffer(b,a),P},i.prototype.final=function(b){var a,y;return b&&(a=this.update(b)),y="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(y):y},i.prototype._pad=function(b,a){if(0===a)return!1;for(;a{"use strict";var e=p(2391),i=p(3894),u=p(7451),b=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function y(P){b.call(this,P);var D=new a;this._desState=D,this.deriveKeys(D,P.key)}i(y,b),He.exports=y,y.create=function(D){return new y(D)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];y.prototype.deriveKeys=function(D,T){D.keys=new Array(32),e.equal(T.length,this.blockSize,"Invalid key length");var M=u.readUInt32BE(T,0),A=u.readUInt32BE(T,4);u.pc1(M,A,D.tmp,0),M=D.tmp[0],A=D.tmp[1];for(var E=0;E>>1];M=u.r28shl(M,k),A=u.r28shl(A,k),u.pc2(M,A,D.keys,E)}},y.prototype._update=function(D,T,M,A){var E=this._desState,k=u.readUInt32BE(D,T),w=u.readUInt32BE(D,T+4);u.ip(k,w,E.tmp,0),k=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,k,w,E.tmp,0):this._decrypt(E,k,w,E.tmp,0),w=E.tmp[1],u.writeUInt32BE(M,k=E.tmp[0],A),u.writeUInt32BE(M,w,A+4)},y.prototype._pad=function(D,T){for(var M=D.length-T,A=T;A>>0,k=le}u.rip(w,k,A,E)},y.prototype._decrypt=function(D,T,M,A,E){for(var k=M,w=T,z=D.keys.length-2;z>=0;z-=2){var U=D.keys[z],W=D.keys[z+1];u.expand(k,D.tmp,0);var ne=u.substitute(U^=D.tmp[0],W^=D.tmp[1]),le=k;k=(w^u.permute(ne))>>>0,w=le}u.rip(k,w,A,E)}},1862:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894),u=p(8170),b=p(4631);function a(d,P){e.equal(P.length,24,"Invalid key length");var D=P.slice(0,8),T=P.slice(8,16),M=P.slice(16,24);this.ciphers="encrypt"===d?[b.create({type:"encrypt",key:D}),b.create({type:"decrypt",key:T}),b.create({type:"encrypt",key:M})]:[b.create({type:"decrypt",key:M}),b.create({type:"encrypt",key:T}),b.create({type:"decrypt",key:D})]}function y(d){u.call(this,d);var P=new a(this.type,this.options.key);this._edeState=P}i(y,u),He.exports=y,y.create=function(P){return new y(P)},y.prototype._update=function(P,D,T,M){var A=this._edeState;A.ciphers[0]._update(P,D,T,M),A.ciphers[1]._update(T,M,T,M),A.ciphers[2]._update(T,M,T,M)},y.prototype._pad=b.prototype._pad,y.prototype._unpad=b.prototype._unpad},7451:(He,j)=>{"use strict";j.readUInt32BE=function(b,a){return(b[0+a]<<24|b[1+a]<<16|b[2+a]<<8|b[3+a])>>>0},j.writeUInt32BE=function(b,a,y){b[0+y]=a>>>24,b[1+y]=a>>>16&255,b[2+y]=a>>>8&255,b[3+y]=255&a},j.ip=function(b,a,y,d){for(var P=0,D=0,T=6;T>=0;T-=2){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>>M+T&1}for(T=6;T>=0;T-=2){for(M=1;M<=25;M+=8)D<<=1,D|=a>>>M+T&1;for(M=1;M<=25;M+=8)D<<=1,D|=b>>>M+T&1}y[d+0]=P>>>0,y[d+1]=D>>>0},j.rip=function(b,a,y,d){for(var P=0,D=0,T=0;T<4;T++)for(var M=24;M>=0;M-=8)P<<=1,P|=a>>>M+T&1,P<<=1,P|=b>>>M+T&1;for(T=4;T<8;T++)for(M=24;M>=0;M-=8)D<<=1,D|=a>>>M+T&1,D<<=1,D|=b>>>M+T&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.pc1=function(b,a,y,d){for(var P=0,D=0,T=7;T>=5;T--){for(var M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(M=0;M<=24;M+=8)P<<=1,P|=b>>M+T&1}for(M=0;M<=24;M+=8)P<<=1,P|=a>>M+T&1;for(T=1;T<=3;T++){for(M=0;M<=24;M+=8)D<<=1,D|=a>>M+T&1;for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1}for(M=0;M<=24;M+=8)D<<=1,D|=b>>M+T&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.r28shl=function(b,a){return b<>>28-a};var p=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];j.pc2=function(b,a,y,d){for(var P=0,D=0,T=p.length>>>1,M=0;M>>p[M]&1;for(M=T;M>>p[M]&1;y[d+0]=P>>>0,y[d+1]=D>>>0},j.expand=function(b,a,y){var d=0,P=0;d=(1&b)<<5|b>>>27;for(var D=23;D>=15;D-=4)d<<=6,d|=b>>>D&63;for(D=11;D>=3;D-=4)P|=b>>>D&63,P<<=6;P|=(31&b)<<1|b>>>31,a[y+0]=d>>>0,a[y+1]=P>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];j.substitute=function(b,a){for(var y=0,d=0;d<4;d++)y<<=4,y|=e[64*d+(b>>>18-6*d&63)];for(d=0;d<4;d++)y<<=4,y|=e[256+64*d+(a>>>18-6*d&63)];return y>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];j.permute=function(b){for(var a=0,y=0;y>>i[y]&1;return a>>>0},j.padSplit=function(b,a,y){for(var d=b.toString(2);d.length{var e=p(5563),i=p(9799),u=p(1419),a={binary:!0,hex:!0,base64:!0};j.DiffieHellmanGroup=j.createDiffieHellmanGroup=j.getDiffieHellman=function b(d){var P=new Buffer(i[d].prime,"hex"),D=new Buffer(i[d].gen,"hex");return new u(P,D)},j.createDiffieHellman=j.DiffieHellman=function y(d,P,D,T){return Buffer.isBuffer(P)||void 0===a[P]?y(d,"binary",P,D):(P=P||"binary",T=T||"binary",D=D||new Buffer([2]),Buffer.isBuffer(D)||(D=new Buffer(D,T)),"number"==typeof d?new u(e(d,D),D,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,P)),new u(d,D,!0)))}},1419:(He,j,p)=>{var e=p(8313),u=new(p(7079)),b=new e(24),a=new e(11),y=new e(10),d=new e(3),P=new e(7),D=p(5563),T=p(3753);function M(U,W){return W=W||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,W)),this._pub=new e(U),this}function A(U,W){return W=W||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,W)),this._priv=new e(U),this}He.exports=w;var E={};function w(U,W,ne){this.setGenerator(W),this.__prime=new e(U),this._prime=e.mont(this.__prime),this._primeLen=U.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ne?(this.setPublicKey=M,this.setPrivateKey=A):this._primeCode=8}function z(U,W){var ne=new Buffer(U.toArray());return W?ne.toString(W):ne}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(U,W){var ne=W.toString("hex"),Q=[ne,U.toString(16)].join("_");if(Q in E)return E[Q];var q,le=0;if(U.isEven()||!D.simpleSieve||!D.fermatTest(U)||!u.test(U))return le+=1,E[Q]=le+="02"===ne||"05"===ne?8:4,le;switch(u.test(U.shrn(1))||(le+=2),ne){case"02":U.mod(b).cmp(a)&&(le+=8);break;case"05":(q=U.mod(y)).cmp(d)&&q.cmp(P)&&(le+=8);break;default:le+=4}return E[Q]=le,le}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(T(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(U){var W=(U=(U=new e(U)).toRed(this._prime)).redPow(this._priv).fromRed(),ne=new Buffer(W.toArray()),Q=this.getPrime();if(ne.length{var e=p(3753);He.exports=le,le.simpleSieve=ne,le.fermatTest=Q;var i=p(8313),u=new i(24),a=new(p(7079)),y=new i(1),d=new i(2),P=new i(5),M=(new i(16),new i(8),new i(10)),A=new i(3),k=(new i(7),new i(11)),w=new i(4),U=(new i(12),null);function ne(q){for(var ie=function W(){if(null!==U)return U;var ie=[];ie[0]=2;for(var se=1,J=3;J<1048576;J+=2){for(var me=Math.ceil(Math.sqrt(J)),x=0;xq;)se.ishrn(1);if(se.isEven()&&se.iadd(y),se.testn(1)||se.iadd(d),ie.cmp(d)){if(!ie.cmp(P))for(;se.mod(M).cmp(A);)se.iadd(w)}else for(;se.mod(u).cmp(k);)se.iadd(w);if(ne(J=se.shrn(1))&&ne(se)&&Q(J)&&Q(se)&&a.test(J)&&a.test(se))return se}}},8313:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},4901:He=>{"use strict";var j={single_source_shortest_paths:function(p,e,i){var u={},b={};b[e]=0;var y,d,P,D,T,A,a=j.PriorityQueue.make();for(a.push(e,0);!a.empty();)for(P in D=(y=a.pop()).cost,T=p[d=y.value]||{})T.hasOwnProperty(P)&&(A=D+T[P],(void 0===b[P]||b[P]>A)&&(b[P]=A,a.push(P,A),u[P]=d));if(void 0!==i&&void 0===b[i]){var w=["Could not find a path from ",e," to ",i,"."].join("");throw new Error(w)}return u},extract_shortest_path_from_predecessor_list:function(p,e){for(var i=[],u=e;u;)i.push(u),u=p[u];return i.reverse(),i},find_path:function(p,e,i){var u=j.single_source_shortest_paths(p,e,i);return j.extract_shortest_path_from_predecessor_list(u,i)},PriorityQueue:{make:function(p){var u,e=j.PriorityQueue,i={};for(u in p=p||{},e)e.hasOwnProperty(u)&&(i[u]=e[u]);return i.queue=[],i.sorter=p.sorter||e.default_sorter,i},default_sorter:function(p,e){return p.cost-e.cost},push:function(p,e){this.queue.push({value:p,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};He.exports=j},7715:(He,j,p)=>{"use strict";var e=j;e.version=p(8597).i8,e.utils=p(1970),e.rand=p(7950),e.curve=p(6270),e.curves=p(2916),e.ec=p(7626),e.eddsa=p(1885)},7902:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.getNAF,b=i.getJSF,a=i.assert;function y(P,D){this.type=P,this.p=new e(D.p,16),this.red=D.prime?e.red(D.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=D.n&&new e(D.n,16),this.g=D.g&&this.pointFromJSON(D.g,D.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var T=this.n&&this.p.div(this.n);!T||T.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(P,D){this.curve=P,this.type=D,this.precomputed=null}He.exports=y,y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(D,T){a(D.precomputed);var M=D._getDoubles(),A=u(T,1,this._bitLength),E=(1<=w;U--)z=(z<<1)+A[U];k.push(z)}for(var W=this.jpoint(null,null,null),ne=this.jpoint(null,null,null),Q=E;Q>0;Q--){for(w=0;w=0;z--){for(var U=0;z>=0&&0===k[z];z--)U++;if(z>=0&&U++,w=w.dblp(U),z<0)break;var W=k[z];a(0!==W),w="affine"===D.type?w.mixedAdd(W>0?E[W-1>>1]:E[-W-1>>1].neg()):w.add(W>0?E[W-1>>1]:E[-W-1>>1].neg())}return"affine"===D.type?w.toP():w},y.prototype._wnafMulAdd=function(D,T,M,A,E){var W,ne,Q,k=this._wnafT1,w=this._wnafT2,z=this._wnafT3,U=0;for(W=0;W=1;W-=2){var q=W-1,ie=W;if(1===k[q]&&1===k[ie]){var se=[T[q],null,null,T[ie]];0===T[q].y.cmp(T[ie].y)?(se[1]=T[q].add(T[ie]),se[2]=T[q].toJ().mixedAdd(T[ie].neg())):0===T[q].y.cmp(T[ie].y.redNeg())?(se[1]=T[q].toJ().mixedAdd(T[ie]),se[2]=T[q].add(T[ie].neg())):(se[1]=T[q].toJ().mixedAdd(T[ie]),se[2]=T[q].toJ().mixedAdd(T[ie].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],me=b(M[q],M[ie]);for(U=Math.max(me[0].length,U),z[q]=new Array(U),z[ie]=new Array(U),ne=0;ne=0;W--){for(var c=0;W>=0;){var C=!0;for(ne=0;ne=0&&c++,r=r.dblp(c),W<0)break;for(ne=0;ne0?Q=w[ne][S-1>>1]:S<0&&(Q=w[ne][-S-1>>1].neg()),r="affine"===Q.type?r.mixedAdd(Q):r.add(Q))}}for(W=0;W=Math.ceil((D.bitLength()+1)/T.step)},d.prototype._getDoubles=function(D,T){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var M=[this],A=this,E=0;E{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(P){this.twisted=1!=(0|P.a),this.mOneA=this.twisted&&-1==(0|P.a),this.extended=this.mOneA,b.call(this,"edwards",P),this.a=new i(P.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(P.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(P.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|P.c)}function d(P,D,T,M,A){b.BasePoint.call(this,P,"projective"),null===D&&null===T&&null===M?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(D,16),this.y=new i(T,16),this.z=M?new i(M,16):this.curve.one,this.t=A&&new i(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(y,b),He.exports=y,y.prototype._mulA=function(D){return this.mOneA?D.redNeg():this.a.redMul(D)},y.prototype._mulC=function(D){return this.oneC?D:this.c.redMul(D)},y.prototype.jpoint=function(D,T,M,A){return this.point(D,T,M,A)},y.prototype.pointFromX=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=this.c2.redSub(this.a.redMul(M)),E=this.one.redSub(this.c2.redMul(this.d).redMul(M)),k=A.redMul(E.redInvm()),w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var z=w.fromRed().isOdd();return(T&&!z||!T&&z)&&(w=w.redNeg()),this.point(D,w)},y.prototype.pointFromY=function(D,T){(D=new i(D,16)).red||(D=D.toRed(this.red));var M=D.redSqr(),A=M.redSub(this.c2),E=M.redMul(this.d).redMul(this.c2).redSub(this.a),k=A.redMul(E.redInvm());if(0===k.cmp(this.zero)){if(T)throw new Error("invalid point");return this.point(this.zero,D)}var w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==T&&(w=w.redNeg()),this.point(w,D)},y.prototype.validate=function(D){if(D.isInfinity())return!0;D.normalize();var T=D.x.redSqr(),M=D.y.redSqr(),A=T.redMul(this.a).redAdd(M),E=this.c2.redMul(this.one.redAdd(this.d.redMul(T).redMul(M)));return 0===A.cmp(E)},u(d,b.BasePoint),y.prototype.pointFromJSON=function(D){return d.fromJSON(this,D)},y.prototype.point=function(D,T,M,A){return new d(this,D,T,M,A)},d.fromJSON=function(D,T){return new d(D,T[0],T[1],T[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var D=this.x.redSqr(),T=this.y.redSqr(),M=this.z.redSqr();M=M.redIAdd(M);var A=this.curve._mulA(D),E=this.x.redAdd(this.y).redSqr().redISub(D).redISub(T),k=A.redAdd(T),w=k.redSub(M),z=A.redSub(T),U=E.redMul(w),W=k.redMul(z),ne=E.redMul(z),Q=w.redMul(k);return this.curve.point(U,W,Q,ne)},d.prototype._projDbl=function(){var A,E,k,w,z,U,D=this.x.redAdd(this.y).redSqr(),T=this.x.redSqr(),M=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(T)).redAdd(M);this.zOne?(A=D.redSub(T).redSub(M).redMul(W.redSub(this.curve.two)),E=W.redMul(w.redSub(M)),k=W.redSqr().redSub(W).redSub(W)):(z=this.z.redSqr(),U=W.redSub(z).redISub(z),A=D.redSub(T).redISub(M).redMul(U),E=W.redMul(w.redSub(M)),k=W.redMul(U))}else w=T.redAdd(M),z=this.curve._mulC(this.z).redSqr(),U=w.redSub(z).redSub(z),A=this.curve._mulC(D.redISub(w)).redMul(U),E=this.curve._mulC(w).redMul(T.redISub(M)),k=w.redMul(U);return this.curve.point(A,E,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(D){var T=this.y.redSub(this.x).redMul(D.y.redSub(D.x)),M=this.y.redAdd(this.x).redMul(D.y.redAdd(D.x)),A=this.t.redMul(this.curve.dd).redMul(D.t),E=this.z.redMul(D.z.redAdd(D.z)),k=M.redSub(T),w=E.redSub(A),z=E.redAdd(A),U=M.redAdd(T),W=k.redMul(w),ne=z.redMul(U),Q=k.redMul(U),le=w.redMul(z);return this.curve.point(W,ne,le,Q)},d.prototype._projAdd=function(D){var ne,Q,T=this.z.redMul(D.z),M=T.redSqr(),A=this.x.redMul(D.x),E=this.y.redMul(D.y),k=this.curve.d.redMul(A).redMul(E),w=M.redSub(k),z=M.redAdd(k),U=this.x.redAdd(this.y).redMul(D.x.redAdd(D.y)).redISub(A).redISub(E),W=T.redMul(w).redMul(U);return this.curve.twisted?(ne=T.redMul(z).redMul(E.redSub(this.curve._mulA(A))),Q=w.redMul(z)):(ne=T.redMul(z).redMul(E.redSub(A)),Q=this.curve._mulC(w).redMul(z)),this.curve.point(W,ne,Q)},d.prototype.add=function(D){return this.isInfinity()?D:D.isInfinity()?this:this.curve.extended?this._extAdd(D):this._projAdd(D)},d.prototype.mul=function(D){return this._hasDoubles(D)?this.curve._fixedNafMul(this,D):this.curve._wnafMul(this,D)},d.prototype.mulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!1)},d.prototype.jmulAdd=function(D,T,M){return this.curve._wnafMulAdd(1,[this,T],[D,M],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var D=this.z.redInvm();return this.x=this.x.redMul(D),this.y=this.y.redMul(D),this.t&&(this.t=this.t.redMul(D)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(D){return this===D||0===this.getX().cmp(D.getX())&&0===this.getY().cmp(D.getY())},d.prototype.eqXToP=function(D){var T=D.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(T))return!0;for(var M=D.clone(),A=this.curve.redN.redMul(this.z);;){if(M.iadd(this.curve.n),M.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(A),0===this.x.cmp(T))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(He,j,p)=>{"use strict";var e=j;e.base=p(7902),e.short=p(1781),e.mont=p(7064),e.edwards=p(3835)},7064:(He,j,p)=>{"use strict";var e=p(7433),i=p(3894),u=p(7902),b=p(1970);function a(d){u.call(this,"mont",d),this.a=new e(d.a,16).toRed(this.red),this.b=new e(d.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function y(d,P,D){u.BasePoint.call(this,d,"projective"),null===P&&null===D?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(P,16),this.z=new e(D,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,u),He.exports=a,a.prototype.validate=function(P){var D=P.normalize().x,T=D.redSqr(),M=T.redMul(D).redAdd(T.redMul(this.a)).redAdd(D);return 0===M.redSqrt().redSqr().cmp(M)},i(y,u.BasePoint),a.prototype.decodePoint=function(P,D){return this.point(b.toArray(P,D),1)},a.prototype.point=function(P,D){return new y(this,P,D)},a.prototype.pointFromJSON=function(P){return y.fromJSON(this,P)},y.prototype.precompute=function(){},y.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},y.fromJSON=function(P,D){return new y(P,D[0],D[1]||P.one)},y.prototype.inspect=function(){return this.isInfinity()?"":""},y.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},y.prototype.dbl=function(){var D=this.x.redAdd(this.z).redSqr(),M=this.x.redSub(this.z).redSqr(),A=D.redSub(M),E=D.redMul(M),k=A.redMul(M.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,k)},y.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.diffAdd=function(P,D){var T=this.x.redAdd(this.z),M=this.x.redSub(this.z),A=P.x.redAdd(P.z),k=P.x.redSub(P.z).redMul(T),w=A.redMul(M),z=D.z.redMul(k.redAdd(w).redSqr()),U=D.x.redMul(k.redISub(w).redSqr());return this.curve.point(z,U)},y.prototype.mul=function(P){for(var D=P.clone(),T=this,M=this.curve.point(null,null),E=[];0!==D.cmpn(0);D.iushrn(1))E.push(D.andln(1));for(var k=E.length-1;k>=0;k--)0===E[k]?(T=T.diffAdd(M,this),M=M.dbl()):(M=T.diffAdd(M,this),T=T.dbl());return M},y.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},y.prototype.eq=function(P){return 0===this.getX().cmp(P.getX())},y.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(He,j,p)=>{"use strict";var e=p(1970),i=p(7433),u=p(3894),b=p(7902),a=e.assert;function y(D){b.call(this,"short",D),this.a=new i(D.a,16).toRed(this.red),this.b=new i(D.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(D),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(D,T,M,A){b.BasePoint.call(this,D,"affine"),null===T&&null===M?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(T,16),this.y=new i(M,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function P(D,T,M,A){b.BasePoint.call(this,D,"jacobian"),null===T&&null===M&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(T,16),this.y=new i(M,16),this.z=new i(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}u(y,b),He.exports=y,y.prototype._getEndomorphism=function(T){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var M,A;if(T.beta)M=new i(T.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);M=(M=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(T.lambda)A=new i(T.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(M))?A=k[0]:a(0===this.g.mul(A=k[1]).x.cmp(this.g.x.redMul(M)))}return{beta:M,lambda:A,basis:T.basis?T.basis.map(function(z){return{a:new i(z.a,16),b:new i(z.b,16)}}):this._getEndoBasis(A)}}},y.prototype._getEndoRoots=function(T){var M=T===this.p?this.red:i.mont(T),A=new i(2).toRed(M).redInvm(),E=A.redNeg(),k=new i(3).toRed(M).redNeg().redSqrt().redMul(A);return[E.redAdd(k).fromRed(),E.redSub(k).fromRed()]},y.prototype._getEndoBasis=function(T){for(var W,ne,Q,le,q,ie,se,me,x,M=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=T,E=this.n.clone(),k=new i(1),w=new i(0),z=new i(0),U=new i(1),J=0;0!==A.cmpn(0);){var t=E.div(A);me=E.sub(t.mul(A)),x=z.sub(t.mul(k));var r=U.sub(t.mul(w));if(!Q&&me.cmp(M)<0)W=se.neg(),ne=k,Q=me.neg(),le=x;else if(Q&&2==++J)break;se=me,E=A,A=me,z=k,k=x,U=w,w=r}q=me.neg(),ie=x;var h=Q.sqr().add(le.sqr());return q.sqr().add(ie.sqr()).cmp(h)>=0&&(q=W,ie=ne),Q.negative&&(Q=Q.neg(),le=le.neg()),q.negative&&(q=q.neg(),ie=ie.neg()),[{a:Q,b:le},{a:q,b:ie}]},y.prototype._endoSplit=function(T){var M=this.endo.basis,A=M[0],E=M[1],k=E.b.mul(T).divRound(this.n),w=A.b.neg().mul(T).divRound(this.n),z=k.mul(A.a),U=w.mul(E.a),W=k.mul(A.b),ne=w.mul(E.b);return{k1:T.sub(z).sub(U),k2:W.add(ne).neg()}},y.prototype.pointFromX=function(T,M){(T=new i(T,16)).red||(T=T.toRed(this.red));var A=T.redSqr().redMul(T).redIAdd(T.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var k=E.fromRed().isOdd();return(M&&!k||!M&&k)&&(E=E.redNeg()),this.point(T,E)},y.prototype.validate=function(T){if(T.inf)return!0;var M=T.x,A=T.y,E=this.a.redMul(M),k=M.redSqr().redMul(M).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(k).cmpn(0)},y.prototype._endoWnafMulAdd=function(T,M,A){for(var E=this._endoWnafT1,k=this._endoWnafT2,w=0;w":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(T){if(this.inf)return T;if(T.inf)return this;if(this.eq(T))return this.dbl();if(this.neg().eq(T))return this.curve.point(null,null);if(0===this.x.cmp(T.x))return this.curve.point(null,null);var M=this.y.redSub(T.y);0!==M.cmpn(0)&&(M=M.redMul(this.x.redSub(T.x).redInvm()));var A=M.redSqr().redISub(this.x).redISub(T.x),E=M.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},d.prototype.dbl=function(){if(this.inf)return this;var T=this.y.redAdd(this.y);if(0===T.cmpn(0))return this.curve.point(null,null);var M=this.curve.a,A=this.x.redSqr(),E=T.redInvm(),k=A.redAdd(A).redIAdd(A).redIAdd(M).redMul(E),w=k.redSqr().redISub(this.x.redAdd(this.x)),z=k.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,z)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(T){return T=new i(T,16),this.isInfinity()?this:this._hasDoubles(T)?this.curve._fixedNafMul(this,T):this.curve.endo?this.curve._endoWnafMulAdd([this],[T]):this.curve._wnafMul(this,T)},d.prototype.mulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k):this.curve._wnafMulAdd(1,E,k,2)},d.prototype.jmulAdd=function(T,M,A){var E=[this,M],k=[T,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k,!0):this.curve._wnafMulAdd(1,E,k,2,!0)},d.prototype.eq=function(T){return this===T||this.inf===T.inf&&(this.inf||0===this.x.cmp(T.x)&&0===this.y.cmp(T.y))},d.prototype.neg=function(T){if(this.inf)return this;var M=this.curve.point(this.x,this.y.redNeg());if(T&&this.precomputed){var A=this.precomputed,E=function(k){return k.neg()};M.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return M},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(P,b.BasePoint),y.prototype.jpoint=function(T,M,A){return new P(this,T,M,A)},P.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var T=this.z.redInvm(),M=T.redSqr(),A=this.x.redMul(M),E=this.y.redMul(M).redMul(T);return this.curve.point(A,E)},P.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},P.prototype.add=function(T){if(this.isInfinity())return T;if(T.isInfinity())return this;var M=T.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(M),k=T.x.redMul(A),w=this.y.redMul(M.redMul(T.z)),z=T.y.redMul(A.redMul(this.z)),U=E.redSub(k),W=w.redSub(z);if(0===U.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ne=U.redSqr(),Q=ne.redMul(U),le=E.redMul(ne),q=W.redSqr().redIAdd(Q).redISub(le).redISub(le),ie=W.redMul(le.redISub(q)).redISub(w.redMul(Q)),se=this.z.redMul(T.z).redMul(U);return this.curve.jpoint(q,ie,se)},P.prototype.mixedAdd=function(T){if(this.isInfinity())return T.toJ();if(T.isInfinity())return this;var M=this.z.redSqr(),A=this.x,E=T.x.redMul(M),k=this.y,w=T.y.redMul(M).redMul(this.z),z=A.redSub(E),U=k.redSub(w);if(0===z.cmpn(0))return 0!==U.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=z.redSqr(),ne=W.redMul(z),Q=A.redMul(W),le=U.redSqr().redIAdd(ne).redISub(Q).redISub(Q),q=U.redMul(Q.redISub(le)).redISub(k.redMul(ne)),ie=this.z.redMul(z);return this.curve.jpoint(le,q,ie)},P.prototype.dblp=function(T){if(0===T)return this;if(this.isInfinity())return this;if(!T)return this.dbl();var M;if(this.curve.zeroA||this.curve.threeA){var A=this;for(M=0;M=0)return!1;if(A.redIAdd(k),0===this.x.cmp(A))return!0}},P.prototype.inspect=function(){return this.isInfinity()?"":""},P.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(He,j,p)=>{"use strict";var P,e=j,i=p(7084),u=p(6270),a=p(1970).assert;function y(D){this.curve="short"===D.type?new u.short(D):"edwards"===D.type?new u.edwards(D):new u.mont(D),this.g=this.curve.g,this.n=this.curve.n,this.hash=D.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(D,T){Object.defineProperty(e,D,{configurable:!0,enumerable:!0,get:function(){var M=new y(T);return Object.defineProperty(e,D,{configurable:!0,enumerable:!0,value:M}),M}})}e.PresetCurve=y,d("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),d("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),d("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=p(5150)}catch(D){P=void 0}d("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},7626:(He,j,p)=>{"use strict";var e=p(7433),i=p(2438),u=p(1970),b=p(2916),a=p(7950),y=u.assert,d=p(1259),P=p(5957);function D(T){if(!(this instanceof D))return new D(T);"string"==typeof T&&(y(Object.prototype.hasOwnProperty.call(b,T),"Unknown curve "+T),T=b[T]),T instanceof b.PresetCurve&&(T={curve:T}),this.curve=T.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=T.curve.g,this.g.precompute(T.curve.n.bitLength()+1),this.hash=T.hash||T.curve.hash}He.exports=D,D.prototype.keyPair=function(M){return new d(this,M)},D.prototype.keyFromPrivate=function(M,A){return d.fromPrivate(this,M,A)},D.prototype.keyFromPublic=function(M,A){return d.fromPublic(this,M,A)},D.prototype.genKeyPair=function(M){M||(M={});for(var A=new i({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||a(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),k=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(k)>0))return w.iaddn(1),this.keyFromPrivate(w)}},D.prototype._truncateToN=function(M,A){var E=8*M.byteLength()-this.n.bitLength();return E>0&&(M=M.ushrn(E)),!A&&M.cmp(this.n)>=0?M.sub(this.n):M},D.prototype.sign=function(M,A,E,k){"object"==typeof E&&(k=E,E=null),k||(k={}),A=this.keyFromPrivate(A,E),M=this._truncateToN(new e(M,16));for(var w=this.n.byteLength(),z=A.getPrivate().toArray("be",w),U=M.toArray("be",w),W=new i({hash:this.hash,entropy:z,nonce:U,pers:k.pers,persEnc:k.persEnc||"utf8"}),ne=this.n.sub(new e(1)),Q=0;;Q++){var le=k.k?k.k(Q):new e(W.generate(this.n.byteLength()));if(!((le=this._truncateToN(le,!0)).cmpn(1)<=0||le.cmp(ne)>=0)){var q=this.g.mul(le);if(!q.isInfinity()){var ie=q.getX(),se=ie.umod(this.n);if(0!==se.cmpn(0)){var J=le.invm(this.n).mul(se.mul(A.getPrivate()).iadd(M));if(0!==(J=J.umod(this.n)).cmpn(0)){var me=(q.getY().isOdd()?1:0)|(0!==ie.cmp(se)?2:0);return k.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),me^=1),new P({r:se,s:J,recoveryParam:me})}}}}}},D.prototype.verify=function(M,A,E,k){M=this._truncateToN(new e(M,16)),E=this.keyFromPublic(E,k);var w=(A=new P(A,"hex")).r,z=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||z.cmpn(1)<0||z.cmp(this.n)>=0)return!1;var Q,U=z.invm(this.n),W=U.mul(M).umod(this.n),ne=U.mul(w).umod(this.n);return this.curve._maxwellTrick?!(Q=this.g.jmulAdd(W,E.getPublic(),ne)).isInfinity()&&Q.eqXToP(w):!(Q=this.g.mulAdd(W,E.getPublic(),ne)).isInfinity()&&0===Q.getX().umod(this.n).cmp(w)},D.prototype.recoverPubKey=function(T,M,A,E){y((3&A)===A,"The recovery param is more than two bits"),M=new P(M,E);var k=this.n,w=new e(T),z=M.r,U=M.s,W=1&A,ne=A>>1;if(z.cmp(this.curve.p.umod(this.curve.n))>=0&&ne)throw new Error("Unable to find sencond key candinate");z=this.curve.pointFromX(ne?z.add(this.curve.n):z,W);var Q=M.r.invm(k),le=k.sub(w).mul(Q).umod(k),q=U.mul(Q).umod(k);return this.g.mulAdd(le,z,q)},D.prototype.getKeyRecoveryParam=function(T,M,A,E){if(null!==(M=new P(M,E)).recoveryParam)return M.recoveryParam;for(var k=0;k<4;k++){var w;try{w=this.recoverPubKey(T,M,k)}catch(z){continue}if(w.eq(A))return k}throw new Error("Unable to find valid recovery factor")}},1259:(He,j,p)=>{"use strict";var e=p(7433),u=p(1970).assert;function b(a,y){this.ec=a,this.priv=null,this.pub=null,y.priv&&this._importPrivate(y.priv,y.privEnc),y.pub&&this._importPublic(y.pub,y.pubEnc)}He.exports=b,b.fromPublic=function(y,d,P){return d instanceof b?d:new b(y,{pub:d,pubEnc:P})},b.fromPrivate=function(y,d,P){return d instanceof b?d:new b(y,{priv:d,privEnc:P})},b.prototype.validate=function(){var y=this.getPublic();return y.isInfinity()?{result:!1,reason:"Invalid public key"}:y.validate()?y.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},b.prototype.getPublic=function(y,d){return"string"==typeof y&&(d=y,y=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,y):this.pub},b.prototype.getPrivate=function(y){return"hex"===y?this.priv.toString(16,2):this.priv},b.prototype._importPrivate=function(y,d){this.priv=new e(y,d||16),this.priv=this.priv.umod(this.ec.curve.n)},b.prototype._importPublic=function(y,d){if(y.x||y.y)return"mont"===this.ec.curve.type?u(y.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&u(y.x&&y.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(y.x,y.y));this.pub=this.ec.curve.decodePoint(y,d)},b.prototype.derive=function(y){return y.validate()||u(y.validate(),"public point not validated"),y.mul(this.priv).getX()},b.prototype.sign=function(y,d,P){return this.ec.sign(y,this,d,P)},b.prototype.verify=function(y,d){return this.ec.verify(y,d,this)},b.prototype.inspect=function(){return""}},5957:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert;function b(D,T){if(D instanceof b)return D;this._importDER(D,T)||(u(D.r&&D.s,"Signature without r or s"),this.r=new e(D.r,16),this.s=new e(D.s,16),this.recoveryParam=void 0===D.recoveryParam?null:D.recoveryParam)}function a(){this.place=0}function y(D,T){var M=D[T.place++];if(!(128&M))return M;var A=15&M;if(0===A||A>4)return!1;for(var E=0,k=0,w=T.place;k>>=0;return!(E<=127)&&(T.place=w,E)}function d(D){for(var T=0,M=D.length-1;!D[T]&&!(128&D[T+1])&&T>>3);for(D.push(128|M);--M;)D.push(T>>>(M<<3)&255);D.push(T)}}He.exports=b,b.prototype._importDER=function(T,M){T=i.toArray(T,M);var A=new a;if(48!==T[A.place++])return!1;var E=y(T,A);if(!1===E||E+A.place!==T.length||2!==T[A.place++])return!1;var k=y(T,A);if(!1===k)return!1;var w=T.slice(A.place,k+A.place);if(A.place+=k,2!==T[A.place++])return!1;var z=y(T,A);if(!1===z||T.length!==z+A.place)return!1;var U=T.slice(A.place,z+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===U[0]){if(!(128&U[1]))return!1;U=U.slice(1)}return this.r=new e(w),this.s=new e(U),this.recoveryParam=null,!0},b.prototype.toDER=function(T){var M=this.r.toArray(),A=this.s.toArray();for(128&M[0]&&(M=[0].concat(M)),128&A[0]&&(A=[0].concat(A)),M=d(M),A=d(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];P(E,M.length),(E=E.concat(M)).push(2),P(E,A.length);var k=E.concat(A),w=[48];return P(w,k.length),w=w.concat(k),i.encode(w,T)}},1885:(He,j,p)=>{"use strict";var e=p(7084),i=p(2916),u=p(1970),b=u.assert,a=u.parseBytes,y=p(7535),d=p(8241);function P(D){if(b("ed25519"===D,"only tested with ed25519 so far"),!(this instanceof P))return new P(D);this.curve=D=i[D].curve,this.g=D.g,this.g.precompute(D.n.bitLength()+1),this.pointClass=D.point().constructor,this.encodingLength=Math.ceil(D.n.bitLength()/8),this.hash=e.sha512}He.exports=P,P.prototype.sign=function(T,M){T=a(T);var A=this.keyFromSecret(M),E=this.hashInt(A.messagePrefix(),T),k=this.g.mul(E),w=this.encodePoint(k),z=this.hashInt(w,A.pubBytes(),T).mul(A.priv()),U=E.add(z).umod(this.curve.n);return this.makeSignature({R:k,S:U,Rencoded:w})},P.prototype.verify=function(T,M,A){T=a(T),M=this.makeSignature(M);var E=this.keyFromPublic(A),k=this.hashInt(M.Rencoded(),E.pubBytes(),T),w=this.g.mul(M.S());return M.R().add(E.pub().mul(k)).eq(w)},P.prototype.hashInt=function(){for(var T=this.hash(),M=0;M{"use strict";var e=p(1970),i=e.assert,u=e.parseBytes,b=e.cachedProperty;function a(y,d){this.eddsa=y,this._secret=u(d.secret),y.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=u(d.pub)}a.fromPublic=function(d,P){return P instanceof a?P:new a(d,{pub:P})},a.fromSecret=function(d,P){return P instanceof a?P:new a(d,{secret:P})},a.prototype.secret=function(){return this._secret},b(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),b(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),b(a,"privBytes",function(){var d=this.eddsa,P=this.hash(),D=d.encodingLength-1,T=P.slice(0,d.encodingLength);return T[0]&=248,T[D]&=127,T[D]|=64,T}),b(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),b(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),b(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,P){return this.eddsa.verify(d,P,this)},a.prototype.getSecret=function(d){return i(this._secret,"KeyPair is public only"),e.encode(this.secret(),d)},a.prototype.getPublic=function(d){return e.encode(this.pubBytes(),d)},He.exports=a},8241:(He,j,p)=>{"use strict";var e=p(7433),i=p(1970),u=i.assert,b=i.cachedProperty,a=i.parseBytes;function y(d,P){this.eddsa=d,"object"!=typeof P&&(P=a(P)),Array.isArray(P)&&(P={R:P.slice(0,d.encodingLength),S:P.slice(d.encodingLength)}),u(P.R&&P.S,"Signature without R or S"),d.isPoint(P.R)&&(this._R=P.R),P.S instanceof e&&(this._S=P.S),this._Rencoded=Array.isArray(P.R)?P.R:P.Rencoded,this._Sencoded=Array.isArray(P.S)?P.S:P.Sencoded}b(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),b(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),b(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),b(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},He.exports=y},5150:He=>{He.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(He,j,p)=>{"use strict";var e=j,i=p(7433),u=p(2391),b=p(8195);e.assert=u,e.toArray=b.toArray,e.zero2=b.zero2,e.toHex=b.toHex,e.encode=b.encode,e.getNAF=function a(T,M,A){var E=new Array(Math.max(T.bitLength(),A)+1);E.fill(0);for(var k=1<(k>>1)-1?(k>>1)-W:W):U=0,E[z]=U,w.iushrn(1)}return E},e.getJSF=function y(T,M){var A=[[],[]];T=T.clone(),M=M.clone();for(var w,E=0,k=0;T.cmpn(-E)>0||M.cmpn(-k)>0;){var W,ne,z=T.andln(3)+E&3,U=M.andln(3)+k&3;3===z&&(z=-1),3===U&&(U=-1),W=0==(1&z)?0:3!=(w=T.andln(7)+E&7)&&5!==w||2!==U?z:-z,A[0].push(W),ne=0==(1&U)?0:3!=(w=M.andln(7)+k&7)&&5!==w||2!==z?U:-U,A[1].push(ne),2*E===W+1&&(E=1-E),2*k===ne+1&&(k=1-k),T.iushrn(1),M.iushrn(1)}return A},e.cachedProperty=function d(T,M,A){var E="_"+M;T.prototype[M]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function P(T){return"string"==typeof T?e.toArray(T,"hex"):T},e.intFromLE=function D(T){return new i(T,"hex","le")}},7433:function(He,j,p){!function(e,i){"use strict";function u(x,t){if(!x)throw new Error(t||"Assertion failed")}function b(x,t){x.super_=t;var r=function(){};r.prototype=t.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,t,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(x||0,t||10,r||"be"))}var y;"object"==typeof e?e.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{y="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function d(x,t){var r=x.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},8419:He=>{"use strict";He.exports=function(p){for(var e=[],i=p.length,u=0;u=55296&&b<=56319&&i>u+1){var a=p.charCodeAt(u+1);a>=56320&&a<=57343&&(b=1024*(b-55296)+a-56320+65536,u+=1)}b<128?e.push(b):b<2048?(e.push(b>>6|192),e.push(63&b|128)):b<55296||b>=57344&&b<65536?(e.push(b>>12|224),e.push(b>>6&63|128),e.push(63&b|128)):b>=65536&&b<=1114111?(e.push(b>>18|240),e.push(b>>12&63|128),e.push(b>>6&63|128),e.push(63&b|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:He=>{"use strict";var e,j="object"==typeof Reflect?Reflect:null,p=j&&"function"==typeof j.apply?j.apply:function(Q,le,q){return Function.prototype.apply.call(Q,le,q)};e=j&&"function"==typeof j.ownKeys?j.ownKeys:Object.getOwnPropertySymbols?function(Q){return Object.getOwnPropertyNames(Q).concat(Object.getOwnPropertySymbols(Q))}:function(Q){return Object.getOwnPropertyNames(Q)};var u=Number.isNaN||function(Q){return Q!=Q};function b(){b.init.call(this)}He.exports=b,He.exports.once=function z(ne,Q){return new Promise(function(le,q){function ie(J){ne.removeListener(Q,se),q(J)}function se(){"function"==typeof ne.removeListener&&ne.removeListener("error",ie),le([].slice.call(arguments))}W(ne,Q,se,{once:!0}),"error"!==Q&&function U(ne,Q,le){"function"==typeof ne.on&&W(ne,"error",Q,le)}(ne,ie,{once:!0})})},b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var a=10;function y(ne){if("function"!=typeof ne)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ne)}function d(ne){return void 0===ne._maxListeners?b.defaultMaxListeners:ne._maxListeners}function P(ne,Q,le,q){var ie,se,J;if(y(le),void 0===(se=ne._events)?(se=ne._events=Object.create(null),ne._eventsCount=0):(void 0!==se.newListener&&(ne.emit("newListener",Q,le.listener?le.listener:le),se=ne._events),J=se[Q]),void 0===J)J=se[Q]=le,++ne._eventsCount;else if("function"==typeof J?J=se[Q]=q?[le,J]:[J,le]:q?J.unshift(le):J.push(le),(ie=d(ne))>0&&J.length>ie&&!J.warned){J.warned=!0;var me=new Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");me.name="MaxListenersExceededWarning",me.emitter=ne,me.type=Q,me.count=J.length,function i(ne){console&&console.warn&&console.warn(ne)}(me)}return ne}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function T(ne,Q,le){var q={fired:!1,wrapFn:void 0,target:ne,type:Q,listener:le},ie=D.bind(q);return ie.listener=le,q.wrapFn=ie,ie}function M(ne,Q,le){var q=ne._events;if(void 0===q)return[];var ie=q[Q];return void 0===ie?[]:"function"==typeof ie?le?[ie.listener||ie]:[ie]:le?function w(ne){for(var Q=new Array(ne.length),le=0;le0&&(J=le[0]),J instanceof Error)throw J;var me=new Error("Unhandled error."+(J?" ("+J.message+")":""));throw me.context=J,me}var x=se[Q];if(void 0===x)return!1;if("function"==typeof x)p(x,this,le);else{var t=x.length,r=E(x,t);for(q=0;q=0;J--)if(q[J]===le||q[J].listener===le){me=q[J].listener,se=J;break}if(se<0)return this;0===se?q.shift():function k(ne,Q){for(;Q+1=0;ie--)this.removeListener(Q,le[ie]);return this},b.prototype.listeners=function(Q){return M(this,Q,!0)},b.prototype.rawListeners=function(Q){return M(this,Q,!1)},b.listenerCount=function(ne,Q){return"function"==typeof ne.listenerCount?ne.listenerCount(Q):A.call(ne,Q)},b.prototype.listenerCount=A,b.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(He,j,p)=>{var e=p(3502).Buffer,i=p(8095);He.exports=function u(b,a,y,d){if(e.isBuffer(b)||(b=e.from(b,"binary")),a&&(e.isBuffer(a)||(a=e.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var P=y/8,D=e.alloc(P),T=e.alloc(d||0),M=e.alloc(0);P>0||d>0;){var A=new i;A.update(M),A.update(b),a&&A.update(a),M=A.digest();var E=0;if(P>0){var k=D.length-P;E=Math.min(P,M.length),M.copy(D,k,0,E),P-=E}if(E0){var w=T.length-d,z=Math.min(d,M.length-E);M.copy(T,w,E,E+z),d-=z}}return M.fill(0),{key:D,iv:T}}},9650:(He,j,p)=>{"use strict";var e=p(8444).Buffer,i=p(5685).Transform;function a(y){i.call(this),this._block=e.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,i),a.prototype._transform=function(y,d,P){var D=null;try{this.update(y,d)}catch(T){D=T}P(D)},a.prototype._flush=function(y){var d=null;try{this.push(this.digest())}catch(P){d=P}y(d)},a.prototype.update=function(y,d){if(function b(y,d){if(!e.isBuffer(y)&&"string"!=typeof y)throw new TypeError(d+" must be a string or a buffer")}(y,"Data"),this._finalized)throw new Error("Digest already called");e.isBuffer(y)||(y=e.from(y,d));for(var P=this._block,D=0;this._blockOffset+y.length-D>=this._blockSize;){for(var T=this._blockOffset;T0;++M)this._length[M]+=A,(A=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*A);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==y&&(d=d.toString(y)),this._block.fill(0),this._blockOffset=0;for(var P=0;P<4;++P)this._length[P]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},He.exports=a},8444:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},7084:(He,j,p)=>{var e=j;e.utils=p(9299),e.common=p(3800),e.sha=p(4962),e.ripemd=p(9458),e.hmac=p(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(He,j,p)=>{"use strict";var e=p(9299),i=p(2391);function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}j.BlockHash=u,u.prototype.update=function(a,y){if(a=e.toArray(a,y),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=e.join32(a,0,a.length-d,this.endian);for(var P=0;P>>24&255,P[D++]=a>>>16&255,P[D++]=a>>>8&255,P[D++]=255&a}else for(P[D++]=255&a,P[D++]=a>>>8&255,P[D++]=a>>>16&255,P[D++]=a>>>24&255,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,T=8;T{"use strict";var e=p(9299),i=p(2391);function u(b,a,y){if(!(this instanceof u))return new u(b,a,y);this.Hash=b,this.blockSize=b.blockSize/8,this.outSize=b.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(a,y))}He.exports=u,u.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),i(a.length<=this.blockSize);for(var y=a.length;y{"use strict";var e=p(9299),i=p(3800),u=e.rotl32,b=e.sum32,a=e.sum32_3,y=e.sum32_4,d=i.BlockHash;function P(){if(!(this instanceof P))return new P;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function D(z,U,W,ne){return z<=15?U^W^ne:z<=31?U&W|~U&ne:z<=47?(U|~W)^ne:z<=63?U&ne|W&~ne:U^(W|~ne)}function M(z){return z<=15?1352829926:z<=31?1548603684:z<=47?1836072691:z<=63?2053994217:0}e.inherits(P,d),j.ripemd160=P,P.blockSize=512,P.outSize=160,P.hmacStrength=192,P.padLength=64,P.prototype._update=function(U,W){for(var ne=this.h[0],Q=this.h[1],le=this.h[2],q=this.h[3],ie=this.h[4],se=ne,J=Q,me=le,x=q,t=ie,r=0;r<80;r++){var h=b(u(y(ne,D(r,Q,le,q),U[A[r]+W],(z=r)<=15?0:z<=31?1518500249:z<=47?1859775393:z<=63?2400959708:2840853838),k[r]),ie);ne=ie,ie=q,q=u(le,10),le=Q,Q=h,h=b(u(y(se,D(79-r,J,me,x),U[E[r]+W],M(r)),w[r]),t),se=t,t=x,x=u(me,10),me=J,J=h}var z;h=a(this.h[1],le,x),this.h[1]=a(this.h[2],q,t),this.h[2]=a(this.h[3],ie,se),this.h[3]=a(this.h[4],ne,J),this.h[4]=a(this.h[0],Q,me),this.h[0]=h},P.prototype._digest=function(U){return"hex"===U?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(He,j,p)=>{"use strict";j.sha1=p(9007),j.sha224=p(55),j.sha256=p(9342),j.sha384=p(8634),j.sha512=p(39)},9007:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=e.rotl32,a=e.sum32,y=e.sum32_5,d=u.ft_1,P=i.BlockHash,D=[1518500249,1859775393,2400959708,3395469782];function T(){if(!(this instanceof T))return new T;P.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(T,P),He.exports=T,T.blockSize=512,T.outSize=160,T.hmacStrength=80,T.padLength=64,T.prototype._update=function(A,E){for(var k=this.W,w=0;w<16;w++)k[w]=A[E+w];for(;w{"use strict";var e=p(9299),i=p(9342);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(3113),b=p(2391),a=e.sum32,y=e.sum32_4,d=e.sum32_5,P=u.ch32,D=u.maj32,T=u.s0_256,M=u.s1_256,A=u.g0_256,E=u.g1_256,k=i.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function z(){if(!(this instanceof z))return new z;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(z,k),He.exports=z,z.blockSize=512,z.outSize=256,z.hmacStrength=192,z.padLength=64,z.prototype._update=function(W,ne){for(var Q=this.W,le=0;le<16;le++)Q[le]=W[ne+le];for(;le{"use strict";var e=p(9299),i=p(39);function u(){if(!(this instanceof u))return new u;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(u,i),He.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(a){return"hex"===a?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(He,j,p)=>{"use strict";var e=p(9299),i=p(3800),u=p(2391),b=e.rotr64_hi,a=e.rotr64_lo,y=e.shr64_hi,d=e.shr64_lo,P=e.sum64,D=e.sum64_hi,T=e.sum64_lo,M=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,k=e.sum64_5_lo,w=i.BlockHash,z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function U(){if(!(this instanceof U))return new U;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z,this.W=new Array(160)}function W(h,c,C,S,I){var _=h&C^~h&I;return _<0&&(_+=4294967296),_}function ne(h,c,C,S,I,_){var n=c&S^~c&_;return n<0&&(n+=4294967296),n}function Q(h,c,C,S,I){var _=h&C^h&I^C&I;return _<0&&(_+=4294967296),_}function le(h,c,C,S,I,_){var n=c&S^c&_^S&_;return n<0&&(n+=4294967296),n}function q(h,c){var _=b(h,c,28)^b(c,h,2)^b(c,h,7);return _<0&&(_+=4294967296),_}function ie(h,c){var _=a(h,c,28)^a(c,h,2)^a(c,h,7);return _<0&&(_+=4294967296),_}function se(h,c){var _=b(h,c,14)^b(h,c,18)^b(c,h,9);return _<0&&(_+=4294967296),_}function J(h,c){var _=a(h,c,14)^a(h,c,18)^a(c,h,9);return _<0&&(_+=4294967296),_}function me(h,c){var _=b(h,c,1)^b(h,c,8)^y(h,c,7);return _<0&&(_+=4294967296),_}function x(h,c){var _=a(h,c,1)^a(h,c,8)^d(h,c,7);return _<0&&(_+=4294967296),_}function t(h,c){var _=b(h,c,19)^b(c,h,29)^y(h,c,6);return _<0&&(_+=4294967296),_}function r(h,c){var _=a(h,c,19)^a(c,h,29)^d(h,c,6);return _<0&&(_+=4294967296),_}e.inherits(U,w),He.exports=U,U.blockSize=1024,U.outSize=512,U.hmacStrength=192,U.padLength=128,U.prototype._prepareBlock=function(c,C){for(var S=this.W,I=0;I<32;I++)S[I]=c[C+I];for(;I{"use strict";var i=p(9299).rotr32;function b(M,A,E){return M&A^~M&E}function a(M,A,E){return M&A^M&E^A&E}function y(M,A,E){return M^A^E}j.ft_1=function u(M,A,E,k){return 0===M?b(A,E,k):1===M||3===M?y(A,E,k):2===M?a(A,E,k):void 0},j.ch32=b,j.maj32=a,j.p32=y,j.s0_256=function d(M){return i(M,2)^i(M,13)^i(M,22)},j.s1_256=function P(M){return i(M,6)^i(M,11)^i(M,25)},j.g0_256=function D(M){return i(M,7)^i(M,18)^M>>>3},j.g1_256=function T(M){return i(M,17)^i(M,19)^M>>>10}},9299:(He,j,p)=>{"use strict";var e=p(2391),i=p(3894);function u(r,h){return!(55296!=(64512&r.charCodeAt(h))||h<0||h+1>=r.length)&&56320==(64512&r.charCodeAt(h+1))}function y(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function P(r){return 1===r.length?"0"+r:r}function D(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}j.inherits=i,j.toArray=function b(r,h){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(h){if("hex"===h)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),S=0;S>6|192,c[C++]=63&I|128):u(r,S)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++S)),c[C++]=I>>18|240,c[C++]=I>>12&63|128,c[C++]=I>>6&63|128,c[C++]=63&I|128):(c[C++]=I>>12|224,c[C++]=I>>6&63|128,c[C++]=63&I|128)}else for(S=0;S>>0;return I},j.split32=function M(r,h){for(var c=new Array(4*r.length),C=0,S=0;C>>24,c[S+1]=I>>>16&255,c[S+2]=I>>>8&255,c[S+3]=255&I):(c[S+3]=I>>>24,c[S+2]=I>>>16&255,c[S+1]=I>>>8&255,c[S]=255&I)}return c},j.rotr32=function A(r,h){return r>>>h|r<<32-h},j.rotl32=function E(r,h){return r<>>32-h},j.sum32=function k(r,h){return r+h>>>0},j.sum32_3=function w(r,h,c){return r+h+c>>>0},j.sum32_4=function z(r,h,c,C){return r+h+c+C>>>0},j.sum32_5=function U(r,h,c,C,S){return r+h+c+C+S>>>0},j.sum64=function W(r,h,c,C){var _=C+r[h+1]>>>0;r[h]=(_>>0,r[h+1]=_},j.sum64_hi=function ne(r,h,c,C){return(h+C>>>0>>0},j.sum64_lo=function Q(r,h,c,C){return h+C>>>0},j.sum64_4_hi=function le(r,h,c,C,S,I,_,n){var g=0,V=h;return g+=(V=V+C>>>0)>>0)>>0)>>0},j.sum64_4_lo=function q(r,h,c,C,S,I,_,n){return h+C+I+n>>>0},j.sum64_5_hi=function ie(r,h,c,C,S,I,_,n,g,V){var R=0,H=h;return R+=(H=H+C>>>0)>>0)>>0)>>0)>>0},j.sum64_5_lo=function se(r,h,c,C,S,I,_,n,g,V){return h+C+I+n+V>>>0},j.rotr64_hi=function J(r,h,c){return(h<<32-c|r>>>c)>>>0},j.rotr64_lo=function me(r,h,c){return(r<<32-c|h>>>c)>>>0},j.shr64_hi=function x(r,h,c){return r>>>c},j.shr64_lo=function t(r,h,c){return(r<<32-c|h>>>c)>>>0}},2438:(He,j,p)=>{"use strict";var e=p(7084),i=p(8195),u=p(2391);function b(a){if(!(this instanceof b))return new b(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var y=i.toArray(a.entropy,a.entropyEnc||"hex"),d=i.toArray(a.nonce,a.nonceEnc||"hex"),P=i.toArray(a.pers,a.persEnc||"hex");u(y.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(y,d,P)}He.exports=b,b.prototype._init=function(y,d,P){var D=y.concat(d).concat(P);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var T=0;T=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(y.concat(P||[])),this._reseed=1},b.prototype.generate=function(y,d,P,D){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(D=P,P=d,d=null),P&&(P=i.toArray(P,D||"hex"),this._update(P));for(var T=[];T.length{j.read=function(p,e,i,u,b){var a,y,d=8*b-u-1,P=(1<>1,T=-7,M=i?b-1:0,A=i?-1:1,E=p[e+M];for(M+=A,a=E&(1<<-T)-1,E>>=-T,T+=d;T>0;a=256*a+p[e+M],M+=A,T-=8);for(y=a&(1<<-T)-1,a>>=-T,T+=u;T>0;y=256*y+p[e+M],M+=A,T-=8);if(0===a)a=1-D;else{if(a===P)return y?NaN:1/0*(E?-1:1);y+=Math.pow(2,u),a-=D}return(E?-1:1)*y*Math.pow(2,a-u)},j.write=function(p,e,i,u,b,a){var y,d,P,D=8*a-b-1,T=(1<>1,A=23===b?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:a-1,k=u?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(d=isNaN(e)?1:0,y=T):(y=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-y))<1&&(y--,P*=2),(e+=y+M>=1?A/P:A*Math.pow(2,1-M))*P>=2&&(y++,P/=2),y+M>=T?(d=0,y=T):y+M>=1?(d=(e*P-1)*Math.pow(2,b),y+=M):(d=e*Math.pow(2,M-1)*Math.pow(2,b),y=0));b>=8;p[i+E]=255&d,E+=k,d/=256,b-=8);for(y=y<0;p[i+E]=255&y,E+=k,y/=256,D-=8);p[i+E-k]|=128*w}},3894:He=>{He.exports="function"==typeof Object.create?function(p,e){e&&(p.super_=e,p.prototype=Object.create(e.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,e){if(e){p.super_=e;var i=function(){};i.prototype=e.prototype,p.prototype=new i,p.prototype.constructor=p}}},717:(He,j,p)=>{"use strict";var e=p(623);function i(u){return!0===e(u)&&"[object Object]"===Object.prototype.toString.call(u)}He.exports=function(b){var a,y;return!(!1===i(b)||(a=b.constructor,"function"!=typeof a)||(y=a.prototype,!1===i(y))||!1===y.hasOwnProperty("isPrototypeOf"))}},623:He=>{"use strict";He.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:He=>{var j=Object.prototype.toString;function p(D){return"function"==typeof D.constructor?D.constructor.name:null}He.exports=function(T){if(void 0===T)return"undefined";if(null===T)return"null";var M=typeof T;if("boolean"===M)return"boolean";if("string"===M)return"string";if("number"===M)return"number";if("symbol"===M)return"symbol";if("function"===M)return function a(D,T){return"GeneratorFunction"===p(D)}(T)?"generatorfunction":"function";if(function e(D){return Array.isArray?Array.isArray(D):D instanceof Array}(T))return"array";if(function P(D){return!(!D.constructor||"function"!=typeof D.constructor.isBuffer)&&D.constructor.isBuffer(D)}(T))return"buffer";if(function d(D){try{if("number"==typeof D.length&&"function"==typeof D.callee)return!0}catch(T){if(-1!==T.message.indexOf("callee"))return!0}return!1}(T))return"arguments";if(function u(D){return D instanceof Date||"function"==typeof D.toDateString&&"function"==typeof D.getDate&&"function"==typeof D.setDate}(T))return"date";if(function i(D){return D instanceof Error||"string"==typeof D.message&&D.constructor&&"number"==typeof D.constructor.stackTraceLimit}(T))return"error";if(function b(D){return D instanceof RegExp||"string"==typeof D.flags&&"boolean"==typeof D.ignoreCase&&"boolean"==typeof D.multiline&&"boolean"==typeof D.global}(T))return"regexp";switch(p(T)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function y(D){return"function"==typeof D.throw&&"function"==typeof D.return&&"function"==typeof D.next}(T))return"generator";switch(M=j.call(T)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return M.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(He,j,p)=>{"use strict";var e=p(3894),i=p(9650),u=p(3502).Buffer,b=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function y(M,A){return M<>>32-A}function d(M,A,E,k,w,z,U){return y(M+(A&E|~A&k)+w+z|0,U)+A|0}function P(M,A,E,k,w,z,U){return y(M+(A&k|E&~k)+w+z|0,U)+A|0}function D(M,A,E,k,w,z,U){return y(M+(A^E^k)+w+z|0,U)+A|0}function T(M,A,E,k,w,z,U){return y(M+(E^(A|~k))+w+z|0,U)+A|0}e(a,i),a.prototype._update=function(){for(var M=b,A=0;A<16;++A)M[A]=this._block.readInt32LE(4*A);var E=this._a,k=this._b,w=this._c,z=this._d;E=d(E,k,w,z,M[0],3614090360,7),z=d(z,E,k,w,M[1],3905402710,12),w=d(w,z,E,k,M[2],606105819,17),k=d(k,w,z,E,M[3],3250441966,22),E=d(E,k,w,z,M[4],4118548399,7),z=d(z,E,k,w,M[5],1200080426,12),w=d(w,z,E,k,M[6],2821735955,17),k=d(k,w,z,E,M[7],4249261313,22),E=d(E,k,w,z,M[8],1770035416,7),z=d(z,E,k,w,M[9],2336552879,12),w=d(w,z,E,k,M[10],4294925233,17),k=d(k,w,z,E,M[11],2304563134,22),E=d(E,k,w,z,M[12],1804603682,7),z=d(z,E,k,w,M[13],4254626195,12),w=d(w,z,E,k,M[14],2792965006,17),E=P(E,k=d(k,w,z,E,M[15],1236535329,22),w,z,M[1],4129170786,5),z=P(z,E,k,w,M[6],3225465664,9),w=P(w,z,E,k,M[11],643717713,14),k=P(k,w,z,E,M[0],3921069994,20),E=P(E,k,w,z,M[5],3593408605,5),z=P(z,E,k,w,M[10],38016083,9),w=P(w,z,E,k,M[15],3634488961,14),k=P(k,w,z,E,M[4],3889429448,20),E=P(E,k,w,z,M[9],568446438,5),z=P(z,E,k,w,M[14],3275163606,9),w=P(w,z,E,k,M[3],4107603335,14),k=P(k,w,z,E,M[8],1163531501,20),E=P(E,k,w,z,M[13],2850285829,5),z=P(z,E,k,w,M[2],4243563512,9),w=P(w,z,E,k,M[7],1735328473,14),E=D(E,k=P(k,w,z,E,M[12],2368359562,20),w,z,M[5],4294588738,4),z=D(z,E,k,w,M[8],2272392833,11),w=D(w,z,E,k,M[11],1839030562,16),k=D(k,w,z,E,M[14],4259657740,23),E=D(E,k,w,z,M[1],2763975236,4),z=D(z,E,k,w,M[4],1272893353,11),w=D(w,z,E,k,M[7],4139469664,16),k=D(k,w,z,E,M[10],3200236656,23),E=D(E,k,w,z,M[13],681279174,4),z=D(z,E,k,w,M[0],3936430074,11),w=D(w,z,E,k,M[3],3572445317,16),k=D(k,w,z,E,M[6],76029189,23),E=D(E,k,w,z,M[9],3654602809,4),z=D(z,E,k,w,M[12],3873151461,11),w=D(w,z,E,k,M[15],530742520,16),E=T(E,k=D(k,w,z,E,M[2],3299628645,23),w,z,M[0],4096336452,6),z=T(z,E,k,w,M[7],1126891415,10),w=T(w,z,E,k,M[14],2878612391,15),k=T(k,w,z,E,M[5],4237533241,21),E=T(E,k,w,z,M[12],1700485571,6),z=T(z,E,k,w,M[3],2399980690,10),w=T(w,z,E,k,M[10],4293915773,15),k=T(k,w,z,E,M[1],2240044497,21),E=T(E,k,w,z,M[8],1873313359,6),z=T(z,E,k,w,M[15],4264355552,10),w=T(w,z,E,k,M[6],2734768916,15),k=T(k,w,z,E,M[13],1309151649,21),E=T(E,k,w,z,M[4],4149444226,6),z=T(z,E,k,w,M[11],3174756917,10),w=T(w,z,E,k,M[2],718787259,15),k=T(k,w,z,E,M[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+k|0,this._c=this._c+w|0,this._d=this._d+z|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var M=u.allocUnsafe(16);return M.writeInt32LE(this._a,0),M.writeInt32LE(this._b,4),M.writeInt32LE(this._c,8),M.writeInt32LE(this._d,12),M},He.exports=a},7079:(He,j,p)=>{var e=p(1378),i=p(7950);function u(b){this.rand=b||new i.Rand}He.exports=u,u.create=function(a){return new u(a)},u.prototype._randbelow=function(a){var y=a.bitLength(),d=Math.ceil(y/8);do{var P=new e(this.rand.generate(d))}while(P.cmp(a)>=0);return P},u.prototype._randrange=function(a,y){var d=y.sub(a);return a.add(this._randbelow(d))},u.prototype.test=function(a,y,d){var P=a.bitLength(),D=e.mont(a),T=new e(1).toRed(D);y||(y=Math.max(1,P/48|0));for(var M=a.subn(1),A=0;!M.testn(A);A++);for(var E=a.shrn(A),k=M.toRed(D);y>0;y--){var z=this._randrange(new e(2),M);d&&d(z);var U=z.toRed(D).redPow(E);if(0!==U.cmp(T)&&0!==U.cmp(k)){for(var W=1;W0;y--){var k=this._randrange(new e(2),T),w=a.gcd(k);if(0!==w.cmpn(1))return w;var z=k.toRed(P).redPow(A);if(0!==z.cmp(D)&&0!==z.cmp(E)){for(var U=1;U=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},2391:He=>{function j(p,e){if(!p)throw new Error(e||"Assertion failed")}He.exports=j,j.equal=function(e,i,u){if(e!=i)throw new Error(u||"Assertion failed: "+e+" != "+i)}},8195:(He,j)=>{"use strict";var p=j;function i(b){return 1===b.length?"0"+b:b}function u(b){for(var a="",y=0;y>8,T=255&P;D?y.push(D,T):y.push(T)}return y},p.zero2=i,p.toHex=u,p.encode=function(a,y){return"hex"===y?u(a):a}},5768:(He,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var e=p(842);Object.keys(e).forEach(function(i){"default"!==i&&Object.defineProperty(j,i,{enumerable:!0,get:function(){return e[i]}})})},2999:(He,j,p)=>{"use strict";var e=p(7977);j.certificate=p(2390);var i=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});j.RSAPrivateKey=i;var u=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});j.RSAPublicKey=u;var b=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});j.PublicKey=b;var a=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),y=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});j.PrivateKey=y;var d=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});j.EncryptedPrivateKey=d;var P=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});j.DSAPrivateKey=P,j.DSAparam=e.define("DSAparam",function(){this.int()});var D=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(T),this.key("publicKey").optional().explicit(1).bitstr())});j.ECPrivateKey=D;var T=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});j.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(He,j,p)=>{"use strict";var e=p(7977),i=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),b=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(b),this.key("subjectPublicKey").bitstr())}),y=e.define("RelativeDistinguishedName",function(){this.setof(u)}),d=e.define("RDNSequence",function(){this.seqof(y)}),P=e.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),D=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),T=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),M=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(b),this.key("issuer").use(P),this.key("validity").use(D),this.key("subject").use(P),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(T).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(M),this.key("signatureAlgorithm").use(b),this.key("signatureValue").bitstr())});He.exports=A},5269:(He,j,p)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,b=p(347),a=p(4330),y=p(3502).Buffer;He.exports=function(d,P){var M,D=d.toString(),T=D.match(e);if(T){var E="aes"+T[1],k=y.from(T[2],"hex"),w=y.from(T[3].replace(/[\r\n]/g,""),"base64"),z=b(P,k.slice(0,8),parseInt(T[1],10)).key,U=[],W=a.createDecipheriv(E,z,k);U.push(W.update(w)),U.push(W.final()),M=y.concat(U)}else{var A=D.match(u);M=y.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:D.match(i)[1],data:M}}},2772:(He,j,p)=>{var e=p(2999),i=p(2562),u=p(5269),b=p(4330),a=p(9357),y=p(3502).Buffer;function d(D){var T;"object"==typeof D&&!y.isBuffer(D)&&(T=D.passphrase,D=D.key),"string"==typeof D&&(D=y.from(D));var k,w,M=u(D,T),A=M.tag,E=M.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),k=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":E=function P(D,T){var M=D.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(D.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=i[D.algorithm.decrypt.cipher.algo.join(".")],k=D.algorithm.decrypt.cipher.iv,w=D.subjectPrivateKey,z=parseInt(E.split("-")[1],10)/8,U=a.pbkdf2Sync(T,M,A,z,"sha1"),W=b.createDecipheriv(E,U,k),ne=[];return ne.push(W.update(w)),ne.push(W.final()),y.concat(ne)}(E=e.EncryptedPrivateKey.decode(E,"der"),T);case"PRIVATE KEY":switch(k=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}He.exports=d,d.signature=e.signature},9357:(He,j,p)=>{j.pbkdf2=p(415),j.pbkdf2Sync=p(7472)},415:(He,j,p)=>{var y,M,e=p(3502).Buffer,i=p(2697),u=p(8867),b=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,P={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},D=[];function A(){return M||(M=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,z,U,W,ne){return d.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(Q){return d.deriveBits({name:"PBKDF2",salt:z,iterations:U,hash:{name:ne}},Q,W<<3)}).then(function(Q){return e.from(Q)})}He.exports=function(w,z,U,W,ne,Q){"function"==typeof ne&&(Q=ne,ne=void 0);var le=P[(ne=ne||"sha1").toLowerCase()];if(le&&"function"==typeof global.Promise){if(i(U,W),w=a(w,u,"Password"),z=a(z,u,"Salt"),"function"!=typeof Q)throw new Error("No callback provided to pbkdf2");!function k(w,z){w.then(function(U){A()(function(){z(null,U)})},function(U){A()(function(){z(U)})})}(function T(w){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==D[w])return D[w];var z=E(y=y||e.alloc(8),y,10,128,w).then(function(){return!0}).catch(function(){return!1});return D[w]=z,z}(le).then(function(q){return q?E(w,z,U,W,le):b(w,z,U,W,ne)}),Q)}else A()(function(){var q;try{q=b(w,z,U,W,ne)}catch(ie){return Q(ie)}Q(null,q)})}},8867:He=>{var j;j=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",He.exports=j},2697:He=>{var j=Math.pow(2,30)-1;He.exports=function(p,e){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>j||e!=e)throw new TypeError("Bad key length")}},7472:(He,j,p)=>{var e=p(5640),i=p(5634),u=p(5244),b=p(3502).Buffer,a=p(2697),y=p(8867),d=p(4566),P=b.alloc(128),D={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function T(E,k,w){var z=function M(E){return"rmd160"===E||"ripemd160"===E?function w(z){return(new i).update(z).digest()}:"md5"===E?e:function k(z){return u(E).update(z).digest()}}(E),U="sha512"===E||"sha384"===E?128:64;k.length>U?k=z(k):k.length{var e=p(3502).Buffer;He.exports=function(i,u,b){if(e.isBuffer(i))return i;if("string"==typeof i)return e.from(i,u);if(ArrayBuffer.isView(i))return e.from(i.buffer);throw new TypeError(b+" must be a string, a Buffer, a typed array or a DataView")}},3701:(He,j,p)=>{j.publicEncrypt=p(6562),j.privateDecrypt=p(6705),j.privateEncrypt=function(i,u){return j.publicEncrypt(i,u,!0)},j.publicDecrypt=function(i,u){return j.privateDecrypt(i,u,!0)}},6945:(He,j,p)=>{var e=p(6386),i=p(3502).Buffer;function u(b){var a=i.allocUnsafe(4);return a.writeUInt32BE(b,0),a}He.exports=function(b,a){for(var P,y=i.alloc(0),d=0;y.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function P(x,t,r){var h=d(x,r);return r-1>=t&&(h|=d(x,r-1)<<4),h}function D(x,t,r,h){for(var c=0,C=Math.min(x.length,r),S=t;S=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,r){return t.cmp(r)>0?t:r},a.min=function(t,r){return t.cmp(r)<0?t:r},a.prototype._init=function(t,r,h){if("number"==typeof t)return this._initNumber(t,r,h);if("object"==typeof t)return this._initArray(t,r,h);"hex"===r&&(r=16),u(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[C]|=(S=t[c]|t[c-1]<<8|t[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);else if("le"===h)for(c=0,C=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,C++);return this.strip()},a.prototype._parseHex=function(t,r,h){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=P(t,r,c)<=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;else for(c=(t.length-r)%2==0?r+1:r;c=18?(C-=18,this.words[S+=1]|=I>>>26):C+=8;this.strip()},a.prototype._parseBase=function(t,r,h){this.words=[0],this.length=1;for(var c=0,C=1;C<=67108863;C*=r)c++;c--,C=C/r|0;for(var S=t.length-h,I=S%c,_=Math.min(S,S-I)+h,n=0,g=h;g<_;g+=c)n=D(t,g,g+c,r),this.imuln(C),this.words[0]+n<67108864?this.words[0]+=n:this._iaddn(n);if(0!==I){var V=1;for(n=D(t,g,t.length,r),g=0;g1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],M=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(x,t,r){r.negative=t.negative^x.negative;var h=x.length+t.length|0;r.length=h,h=h-1|0;var c=0|x.words[0],C=0|t.words[0],S=c*C,_=S/67108864|0;r.words[0]=67108863&S;for(var n=1;n>>26,V=67108863&_,R=Math.min(n,t.length-1),H=Math.max(0,n-x.length+1);H<=R;H++)g+=(S=(c=0|x.words[n-H|0])*(C=0|t.words[H])+V)/67108864|0,V=67108863&S;r.words[n]=0|V,_=0|g}return 0!==_?r.words[n]=0|_:r.length--,r.strip()}a.prototype.toString=function(t,r){var h;if(r=0|r||1,16===(t=t||10)||"hex"===t){h="";for(var c=0,C=0,S=0;S>>24-c&16777215)||S!==this.length-1?T[6-_.length]+_+h:_+h,(c+=2)>=26&&(c-=26,S--)}for(0!==C&&(h=C.toString(16)+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}if(t===(0|t)&&t>=2&&t<=36){var n=M[t],g=A[t];h="";var V=this.clone();for(V.negative=0;!V.isZero();){var R=V.modn(g).toString(t);h=(V=V.idivn(g)).isZero()?R+h:T[n-R.length]+R+h}for(this.isZero()&&(h="0"+h);h.length%r!=0;)h="0"+h;return 0!==this.negative&&(h="-"+h),h}u(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,r){return u(void 0!==y),this.toArrayLike(y,t,r)},a.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},a.prototype.toArrayLike=function(t,r,h){var c=this.byteLength(),C=h||Math.max(1,c);u(c<=C,"byte array longer than desired length"),u(C>0,"Requested array length <= 0"),this.strip();var _,n,S="le"===r,I=new t(C),g=this.clone();if(S){for(n=0;!g.isZero();n++)_=g.andln(255),g.iushrn(8),I[n]=_;for(;n=4096&&(h+=13,r>>>=13),r>=64&&(h+=7,r>>>=7),r>=8&&(h+=4,r>>>=4),r>=2&&(h+=2,r>>>=2),h+r},a.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,h=0;return 0==(8191&r)&&(h+=13,r>>>=13),0==(127&r)&&(h+=7,r>>>=7),0==(15&r)&&(h+=4,r>>>=4),0==(3&r)&&(h+=2,r>>>=2),0==(1&r)&&h++,h},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var h=0;ht.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var r,h;this.length>t.length?(r=this,h=t):(r=t,h=this);for(var c=0;ct.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){u("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),h=t%26;this._expand(r),h>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-h),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,r){u("number"==typeof t&&t>=0);var h=t/26|0,c=t%26;return this._expand(h+1),this.words[h]=r?this.words[h]|1<t.length?(h=this,c=t):(h=t,c=this);for(var C=0,S=0;S>>26;for(;0!==C&&S>>26;if(this.length=h.length,0!==C)this.words[this.length]=C,this.length++;else if(h!==this)for(;St.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var c,C,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(c=this,C=t):(c=t,C=this);for(var S=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==S&&I>26,this.words[I]=67108863&r;if(0===S&&I>>13,$=0|c[1],fe=8191&$,ye=$>>>13,ke=0|c[2],Ee=8191&ke,te=ke>>>13,ze=0|c[3],be=8191&ze,Z=ze>>>13,Y=0|c[4],ot=8191&Y,Ie=Y>>>13,Ae=0|c[5],ce=8191&Ae,Te=Ae>>>13,xe=0|c[6],G=8191&xe,ee=xe>>>13,ue=0|c[7],ve=8191&ue,Le=ue>>>13,lt=0|c[8],ht=8191<,Tt=lt>>>13,hi=0|c[9],jt=8191&hi,Gt=hi>>>13,di=0|C[0],vt=8191&di,kt=di>>>13,gt=0|C[1],Qe=8191>,_t=gt>>>13,ei=0|C[2],Zt=8191&ei,Pe=ei>>>13,De=0|C[3],oe=8191&De,Me=De>>>13,ut=0|C[4],ft=8191&ut,Rt=ut>>>13,et=0|C[5],Re=8191&et,qe=et>>>13,Ze=0|C[6],we=8191&Ze,Fe=Ze>>>13,rt=0|C[7],at=8191&rt,yt=rt>>>13,mi=0|C[8],Xt=8191&mi,Jt=mi>>>13,qi=0|C[9],ui=8191&qi,si=qi>>>13;h.negative=t.negative^r.negative,h.length=19;var en=(I+(_=Math.imul(R,vt))|0)+((8191&(n=(n=Math.imul(R,kt))+Math.imul(H,vt)|0))<<13)|0;I=((g=Math.imul(H,kt))+(n>>>13)|0)+(en>>>26)|0,en&=67108863,_=Math.imul(fe,vt),n=(n=Math.imul(fe,kt))+Math.imul(ye,vt)|0,g=Math.imul(ye,kt);var Ui=(I+(_=_+Math.imul(R,Qe)|0)|0)+((8191&(n=(n=n+Math.imul(R,_t)|0)+Math.imul(H,Qe)|0))<<13)|0;I=((g=g+Math.imul(H,_t)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,_=Math.imul(Ee,vt),n=(n=Math.imul(Ee,kt))+Math.imul(te,vt)|0,g=Math.imul(te,kt),_=_+Math.imul(fe,Qe)|0,n=(n=n+Math.imul(fe,_t)|0)+Math.imul(ye,Qe)|0,g=g+Math.imul(ye,_t)|0;var Bi=(I+(_=_+Math.imul(R,Zt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Pe)|0)+Math.imul(H,Zt)|0))<<13)|0;I=((g=g+Math.imul(H,Pe)|0)+(n>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(be,vt),n=(n=Math.imul(be,kt))+Math.imul(Z,vt)|0,g=Math.imul(Z,kt),_=_+Math.imul(Ee,Qe)|0,n=(n=n+Math.imul(Ee,_t)|0)+Math.imul(te,Qe)|0,g=g+Math.imul(te,_t)|0,_=_+Math.imul(fe,Zt)|0,n=(n=n+Math.imul(fe,Pe)|0)+Math.imul(ye,Zt)|0,g=g+Math.imul(ye,Pe)|0;var Gi=(I+(_=_+Math.imul(R,oe)|0)|0)+((8191&(n=(n=n+Math.imul(R,Me)|0)+Math.imul(H,oe)|0))<<13)|0;I=((g=g+Math.imul(H,Me)|0)+(n>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,_=Math.imul(ot,vt),n=(n=Math.imul(ot,kt))+Math.imul(Ie,vt)|0,g=Math.imul(Ie,kt),_=_+Math.imul(be,Qe)|0,n=(n=n+Math.imul(be,_t)|0)+Math.imul(Z,Qe)|0,g=g+Math.imul(Z,_t)|0,_=_+Math.imul(Ee,Zt)|0,n=(n=n+Math.imul(Ee,Pe)|0)+Math.imul(te,Zt)|0,g=g+Math.imul(te,Pe)|0,_=_+Math.imul(fe,oe)|0,n=(n=n+Math.imul(fe,Me)|0)+Math.imul(ye,oe)|0,g=g+Math.imul(ye,Me)|0;var ct=(I+(_=_+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,Rt)|0)+Math.imul(H,ft)|0))<<13)|0;I=((g=g+Math.imul(H,Rt)|0)+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ce,vt),n=(n=Math.imul(ce,kt))+Math.imul(Te,vt)|0,g=Math.imul(Te,kt),_=_+Math.imul(ot,Qe)|0,n=(n=n+Math.imul(ot,_t)|0)+Math.imul(Ie,Qe)|0,g=g+Math.imul(Ie,_t)|0,_=_+Math.imul(be,Zt)|0,n=(n=n+Math.imul(be,Pe)|0)+Math.imul(Z,Zt)|0,g=g+Math.imul(Z,Pe)|0,_=_+Math.imul(Ee,oe)|0,n=(n=n+Math.imul(Ee,Me)|0)+Math.imul(te,oe)|0,g=g+Math.imul(te,Me)|0,_=_+Math.imul(fe,ft)|0,n=(n=n+Math.imul(fe,Rt)|0)+Math.imul(ye,ft)|0,g=g+Math.imul(ye,Rt)|0;var Ft=(I+(_=_+Math.imul(R,Re)|0)|0)+((8191&(n=(n=n+Math.imul(R,qe)|0)+Math.imul(H,Re)|0))<<13)|0;I=((g=g+Math.imul(H,qe)|0)+(n>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,_=Math.imul(G,vt),n=(n=Math.imul(G,kt))+Math.imul(ee,vt)|0,g=Math.imul(ee,kt),_=_+Math.imul(ce,Qe)|0,n=(n=n+Math.imul(ce,_t)|0)+Math.imul(Te,Qe)|0,g=g+Math.imul(Te,_t)|0,_=_+Math.imul(ot,Zt)|0,n=(n=n+Math.imul(ot,Pe)|0)+Math.imul(Ie,Zt)|0,g=g+Math.imul(Ie,Pe)|0,_=_+Math.imul(be,oe)|0,n=(n=n+Math.imul(be,Me)|0)+Math.imul(Z,oe)|0,g=g+Math.imul(Z,Me)|0,_=_+Math.imul(Ee,ft)|0,n=(n=n+Math.imul(Ee,Rt)|0)+Math.imul(te,ft)|0,g=g+Math.imul(te,Rt)|0,_=_+Math.imul(fe,Re)|0,n=(n=n+Math.imul(fe,qe)|0)+Math.imul(ye,Re)|0,g=g+Math.imul(ye,qe)|0;var pt=(I+(_=_+Math.imul(R,we)|0)|0)+((8191&(n=(n=n+Math.imul(R,Fe)|0)+Math.imul(H,we)|0))<<13)|0;I=((g=g+Math.imul(H,Fe)|0)+(n>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(ve,vt),n=(n=Math.imul(ve,kt))+Math.imul(Le,vt)|0,g=Math.imul(Le,kt),_=_+Math.imul(G,Qe)|0,n=(n=n+Math.imul(G,_t)|0)+Math.imul(ee,Qe)|0,g=g+Math.imul(ee,_t)|0,_=_+Math.imul(ce,Zt)|0,n=(n=n+Math.imul(ce,Pe)|0)+Math.imul(Te,Zt)|0,g=g+Math.imul(Te,Pe)|0,_=_+Math.imul(ot,oe)|0,n=(n=n+Math.imul(ot,Me)|0)+Math.imul(Ie,oe)|0,g=g+Math.imul(Ie,Me)|0,_=_+Math.imul(be,ft)|0,n=(n=n+Math.imul(be,Rt)|0)+Math.imul(Z,ft)|0,g=g+Math.imul(Z,Rt)|0,_=_+Math.imul(Ee,Re)|0,n=(n=n+Math.imul(Ee,qe)|0)+Math.imul(te,Re)|0,g=g+Math.imul(te,qe)|0,_=_+Math.imul(fe,we)|0,n=(n=n+Math.imul(fe,Fe)|0)+Math.imul(ye,we)|0,g=g+Math.imul(ye,Fe)|0;var it=(I+(_=_+Math.imul(R,at)|0)|0)+((8191&(n=(n=n+Math.imul(R,yt)|0)+Math.imul(H,at)|0))<<13)|0;I=((g=g+Math.imul(H,yt)|0)+(n>>>13)|0)+(it>>>26)|0,it&=67108863,_=Math.imul(ht,vt),n=(n=Math.imul(ht,kt))+Math.imul(Tt,vt)|0,g=Math.imul(Tt,kt),_=_+Math.imul(ve,Qe)|0,n=(n=n+Math.imul(ve,_t)|0)+Math.imul(Le,Qe)|0,g=g+Math.imul(Le,_t)|0,_=_+Math.imul(G,Zt)|0,n=(n=n+Math.imul(G,Pe)|0)+Math.imul(ee,Zt)|0,g=g+Math.imul(ee,Pe)|0,_=_+Math.imul(ce,oe)|0,n=(n=n+Math.imul(ce,Me)|0)+Math.imul(Te,oe)|0,g=g+Math.imul(Te,Me)|0,_=_+Math.imul(ot,ft)|0,n=(n=n+Math.imul(ot,Rt)|0)+Math.imul(Ie,ft)|0,g=g+Math.imul(Ie,Rt)|0,_=_+Math.imul(be,Re)|0,n=(n=n+Math.imul(be,qe)|0)+Math.imul(Z,Re)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Ee,we)|0,n=(n=n+Math.imul(Ee,Fe)|0)+Math.imul(te,we)|0,g=g+Math.imul(te,Fe)|0,_=_+Math.imul(fe,at)|0,n=(n=n+Math.imul(fe,yt)|0)+Math.imul(ye,at)|0,g=g+Math.imul(ye,yt)|0;var It=(I+(_=_+Math.imul(R,Xt)|0)|0)+((8191&(n=(n=n+Math.imul(R,Jt)|0)+Math.imul(H,Xt)|0))<<13)|0;I=((g=g+Math.imul(H,Jt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,_=Math.imul(jt,vt),n=(n=Math.imul(jt,kt))+Math.imul(Gt,vt)|0,g=Math.imul(Gt,kt),_=_+Math.imul(ht,Qe)|0,n=(n=n+Math.imul(ht,_t)|0)+Math.imul(Tt,Qe)|0,g=g+Math.imul(Tt,_t)|0,_=_+Math.imul(ve,Zt)|0,n=(n=n+Math.imul(ve,Pe)|0)+Math.imul(Le,Zt)|0,g=g+Math.imul(Le,Pe)|0,_=_+Math.imul(G,oe)|0,n=(n=n+Math.imul(G,Me)|0)+Math.imul(ee,oe)|0,g=g+Math.imul(ee,Me)|0,_=_+Math.imul(ce,ft)|0,n=(n=n+Math.imul(ce,Rt)|0)+Math.imul(Te,ft)|0,g=g+Math.imul(Te,Rt)|0,_=_+Math.imul(ot,Re)|0,n=(n=n+Math.imul(ot,qe)|0)+Math.imul(Ie,Re)|0,g=g+Math.imul(Ie,qe)|0,_=_+Math.imul(be,we)|0,n=(n=n+Math.imul(be,Fe)|0)+Math.imul(Z,we)|0,g=g+Math.imul(Z,Fe)|0,_=_+Math.imul(Ee,at)|0,n=(n=n+Math.imul(Ee,yt)|0)+Math.imul(te,at)|0,g=g+Math.imul(te,yt)|0,_=_+Math.imul(fe,Xt)|0,n=(n=n+Math.imul(fe,Jt)|0)+Math.imul(ye,Xt)|0,g=g+Math.imul(ye,Jt)|0;var de=(I+(_=_+Math.imul(R,ui)|0)|0)+((8191&(n=(n=n+Math.imul(R,si)|0)+Math.imul(H,ui)|0))<<13)|0;I=((g=g+Math.imul(H,si)|0)+(n>>>13)|0)+(de>>>26)|0,de&=67108863,_=Math.imul(jt,Qe),n=(n=Math.imul(jt,_t))+Math.imul(Gt,Qe)|0,g=Math.imul(Gt,_t),_=_+Math.imul(ht,Zt)|0,n=(n=n+Math.imul(ht,Pe)|0)+Math.imul(Tt,Zt)|0,g=g+Math.imul(Tt,Pe)|0,_=_+Math.imul(ve,oe)|0,n=(n=n+Math.imul(ve,Me)|0)+Math.imul(Le,oe)|0,g=g+Math.imul(Le,Me)|0,_=_+Math.imul(G,ft)|0,n=(n=n+Math.imul(G,Rt)|0)+Math.imul(ee,ft)|0,g=g+Math.imul(ee,Rt)|0,_=_+Math.imul(ce,Re)|0,n=(n=n+Math.imul(ce,qe)|0)+Math.imul(Te,Re)|0,g=g+Math.imul(Te,qe)|0,_=_+Math.imul(ot,we)|0,n=(n=n+Math.imul(ot,Fe)|0)+Math.imul(Ie,we)|0,g=g+Math.imul(Ie,Fe)|0,_=_+Math.imul(be,at)|0,n=(n=n+Math.imul(be,yt)|0)+Math.imul(Z,at)|0,g=g+Math.imul(Z,yt)|0,_=_+Math.imul(Ee,Xt)|0,n=(n=n+Math.imul(Ee,Jt)|0)+Math.imul(te,Xt)|0,g=g+Math.imul(te,Jt)|0;var $e=(I+(_=_+Math.imul(fe,ui)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(ye,ui)|0))<<13)|0;I=((g=g+Math.imul(ye,si)|0)+(n>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(jt,Zt),n=(n=Math.imul(jt,Pe))+Math.imul(Gt,Zt)|0,g=Math.imul(Gt,Pe),_=_+Math.imul(ht,oe)|0,n=(n=n+Math.imul(ht,Me)|0)+Math.imul(Tt,oe)|0,g=g+Math.imul(Tt,Me)|0,_=_+Math.imul(ve,ft)|0,n=(n=n+Math.imul(ve,Rt)|0)+Math.imul(Le,ft)|0,g=g+Math.imul(Le,Rt)|0,_=_+Math.imul(G,Re)|0,n=(n=n+Math.imul(G,qe)|0)+Math.imul(ee,Re)|0,g=g+Math.imul(ee,qe)|0,_=_+Math.imul(ce,we)|0,n=(n=n+Math.imul(ce,Fe)|0)+Math.imul(Te,we)|0,g=g+Math.imul(Te,Fe)|0,_=_+Math.imul(ot,at)|0,n=(n=n+Math.imul(ot,yt)|0)+Math.imul(Ie,at)|0,g=g+Math.imul(Ie,yt)|0,_=_+Math.imul(be,Xt)|0,n=(n=n+Math.imul(be,Jt)|0)+Math.imul(Z,Xt)|0,g=g+Math.imul(Z,Jt)|0;var bt=(I+(_=_+Math.imul(Ee,ui)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(te,ui)|0))<<13)|0;I=((g=g+Math.imul(te,si)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,_=Math.imul(jt,oe),n=(n=Math.imul(jt,Me))+Math.imul(Gt,oe)|0,g=Math.imul(Gt,Me),_=_+Math.imul(ht,ft)|0,n=(n=n+Math.imul(ht,Rt)|0)+Math.imul(Tt,ft)|0,g=g+Math.imul(Tt,Rt)|0,_=_+Math.imul(ve,Re)|0,n=(n=n+Math.imul(ve,qe)|0)+Math.imul(Le,Re)|0,g=g+Math.imul(Le,qe)|0,_=_+Math.imul(G,we)|0,n=(n=n+Math.imul(G,Fe)|0)+Math.imul(ee,we)|0,g=g+Math.imul(ee,Fe)|0,_=_+Math.imul(ce,at)|0,n=(n=n+Math.imul(ce,yt)|0)+Math.imul(Te,at)|0,g=g+Math.imul(Te,yt)|0,_=_+Math.imul(ot,Xt)|0,n=(n=n+Math.imul(ot,Jt)|0)+Math.imul(Ie,Xt)|0,g=g+Math.imul(Ie,Jt)|0;var Vt=(I+(_=_+Math.imul(be,ui)|0)|0)+((8191&(n=(n=n+Math.imul(be,si)|0)+Math.imul(Z,ui)|0))<<13)|0;I=((g=g+Math.imul(Z,si)|0)+(n>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(jt,ft),n=(n=Math.imul(jt,Rt))+Math.imul(Gt,ft)|0,g=Math.imul(Gt,Rt),_=_+Math.imul(ht,Re)|0,n=(n=n+Math.imul(ht,qe)|0)+Math.imul(Tt,Re)|0,g=g+Math.imul(Tt,qe)|0,_=_+Math.imul(ve,we)|0,n=(n=n+Math.imul(ve,Fe)|0)+Math.imul(Le,we)|0,g=g+Math.imul(Le,Fe)|0,_=_+Math.imul(G,at)|0,n=(n=n+Math.imul(G,yt)|0)+Math.imul(ee,at)|0,g=g+Math.imul(ee,yt)|0,_=_+Math.imul(ce,Xt)|0,n=(n=n+Math.imul(ce,Jt)|0)+Math.imul(Te,Xt)|0,g=g+Math.imul(Te,Jt)|0;var bi=(I+(_=_+Math.imul(ot,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ot,si)|0)+Math.imul(Ie,ui)|0))<<13)|0;I=((g=g+Math.imul(Ie,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,_=Math.imul(jt,Re),n=(n=Math.imul(jt,qe))+Math.imul(Gt,Re)|0,g=Math.imul(Gt,qe),_=_+Math.imul(ht,we)|0,n=(n=n+Math.imul(ht,Fe)|0)+Math.imul(Tt,we)|0,g=g+Math.imul(Tt,Fe)|0,_=_+Math.imul(ve,at)|0,n=(n=n+Math.imul(ve,yt)|0)+Math.imul(Le,at)|0,g=g+Math.imul(Le,yt)|0,_=_+Math.imul(G,Xt)|0,n=(n=n+Math.imul(G,Jt)|0)+Math.imul(ee,Xt)|0,g=g+Math.imul(ee,Jt)|0;var Li=(I+(_=_+Math.imul(ce,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,ui)|0))<<13)|0;I=((g=g+Math.imul(Te,si)|0)+(n>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(jt,we),n=(n=Math.imul(jt,Fe))+Math.imul(Gt,we)|0,g=Math.imul(Gt,Fe),_=_+Math.imul(ht,at)|0,n=(n=n+Math.imul(ht,yt)|0)+Math.imul(Tt,at)|0,g=g+Math.imul(Tt,yt)|0,_=_+Math.imul(ve,Xt)|0,n=(n=n+Math.imul(ve,Jt)|0)+Math.imul(Le,Xt)|0,g=g+Math.imul(Le,Jt)|0;var Ji=(I+(_=_+Math.imul(G,ui)|0)|0)+((8191&(n=(n=n+Math.imul(G,si)|0)+Math.imul(ee,ui)|0))<<13)|0;I=((g=g+Math.imul(ee,si)|0)+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,_=Math.imul(jt,at),n=(n=Math.imul(jt,yt))+Math.imul(Gt,at)|0,g=Math.imul(Gt,yt),_=_+Math.imul(ht,Xt)|0,n=(n=n+Math.imul(ht,Jt)|0)+Math.imul(Tt,Xt)|0,g=g+Math.imul(Tt,Jt)|0;var Wi=(I+(_=_+Math.imul(ve,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ve,si)|0)+Math.imul(Le,ui)|0))<<13)|0;I=((g=g+Math.imul(Le,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,_=Math.imul(jt,Xt),n=(n=Math.imul(jt,Jt))+Math.imul(Gt,Xt)|0,g=Math.imul(Gt,Jt);var sn=(I+(_=_+Math.imul(ht,ui)|0)|0)+((8191&(n=(n=n+Math.imul(ht,si)|0)+Math.imul(Tt,ui)|0))<<13)|0;I=((g=g+Math.imul(Tt,si)|0)+(n>>>13)|0)+(sn>>>26)|0,sn&=67108863;var mn=(I+(_=Math.imul(jt,ui))|0)+((8191&(n=(n=Math.imul(jt,si))+Math.imul(Gt,ui)|0))<<13)|0;return I=((g=Math.imul(Gt,si))+(n>>>13)|0)+(mn>>>26)|0,mn&=67108863,S[0]=en,S[1]=Ui,S[2]=Bi,S[3]=Gi,S[4]=ct,S[5]=Ft,S[6]=pt,S[7]=it,S[8]=It,S[9]=de,S[10]=$e,S[11]=bt,S[12]=Vt,S[13]=bi,S[14]=Li,S[15]=Ji,S[16]=Wi,S[17]=sn,S[18]=mn,0!==I&&(S[19]=I,h.length++),h};function U(x,t,r){return(new W).mulp(x,t,r)}function W(x,t){this.x=x,this.y=t}Math.imul||(w=k),a.prototype.mulTo=function(t,r){var h,c=this.length+t.length;return h=10===this.length&&10===t.length?w(this,t,r):c<63?k(this,t,r):c<1024?function z(x,t,r){r.negative=t.negative^x.negative,r.length=x.length+t.length;for(var h=0,c=0,C=0;C>>26)|0)>>>26,S&=67108863}r.words[C]=I,h=S,S=c}return 0!==h?r.words[C]=h:r.length--,r.strip()}(this,t,r):U(this,t,r),h},W.prototype.makeRBT=function(t){for(var r=new Array(t),h=a.prototype._countBits(t)-1,c=0;c>=1;return c},W.prototype.permute=function(t,r,h,c,C,S){for(var I=0;I>>=1)C++;return 1<>>=13),C>>>=13;for(S=2*r;S>=26,r+=c/67108864|0,r+=C>>>26,this.words[h]=67108863&C}return 0!==r&&(this.words[h]=r,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var r=function E(x){for(var t=new Array(x.bitLength()),r=0;r>>c}return t}(t);if(0===r.length)return new a(1);for(var h=this,c=0;c=0);var C,r=t%26,h=(t-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var S=0;for(C=0;C>>26-r}S&&(this.words[C]=S,this.length++)}if(0!==h){for(C=this.length-1;C>=0;C--)this.words[C+h]=this.words[C];for(C=0;C=0),c=r?(r-r%26)/26:0;var C=t%26,S=Math.min((t-C)/26,this.length),I=67108863^67108863>>>C<S)for(this.length-=S,n=0;n=0&&(0!==g||n>=c);n--){var V=0|this.words[n];this.words[n]=g<<26-C|V>>>C,g=V&I}return _&&0!==g&&(_.words[_.length++]=g),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,r,h){return u(0===this.negative),this.iushrn(t,r,h)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){u("number"==typeof t&&t>=0);var r=t%26,h=(t-r)/26;return!(this.length<=h||!(this.words[h]&1<=0);var r=t%26,h=(t-r)/26;return u(0===this.negative,"imaskn works only with positive numbers"),this.length<=h?this:(0!==r&&h++,this.length=Math.min(h,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(t){if(u("number"==typeof t),u(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(_/67108864|0),this.words[C+h]=67108863&S}for(;C>26,this.words[C+h]=67108863&S;if(0===I)return this.strip();for(u(-1===I),I=0,C=0;C>26,this.words[C]=67108863&S;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,r){var h,c=this.clone(),C=t,S=0|C.words[C.length-1];0!=(h=26-this._countBits(S))&&(C=C.ushln(h),c.iushln(h),S=0|C.words[C.length-1]);var n,_=c.length-C.length;if("mod"!==r){(n=new a(null)).length=_+1,n.words=new Array(n.length);for(var g=0;g=0;R--){var H=67108864*(0|c.words[C.length+R])+(0|c.words[C.length+R-1]);for(H=Math.min(H/S|0,67108863),c._ishlnsubmul(C,H,R);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(C,1,R),c.isZero()||(c.negative^=1);n&&(n.words[R]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==h&&c.iushrn(h),{div:n||null,mod:c}},a.prototype.divmod=function(t,r,h){return u(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(S=this.neg().divmod(t,r),"mod"!==r&&(c=S.div.neg()),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.iadd(t)),{div:c,mod:C}):0===this.negative&&0!==t.negative?(S=this.divmod(t.neg(),r),"mod"!==r&&(c=S.div.neg()),{div:c,mod:S.mod}):0!=(this.negative&t.negative)?(S=this.neg().divmod(t.neg(),r),"div"!==r&&(C=S.mod.neg(),h&&0!==C.negative&&C.isub(t)),{div:S.div,mod:C}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,r);var c,C,S},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var h=0!==r.div.negative?r.mod.isub(t):r.mod,c=t.ushrn(1),C=t.andln(1),S=h.cmp(c);return S<0||1===C&&0===S?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(t){u(t<=67108863);for(var r=(1<<26)%t,h=0,c=this.length-1;c>=0;c--)h=(r*h+(0|this.words[c]))%t;return h},a.prototype.idivn=function(t){u(t<=67108863);for(var r=0,h=this.length-1;h>=0;h--){var c=(0|this.words[h])+67108864*r;this.words[h]=c/t|0,r=c%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){u(0===t.negative),u(!t.isZero());var r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=new a(0),I=new a(1),_=0;r.isEven()&&h.isEven();)r.iushrn(1),h.iushrn(1),++_;for(var n=h.clone(),g=r.clone();!r.isZero();){for(var V=0,R=1;0==(r.words[0]&R)&&V<26;++V,R<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||C.isOdd())&&(c.iadd(n),C.isub(g)),c.iushrn(1),C.iushrn(1);for(var H=0,$=1;0==(h.words[0]&$)&&H<26;++H,$<<=1);if(H>0)for(h.iushrn(H);H-- >0;)(S.isOdd()||I.isOdd())&&(S.iadd(n),I.isub(g)),S.iushrn(1),I.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(S),C.isub(I)):(h.isub(r),S.isub(c),I.isub(C))}return{a:S,b:I,gcd:h.iushln(_)}},a.prototype._invmp=function(t){u(0===t.negative),u(!t.isZero());var V,r=this,h=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var c=new a(1),C=new a(0),S=h.clone();r.cmpn(1)>0&&h.cmpn(1)>0;){for(var I=0,_=1;0==(r.words[0]&_)&&I<26;++I,_<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(S),c.iushrn(1);for(var n=0,g=1;0==(h.words[0]&g)&&n<26;++n,g<<=1);if(n>0)for(h.iushrn(n);n-- >0;)C.isOdd()&&C.iadd(S),C.iushrn(1);r.cmp(h)>=0?(r.isub(h),c.isub(C)):(h.isub(r),C.isub(c))}return(V=0===r.cmpn(1)?c:C).cmpn(0)<0&&V.iadd(t),V},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),h=t.clone();r.negative=0,h.negative=0;for(var c=0;r.isEven()&&h.isEven();c++)r.iushrn(1),h.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;h.isEven();)h.iushrn(1);var C=r.cmp(h);if(C<0){var S=r;r=h,h=S}else if(0===C||0===h.cmpn(1))break;r.isub(h)}return h.iushln(c)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){u("number"==typeof t);var r=t%26,h=(t-r)/26,c=1<>>26,this.words[S]=I&=67108863}return 0!==C&&(this.words[S]=C,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var h,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)h=1;else{r&&(t=-t),u(t<=67108863,"Number is too big");var c=0|this.words[0];h=c===t?0:ct.length)return 1;if(this.length=0;h--){var c=0|this.words[h],C=0|t.words[h];if(c!==C){cC&&(r=1);break}}return r},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new J(t)},a.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ne={k256:null,p224:null,p192:null,p25519:null};function Q(x,t){this.name=x,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function le(){Q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){Q.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ie(){Q.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){Q.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(x){if("string"==typeof x){var t=a._prime(x);this.m=t.p,this.prime=t}else u(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function me(x){J.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Q.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},Q.prototype.ireduce=function(t){var h,r=t;do{this.split(r,this.tmp),h=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(h>this.n);var c=h0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},Q.prototype.split=function(t,r){t.iushrn(this.n,0,r)},Q.prototype.imulK=function(t){return t.imul(this.k)},b(le,Q),le.prototype.split=function(t,r){for(var h=4194303,c=Math.min(t.length,9),C=0;C>>22,S=I}t.words[C-10]=S>>>=22,t.length-=0===S&&t.length>10?10:9},le.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,h=0;h>>=26,t.words[h]=C,r=c}return 0!==r&&(t.words[t.length++]=r),t},a._prime=function(t){if(ne[t])return ne[t];var r;if("k256"===t)r=new le;else if("p224"===t)r=new q;else if("p192"===t)r=new ie;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new se}return ne[t]=r,r},J.prototype._verify1=function(t){u(0===t.negative,"red works only with positives"),u(t.red,"red works only with red numbers")},J.prototype._verify2=function(t,r){u(0==(t.negative|r.negative),"red works only with positives"),u(t.red&&t.red===r.red,"red works only with red numbers")},J.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},J.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},J.prototype.add=function(t,r){this._verify2(t,r);var h=t.add(r);return h.cmp(this.m)>=0&&h.isub(this.m),h._forceRed(this)},J.prototype.iadd=function(t,r){this._verify2(t,r);var h=t.iadd(r);return h.cmp(this.m)>=0&&h.isub(this.m),h},J.prototype.sub=function(t,r){this._verify2(t,r);var h=t.sub(r);return h.cmpn(0)<0&&h.iadd(this.m),h._forceRed(this)},J.prototype.isub=function(t,r){this._verify2(t,r);var h=t.isub(r);return h.cmpn(0)<0&&h.iadd(this.m),h},J.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},J.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},J.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},J.prototype.isqr=function(t){return this.imul(t,t.clone())},J.prototype.sqr=function(t){return this.mul(t,t)},J.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(u(r%2==1),3===r){var h=this.m.add(new a(1)).iushrn(2);return this.pow(t,h)}for(var c=this.m.subn(1),C=0;!c.isZero()&&0===c.andln(1);)C++,c.iushrn(1);u(!c.isZero());var S=new a(1).toRed(this),I=S.redNeg(),_=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,_).cmp(I);)n.redIAdd(I);for(var g=this.pow(n,c),V=this.pow(t,c.addn(1).iushrn(1)),R=this.pow(t,c),H=C;0!==R.cmp(S);){for(var $=R,fe=0;0!==$.cmp(S);fe++)$=$.redSqr();u(fe=0;C--){for(var g=r.words[C],V=n-1;V>=0;V--){var R=g>>V&1;S!==c[0]&&(S=this.sqr(S)),0!==R||0!==I?(I<<=1,I|=R,(4==++_||0===C&&0===V)&&(S=this.mul(S,c[I]),_=0,I=0)):_=0}n=26}return S},J.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},J.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},a.mont=function(t){return new me(t)},b(me,J),me.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},me.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},me.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var h=t.imul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new a(0)._forceRed(this);var h=t.mul(r),c=h.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=h.isub(c).iushrn(this.shift),S=C;return C.cmp(this.m)>=0?S=C.isub(this.m):C.cmpn(0)<0&&(S=C.iadd(this.m)),S._forceRed(this)},me.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(He=p.nmd(He),this)},6705:(He,j,p)=>{var e=p(2772),i=p(6945),u=p(9401),b=p(2057),a=p(8466),y=p(6386),d=p(8651),P=p(3502).Buffer;He.exports=function(E,k,w){var z;z=E.padding?E.padding:w?1:4;var ne,U=e(E),W=U.modulus.byteLength();if(k.length>W||new b(k).cmp(U.modulus)>=0)throw new Error("decryption error");ne=w?d(new b(k),U):a(k,U);var Q=P.alloc(W-ne.length);if(ne=P.concat([Q,ne],W),4===z)return function D(A,E){var k=A.modulus.byteLength(),w=y("sha1").update(P.alloc(0)).digest(),z=w.length;if(0!==E[0])throw new Error("decryption error");var U=E.slice(1,z+1),W=E.slice(z+1),ne=u(U,i(W,z)),Q=u(W,i(ne,k-z-1));if(function M(A,E){A=P.from(A),E=P.from(E);var k=0,w=A.length;A.length!==E.length&&(k++,w=Math.min(A.length,E.length));for(var z=-1;++z=E.length){U++;break}var W=E.slice(2,z-1);if(("0002"!==w.toString("hex")&&!k||"0001"!==w.toString("hex")&&k)&&U++,W.length<8&&U++,U)throw new Error("decryption error");return E.slice(z)}(0,ne,w);if(3===z)return ne;throw new Error("unknown padding")}},6562:(He,j,p)=>{var e=p(2772),i=p(3753),u=p(6386),b=p(6945),a=p(9401),y=p(2057),d=p(8651),P=p(8466),D=p(3502).Buffer;He.exports=function(k,w,z){var U;U=k.padding?k.padding:z?1:4;var ne,W=e(k);if(4===U)ne=function T(E,k){var w=E.modulus.byteLength(),z=k.length,U=u("sha1").update(D.alloc(0)).digest(),W=U.length,ne=2*W;if(z>w-ne-2)throw new Error("message too long");var Q=D.alloc(w-z-ne-2),le=w-W-1,q=i(W),ie=a(D.concat([U,Q,D.alloc(1,1),k],le),b(q,le)),se=a(q,b(ie,W));return new y(D.concat([D.alloc(1),se,ie],w))}(W,w);else if(1===U)ne=function M(E,k,w){var W,z=k.length,U=E.modulus.byteLength();if(z>U-11)throw new Error("message too long");return W=w?D.alloc(U-z-3,255):function A(E){for(var W,k=D.allocUnsafe(E),w=0,z=i(2*E),U=0;w=0)throw new Error("data too long for modulus")}return z?P(ne,W):d(ne,W)}},8651:(He,j,p)=>{var e=p(2057),i=p(3502).Buffer;He.exports=function u(b,a){return i.from(b.toRed(e.mont(a.modulus)).redPow(new e(a.publicExponent)).fromRed().toArray())}},9401:He=>{He.exports=function(p,e){for(var i=p.length,u=-1;++u{const e=p(8695),i=p(1465),u=p(3210),b=p(2334);function a(y,d,P,D,T){const M=[].slice.call(arguments,1),A=M.length,E="function"==typeof M[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(P=d,d=D=void 0):2===A&&!d.getContext&&(D=P,P=d,d=void 0),new Promise(function(k,w){try{const z=i.create(P,D);k(y(z,d,D))}catch(z){w(z)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(T=P,P=d,d=D=void 0):3===A&&(d.getContext&&void 0===T?(T=D,D=void 0):(T=D,D=P,P=d,d=void 0));try{const k=i.create(P,D);T(null,y(k,d,D))}catch(k){T(k)}}j.create=i.create,j.toCanvas=a.bind(null,u.render),j.toDataURL=a.bind(null,u.renderToDataURL),j.toString=a.bind(null,function(y,d,P){return b.render(y,P)})},8695:He=>{He.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getRowColCoords=function(u){if(1===u)return[];const b=Math.floor(u/7)+2,a=e(u),y=145===a?26:2*Math.ceil((a-13)/(2*b-2)),d=[a-7];for(let P=1;P{const e=p(4016),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(b){this.mode=e.ALPHANUMERIC,this.data=b}u.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(a){let y;for(y=0;y+2<=this.data.length;y+=2){let d=45*i.indexOf(this.data[y]);d+=i.indexOf(this.data[y+1]),a.put(d,11)}this.data.length%2&&a.put(i.indexOf(this.data[y]),6)},He.exports=u},2118:He=>{function j(){this.buffer=[],this.length=0}j.prototype={get:function(p){const e=Math.floor(p/8);return 1==(this.buffer[e]>>>7-p%8&1)},put:function(p,e){for(let i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),p&&(this.buffer[e]|=128>>>this.length%8),this.length++}},He.exports=j},4425:He=>{function j(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}j.prototype.set=function(p,e,i,u){const b=p*this.size+e;this.data[b]=i,u&&(this.reservedBit[b]=!0)},j.prototype.get=function(p,e){return this.data[p*this.size+e]},j.prototype.xor=function(p,e,i){this.data[p*this.size+e]^=i},j.prototype.isReserved=function(p,e){return this.reservedBit[p*this.size+e]},He.exports=j},5663:(He,j,p)=>{const e=p(8419),i=p(4016);function u(b){this.mode=i.BYTE,"string"==typeof b&&(b=e(b)),this.data=new Uint8Array(b)}u.getBitsLength=function(a){return 8*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){for(let a=0,y=this.data.length;a{const e=p(2259),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];j.getBlocksCount=function(a,y){switch(y){case e.L:return i[4*(a-1)+0];case e.M:return i[4*(a-1)+1];case e.Q:return i[4*(a-1)+2];case e.H:return i[4*(a-1)+3];default:return}},j.getTotalCodewordsCount=function(a,y){switch(y){case e.L:return u[4*(a-1)+0];case e.M:return u[4*(a-1)+1];case e.Q:return u[4*(a-1)+2];case e.H:return u[4*(a-1)+3];default:return}}},2259:(He,j)=>{j.L={bit:1},j.M={bit:0},j.Q={bit:3},j.H={bit:2},j.isValid=function(i){return i&&void 0!==i.bit&&i.bit>=0&&i.bit<4},j.from=function(i,u){if(j.isValid(i))return i;try{return function p(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return j.L;case"m":case"medium":return j.M;case"q":case"quartile":return j.Q;case"h":case"high":return j.H;default:throw new Error("Unknown EC Level: "+e)}}(i)}catch(b){return u}}},3114:(He,j,p)=>{const e=p(4792).getSymbolSize;j.getPositions=function(b){const a=e(b);return[[0,0],[a-7,0],[0,a-7]]}},7078:(He,j,p)=>{const e=p(4792),b=e.getBCHDigit(1335);j.getEncodedBits=function(y,d){const P=y.bit<<3|d;let D=P<<10;for(;e.getBCHDigit(D)-b>=0;)D^=1335<{const p=new Uint8Array(512),e=new Uint8Array(256);(function(){let u=1;for(let b=0;b<255;b++)p[b]=u,e[u]=b,u<<=1,256&u&&(u^=285);for(let b=255;b<512;b++)p[b]=p[b-255]})(),j.log=function(u){if(u<1)throw new Error("log("+u+")");return e[u]},j.exp=function(u){return p[u]},j.mul=function(u,b){return 0===u||0===b?0:p[e[u]+e[b]]}},4388:(He,j,p)=>{const e=p(4016),i=p(4792);function u(b){this.mode=e.KANJI,this.data=b}u.getBitsLength=function(a){return 13*a},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(b){let a;for(a=0;a=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),b.put(y,13)}},He.exports=u},3667:(He,j)=>{j.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(i,u,b){switch(i){case j.Patterns.PATTERN000:return(u+b)%2==0;case j.Patterns.PATTERN001:return u%2==0;case j.Patterns.PATTERN010:return b%3==0;case j.Patterns.PATTERN011:return(u+b)%3==0;case j.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(b/3))%2==0;case j.Patterns.PATTERN101:return u*b%2+u*b%3==0;case j.Patterns.PATTERN110:return(u*b%2+u*b%3)%2==0;case j.Patterns.PATTERN111:return(u*b%3+(u+b)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}}j.isValid=function(u){return null!=u&&""!==u&&!isNaN(u)&&u>=0&&u<=7},j.from=function(u){return j.isValid(u)?parseInt(u,10):void 0},j.getPenaltyN1=function(u){const b=u.size;let a=0,y=0,d=0,P=null,D=null;for(let T=0;T=5&&(a+=y-5+3),P=A,y=1),A=u.get(M,T),A===D?d++:(d>=5&&(a+=d-5+3),D=A,d=1)}y>=5&&(a+=y-5+3),d>=5&&(a+=d-5+3)}return a},j.getPenaltyN2=function(u){const b=u.size;let a=0;for(let y=0;y=10&&(1488===y||93===y)&&a++,d=d<<1&2047|u.get(D,P),D>=10&&(1488===d||93===d)&&a++}return 40*a},j.getPenaltyN4=function(u){let b=0;const a=u.data.length;for(let d=0;d{const e=p(4406),i=p(2699);j.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},j.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},j.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},j.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},j.MIXED={bit:-1},j.getCharCountIndicator=function(a,y){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!e.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?a.ccBits[0]:y<27?a.ccBits[1]:a.ccBits[2]},j.getBestModeForData=function(a){return i.testNumeric(a)?j.NUMERIC:i.testAlphanumeric(a)?j.ALPHANUMERIC:i.testKanji(a)?j.KANJI:j.BYTE},j.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},j.isValid=function(a){return a&&a.bit&&a.ccBits},j.from=function(a,y){if(j.isValid(a))return a;try{return function u(b){if("string"!=typeof b)throw new Error("Param is not a string");switch(b.toLowerCase()){case"numeric":return j.NUMERIC;case"alphanumeric":return j.ALPHANUMERIC;case"kanji":return j.KANJI;case"byte":return j.BYTE;default:throw new Error("Unknown mode: "+b)}}(a)}catch(d){return y}}},7783:(He,j,p)=>{const e=p(4016);function i(u){this.mode=e.NUMERIC,this.data=u.toString()}i.getBitsLength=function(b){return 10*Math.floor(b/3)+(b%3?b%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(b){let a,y,d;for(a=0;a+3<=this.data.length;a+=3)y=this.data.substr(a,3),d=parseInt(y,10),b.put(d,10);const P=this.data.length-a;P>0&&(y=this.data.substr(a),d=parseInt(y,10),b.put(d,3*P+1))},He.exports=i},1106:(He,j,p)=>{const e=p(5339);j.mul=function(u,b){const a=new Uint8Array(u.length+b.length-1);for(let y=0;y=0;){const y=a[0];for(let P=0;P{const e=p(4792),i=p(2259),u=p(2118),b=p(4425),a=p(6221),y=p(3114),d=p(3667),P=p(4655),D=p(2636),T=p(2088),M=p(7078),A=p(4016),E=p(2033);function W(ie,se,J){const me=ie.size,x=M.getEncodedBits(se,J);let t,r;for(t=0;t<15;t++)r=1==(x>>t&1),ie.set(t<6?t:t<8?t+1:me-15+t,8,r,!0),ie.set(8,t<8?me-t-1:t<9?15-t-1+1:15-t-1,r,!0);ie.set(me-8,8,1,!0)}function q(ie,se,J,me){let x;if(Array.isArray(ie))x=E.fromArray(ie);else{if("string"!=typeof ie)throw new Error("Invalid data");{let C=se;if(!C){const S=E.rawSplit(ie);C=T.getBestVersionForData(S,J)}x=E.fromString(ie,C||40)}}const t=T.getBestVersionForData(x,J);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&h<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===h||6===h)||h>=2&&h<=4&&c>=2&&c<=4,!0)}}(c,se),function w(ie){const se=ie.size;for(let J=8;J=7&&function U(ie,se){const J=ie.size,me=T.getEncodedBits(se);let x,t,r;for(let h=0;h<18;h++)x=Math.floor(h/3),t=h%3+J-8-3,r=1==(me>>h&1),ie.set(x,t,r,!0),ie.set(t,x,r,!0)}(c,se),function ne(ie,se){const J=ie.size;let me=-1,x=J-1,t=7,r=0;for(let h=J-1;h>0;h-=2)for(6===h&&h--;;){for(let c=0;c<2;c++)if(!ie.isReserved(x,h-c)){let C=!1;r>>t&1)),ie.set(x,h-c,C),t--,-1===t&&(r++,t=7)}if(x+=me,x<0||J<=x){x-=me,me=-me;break}}}(c,r),isNaN(me)&&(me=d.getBestMask(c,W.bind(null,c,J))),d.applyMask(me,c),W(c,J,me),{modules:c,version:se,errorCorrectionLevel:J,maskPattern:me,segments:x}}j.create=function(se,J){if(void 0===se||""===se)throw new Error("No input text");let x,t,me=i.M;return void 0!==J&&(me=i.from(J.errorCorrectionLevel,i.M),x=T.from(J.version),t=d.from(J.maskPattern),J.toSJISFunc&&e.setToSJISFunction(J.toSJISFunc)),q(se,x,me,t)}},2636:(He,j,p)=>{const e=p(1106);function i(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(b){this.degree=b,this.genPoly=e.generateECPolynomial(this.degree)},i.prototype.encode=function(b){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(b.length+this.degree);a.set(b);const y=e.mod(a,this.genPoly),d=this.degree-y.length;if(d>0){const P=new Uint8Array(this.degree);return P.set(y,d),P}return y},He.exports=i},2699:(He,j)=>{const p="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const u="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";j.KANJI=new RegExp(i,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(u,"g"),j.NUMERIC=new RegExp(p,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const b=new RegExp("^"+i+"$"),a=new RegExp("^"+p+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");j.testKanji=function(P){return b.test(P)},j.testNumeric=function(P){return a.test(P)},j.testAlphanumeric=function(P){return y.test(P)}},2033:(He,j,p)=>{const e=p(4016),i=p(7783),u=p(2424),b=p(5663),a=p(4388),y=p(2699),d=p(4792),P=p(4901);function D(U){return unescape(encodeURIComponent(U)).length}function T(U,W,ne){const Q=[];let le;for(;null!==(le=U.exec(ne));)Q.push({data:le[0],index:le.index,mode:W,length:le[0].length});return Q}function M(U){const W=T(y.NUMERIC,e.NUMERIC,U),ne=T(y.ALPHANUMERIC,e.ALPHANUMERIC,U);let Q,le;return d.isKanjiModeEnabled()?(Q=T(y.BYTE,e.BYTE,U),le=T(y.KANJI,e.KANJI,U)):(Q=T(y.BYTE_KANJI,e.BYTE,U),le=[]),W.concat(ne,Q,le).sort(function(ie,se){return ie.index-se.index}).map(function(ie){return{data:ie.data,mode:ie.mode,length:ie.length}})}function A(U,W){switch(W){case e.NUMERIC:return i.getBitsLength(U);case e.ALPHANUMERIC:return u.getBitsLength(U);case e.KANJI:return a.getBitsLength(U);case e.BYTE:return b.getBitsLength(U)}}function z(U,W){let ne;const Q=e.getBestModeForData(U);if(ne=e.from(W,Q),ne!==e.BYTE&&ne.bit=0?W[W.length-1]:null;return Q&&Q.mode===ne.mode?(W[W.length-1].data+=ne.data,W):(W.push(ne),W)},[])}(se))},j.rawSplit=function(W){return j.fromArray(M(W,d.isKanjiModeEnabled()))}},4792:(He,j)=>{let p;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];j.getSymbolSize=function(u){if(!u)throw new Error('"version" cannot be null or undefined');if(u<1||u>40)throw new Error('"version" should be in range from 1 to 40');return 4*u+17},j.getSymbolTotalCodewords=function(u){return e[u]},j.getBCHDigit=function(i){let u=0;for(;0!==i;)u++,i>>>=1;return u},j.setToSJISFunction=function(u){if("function"!=typeof u)throw new Error('"toSJISFunc" is not a valid function.');p=u},j.isKanjiModeEnabled=function(){return void 0!==p},j.toSJIS=function(u){return p(u)}},4406:(He,j)=>{j.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(He,j,p)=>{const e=p(4792),i=p(4655),u=p(2259),b=p(4016),a=p(4406),d=e.getBCHDigit(7973);function D(A,E){return b.getCharCountIndicator(A,E)+4}function T(A,E){let k=0;return A.forEach(function(w){k+=D(w.mode,E)+w.getBitsLength()}),k}j.from=function(E,k){return a.isValid(E)?parseInt(E,10):k},j.getCapacity=function(E,k,w){if(!a.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=b.BYTE);const W=8*(e.getSymbolTotalCodewords(E)-i.getTotalCodewordsCount(E,k));if(w===b.MIXED)return W;const ne=W-D(w,E);switch(w){case b.NUMERIC:return Math.floor(ne/10*3);case b.ALPHANUMERIC:return Math.floor(ne/11*2);case b.KANJI:return Math.floor(ne/13);default:return Math.floor(ne/8)}},j.getBestVersionForData=function(E,k){let w;const z=u.from(k,u.M);if(Array.isArray(E)){if(E.length>1)return function M(A,E){for(let k=1;k<=40;k++)if(T(A,k)<=j.getCapacity(k,E,b.MIXED))return k}(E,z);if(0===E.length)return 1;w=E[0]}else w=E;return function P(A,E,k){for(let w=1;w<=40;w++)if(E<=j.getCapacity(w,k,A))return w}(w.mode,w.getLength(),z)},j.getEncodedBits=function(E){if(!a.isValid(E)||E<7)throw new Error("Invalid QR Code version");let k=E<<12;for(;e.getBCHDigit(k)-d>=0;)k^=7973<{const e=p(6355);j.render=function(a,y,d){let P=d,D=y;void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),y||(D=function u(){try{return document.createElement("canvas")}catch(b){throw new Error("You need to specify a canvas element")}}()),P=e.getOptions(P);const T=e.getImageWidth(a.modules.size,P),M=D.getContext("2d"),A=M.createImageData(T,T);return e.qrToImageData(A.data,a,P),function i(b,a,y){b.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=y,a.width=y,a.style.height=y+"px",a.style.width=y+"px"}(M,D,T),M.putImageData(A,0,0),D},j.renderToDataURL=function(a,y,d){let P=d;return void 0===P&&(!y||!y.getContext)&&(P=y,y=void 0),P||(P={}),j.render(a,y,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},2334:(He,j,p)=>{const e=p(6355);function i(a,y){const d=a.a/255,P=y+'="'+a.hex+'"';return d<1?P+" "+y+'-opacity="'+d.toFixed(2).slice(1)+'"':P}function u(a,y,d){let P=a+y;return void 0!==d&&(P+=" "+d),P}j.render=function(y,d,P){const D=e.getOptions(d),T=y.modules.size,M=y.modules.data,A=T+2*D.margin,E=D.color.light.a?"':"",k="0&&E>0&&a[A-1]||(P+=T?u("M",E+d,.5+k+d):u("m",D,0),D=0,T=!1),E+1',U=''+E+k+"\n";return"function"==typeof P&&P(null,U),U}},6355:(He,j)=>{function p(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let i=e.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+e);(3===i.length||4===i.length)&&(i=Array.prototype.concat.apply([],i.map(function(b){return[b,b]}))),6===i.length&&i.push("F","F");const u=parseInt(i.join(""),16);return{r:u>>24&255,g:u>>16&255,b:u>>8&255,a:255&u,hex:"#"+i.slice(0,6).join("")}}j.getOptions=function(i){i||(i={}),i.color||(i.color={});const b=i.width&&i.width>=21?i.width:void 0;return{width:b,scale:b?4:i.scale||4,margin:null==i.margin||i.margin<0?4:i.margin,color:{dark:p(i.color.dark||"#000000ff"),light:p(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},j.getScale=function(i,u){return u.width&&u.width>=i+2*u.margin?u.width/(i+2*u.margin):u.scale},j.getImageWidth=function(i,u){const b=j.getScale(i,u);return Math.floor((i+2*u.margin)*b)},j.qrToImageData=function(i,u,b){const a=u.modules.size,y=u.modules.data,d=j.getScale(a,b),P=Math.floor((a+2*b.margin)*d),D=b.margin*d,T=[b.color.light,b.color.dark];for(let M=0;M=D&&A>=D&&M{"use strict";var e=65536,b=p(3502).Buffer,a=global.crypto||global.msCrypto;He.exports=a&&a.getRandomValues?function y(d,P){if(d>4294967295)throw new RangeError("requested too many random bytes");var D=b.allocUnsafe(d);if(d>0)if(d>e)for(var T=0;T{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=p(3502),u=p(3753),b=i.Buffer,a=i.kMaxLength,y=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function P(E,k){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>d||E<0)throw new TypeError("offset must be a uint32");if(E>a||E>k)throw new RangeError("offset out of range")}function D(E,k,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>d||E<0)throw new TypeError("size must be a uint32");if(E+k>w||E>a)throw new RangeError("buffer too small")}function M(E,k,w,z){if(process.browser){var W=new Uint8Array(E.buffer,k,w);return y.getRandomValues(W),z?void process.nextTick(function(){z(null,E)}):E}if(!z)return u(w).copy(E,k),E;u(w,function(Q,le){if(Q)return z(Q);le.copy(E,k),z(null,E)})}y&&y.getRandomValues||!process.browser?(j.randomFill=function T(E,k,w,z){if(!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)z=k,k=0,w=E.length;else if("function"==typeof w)z=w,w=E.length-k;else if("function"!=typeof z)throw new TypeError('"cb" argument must be a function');return P(k,E.length),D(w,k,E.length),M(E,k,w,z)},j.randomFillSync=function A(E,k,w){if(void 0===k&&(k=0),!(b.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return P(k,E.length),void 0===w&&(w=E.length-k),D(w,k,E.length),M(E,k,w)}):(j.randomFill=e,j.randomFillSync=e)},891:He=>{"use strict";var p={};function e(y,d,P){P||(P=Error);var T=function(M){function A(E,k,w){return M.call(this,function D(M,A,E){return"string"==typeof d?d:d(M,A,E)}(E,k,w))||this}return function j(y,d){y.prototype=Object.create(d.prototype),y.prototype.constructor=y,y.__proto__=d}(A,M),A}(P);T.prototype.name=P.name,T.prototype.code=y,p[y]=T}function i(y,d){if(Array.isArray(y)){var P=y.length;return y=y.map(function(D){return String(D)}),P>2?"one of ".concat(d," ").concat(y.slice(0,P-1).join(", "),", or ")+y[P-1]:2===P?"one of ".concat(d," ").concat(y[0]," or ").concat(y[1]):"of ".concat(d," ").concat(y[0])}return"of ".concat(d," ").concat(String(y))}e("ERR_INVALID_OPT_VALUE",function(y,d){return'The value "'+d+'" is invalid for option "'+y+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(y,d,P){var D,T;if("string"==typeof d&&function u(y,d,P){return y.substr(!P||P<0?0:+P,d.length)===d}(d,"not ")?(D="must not be",d=d.replace(/^not /,"")):D="must be",function b(y,d,P){return(void 0===P||P>y.length)&&(P=y.length),y.substring(P-d.length,P)===d}(y," argument"))T="The ".concat(y," ").concat(D," ").concat(i(d,"type"));else{var M=function a(y,d,P){return"number"!=typeof P&&(P=0),!(P+d.length>y.length)&&-1!==y.indexOf(d,P)}(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(M," ").concat(D," ").concat(i(d,"type"))}return T+". Received type ".concat(typeof P)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),He.exports.q=p},1339:(He,j,p)=>{"use strict";var e=Object.keys||function(T){var M=[];for(var A in T)M.push(A);return M};He.exports=d;var i=p(3154),u=p(520);p(3894)(d,i);for(var b=e(u.prototype),a=0;a{"use strict";He.exports=i;var e=p(6025);function i(u){if(!(this instanceof i))return new i(u);e.call(this,u)}p(3894)(i,e),i.prototype._transform=function(u,b,a){a(null,u)}},3154:(He,j,p)=>{"use strict";var e;He.exports=x,x.ReadableState=me,p(9069);var T,u=function(Y,ot){return Y.listeners(ot).length},b=p(4970),a=p(3172).Buffer,y=global.Uint8Array||function(){},D=p(4616);T=D&&D.debuglog?D.debuglog("stream"):function(){};var Q,le,q,M=p(5019),A=p(1920),k=p(7102).getHighWaterMark,w=p(891).q,z=w.ERR_INVALID_ARG_TYPE,U=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ne=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,b);var ie=A.errorOrDestroy,se=["error","close","destroy","pause","resume"];function me(Z,Y,ot){e=e||p(1339),"boolean"!=typeof ot&&(ot=Y instanceof e),this.objectMode=!!(Z=Z||{}).objectMode,ot&&(this.objectMode=this.objectMode||!!Z.readableObjectMode),this.highWaterMark=k(this,Z,"readableHighWaterMark",ot),this.buffer=new M,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==Z.emitClose,this.autoDestroy=!!Z.autoDestroy,this.destroyed=!1,this.defaultEncoding=Z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Z.encoding&&(Q||(Q=p(3054).s),this.decoder=new Q(Z.encoding),this.encoding=Z.encoding)}function x(Z){if(e=e||p(1339),!(this instanceof x))return new x(Z);this._readableState=new me(Z,this,this instanceof e),this.readable=!0,Z&&("function"==typeof Z.read&&(this._read=Z.read),"function"==typeof Z.destroy&&(this._destroy=Z.destroy)),b.call(this)}function t(Z,Y,ot,Ie,Ae){T("readableAddChunk",Y);var Te,ce=Z._readableState;if(null===Y)ce.reading=!1,function I(Z,Y){if(T("onEofChunk"),!Y.ended){if(Y.decoder){var ot=Y.decoder.end();ot&&ot.length&&(Y.buffer.push(ot),Y.length+=Y.objectMode?1:ot.length)}Y.ended=!0,Y.sync?_(Z):(Y.needReadable=!1,Y.emittedReadable||(Y.emittedReadable=!0,n(Z)))}}(Z,ce);else if(Ae||(Te=function h(Z,Y){var ot;return!function P(Z){return a.isBuffer(Z)||Z instanceof y}(Y)&&"string"!=typeof Y&&void 0!==Y&&!Z.objectMode&&(ot=new z("chunk",["string","Buffer","Uint8Array"],Y)),ot}(ce,Y)),Te)ie(Z,Te);else if(ce.objectMode||Y&&Y.length>0)if("string"!=typeof Y&&!ce.objectMode&&Object.getPrototypeOf(Y)!==a.prototype&&(Y=function d(Z){return a.from(Z)}(Y)),Ie)ce.endEmitted?ie(Z,new ne):r(Z,ce,Y,!0);else if(ce.ended)ie(Z,new U);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ot?(Y=ce.decoder.write(Y),ce.objectMode||0!==Y.length?r(Z,ce,Y,!1):g(Z,ce)):r(Z,ce,Y,!1)}else Ie||(ce.reading=!1,g(Z,ce));return!ce.ended&&(ce.lengthY.highWaterMark&&(Y.highWaterMark=function C(Z){return Z>=c?Z=c:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}(Z)),Z<=Y.length?Z:Y.ended?Y.length:(Y.needReadable=!0,0))}function _(Z){var Y=Z._readableState;T("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(T("emitReadable",Y.flowing),Y.emittedReadable=!0,process.nextTick(n,Z))}function n(Z){var Y=Z._readableState;T("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&(Y.length||Y.ended)&&(Z.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,ke(Z)}function g(Z,Y){Y.readingMore||(Y.readingMore=!0,process.nextTick(V,Z,Y))}function V(Z,Y){for(;!Y.reading&&!Y.ended&&(Y.length0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:Z.listenerCount("data")>0&&Z.resume()}function $(Z){T("readable nexttick read 0"),Z.read(0)}function ye(Z,Y){T("resume",Y.reading),Y.reading||Z.read(0),Y.resumeScheduled=!1,Z.emit("resume"),ke(Z),Y.flowing&&!Y.reading&&Z.read(0)}function ke(Z){var Y=Z._readableState;for(T("flow",Y.flowing);Y.flowing&&null!==Z.read(););}function Ee(Z,Y){return 0===Y.length?null:(Y.objectMode?ot=Y.buffer.shift():!Z||Z>=Y.length?(ot=Y.decoder?Y.buffer.join(""):1===Y.buffer.length?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):ot=Y.buffer.consume(Z,Y.decoder),ot);var ot}function te(Z){var Y=Z._readableState;T("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,process.nextTick(ze,Y,Z))}function ze(Z,Y){if(T("endReadableNT",Z.endEmitted,Z.length),!Z.endEmitted&&0===Z.length&&(Z.endEmitted=!0,Y.readable=!1,Y.emit("end"),Z.autoDestroy)){var ot=Y._writableState;(!ot||ot.autoDestroy&&ot.finished)&&Y.destroy()}}function be(Z,Y){for(var ot=0,Ie=Z.length;ot=Y.highWaterMark:Y.length>0)||Y.ended))return T("read: emitReadable",Y.length,Y.ended),0===Y.length&&Y.ended?te(this):_(this),null;if(0===(Z=S(Z,Y))&&Y.ended)return 0===Y.length&&te(this),null;var Ae,Ie=Y.needReadable;return T("need readable",Ie),(0===Y.length||Y.length-Z0?Ee(Z,Y):null)?(Y.needReadable=Y.length<=Y.highWaterMark,Z=0):(Y.length-=Z,Y.awaitDrain=0),0===Y.length&&(Y.ended||(Y.needReadable=!0),ot!==Z&&Y.ended&&te(this)),null!==Ae&&this.emit("data",Ae),Ae},x.prototype._read=function(Z){ie(this,new W("_read()"))},x.prototype.pipe=function(Z,Y){var ot=this,Ie=this._readableState;switch(Ie.pipesCount){case 0:Ie.pipes=Z;break;case 1:Ie.pipes=[Ie.pipes,Z];break;default:Ie.pipes.push(Z)}Ie.pipesCount+=1,T("pipe count=%d opts=%j",Ie.pipesCount,Y);var ce=Y&&!1===Y.end||Z===process.stdout||Z===process.stderr?Tt:xe;function xe(){T("onend"),Z.end()}Ie.endEmitted?process.nextTick(ce):ot.once("end",ce),Z.on("unpipe",function Te(hi,jt){T("onunpipe"),hi===ot&&jt&&!1===jt.hasUnpiped&&(jt.hasUnpiped=!0,function ue(){T("cleanup"),Z.removeListener("close",lt),Z.removeListener("finish",ht),Z.removeListener("drain",G),Z.removeListener("error",Le),Z.removeListener("unpipe",Te),ot.removeListener("end",xe),ot.removeListener("end",Tt),ot.removeListener("data",ve),ee=!0,Ie.awaitDrain&&(!Z._writableState||Z._writableState.needDrain)&&G()}())});var G=function R(Z){return function(){var ot=Z._readableState;T("pipeOnDrain",ot.awaitDrain),ot.awaitDrain&&ot.awaitDrain--,0===ot.awaitDrain&&u(Z,"data")&&(ot.flowing=!0,ke(Z))}}(ot);Z.on("drain",G);var ee=!1;function ve(hi){T("ondata");var jt=Z.write(hi);T("dest.write",jt),!1===jt&&((1===Ie.pipesCount&&Ie.pipes===Z||Ie.pipesCount>1&&-1!==be(Ie.pipes,Z))&&!ee&&(T("false write response, pause",Ie.awaitDrain),Ie.awaitDrain++),ot.pause())}function Le(hi){T("onerror",hi),Tt(),Z.removeListener("error",Le),0===u(Z,"error")&&ie(Z,hi)}function lt(){Z.removeListener("finish",ht),Tt()}function ht(){T("onfinish"),Z.removeListener("close",lt),Tt()}function Tt(){T("unpipe"),ot.unpipe(Z)}return ot.on("data",ve),function J(Z,Y,ot){if("function"==typeof Z.prependListener)return Z.prependListener(Y,ot);Z._events&&Z._events[Y]?Array.isArray(Z._events[Y])?Z._events[Y].unshift(ot):Z._events[Y]=[ot,Z._events[Y]]:Z.on(Y,ot)}(Z,"error",Le),Z.once("close",lt),Z.once("finish",ht),Z.emit("pipe",ot),Ie.flowing||(T("pipe resume"),ot.resume()),Z},x.prototype.unpipe=function(Z){var Y=this._readableState,ot={hasUnpiped:!1};if(0===Y.pipesCount)return this;if(1===Y.pipesCount)return Z&&Z!==Y.pipes||(Z||(Z=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,Z&&Z.emit("unpipe",this,ot)),this;if(!Z){var Ie=Y.pipes,Ae=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var ce=0;ce0,!1!==Ie.flowing&&this.resume()):"readable"===Z&&!Ie.endEmitted&&!Ie.readableListening&&(Ie.readableListening=Ie.needReadable=!0,Ie.flowing=!1,Ie.emittedReadable=!1,T("on readable",Ie.length,Ie.reading),Ie.length?_(this):Ie.reading||process.nextTick($,this)),ot},x.prototype.removeListener=function(Z,Y){var ot=b.prototype.removeListener.call(this,Z,Y);return"readable"===Z&&process.nextTick(H,this),ot},x.prototype.removeAllListeners=function(Z){var Y=b.prototype.removeAllListeners.apply(this,arguments);return("readable"===Z||void 0===Z)&&process.nextTick(H,this),Y},x.prototype.resume=function(){var Z=this._readableState;return Z.flowing||(T("resume"),Z.flowing=!Z.readableListening,function fe(Z,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,process.nextTick(ye,Z,Y))}(this,Z)),Z.paused=!1,this},x.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(Z){var Y=this,ot=this._readableState,Ie=!1;for(var Ae in Z.on("end",function(){if(T("wrapped end"),ot.decoder&&!ot.ended){var Te=ot.decoder.end();Te&&Te.length&&Y.push(Te)}Y.push(null)}),Z.on("data",function(Te){T("wrapped data"),ot.decoder&&(Te=ot.decoder.write(Te)),ot.objectMode&&null==Te||!(ot.objectMode||Te&&Te.length)||Y.push(Te)||(Ie=!0,Z.pause())}),Z)void 0===this[Ae]&&"function"==typeof Z[Ae]&&(this[Ae]=function(xe){return function(){return Z[xe].apply(Z,arguments)}}(Ae));for(var ce=0;ce{"use strict";He.exports=P;var e=p(891).q,i=e.ERR_METHOD_NOT_IMPLEMENTED,u=e.ERR_MULTIPLE_CALLBACK,b=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,y=p(1339);function d(M,A){var E=this._transformState;E.transforming=!1;var k=E.writecb;if(null===k)return this.emit("error",new u);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),k(M);var w=this._readableState;w.reading=!1,(w.needReadable||w.length{"use strict";function i(ke){var Ee=this;this.next=null,this.entry=null,this.finish=function(){!function ye(ke,Ee,te){var ze=ke.entry;for(ke.entry=null;ze;){var be=ze.callback;Ee.pendingcb--,be(te),ze=ze.next}Ee.corkedRequestsFree.next=ke}(Ee,ke)}}var u;He.exports=me,me.WritableState=se;var J,b={deprecate:p(4364)},a=p(4970),y=p(3172).Buffer,d=global.Uint8Array||function(){},T=p(1920),A=p(7102).getHighWaterMark,E=p(891).q,k=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,z=E.ERR_MULTIPLE_CALLBACK,U=E.ERR_STREAM_CANNOT_PIPE,W=E.ERR_STREAM_DESTROYED,ne=E.ERR_STREAM_NULL_VALUES,Q=E.ERR_STREAM_WRITE_AFTER_END,le=E.ERR_UNKNOWN_ENCODING,q=T.errorOrDestroy;function ie(){}function se(ke,Ee,te){u=u||p(1339),"boolean"!=typeof te&&(te=Ee instanceof u),this.objectMode=!!(ke=ke||{}).objectMode,te&&(this.objectMode=this.objectMode||!!ke.writableObjectMode),this.highWaterMark=A(this,ke,"writableHighWaterMark",te),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===ke.decodeStrings),this.defaultEncoding=ke.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(be){!function I(ke,Ee){var te=ke._writableState,ze=te.sync,be=te.writecb;if("function"!=typeof be)throw new z;if(function S(ke){ke.writing=!1,ke.writecb=null,ke.length-=ke.writelen,ke.writelen=0}(te),Ee)!function C(ke,Ee,te,ze,be){--Ee.pendingcb,te?(process.nextTick(be,ze),process.nextTick($,ke,Ee),ke._writableState.errorEmitted=!0,q(ke,ze)):(be(ze),ke._writableState.errorEmitted=!0,q(ke,ze),$(ke,Ee))}(ke,te,ze,Ee,be);else{var Z=V(te)||ke.destroyed;!Z&&!te.corked&&!te.bufferProcessing&&te.bufferedRequest&&g(ke,te),ze?process.nextTick(_,ke,te,Z,be):_(ke,te,Z,be)}}(Ee,be)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==ke.emitClose,this.autoDestroy=!!ke.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function me(ke){var Ee=this instanceof(u=u||p(1339));if(!Ee&&!J.call(me,this))return new me(ke);this._writableState=new se(ke,this,Ee),this.writable=!0,ke&&("function"==typeof ke.write&&(this._write=ke.write),"function"==typeof ke.writev&&(this._writev=ke.writev),"function"==typeof ke.destroy&&(this._destroy=ke.destroy),"function"==typeof ke.final&&(this._final=ke.final)),a.call(this)}function c(ke,Ee,te,ze,be,Z,Y){Ee.writelen=ze,Ee.writecb=Y,Ee.writing=!0,Ee.sync=!0,Ee.destroyed?Ee.onwrite(new W("write")):te?ke._writev(be,Ee.onwrite):ke._write(be,Z,Ee.onwrite),Ee.sync=!1}function _(ke,Ee,te,ze){te||function n(ke,Ee){0===Ee.length&&Ee.needDrain&&(Ee.needDrain=!1,ke.emit("drain"))}(ke,Ee),Ee.pendingcb--,ze(),$(ke,Ee)}function g(ke,Ee){Ee.bufferProcessing=!0;var te=Ee.bufferedRequest;if(ke._writev&&te&&te.next){var be=new Array(Ee.bufferedRequestCount),Z=Ee.corkedRequestsFree;Z.entry=te;for(var Y=0,ot=!0;te;)be[Y]=te,te.isBuf||(ot=!1),te=te.next,Y+=1;be.allBuffers=ot,c(ke,Ee,!0,Ee.length,be,"",Z.finish),Ee.pendingcb++,Ee.lastBufferedRequest=null,Z.next?(Ee.corkedRequestsFree=Z.next,Z.next=null):Ee.corkedRequestsFree=new i(Ee),Ee.bufferedRequestCount=0}else{for(;te;){var Ie=te.chunk;if(c(ke,Ee,!1,Ee.objectMode?1:Ie.length,Ie,te.encoding,te.callback),te=te.next,Ee.bufferedRequestCount--,Ee.writing)break}null===te&&(Ee.lastBufferedRequest=null)}Ee.bufferedRequest=te,Ee.bufferProcessing=!1}function V(ke){return ke.ending&&0===ke.length&&null===ke.bufferedRequest&&!ke.finished&&!ke.writing}function R(ke,Ee){ke._final(function(te){Ee.pendingcb--,te&&q(ke,te),Ee.prefinished=!0,ke.emit("prefinish"),$(ke,Ee)})}function $(ke,Ee){var te=V(Ee);if(te&&(function H(ke,Ee){!Ee.prefinished&&!Ee.finalCalled&&("function"!=typeof ke._final||Ee.destroyed?(Ee.prefinished=!0,ke.emit("prefinish")):(Ee.pendingcb++,Ee.finalCalled=!0,process.nextTick(R,ke,Ee)))}(ke,Ee),0===Ee.pendingcb&&(Ee.finished=!0,ke.emit("finish"),Ee.autoDestroy))){var ze=ke._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&ke.destroy()}return te}p(3894)(me,a),se.prototype.getBuffer=function(){for(var Ee=this.bufferedRequest,te=[];Ee;)te.push(Ee),Ee=Ee.next;return te},function(){try{Object.defineProperty(se.prototype,"buffer",{get:b.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ke){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(me,Symbol.hasInstance,{value:function(Ee){return!!J.call(this,Ee)||this===me&&Ee&&Ee._writableState instanceof se}})):J=function(Ee){return Ee instanceof this},me.prototype.pipe=function(){q(this,new U)},me.prototype.write=function(ke,Ee,te){var ze=this._writableState,be=!1,Z=!ze.objectMode&&function D(ke){return y.isBuffer(ke)||ke instanceof d}(ke);return Z&&!y.isBuffer(ke)&&(ke=function P(ke){return y.from(ke)}(ke)),"function"==typeof Ee&&(te=Ee,Ee=null),Z?Ee="buffer":Ee||(Ee=ze.defaultEncoding),"function"!=typeof te&&(te=ie),ze.ending?function x(ke,Ee){var te=new Q;q(ke,te),process.nextTick(Ee,te)}(this,te):(Z||function t(ke,Ee,te,ze){var be;return null===te?be=new ne:"string"!=typeof te&&!Ee.objectMode&&(be=new k("chunk",["string","Buffer"],te)),!be||(q(ke,be),process.nextTick(ze,be),!1)}(this,ze,ke,te))&&(ze.pendingcb++,be=function h(ke,Ee,te,ze,be,Z){if(!te){var Y=function r(ke,Ee,te){return!ke.objectMode&&!1!==ke.decodeStrings&&"string"==typeof Ee&&(Ee=y.from(Ee,te)),Ee}(Ee,ze,be);ze!==Y&&(te=!0,be="buffer",ze=Y)}var ot=Ee.objectMode?1:ze.length;Ee.length+=ot;var Ie=Ee.length-1))throw new le(Ee);return this._writableState.defaultEncoding=Ee,this},Object.defineProperty(me.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(me.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),me.prototype._write=function(ke,Ee,te){te(new w("_write()"))},me.prototype._writev=null,me.prototype.end=function(ke,Ee,te){var ze=this._writableState;return"function"==typeof ke?(te=ke,ke=null,Ee=null):"function"==typeof Ee&&(te=Ee,Ee=null),null!=ke&&this.write(ke,Ee),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||function fe(ke,Ee,te){Ee.ending=!0,$(ke,Ee),te&&(Ee.finished?process.nextTick(te):ke.once("finish",te)),Ee.ended=!0,ke.writable=!1}(this,ze,te),this},Object.defineProperty(me.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(me.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ee){!this._writableState||(this._writableState.destroyed=Ee)}}),me.prototype.destroy=T.destroy,me.prototype._undestroy=T.undestroy,me.prototype._destroy=function(ke,Ee){Ee(ke)}},3872:(He,j,p)=>{"use strict";var e;function i(W,ne,Q){return ne in W?Object.defineProperty(W,ne,{value:Q,enumerable:!0,configurable:!0,writable:!0}):W[ne]=Q,W}var u=p(7542),b=Symbol("lastResolve"),a=Symbol("lastReject"),y=Symbol("error"),d=Symbol("ended"),P=Symbol("lastPromise"),D=Symbol("handlePromise"),T=Symbol("stream");function M(W,ne){return{value:W,done:ne}}function A(W){var ne=W[b];if(null!==ne){var Q=W[T].read();null!==Q&&(W[P]=null,W[b]=null,W[a]=null,ne(M(Q,!1)))}}function E(W){process.nextTick(A,W)}var w=Object.getPrototypeOf(function(){}),z=Object.setPrototypeOf((i(e={get stream(){return this[T]},next:function(){var ne=this,Q=this[y];if(null!==Q)return Promise.reject(Q);if(this[d])return Promise.resolve(M(void 0,!0));if(this[T].destroyed)return new Promise(function(se,J){process.nextTick(function(){ne[y]?J(ne[y]):se(M(void 0,!0))})});var q,le=this[P];if(le)q=new Promise(function k(W,ne){return function(Q,le){W.then(function(){ne[d]?Q(M(void 0,!0)):ne[D](Q,le)},le)}}(le,this));else{var ie=this[T].read();if(null!==ie)return Promise.resolve(M(ie,!1));q=new Promise(this[D])}return this[P]=q,q}},Symbol.asyncIterator,function(){return this}),i(e,"return",function(){var ne=this;return new Promise(function(Q,le){ne[T].destroy(null,function(q){q?le(q):Q(M(void 0,!0))})})}),e),w);He.exports=function(ne){var Q,le=Object.create(z,(i(Q={},T,{value:ne,writable:!0}),i(Q,b,{value:null,writable:!0}),i(Q,a,{value:null,writable:!0}),i(Q,y,{value:null,writable:!0}),i(Q,d,{value:ne._readableState.endEmitted,writable:!0}),i(Q,D,{value:function(ie,se){var J=le[T].read();J?(le[P]=null,le[b]=null,le[a]=null,ie(M(J,!1))):(le[b]=ie,le[a]=se)},writable:!0}),Q));return le[P]=null,u(ne,function(q){if(q&&"ERR_STREAM_PREMATURE_CLOSE"!==q.code){var ie=le[a];return null!==ie&&(le[P]=null,le[b]=null,le[a]=null,ie(q)),void(le[y]=q)}var se=le[b];null!==se&&(le[P]=null,le[b]=null,le[a]=null,se(M(void 0,!0))),le[d]=!0}),ne.on("readable",E.bind(null,le)),le}},5019:(He,j,p)=>{"use strict";function e(E,k){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(E);k&&(z=z.filter(function(U){return Object.getOwnPropertyDescriptor(E,U).enumerable})),w.push.apply(w,z)}return w}function u(E,k,w){return k in E?Object.defineProperty(E,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[k]=w,E}function a(E,k){for(var w=0;w0?this.tail.next=z:this.head=z,this.tail=z,++this.length}},{key:"unshift",value:function(w){var z={data:w,next:this.head};0===this.length&&(this.tail=z),this.head=z,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var z=this.head,U=""+z.data;z=z.next;)U+=w+z.data;return U}},{key:"concat",value:function(w){if(0===this.length)return P.alloc(0);for(var z=P.allocUnsafe(w>>>0),U=this.head,W=0;U;)A(U.data,z,W),W+=U.data.length,U=U.next;return z}},{key:"consume",value:function(w,z){var U;return wne.length?ne.length:w;if(W+=Q===ne.length?ne:ne.slice(0,w),0==(w-=Q)){Q===ne.length?(++U,this.head=z.next?z.next:this.tail=null):(this.head=z,z.data=ne.slice(Q));break}++U}return this.length-=U,W}},{key:"_getBuffer",value:function(w){var z=P.allocUnsafe(w),U=this.head,W=1;for(U.data.copy(z),w-=U.data.length;U=U.next;){var ne=U.data,Q=w>ne.length?ne.length:w;if(ne.copy(z,z.length-w,0,Q),0==(w-=Q)){Q===ne.length?(++W,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ne.slice(Q));break}++W}return this.length-=W,z}},{key:M,value:function(w,z){return T(this,function i(E){for(var k=1;k{"use strict";function p(a,y){u(a,y),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function u(a,y){a.emit("error",y)}He.exports={destroy:function j(a,y){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(y?y(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(u,this,a)):process.nextTick(u,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(T){!y&&T?d._writableState?d._writableState.errorEmitted?process.nextTick(e,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,T)):process.nextTick(p,d,T):y?(process.nextTick(e,d),y(T)):process.nextTick(e,d)}),this)},undestroy:function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function b(a,y){var d=a._readableState,P=a._writableState;d&&d.autoDestroy||P&&P.autoDestroy?a.destroy(y):a.emit("error",y)}}},7542:(He,j,p)=>{"use strict";var e=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function u(){}He.exports=function a(y,d,P){if("function"==typeof d)return a(y,null,d);d||(d={}),P=function i(y){var d=!1;return function(){if(!d){d=!0;for(var P=arguments.length,D=new Array(P),T=0;T{He.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(He,j,p)=>{"use strict";var e,u=p(891).q,b=u.ERR_MISSING_ARGS,a=u.ERR_STREAM_DESTROYED;function y(E){if(E)throw E}function P(E,k,w,z){z=function i(E){var k=!1;return function(){k||(k=!0,E.apply(void 0,arguments))}}(z);var U=!1;E.on("close",function(){U=!0}),void 0===e&&(e=p(7542)),e(E,{readable:k,writable:w},function(ne){if(ne)return z(ne);U=!0,z()});var W=!1;return function(ne){if(!U&&!W){if(W=!0,function d(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();z(ne||new a("pipe"))}}}function D(E){E()}function T(E,k){return E.pipe(k)}function M(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():y}He.exports=function A(){for(var E=arguments.length,k=new Array(E),w=0;w0,function(ie){U||(U=ie),ie&&W.forEach(D),!le&&(W.forEach(D),z(U))})});return k.reduce(T)}},7102:(He,j,p)=>{"use strict";var e=p(891).q.ERR_INVALID_OPT_VALUE;He.exports={getHighWaterMark:function u(b,a,y,d){var P=function i(b,a,y){return null!=b.highWaterMark?b.highWaterMark:a?b[y]:null}(a,d,y);if(null!=P){if(!isFinite(P)||Math.floor(P)!==P||P<0)throw new e(d?y:"highWaterMark",P);return Math.floor(P)}return b.objectMode?16:16384}}},4970:(He,j,p)=>{He.exports=p(9069).EventEmitter},5685:(He,j,p)=>{(j=He.exports=p(3154)).Stream=j,j.Readable=j,j.Writable=p(520),j.Duplex=p(1339),j.Transform=p(6025),j.PassThrough=p(6071),j.finished=p(7542),j.pipeline=p(954)},5634:(He,j,p)=>{"use strict";var e=p(3172).Buffer,i=p(3894),u=p(9650),b=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],P=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],D=[0,1518500249,1859775393,2400959708,2840853838],T=[1352829926,1548603684,1836072691,2053994217,0];function M(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(W,ne){return W<>>32-ne}function E(W,ne,Q,le,q,ie,se,J){return A(W+(ne^Q^le)+ie+se|0,J)+q|0}function k(W,ne,Q,le,q,ie,se,J){return A(W+(ne&Q|~ne&le)+ie+se|0,J)+q|0}function w(W,ne,Q,le,q,ie,se,J){return A(W+((ne|~Q)^le)+ie+se|0,J)+q|0}function z(W,ne,Q,le,q,ie,se,J){return A(W+(ne&le|Q&~le)+ie+se|0,J)+q|0}function U(W,ne,Q,le,q,ie,se,J){return A(W+(ne^(Q|~le))+ie+se|0,J)+q|0}i(M,u),M.prototype._update=function(){for(var W=b,ne=0;ne<16;++ne)W[ne]=this._block.readInt32LE(4*ne);for(var Q=0|this._a,le=0|this._b,q=0|this._c,ie=0|this._d,se=0|this._e,J=0|this._a,me=0|this._b,x=0|this._c,t=0|this._d,r=0|this._e,h=0;h<80;h+=1){var c,C;h<16?(c=E(Q,le,q,ie,se,W[a[h]],D[0],d[h]),C=U(J,me,x,t,r,W[y[h]],T[0],P[h])):h<32?(c=k(Q,le,q,ie,se,W[a[h]],D[1],d[h]),C=z(J,me,x,t,r,W[y[h]],T[1],P[h])):h<48?(c=w(Q,le,q,ie,se,W[a[h]],D[2],d[h]),C=w(J,me,x,t,r,W[y[h]],T[2],P[h])):h<64?(c=z(Q,le,q,ie,se,W[a[h]],D[3],d[h]),C=k(J,me,x,t,r,W[y[h]],T[3],P[h])):(c=U(Q,le,q,ie,se,W[a[h]],D[4],d[h]),C=E(J,me,x,t,r,W[y[h]],T[4],P[h])),Q=se,se=ie,ie=A(q,10),q=le,le=c,J=r,r=t,t=A(x,10),x=me,me=C}var S=this._b+q+t|0;this._b=this._c+ie+r|0,this._c=this._d+se+J|0,this._d=this._e+Q+me|0,this._e=this._a+le+x|0,this._a=S},M.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},He.exports=M},1135:(He,j,p)=>{"use strict";p.d(j,{X:()=>i});var e=p(7579);class i extends e.x{constructor(b){super(),this._value=b}get value(){return this.getValue()}_subscribe(b){const a=super._subscribe(b);return!a.closed&&b.next(this._value),a}getValue(){const{hasError:b,thrownError:a,_value:y}=this;if(b)throw a;return this._throwIfClosed(),y}next(b){super.next(this._value=b)}}},8306:(He,j,p)=>{"use strict";p.d(j,{y:()=>T});var e=p(930),i=p(727),u=p(8822),b=p(4671);var d=p(2416),P=p(576),D=p(2806);let T=(()=>{class k{constructor(z){z&&(this._subscribe=z)}lift(z){const U=new k;return U.source=this,U.operator=z,U}subscribe(z,U,W){const ne=function E(k){return k&&k instanceof e.Lv||function A(k){return k&&(0,P.m)(k.next)&&(0,P.m)(k.error)&&(0,P.m)(k.complete)}(k)&&(0,i.Nn)(k)}(z)?z:new e.Hp(z,U,W);return(0,D.x)(()=>{const{operator:Q,source:le}=this;ne.add(Q?Q.call(ne,le):le?this._subscribe(ne):this._trySubscribe(ne))}),ne}_trySubscribe(z){try{return this._subscribe(z)}catch(U){z.error(U)}}forEach(z,U){return new(U=M(U))((W,ne)=>{const Q=new e.Hp({next:le=>{try{z(le)}catch(q){ne(q),Q.unsubscribe()}},error:ne,complete:W});this.subscribe(Q)})}_subscribe(z){var U;return null===(U=this.source)||void 0===U?void 0:U.subscribe(z)}[u.L](){return this}pipe(...z){return function y(k){return 0===k.length?b.y:1===k.length?k[0]:function(z){return k.reduce((U,W)=>W(U),z)}}(z)(this)}toPromise(z){return new(z=M(z))((U,W)=>{let ne;this.subscribe(Q=>ne=Q,Q=>W(Q),()=>U(ne))})}}return k.create=w=>new k(w),k})();function M(k){var w;return null!==(w=null!=k?k:d.v.Promise)&&void 0!==w?w:Promise}},4707:(He,j,p)=>{"use strict";p.d(j,{t:()=>u});var e=p(7579),i=p(6063);class u extends e.x{constructor(a=1/0,y=1/0,d=i.l){super(),this._bufferSize=a,this._windowTime=y,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=y===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,y)}next(a){const{isStopped:y,_buffer:d,_infiniteTimeWindow:P,_timestampProvider:D,_windowTime:T}=this;y||(d.push(a),!P&&d.push(D.now()+T)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const y=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:P}=this,D=P.slice();for(let T=0;T{"use strict";p.d(j,{u:()=>P,x:()=>d});var e=p(8306),i=p(727);const b=(0,p(3888).d)(D=>function(){D(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),y=p(2806);let d=(()=>{class D extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(M){const A=new P(this,this);return A.operator=M,A}_throwIfClosed(){if(this.closed)throw new b}next(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const A of this.currentObservers)A.next(M)}})}error(M){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=M;const{observers:A}=this;for(;A.length;)A.shift().error(M)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:M}=this;for(;M.length;)M.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var M;return(null===(M=this.observers)||void 0===M?void 0:M.length)>0}_trySubscribe(M){return this._throwIfClosed(),super._trySubscribe(M)}_subscribe(M){return this._throwIfClosed(),this._checkFinalizedStatuses(M),this._innerSubscribe(M)}_innerSubscribe(M){const{hasError:A,isStopped:E,observers:k}=this;return A||E?i.Lc:(this.currentObservers=null,k.push(M),new i.w0(()=>{this.currentObservers=null,(0,a.P)(k,M)}))}_checkFinalizedStatuses(M){const{hasError:A,thrownError:E,isStopped:k}=this;A?M.error(E):k&&M.complete()}asObservable(){const M=new e.y;return M.source=this,M}}return D.create=(T,M)=>new P(T,M),D})();class P extends d{constructor(T,M){super(),this.destination=T,this.source=M}next(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.next)||void 0===A||A.call(M,T)}error(T){var M,A;null===(A=null===(M=this.destination)||void 0===M?void 0:M.error)||void 0===A||A.call(M,T)}complete(){var T,M;null===(M=null===(T=this.destination)||void 0===T?void 0:T.complete)||void 0===M||M.call(T)}_subscribe(T){var M,A;return null!==(A=null===(M=this.source)||void 0===M?void 0:M.subscribe(T))&&void 0!==A?A:i.Lc}}},930:(He,j,p)=>{"use strict";p.d(j,{Hp:()=>z,Lv:()=>A});var e=p(576),i=p(727),u=p(2416),b=p(7849),a=p(5032);const y=D("C",void 0,void 0);function D(le,q,ie){return{kind:le,value:q,error:ie}}var T=p(3410),M=p(2806);class A extends i.w0{constructor(q){super(),this.isStopped=!1,q?(this.destination=q,(0,i.Nn)(q)&&q.add(this)):this.destination=Q}static create(q,ie,se){return new z(q,ie,se)}next(q){this.isStopped?ne(function P(le){return D("N",le,void 0)}(q),this):this._next(q)}error(q){this.isStopped?ne(function d(le){return D("E",void 0,le)}(q),this):(this.isStopped=!0,this._error(q))}complete(){this.isStopped?ne(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(q){this.destination.next(q)}_error(q){try{this.destination.error(q)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const E=Function.prototype.bind;function k(le,q){return E.call(le,q)}class w{constructor(q){this.partialObserver=q}next(q){const{partialObserver:ie}=this;if(ie.next)try{ie.next(q)}catch(se){U(se)}}error(q){const{partialObserver:ie}=this;if(ie.error)try{ie.error(q)}catch(se){U(se)}else U(q)}complete(){const{partialObserver:q}=this;if(q.complete)try{q.complete()}catch(ie){U(ie)}}}class z extends A{constructor(q,ie,se){let J;if(super(),(0,e.m)(q)||!q)J={next:null!=q?q:void 0,error:null!=ie?ie:void 0,complete:null!=se?se:void 0};else{let me;this&&u.v.useDeprecatedNextContext?(me=Object.create(q),me.unsubscribe=()=>this.unsubscribe(),J={next:q.next&&k(q.next,me),error:q.error&&k(q.error,me),complete:q.complete&&k(q.complete,me)}):J=q}this.destination=new w(J)}}function U(le){u.v.useDeprecatedSynchronousErrorHandling?(0,M.O)(le):(0,b.h)(le)}function ne(le,q){const{onStoppedNotification:ie}=u.v;ie&&T.z.setTimeout(()=>ie(le,q))}const Q={closed:!0,next:a.Z,error:function W(le){throw le},complete:a.Z}},727:(He,j,p)=>{"use strict";p.d(j,{Lc:()=>y,w0:()=>a,Nn:()=>d});var e=p(576);const u=(0,p(3888).d)(D=>function(M){D(this),this.message=M?`${M.length} errors occurred during unsubscription:\n${M.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=M});var b=p(8737);class a{constructor(T){this.initialTeardown=T,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let T;if(!this.closed){this.closed=!0;const{_parentage:M}=this;if(M)if(this._parentage=null,Array.isArray(M))for(const k of M)k.remove(this);else M.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(k){T=k instanceof u?k.errors:[k]}const{_finalizers:E}=this;if(E){this._finalizers=null;for(const k of E)try{P(k)}catch(w){T=null!=T?T:[],w instanceof u?T=[...T,...w.errors]:T.push(w)}}if(T)throw new u(T)}}add(T){var M;if(T&&T!==this)if(this.closed)P(T);else{if(T instanceof a){if(T.closed||T._hasParent(this))return;T._addParent(this)}(this._finalizers=null!==(M=this._finalizers)&&void 0!==M?M:[]).push(T)}}_hasParent(T){const{_parentage:M}=this;return M===T||Array.isArray(M)&&M.includes(T)}_addParent(T){const{_parentage:M}=this;this._parentage=Array.isArray(M)?(M.push(T),M):M?[M,T]:T}_removeParent(T){const{_parentage:M}=this;M===T?this._parentage=null:Array.isArray(M)&&(0,b.P)(M,T)}remove(T){const{_finalizers:M}=this;M&&(0,b.P)(M,T),T instanceof a&&T._removeParent(this)}}a.EMPTY=(()=>{const D=new a;return D.closed=!0,D})();const y=a.EMPTY;function d(D){return D instanceof a||D&&"closed"in D&&(0,e.m)(D.remove)&&(0,e.m)(D.add)&&(0,e.m)(D.unsubscribe)}function P(D){(0,e.m)(D)?D():D.unsubscribe()}},2416:(He,j,p)=>{"use strict";p.d(j,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(He,j,p)=>{"use strict";p.d(j,{a:()=>T});var e=p(8306),i=p(4742),u=p(457),b=p(4671),a=p(3268),y=p(3269),d=p(1810),P=p(5403),D=p(9672);function T(...E){const k=(0,y.yG)(E),w=(0,y.jO)(E),{args:z,keys:U}=(0,i.D)(E);if(0===z.length)return(0,u.D)([],k);const W=new e.y(function M(E,k,w=b.y){return z=>{A(k,()=>{const{length:U}=E,W=new Array(U);let ne=U,Q=U;for(let le=0;le{const q=(0,u.D)(E[le],k);let ie=!1;q.subscribe((0,P.x)(z,se=>{W[le]=se,ie||(ie=!0,Q--),Q||z.next(w(W.slice()))},()=>{--ne||z.complete()}))},z)},z)}}(z,k,U?ne=>(0,d.n)(U,ne):b.y));return w?W.pipe((0,a.Z)(w)):W}function A(E,k,w){E?(0,D.f)(w,E,k):k()}},7272:(He,j,p)=>{"use strict";p.d(j,{z:()=>a});var e=p(8189),u=p(3269),b=p(457);function a(...y){return function i(){return(0,e.J)(1)}()((0,b.D)(y,(0,u.yG)(y)))}},9770:(He,j,p)=>{"use strict";p.d(j,{P:()=>u});var e=p(8306),i=p(8421);function u(b){return new e.y(a=>{(0,i.Xf)(b()).subscribe(a)})}},515:(He,j,p)=>{"use strict";p.d(j,{E:()=>i});const i=new(p(8306).y)(a=>a.complete())},4128:(He,j,p)=>{"use strict";p.d(j,{D:()=>P});var e=p(8306),i=p(4742),u=p(8421),b=p(3269),a=p(5403),y=p(3268),d=p(1810);function P(...D){const T=(0,b.jO)(D),{args:M,keys:A}=(0,i.D)(D),E=new e.y(k=>{const{length:w}=M;if(!w)return void k.complete();const z=new Array(w);let U=w,W=w;for(let ne=0;ne{Q||(Q=!0,W--),z[ne]=le},()=>U--,void 0,()=>{(!U||!Q)&&(W||k.next(A?(0,d.n)(A,z):z),k.complete())}))}});return T?E.pipe((0,y.Z)(T)):E}},457:(He,j,p)=>{"use strict";p.d(j,{D:()=>ie});var e=p(8421),i=p(5363),u=p(4482);function b(se,J=0){return(0,u.e)((me,x)=>{x.add(se.schedule(()=>me.subscribe(x),J))})}var d=p(8306),D=p(2202),T=p(576),M=p(9672);function E(se,J){if(!se)throw new Error("Iterable cannot be null");return new d.y(me=>{(0,M.f)(me,J,()=>{const x=se[Symbol.asyncIterator]();(0,M.f)(me,J,()=>{x.next().then(t=>{t.done?me.complete():me.next(t.value)})},0,!0)})})}var k=p(3670),w=p(8239),z=p(1144),U=p(6495),W=p(2206),ne=p(4532),Q=p(3260);function ie(se,J){return J?function q(se,J){if(null!=se){if((0,k.c)(se))return function a(se,J){return(0,e.Xf)(se).pipe(b(J),(0,i.Q)(J))}(se,J);if((0,z.z)(se))return function P(se,J){return new d.y(me=>{let x=0;return J.schedule(function(){x===se.length?me.complete():(me.next(se[x++]),me.closed||this.schedule())})})}(se,J);if((0,w.t)(se))return function y(se,J){return(0,e.Xf)(se).pipe(b(J),(0,i.Q)(J))}(se,J);if((0,W.D)(se))return E(se,J);if((0,U.T)(se))return function A(se,J){return new d.y(me=>{let x;return(0,M.f)(me,J,()=>{x=se[D.h](),(0,M.f)(me,J,()=>{let t,r;try{({value:t,done:r}=x.next())}catch(h){return void me.error(h)}r?me.complete():me.next(t)},0,!0)}),()=>(0,T.m)(null==x?void 0:x.return)&&x.return()})}(se,J);if((0,Q.L)(se))return function le(se,J){return E((0,Q.Q)(se),J)}(se,J)}throw(0,ne.z)(se)}(se,J):(0,e.Xf)(se)}},4968:(He,j,p)=>{"use strict";p.d(j,{R:()=>T});var e=p(8421),i=p(8306),u=p(5577),b=p(1144),a=p(576),y=p(3268);const d=["addListener","removeListener"],P=["addEventListener","removeEventListener"],D=["on","off"];function T(w,z,U,W){if((0,a.m)(U)&&(W=U,U=void 0),W)return T(w,z,U).pipe((0,y.Z)(W));const[ne,Q]=function k(w){return(0,a.m)(w.addEventListener)&&(0,a.m)(w.removeEventListener)}(w)?P.map(le=>q=>w[le](z,q,U)):function A(w){return(0,a.m)(w.addListener)&&(0,a.m)(w.removeListener)}(w)?d.map(M(w,z)):function E(w){return(0,a.m)(w.on)&&(0,a.m)(w.off)}(w)?D.map(M(w,z)):[];if(!ne&&(0,b.z)(w))return(0,u.z)(le=>T(le,z,U))((0,e.Xf)(w));if(!ne)throw new TypeError("Invalid event target");return new i.y(le=>{const q=(...ie)=>le.next(1Q(q)})}function M(w,z){return U=>W=>w[U](z,W)}},8421:(He,j,p)=>{"use strict";p.d(j,{Xf:()=>E});var e=p(655),i=p(1144),u=p(8239),b=p(8306),a=p(3670),y=p(2206),d=p(4532),P=p(6495),D=p(3260),T=p(576),M=p(7849),A=p(8822);function E(le){if(le instanceof b.y)return le;if(null!=le){if((0,a.c)(le))return function k(le){return new b.y(q=>{const ie=le[A.L]();if((0,T.m)(ie.subscribe))return ie.subscribe(q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(le);if((0,i.z)(le))return function w(le){return new b.y(q=>{for(let ie=0;ie{le.then(ie=>{q.closed||(q.next(ie),q.complete())},ie=>q.error(ie)).then(null,M.h)})}(le);if((0,y.D)(le))return W(le);if((0,P.T)(le))return function U(le){return new b.y(q=>{for(const ie of le)if(q.next(ie),q.closed)return;q.complete()})}(le);if((0,D.L)(le))return function ne(le){return W((0,D.Q)(le))}(le)}throw(0,d.z)(le)}function W(le){return new b.y(q=>{(function Q(le,q){var ie,se,J,me;return(0,e.mG)(this,void 0,void 0,function*(){try{for(ie=(0,e.KL)(le);!(se=yield ie.next()).done;)if(q.next(se.value),q.closed)return}catch(x){J={error:x}}finally{try{se&&!se.done&&(me=ie.return)&&(yield me.call(ie))}finally{if(J)throw J.error}}q.complete()})})(le,q).catch(ie=>q.error(ie))})}},6451:(He,j,p)=>{"use strict";p.d(j,{T:()=>y});var e=p(8189),i=p(8421),u=p(515),b=p(3269),a=p(457);function y(...d){const P=(0,b.yG)(d),D=(0,b._6)(d,1/0),T=d;return T.length?1===T.length?(0,i.Xf)(T[0]):(0,e.J)(D)((0,a.D)(T,P)):u.E}},9646:(He,j,p)=>{"use strict";p.d(j,{of:()=>u});var e=p(3269),i=p(457);function u(...b){const a=(0,e.yG)(b);return(0,i.D)(b,a)}},2843:(He,j,p)=>{"use strict";p.d(j,{_:()=>u});var e=p(8306),i=p(576);function u(b,a){const y=(0,i.m)(b)?b:()=>b,d=P=>P.error(y());return new e.y(a?P=>a.schedule(d,0,P):d)}},2805:(He,j,p)=>{"use strict";p.d(j,{H:()=>a});var e=p(8306),i=p(4986),u=p(3532),b=p(1165);function a(y=0,d,P=i.P){let D=-1;return null!=d&&((0,u.K)(d)?P=d:D=d),new e.y(T=>{let M=(0,b.q)(y)?+y-P.now():y;M<0&&(M=0);let A=0;return P.schedule(function(){T.closed||(T.next(A++),0<=D?this.schedule(void 0,D):T.complete())},M)})}},5403:(He,j,p)=>{"use strict";p.d(j,{Q:()=>u,x:()=>i});var e=p(930);function i(b,a,y,d,P){return new u(b,a,y,d,P)}class u extends e.Lv{constructor(a,y,d,P,D,T){super(a),this.onFinalize=D,this.shouldUnsubscribe=T,this._next=y?function(M){try{y(M)}catch(A){a.error(A)}}:super._next,this._error=P?function(M){try{P(M)}catch(A){a.error(A)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(M){a.error(M)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(He,j,p)=>{"use strict";p.d(j,{e:()=>d});var e=p(4986),i=p(4482),u=p(8421),b=p(5403),y=p(2805);function d(P,D=e.z){return function a(P){return(0,i.e)((D,T)=>{let M=!1,A=null,E=null,k=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,M){M=!1;const U=A;A=null,T.next(U)}k&&T.complete()},z=()=>{E=null,k&&T.complete()};D.subscribe((0,b.x)(T,U=>{M=!0,A=U,E||(0,u.Xf)(P(U)).subscribe(E=(0,b.x)(T,w,z))},()=>{k=!0,(!M||!E||E.closed)&&T.complete()}))})}(()=>(0,y.H)(P,D))}},262:(He,j,p)=>{"use strict";p.d(j,{K:()=>b});var e=p(8421),i=p(5403),u=p(4482);function b(a){return(0,u.e)((y,d)=>{let T,P=null,D=!1;P=y.subscribe((0,i.x)(d,void 0,void 0,M=>{T=(0,e.Xf)(a(M,b(a)(y))),P?(P.unsubscribe(),P=null,T.subscribe(d)):D=!0})),D&&(P.unsubscribe(),P=null,T.subscribe(d))})}},4351:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(5577),i=p(576);function u(b,a){return(0,i.m)(a)?(0,e.z)(b,a,1):(0,e.z)(b,1)}},8372:(He,j,p)=>{"use strict";p.d(j,{b:()=>b});var e=p(4986),i=p(4482),u=p(5403);function b(a,y=e.z){return(0,i.e)((d,P)=>{let D=null,T=null,M=null;const A=()=>{if(D){D.unsubscribe(),D=null;const k=T;T=null,P.next(k)}};function E(){const k=M+a,w=y.now();if(w{T=k,M=y.now(),D||(D=y.schedule(E,a),P.add(D))},()=>{A(),P.complete()},void 0,()=>{T=D=null}))})}},6590:(He,j,p)=>{"use strict";p.d(j,{d:()=>u});var e=p(4482),i=p(5403);function u(b){return(0,e.e)((a,y)=>{let d=!1;a.subscribe((0,i.x)(y,P=>{d=!0,y.next(P)},()=>{d||y.next(b),y.complete()}))})}},4086:(He,j,p)=>{"use strict";p.d(j,{g:()=>D});var e=p(4986),i=p(7272),u=p(5698),b=p(8502),a=p(9718),y=p(5577);function d(T,M){return M?A=>(0,i.z)(M.pipe((0,u.q)(1),(0,b.l)()),A.pipe(d(T))):(0,y.z)((A,E)=>T(A,E).pipe((0,u.q)(1),(0,a.h)(A)))}var P=p(2805);function D(T,M=e.z){const A=(0,P.H)(T,M);return d(()=>A)}},1884:(He,j,p)=>{"use strict";p.d(j,{x:()=>b});var e=p(4671),i=p(4482),u=p(5403);function b(y,d=e.y){return y=null!=y?y:a,(0,i.e)((P,D)=>{let T,M=!0;P.subscribe((0,u.x)(D,A=>{const E=d(A);(M||!y(T,E))&&(M=!1,T=E,D.next(A))}))})}function a(y,d){return y===d}},9300:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,d)=>{let P=0;y.subscribe((0,i.x)(d,D=>b.call(a,D,P++)&&d.next(D)))})}},8746:(He,j,p)=>{"use strict";p.d(j,{x:()=>i});var e=p(4482);function i(u){return(0,e.e)((b,a)=>{try{b.subscribe(a)}finally{a.add(u)}})}},590:(He,j,p)=>{"use strict";p.d(j,{P:()=>d});var e=p(6805),i=p(9300),u=p(5698),b=p(6590),a=p(8068),y=p(4671);function d(P,D){const T=arguments.length>=2;return M=>M.pipe(P?(0,i.h)((A,E)=>P(A,E,M)):y.y,(0,u.q)(1),T?(0,b.d)(D):(0,a.T)(()=>new e.K))}},8502:(He,j,p)=>{"use strict";p.d(j,{l:()=>b});var e=p(4482),i=p(5403),u=p(5032);function b(){return(0,e.e)((a,y)=>{a.subscribe((0,i.x)(y,u.Z))})}},4004:(He,j,p)=>{"use strict";p.d(j,{U:()=>u});var e=p(4482),i=p(5403);function u(b,a){return(0,e.e)((y,d)=>{let P=0;y.subscribe((0,i.x)(d,D=>{d.next(b.call(a,D,P++))}))})}},9718:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});var e=p(4004);function i(u){return(0,e.U)(()=>u)}},8189:(He,j,p)=>{"use strict";p.d(j,{J:()=>u});var e=p(5577),i=p(4671);function u(b=1/0){return(0,e.z)(i.y,b)}},5577:(He,j,p)=>{"use strict";p.d(j,{z:()=>P});var e=p(4004),i=p(8421),u=p(4482),b=p(9672),a=p(5403),d=p(576);function P(D,T,M=1/0){return(0,d.m)(T)?P((A,E)=>(0,e.U)((k,w)=>T(A,k,E,w))((0,i.Xf)(D(A,E))),M):("number"==typeof T&&(M=T),(0,u.e)((A,E)=>function y(D,T,M,A,E,k,w,z){const U=[];let W=0,ne=0,Q=!1;const le=()=>{Q&&!U.length&&!W&&T.complete()},q=se=>W{k&&T.next(se),W++;let J=!1;(0,i.Xf)(M(se,ne++)).subscribe((0,a.x)(T,me=>{null==E||E(me),k?q(me):T.next(me)},()=>{J=!0},void 0,()=>{if(J)try{for(W--;U.length&&Wie(me)):ie(me)}le()}catch(me){T.error(me)}}))};return D.subscribe((0,a.x)(T,q,()=>{Q=!0,le()})),()=>{null==z||z()}}(A,E,D,M)))}},5363:(He,j,p)=>{"use strict";p.d(j,{Q:()=>b});var e=p(9672),i=p(4482),u=p(5403);function b(a,y=0){return(0,i.e)((d,P)=>{d.subscribe((0,u.x)(P,D=>(0,e.f)(P,a,()=>P.next(D),y),()=>(0,e.f)(P,a,()=>P.complete(),y),D=>(0,e.f)(P,a,()=>P.error(D),y)))})}},5026:(He,j,p)=>{"use strict";p.d(j,{R:()=>b});var e=p(4482),i=p(5403);function u(a,y,d,P,D){return(T,M)=>{let A=d,E=y,k=0;T.subscribe((0,i.x)(M,w=>{const z=k++;E=A?a(E,w,z):(A=!0,w),P&&M.next(E)},D&&(()=>{A&&M.next(E),M.complete()})))}}function b(a,y){return(0,e.e)(u(a,y,arguments.length>=2,!0))}},3099:(He,j,p)=>{"use strict";p.d(j,{B:()=>a});var e=p(8421),i=p(7579),u=p(930),b=p(4482);function a(d={}){const{connector:P=(()=>new i.x),resetOnError:D=!0,resetOnComplete:T=!0,resetOnRefCountZero:M=!0}=d;return A=>{let E,k,w,z=0,U=!1,W=!1;const ne=()=>{null==k||k.unsubscribe(),k=void 0},Q=()=>{ne(),E=w=void 0,U=W=!1},le=()=>{const q=E;Q(),null==q||q.unsubscribe()};return(0,b.e)((q,ie)=>{z++,!W&&!U&&ne();const se=w=null!=w?w:P();ie.add(()=>{z--,0===z&&!W&&!U&&(k=y(le,M))}),se.subscribe(ie),!E&&z>0&&(E=new u.Hp({next:J=>se.next(J),error:J=>{W=!0,ne(),k=y(Q,D,J),se.error(J)},complete:()=>{U=!0,ne(),k=y(Q,T),se.complete()}}),(0,e.Xf)(q).subscribe(E))})(A)}}function y(d,P,...D){if(!0===P)return void d();if(!1===P)return;const T=new u.Hp({next:()=>{T.unsubscribe(),d()}});return P(...D).subscribe(T)}},5684:(He,j,p)=>{"use strict";p.d(j,{T:()=>i});var e=p(9300);function i(u){return(0,e.h)((b,a)=>u<=a)}},8675:(He,j,p)=>{"use strict";p.d(j,{O:()=>b});var e=p(7272),i=p(3269),u=p(4482);function b(...a){const y=(0,i.yG)(a);return(0,u.e)((d,P)=>{(y?(0,e.z)(a,d,y):(0,e.z)(a,d)).subscribe(P)})}},3900:(He,j,p)=>{"use strict";p.d(j,{w:()=>b});var e=p(8421),i=p(4482),u=p(5403);function b(a,y){return(0,i.e)((d,P)=>{let D=null,T=0,M=!1;const A=()=>M&&!D&&P.complete();d.subscribe((0,u.x)(P,E=>{null==D||D.unsubscribe();let k=0;const w=T++;(0,e.Xf)(a(E,w)).subscribe(D=(0,u.x)(P,z=>P.next(y?y(E,z,w,k++):z),()=>{D=null,A()}))},()=>{M=!0,A()}))})}},5698:(He,j,p)=>{"use strict";p.d(j,{q:()=>b});var e=p(515),i=p(4482),u=p(5403);function b(a){return a<=0?()=>e.E:(0,i.e)((y,d)=>{let P=0;y.subscribe((0,u.x)(d,D=>{++P<=a&&(d.next(D),a<=P&&d.complete())}))})}},2722:(He,j,p)=>{"use strict";p.d(j,{R:()=>a});var e=p(4482),i=p(5403),u=p(8421),b=p(5032);function a(y){return(0,e.e)((d,P)=>{(0,u.Xf)(y).subscribe((0,i.x)(P,()=>P.complete(),b.Z)),!P.closed&&d.subscribe(P)})}},8505:(He,j,p)=>{"use strict";p.d(j,{b:()=>a});var e=p(576),i=p(4482),u=p(5403),b=p(4671);function a(y,d,P){const D=(0,e.m)(y)||d||P?{next:y,error:d,complete:P}:y;return D?(0,i.e)((T,M)=>{var A;null===(A=D.subscribe)||void 0===A||A.call(D);let E=!0;T.subscribe((0,u.x)(M,k=>{var w;null===(w=D.next)||void 0===w||w.call(D,k),M.next(k)},()=>{var k;E=!1,null===(k=D.complete)||void 0===k||k.call(D),M.complete()},k=>{var w;E=!1,null===(w=D.error)||void 0===w||w.call(D,k),M.error(k)},()=>{var k,w;E&&(null===(k=D.unsubscribe)||void 0===k||k.call(D)),null===(w=D.finalize)||void 0===w||w.call(D)}))}):b.y}},8068:(He,j,p)=>{"use strict";p.d(j,{T:()=>b});var e=p(6805),i=p(4482),u=p(5403);function b(y=a){return(0,i.e)((d,P)=>{let D=!1;d.subscribe((0,u.x)(P,T=>{D=!0,P.next(T)},()=>D?P.complete():P.error(y())))})}function a(){return new e.K}},7414:(He,j,p)=>{"use strict";p.d(j,{V:()=>D});var e=p(4986),i=p(1165),u=p(4482),b=p(8421),a=p(3888),y=p(5403),d=p(9672);const P=(0,a.d)(M=>function(E=null){M(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function D(M,A){const{first:E,each:k,with:w=T,scheduler:z=(null!=A?A:e.z),meta:U=null}=(0,i.q)(M)?{first:M}:"number"==typeof M?{each:M}:M;if(null==E&&null==k)throw new TypeError("No timeout provided.");return(0,u.e)((W,ne)=>{let Q,le,q=null,ie=0;const se=J=>{le=(0,d.f)(ne,z,()=>{try{Q.unsubscribe(),(0,b.Xf)(w({meta:U,lastValue:q,seen:ie})).subscribe(ne)}catch(me){ne.error(me)}},J)};Q=W.subscribe((0,y.x)(ne,J=>{null==le||le.unsubscribe(),ie++,ne.next(q=J),k>0&&se(k)},void 0,void 0,()=>{(null==le?void 0:le.closed)||null==le||le.unsubscribe(),q=null})),!ie&&se(null!=E?"number"==typeof E?E:+E-z.now():k)})}function T(M){throw new P(M)}},1365:(He,j,p)=>{"use strict";p.d(j,{M:()=>d});var e=p(4482),i=p(5403),u=p(8421),b=p(4671),a=p(5032),y=p(3269);function d(...P){const D=(0,y.jO)(P);return(0,e.e)((T,M)=>{const A=P.length,E=new Array(A);let k=P.map(()=>!1),w=!1;for(let z=0;z{E[z]=U,!w&&!k[z]&&(k[z]=!0,(w=k.every(b.y))&&(k=null))},a.Z));T.subscribe((0,i.x)(M,z=>{if(w){const U=[z,...E];M.next(D?D(...U):U)}}))})}},4408:(He,j,p)=>{"use strict";p.d(j,{o:()=>a});var e=p(727);class i extends e.w0{constructor(d,P){super()}schedule(d,P=0){return this}}const u={setInterval(y,d,...P){const{delegate:D}=u;return(null==D?void 0:D.setInterval)?D.setInterval(y,d,...P):setInterval(y,d,...P)},clearInterval(y){const{delegate:d}=u;return((null==d?void 0:d.clearInterval)||clearInterval)(y)},delegate:void 0};var b=p(8737);class a extends i{constructor(d,P){super(d,P),this.scheduler=d,this.work=P,this.pending=!1}schedule(d,P=0){if(this.closed)return this;this.state=d;const D=this.id,T=this.scheduler;return null!=D&&(this.id=this.recycleAsyncId(T,D,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(T,this.id,P),this}requestAsyncId(d,P,D=0){return u.setInterval(d.flush.bind(d,this),D)}recycleAsyncId(d,P,D=0){if(null!=D&&this.delay===D&&!1===this.pending)return P;u.clearInterval(P)}execute(d,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const D=this._execute(d,P);if(D)return D;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,P){let T,D=!1;try{this.work(d)}catch(M){D=!0,T=M||new Error("Scheduled action threw falsy error")}if(D)return this.unsubscribe(),T}unsubscribe(){if(!this.closed){const{id:d,scheduler:P}=this,{actions:D}=P;this.work=this.state=this.scheduler=null,this.pending=!1,(0,b.P)(D,this),null!=d&&(this.id=this.recycleAsyncId(P,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(He,j,p)=>{"use strict";p.d(j,{v:()=>u});var e=p(6063);class i{constructor(a,y=i.now){this.schedulerActionCtor=a,this.now=y}schedule(a,y=0,d){return new this.schedulerActionCtor(this,a).schedule(d,y)}}i.now=e.l.now;class u extends i{constructor(a,y=i.now){super(a,y),this.actions=[],this._active=!1,this._scheduled=void 0}flush(a){const{actions:y}=this;if(this._active)return void y.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=y.shift());if(this._active=!1,d){for(;a=y.shift();)a.unsubscribe();throw d}}}},3101:(He,j,p)=>{"use strict";p.d(j,{E:()=>k});var e=p(4408);let u,i=1;const b={};function a(z){return z in b&&(delete b[z],!0)}const y={setImmediate(z){const U=i++;return b[U]=!0,u||(u=Promise.resolve()),u.then(()=>a(U)&&z()),U},clearImmediate(z){a(z)}},{setImmediate:P,clearImmediate:D}=y,T={setImmediate(...z){const{delegate:U}=T;return((null==U?void 0:U.setImmediate)||P)(...z)},clearImmediate(z){const{delegate:U}=T;return((null==U?void 0:U.clearImmediate)||D)(z)},delegate:void 0};var A=p(7565);const k=new class E extends A.v{flush(U){this._active=!0;const W=this._scheduled;this._scheduled=void 0;const{actions:ne}=this;let Q;U=U||ne.shift();do{if(Q=U.execute(U.state,U.delay))break}while((U=ne[0])&&U.id===W&&ne.shift());if(this._active=!1,Q){for(;(U=ne[0])&&U.id===W&&ne.shift();)U.unsubscribe();throw Q}}}(class M extends e.o{constructor(U,W){super(U,W),this.scheduler=U,this.work=W}requestAsyncId(U,W,ne=0){return null!==ne&&ne>0?super.requestAsyncId(U,W,ne):(U.actions.push(this),U._scheduled||(U._scheduled=T.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,W,ne=0){if(null!=ne&&ne>0||null==ne&&this.delay>0)return super.recycleAsyncId(U,W,ne);U.actions.some(Q=>Q.id===W)||(T.clearImmediate(W),U._scheduled=void 0)}})},4986:(He,j,p)=>{"use strict";p.d(j,{P:()=>b,z:()=>u});var e=p(4408);const u=new(p(7565).v)(e.o),b=u},6063:(He,j,p)=>{"use strict";p.d(j,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(He,j,p)=>{"use strict";p.d(j,{N:()=>a});var e=p(4408),u=p(7565);const a=new class b extends u.v{}(class i extends e.o{constructor(P,D){super(P,D),this.scheduler=P,this.work=D}schedule(P,D=0){return D>0?super.schedule(P,D):(this.delay=D,this.state=P,this.scheduler.flush(this),this)}execute(P,D){return D>0||this.closed?super.execute(P,D):this._execute(P,D)}requestAsyncId(P,D,T=0){return null!=T&&T>0||null==T&&this.delay>0?super.requestAsyncId(P,D,T):P.flush(this)}})},3410:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e={setTimeout(i,u,...b){const{delegate:a}=e;return(null==a?void 0:a.setTimeout)?a.setTimeout(i,u,...b):setTimeout(i,u,...b)},clearTimeout(i){const{delegate:u}=e;return((null==u?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0}},2202:(He,j,p)=>{"use strict";p.d(j,{h:()=>i});const i=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(He,j,p)=>{"use strict";p.d(j,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});const i=(0,p(3888).d)(u=>function(){u(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(He,j,p)=>{"use strict";p.d(j,{_6:()=>y,jO:()=>b,yG:()=>a});var e=p(576),i=p(3532);function u(d){return d[d.length-1]}function b(d){return(0,e.m)(u(d))?d.pop():void 0}function a(d){return(0,i.K)(u(d))?d.pop():void 0}function y(d,P){return"number"==typeof u(d)?d.pop():P}},4742:(He,j,p)=>{"use strict";p.d(j,{D:()=>a});const{isArray:e}=Array,{getPrototypeOf:i,prototype:u,keys:b}=Object;function a(d){if(1===d.length){const P=d[0];if(e(P))return{args:P,keys:null};if(function y(d){return d&&"object"==typeof d&&i(d)===u}(P)){const D=b(P);return{args:D.map(T=>P[T]),keys:D}}}return{args:d,keys:null}}},8737:(He,j,p)=>{"use strict";function e(i,u){if(i){const b=i.indexOf(u);0<=b&&i.splice(b,1)}}p.d(j,{P:()=>e})},3888:(He,j,p)=>{"use strict";function e(i){const b=i(a=>{Error.call(a),a.stack=(new Error).stack});return b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b}p.d(j,{d:()=>e})},1810:(He,j,p)=>{"use strict";function e(i,u){return i.reduce((b,a,y)=>(b[a]=u[y],b),{})}p.d(j,{n:()=>e})},2806:(He,j,p)=>{"use strict";p.d(j,{O:()=>b,x:()=>u});var e=p(2416);let i=null;function u(a){if(e.v.useDeprecatedSynchronousErrorHandling){const y=!i;if(y&&(i={errorThrown:!1,error:null}),a(),y){const{errorThrown:d,error:P}=i;if(i=null,d)throw P}}else a()}function b(a){e.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=a)}},9672:(He,j,p)=>{"use strict";function e(i,u,b,a=0,y=!1){const d=u.schedule(function(){b(),y?i.add(this.schedule(null,a)):this.unsubscribe()},a);if(i.add(d),!y)return d}p.d(j,{f:()=>e})},4671:(He,j,p)=>{"use strict";function e(i){return i}p.d(j,{y:()=>e})},1144:(He,j,p)=>{"use strict";p.d(j,{z:()=>e});const e=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(He,j,p)=>{"use strict";p.d(j,{D:()=>i});var e=p(576);function i(u){return Symbol.asyncIterator&&(0,e.m)(null==u?void 0:u[Symbol.asyncIterator])}},1165:(He,j,p)=>{"use strict";function e(i){return i instanceof Date&&!isNaN(i)}p.d(j,{q:()=>e})},576:(He,j,p)=>{"use strict";function e(i){return"function"==typeof i}p.d(j,{m:()=>e})},3670:(He,j,p)=>{"use strict";p.d(j,{c:()=>u});var e=p(8822),i=p(576);function u(b){return(0,i.m)(b[e.L])}},6495:(He,j,p)=>{"use strict";p.d(j,{T:()=>u});var e=p(2202),i=p(576);function u(b){return(0,i.m)(null==b?void 0:b[e.h])}},5191:(He,j,p)=>{"use strict";p.d(j,{b:()=>u});var e=p(8306),i=p(576);function u(b){return!!b&&(b instanceof e.y||(0,i.m)(b.lift)&&(0,i.m)(b.subscribe))}},8239:(He,j,p)=>{"use strict";p.d(j,{t:()=>i});var e=p(576);function i(u){return(0,e.m)(null==u?void 0:u.then)}},3260:(He,j,p)=>{"use strict";p.d(j,{L:()=>b,Q:()=>u});var e=p(655),i=p(576);function u(a){return(0,e.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:P,done:D}=yield(0,e.qq)(d.read());if(D)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(P)}}finally{d.releaseLock()}})}function b(a){return(0,i.m)(null==a?void 0:a.getReader)}},3532:(He,j,p)=>{"use strict";p.d(j,{K:()=>i});var e=p(576);function i(u){return u&&(0,e.m)(u.schedule)}},4482:(He,j,p)=>{"use strict";p.d(j,{A:()=>i,e:()=>u});var e=p(576);function i(b){return(0,e.m)(null==b?void 0:b.lift)}function u(b){return a=>{if(i(a))return a.lift(function(y){try{return b(y,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(He,j,p)=>{"use strict";p.d(j,{Z:()=>b});var e=p(4004);const{isArray:i}=Array;function b(a){return(0,e.U)(y=>function u(a,y){return i(y)?a(...y):a(y)}(a,y))}},5032:(He,j,p)=>{"use strict";function e(){}p.d(j,{Z:()=>e})},7849:(He,j,p)=>{"use strict";p.d(j,{h:()=>u});var e=p(2416),i=p(3410);function u(b){i.z.setTimeout(()=>{const{onUnhandledError:a}=e.v;if(!a)throw b;a(b)})}},4532:(He,j,p)=>{"use strict";function e(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(j,{z:()=>e})},3502:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2038:(He,j,p)=>{"use strict";var b,e=p(3172),i=e.Buffer,u={};for(b in e)!e.hasOwnProperty(b)||"SlowBuffer"===b||"Buffer"===b||(u[b]=e[b]);var a=u.Buffer={};for(b in i)!i.hasOwnProperty(b)||"allocUnsafe"===b||"allocUnsafeSlow"===b||(a[b]=i[b]);if(u.Buffer.prototype=i.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(y,d,P){if("number"==typeof y)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof y);if(y&&void 0===y.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);return i(y,d,P)}),a.alloc||(a.alloc=function(y,d,P){if("number"!=typeof y)throw new TypeError('The "size" argument must be of type number. Received type '+typeof y);if(y<0||y>=2*(1<<30))throw new RangeError('The value "'+y+'" is invalid for option "size"');var D=i(y);return d&&0!==d.length?"string"==typeof P?D.fill(d,P):D.fill(d):D.fill(0),D}),!u.kStringMaxLength)try{u.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(y){}u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),He.exports=u},6692:(He,j,p)=>{var e=p(3502).Buffer;function i(u,b){this._block=e.alloc(u),this._finalSize=b,this._blockSize=u,this._len=0}i.prototype.update=function(u,b){"string"==typeof u&&(u=e.from(u,b=b||"utf8"));for(var a=this._block,y=this._blockSize,d=u.length,P=this._len,D=0;D=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var y=(4294967295&a)>>>0;this._block.writeUInt32BE((a-y)/4294967296,this._blockSize-8),this._block.writeUInt32BE(y,this._blockSize-4)}this._update(this._block);var P=this._hash();return u?P.toString(u):P},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},He.exports=i},5244:(He,j,p)=>{var e=He.exports=function(u){u=u.toLowerCase();var b=e[u];if(!b)throw new Error(u+" is not supported (we accept pull requests)");return new b};e.sha=p(8932),e.sha1=p(7736),e.sha224=p(5044),e.sha256=p(5014),e.sha384=p(6540),e.sha512=p(117)},8932:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(T){return T<<5|T>>>27}function P(T){return T<<30|T>>>2}function D(T,M,A,E){return 0===T?M&A|~M&E:2===T?M&A|M&E|A&E:M^A^E}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(T){for(var M=this._w,A=0|this._a,E=0|this._b,k=0|this._c,w=0|this._d,z=0|this._e,U=0;U<16;++U)M[U]=T.readInt32BE(4*U);for(;U<80;++U)M[U]=M[U-3]^M[U-8]^M[U-14]^M[U-16];for(var W=0;W<80;++W){var ne=~~(W/20),Q=d(A)+D(ne,E,k,w)+z+M[W]+b[ne]|0;z=w,w=k,k=P(E),E=A,A=Q}this._a=A+this._a|0,this._b=E+this._b|0,this._c=k+this._c|0,this._d=w+this._d|0,this._e=z+this._e|0},y.prototype._hash=function(){var T=u.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},He.exports=y},7736:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(M){return M<<1|M>>>31}function P(M){return M<<5|M>>>27}function D(M){return M<<30|M>>>2}function T(M,A,E,k){return 0===M?A&E|~A&k:2===M?A&E|A&k|E&k:A^E^k}e(y,i),y.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},y.prototype._update=function(M){for(var A=this._w,E=0|this._a,k=0|this._b,w=0|this._c,z=0|this._d,U=0|this._e,W=0;W<16;++W)A[W]=M.readInt32BE(4*W);for(;W<80;++W)A[W]=d(A[W-3]^A[W-8]^A[W-14]^A[W-16]);for(var ne=0;ne<80;++ne){var Q=~~(ne/20),le=P(E)+T(Q,k,w,z)+U+A[ne]+b[Q]|0;U=z,z=w,w=D(k),k=E,E=le}this._a=E+this._a|0,this._b=k+this._b|0,this._c=w+this._c|0,this._d=z+this._d|0,this._e=U+this._e|0},y.prototype._hash=function(){var M=u.allocUnsafe(20);return M.writeInt32BE(0|this._a,0),M.writeInt32BE(0|this._b,4),M.writeInt32BE(0|this._c,8),M.writeInt32BE(0|this._d,12),M.writeInt32BE(0|this._e,16),M},He.exports=y},5044:(He,j,p)=>{var e=p(3894),i=p(5014),u=p(6692),b=p(3502).Buffer,a=new Array(64);function y(){this.init(),this._w=a,u.call(this,64,56)}e(y,i),y.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},y.prototype._hash=function(){var d=b.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},He.exports=y},5014:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function y(){this.init(),this._w=a,i.call(this,64,56)}function d(E,k,w){return w^E&(k^w)}function P(E,k,w){return E&k|w&(E|k)}function D(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function T(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function M(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(y,i),y.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},y.prototype._update=function(E){for(var k=this._w,w=0|this._a,z=0|this._b,U=0|this._c,W=0|this._d,ne=0|this._e,Q=0|this._f,le=0|this._g,q=0|this._h,ie=0;ie<16;++ie)k[ie]=E.readInt32BE(4*ie);for(;ie<64;++ie)k[ie]=A(k[ie-2])+k[ie-7]+M(k[ie-15])+k[ie-16]|0;for(var se=0;se<64;++se){var J=q+T(ne)+d(ne,Q,le)+b[se]+k[se]|0,me=D(w)+P(w,z,U)|0;q=le,le=Q,Q=ne,ne=W+J|0,W=U,U=z,z=w,w=J+me|0}this._a=w+this._a|0,this._b=z+this._b|0,this._c=U+this._c|0,this._d=W+this._d|0,this._e=ne+this._e|0,this._f=Q+this._f|0,this._g=le+this._g|0,this._h=q+this._h|0},y.prototype._hash=function(){var E=u.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},He.exports=y},6540:(He,j,p)=>{var e=p(3894),i=p(117),u=p(6692),b=p(3502).Buffer,a=new Array(160);function y(){this.init(),this._w=a,u.call(this,128,112)}e(y,i),y.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},y.prototype._hash=function(){var d=b.allocUnsafe(48);function P(D,T,M){d.writeInt32BE(D,M),d.writeInt32BE(T,M+4)}return P(this._ah,this._al,0),P(this._bh,this._bl,8),P(this._ch,this._cl,16),P(this._dh,this._dl,24),P(this._eh,this._el,32),P(this._fh,this._fl,40),d},He.exports=y},117:(He,j,p)=>{var e=p(3894),i=p(6692),u=p(3502).Buffer,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function y(){this.init(),this._w=a,i.call(this,128,112)}function d(z,U,W){return W^z&(U^W)}function P(z,U,W){return z&U|W&(z|U)}function D(z,U){return(z>>>28|U<<4)^(U>>>2|z<<30)^(U>>>7|z<<25)}function T(z,U){return(z>>>14|U<<18)^(z>>>18|U<<14)^(U>>>9|z<<23)}function M(z,U){return(z>>>1|U<<31)^(z>>>8|U<<24)^z>>>7}function A(z,U){return(z>>>1|U<<31)^(z>>>8|U<<24)^(z>>>7|U<<25)}function E(z,U){return(z>>>19|U<<13)^(U>>>29|z<<3)^z>>>6}function k(z,U){return(z>>>19|U<<13)^(U>>>29|z<<3)^(z>>>6|U<<26)}function w(z,U){return z>>>0>>0?1:0}e(y,i),y.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},y.prototype._update=function(z){for(var U=this._w,W=0|this._ah,ne=0|this._bh,Q=0|this._ch,le=0|this._dh,q=0|this._eh,ie=0|this._fh,se=0|this._gh,J=0|this._hh,me=0|this._al,x=0|this._bl,t=0|this._cl,r=0|this._dl,h=0|this._el,c=0|this._fl,C=0|this._gl,S=0|this._hl,I=0;I<32;I+=2)U[I]=z.readInt32BE(4*I),U[I+1]=z.readInt32BE(4*I+4);for(;I<160;I+=2){var _=U[I-30],n=U[I-30+1],g=M(_,n),V=A(n,_),R=E(_=U[I-4],n=U[I-4+1]),H=k(n,_),ye=U[I-32],ke=U[I-32+1],Ee=V+U[I-14+1]|0,te=g+U[I-14]+w(Ee,V)|0;te=(te=te+R+w(Ee=Ee+H|0,H)|0)+ye+w(Ee=Ee+ke|0,ke)|0,U[I]=te,U[I+1]=Ee}for(var ze=0;ze<160;ze+=2){te=U[ze],Ee=U[ze+1];var be=P(W,ne,Q),Z=P(me,x,t),Y=D(W,me),ot=D(me,W),Ie=T(q,h),Ae=T(h,q),ce=b[ze],Te=b[ze+1],xe=d(q,ie,se),G=d(h,c,C),ee=S+Ae|0,ue=J+Ie+w(ee,S)|0;ue=(ue=(ue=ue+xe+w(ee=ee+G|0,G)|0)+ce+w(ee=ee+Te|0,Te)|0)+te+w(ee=ee+Ee|0,Ee)|0;var ve=ot+Z|0,Le=Y+be+w(ve,ot)|0;J=se,S=C,se=ie,C=c,ie=q,c=h,q=le+ue+w(h=r+ee|0,r)|0,le=Q,r=t,Q=ne,t=x,ne=W,x=me,W=ue+Le+w(me=ee+ve|0,ee)|0}this._al=this._al+me|0,this._bl=this._bl+x|0,this._cl=this._cl+t|0,this._dl=this._dl+r|0,this._el=this._el+h|0,this._fl=this._fl+c|0,this._gl=this._gl+C|0,this._hl=this._hl+S|0,this._ah=this._ah+W+w(this._al,me)|0,this._bh=this._bh+ne+w(this._bl,x)|0,this._ch=this._ch+Q+w(this._cl,t)|0,this._dh=this._dh+le+w(this._dl,r)|0,this._eh=this._eh+q+w(this._el,h)|0,this._fh=this._fh+ie+w(this._fl,c)|0,this._gh=this._gh+se+w(this._gl,C)|0,this._hh=this._hh+J+w(this._hl,S)|0},y.prototype._hash=function(){var z=u.allocUnsafe(64);function U(W,ne,Q){z.writeInt32BE(W,Q),z.writeInt32BE(ne,Q+4)}return U(this._ah,this._al,0),U(this._bh,this._bl,8),U(this._ch,this._cl,16),U(this._dh,this._dl,24),U(this._eh,this._el,32),U(this._fh,this._fl,40),U(this._gh,this._gl,48),U(this._hh,this._hl,56),z},He.exports=y},8012:function(He,j,p){!function(e){"use strict";var i={};He.exports?(i.bytesToHex=p(6128).bytesToHex,i.convertString=p(5612),He.exports=P):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=P);var u=[];!function(){function D(E){for(var k=Math.sqrt(E),w=2;w<=k;w++)if(!(E%w))return!1;return!0}for(var M=2,A=0;A<64;)D(M)&&(u[A]=4294967296*((E=Math.pow(M,1/3))-(0|E))|0,A++),M++;var E}();var y=[],d=function(D,T,M){for(var A=D[0],E=D[1],k=D[2],w=D[3],z=D[4],U=D[5],W=D[6],ne=D[7],Q=0;Q<64;Q++){if(Q<16)y[Q]=0|T[M+Q];else{var le=y[Q-15],ie=y[Q-2];y[Q]=((le<<25|le>>>7)^(le<<14|le>>>18)^le>>>3)+y[Q-7]+((ie<<15|ie>>>17)^(ie<<13|ie>>>19)^ie>>>10)+y[Q-16]}var me=A&E^A&k^E&k,r=ne+((z<<26|z>>>6)^(z<<21|z>>>11)^(z<<7|z>>>25))+(z&U^~z&W)+u[Q]+y[Q];ne=W,W=U,U=z,z=w+r|0,w=k,k=E,E=A,A=r+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+me)|0}D[0]=D[0]+A|0,D[1]=D[1]+E|0,D[2]=D[2]+k|0,D[3]=D[3]+w|0,D[4]=D[4]+z|0,D[5]=D[5]+U|0,D[6]=D[6]+W|0,D[7]=D[7]+ne|0};function P(D,T){D.constructor===String&&(D=i.convertString.UTF8.stringToBytes(D));var M=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(D){for(var T=[],M=0,A=0;M>>5]|=D[M]<<24-A%32;return T}(D),E=8*D.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var k=0;k>>5]>>>24-M%32&255);return T}(M);return T&&T.asBytes?w:T&&T.asString?i.convertString.bytesToString(w):i.bytesToHex(w)}P.x2=function(D,T){return P(P(D,{asBytes:!0}),T)}}(this)},4315:(He,j,p)=>{"use strict";const e=Symbol.prototype.valueOf,i=p(2872);He.exports=function u(D,T){switch(i(D)){case"array":return D.slice();case"object":return Object.assign({},D);case"date":return new D.constructor(Number(D));case"map":return new Map(D);case"set":return new Set(D);case"buffer":return function d(D){const T=D.length,M=Buffer.allocUnsafe?Buffer.allocUnsafe(T):Buffer.from(T);return D.copy(M),M}(D);case"symbol":return function P(D){return e?Object(e.call(D)):{}}(D);case"arraybuffer":return function a(D){const T=new D.constructor(D.byteLength);return new Uint8Array(T).set(new Uint8Array(D)),T}(D);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function y(D,T){return new D.constructor(D.buffer,D.byteOffset,D.length)}(D);case"regexp":return function b(D){const T=void 0!==D.flags?D.flags:/\w+$/.exec(D)||void 0,M=new D.constructor(D.source,T);return M.lastIndex=D.lastIndex,M}(D);case"error":return Object.create(D);default:return D}}},295:(He,j,p)=>{He.exports=u;var e=p(9069).EventEmitter;function u(){e.call(this)}p(3894)(u,e),u.Readable=p(3154),u.Writable=p(520),u.Duplex=p(1339),u.Transform=p(6025),u.PassThrough=p(6071),u.finished=p(7542),u.pipeline=p(954),u.Stream=u,u.prototype.pipe=function(b,a){var y=this;function d(k){b.writable&&!1===b.write(k)&&y.pause&&y.pause()}function P(){y.readable&&y.resume&&y.resume()}y.on("data",d),b.on("drain",P),!b._isStdio&&(!a||!1!==a.end)&&(y.on("end",T),y.on("close",M));var D=!1;function T(){D||(D=!0,b.end())}function M(){D||(D=!0,"function"==typeof b.destroy&&b.destroy())}function A(k){if(E(),0===e.listenerCount(this,"error"))throw k}function E(){y.removeListener("data",d),b.removeListener("drain",P),y.removeListener("end",T),y.removeListener("close",M),y.removeListener("error",A),b.removeListener("error",A),y.removeListener("end",E),y.removeListener("close",E),b.removeListener("close",E)}return y.on("error",A),b.on("error",A),y.on("end",E),y.on("close",E),b.on("close",E),b.emit("pipe",y),b}},3054:(He,j,p)=>{"use strict";var e=p(858).Buffer,i=e.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(W){var ne;switch(this.encoding=function b(W){var ne=function u(W){if(!W)return"utf8";for(var ne;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(ne)return;W=(""+W).toLowerCase(),ne=!0}}(W);if("string"!=typeof ne&&(e.isEncoding===i||!i(W)))throw new Error("Unknown encoding: "+W);return ne||W}(W),this.encoding){case"utf16le":this.text=A,this.end=E,ne=4;break;case"utf8":this.fillLast=D,ne=4;break;case"base64":this.text=k,this.end=w,ne=3;break;default:return this.write=z,void(this.end=U)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ne)}function y(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function D(W){var ne=this.lastTotal-this.lastNeed,Q=function P(W,ne,Q){if(128!=(192&ne[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ne.length>1){if(128!=(192&ne[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ne.length>2&&128!=(192&ne[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==Q?Q:this.lastNeed<=W.length?(W.copy(this.lastChar,ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ne,0,W.length),void(this.lastNeed-=W.length))}function A(W,ne){if((W.length-ne)%2==0){var Q=W.toString("utf16le",ne);if(Q){var le=Q.charCodeAt(Q.length-1);if(le>=55296&&le<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],Q.slice(0,-1)}return Q}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ne,W.length-1)}function E(W){var ne=W&&W.length?this.write(W):"";return this.lastNeed?ne+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ne}function k(W,ne){var Q=(W.length-ne)%3;return 0===Q?W.toString("base64",ne):(this.lastNeed=3-Q,this.lastTotal=3,1===Q?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ne,W.length-Q))}function w(W){var ne=W&&W.length?this.write(W):"";return this.lastNeed?ne+this.lastChar.toString("base64",0,3-this.lastNeed):ne}function z(W){return W.toString(this.encoding)}function U(W){return W&&W.length?this.write(W):""}j.s=a,a.prototype.write=function(W){if(0===W.length)return"";var ne,Q;if(this.lastNeed){if(void 0===(ne=this.fillLast(W)))return"";Q=this.lastNeed,this.lastNeed=0}else Q=0;return Q=0?(q>0&&(W.lastNeed=q-1),q):--le=0?(q>0&&(W.lastNeed=q-2),q):--le=0?(q>0&&(2===q?q=0:W.lastNeed=q-3),q):0}(this,W,ne);if(!this.lastNeed)return W.toString("utf8",ne);this.lastTotal=Q;var le=W.length-(Q-this.lastNeed);return W.copy(this.lastChar,0,le),W.toString("utf8",ne,le)},a.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(He,j,p)=>{var e=p(3172),i=e.Buffer;function u(a,y){for(var d in a)y[d]=a[d]}function b(a,y,d){return i(a,y,d)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?He.exports=e:(u(e,j),j.Buffer=b),b.prototype=Object.create(i.prototype),u(i,b),b.from=function(a,y,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return i(a,y,d)},b.alloc=function(a,y,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var P=i(a);return void 0!==y?"string"==typeof d?P.fill(y,d):P.fill(y):P.fill(0),P},b.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return i(a)},b.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}},2167:(He,j,p)=>{var e=p(4606);j.encode=e.encode,j.decode=e.decode},4606:(He,j)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];j.encode=function(u){Buffer.isBuffer(u)||(u=new Buffer(u));for(var b=0,a=0,y=0,d=0,P=new Buffer(8*function i(u){var b=Math.floor(u.length/5);return u.length%5==0?b:b+1}(u));b3?(d=(d=D&255>>y)<<(y=(y+5)%8)|(b+1>8-y,b++):(d=D>>8-(y+5)&31,0==(y=(y+5)%8)&&b++),P[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(b=a;b>>(b=(b+5)%8),d++,y=255&a<<8-b)}return P.slice(0,d)}},4364:He=>{function p(e){try{if(!global.localStorage)return!1}catch(u){return!1}var i=global.localStorage[e];return null!=i&&"true"===String(i).toLowerCase()}He.exports=function j(e,i){if(p("noDeprecation"))return e;var u=!1;return function b(){if(!u){if(p("throwDeprecation"))throw new Error(i);p("traceDeprecation")?console.trace(i):console.warn(i),u=!0}return e.apply(this,arguments)}}},655:(He,j,p)=>{"use strict";function a(t,r,h,c){var I,C=arguments.length,S=C<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,h):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(t,r,h,c);else for(var _=t.length-1;_>=0;_--)(I=t[_])&&(S=(C<3?I(S):C>3?I(r,h,S):I(r,h))||S);return C>3&&S&&Object.defineProperty(r,h,S),S}function P(t,r,h,c){return new(h||(h=Promise))(function(S,I){function _(V){try{g(c.next(V))}catch(R){I(R)}}function n(V){try{g(c.throw(V))}catch(R){I(R)}}function g(V){V.done?S(V.value):function C(S){return S instanceof h?S:new h(function(I){I(S)})}(V.value).then(_,n)}g((c=c.apply(t,r||[])).next())})}function U(t){return this instanceof U?(this.v=t,this):new U(t)}function W(t,r,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C,c=h.apply(t,r||[]),S=[];return C={},I("next"),I("throw"),I("return"),C[Symbol.asyncIterator]=function(){return this},C;function I(H){c[H]&&(C[H]=function($){return new Promise(function(fe,ye){S.push([H,$,fe,ye])>1||_(H,$)})})}function _(H,$){try{!function n(H){H.value instanceof U?Promise.resolve(H.value.v).then(g,V):R(S[0][2],H)}(c[H]($))}catch(fe){R(S[0][3],fe)}}function g(H){_("next",H)}function V(H){_("throw",H)}function R(H,$){H($),S.shift(),S.length&&_(S[0][0],S[0][1])}}function Q(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function A(t){var r="function"==typeof Symbol&&Symbol.iterator,h=r&&t[r],c=0;if(h)return h.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),h={},c("next"),c("throw"),c("return"),h[Symbol.asyncIterator]=function(){return this},h);function c(S){h[S]=t[S]&&function(I){return new Promise(function(_,n){!function C(S,I,_,n){Promise.resolve(n).then(function(g){S({value:g,done:_})},I)}(_,n,(I=t[S](I)).done,I.value)})}}}p.d(j,{FC:()=>W,KL:()=>Q,gn:()=>a,mG:()=>P,qq:()=>U})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(He,j,p)=>{"use strict";p.d(j,{F4:()=>T,IO:()=>w,LC:()=>i,SB:()=>D,X$:()=>b,ZE:()=>ne,ZN:()=>W,_j:()=>e,eR:()=>M,jt:()=>a,k1:()=>Q,l3:()=>u,oB:()=>P,pV:()=>E,ru:()=>y,vP:()=>d});class e{}class i{}const u="*";function b(le,q){return{type:7,name:le,definitions:q,options:{}}}function a(le,q=null){return{type:4,styles:q,timings:le}}function y(le,q=null){return{type:3,steps:le,options:q}}function d(le,q=null){return{type:2,steps:le,options:q}}function P(le){return{type:6,styles:le,offset:null}}function D(le,q,ie){return{type:0,name:le,styles:q,options:ie}}function T(le){return{type:5,steps:le}}function M(le,q,ie=null){return{type:1,expr:le,animation:q,options:ie}}function E(le=null){return{type:9,options:le}}function w(le,q,ie=null){return{type:11,selector:le,animation:q,options:ie}}function U(le){Promise.resolve(null).then(le)}class W{constructor(q=0,ie=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=q+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._onStartFns.push(q)}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const ie="start"==q?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}class ne{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let ie=0,se=0,J=0;const me=this.players.length;0==me?U(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++ie==me&&this._onFinish()}),x.onDestroy(()=>{++se==me&&this._onDestroy()}),x.onStart(()=>{++J==me&&this._onStart()})}),this.totalTime=this.players.reduce((x,t)=>Math.max(x,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const ie=q*this.totalTime;this.players.forEach(se=>{const J=se.totalTime?Math.min(1,ie/se.totalTime):1;se.setPosition(J)})}getPosition(){const q=this.players.reduce((ie,se)=>null===ie||se.totalTime>ie.totalTime?se:ie,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const ie="start"==q?this._onStartFns:this._onDoneFns;ie.forEach(se=>se()),ie.length=0}}const Q="!"},5664:(He,j,p)=>{"use strict";p.d(j,{$s:()=>x,Em:()=>C,Kd:()=>hi,X6:()=>Te,ic:()=>I,kH:()=>kt,mK:()=>Z,qV:()=>be,qm:()=>ei,rt:()=>Zt,s1:()=>c,tE:()=>vt,yG:()=>xe});var e=p(9808),i=p(5e3),u=p(925),b=p(7579),a=p(727),y=p(1135),d=p(9646),P=p(1159),D=p(8505),T=p(8372),M=p(9300),A=p(4004),E=p(5698),k=p(5684),w=p(1884),z=p(2722),U=p(3191),W=p(7144);function q(Pe,De){return(Pe.getAttribute(De)||"").match(/\S+/g)||[]}const se="cdk-describedby-message",J="cdk-describedby-host";let me=0,x=(()=>{class Pe{constructor(oe,Me){this._platform=Me,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+me++,this._document=oe}describe(oe,Me,ut){if(!this._canBeDescribed(oe,Me))return;const ft=t(Me,ut);"string"!=typeof Me?(r(Me),this._messageRegistry.set(ft,{messageElement:Me,referenceCount:0})):this._messageRegistry.has(ft)||this._createMessageElement(Me,ut),this._isElementDescribedByMessage(oe,ft)||this._addMessageReference(oe,ft)}removeDescription(oe,Me,ut){var ft;if(!Me||!this._isElementNode(oe))return;const Rt=t(Me,ut);if(this._isElementDescribedByMessage(oe,Rt)&&this._removeMessageReference(oe,Rt),"string"==typeof Me){const et=this._messageRegistry.get(Rt);et&&0===et.referenceCount&&this._deleteMessageElement(Rt)}0===(null===(ft=this._messagesContainer)||void 0===ft?void 0:ft.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var oe;const Me=this._document.querySelectorAll(`[${J}="${this._id}"]`);for(let ut=0;ut0!=ut.indexOf(se));oe.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(oe,Me){const ut=this._messageRegistry.get(Me);(function Q(Pe,De,oe){const Me=q(Pe,De);Me.some(ut=>ut.trim()==oe.trim())||(Me.push(oe.trim()),Pe.setAttribute(De,Me.join(" ")))})(oe,"aria-describedby",ut.messageElement.id),oe.setAttribute(J,this._id),ut.referenceCount++}_removeMessageReference(oe,Me){const ut=this._messageRegistry.get(Me);ut.referenceCount--,function le(Pe,De,oe){const ut=q(Pe,De).filter(ft=>ft!=oe.trim());ut.length?Pe.setAttribute(De,ut.join(" ")):Pe.removeAttribute(De)}(oe,"aria-describedby",ut.messageElement.id),oe.removeAttribute(J)}_isElementDescribedByMessage(oe,Me){const ut=q(oe,"aria-describedby"),ft=this._messageRegistry.get(Me),Rt=ft&&ft.messageElement.id;return!!Rt&&-1!=ut.indexOf(Rt)}_canBeDescribed(oe,Me){if(!this._isElementNode(oe))return!1;if(Me&&"object"==typeof Me)return!0;const ut=null==Me?"":`${Me}`.trim(),ft=oe.getAttribute("aria-label");return!(!ut||ft&&ft.trim()===ut)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(e.K0),i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function t(Pe,De){return"string"==typeof Pe?`${De||""}/${Pe}`:Pe}function r(Pe){Pe.id||(Pe.id=`${se}-${me++}`)}class h{constructor(De){this._items=De,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new b.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=oe=>oe.disabled,this._pressedLetters=[],this.tabOut=new b.x,this.change=new b.x,De instanceof i.n_E&&De.changes.subscribe(oe=>{if(this._activeItem){const ut=oe.toArray().indexOf(this._activeItem);ut>-1&&ut!==this._activeItemIndex&&(this._activeItemIndex=ut)}})}skipPredicate(De){return this._skipPredicateFn=De,this}withWrap(De=!0){return this._wrap=De,this}withVerticalOrientation(De=!0){return this._vertical=De,this}withHorizontalOrientation(De){return this._horizontal=De,this}withAllowedModifierKeys(De){return this._allowedModifierKeys=De,this}withTypeAhead(De=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(oe=>this._pressedLetters.push(oe)),(0,T.b)(De),(0,M.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const Me=this._getItemsArray();for(let ut=1;ut!De[ft]||this._allowedModifierKeys.indexOf(ft)>-1);switch(oe){case P.Mf:return void this.tabOut.next();case P.JH:if(this._vertical&&ut){this.setNextItemActive();break}return;case P.LH:if(this._vertical&&ut){this.setPreviousItemActive();break}return;case P.SV:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.oh:if(this._horizontal&&ut){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.Sd:if(this._homeAndEnd&&ut){this.setFirstItemActive();break}return;case P.uR:if(this._homeAndEnd&&ut){this.setLastItemActive();break}return;default:return void((ut||(0,P.Vb)(De,"shiftKey"))&&(De.key&&1===De.key.length?this._letterKeyStream.next(De.key.toLocaleUpperCase()):(oe>=P.A&&oe<=P.Z||oe>=P.xE&&oe<=P.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],De.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(De){const oe=this._getItemsArray(),Me="number"==typeof De?De:oe.indexOf(De),ut=oe[Me];this._activeItem=null==ut?null:ut,this._activeItemIndex=Me}_setActiveItemByDelta(De){this._wrap?this._setActiveInWrapMode(De):this._setActiveInDefaultMode(De)}_setActiveInWrapMode(De){const oe=this._getItemsArray();for(let Me=1;Me<=oe.length;Me++){const ut=(this._activeItemIndex+De*Me+oe.length)%oe.length;if(!this._skipPredicateFn(oe[ut]))return void this.setActiveItem(ut)}}_setActiveInDefaultMode(De){this._setActiveItemByIndex(this._activeItemIndex+De,De)}_setActiveItemByIndex(De,oe){const Me=this._getItemsArray();if(Me[De]){for(;this._skipPredicateFn(Me[De]);)if(!Me[De+=oe])return;this.setActiveItem(De)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class c extends h{setActiveItem(De){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(De),this.activeItem&&this.activeItem.setActiveStyles()}}class C extends h{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(De){return this._origin=De,this}setActiveItem(De){super.setActiveItem(De),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Pe{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function n(Pe){return!!(Pe.offsetWidth||Pe.offsetHeight||"function"==typeof Pe.getClientRects&&Pe.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const Me=function _(Pe){try{return Pe.frameElement}catch(De){return null}}(function te(Pe){return Pe.ownerDocument&&Pe.ownerDocument.defaultView||window}(oe));if(Me&&(-1===ye(Me)||!this.isVisible(Me)))return!1;let ut=oe.nodeName.toLowerCase(),ft=ye(oe);return oe.hasAttribute("contenteditable")?-1!==ft:!("iframe"===ut||"object"===ut||this._platform.WEBKIT&&this._platform.IOS&&!function ke(Pe){let De=Pe.nodeName.toLowerCase(),oe="input"===De&&Pe.type;return"text"===oe||"password"===oe||"select"===De||"textarea"===De}(oe))&&("audio"===ut?!!oe.hasAttribute("controls")&&-1!==ft:"video"===ut?-1!==ft&&(null!==ft||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,Me){return function Ee(Pe){return!function V(Pe){return function H(Pe){return"input"==Pe.nodeName.toLowerCase()}(Pe)&&"hidden"==Pe.type}(Pe)&&(function g(Pe){let De=Pe.nodeName.toLowerCase();return"input"===De||"select"===De||"button"===De||"textarea"===De}(Pe)||function R(Pe){return function $(Pe){return"a"==Pe.nodeName.toLowerCase()}(Pe)&&Pe.hasAttribute("href")}(Pe)||Pe.hasAttribute("contenteditable")||fe(Pe))}(oe)&&!this.isDisabled(oe)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(oe))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();function fe(Pe){if(!Pe.hasAttribute("tabindex")||void 0===Pe.tabIndex)return!1;let De=Pe.getAttribute("tabindex");return!(!De||isNaN(parseInt(De,10)))}function ye(Pe){if(!fe(Pe))return null;const De=parseInt(Pe.getAttribute("tabindex")||"",10);return isNaN(De)?-1:De}class ze{constructor(De,oe,Me,ut,ft=!1){this._element=De,this._checker=oe,this._ngZone=Me,this._document=ut,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ft||this.attachAnchors()}get enabled(){return this._enabled}set enabled(De){this._enabled=De,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}destroy(){const De=this._startAnchor,oe=this._endAnchor;De&&(De.removeEventListener("focus",this.startAnchorListener),De.remove()),oe&&(oe.removeEventListener("focus",this.endAnchorListener),oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(De)))})}focusFirstTabbableElementWhenReady(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(De)))})}focusLastTabbableElementWhenReady(De){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(De)))})}_getRegionBoundary(De){const oe=this._element.querySelectorAll(`[cdk-focus-region-${De}], [cdkFocusRegion${De}], [cdk-focus-${De}]`);return"start"==De?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(De){const oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(oe){if(!this._checker.isFocusable(oe)){const Me=this._getFirstTabbableElement(oe);return null==Me||Me.focus(De),!!Me}return oe.focus(De),!0}return this.focusFirstTabbableElement(De)}focusFirstTabbableElement(De){const oe=this._getRegionBoundary("start");return oe&&oe.focus(De),!!oe}focusLastTabbableElement(De){const oe=this._getRegionBoundary("end");return oe&&oe.focus(De),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(De){if(this._checker.isFocusable(De)&&this._checker.isTabbable(De))return De;const oe=De.children;for(let Me=0;Me=0;Me--){const ut=oe[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[Me]):null;if(ut)return ut}return null}_createAnchor(){const De=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,De),De.classList.add("cdk-visually-hidden"),De.classList.add("cdk-focus-trap-anchor"),De.setAttribute("aria-hidden","true"),De}_toggleAnchorTabIndex(De,oe){De?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(De){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(De,this._startAnchor),this._toggleAnchorTabIndex(De,this._endAnchor))}_executeOnStable(De){this._ngZone.isStable?De():this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(De)}}let be=(()=>{class Pe{constructor(oe,Me,ut){this._checker=oe,this._ngZone=Me,this._document=ut}create(oe,Me=!1){return new ze(oe,this._checker,this._ngZone,this._document,Me)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(I),i.LFG(i.R0b),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Z=(()=>{class Pe{constructor(oe,Me,ut){this._elementRef=oe,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(oe){this.focusTrap.enabled=(0,U.Ig)(oe)}get autoCapture(){return this._autoCapture}set autoCapture(oe){this._autoCapture=(0,U.Ig)(oe)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(oe){const Me=oe.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,u.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.Y36(i.SBq),i.Y36(be),i.Y36(e.K0))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),Pe})();function Te(Pe){return 0===Pe.buttons||0===Pe.offsetX&&0===Pe.offsetY}function xe(Pe){const De=Pe.touches&&Pe.touches[0]||Pe.changedTouches&&Pe.changedTouches[0];return!(!De||-1!==De.identifier||null!=De.radiusX&&1!==De.radiusX||null!=De.radiusY&&1!==De.radiusY)}const G=new i.OlP("cdk-input-modality-detector-options"),ee={ignoreKeys:[P.zL,P.jx,P.b2,P.MW,P.JU]},ve=(0,u.i$)({passive:!0,capture:!0});let Le=(()=>{class Pe{constructor(oe,Me,ut,ft){this._platform=oe,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=Rt=>{var et,Re;(null===(Re=null===(et=this._options)||void 0===et?void 0:et.ignoreKeys)||void 0===Re?void 0:Re.some(qe=>qe===Rt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onMousedown=Rt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Rt)?"keyboard":"mouse"),this._mostRecentTarget=(0,u.sA)(Rt))},this._onTouchstart=Rt=>{xe(Rt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,u.sA)(Rt))},this._options=Object.assign(Object.assign({},ee),ft),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,w.x)()),oe.isBrowser&&Me.runOutsideAngular(()=>{ut.addEventListener("keydown",this._onKeydown,ve),ut.addEventListener("mousedown",this._onMousedown,ve),ut.addEventListener("touchstart",this._onTouchstart,ve)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ve),document.removeEventListener("mousedown",this._onMousedown,ve),document.removeEventListener("touchstart",this._onTouchstart,ve))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4),i.LFG(i.R0b),i.LFG(e.K0),i.LFG(G,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();const lt=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ht(){return null}}),Tt=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let hi=(()=>{class Pe{constructor(oe,Me,ut,ft){this._ngZone=Me,this._defaultOptions=ft,this._document=ut,this._liveElement=oe||this._createLiveElement()}announce(oe,...Me){const ut=this._defaultOptions;let ft,Rt;return 1===Me.length&&"number"==typeof Me[0]?Rt=Me[0]:[ft,Rt]=Me,this.clear(),clearTimeout(this._previousTimeout),ft||(ft=ut&&ut.politeness?ut.politeness:"polite"),null==Rt&&ut&&(Rt=ut.duration),this._liveElement.setAttribute("aria-live",ft),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(et=>this._currentResolve=et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=oe,"number"==typeof Rt&&(this._previousTimeout=setTimeout(()=>this.clear(),Rt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var oe,Me;clearTimeout(this._previousTimeout),null===(oe=this._liveElement)||void 0===oe||oe.remove(),this._liveElement=null,null===(Me=this._currentResolve)||void 0===Me||Me.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const oe="cdk-live-announcer-element",Me=this._document.getElementsByClassName(oe),ut=this._document.createElement("div");for(let ft=0;ft{class Pe{constructor(oe,Me,ut,ft,Rt){this._ngZone=oe,this._platform=Me,this._inputModalityDetector=ut,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new b.x,this._rootNodeFocusAndBlurListener=et=>{const Re=(0,u.sA)(et),qe="focus"===et.type?this._onFocus:this._onBlur;for(let Ze=Re;Ze;Ze=Ze.parentElement)qe.call(this,et,Ze)},this._document=ft,this._detectionMode=(null==Rt?void 0:Rt.detectionMode)||0}monitor(oe,Me=!1){const ut=(0,U.fI)(oe);if(!this._platform.isBrowser||1!==ut.nodeType)return(0,d.of)(null);const ft=(0,u.kV)(ut)||this._getDocument(),Rt=this._elementInfo.get(ut);if(Rt)return Me&&(Rt.checkChildren=!0),Rt.subject;const et={checkChildren:Me,subject:new b.x,rootNode:ft};return this._elementInfo.set(ut,et),this._registerGlobalListeners(et),et.subject}stopMonitoring(oe){const Me=(0,U.fI)(oe),ut=this._elementInfo.get(Me);ut&&(ut.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(ut))}focusVia(oe,Me,ut){const ft=(0,U.fI)(oe);ft===this._getDocument().activeElement?this._getClosestElementsInfo(ft).forEach(([et,Re])=>this._originChanged(et,Me,Re)):(this._setOrigin(Me),"function"==typeof ft.focus&&ft.focus(ut))}ngOnDestroy(){this._elementInfo.forEach((oe,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(oe){return 1===this._detectionMode||!!(null==oe?void 0:oe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(oe,Me){oe.classList.toggle("cdk-focused",!!Me),oe.classList.toggle("cdk-touch-focused","touch"===Me),oe.classList.toggle("cdk-keyboard-focused","keyboard"===Me),oe.classList.toggle("cdk-mouse-focused","mouse"===Me),oe.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(oe,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=oe,this._originFromTouchInteraction="touch"===oe&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(oe,Me){const ut=this._elementInfo.get(Me),ft=(0,u.sA)(oe);!ut||!ut.checkChildren&&Me!==ft||this._originChanged(Me,this._getFocusOrigin(ft),ut)}_onBlur(oe,Me){const ut=this._elementInfo.get(Me);!ut||ut.checkChildren&&oe.relatedTarget instanceof Node&&Me.contains(oe.relatedTarget)||(this._setClasses(Me),this._emitOrigin(ut.subject,null))}_emitOrigin(oe,Me){this._ngZone.run(()=>oe.next(Me))}_registerGlobalListeners(oe){if(!this._platform.isBrowser)return;const Me=oe.rootNode,ut=this._rootNodeFocusListenerCount.get(Me)||0;ut||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,di)}),this._rootNodeFocusListenerCount.set(Me,ut+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(ft=>{this._setOrigin(ft,!0)}))}_removeGlobalListeners(oe){const Me=oe.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const ut=this._rootNodeFocusListenerCount.get(Me);ut>1?this._rootNodeFocusListenerCount.set(Me,ut-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,di),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,di),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,Me,ut){this._setClasses(oe,Me),this._emitOrigin(ut.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(oe){const Me=[];return this._elementInfo.forEach((ut,ft)=>{(ft===oe||ut.checkChildren&&ft.contains(oe))&&Me.push([ft,ut])}),Me}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(i.R0b),i.LFG(u.t4),i.LFG(Le),i.LFG(e.K0,8),i.LFG(Gt,8))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),kt=(()=>{class Pe{constructor(oe,Me){this._elementRef=oe,this._focusMonitor=Me,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const oe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(oe,1===oe.nodeType&&oe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.Y36(i.SBq),i.Y36(vt))},Pe.\u0275dir=i.lG2({type:Pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Pe})();const gt="cdk-high-contrast-black-on-white",Qe="cdk-high-contrast-white-on-black",_t="cdk-high-contrast-active";let ei=(()=>{class Pe{constructor(oe,Me){this._platform=oe,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const oe=this._document.createElement("div");oe.style.backgroundColor="rgb(1,2,3)",oe.style.position="absolute",this._document.body.appendChild(oe);const Me=this._document.defaultView||window,ut=Me&&Me.getComputedStyle?Me.getComputedStyle(oe):null,ft=(ut&&ut.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),ft){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const oe=this._document.body.classList;oe.remove(_t),oe.remove(gt),oe.remove(Qe),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(oe.add(_t),oe.add(gt)):2===Me&&(oe.add(_t),oe.add(Qe))}}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(u.t4),i.LFG(e.K0))},Pe.\u0275prov=i.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Zt=(()=>{class Pe{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(i.LFG(ei))},Pe.\u0275mod=i.oAB({type:Pe}),Pe.\u0275inj=i.cJS({imports:[[W.Q8]]}),Pe})()},226:(He,j,p)=>{"use strict";p.d(j,{Is:()=>d,vT:()=>D});var e=p(5e3),i=p(9808);const u=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function b(){return(0,e.f3M)(i.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class T{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const k=A.documentElement?A.documentElement.dir:null;this.value=function y(T){const M=(null==T?void 0:T.toLowerCase())||"";return"auto"===M&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===M?"rtl":"ltr"}((A.body?A.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return T.\u0275fac=function(A){return new(A||T)(e.LFG(u,8))},T.\u0275prov=e.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({}),T})()},3191:(He,j,p)=>{"use strict";p.d(j,{Eq:()=>a,HM:()=>y,Ig:()=>i,du:()=>P,fI:()=>d,su:()=>u,t6:()=>b});var e=p(5e3);function i(D){return null!=D&&"false"!=`${D}`}function u(D,T=0){return b(D)?Number(D):T}function b(D){return!isNaN(parseFloat(D))&&!isNaN(Number(D))}function a(D){return Array.isArray(D)?D:[D]}function y(D){return null==D?"":"string"==typeof D?D:`${D}px`}function d(D){return D instanceof e.SBq?D.nativeElement:D}function P(D,T=/\s+/){const M=[];if(null!=D){const A=Array.isArray(D)?D:`${D}`.split(T);for(const E of A){const k=`${E}`.trim();k&&M.push(k)}}return M}},449:(He,j,p)=>{"use strict";p.d(j,{A8:()=>T,Ov:()=>P,Z9:()=>b,eX:()=>d,k:()=>M,o2:()=>u,yy:()=>y});var e=p(7579),i=p(5e3);class u{}function b(A){return A&&"function"==typeof A.connect}class y{applyChanges(E,k,w,z,U){E.forEachOperation((W,ne,Q)=>{let le,q;if(null==W.previousIndex){const ie=w(W,ne,Q);le=k.createEmbeddedView(ie.templateRef,ie.context,ie.index),q=1}else null==Q?(k.remove(ne),q=3):(le=k.get(ne),k.move(le,Q),q=2);U&&U({context:null==le?void 0:le.context,operation:q,record:W})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,k,w,z,U){E.forEachOperation((W,ne,Q)=>{let le,q;null==W.previousIndex?(le=this._insertView(()=>w(W,ne,Q),Q,k,z(W)),q=le?1:0):null==Q?(this._detachAndCacheView(ne,k),q=3):(le=this._moveView(ne,Q,k,z(W)),q=2),U&&U({context:null==le?void 0:le.context,operation:q,record:W})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,k,w,z){const U=this._insertViewFromCache(k,w);if(U)return void(U.context.$implicit=z);const W=E();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(E,k){const w=k.detach(E);this._maybeCacheView(w,k)}_moveView(E,k,w,z){const U=w.get(E);return w.move(U,k),U.context.$implicit=z,U}_maybeCacheView(E,k){if(this._viewCache.lengththis._markSelected(z)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}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(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let T=(()=>{class A{constructor(){this._listeners=[]}notify(k,w){for(let z of this._listeners)z(k,w)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(w=>k!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(k){return new(k||A)},A.\u0275prov=i.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const M=new i.OlP("_ViewRepeater")},1159:(He,j,p)=>{"use strict";p.d(j,{A:()=>R,JH:()=>Q,JU:()=>y,K5:()=>a,Ku:()=>E,LH:()=>W,L_:()=>A,MW:()=>hi,Mf:()=>u,SV:()=>ne,Sd:()=>z,VM:()=>k,Vb:()=>Nt,Z:()=>Tt,ZH:()=>i,aO:()=>I,b2:()=>Je,hY:()=>M,jx:()=>d,oh:()=>U,uR:()=>w,xE:()=>J,yY:()=>se,zL:()=>P});const i=8,u=9,a=13,y=16,d=17,P=18,M=27,A=32,E=33,k=34,w=35,z=36,U=37,W=38,ne=39,Q=40,se=46,J=48,I=57,R=65,Tt=90,hi=91,Je=224;function Nt(Kt,...pi){return pi.length?pi.some(Ri=>Kt[Ri]):Kt.altKey||Kt.shiftKey||Kt.ctrlKey||Kt.metaKey}},5113:(He,j,p)=>{"use strict";p.d(j,{Yg:()=>Q,u3:()=>q,xu:()=>k});var e=p(5e3),i=p(3191),u=p(7579),b=p(9841),a=p(7272),y=p(8306),d=p(5698),P=p(5684),D=p(8372),T=p(4004),M=p(8675),A=p(2722),E=p(925);let k=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})();const w=new Set;let z,U=(()=>{class ie{constructor(J){this._platform=J,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ne}matchMedia(J){return(this._platform.WEBKIT||this._platform.BLINK)&&function W(ie){if(!w.has(ie))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${ie} {body{ }}`,0),w.add(ie))}catch(se){console.error(se)}}(J),this._matchMedia(J)}}return ie.\u0275fac=function(J){return new(J||ie)(e.LFG(E.t4))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function ne(ie){return{matches:"all"===ie||""===ie,media:ie,addListener:()=>{},removeListener:()=>{}}}let Q=(()=>{class ie{constructor(J,me){this._mediaMatcher=J,this._zone=me,this._queries=new Map,this._destroySubject=new u.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(J){return le((0,i.Eq)(J)).some(x=>this._registerQuery(x).mql.matches)}observe(J){const x=le((0,i.Eq)(J)).map(r=>this._registerQuery(r).observable);let t=(0,b.a)(x);return t=(0,a.z)(t.pipe((0,d.q)(1)),t.pipe((0,P.T)(1),(0,D.b)(0))),t.pipe((0,T.U)(r=>{const h={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:C})=>{h.matches=h.matches||c,h.breakpoints[C]=c}),h}))}_registerQuery(J){if(this._queries.has(J))return this._queries.get(J);const me=this._mediaMatcher.matchMedia(J),t={observable:new y.y(r=>{const h=c=>this._zone.run(()=>r.next(c));return me.addListener(h),()=>{me.removeListener(h)}}).pipe((0,M.O)(me),(0,T.U)(({matches:r})=>({query:J,matches:r})),(0,A.R)(this._destroySubject)),mql:me};return this._queries.set(J,t),t}}return ie.\u0275fac=function(J){return new(J||ie)(e.LFG(U),e.LFG(e.R0b))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function le(ie){return ie.map(se=>se.split(",")).reduce((se,J)=>se.concat(J)).map(se=>se.trim())}const q={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(He,j,p)=>{"use strict";p.d(j,{Q8:()=>D,wD:()=>P});var e=p(3191),i=p(5e3),u=p(8306),b=p(7579),a=p(8372);let y=(()=>{class T{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return T.\u0275fac=function(A){return new(A||T)},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),d=(()=>{class T{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new u.y(k=>{const z=this._observeElement(E).subscribe(k);return()=>{z.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new b.x,k=this._mutationObserverFactory.create(w=>E.next(w));k&&k.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:k,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:k}=this._observedElements.get(A);E&&E.disconnect(),k.complete(),this._observedElements.delete(A)}}}return T.\u0275fac=function(A){return new(A||T)(i.LFG(y))},T.\u0275prov=i.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),P=(()=>{class T{constructor(A,E,k){this._contentObserver=A,this._elementRef=E,this._ngZone=k,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,a.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return T.\u0275fac=function(A){return new(A||T)(i.Y36(d),i.Y36(i.SBq),i.Y36(i.R0b))},T.\u0275dir=i.lG2({type:T,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),T})(),D=(()=>{class T{}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=i.oAB({type:T}),T.\u0275inj=i.cJS({providers:[y]}),T})()},9776:(He,j,p)=>{"use strict";p.d(j,{pI:()=>ot,xu:()=>Y,_G:()=>n,aV:()=>ze,X_:()=>me,Xj:()=>S,U8:()=>ce});var e=p(5303),i=p(9808),u=p(5e3),b=p(3191),a=p(925),y=p(226),d=p(7429),P=p(7579),D=p(727),T=p(6451),M=p(4482),A=p(5403),k=p(5698),w=p(2722),z=p(1159);const U=(0,a.Mq)();class W{constructor(G,ee){this._viewportRuler=G,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ee}attach(){}enable(){if(this._canBeEnabled()){const G=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=G.style.left||"",this._previousHTMLStyles.top=G.style.top||"",G.style.left=(0,b.HM)(-this._previousScrollPosition.left),G.style.top=(0,b.HM)(-this._previousScrollPosition.top),G.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const G=this._document.documentElement,ue=G.style,ve=this._document.body.style,Le=ue.scrollBehavior||"",lt=ve.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,G.classList.remove("cdk-global-scrollblock"),U&&(ue.scrollBehavior=ve.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),U&&(ue.scrollBehavior=Le,ve.scrollBehavior=lt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ee=this._document.body,ue=this._viewportRuler.getViewportSize();return ee.scrollHeight>ue.height||ee.scrollWidth>ue.width}}class Q{constructor(G,ee,ue,ve){this._scrollDispatcher=G,this._ngZone=ee,this._viewportRuler=ue,this._config=ve,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(G){this._overlayRef=G}enable(){if(this._scrollSubscription)return;const G=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=G.subscribe(()=>{const ee=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ee-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=G.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class le{enable(){}disable(){}attach(){}}function q(xe,G){return G.some(ee=>xe.bottomee.bottom||xe.rightee.right)}function ie(xe,G){return G.some(ee=>xe.topee.bottom||xe.leftee.right)}class se{constructor(G,ee,ue,ve){this._scrollDispatcher=G,this._viewportRuler=ee,this._ngZone=ue,this._config=ve,this._scrollSubscription=null}attach(G){this._overlayRef=G}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ee=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ue,height:ve}=this._viewportRuler.getViewportSize();q(ee,[{width:ue,height:ve,bottom:ve,right:ue,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let J=(()=>{class xe{constructor(ee,ue,ve,Le){this._scrollDispatcher=ee,this._viewportRuler=ue,this._ngZone=ve,this.noop=()=>new le,this.close=lt=>new Q(this._scrollDispatcher,this._ngZone,this._viewportRuler,lt),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=lt=>new se(this._scrollDispatcher,this._viewportRuler,this._ngZone,lt),this._document=Le}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(e.mF),u.LFG(e.rL),u.LFG(u.R0b),u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class me{constructor(G){if(this.scrollStrategy=new le,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,G){const ee=Object.keys(G);for(const ue of ee)void 0!==G[ue]&&(this[ue]=G[ue])}}}class r{constructor(G,ee){this.connectionPair=G,this.scrollableViewProperties=ee}}class C{constructor(G,ee,ue,ve,Le,lt,ht,Tt,hi){this._portalOutlet=G,this._host=ee,this._pane=ue,this._config=ve,this._ngZone=Le,this._keyboardDispatcher=lt,this._document=ht,this._location=Tt,this._outsideClickDispatcher=hi,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=D.w0.EMPTY,this._backdropClickHandler=jt=>this._backdropClick.next(jt),this._backdropTransitionendHandler=jt=>{this._disposeBackdrop(jt.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,ve.scrollStrategy&&(this._scrollStrategy=ve.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ve.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(G){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ee=this._portalOutlet.attach(G);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ee}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const G=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),G}dispose(){var G;const ee=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(G=this._host)||void 0===G||G.remove(),this._previousHostParent=this._pane=this._host=null,ee&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(G){G!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=G,this.hasAttached()&&(G.attach(this),this.updatePosition()))}updateSize(G){this._config=Object.assign(Object.assign({},this._config),G),this._updateElementSize()}setDirection(G){this._config=Object.assign(Object.assign({},this._config),{direction:G}),this._updateElementDirection()}addPanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!0)}removePanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!1)}getDirection(){const G=this._config.direction;return G?"string"==typeof G?G:G.value:"ltr"}updateScrollStrategy(G){G!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=G,this.hasAttached()&&(G.attach(this),G.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const G=this._pane.style;G.width=(0,b.HM)(this._config.width),G.height=(0,b.HM)(this._config.height),G.minWidth=(0,b.HM)(this._config.minWidth),G.minHeight=(0,b.HM)(this._config.minHeight),G.maxWidth=(0,b.HM)(this._config.maxWidth),G.maxHeight=(0,b.HM)(this._config.maxHeight)}_togglePointerEvents(G){this._pane.style.pointerEvents=G?"":"none"}_attachBackdrop(){const G="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(G)})}):this._backdropElement.classList.add(G)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const G=this._backdropElement;!G||(G.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{G.addEventListener("transitionend",this._backdropTransitionendHandler)}),G.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(G)},500)))}_toggleClasses(G,ee,ue){const ve=(0,b.Eq)(ee||[]).filter(Le=>!!Le);ve.length&&(ue?G.classList.add(...ve):G.classList.remove(...ve))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const G=this._ngZone.onStable.pipe((0,w.R)((0,T.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),G.unsubscribe())})})}_disposeScrollStrategy(){const G=this._scrollStrategy;G&&(G.disable(),G.detach&&G.detach())}_disposeBackdrop(G){G&&(G.removeEventListener("click",this._backdropClickHandler),G.removeEventListener("transitionend",this._backdropTransitionendHandler),G.remove(),this._backdropElement===G&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let S=(()=>{class xe{constructor(ee,ue){this._platform=ue,this._document=ee}ngOnDestroy(){var ee;null===(ee=this._containerElement)||void 0===ee||ee.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ee="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const ve=this._document.querySelectorAll(`.${ee}[platform="server"], .${ee}[platform="test"]`);for(let Le=0;Le{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const G=this._originRect,ee=this._overlayRect,ue=this._viewportRect,ve=this._containerRect,Le=[];let lt;for(let ht of this._preferredPositions){let Tt=this._getOriginPoint(G,ve,ht),hi=this._getOverlayPoint(Tt,ee,ht),jt=this._getOverlayFit(hi,ee,ue,ht);if(jt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ht,Tt);this._canFitWithFlexibleDimensions(jt,hi,ue)?Le.push({position:ht,origin:Tt,overlayRect:ee,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ht)}):(!lt||lt.overlayFit.visibleAreaTt&&(Tt=jt,ht=hi)}return this._isPushed=!1,void this._applyPosition(ht.position,ht.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(lt.position,lt.originPoint);this._applyPosition(lt.position,lt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&g(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const G=this._lastPosition;if(G){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ee=this._getOriginPoint(this._originRect,this._containerRect,G);this._applyPosition(G,ee)}else this.apply()}withScrollableContainers(G){return this._scrollables=G,this}withPositions(G){return this._preferredPositions=G,-1===G.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(G){return this._viewportMargin=G,this}withFlexibleDimensions(G=!0){return this._hasFlexibleDimensions=G,this}withGrowAfterOpen(G=!0){return this._growAfterOpen=G,this}withPush(G=!0){return this._canPush=G,this}withLockedPosition(G=!0){return this._positionLocked=G,this}setOrigin(G){return this._origin=G,this}withDefaultOffsetX(G){return this._offsetX=G,this}withDefaultOffsetY(G){return this._offsetY=G,this}withTransformOriginOn(G){return this._transformOriginSelector=G,this}_getOriginPoint(G,ee,ue){let ve,Le;if("center"==ue.originX)ve=G.left+G.width/2;else{const lt=this._isRtl()?G.right:G.left,ht=this._isRtl()?G.left:G.right;ve="start"==ue.originX?lt:ht}return ee.left<0&&(ve-=ee.left),Le="center"==ue.originY?G.top+G.height/2:"top"==ue.originY?G.top:G.bottom,ee.top<0&&(Le-=ee.top),{x:ve,y:Le}}_getOverlayPoint(G,ee,ue){let ve,Le;return ve="center"==ue.overlayX?-ee.width/2:"start"===ue.overlayX?this._isRtl()?-ee.width:0:this._isRtl()?0:-ee.width,Le="center"==ue.overlayY?-ee.height/2:"top"==ue.overlayY?0:-ee.height,{x:G.x+ve,y:G.y+Le}}_getOverlayFit(G,ee,ue,ve){const Le=R(ee);let{x:lt,y:ht}=G,Tt=this._getOffset(ve,"x"),hi=this._getOffset(ve,"y");Tt&&(lt+=Tt),hi&&(ht+=hi);let di=0-ht,vt=ht+Le.height-ue.height,kt=this._subtractOverflows(Le.width,0-lt,lt+Le.width-ue.width),gt=this._subtractOverflows(Le.height,di,vt),Qe=kt*gt;return{visibleArea:Qe,isCompletelyWithinViewport:Le.width*Le.height===Qe,fitsInViewportVertically:gt===Le.height,fitsInViewportHorizontally:kt==Le.width}}_canFitWithFlexibleDimensions(G,ee,ue){if(this._hasFlexibleDimensions){const ve=ue.bottom-ee.y,Le=ue.right-ee.x,lt=V(this._overlayRef.getConfig().minHeight),ht=V(this._overlayRef.getConfig().minWidth),hi=G.fitsInViewportHorizontally||null!=ht&&ht<=Le;return(G.fitsInViewportVertically||null!=lt&<<=ve)&&hi}return!1}_pushOverlayOnScreen(G,ee,ue){if(this._previousPushAmount&&this._positionLocked)return{x:G.x+this._previousPushAmount.x,y:G.y+this._previousPushAmount.y};const ve=R(ee),Le=this._viewportRect,lt=Math.max(G.x+ve.width-Le.width,0),ht=Math.max(G.y+ve.height-Le.height,0),Tt=Math.max(Le.top-ue.top-G.y,0),hi=Math.max(Le.left-ue.left-G.x,0);let jt=0,Gt=0;return jt=ve.width<=Le.width?hi||-lt:G.xkt&&!this._isInitialRender&&!this._growAfterOpen&&(lt=G.y-kt/2)}if("end"===ee.overlayX&&!ve||"start"===ee.overlayX&&ve)di=ue.width-G.x+this._viewportMargin,jt=G.x-this._viewportMargin;else if("start"===ee.overlayX&&!ve||"end"===ee.overlayX&&ve)Gt=G.x,jt=ue.right-G.x;else{const vt=Math.min(ue.right-G.x+ue.left,G.x),kt=this._lastBoundingBoxSize.width;jt=2*vt,Gt=G.x-vt,jt>kt&&!this._isInitialRender&&!this._growAfterOpen&&(Gt=G.x-kt/2)}return{top:lt,left:Gt,bottom:ht,right:di,width:jt,height:Le}}_setBoundingBoxStyles(G,ee){const ue=this._calculateBoundingBoxRect(G,ee);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));const ve={};if(this._hasExactPosition())ve.top=ve.left="0",ve.bottom=ve.right=ve.maxHeight=ve.maxWidth="",ve.width=ve.height="100%";else{const Le=this._overlayRef.getConfig().maxHeight,lt=this._overlayRef.getConfig().maxWidth;ve.height=(0,b.HM)(ue.height),ve.top=(0,b.HM)(ue.top),ve.bottom=(0,b.HM)(ue.bottom),ve.width=(0,b.HM)(ue.width),ve.left=(0,b.HM)(ue.left),ve.right=(0,b.HM)(ue.right),ve.alignItems="center"===ee.overlayX?"center":"end"===ee.overlayX?"flex-end":"flex-start",ve.justifyContent="center"===ee.overlayY?"center":"bottom"===ee.overlayY?"flex-end":"flex-start",Le&&(ve.maxHeight=(0,b.HM)(Le)),lt&&(ve.maxWidth=(0,b.HM)(lt))}this._lastBoundingBoxSize=ue,g(this._boundingBox.style,ve)}_resetBoundingBoxStyles(){g(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){g(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(G,ee){const ue={},ve=this._hasExactPosition(),Le=this._hasFlexibleDimensions,lt=this._overlayRef.getConfig();if(ve){const jt=this._viewportRuler.getViewportScrollPosition();g(ue,this._getExactOverlayY(ee,G,jt)),g(ue,this._getExactOverlayX(ee,G,jt))}else ue.position="static";let ht="",Tt=this._getOffset(ee,"x"),hi=this._getOffset(ee,"y");Tt&&(ht+=`translateX(${Tt}px) `),hi&&(ht+=`translateY(${hi}px)`),ue.transform=ht.trim(),lt.maxHeight&&(ve?ue.maxHeight=(0,b.HM)(lt.maxHeight):Le&&(ue.maxHeight="")),lt.maxWidth&&(ve?ue.maxWidth=(0,b.HM)(lt.maxWidth):Le&&(ue.maxWidth="")),g(this._pane.style,ue)}_getExactOverlayY(G,ee,ue){let ve={top:"",bottom:""},Le=this._getOverlayPoint(ee,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),"bottom"===G.overlayY?ve.bottom=this._document.documentElement.clientHeight-(Le.y+this._overlayRect.height)+"px":ve.top=(0,b.HM)(Le.y),ve}_getExactOverlayX(G,ee,ue){let lt,ve={left:"",right:""},Le=this._getOverlayPoint(ee,this._overlayRect,G);return this._isPushed&&(Le=this._pushOverlayOnScreen(Le,this._overlayRect,ue)),lt=this._isRtl()?"end"===G.overlayX?"left":"right":"end"===G.overlayX?"right":"left","right"===lt?ve.right=this._document.documentElement.clientWidth-(Le.x+this._overlayRect.width)+"px":ve.left=(0,b.HM)(Le.x),ve}_getScrollVisibility(){const G=this._getOriginRect(),ee=this._pane.getBoundingClientRect(),ue=this._scrollables.map(ve=>ve.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(G,ue),isOriginOutsideView:q(G,ue),isOverlayClipped:ie(ee,ue),isOverlayOutsideView:q(ee,ue)}}_subtractOverflows(G,...ee){return ee.reduce((ue,ve)=>ue-Math.max(ve,0),G)}_getNarrowedViewportRect(){const G=this._document.documentElement.clientWidth,ee=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+G-this._viewportMargin,bottom:ue.top+ee-this._viewportMargin,width:G-2*this._viewportMargin,height:ee-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(G,ee){return"x"===ee?null==G.offsetX?this._offsetX:G.offsetX:null==G.offsetY?this._offsetY:G.offsetY}_validatePositions(){}_addPanelClasses(G){this._pane&&(0,b.Eq)(G).forEach(ee=>{""!==ee&&-1===this._appliedPanelClasses.indexOf(ee)&&(this._appliedPanelClasses.push(ee),this._pane.classList.add(ee))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(G=>{this._pane.classList.remove(G)}),this._appliedPanelClasses=[])}_getOriginRect(){const G=this._origin;if(G instanceof u.SBq)return G.nativeElement.getBoundingClientRect();if(G instanceof Element)return G.getBoundingClientRect();const ee=G.width||0,ue=G.height||0;return{top:G.y,bottom:G.y+ue,left:G.x,right:G.x+ee,height:ue,width:ee}}}function g(xe,G){for(let ee in G)G.hasOwnProperty(ee)&&(xe[ee]=G[ee]);return xe}function V(xe){if("number"!=typeof xe&&null!=xe){const[G,ee]=xe.split(_);return ee&&"px"!==ee?null:parseFloat(G)}return xe||null}function R(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const H="cdk-global-overlay-wrapper";class ${constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(G){const ee=G.getConfig();this._overlayRef=G,this._width&&!ee.width&&G.updateSize({width:this._width}),this._height&&!ee.height&&G.updateSize({height:this._height}),G.hostElement.classList.add(H),this._isDisposed=!1}top(G=""){return this._bottomOffset="",this._topOffset=G,this._alignItems="flex-start",this}left(G=""){return this._rightOffset="",this._leftOffset=G,this._justifyContent="flex-start",this}bottom(G=""){return this._topOffset="",this._bottomOffset=G,this._alignItems="flex-end",this}right(G=""){return this._leftOffset="",this._rightOffset=G,this._justifyContent="flex-end",this}width(G=""){return this._overlayRef?this._overlayRef.updateSize({width:G}):this._width=G,this}height(G=""){return this._overlayRef?this._overlayRef.updateSize({height:G}):this._height=G,this}centerHorizontally(G=""){return this.left(G),this._justifyContent="center",this}centerVertically(G=""){return this.top(G),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const G=this._overlayRef.overlayElement.style,ee=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),{width:ve,height:Le,maxWidth:lt,maxHeight:ht}=ue,Tt=!("100%"!==ve&&"100vw"!==ve||lt&&"100%"!==lt&&"100vw"!==lt),hi=!("100%"!==Le&&"100vh"!==Le||ht&&"100%"!==ht&&"100vh"!==ht);G.position=this._cssPosition,G.marginLeft=Tt?"0":this._leftOffset,G.marginTop=hi?"0":this._topOffset,G.marginBottom=this._bottomOffset,G.marginRight=this._rightOffset,Tt?ee.justifyContent="flex-start":"center"===this._justifyContent?ee.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ee.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ee.justifyContent="flex-start"):ee.justifyContent=this._justifyContent,ee.alignItems=hi?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const G=this._overlayRef.overlayElement.style,ee=this._overlayRef.hostElement,ue=ee.style;ee.classList.remove(H),ue.justifyContent=ue.alignItems=G.marginTop=G.marginBottom=G.marginLeft=G.marginRight=G.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class xe{constructor(ee,ue,ve,Le){this._viewportRuler=ee,this._document=ue,this._platform=ve,this._overlayContainer=Le}global(){return new $}flexibleConnectedTo(ee){return new n(ee,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(e.rL),u.LFG(i.K0),u.LFG(a.t4),u.LFG(S))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ye=(()=>{class xe{constructor(ee){this._attachedOverlays=[],this._document=ee}ngOnDestroy(){this.detach()}add(ee){this.remove(ee),this._attachedOverlays.push(ee)}remove(ee){const ue=this._attachedOverlays.indexOf(ee);ue>-1&&this._attachedOverlays.splice(ue,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),ke=(()=>{class xe extends ye{constructor(ee,ue){super(ee),this._ngZone=ue,this._keydownListener=ve=>{const Le=this._attachedOverlays;for(let lt=Le.length-1;lt>-1;lt--)if(Le[lt]._keydownEvents.observers.length>0){const ht=Le[lt]._keydownEvents;this._ngZone?this._ngZone.run(()=>ht.next(ve)):ht.next(ve);break}}}add(ee){super.add(ee),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Ee=(()=>{class xe extends ye{constructor(ee,ue,ve){super(ee),this._platform=ue,this._ngZone=ve,this._cursorStyleIsSet=!1,this._pointerDownListener=Le=>{this._pointerDownEventTarget=(0,a.sA)(Le)},this._clickListener=Le=>{const lt=(0,a.sA)(Le),ht="click"===Le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:lt;this._pointerDownEventTarget=null;const Tt=this._attachedOverlays.slice();for(let hi=Tt.length-1;hi>-1;hi--){const jt=Tt[hi];if(jt._outsidePointerEvents.observers.length<1||!jt.hasAttached())continue;if(jt.overlayElement.contains(lt)||jt.overlayElement.contains(ht))break;const Gt=jt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Gt.next(Le)):Gt.next(Le)}}}add(ee){if(super.add(ee),!this._isAttached){const ue=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ue)):this._addEventListeners(ue),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ue.style.cursor,ue.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ee=this._document.body;ee.removeEventListener("pointerdown",this._pointerDownListener,!0),ee.removeEventListener("click",this._clickListener,!0),ee.removeEventListener("auxclick",this._clickListener,!0),ee.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ee.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ee){ee.addEventListener("pointerdown",this._pointerDownListener,!0),ee.addEventListener("click",this._clickListener,!0),ee.addEventListener("auxclick",this._clickListener,!0),ee.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(i.K0),u.LFG(a.t4),u.LFG(u.R0b,8))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),te=0,ze=(()=>{class xe{constructor(ee,ue,ve,Le,lt,ht,Tt,hi,jt,Gt,di){this.scrollStrategies=ee,this._overlayContainer=ue,this._componentFactoryResolver=ve,this._positionBuilder=Le,this._keyboardDispatcher=lt,this._injector=ht,this._ngZone=Tt,this._document=hi,this._directionality=jt,this._location=Gt,this._outsideClickDispatcher=di}create(ee){const ue=this._createHostElement(),ve=this._createPaneElement(ue),Le=this._createPortalOutlet(ve),lt=new me(ee);return lt.direction=lt.direction||this._directionality.value,new C(Le,ue,ve,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ee){const ue=this._document.createElement("div");return ue.id="cdk-overlay-"+te++,ue.classList.add("cdk-overlay-pane"),ee.appendChild(ue),ue}_createHostElement(){const ee=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ee),ee}_createPortalOutlet(ee){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new d.u0(ee,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.LFG(J),u.LFG(S),u.LFG(u._Vd),u.LFG(fe),u.LFG(ke),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(i.K0),u.LFG(y.Is),u.LFG(i.Ye),u.LFG(Ee))},xe.\u0275prov=u.Yz7({token:xe,factory:xe.\u0275fac}),xe})();const be=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=new u.OlP("cdk-connected-overlay-scroll-strategy");let Y=(()=>{class xe{constructor(ee){this.elementRef=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.Y36(u.SBq))},xe.\u0275dir=u.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xe})(),ot=(()=>{class xe{constructor(ee,ue,ve,Le,lt){this._overlay=ee,this._dir=lt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=D.w0.EMPTY,this._attachSubscription=D.w0.EMPTY,this._detachSubscription=D.w0.EMPTY,this._positionSubscription=D.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new u.vpe,this.positionChange=new u.vpe,this.attach=new u.vpe,this.detach=new u.vpe,this.overlayKeydown=new u.vpe,this.overlayOutsideClick=new u.vpe,this._templatePortal=new d.UE(ue,ve),this._scrollStrategyFactory=Le,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(ee){this._offsetX=ee,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ee){this._offsetY=ee,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ee){this._hasBackdrop=(0,b.Ig)(ee)}get lockPosition(){return this._lockPosition}set lockPosition(ee){this._lockPosition=(0,b.Ig)(ee)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ee){this._flexibleDimensions=(0,b.Ig)(ee)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ee){this._growAfterOpen=(0,b.Ig)(ee)}get push(){return this._push}set push(ee){this._push=(0,b.Ig)(ee)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ee){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ee.origin&&this.open&&this._position.apply()),ee.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=be);const ee=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ee.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ee.detachments().subscribe(()=>this.detach.emit()),ee.keydownEvents().subscribe(ue=>{this.overlayKeydown.next(ue),ue.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(ue)&&(ue.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ue=>{this.overlayOutsideClick.next(ue)})}_buildConfig(){const ee=this._position=this.positionStrategy||this._createPositionStrategy(),ue=new me({direction:this._dir,positionStrategy:ee,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ue.width=this.width),(this.height||0===this.height)&&(ue.height=this.height),(this.minWidth||0===this.minWidth)&&(ue.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ue.minHeight=this.minHeight),this.backdropClass&&(ue.backdropClass=this.backdropClass),this.panelClass&&(ue.panelClass=this.panelClass),ue}_updatePositionStrategy(ee){const ue=this.positions.map(ve=>({originX:ve.originX,originY:ve.originY,overlayX:ve.overlayX,overlayY:ve.overlayY,offsetX:ve.offsetX||this.offsetX,offsetY:ve.offsetY||this.offsetY,panelClass:ve.panelClass||void 0}));return ee.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ue).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ee=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ee),ee}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Y?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ee=>{this.backdropClick.emit(ee)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function E(xe,G=!1){return(0,M.e)((ee,ue)=>{let ve=0;ee.subscribe((0,A.x)(ue,Le=>{const lt=xe(Le,ve++);(lt||G)&&ue.next(Le),!lt&&ue.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ee=>{this.positionChange.emit(ee),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(ee){return new(ee||xe)(u.Y36(ze),u.Y36(u.Rgc),u.Y36(u.s_b),u.Y36(Z),u.Y36(y.Is,8))},xe.\u0275dir=u.lG2({type:xe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[u.TTD]}),xe})();const Ae={provide:Z,deps:[ze],useFactory:function Ie(xe){return()=>xe.scrollStrategies.reposition()}};let ce=(()=>{class xe{}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275mod=u.oAB({type:xe}),xe.\u0275inj=u.cJS({providers:[ze,Ae],imports:[[y.vT,d.eL,e.Cl],e.Cl]}),xe})()},925:(He,j,p)=>{"use strict";p.d(j,{Mq:()=>k,Oy:()=>le,_i:()=>w,ht:()=>ne,i$:()=>M,kV:()=>W,qK:()=>P,sA:()=>Q,t4:()=>b});var e=p(5e3),i=p(9808);let u;try{u="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(q){u=!1}let y,b=(()=>{class q{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,i.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!u)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return q.\u0275fac=function(se){return new(se||q)(e.LFG(e.Lbi))},q.\u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function P(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(d),y;let q=document.createElement("input");return y=new Set(d.filter(ie=>(q.setAttribute("type",ie),q.type===ie))),y}let D,A,E,z;function M(q){return function T(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>D=!0}))}finally{D=D||!1}return D}()?q:!!q.capture}function k(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const q=Element.prototype.scrollTo;E=!!q&&!/\{\s*\[native code\]\s*\}/.test(q.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const q=document.createElement("div"),ie=q.style;q.dir="rtl",ie.width="1px",ie.overflow="auto",ie.visibility="hidden",ie.pointerEvents="none",ie.position="absolute";const se=document.createElement("div"),J=se.style;J.width="2px",J.height="1px",q.appendChild(se),document.body.appendChild(q),A=0,0===q.scrollLeft&&(q.scrollLeft=1,A=0===q.scrollLeft?1:2),q.remove()}return A}function W(q){if(function U(){if(null==z){const q="undefined"!=typeof document?document.head:null;z=!(!q||!q.createShadowRoot&&!q.attachShadow)}return z}()){const ie=q.getRootNode?q.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ie instanceof ShadowRoot)return ie}return null}function ne(){let q="undefined"!=typeof document&&document?document.activeElement:null;for(;q&&q.shadowRoot;){const ie=q.shadowRoot.activeElement;if(ie===q)break;q=ie}return q}function Q(q){return q.composedPath?q.composedPath()[0]:q.target}function le(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(He,j,p)=>{"use strict";p.d(j,{C5:()=>T,Pl:()=>ne,UE:()=>M,eL:()=>le,en:()=>E,ig:()=>U,u0:()=>w});var e=p(5e3),i=p(9808);class D{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class T extends D{constructor(se,J,me,x){super(),this.component=se,this.viewContainerRef=J,this.injector=me,this.componentFactoryResolver=x}}class M extends D{constructor(se,J,me){super(),this.templateRef=se,this.viewContainerRef=J,this.context=me}get origin(){return this.templateRef.elementRef}attach(se,J=this.context){return this.context=J,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class A extends D{constructor(se){super(),this.element=se instanceof e.SBq?se.nativeElement:se}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof T?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof M?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof A?(this._attachedPortal=se,this.attachDomPortal(se)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(se,J,me,x,t){super(),this.outletElement=se,this._componentFactoryResolver=J,this._appRef=me,this._defaultInjector=x,this.attachDomPortal=r=>{const h=r.element,c=this._document.createComment("dom-portal");h.parentNode.insertBefore(c,h),this.outletElement.appendChild(h),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(h,c)})},this._document=t}attachComponentPortal(se){const me=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let x;return se.viewContainerRef?(x=se.viewContainerRef.createComponent(me,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=me.create(se.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(x.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(x.hostView),x.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(x)),this._attachedPortal=se,x}attachTemplatePortal(se){let J=se.viewContainerRef,me=J.createEmbeddedView(se.templateRef,se.context);return me.rootNodes.forEach(x=>this.outletElement.appendChild(x)),me.detectChanges(),this.setDisposeFn(()=>{let x=J.indexOf(me);-1!==x&&J.remove(x)}),this._attachedPortal=se,me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let U=(()=>{class ie extends M{constructor(J,me){super(J,me)}}return ie.\u0275fac=function(J){return new(J||ie)(e.Y36(e.Rgc),e.Y36(e.s_b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),ie})(),ne=(()=>{class ie extends E{constructor(J,me,x){super(),this._componentFactoryResolver=J,this._viewContainerRef=me,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=t=>{const r=t.element,h=this._document.createComment("dom-portal");t.setAttachedHost(this),r.parentNode.insertBefore(h,r),this._getRootNode().appendChild(r),this._attachedPortal=t,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(r,h)})},this._document=x}get portal(){return this._attachedPortal}set portal(J){this.hasAttached()&&!J&&!this._isInitialized||(this.hasAttached()&&super.detach(),J&&super.attach(J),this._attachedPortal=J||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(J){J.setAttachedHost(this);const me=null!=J.viewContainerRef?J.viewContainerRef:this._viewContainerRef,t=(J.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(J.component),r=me.createComponent(t,me.length,J.injector||me.injector);return me!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=J,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(J){J.setAttachedHost(this);const me=this._viewContainerRef.createEmbeddedView(J.templateRef,J.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=J,this._attachedRef=me,this.attached.emit(me),me}_getRootNode(){const J=this._viewContainerRef.element.nativeElement;return J.nodeType===J.ELEMENT_NODE?J:J.parentNode}}return ie.\u0275fac=function(J){return new(J||ie)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(i.K0))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})()},5303:(He,j,p)=>{"use strict";p.d(j,{PQ:()=>h,ZD:()=>V,mF:()=>r,Cl:()=>R,rL:()=>C});var e=p(3191),i=p(5e3),u=p(4408),b=p(727);const a={schedule(H){let $=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:ye}=a;ye&&($=ye.requestAnimationFrame,fe=ye.cancelAnimationFrame);const ke=$(Ee=>{fe=void 0,H(Ee)});return new b.w0(()=>null==fe?void 0:fe(ke))},requestAnimationFrame(...H){const{delegate:$}=a;return((null==$?void 0:$.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:$}=a;return((null==$?void 0:$.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var d=p(7565);new class P extends d.v{flush($){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:ye}=this;let ke;$=$||ye.shift();do{if(ke=$.execute($.state,$.delay))break}while(($=ye[0])&&$.id===fe&&ye.shift());if(this._active=!1,ke){for(;($=ye[0])&&$.id===fe&&ye.shift();)$.unsubscribe();throw ke}}}(class y extends u.o{constructor($,fe){super($,fe),this.scheduler=$,this.work=fe}requestAsyncId($,fe,ye=0){return null!==ye&&ye>0?super.requestAsyncId($,fe,ye):($.actions.push(this),$._scheduled||($._scheduled=a.requestAnimationFrame(()=>$.flush(void 0))))}recycleAsyncId($,fe,ye=0){if(null!=ye&&ye>0||null==ye&&this.delay>0)return super.recycleAsyncId($,fe,ye);$.actions.some(ke=>ke.id===fe)||(a.cancelAnimationFrame(fe),$._scheduled=void 0)}});var M=p(7579),A=p(9646),E=p(8306),k=p(4968),z=(p(3101),p(3601)),U=p(9300),W=p(2722),ne=p(9808),Q=p(925),le=p(226);let r=(()=>{class H{constructor(fe,ye,ke){this._ngZone=fe,this._platform=ye,this._scrolled=new M.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ke}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const ye=this.scrollContainers.get(fe);ye&&(ye.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new E.y(ye=>{this._globalSubscription||this._addGlobalListener();const ke=fe>0?this._scrolled.pipe((0,z.e)(fe)).subscribe(ye):this._scrolled.subscribe(ye);return this._scrolledCount++,()=>{ke.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,ye)=>this.deregister(ye)),this._scrolled.complete()}ancestorScrolled(fe,ye){const ke=this.getAncestorScrollContainers(fe);return this.scrolled(ye).pipe((0,U.h)(Ee=>!Ee||ke.indexOf(Ee)>-1))}getAncestorScrollContainers(fe){const ye=[];return this.scrollContainers.forEach((ke,Ee)=>{this._scrollableContainsElement(Ee,fe)&&ye.push(Ee)}),ye}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,ye){let ke=(0,e.fI)(ye),Ee=fe.getElementRef().nativeElement;do{if(ke==Ee)return!0}while(ke=ke.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,k.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(fe){return new(fe||H)(i.LFG(i.R0b),i.LFG(Q.t4),i.LFG(ne.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),h=(()=>{class H{constructor(fe,ye,ke,Ee){this.elementRef=fe,this.scrollDispatcher=ye,this.ngZone=ke,this.dir=Ee,this._destroyed=new M.x,this._elementScrolled=new E.y(te=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(te)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(fe){const ye=this.elementRef.nativeElement,ke=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=ke?fe.end:fe.start),null==fe.right&&(fe.right=ke?fe.start:fe.end),null!=fe.bottom&&(fe.top=ye.scrollHeight-ye.clientHeight-fe.bottom),ke&&0!=(0,Q._i)()?(null!=fe.left&&(fe.right=ye.scrollWidth-ye.clientWidth-fe.left),2==(0,Q._i)()?fe.left=fe.right:1==(0,Q._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=ye.scrollWidth-ye.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const ye=this.elementRef.nativeElement;(0,Q.Mq)()?ye.scrollTo(fe):(null!=fe.top&&(ye.scrollTop=fe.top),null!=fe.left&&(ye.scrollLeft=fe.left))}measureScrollOffset(fe){const ye="left",Ee=this.elementRef.nativeElement;if("top"==fe)return Ee.scrollTop;if("bottom"==fe)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const te=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=te?"right":ye:"end"==fe&&(fe=te?ye:"right"),te&&2==(0,Q._i)()?fe==ye?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:te&&1==(0,Q._i)()?fe==ye?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:fe==ye?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return H.\u0275fac=function(fe){return new(fe||H)(i.Y36(i.SBq),i.Y36(r),i.Y36(i.R0b),i.Y36(le.Is,8))},H.\u0275dir=i.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),C=(()=>{class H{constructor(fe,ye,ke){this._platform=fe,this._change=new M.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=ke,ye.runOutsideAngular(()=>{if(fe.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:ye,height:ke}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+ke,right:fe.left+ye,height:ke,width:ye}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,ye=this._getWindow(),ke=fe.documentElement,Ee=ke.getBoundingClientRect();return{top:-Ee.top||fe.body.scrollTop||ye.scrollY||ke.scrollTop||0,left:-Ee.left||fe.body.scrollLeft||ye.scrollX||ke.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,z.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(fe){return new(fe||H)(i.LFG(Q.t4),i.LFG(i.R0b),i.LFG(ne.K0,8))},H.\u0275prov=i.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),V=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({}),H})(),R=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=i.oAB({type:H}),H.\u0275inj=i.cJS({imports:[[le.vT,V],le.vT,V]}),H})()},1555:(He,j,p)=>{"use strict";p.d(j,{B8:()=>le,KL:()=>k,U5:()=>se,be:()=>Q,gx:()=>ne,po:()=>ie,st:()=>q,u6:()=>w});var e=p(5664),i=p(3191),u=p(1159),b=p(9808),a=p(5e3),y=p(925),d=p(7579),P=p(9646),D=p(8675),T=p(2722),M=p(226);function A(J,me){1&J&&a.Hsn(0)}const E=["*"];let k=(()=>{class J{constructor(x){this._elementRef=x}focus(){this._elementRef.nativeElement.focus()}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(a.SBq))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),J})(),w=(()=>{class J{constructor(x){this.template=x}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(a.Rgc))},J.\u0275dir=a.lG2({type:J,selectors:[["","cdkStepLabel",""]]}),J})(),z=0;const ne=new a.OlP("STEPPER_GLOBAL_OPTIONS");let Q=(()=>{class J{constructor(x,t){this._stepper=x,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,i.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,i.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,i.Ig)(x)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(x){this._customError=(0,i.Ig)(x)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var x;return null!==(x=this._stepperOptions.showError)&&void 0!==x?x:null!=this._customError}}return J.\u0275fac=function(x){return new(x||J)(a.Y36((0,a.Gpc)(()=>le)),a.Y36(ne,8))},J.\u0275cmp=a.Xpm({type:J,selectors:[["cdk-step"]],contentQueries:function(x,t,r){if(1&x&&a.Suo(r,w,5),2&x){let h;a.iGM(h=a.CRH())&&(t.stepLabel=h.first)}},viewQuery:function(x,t){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(x,t){1&x&&(a.F$t(),a.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),J})(),le=(()=>{class J{constructor(x,t,r,h){this._dir=x,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new d.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=z++}get linear(){return this._linear}set linear(x){this._linear=(0,i.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var t;const r=(0,i.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(x){this.selectedIndex=x&&this.steps?this.steps.toArray().indexOf(x):-1}get orientation(){return this._orientation}set orientation(x){this._orientation=x,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===x)}ngAfterContentInit(){this._steps.changes.pipe((0,D.O)(this._steps),(0,T.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,D.O)(this._stepHeader),(0,T.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,D.O)(this._layoutDirection()),(0,T.R)(this._destroyed)).subscribe(x=>this._keyManager.withHorizontalOrientation(x)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(x=>x.reset()),this._stateChanged()}_getStepLabelId(x){return`cdk-step-label-${this._groupId}-${x}`}_getStepContentId(x){return`cdk-step-content-${this._groupId}-${x}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(x){const t=x-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,t="number"){const r=this.steps.toArray()[x],h=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,h):this._getGuidelineLogic(r,h,t)}_getDefaultIndicatorLogic(x,t){return x._showError()&&x.hasError&&!t?"error":!x.completed||t?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,t,r="number"){return x._showError()&&x.hasError&&!t?"error":x.completed&&!t?"done":x.completed&&t?r:x.editable&&t?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:t[x],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const t=(0,u.Vb)(x),r=x.keyCode,h=this._keyManager;null==h.activeItemIndex||t||r!==u.L_&&r!==u.K5?h.onKeydown(x):(this.selectedIndex=h.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,t=(0,y.ht)();return x===t||x.contains(t)}_isValidIndex(x){return x>-1&&(!this.steps||x{class J{constructor(x){this._stepper=x,this.type="submit"}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(le))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.next()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),J})(),ie=(()=>{class J{constructor(x){this._stepper=x,this.type="button"}}return J.\u0275fac=function(x){return new(x||J)(a.Y36(le))},J.\u0275dir=a.lG2({type:J,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,t){1&x&&a.NdJ("click",function(){return t._stepper.previous()}),2&x&&a.Ikx("type",t.type)},inputs:{type:"type"}}),J})(),se=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=a.oAB({type:J}),J.\u0275inj=a.cJS({imports:[[M.vT]]}),J})()},8258:(He,j,p)=>{"use strict";p.d(j,{HI:()=>w,Hs:()=>J,Ud:()=>c,VY:()=>k,XJ:()=>h,Xx:()=>t,_0:()=>se,cu:()=>z,nZ:()=>S,rO:()=>W});var e=p(449),i=p(5191),u=p(7579),b=p(1135),a=p(9646),y=p(5698),d=p(9300),P=p(2722),D=p(5e3),T=p(3191),M=p(226);class k extends class A{constructor(){this.expansionModel=new e.Ov(!0)}toggle(_){this.expansionModel.toggle(this._trackByValue(_))}expand(_){this.expansionModel.select(this._trackByValue(_))}collapse(_){this.expansionModel.deselect(this._trackByValue(_))}isExpanded(_){return this.expansionModel.isSelected(this._trackByValue(_))}toggleDescendants(_){this.expansionModel.isSelected(this._trackByValue(_))?this.collapseDescendants(_):this.expandDescendants(_)}collapseAll(){this.expansionModel.clear()}expandDescendants(_){let n=[_];n.push(...this.getDescendants(_)),this.expansionModel.select(...n.map(g=>this._trackByValue(g)))}collapseDescendants(_){let n=[_];n.push(...this.getDescendants(_)),this.expansionModel.deselect(...n.map(g=>this._trackByValue(g)))}_trackByValue(_){return this.trackBy?this.trackBy(_):_}}{constructor(_,n){super(),this.getChildren=_,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const _=this.dataNodes.reduce((n,g)=>[...n,...this.getDescendants(g),g],[]);this.expansionModel.select(..._.map(n=>this._trackByValue(n)))}getDescendants(_){const n=[];return this._getDescendants(n,_),n.splice(1)}_getDescendants(_,n){_.push(n);const g=this.getChildren(n);Array.isArray(g)?g.forEach(V=>this._getDescendants(_,V)):(0,i.b)(g)&&g.pipe((0,y.q)(1),(0,d.h)(Boolean)).subscribe(V=>{for(const R of V)this._getDescendants(_,R)})}}const w=new D.OlP("CDK_TREE_NODE_OUTLET_NODE");let z=(()=>{class I{constructor(n,g){this.viewContainer=n,this._node=g}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.s_b),D.Y36(w,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class U{constructor(_){this.$implicit=_}}let W=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.Rgc))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),se=(()=>{class I{constructor(n,g){this._differs=n,this._changeDetectorRef=g,this._onDestroy=new u.x,this._levels=new Map,this.viewChange=new b.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const n=this._nodeDefs.filter(g=>!g.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,e.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,i.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,P.R)(this._onDestroy)).subscribe(g=>this.renderNodeChanges(g)))}renderNodeChanges(n,g=this._dataDiffer,V=this._nodeOutlet.viewContainer,R){const H=g.diff(n);!H||(H.forEachOperation(($,fe,ye)=>{if(null==$.previousIndex)this.insertNode(n[ye],ye,V,R);else if(null==ye)V.remove(fe),this._levels.delete($.item);else{const ke=V.get(fe);V.move(ke,ye)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,g){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(R=>R.when&&R.when(g,n))||this._defaultNodeDef}insertNode(n,g,V,R){const H=this._getNodeDef(n,g),$=new U(n);$.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==R&&this._levels.has(R)?this._levels.get(R)+1:0,this._levels.set(n,$.level),(V||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,$,g),J.mostRecentTreeNode&&(J.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.ZZ4),D.Y36(D.sBO))},I.\u0275cmp=D.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,g,V){if(1&n&&D.Suo(V,W,5),2&n){let R;D.iGM(R=D.CRH())&&(g._nodeDefs=R)}},viewQuery:function(n,g){if(1&n&&D.Gf(z,7),2&n){let V;D.iGM(V=D.CRH())&&(g._nodeOutlet=V.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,g){1&n&&D.GkF(0,0)},directives:[z],encapsulation:2}),I})(),J=(()=>{class I{constructor(n,g){this._elementRef=n,this._tree=g,this._destroyed=new u.x,this._dataChanges=new u.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function me(I){let _=I.parentElement;for(;_&&!x(_);)_=_.parentElement;return _?_.classList.contains("cdk-nested-tree-node")?(0,T.su)(_.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(se))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,g){2&n&&D.uIk("aria-expanded",g.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const _=I.classList;return!(!(null==_?void 0:_.contains("cdk-nested-tree-node"))&&!(null==_?void 0:_.contains("cdk-tree")))}let t=(()=>{class I extends J{constructor(n,g,V){super(n,g),this._differs=V}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,i.b)(n)&&n.pipe((0,P.R)(this._destroyed)).subscribe(g=>this.updateChildrenNodes(g)),this.nodeOutlet.changes.pipe((0,P.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const g=this._getNodeOutlet();n&&(this._children=n),g&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,g.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(g=>!g._node||g._node===this)}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(D.SBq),D.Y36(se),D.Y36(D.ZZ4))},I.\u0275dir=D.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,g,V){if(1&n&&D.Suo(V,z,5),2&n){let R;D.iGM(R=D.CRH())&&(g.nodeOutlet=R)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[D._Bn([{provide:J,useExisting:I},{provide:w,useExisting:I}]),D.qOj]}),I})();const r=/([A-Za-z%]+)$/;let h=(()=>{class I{constructor(n,g,V,R){this._treeNode=n,this._tree=g,this._element=V,this._dir=R,this._destroyed=new u.x,this.indentUnits="px",this._indent=40,this._setPadding(),R&&R.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,g=null==this._level?n:this._level;return"number"==typeof g?`${g*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const g=this._paddingIndent();if(g!==this._currentPadding||n){const V=this._element.nativeElement,R=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===R?"paddingRight":"paddingLeft";V.style[R]=g||"",V.style[H]="",this._currentPadding=g}}_setLevelInput(n){this._level=(0,T.su)(n,null),this._setPadding()}_setIndentInput(n){let g=n,V="px";if("string"==typeof n){const R=n.split(r);g=R[0],V=R[1]||V}this.indentUnits=V,this._indent=(0,T.su)(g),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(J),D.Y36(se),D.Y36(D.SBq),D.Y36(M.Is,8))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,g){this._tree=n,this._treeNode=g,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,T.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(D.Y36(se),D.Y36(J))},I.\u0275dir=D.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,g){1&n&&D.NdJ("click",function(R){return g._toggle(R)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),S=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=D.oAB({type:I}),I.\u0275inj=D.cJS({}),I})()},9808:(He,j,p)=>{"use strict";p.d(j,{Do:()=>le,ED:()=>Hn,EM:()=>Hr,HT:()=>a,JF:()=>Wn,JJ:()=>wr,K0:()=>d,Mx:()=>Ji,NF:()=>Jn,Nd:()=>la,O5:()=>Nt,OU:()=>Nr,Ov:()=>sa,PC:()=>wi,PM:()=>ga,RF:()=>ki,S$:()=>U,Ts:()=>Rr,V_:()=>T,Ye:()=>q,b0:()=>Q,bD:()=>gr,ez:()=>mr,gd:()=>rr,i8:()=>oa,lw:()=>P,mk:()=>Wi,mr:()=>ne,n9:()=>hn,q:()=>u,rS:()=>Ta,sg:()=>Yt,tP:()=>Yi,uU:()=>na,w_:()=>y});var e=p(5e3);let i=null;function u(){return i}function a(je){i||(i=je)}class y{}const d=new e.OlP("DocumentToken");let P=(()=>{class je{historyGo(Ye){throw new Error("Not implemented")}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275prov=e.Yz7({token:je,factory:function(){return function D(){return(0,e.LFG)(M)}()},providedIn:"platform"}),je})();const T=new e.OlP("Location Initialized");let M=(()=>{class je extends P{constructor(Ye){super(),this._doc=Ye,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return u().getBaseHref(this._doc)}onPopState(Ye){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("popstate",Ye,!1),()=>Ot.removeEventListener("popstate",Ye)}onHashChange(Ye){const Ot=u().getGlobalEventTarget(this._doc,"window");return Ot.addEventListener("hashchange",Ye,!1),()=>Ot.removeEventListener("hashchange",Ye)}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(Ye){this.location.pathname=Ye}pushState(Ye,Ot,ri){A()?this._history.pushState(Ye,Ot,ri):this.location.hash=ri}replaceState(Ye,Ot,ri){A()?this._history.replaceState(Ye,Ot,ri):this.location.hash=ri}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ye=0){this._history.go(Ye)}getState(){return this._history.state}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(d))},je.\u0275prov=e.Yz7({token:je,factory:function(){return function E(){return new M((0,e.LFG)(d))}()},providedIn:"platform"}),je})();function A(){return!!window.history.pushState}function k(je,Mt){if(0==je.length)return Mt;if(0==Mt.length)return je;let Ye=0;return je.endsWith("/")&&Ye++,Mt.startsWith("/")&&Ye++,2==Ye?je+Mt.substring(1):1==Ye?je+Mt:je+"/"+Mt}function w(je){const Mt=je.match(/#|\?|$/),Ye=Mt&&Mt.index||je.length;return je.slice(0,Ye-("/"===je[Ye-1]?1:0))+je.slice(Ye)}function z(je){return je&&"?"!==je[0]?"?"+je:je}let U=(()=>{class je{historyGo(Ye){throw new Error("Not implemented")}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275prov=e.Yz7({token:je,factory:function(){return function W(je){const Mt=(0,e.LFG)(d).location;return new Q((0,e.LFG)(P),Mt&&Mt.origin||"")}()},providedIn:"root"}),je})();const ne=new e.OlP("appBaseHref");let Q=(()=>{class je extends U{constructor(Ye,Ot){if(super(),this._platformLocation=Ye,this._removeListenerFns=[],null==Ot&&(Ot=this._platformLocation.getBaseHrefFromDOM()),null==Ot)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Ot}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ye){this._removeListenerFns.push(this._platformLocation.onPopState(Ye),this._platformLocation.onHashChange(Ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ye){return k(this._baseHref,Ye)}path(Ye=!1){const Ot=this._platformLocation.pathname+z(this._platformLocation.search),ri=this._platformLocation.hash;return ri&&Ye?`${Ot}${ri}`:Ot}pushState(Ye,Ot,ri,Si){const Oi=this.prepareExternalUrl(ri+z(Si));this._platformLocation.pushState(Ye,Ot,Oi)}replaceState(Ye,Ot,ri,Si){const Oi=this.prepareExternalUrl(ri+z(Si));this._platformLocation.replaceState(Ye,Ot,Oi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(P),e.LFG(ne,8))},je.\u0275prov=e.Yz7({token:je,factory:je.\u0275fac}),je})(),le=(()=>{class je extends U{constructor(Ye,Ot){super(),this._platformLocation=Ye,this._baseHref="",this._removeListenerFns=[],null!=Ot&&(this._baseHref=Ot)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ye){this._removeListenerFns.push(this._platformLocation.onPopState(Ye),this._platformLocation.onHashChange(Ye))}getBaseHref(){return this._baseHref}path(Ye=!1){let Ot=this._platformLocation.hash;return null==Ot&&(Ot="#"),Ot.length>0?Ot.substring(1):Ot}prepareExternalUrl(Ye){const Ot=k(this._baseHref,Ye);return Ot.length>0?"#"+Ot:Ot}pushState(Ye,Ot,ri,Si){let Oi=this.prepareExternalUrl(ri+z(Si));0==Oi.length&&(Oi=this._platformLocation.pathname),this._platformLocation.pushState(Ye,Ot,Oi)}replaceState(Ye,Ot,ri,Si){let Oi=this.prepareExternalUrl(ri+z(Si));0==Oi.length&&(Oi=this._platformLocation.pathname),this._platformLocation.replaceState(Ye,Ot,Oi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformLocation).historyGo)||void 0===ri||ri.call(Ot,Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(P),e.LFG(ne,8))},je.\u0275prov=e.Yz7({token:je,factory:je.\u0275fac}),je})(),q=(()=>{class je{constructor(Ye,Ot){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=Ye;const ri=this._platformStrategy.getBaseHref();this._platformLocation=Ot,this._baseHref=w(J(ri)),this._platformStrategy.onPopState(Si=>{this._subject.emit({url:this.path(!0),pop:!0,state:Si.state,type:Si.type})})}path(Ye=!1){return this.normalize(this._platformStrategy.path(Ye))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Ye,Ot=""){return this.path()==this.normalize(Ye+z(Ot))}normalize(Ye){return je.stripTrailingSlash(function se(je,Mt){return je&&Mt.startsWith(je)?Mt.substring(je.length):Mt}(this._baseHref,J(Ye)))}prepareExternalUrl(Ye){return Ye&&"/"!==Ye[0]&&(Ye="/"+Ye),this._platformStrategy.prepareExternalUrl(Ye)}go(Ye,Ot="",ri=null){this._platformStrategy.pushState(ri,"",Ye,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ye+z(Ot)),ri)}replaceState(Ye,Ot="",ri=null){this._platformStrategy.replaceState(ri,"",Ye,Ot),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ye+z(Ot)),ri)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Ye=0){var Ot,ri;null===(ri=(Ot=this._platformStrategy).historyGo)||void 0===ri||ri.call(Ot,Ye)}onUrlChange(Ye){this._urlChangeListeners.push(Ye),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ot=>{this._notifyUrlChangeListeners(Ot.url,Ot.state)}))}_notifyUrlChangeListeners(Ye="",Ot){this._urlChangeListeners.forEach(ri=>ri(Ye,Ot))}subscribe(Ye,Ot,ri){return this._subject.subscribe({next:Ye,error:Ot,complete:ri})}}return je.normalizeQueryParams=z,je.joinWithSlash=k,je.stripTrailingSlash=w,je.\u0275fac=function(Ye){return new(Ye||je)(e.LFG(U),e.LFG(P))},je.\u0275prov=e.Yz7({token:je,factory:function(){return function ie(){return new q((0,e.LFG)(U),(0,e.LFG)(P))}()},providedIn:"root"}),je})();function J(je){return je.replace(/\/index.html$/,"")}var x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Percent=1]="Percent",x[x.Currency=2]="Currency",x[x.Scientific=3]="Scientific",x))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),h=(()=>((h=h||{})[h.Narrow=0]="Narrow",h[h.Abbreviated=1]="Abbreviated",h[h.Wide=2]="Wide",h[h.Short=3]="Short",h))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),C=(()=>((C=C||{})[C.Decimal=0]="Decimal",C[C.Group=1]="Group",C[C.List=2]="List",C[C.PercentSign=3]="PercentSign",C[C.PlusSign=4]="PlusSign",C[C.MinusSign=5]="MinusSign",C[C.Exponential=6]="Exponential",C[C.SuperscriptingExponent=7]="SuperscriptingExponent",C[C.PerMille=8]="PerMille",C[C.Infinity=9]="Infinity",C[C.NaN=10]="NaN",C[C.TimeSeparator=11]="TimeSeparator",C[C.CurrencyDecimal=12]="CurrencyDecimal",C[C.CurrencyGroup=13]="CurrencyGroup",C))();function $(je,Mt){return Te((0,e.cg1)(je)[e.wAp.DateFormat],Mt)}function fe(je,Mt){return Te((0,e.cg1)(je)[e.wAp.TimeFormat],Mt)}function ye(je,Mt){return Te((0,e.cg1)(je)[e.wAp.DateTimeFormat],Mt)}function ke(je,Mt){const Ye=(0,e.cg1)(je),Ot=Ye[e.wAp.NumberSymbols][Mt];if(void 0===Ot){if(Mt===C.CurrencyDecimal)return Ye[e.wAp.NumberSymbols][C.Decimal];if(Mt===C.CurrencyGroup)return Ye[e.wAp.NumberSymbols][C.Group]}return Ot}function ot(je){if(!je[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${je[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te(je,Mt){for(let Ye=Mt;Ye>-1;Ye--)if(void 0!==je[Ye])return je[Ye];throw new Error("Locale data API: locale data undefined")}function xe(je){const[Mt,Ye]=je.split(":");return{hours:+Mt,minutes:+Ye}}const ve=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Le={},lt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ht=(()=>((ht=ht||{})[ht.Short=0]="Short",ht[ht.ShortGMT=1]="ShortGMT",ht[ht.Long=2]="Long",ht[ht.Extended=3]="Extended",ht))(),Tt=(()=>((Tt=Tt||{})[Tt.FullYear=0]="FullYear",Tt[Tt.Month=1]="Month",Tt[Tt.Date=2]="Date",Tt[Tt.Hours=3]="Hours",Tt[Tt.Minutes=4]="Minutes",Tt[Tt.Seconds=5]="Seconds",Tt[Tt.FractionalSeconds=6]="FractionalSeconds",Tt[Tt.Day=7]="Day",Tt))(),hi=(()=>((hi=hi||{})[hi.DayPeriods=0]="DayPeriods",hi[hi.Days=1]="Days",hi[hi.Months=2]="Months",hi[hi.Eras=3]="Eras",hi))();function jt(je,Mt,Ye,Ot){let ri=function Fe(je){if(at(je))return je;if("number"==typeof je&&!isNaN(je))return new Date(je);if("string"==typeof je){if(je=je.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(je)){const[ri,Si=1,Oi=1]=je.split("-").map(rn=>+rn);return Gt(ri,Si-1,Oi)}const Ye=parseFloat(je);if(!isNaN(je-Ye))return new Date(Ye);let Ot;if(Ot=je.match(ve))return function rt(je){const Mt=new Date(0);let Ye=0,Ot=0;const ri=je[8]?Mt.setUTCFullYear:Mt.setFullYear,Si=je[8]?Mt.setUTCHours:Mt.setHours;je[9]&&(Ye=Number(je[9]+je[10]),Ot=Number(je[9]+je[11])),ri.call(Mt,Number(je[1]),Number(je[2])-1,Number(je[3]));const Oi=Number(je[4]||0)-Ye,rn=Number(je[5]||0)-Ot,Yn=Number(je[6]||0),At=Math.floor(1e3*parseFloat("0."+(je[7]||0)));return Si.call(Mt,Oi,rn,Yn,At),Mt}(Ot)}const Mt=new Date(je);if(!at(Mt))throw new Error(`Unable to convert "${je}" into a date`);return Mt}(je);Mt=di(Ye,Mt)||Mt;let rn,Oi=[];for(;Mt;){if(rn=lt.exec(Mt),!rn){Oi.push(Mt);break}{Oi=Oi.concat(rn.slice(1));const oi=Oi.pop();if(!oi)break;Mt=oi}}let Yn=ri.getTimezoneOffset();Ot&&(Yn=qe(Ot,Yn),ri=function we(je,Mt,Ye){const Ot=Ye?-1:1,ri=je.getTimezoneOffset();return function Ze(je,Mt){return(je=new Date(je.getTime())).setMinutes(je.getMinutes()+Mt),je}(je,Ot*(qe(Mt,ri)-ri))}(ri,Ot,!0));let At="";return Oi.forEach(oi=>{const mt=function Re(je){if(et[je])return et[je];let Mt;switch(je){case"G":case"GG":case"GGG":Mt=ei(hi.Eras,h.Abbreviated);break;case"GGGG":Mt=ei(hi.Eras,h.Wide);break;case"GGGGG":Mt=ei(hi.Eras,h.Narrow);break;case"y":Mt=Qe(Tt.FullYear,1,0,!1,!0);break;case"yy":Mt=Qe(Tt.FullYear,2,0,!0,!0);break;case"yyy":Mt=Qe(Tt.FullYear,3,0,!1,!0);break;case"yyyy":Mt=Qe(Tt.FullYear,4,0,!1,!0);break;case"Y":Mt=Rt(1);break;case"YY":Mt=Rt(2,!0);break;case"YYY":Mt=Rt(3);break;case"YYYY":Mt=Rt(4);break;case"M":case"L":Mt=Qe(Tt.Month,1,1);break;case"MM":case"LL":Mt=Qe(Tt.Month,2,1);break;case"MMM":Mt=ei(hi.Months,h.Abbreviated);break;case"MMMM":Mt=ei(hi.Months,h.Wide);break;case"MMMMM":Mt=ei(hi.Months,h.Narrow);break;case"LLL":Mt=ei(hi.Months,h.Abbreviated,r.Standalone);break;case"LLLL":Mt=ei(hi.Months,h.Wide,r.Standalone);break;case"LLLLL":Mt=ei(hi.Months,h.Narrow,r.Standalone);break;case"w":Mt=ft(1);break;case"ww":Mt=ft(2);break;case"W":Mt=ft(1,!0);break;case"d":Mt=Qe(Tt.Date,1);break;case"dd":Mt=Qe(Tt.Date,2);break;case"c":case"cc":Mt=Qe(Tt.Day,1);break;case"ccc":Mt=ei(hi.Days,h.Abbreviated,r.Standalone);break;case"cccc":Mt=ei(hi.Days,h.Wide,r.Standalone);break;case"ccccc":Mt=ei(hi.Days,h.Narrow,r.Standalone);break;case"cccccc":Mt=ei(hi.Days,h.Short,r.Standalone);break;case"E":case"EE":case"EEE":Mt=ei(hi.Days,h.Abbreviated);break;case"EEEE":Mt=ei(hi.Days,h.Wide);break;case"EEEEE":Mt=ei(hi.Days,h.Narrow);break;case"EEEEEE":Mt=ei(hi.Days,h.Short);break;case"a":case"aa":case"aaa":Mt=ei(hi.DayPeriods,h.Abbreviated);break;case"aaaa":Mt=ei(hi.DayPeriods,h.Wide);break;case"aaaaa":Mt=ei(hi.DayPeriods,h.Narrow);break;case"b":case"bb":case"bbb":Mt=ei(hi.DayPeriods,h.Abbreviated,r.Standalone,!0);break;case"bbbb":Mt=ei(hi.DayPeriods,h.Wide,r.Standalone,!0);break;case"bbbbb":Mt=ei(hi.DayPeriods,h.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Mt=ei(hi.DayPeriods,h.Abbreviated,r.Format,!0);break;case"BBBB":Mt=ei(hi.DayPeriods,h.Wide,r.Format,!0);break;case"BBBBB":Mt=ei(hi.DayPeriods,h.Narrow,r.Format,!0);break;case"h":Mt=Qe(Tt.Hours,1,-12);break;case"hh":Mt=Qe(Tt.Hours,2,-12);break;case"H":Mt=Qe(Tt.Hours,1);break;case"HH":Mt=Qe(Tt.Hours,2);break;case"m":Mt=Qe(Tt.Minutes,1);break;case"mm":Mt=Qe(Tt.Minutes,2);break;case"s":Mt=Qe(Tt.Seconds,1);break;case"ss":Mt=Qe(Tt.Seconds,2);break;case"S":Mt=Qe(Tt.FractionalSeconds,1);break;case"SS":Mt=Qe(Tt.FractionalSeconds,2);break;case"SSS":Mt=Qe(Tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Mt=Pe(ht.Short);break;case"ZZZZZ":Mt=Pe(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Mt=Pe(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Mt=Pe(ht.Long);break;default:return null}return et[je]=Mt,Mt}(oi);At+=mt?mt(ri,Ye,Yn):"''"===oi?"'":oi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),At}function Gt(je,Mt,Ye){const Ot=new Date(0);return Ot.setFullYear(je,Mt,Ye),Ot.setHours(0,0,0),Ot}function di(je,Mt){const Ye=function I(je){return(0,e.cg1)(je)[e.wAp.LocaleId]}(je);if(Le[Ye]=Le[Ye]||{},Le[Ye][Mt])return Le[Ye][Mt];let Ot="";switch(Mt){case"shortDate":Ot=$(je,c.Short);break;case"mediumDate":Ot=$(je,c.Medium);break;case"longDate":Ot=$(je,c.Long);break;case"fullDate":Ot=$(je,c.Full);break;case"shortTime":Ot=fe(je,c.Short);break;case"mediumTime":Ot=fe(je,c.Medium);break;case"longTime":Ot=fe(je,c.Long);break;case"fullTime":Ot=fe(je,c.Full);break;case"short":const ri=di(je,"shortTime"),Si=di(je,"shortDate");Ot=vt(ye(je,c.Short),[ri,Si]);break;case"medium":const Oi=di(je,"mediumTime"),rn=di(je,"mediumDate");Ot=vt(ye(je,c.Medium),[Oi,rn]);break;case"long":const Yn=di(je,"longTime"),At=di(je,"longDate");Ot=vt(ye(je,c.Long),[Yn,At]);break;case"full":const oi=di(je,"fullTime"),mt=di(je,"fullDate");Ot=vt(ye(je,c.Full),[oi,mt])}return Ot&&(Le[Ye][Mt]=Ot),Ot}function vt(je,Mt){return Mt&&(je=je.replace(/\{([^}]+)}/g,function(Ye,Ot){return null!=Mt&&Ot in Mt?Mt[Ot]:Ye})),je}function kt(je,Mt,Ye="-",Ot,ri){let Si="";(je<0||ri&&je<=0)&&(ri?je=1-je:(je=-je,Si=Ye));let Oi=String(je);for(;Oi.length0||rn>-Ye)&&(rn+=Ye),je===Tt.Hours)0===rn&&-12===Ye&&(rn=12);else if(je===Tt.FractionalSeconds)return function gt(je,Mt){return kt(je,3).substr(0,Mt)}(rn,Mt);const Yn=ke(Oi,C.MinusSign);return kt(rn,Mt,Yn,Ot,ri)}}function ei(je,Mt,Ye=r.Format,Ot=!1){return function(ri,Si){return function Zt(je,Mt,Ye,Ot,ri,Si){switch(Ye){case hi.Months:return function g(je,Mt,Ye){const Ot=(0,e.cg1)(je),Si=Te([Ot[e.wAp.MonthsFormat],Ot[e.wAp.MonthsStandalone]],Mt);return Te(Si,Ye)}(Mt,ri,Ot)[je.getMonth()];case hi.Days:return function n(je,Mt,Ye){const Ot=(0,e.cg1)(je),Si=Te([Ot[e.wAp.DaysFormat],Ot[e.wAp.DaysStandalone]],Mt);return Te(Si,Ye)}(Mt,ri,Ot)[je.getDay()];case hi.DayPeriods:const Oi=je.getHours(),rn=je.getMinutes();if(Si){const At=function Ie(je){const Mt=(0,e.cg1)(je);return ot(Mt),(Mt[e.wAp.ExtraData][2]||[]).map(Ot=>"string"==typeof Ot?xe(Ot):[xe(Ot[0]),xe(Ot[1])])}(Mt),oi=function Ae(je,Mt,Ye){const Ot=(0,e.cg1)(je);ot(Ot);const Si=Te([Ot[e.wAp.ExtraData][0],Ot[e.wAp.ExtraData][1]],Mt)||[];return Te(Si,Ye)||[]}(Mt,ri,Ot),mt=At.findIndex($t=>{if(Array.isArray($t)){const[Ai,ji]=$t,Ke=Oi>=Ai.hours&&rn>=Ai.minutes,Be=Oi0?Math.floor(ri/60):Math.ceil(ri/60);switch(je){case ht.Short:return(ri>=0?"+":"")+kt(Oi,2,Si)+kt(Math.abs(ri%60),2,Si);case ht.ShortGMT:return"GMT"+(ri>=0?"+":"")+kt(Oi,1,Si);case ht.Long:return"GMT"+(ri>=0?"+":"")+kt(Oi,2,Si)+":"+kt(Math.abs(ri%60),2,Si);case ht.Extended:return 0===Ot?"Z":(ri>=0?"+":"")+kt(Oi,2,Si)+":"+kt(Math.abs(ri%60),2,Si);default:throw new Error(`Unknown zone width "${je}"`)}}}function ut(je){return Gt(je.getFullYear(),je.getMonth(),je.getDate()+(4-je.getDay()))}function ft(je,Mt=!1){return function(Ye,Ot){let ri;if(Mt){const Si=new Date(Ye.getFullYear(),Ye.getMonth(),1).getDay()-1,Oi=Ye.getDate();ri=1+Math.floor((Oi+Si)/7)}else{const Si=ut(Ye),Oi=function Me(je){const Mt=Gt(je,0,1).getDay();return Gt(je,0,1+(Mt<=4?4:11)-Mt)}(Si.getFullYear()),rn=Si.getTime()-Oi.getTime();ri=1+Math.round(rn/6048e5)}return kt(ri,je,ke(Ot,C.MinusSign))}}function Rt(je,Mt=!1){return function(Ye,Ot){return kt(ut(Ye).getFullYear(),je,ke(Ot,C.MinusSign),Mt)}}const et={};function qe(je,Mt){je=je.replace(/:/g,"");const Ye=Date.parse("Jan 01, 1970 00:00:00 "+je)/6e4;return isNaN(Ye)?Mt:Ye}function at(je){return je instanceof Date&&!isNaN(je.valueOf())}const yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $e(je){const Mt=parseInt(je);if(isNaN(Mt))throw new Error("Invalid integer literal when parsing "+je);return Mt}function Ji(je,Mt){Mt=encodeURIComponent(Mt);for(const Ye of je.split(";")){const Ot=Ye.indexOf("="),[ri,Si]=-1==Ot?[Ye,""]:[Ye.slice(0,Ot),Ye.slice(Ot+1)];if(ri.trim()===Mt)return decodeURIComponent(Si)}return null}let Wi=(()=>{class je{constructor(Ye,Ot,ri,Si){this._iterableDiffers=Ye,this._keyValueDiffers=Ot,this._ngEl=ri,this._renderer=Si,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Ye){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ye?Ye.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Ye){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ye?Ye.split(/\s+/):Ye,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Ye=this._iterableDiffer.diff(this._rawClass);Ye&&this._applyIterableChanges(Ye)}else if(this._keyValueDiffer){const Ye=this._keyValueDiffer.diff(this._rawClass);Ye&&this._applyKeyValueChanges(Ye)}}_applyKeyValueChanges(Ye){Ye.forEachAddedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ye.forEachChangedItem(Ot=>this._toggleClass(Ot.key,Ot.currentValue)),Ye.forEachRemovedItem(Ot=>{Ot.previousValue&&this._toggleClass(Ot.key,!1)})}_applyIterableChanges(Ye){Ye.forEachAddedItem(Ot=>{if("string"!=typeof Ot.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ot.item)}`);this._toggleClass(Ot.item,!0)}),Ye.forEachRemovedItem(Ot=>this._toggleClass(Ot.item,!1))}_applyClasses(Ye){Ye&&(Array.isArray(Ye)||Ye instanceof Set?Ye.forEach(Ot=>this._toggleClass(Ot,!0)):Object.keys(Ye).forEach(Ot=>this._toggleClass(Ot,!!Ye[Ot])))}_removeClasses(Ye){Ye&&(Array.isArray(Ye)||Ye instanceof Set?Ye.forEach(Ot=>this._toggleClass(Ot,!1)):Object.keys(Ye).forEach(Ot=>this._toggleClass(Ot,!1)))}_toggleClass(Ye,Ot){(Ye=Ye.trim())&&Ye.split(/\s+/g).forEach(ri=>{Ot?this._renderer.addClass(this._ngEl.nativeElement,ri):this._renderer.removeClass(this._ngEl.nativeElement,ri)})}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),je})();class mn{constructor(Mt,Ye,Ot,ri){this.$implicit=Mt,this.ngForOf=Ye,this.index=Ot,this.count=ri}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Yt=(()=>{class je{constructor(Ye,Ot,ri){this._viewContainer=Ye,this._template=Ot,this._differs=ri,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Ye){this._ngForOf=Ye,this._ngForOfDirty=!0}set ngForTrackBy(Ye){this._trackByFn=Ye}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Ye){Ye&&(this._template=Ye)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ye=this._ngForOf;!this._differ&&Ye&&(this._differ=this._differs.find(Ye).create(this.ngForTrackBy))}if(this._differ){const Ye=this._differ.diff(this._ngForOf);Ye&&this._applyChanges(Ye)}}_applyChanges(Ye){const Ot=this._viewContainer;Ye.forEachOperation((ri,Si,Oi)=>{if(null==ri.previousIndex)Ot.createEmbeddedView(this._template,new mn(ri.item,this._ngForOf,-1,-1),null===Oi?void 0:Oi);else if(null==Oi)Ot.remove(null===Si?void 0:Si);else if(null!==Si){const rn=Ot.get(Si);Ot.move(rn,Oi),Mi(rn,ri)}});for(let ri=0,Si=Ot.length;ri{Mi(Ot.get(ri.currentIndex),ri)})}static ngTemplateContextGuard(Ye,Ot){return!0}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),je})();function Mi(je,Mt){je.context.$implicit=Mt.item}let Nt=(()=>{class je{constructor(Ye,Ot){this._viewContainer=Ye,this._context=new Kt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ot}set ngIf(Ye){this._context.$implicit=this._context.ngIf=Ye,this._updateView()}set ngIfThen(Ye){pi("ngIfThen",Ye),this._thenTemplateRef=Ye,this._thenViewRef=null,this._updateView()}set ngIfElse(Ye){pi("ngIfElse",Ye),this._elseTemplateRef=Ye,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Ye,Ot){return!0}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),je})();class Kt{constructor(){this.$implicit=null,this.ngIf=null}}function pi(je,Mt){if(Mt&&!Mt.createEmbeddedView)throw new Error(`${je} must be a TemplateRef, but received '${(0,e.AaK)(Mt)}'.`)}class Ri{constructor(Mt,Ye){this._viewContainerRef=Mt,this._templateRef=Ye,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Mt){Mt&&!this._created?this.create():!Mt&&this._created&&this.destroy()}}let ki=(()=>{class je{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Ye){this._ngSwitch=Ye,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ye){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ye)}_matchCase(Ye){const Ot=Ye==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ot,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ot}_updateDefaultCases(Ye){if(this._defaultViews&&Ye!==this._defaultUsed){this._defaultUsed=Ye;for(let Ot=0;Ot{class je{constructor(Ye,Ot,ri){this.ngSwitch=ri,ri._addCase(),this._view=new Ri(Ye,Ot)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(ki,9))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),je})(),Hn=(()=>{class je{constructor(Ye,Ot,ri){ri._addDefault(new Ri(Ye,Ot))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(ki,9))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngSwitchDefault",""]]}),je})(),wi=(()=>{class je{constructor(Ye,Ot,ri){this._ngEl=Ye,this._differs=Ot,this._renderer=ri,this._ngStyle=null,this._differ=null}set ngStyle(Ye){this._ngStyle=Ye,!this._differ&&Ye&&(this._differ=this._differs.find(Ye).create())}ngDoCheck(){if(this._differ){const Ye=this._differ.diff(this._ngStyle);Ye&&this._applyChanges(Ye)}}_setStyle(Ye,Ot){const[ri,Si]=Ye.split(".");null!=(Ot=null!=Ot&&Si?`${Ot}${Si}`:Ot)?this._renderer.setStyle(this._ngEl.nativeElement,ri,Ot):this._renderer.removeStyle(this._ngEl.nativeElement,ri)}_applyChanges(Ye){Ye.forEachRemovedItem(Ot=>this._setStyle(Ot.key,null)),Ye.forEachAddedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue)),Ye.forEachChangedItem(Ot=>this._setStyle(Ot.key,Ot.currentValue))}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),je})(),Yi=(()=>{class je{constructor(Ye){this._viewContainerRef=Ye,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Ye){if(Ye.ngTemplateOutlet){const Ot=this._viewContainerRef;this._viewRef&&Ot.remove(Ot.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Ot.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Ye.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.s_b))},je.\u0275dir=e.lG2({type:je,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),je})();function Gn(je,Mt){return new e.vHH(2100,"")}class ar{createSubscription(Mt,Ye){return Mt.subscribe({next:Ye,error:Ot=>{throw Ot}})}dispose(Mt){Mt.unsubscribe()}onDestroy(Mt){Mt.unsubscribe()}}class kr{createSubscription(Mt,Ye){return Mt.then(Ye,Ot=>{throw Ot})}dispose(Mt){}onDestroy(Mt){}}const Pr=new kr,ia=new ar;let sa=(()=>{class je{constructor(Ye){this._ref=Ye,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Ye){return this._obj?Ye!==this._obj?(this._dispose(),this.transform(Ye)):this._latestValue:(Ye&&this._subscribe(Ye),this._latestValue)}_subscribe(Ye){this._obj=Ye,this._strategy=this._selectStrategy(Ye),this._subscription=this._strategy.createSubscription(Ye,Ot=>this._updateLatestValue(Ye,Ot))}_selectStrategy(Ye){if((0,e.QGY)(Ye))return Pr;if((0,e.F4k)(Ye))return ia;throw Gn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ye,Ot){Ye===this._obj&&(this._latestValue=Ot,this._ref.markForCheck())}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.sBO,16))},je.\u0275pipe=e.Yjl({name:"async",type:je,pure:!1}),je})(),oa=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.toLowerCase()}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"lowercase",type:je,pure:!0}),je})();const La=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Ta=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.replace(La,Ot=>Ot[0].toUpperCase()+Ot.substr(1).toLowerCase())}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"titlecase",type:je,pure:!0}),je})(),rr=(()=>{class je{transform(Ye){if(null==Ye)return null;if("string"!=typeof Ye)throw Gn();return Ye.toUpperCase()}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"uppercase",type:je,pure:!0}),je})();const Yr=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let na=(()=>{class je{constructor(Ye,Ot){this.locale=Ye,this.defaultTimezone=Ot}transform(Ye,Ot="mediumDate",ri,Si){var Oi;if(null==Ye||""===Ye||Ye!=Ye)return null;try{return jt(Ye,Ot,Si||this.locale,null!==(Oi=null!=ri?ri:this.defaultTimezone)&&void 0!==Oi?Oi:void 0)}catch(rn){throw Gn()}}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.soG,16),e.Y36(Yr,24))},je.\u0275pipe=e.Yjl({name:"date",type:je,pure:!0}),je})(),Rr=(()=>{class je{transform(Ye){return JSON.stringify(Ye,null,2)}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"json",type:je,pure:!1}),je})(),la=(()=>{class je{constructor(Ye){this.differs=Ye,this.keyValues=[],this.compareFn=tr}transform(Ye,Ot=tr){if(!Ye||!(Ye instanceof Map)&&"object"!=typeof Ye)return null;this.differ||(this.differ=this.differs.find(Ye).create());const ri=this.differ.diff(Ye),Si=Ot!==this.compareFn;return ri&&(this.keyValues=[],ri.forEachItem(Oi=>{this.keyValues.push(function Xn(je,Mt){return{key:je,value:Mt}}(Oi.key,Oi.currentValue))})),(ri||Si)&&(this.keyValues.sort(Ot),this.compareFn=Ot),this.keyValues}}return je.\u0275fac=function(Ye){return new(Ye||je)(e.Y36(e.aQg,16))},je.\u0275pipe=e.Yjl({name:"keyvalue",type:je,pure:!1}),je})();function tr(je,Mt){const Ye=je.key,Ot=Mt.key;if(Ye===Ot)return 0;if(void 0===Ye)return 1;if(void 0===Ot)return-1;if(null===Ye)return 1;if(null===Ot)return-1;if("string"==typeof Ye&&"string"==typeof Ot)return Ye{class je{constructor(Ye){this._locale=Ye}transform(Ye,Ot,ri){if(!function jr(je){return!(null==je||""===je||je!=je)}(Ye))return null;ri=ri||this._locale;try{return function Ft(je,Mt,Ye){return function Bi(je,Mt,Ye,Ot,ri,Si,Oi=!1){let rn="",Yn=!1;if(isFinite(je)){let At=function It(je){let Ot,ri,Si,Oi,rn,Mt=Math.abs(je)+"",Ye=0;for((ri=Mt.indexOf("."))>-1&&(Mt=Mt.replace(".","")),(Si=Mt.search(/e/i))>0?(ri<0&&(ri=Si),ri+=+Mt.slice(Si+1),Mt=Mt.substring(0,Si)):ri<0&&(ri=Mt.length),Si=0;"0"===Mt.charAt(Si);Si++);if(Si===(rn=Mt.length))Ot=[0],ri=1;else{for(rn--;"0"===Mt.charAt(rn);)rn--;for(ri-=Si,Ot=[],Oi=0;Si<=rn;Si++,Oi++)Ot[Oi]=Number(Mt.charAt(Si))}return ri>22&&(Ot=Ot.splice(0,21),Ye=ri-1,ri=1),{digits:Ot,exponent:Ye,integerLen:ri}}(je);Oi&&(At=function it(je){if(0===je.digits[0])return je;const Mt=je.digits.length-je.integerLen;return je.exponent?je.exponent+=2:(0===Mt?je.digits.push(0,0):1===Mt&&je.digits.push(0),je.integerLen+=2),je}(At));let oi=Mt.minInt,mt=Mt.minFrac,$t=Mt.maxFrac;if(Si){const Lt=Si.match(yt);if(null===Lt)throw new Error(`${Si} is not a valid digit info`);const vi=Lt[1],$i=Lt[3],Nn=Lt[5];null!=vi&&(oi=$e(vi)),null!=$i&&(mt=$e($i)),null!=Nn?$t=$e(Nn):null!=$i&&mt>$t&&($t=mt)}!function de(je,Mt,Ye){if(Mt>Ye)throw new Error(`The minimum number of digits after fraction (${Mt}) is higher than the maximum (${Ye}).`);let Ot=je.digits,ri=Ot.length-je.integerLen;const Si=Math.min(Math.max(Mt,ri),Ye);let Oi=Si+je.integerLen,rn=Ot[Oi];if(Oi>0){Ot.splice(Math.max(je.integerLen,Oi));for(let mt=Oi;mt=5)if(Oi-1<0){for(let mt=0;mt>Oi;mt--)Ot.unshift(0),je.integerLen++;Ot.unshift(1),je.integerLen++}else Ot[Oi-1]++;for(;ri=At?ji.pop():Yn=!1),$t>=10?1:0},0);oi&&(Ot.unshift(oi),je.integerLen++)}(At,mt,$t);let Ai=At.digits,ji=At.integerLen;const Ke=At.exponent;let Be=[];for(Yn=Ai.every(Lt=>!Lt);ji0?Be=Ai.splice(ji,Ai.length):(Be=Ai,Ai=[0]);const Ne=[];for(Ai.length>=Mt.lgSize&&Ne.unshift(Ai.splice(-Mt.lgSize,Ai.length).join(""));Ai.length>Mt.gSize;)Ne.unshift(Ai.splice(-Mt.gSize,Ai.length).join(""));Ai.length&&Ne.unshift(Ai.join("")),rn=Ne.join(ke(Ye,Ot)),Be.length&&(rn+=ke(Ye,ri)+Be.join("")),Ke&&(rn+=ke(Ye,C.Exponential)+"+"+Ke)}else rn=ke(Ye,C.Infinity);return rn=je<0&&!Yn?Mt.negPre+rn+Mt.negSuf:Mt.posPre+rn+Mt.posSuf,rn}(je,function pt(je,Mt="-"){const Ye={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ot=je.split(";"),ri=Ot[0],Si=Ot[1],Oi=-1!==ri.indexOf(".")?ri.split("."):[ri.substring(0,ri.lastIndexOf("0")+1),ri.substring(ri.lastIndexOf("0")+1)],rn=Oi[0],Yn=Oi[1]||"";Ye.posPre=rn.substr(0,rn.indexOf("#"));for(let oi=0;oi{class je{transform(Ye,Ot,ri){if(null==Ye)return null;if(!this.supports(Ye))throw Gn();return Ye.slice(Ot,ri)}supports(Ye){return"string"==typeof Ye||Array.isArray(Ye)}}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275pipe=e.Yjl({name:"slice",type:je,pure:!1}),je})(),mr=(()=>{class je{}return je.\u0275fac=function(Ye){return new(Ye||je)},je.\u0275mod=e.oAB({type:je}),je.\u0275inj=e.cJS({}),je})();const gr="browser";function Jn(je){return je===gr}function ga(je){return"server"===je}let Hr=(()=>{class je{}return je.\u0275prov=(0,e.Yz7)({token:je,providedIn:"root",factory:()=>new br((0,e.LFG)(d),window)}),je})();class br{constructor(Mt,Ye){this.document=Mt,this.window=Ye,this.offset=()=>[0,0]}setOffset(Mt){this.offset=Array.isArray(Mt)?()=>Mt:Mt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Mt){this.supportsScrolling()&&this.window.scrollTo(Mt[0],Mt[1])}scrollToAnchor(Mt){if(!this.supportsScrolling())return;const Ye=function ha(je,Mt){const Ye=je.getElementById(Mt)||je.getElementsByName(Mt)[0];if(Ye)return Ye;if("function"==typeof je.createTreeWalker&&je.body&&(je.body.createShadowRoot||je.body.attachShadow)){const Ot=je.createTreeWalker(je.body,NodeFilter.SHOW_ELEMENT);let ri=Ot.currentNode;for(;ri;){const Si=ri.shadowRoot;if(Si){const Oi=Si.getElementById(Mt)||Si.querySelector(`[name="${Mt}"]`);if(Oi)return Oi}ri=Ot.nextNode()}}return null}(this.document,Mt);Ye&&(this.scrollToElement(Ye),Ye.focus())}setHistoryScrollRestoration(Mt){if(this.supportScrollRestoration()){const Ye=this.window.history;Ye&&Ye.scrollRestoration&&(Ye.scrollRestoration=Mt)}}scrollToElement(Mt){const Ye=Mt.getBoundingClientRect(),Ot=Ye.left+this.window.pageXOffset,ri=Ye.top+this.window.pageYOffset,Si=this.offset();this.window.scrollTo(Ot-Si[0],ri-Si[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Mt=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!Mt||!Mt.writable&&!Mt.set)}catch(Mt){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Mt){return!1}}}function Fr(je){return Object.getOwnPropertyDescriptor(je,"scrollRestoration")}class Wn{}},8138:(He,j,p)=>{"use strict";p.d(j,{JF:()=>xe,LE:()=>U,TP:()=>I,eN:()=>C});var e=p(9808),i=p(5e3),u=p(9646),b=p(8306),a=p(4351),y=p(9300),d=p(4004);class P{}class D{}class T{constructor(ve){this.normalizedNames=new Map,this.lazyUpdate=null,ve?this.lazyInit="string"==typeof ve?()=>{this.headers=new Map,ve.split("\n").forEach(Le=>{const lt=Le.indexOf(":");if(lt>0){const ht=Le.slice(0,lt),Tt=ht.toLowerCase(),hi=Le.slice(lt+1).trim();this.maybeSetNormalizedName(ht,Tt),this.headers.has(Tt)?this.headers.get(Tt).push(hi):this.headers.set(Tt,[hi])}})}:()=>{this.headers=new Map,Object.keys(ve).forEach(Le=>{let lt=ve[Le];const ht=Le.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(this.headers.set(ht,lt),this.maybeSetNormalizedName(Le,ht))})}:this.headers=new Map}has(ve){return this.init(),this.headers.has(ve.toLowerCase())}get(ve){this.init();const Le=this.headers.get(ve.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ve){return this.init(),this.headers.get(ve.toLowerCase())||null}append(ve,Le){return this.clone({name:ve,value:Le,op:"a"})}set(ve,Le){return this.clone({name:ve,value:Le,op:"s"})}delete(ve,Le){return this.clone({name:ve,value:Le,op:"d"})}maybeSetNormalizedName(ve,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,ve)}init(){this.lazyInit&&(this.lazyInit instanceof T?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ve=>this.applyUpdate(ve)),this.lazyUpdate=null))}copyFrom(ve){ve.init(),Array.from(ve.headers.keys()).forEach(Le=>{this.headers.set(Le,ve.headers.get(Le)),this.normalizedNames.set(Le,ve.normalizedNames.get(Le))})}clone(ve){const Le=new T;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof T?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([ve]),Le}applyUpdate(ve){const Le=ve.name.toLowerCase();switch(ve.op){case"a":case"s":let lt=ve.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(ve.name,Le);const ht=("a"===ve.op?this.headers.get(Le):void 0)||[];ht.push(...lt),this.headers.set(Le,ht);break;case"d":const Tt=ve.value;if(Tt){let hi=this.headers.get(Le);if(!hi)return;hi=hi.filter(jt=>-1===Tt.indexOf(jt)),0===hi.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,hi)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(ve){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>ve(this.normalizedNames.get(Le),this.headers.get(Le)))}}class M{encodeKey(ve){return w(ve)}encodeValue(ve){return w(ve)}decodeKey(ve){return decodeURIComponent(ve)}decodeValue(ve){return decodeURIComponent(ve)}}const E=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w(ue){return encodeURIComponent(ue).replace(E,(ve,Le)=>{var lt;return null!==(lt=k[Le])&&void 0!==lt?lt:ve})}function z(ue){return`${ue}`}class U{constructor(ve={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ve.encoder||new M,ve.fromString){if(ve.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function A(ue,ve){const Le=new Map;return ue.length>0&&ue.replace(/^\?/,"").split("&").forEach(ht=>{const Tt=ht.indexOf("="),[hi,jt]=-1==Tt?[ve.decodeKey(ht),""]:[ve.decodeKey(ht.slice(0,Tt)),ve.decodeValue(ht.slice(Tt+1))],Gt=Le.get(hi)||[];Gt.push(jt),Le.set(hi,Gt)}),Le}(ve.fromString,this.encoder)}else ve.fromObject?(this.map=new Map,Object.keys(ve.fromObject).forEach(Le=>{const lt=ve.fromObject[Le];this.map.set(Le,Array.isArray(lt)?lt:[lt])})):this.map=null}has(ve){return this.init(),this.map.has(ve)}get(ve){this.init();const Le=this.map.get(ve);return Le?Le[0]:null}getAll(ve){return this.init(),this.map.get(ve)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ve,Le){return this.clone({param:ve,value:Le,op:"a"})}appendAll(ve){const Le=[];return Object.keys(ve).forEach(lt=>{const ht=ve[lt];Array.isArray(ht)?ht.forEach(Tt=>{Le.push({param:lt,value:Tt,op:"a"})}):Le.push({param:lt,value:ht,op:"a"})}),this.clone(Le)}set(ve,Le){return this.clone({param:ve,value:Le,op:"s"})}delete(ve,Le){return this.clone({param:ve,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(ve=>{const Le=this.encoder.encodeKey(ve);return this.map.get(ve).map(lt=>Le+"="+this.encoder.encodeValue(lt)).join("&")}).filter(ve=>""!==ve).join("&")}clone(ve){const Le=new U({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(ve),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ve=>this.map.set(ve,this.cloneFrom.map.get(ve))),this.updates.forEach(ve=>{switch(ve.op){case"a":case"s":const Le=("a"===ve.op?this.map.get(ve.param):void 0)||[];Le.push(z(ve.value)),this.map.set(ve.param,Le);break;case"d":if(void 0===ve.value){this.map.delete(ve.param);break}{let lt=this.map.get(ve.param)||[];const ht=lt.indexOf(z(ve.value));-1!==ht&<.splice(ht,1),lt.length>0?this.map.set(ve.param,lt):this.map.delete(ve.param)}}}),this.cloneFrom=this.updates=null)}}class ne{constructor(){this.map=new Map}set(ve,Le){return this.map.set(ve,Le),this}get(ve){return this.map.has(ve)||this.map.set(ve,ve.defaultValue()),this.map.get(ve)}delete(ve){return this.map.delete(ve),this}has(ve){return this.map.has(ve)}keys(){return this.map.keys()}}function le(ue){return"undefined"!=typeof ArrayBuffer&&ue instanceof ArrayBuffer}function q(ue){return"undefined"!=typeof Blob&&ue instanceof Blob}function ie(ue){return"undefined"!=typeof FormData&&ue instanceof FormData}class J{constructor(ve,Le,lt,ht){let Tt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ve.toUpperCase(),function Q(ue){switch(ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ht?(this.body=void 0!==lt?lt:null,Tt=ht):Tt=lt,Tt&&(this.reportProgress=!!Tt.reportProgress,this.withCredentials=!!Tt.withCredentials,Tt.responseType&&(this.responseType=Tt.responseType),Tt.headers&&(this.headers=Tt.headers),Tt.context&&(this.context=Tt.context),Tt.params&&(this.params=Tt.params)),this.headers||(this.headers=new T),this.context||(this.context=new ne),this.params){const hi=this.params.toString();if(0===hi.length)this.urlWithParams=Le;else{const jt=Le.indexOf("?");this.urlWithParams=Le+(-1===jt?"?":jtgt.set(Qe,ve.setHeaders[Qe]),di)),ve.setParams&&(vt=Object.keys(ve.setParams).reduce((gt,Qe)=>gt.set(Qe,ve.setParams[Qe]),vt)),new J(lt,ht,hi,{params:vt,headers:di,context:kt,reportProgress:Gt,responseType:Tt,withCredentials:jt})}}var me=(()=>((me=me||{})[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class x{constructor(ve,Le=200,lt="OK"){this.headers=ve.headers||new T,this.status=void 0!==ve.status?ve.status:Le,this.statusText=ve.statusText||lt,this.url=ve.url||null,this.ok=this.status>=200&&this.status<300}}class t extends x{constructor(ve={}){super(ve),this.type=me.ResponseHeader}clone(ve={}){return new t({headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}class r extends x{constructor(ve={}){super(ve),this.type=me.Response,this.body=void 0!==ve.body?ve.body:null}clone(ve={}){return new r({body:void 0!==ve.body?ve.body:this.body,headers:ve.headers||this.headers,status:void 0!==ve.status?ve.status:this.status,statusText:ve.statusText||this.statusText,url:ve.url||this.url||void 0})}}class h extends x{constructor(ve){super(ve,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ve.url||"(unknown url)"}`:`Http failure response for ${ve.url||"(unknown url)"}: ${ve.status} ${ve.statusText}`,this.error=ve.error||null}}function c(ue,ve){return{body:ve,headers:ue.headers,context:ue.context,observe:ue.observe,params:ue.params,reportProgress:ue.reportProgress,responseType:ue.responseType,withCredentials:ue.withCredentials}}let C=(()=>{class ue{constructor(Le){this.handler=Le}request(Le,lt,ht={}){let Tt;if(Le instanceof J)Tt=Le;else{let Gt,di;Gt=ht.headers instanceof T?ht.headers:new T(ht.headers),ht.params&&(di=ht.params instanceof U?ht.params:new U({fromObject:ht.params})),Tt=new J(Le,lt,void 0!==ht.body?ht.body:null,{headers:Gt,context:ht.context,params:di,reportProgress:ht.reportProgress,responseType:ht.responseType||"json",withCredentials:ht.withCredentials})}const hi=(0,u.of)(Tt).pipe((0,a.b)(Gt=>this.handler.handle(Gt)));if(Le instanceof J||"events"===ht.observe)return hi;const jt=hi.pipe((0,y.h)(Gt=>Gt instanceof r));switch(ht.observe||"body"){case"body":switch(Tt.responseType){case"arraybuffer":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return jt.pipe((0,d.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return jt.pipe((0,d.U)(Gt=>Gt.body))}case"response":return jt;default:throw new Error(`Unreachable: unhandled observe type ${ht.observe}}`)}}delete(Le,lt={}){return this.request("DELETE",Le,lt)}get(Le,lt={}){return this.request("GET",Le,lt)}head(Le,lt={}){return this.request("HEAD",Le,lt)}jsonp(Le,lt){return this.request("JSONP",Le,{params:(new U).append(lt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,lt={}){return this.request("OPTIONS",Le,lt)}patch(Le,lt,ht={}){return this.request("PATCH",Le,c(ht,lt))}post(Le,lt,ht={}){return this.request("POST",Le,c(ht,lt))}put(Le,lt,ht={}){return this.request("PUT",Le,c(ht,lt))}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(P))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();class S{constructor(ve,Le){this.next=ve,this.interceptor=Le}handle(ve){return this.interceptor.intercept(ve,this.next)}}const I=new i.OlP("HTTP_INTERCEPTORS");let _=(()=>{class ue{intercept(Le,lt){return lt.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const ke=/^\)\]\}',?\n/;let te=(()=>{class ue{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b.y(lt=>{const ht=this.xhrFactory.build();if(ht.open(Le.method,Le.urlWithParams),Le.withCredentials&&(ht.withCredentials=!0),Le.headers.forEach((Qe,_t)=>ht.setRequestHeader(Qe,_t.join(","))),Le.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const Qe=Le.detectContentTypeHeader();null!==Qe&&ht.setRequestHeader("Content-Type",Qe)}if(Le.responseType){const Qe=Le.responseType.toLowerCase();ht.responseType="json"!==Qe?Qe:"text"}const Tt=Le.serializeBody();let hi=null;const jt=()=>{if(null!==hi)return hi;const Qe=ht.statusText||"OK",_t=new T(ht.getAllResponseHeaders()),ei=function Ee(ue){return"responseURL"in ue&&ue.responseURL?ue.responseURL:/^X-Request-URL:/m.test(ue.getAllResponseHeaders())?ue.getResponseHeader("X-Request-URL"):null}(ht)||Le.url;return hi=new t({headers:_t,status:ht.status,statusText:Qe,url:ei}),hi},Gt=()=>{let{headers:Qe,status:_t,statusText:ei,url:Zt}=jt(),Pe=null;204!==_t&&(Pe=void 0===ht.response?ht.responseText:ht.response),0===_t&&(_t=Pe?200:0);let De=_t>=200&&_t<300;if("json"===Le.responseType&&"string"==typeof Pe){const oe=Pe;Pe=Pe.replace(ke,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(Me){Pe=oe,De&&(De=!1,Pe={error:Me,text:Pe})}}De?(lt.next(new r({body:Pe,headers:Qe,status:_t,statusText:ei,url:Zt||void 0})),lt.complete()):lt.error(new h({error:Pe,headers:Qe,status:_t,statusText:ei,url:Zt||void 0}))},di=Qe=>{const{url:_t}=jt(),ei=new h({error:Qe,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:_t||void 0});lt.error(ei)};let vt=!1;const kt=Qe=>{vt||(lt.next(jt()),vt=!0);let _t={type:me.DownloadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(_t.total=Qe.total),"text"===Le.responseType&&!!ht.responseText&&(_t.partialText=ht.responseText),lt.next(_t)},gt=Qe=>{let _t={type:me.UploadProgress,loaded:Qe.loaded};Qe.lengthComputable&&(_t.total=Qe.total),lt.next(_t)};return ht.addEventListener("load",Gt),ht.addEventListener("error",di),ht.addEventListener("timeout",di),ht.addEventListener("abort",di),Le.reportProgress&&(ht.addEventListener("progress",kt),null!==Tt&&ht.upload&&ht.upload.addEventListener("progress",gt)),ht.send(Tt),lt.next({type:me.Sent}),()=>{ht.removeEventListener("error",di),ht.removeEventListener("abort",di),ht.removeEventListener("load",Gt),ht.removeEventListener("timeout",di),Le.reportProgress&&(ht.removeEventListener("progress",kt),null!==Tt&&ht.upload&&ht.upload.removeEventListener("progress",gt)),ht.readyState!==ht.DONE&&ht.abort()}})}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(e.JF))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})();const ze=new i.OlP("XSRF_COOKIE_NAME"),be=new i.OlP("XSRF_HEADER_NAME");class Z{}let Y=(()=>{class ue{constructor(Le,lt,ht){this.doc=Le,this.platform=lt,this.cookieName=ht,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(e.K0),i.LFG(i.Lbi),i.LFG(ze))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),ot=(()=>{class ue{constructor(Le,lt){this.tokenService=Le,this.headerName=lt}intercept(Le,lt){const ht=Le.url.toLowerCase();if("GET"===Le.method||"HEAD"===Le.method||ht.startsWith("http://")||ht.startsWith("https://"))return lt.handle(Le);const Tt=this.tokenService.getToken();return null!==Tt&&!Le.headers.has(this.headerName)&&(Le=Le.clone({headers:Le.headers.set(this.headerName,Tt)})),lt.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(Z),i.LFG(be))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Ie=(()=>{class ue{constructor(Le,lt){this.backend=Le,this.injector=lt,this.chain=null}handle(Le){if(null===this.chain){const lt=this.injector.get(I,[]);this.chain=lt.reduceRight((ht,Tt)=>new S(ht,Tt),this.backend)}return this.chain.handle(Le)}}return ue.\u0275fac=function(Le){return new(Le||ue)(i.LFG(D),i.LFG(i.zs3))},ue.\u0275prov=i.Yz7({token:ue,factory:ue.\u0275fac}),ue})(),Te=(()=>{class ue{static disable(){return{ngModule:ue,providers:[{provide:ot,useClass:_}]}}static withOptions(Le={}){return{ngModule:ue,providers:[Le.cookieName?{provide:ze,useValue:Le.cookieName}:[],Le.headerName?{provide:be,useValue:Le.headerName}:[]]}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({providers:[ot,{provide:I,useExisting:ot,multi:!0},{provide:Z,useClass:Y},{provide:ze,useValue:"XSRF-TOKEN"},{provide:be,useValue:"X-XSRF-TOKEN"}]}),ue})(),xe=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=i.oAB({type:ue}),ue.\u0275inj=i.cJS({providers:[C,{provide:P,useClass:Ie},te,{provide:D,useExisting:te}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ue})()},5e3:(He,j,p)=>{"use strict";p.d(j,{$8M:()=>sl,$Z:()=>Pc,AFp:()=>w8,ALo:()=>$f,AaK:()=>P,AsE:()=>$c,BQk:()=>Fc,CHM:()=>ms,CRH:()=>fu,CZH:()=>xu,CqO:()=>Vc,DdM:()=>Bf,Dn7:()=>iu,EJc:()=>Y7,EiD:()=>El,EpF:()=>o0,F$t:()=>ph,F4k:()=>j2,FYo:()=>Df,FiY:()=>n1,G48:()=>um,Gf:()=>hu,GfV:()=>kf,GkF:()=>s0,Gpc:()=>M,Gre:()=>Rh,HOy:()=>M0,Hsn:()=>mh,Ikx:()=>Dn,JOm:()=>ys,JVY:()=>t5,Jf7:()=>W3,L6k:()=>dd,LAX:()=>hd,LFG:()=>Fa,LSH:()=>Sl,Lbi:()=>G7,MAs:()=>es,MGl:()=>Z2,NdJ:()=>R1,O4$:()=>ur,OlP:()=>Or,Oqu:()=>b0,PXZ:()=>am,PiD:()=>Fs,Q6J:()=>Rc,QGY:()=>ts,Qsj:()=>If,R0b:()=>Ks,RDi:()=>Fr,Rgc:()=>il,SBq:()=>t3,Sil:()=>K7,Suo:()=>uu,TTD:()=>jr,TgZ:()=>Y2,Tol:()=>Sh,Udp:()=>Gc,VKq:()=>Uf,VLi:()=>rm,W1O:()=>d8,WFA:()=>l0,WLB:()=>Gf,X6Q:()=>z8,XFs:()=>Ae,Xpm:()=>ut,Y36:()=>Wo,YKP:()=>$h,YNc:()=>xc,Yjl:()=>rt,Yz7:()=>$,ZZ4:()=>Nu,_Bn:()=>Mf,_UZ:()=>P1,_Vd:()=>k0,_c5:()=>Dm,_uU:()=>y0,aQg:()=>Hu,c2e:()=>L8,cJS:()=>ye,cg1:()=>pa,d8E:()=>En,dDg:()=>I8,deG:()=>So,dqk:()=>di,eBb:()=>i5,eFA:()=>R8,ekj:()=>Wc,f3M:()=>Z1,g9A:()=>Eu,h0i:()=>J2,hGG:()=>Im,hij:()=>Kc,iGM:()=>a8,ifc:()=>ht,ip1:()=>bu,kEZ:()=>Wf,kL8:()=>Tr,kcU:()=>tt,lG2:()=>Fe,lcZ:()=>Qf,lnq:()=>x0,mCW:()=>Do,n5z:()=>rl,n_E:()=>R0,oAB:()=>qe,oJD:()=>k3,oxw:()=>uh,pB0:()=>n5,q3G:()=>ea,qLn:()=>a2,qOj:()=>_c,qZA:()=>k1,qzn:()=>Ao,s9C:()=>d0,sBO:()=>U8,sIi:()=>P2,s_b:()=>r3,soG:()=>B0,tBr:()=>po,tb:()=>wu,tp0:()=>Ts,uIk:()=>X4,vHH:()=>w,vpe:()=>oo,wAp:()=>ln,xi3:()=>Xf,xp6:()=>c4,yhl:()=>E3,ynx:()=>Hc,z2F:()=>Iu,z3N:()=>Is,zSh:()=>pc,zs3:()=>Us});var e=p(7579),i=p(727),u=p(8306),b=p(6451),a=p(3099);function y(s){for(let l in s)if(s[l]===y)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const m in l)l.hasOwnProperty(m)&&!s.hasOwnProperty(m)&&(s[m]=l[m])}function P(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(P).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const l=s.toString();if(null==l)return""+l;const m=l.indexOf("\n");return-1===m?l:l.substring(0,m)}function D(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const T=y({__forward_ref__:y});function M(s){return s.__forward_ref__=M,s.toString=function(){return P(this())},s}function A(s){return E(s)?s():s}function E(s){return"function"==typeof s&&s.hasOwnProperty(T)&&s.__forward_ref__===M}class w extends Error{constructor(l,m){super(function z(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,m)),this.code=l}}function U(s){return"string"==typeof s?s:null==s?"":String(s)}function W(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():U(s)}function q(s,l){const m=l?` in ${l}`:"";throw new w(-201,`No provider for ${W(s)} found${m}`)}function n(s,l){null==s&&function g(s,l,m,L){throw new Error(`ASSERTION ERROR: ${s}`+(null==L?"":` [Expected=> ${m} ${L} ${l} <=Actual]`))}(l,s,null,"!=")}function $(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function ye(s){return{providers:s.providers||[],imports:s.imports||[]}}function ke(s){return Ee(s,Z)||Ee(s,ot)}function Ee(s,l){return s.hasOwnProperty(l)?s[l]:null}function be(s){return s&&(s.hasOwnProperty(Y)||s.hasOwnProperty(Ie))?s[Y]:null}const Z=y({\u0275prov:y}),Y=y({\u0275inj:y}),ot=y({ngInjectableDef:y}),Ie=y({ngInjectorDef:y});var Ae=(()=>((Ae=Ae||{})[Ae.Default=0]="Default",Ae[Ae.Host=1]="Host",Ae[Ae.Self=2]="Self",Ae[Ae.SkipSelf=4]="SkipSelf",Ae[Ae.Optional=8]="Optional",Ae))();let ce;function xe(s){const l=ce;return ce=s,l}function G(s,l,m){const L=ke(s);return L&&"root"==L.providedIn?void 0===L.value?L.value=L.factory():L.value:m&Ae.Optional?null:void 0!==l?l:void q(P(s),"Injector")}function ue(s){return{toString:s}.toString()}var ve=(()=>((ve=ve||{})[ve.OnPush=0]="OnPush",ve[ve.Default=1]="Default",ve))(),ht=(()=>{return(s=ht||(ht={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",ht;var s})();const Tt="undefined"!=typeof globalThis&&globalThis,hi="undefined"!=typeof window&&window,jt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,di=Tt||"undefined"!=typeof global&&global||hi||jt,gt={},Qe=[],_t=y({\u0275cmp:y}),ei=y({\u0275dir:y}),Zt=y({\u0275pipe:y}),Pe=y({\u0275mod:y}),De=y({\u0275fac:y}),oe=y({__NG_ELEMENT_ID__:y});let Me=0;function ut(s){return ue(()=>{const m={},L={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===ve.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||Qe,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||ht.Emulated,id:"c",styles:s.styles||Qe,_:null,setInput:null,schemas:s.schemas||null,tView:null},N=s.directives,B=s.features,ae=s.pipes;return L.id+=Me++,L.inputs=we(s.inputs,m),L.outputs=we(s.outputs),B&&B.forEach(Se=>Se(L)),L.directiveDefs=N?()=>("function"==typeof N?N():N).map(Rt):null,L.pipeDefs=ae?()=>("function"==typeof ae?ae():ae).map(et):null,L})}function Rt(s){return at(s)||function yt(s){return s[ei]||null}(s)}function et(s){return function mi(s){return s[Zt]||null}(s)}const Re={};function qe(s){return ue(()=>{const l={type:s.type,bootstrap:s.bootstrap||Qe,declarations:s.declarations||Qe,imports:s.imports||Qe,exports:s.exports||Qe,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(Re[s.id]=s.type),l})}function we(s,l){if(null==s)return gt;const m={};for(const L in s)if(s.hasOwnProperty(L)){let N=s[L],B=N;Array.isArray(N)&&(B=N[1],N=N[0]),m[N]=L,l&&(l[N]=B)}return m}const Fe=ut;function rt(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,onDestroy:s.type.prototype.ngOnDestroy||null}}function at(s){return s[_t]||null}function Xt(s,l){const m=s[Pe]||null;if(!m&&!0===l)throw new Error(`Type ${P(s)} does not have '\u0275mod' property.`);return m}function ki(s){return Array.isArray(s)&&"object"==typeof s[1]}function hn(s){return Array.isArray(s)&&!0===s[1]}function Hn(s){return 0!=(8&s.flags)}function An(s){return 2==(2&s.flags)}function Kn(s){return 1==(1&s.flags)}function Cn(s){return null!==s.template}function wi(s){return 0!=(512&s[2])}function lr(s,l){return s.hasOwnProperty(De)?s[De]:null}class ma{constructor(l,m,L){this.previousValue=l,this.currentValue=m,this.firstChange=L}isFirstChange(){return this.firstChange}}function jr(){return Dr}function Dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=Ur),Nr}function Nr(){const s=gr(this),l=null==s?void 0:s.current;if(l){const m=s.previous;if(m===gt)s.previous=l;else for(let L in l)m[L]=l[L];s.current=null,this.ngOnChanges(l)}}function Ur(s,l,m,L){const N=gr(s)||function ra(s,l){return s[mr]=l}(s,{previous:gt,current:null}),B=N.current||(N.current={}),ae=N.previous,Se=this.declaredInputs[m],Ve=ae[Se];B[Se]=new ma(Ve&&Ve.currentValue,l,ae===gt),s[L]=l}jr.ngInherit=!0;const mr="__ngSimpleChanges__";function gr(s){return s[mr]||null}let br;function Fr(s){br=s}function ha(){return void 0!==br?br:"undefined"!=typeof document?document:void 0}function Wn(s){return!!s.listen}const je={createRenderer:(s,l)=>ha()};function Ye(s){for(;Array.isArray(s);)s=s[0];return s}function Si(s,l){return Ye(l[s])}function Oi(s,l){return Ye(l[s.index])}function Yn(s,l){return s.data[l]}function At(s,l){return s[l]}function oi(s,l){const m=l[s];return ki(m)?m:m[0]}function mt(s){return 4==(4&s[2])}function $t(s){return 128==(128&s[2])}function ji(s,l){return null==l?null:s[l]}function Ke(s){s[18]=0}function Be(s,l){s[5]+=l;let m=s,L=s[3];for(;null!==L&&(1===l&&1===m[5]||-1===l&&0===m[5]);)L[5]+=l,m=L,L=L[3]}const Ne={lFrame:Ln(null),bindingsEnabled:!0};function Ca(){return Ne.bindingsEnabled}function Hi(){return Ne.lFrame.lView}function Vn(){return Ne.lFrame.tView}function ms(s){return Ne.lFrame.contextLView=s,s[8]}function Cr(){let s=ss();for(;null!==s&&64===s.type;)s=s.parent;return s}function ss(){return Ne.lFrame.currentTNode}function cr(s,l){const m=Ne.lFrame;m.currentTNode=s,m.isParent=l}function gs(){return Ne.lFrame.isParent}function Cs(){Ne.lFrame.isParent=!1}function Vr(){const s=Ne.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function Oa(){return Ne.lFrame.bindingIndex}function re(){return Ne.lFrame.bindingIndex++}function pe(s){const l=Ne.lFrame,m=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,m}function Ht(s,l){const m=Ne.lFrame;m.bindingIndex=m.bindingRootIndex=s,ni(l)}function ni(s){Ne.lFrame.currentDirectiveIndex=s}function Ci(s){const l=Ne.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function Pi(){return Ne.lFrame.currentQueryIndex}function tn(s){Ne.lFrame.currentQueryIndex=s}function cn(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function wn(s,l,m){if(m&Ae.SkipSelf){let N=l,B=s;for(;!(N=N.parent,null!==N||m&Ae.Host||(N=cn(B),null===N||(B=B[15],10&N.type))););if(null===N)return!1;l=N,s=B}const L=Ne.lFrame=yn();return L.currentTNode=l,L.lView=s,!0}function Pn(s){const l=yn(),m=s[1];Ne.lFrame=l,l.currentTNode=m.firstChild,l.lView=s,l.tView=m,l.contextLView=s,l.bindingIndex=m.bindingStartIndex,l.inI18n=!1}function yn(){const s=Ne.lFrame,l=null===s?null:s.child;return null===l?Ln(s):l}function Ln(s){const l={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:s,child:null,inI18n:!1};return null!==s&&(s.child=l),l}function Qn(){const s=Ne.lFrame;return Ne.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const xr=Qn;function dr(){const s=Qn();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function hr(){return Ne.lFrame.selectedIndex}function zr(s){Ne.lFrame.selectedIndex=s}function zn(){const s=Ne.lFrame;return Yn(s.tView,s.selectedIndex)}function ur(){Ne.lFrame.currentNamespace="svg"}function tt(){!function Et(){Ne.lFrame.currentNamespace=null}()}function qt(s,l){for(let m=l.directiveStart,L=l.directiveEnd;m=L)break}else l[Ve]<0&&(s[18]+=65536),(Se>11>16&&(3&s[2])===l){s[2]+=2048;try{B.call(Se)}finally{}}}else try{B.call(Se)}finally{}}class on{constructor(l,m,L){this.factory=l,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=L}}function Ir(s,l,m){const L=Wn(s);let N=0;for(;Nl){ae=B-1;break}}}for(;B>16}(s),L=l;for(;m>0;)L=L[15],m--;return L}let Bt=!0;function Ce(s){const l=Bt;return Bt=s,l}let nt=0;function Qt(s,l){const m=Di(s,l);if(-1!==m)return m;const L=l[1];L.firstCreatePass&&(s.injectorIndex=l.length,ai(L.data,s),ai(l,null),ai(L.blueprint,null));const N=Vi(s,l),B=s.injectorIndex;if(_e(N)){const ae=Xe(N),Se=We(N,l),Ve=Se[1].data;for(let dt=0;dt<8;dt++)l[B+dt]=Se[ae+dt]|Ve[ae+dt]}return l[B+8]=N,B}function ai(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Di(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function Vi(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let m=0,L=null,N=l;for(;null!==N;){const B=N[1],ae=B.type;if(L=2===ae?B.declTNode:1===ae?N[6]:null,null===L)return-1;if(m++,N=N[15],-1!==L.injectorIndex)return L.injectorIndex|m<<16}return-1}function Mn(s,l,m){!function Dt(s,l,m){let L;"string"==typeof m?L=m.charCodeAt(0)||0:m.hasOwnProperty(oe)&&(L=m[oe]),null==L&&(L=m[oe]=nt++);const N=255&L;l.data[s+(N>>5)]|=1<=0?255&l:Zo:l}(m);if("function"==typeof B){if(!wn(l,s,L))return L&Ae.Host?un(N,m,L):kn(l,m,L,N);try{const ae=B(L);if(null!=ae||L&Ae.Optional)return ae;q(m)}finally{xr()}}else if("number"==typeof B){let ae=null,Se=Di(s,l),Ve=-1,dt=L&Ae.Host?l[16][6]:null;for((-1===Se||L&Ae.SkipSelf)&&(Ve=-1===Se?Vi(s,l):l[Se+8],-1!==Ve&&d3(L,!1)?(ae=l[1],Se=Xe(Ve),l=We(Ve,l)):Se=-1);-1!==Se;){const wt=l[1];if($s(B,Se,wt.data)){const Wt=B1(Se,l,m,ae,L,dt);if(Wt!==Ss)return Wt}Ve=l[Se+8],-1!==Ve&&d3(L,l[1].data[Se+8]===dt)&&$s(B,Se,l)?(ae=wt,Se=Xe(Ve),l=We(Ve,l)):Se=-1}}}return kn(l,m,L,N)}const Ss={};function Zo(){return new Ko(Cr(),Hi())}function B1(s,l,m,L,N,B){const ae=l[1],Se=ae.data[s+8],wt=Ea(Se,ae,m,null==L?An(Se)&&Bt:L!=ae&&0!=(3&Se.type),N&Ae.Host&&B===Se);return null!==wt?lo(l,ae,wt,Se):Ss}function Ea(s,l,m,L,N){const B=s.providerIndexes,ae=l.data,Se=1048575&B,Ve=s.directiveStart,wt=B>>20,ci=N?Se+wt:s.directiveEnd;for(let _i=L?Se:Se+wt;_i=Ve&&Ni.type===m)return _i}if(N){const _i=ae[Ve];if(_i&&Cn(_i)&&_i.type===m)return Ve}return null}function lo(s,l,m,L){let N=s[m];const B=l.data;if(function xn(s){return s instanceof on}(N)){const ae=N;ae.resolving&&function ne(s,l){const m=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new w(-200,`Circular dependency in DI detected for ${s}${m}`)}(W(B[m]));const Se=Ce(ae.canSeeViewProviders);ae.resolving=!0;const Ve=ae.injectImpl?xe(ae.injectImpl):null;wn(s,L,Ae.Default);try{N=s[m]=ae.factory(void 0,B,s,L),l.firstCreatePass&&m>=L.directiveStart&&function Pt(s,l,m){const{ngOnChanges:L,ngOnInit:N,ngDoCheck:B}=l.type.prototype;if(L){const ae=Dr(l);(m.preOrderHooks||(m.preOrderHooks=[])).push(s,ae),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,ae)}N&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-s,N),B&&((m.preOrderHooks||(m.preOrderHooks=[])).push(s,B),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(s,B))}(m,B[m],l)}finally{null!==Ve&&xe(Ve),Ce(Se),ae.resolving=!1,xr()}}return N}function $s(s,l,m){return!!(m[l+(s>>5)]&1<{const l=s.prototype.constructor,m=l[De]||al(l),L=Object.prototype;let N=Object.getPrototypeOf(s.prototype).constructor;for(;N&&N!==L;){const B=N[De]||al(N);if(B&&B!==m)return B;N=Object.getPrototypeOf(N)}return B=>new B})}function al(s){return E(s)?()=>{const l=al(A(s));return l&&l()}:lr(s)}function sl(s){return function zi(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const m=s.attrs;if(m){const L=m.length;let N=0;for(;N{const L=function ol(s){return function(...m){if(s){const L=s(...m);for(const N in L)this[N]=L[N]}}}(l);function N(...B){if(this instanceof N)return L.apply(this,B),this;const ae=new N(...B);return Se.annotation=ae,Se;function Se(Ve,dt,wt){const Wt=Ve.hasOwnProperty(co)?Ve[co]:Object.defineProperty(Ve,co,{value:[]})[co];for(;Wt.length<=wt;)Wt.push(null);return(Wt[wt]=Wt[wt]||[]).push(ae),Ve}}return m&&(N.prototype=Object.create(m.prototype)),N.prototype.ngMetadataName=s,N.annotationCls=N,N})}class Or{constructor(l,m){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=$({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const So=new Or("AnalyzeForEntryComponents");function ls(s,l){void 0===l&&(l=s);for(let m=0;mArray.isArray(m)?Xa(m,l):l(m))}function f3(s,l,m){l>=s.length?s.push(m):s.splice(l,0,m)}function U1(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function qo(s,l){const m=[];for(let L=0;L=0?s[1|L]=m:(L=~L,function q0(s,l,m,L){let N=s.length;if(N==l)s.push(m,L);else if(1===N)s.push(L,s[0]),s[0]=m;else{for(N--,s.push(s[N-1],s[N]);N>l;)s[N]=s[N-2],N--;s[l]=m,s[l+1]=L}}(s,L,l,m)),L}function Jo(s,l){const m=Xs(s,l);if(m>=0)return s[1|m]}function Xs(s,l){return function W1(s,l,m){let L=0,N=s.length>>m;for(;N!==L;){const B=L+(N-L>>1),ae=s[B<l?N=B:L=B+1}return~(N<({token:s})),-1),n1=fo(wo("Optional"),8),Fs=fo(wo("Self"),2),Ts=fo(wo("SkipSelf"),4);let Ds,Q1;function mo(s){var l;return(null===(l=function b3(){if(void 0===Ds&&(Ds=null,di.trustedTypes))try{Ds=di.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ds}())||void 0===l?void 0:l.createHTML(s))||s}function bl(s){var l;return(null===(l=function x3(){if(void 0===Q1&&(Q1=null,di.trustedTypes))try{Q1=di.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Q1}())||void 0===l?void 0:l.createHTML(s))||s}class rs{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class xl extends rs{getTypeName(){return"HTML"}}class q1 extends rs{getTypeName(){return"Style"}}class cd extends rs{getTypeName(){return"Script"}}class M3 extends rs{getTypeName(){return"URL"}}class To extends rs{getTypeName(){return"ResourceURL"}}function Is(s){return s instanceof rs?s.changingThisBreaksApplicationSecurity:s}function Ao(s,l){const m=E3(s);if(null!=m&&m!==l){if("ResourceURL"===m&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===l}function E3(s){return s instanceof rs&&s.getTypeName()||null}function t5(s){return new xl(s)}function dd(s){return new q1(s)}function i5(s){return new cd(s)}function hd(s){return new M3(s)}function n5(s){return new To(s)}class S3{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const m=(new window.DOMParser).parseFromString(mo(l),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(l):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class L3{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const L=this.inertDocument.createElement("body");m.appendChild(L)}}getInertBodyElement(l){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=mo(l),m;const L=this.inertDocument.createElement("body");return L.innerHTML=mo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(L),L}stripCustomNsAttrs(l){const m=l.attributes;for(let N=m.length-1;0Do(l.trim())).join(", ")),this.buf.push(" ",ae,'="',O3(Ve),'"')}var s;return this.buf.push(">"),!0}endElement(l){const m=l.nodeName.toLowerCase();ua.hasOwnProperty(m)&&!A3.hasOwnProperty(m)&&(this.buf.push(""))}chars(l){this.buf.push(O3(l))}checkClobberedElement(l,m){if(m&&(l.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return m}}const pd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,md=/([^\#-~ |!])/g;function O3(s){return s.replace(/&/g,"&").replace(pd,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(md,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let c1;function El(s,l){let m=null;try{c1=c1||function w3(s){const l=new L3(s);return function r5(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch(s){return!1}}()?new S3(l):l}(s);let L=l?String(l):"";m=c1.getInertBodyElement(L);let N=5,B=L;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,L=B,B=m.innerHTML,m=c1.getInertBodyElement(L)}while(L!==B);return mo((new I3).sanitizeChildren(d1(m)||m))}finally{if(m){const L=d1(m)||m;for(;L.firstChild;)L.removeChild(L.firstChild)}}}function d1(s){return"content"in s&&function gd(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ea=(()=>((ea=ea||{})[ea.NONE=0]="NONE",ea[ea.HTML=1]="HTML",ea[ea.STYLE=2]="STYLE",ea[ea.SCRIPT=3]="SCRIPT",ea[ea.URL=4]="URL",ea[ea.RESOURCE_URL=5]="RESOURCE_URL",ea))();function k3(s){const l=Co();return l?bl(l.sanitize(ea.HTML,s)||""):Ao(s,"HTML")?bl(Is(s)):El(ha(),U(s))}function Sl(s){const l=Co();return l?l.sanitize(ea.URL,s)||"":Ao(s,"URL")?Is(s):Do(U(s))}function Co(){const s=Hi();return s&&s[12]}const Ll="__ngContext__";function Va(s,l){s[Ll]=l}function Tl(s){const l=function u1(s){return s[Ll]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function r2(s){return s.ngOriginalError}function kl(s,...l){s.error(...l)}class a2{constructor(){this._console=console}handleError(l){const m=this._findOriginalError(l),L=function Sd(s){return s&&s.ngErrorLogger||kl}(l);L(this._console,"ERROR",l),m&&L(this._console,"ORIGINAL ERROR",m)}_findOriginalError(l){let m=l&&r2(l);for(;m&&r2(m);)m=r2(m);return m||null}}const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(di))();function W3(s){return s.ownerDocument.defaultView}function Os(s){return s instanceof Function?s():s}var ys=(()=>((ys=ys||{})[ys.Important=1]="Important",ys[ys.DashCase=2]="DashCase",ys))();function Nl(s,l){return undefined(s,l)}function ko(s){const l=s[3];return hn(l)?l[3]:l}function Hl(s){return Hd(s[13])}function $3(s){return Hd(s[4])}function Hd(s){for(;null!==s&&!hn(s);)s=s[4];return s}function Po(s,l,m,L,N){if(null!=L){let B,ae=!1;hn(L)?B=L:ki(L)&&(ae=!0,L=L[0]);const Se=Ye(L);0===s&&null!==m?null==N?p1(l,m,Se):vo(l,m,Se,N||null,!0):1===s&&null!==m?vo(l,m,Se,N||null,!0):2===s?function Gl(s,l,m){const L=yo(s,l);L&&function Wd(s,l,m,L){Wn(s)?s.removeChild(l,m,L):l.removeChild(m)}(s,L,l,m)}(l,Se,ae):3===s&&l.destroyNode(Se),null!=B&&function r4(s,l,m,L,N){const B=m[7];B!==Ye(m)&&Po(l,s,L,B,N);for(let Se=10;Se0&&(s[m-1][4]=L[4]);const B=U1(s,10+l);!function l2(s,l){g1(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(L[1],L);const ae=B[19];null!==ae&&ae.detachView(B[1]),L[3]=null,L[4]=null,L[2]&=-129}return L}function q3(s,l){if(!(256&l[2])){const m=l[11];Wn(m)&&m.destroyNode&&g1(s,l,m,3,null,null),function Bd(s){let l=s[13];if(!l)return zl(s[1],s);for(;l;){let m=null;if(ki(l))m=l[13];else{const L=l[10];L&&(m=L)}if(!m){for(;l&&!l[4]&&l!==s;)ki(l)&&zl(l[1],l),l=l[3];null===l&&(l=s),ki(l)&&zl(l[1],l),m=l&&l[4]}l=m}}(l)}}function zl(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function J3(s,l){let m;if(null!=s&&null!=(m=s.destroyHooks))for(let L=0;L=0?L[N=dt]():L[N=-dt].unsubscribe(),B+=2}else{const ae=L[N=m[B+1]];m[B].call(ae)}if(null!==L){for(let B=N+1;BB?"":N[Wt+1].toLowerCase();const _i=8&L?ci:null;if(_i&&-1!==a4(_i,dt,0)||2&L&&dt!==ci){if(ds(L))return!1;ae=!0}}}}else{if(!ae&&!ds(L)&&!ds(Ve))return!1;if(ae&&ds(Ve))continue;ae=!1,L=Ve|1&L}}return ds(L)||ae}function ds(s){return 0==(1&s)}function jd(s,l,m,L){if(null===l)return-1;let N=0;if(L||!m){let B=!1;for(;N-1)for(m++;m0?'="'+Se+'"':"")+"]"}else 8&L?N+="."+ae:4&L&&(N+=" "+ae);else""!==N&&!ds(ae)&&(l+=g2(B,N),N=""),L=ae,B=B||!ds(L);m++}return""!==N&&(l+=g2(B,N)),l}const Bn={};function c4(s){d4(Vn(),Hi(),hr()+s,!1)}function d4(s,l,m,L){if(!L)if(3==(3&l[2])){const B=s.preOrderCheckHooks;null!==B&&gi(l,B,m)}else{const B=s.preOrderHooks;null!==B&&ti(l,B,0,m)}zr(m)}function _1(s,l){return s<<17|l<<2}function hs(s){return s>>17&32767}function $l(s){return 2|s}function ks(s){return(131068&s)>>2}function Ql(s,l){return-131069&s|l<<2}function C2(s){return 1|s}function l6(s,l){const m=s.contentQueries;if(null!==m)for(let L=0;L20&&d4(s,l,20,!1),m(L,N)}finally{zr(B)}}function x4(s,l,m){if(Hn(l)){const N=l.directiveEnd;for(let B=l.directiveStart;B0;){const m=s[--l];if("number"==typeof m&&m<0)return m}return 0})(Se)!=Ve&&Se.push(Ve),Se.push(L,N,ae)}}function _6(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function y6(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function w5(s,l,m){if(m){if(l.exportAs)for(let L=0;L0&&L2(m)}}function L2(s){for(let L=Hl(s);null!==L;L=$3(L))for(let N=10;N0&&L2(B)}const m=s[1].components;if(null!==m)for(let L=0;L0&&L2(N)}}function w6(s,l){const m=oi(l,s),L=m[1];(function P4(s,l){for(let m=l.length;mPromise.resolve(null))();function N4(s){return s[7]||(s[7]=[])}function H4(s){return s.cleanup||(s.cleanup=[])}function F4(s,l,m){return(null===s||Cn(s))&&(m=function Ot(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(m[l.index])),m[11]}function A6(s,l){const m=s[9],L=m?m.get(a2,null):null;L&&L.handleError(l)}function V4(s,l,m,L,N){for(let B=0;Bthis.processProvider(Se,l,m)),Xa([l],Se=>this.processInjectorType(Se,[],B)),this.records.set(fc,v1(void 0,this));const ae=this.records.get(pc);this.scope=null!=ae?ae.value:null,this.source=N||("object"==typeof l?null:P(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,m=qs,L=Ae.Default){this.assertNotDestroyed();const N=gl(this),B=xe(void 0);try{if(!(L&Ae.SkipSelf)){let Se=this.records.get(l);if(void 0===Se){const Ve=function P5(s){return"function"==typeof s||"object"==typeof s&&s instanceof Or}(l)&&ke(l);Se=Ve&&this.injectableDefInScope(Ve)?v1(Cc(l),O2):null,this.records.set(l,Se)}if(null!=Se)return this.hydrate(l,Se)}return(L&Ae.Self?gc():this.parent).get(l,m=L&Ae.Optional&&m===qs?null:m)}catch(ae){if("NullInjectorError"===ae.name){if((ae[uo]=ae[uo]||[]).unshift(P(l)),N)throw ae;return function nd(s,l,m,L){const N=s[uo];throw l[e1]&&N.unshift(l[e1]),s.message=function C3(s,l,m,L=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let N=P(l);if(Array.isArray(l))N=l.map(P).join(" -> ");else if("object"==typeof l){let B=[];for(let ae in l)if(l.hasOwnProperty(ae)){let Se=l[ae];B.push(ae+":"+("string"==typeof Se?JSON.stringify(Se):P(Se)))}N=`{${B.join(", ")}}`}return`${m}${L?"("+L+")":""}[${N}]: ${s.replace(ml,"\n ")}`}("\n"+s.message,N,m,L),s.ngTokenPath=N,s[uo]=null,s}(ae,l,"R3InjectorError",this.source)}throw ae}finally{xe(B),gl(N)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((L,N)=>l.push(P(N))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processInjectorType(l,m,L){if(!(l=A(l)))return!1;let N=be(l);const B=null==N&&l.ngModule||void 0,ae=void 0===B?l:B,Se=-1!==L.indexOf(ae);if(void 0!==B&&(N=be(B)),null==N)return!1;if(null!=N.imports&&!Se){let wt;L.push(ae);try{Xa(N.imports,Wt=>{this.processInjectorType(Wt,m,L)&&(void 0===wt&&(wt=[]),wt.push(Wt))})}finally{}if(void 0!==wt)for(let Wt=0;Wtthis.processProvider(Ni,ci,_i||Qe))}}this.injectorDefTypes.add(ae);const Ve=lr(ae)||(()=>new ae);this.records.set(ae,v1(Ve,O2));const dt=N.providers;if(null!=dt&&!Se){const wt=l;Xa(dt,Wt=>this.processProvider(Wt,wt,dt))}return void 0!==B&&void 0!==l.providers}processProvider(l,m,L){let N=y1(l=A(l))?l:A(l&&l.provide);const B=function N6(s,l,m){return H6(s)?v1(void 0,s.useValue):v1(z4(s),O2)}(l);if(y1(l)||!0!==l.multi)this.records.get(N);else{let ae=this.records.get(N);ae||(ae=v1(void 0,O2,!0),ae.factory=()=>m3(ae.multi),this.records.set(N,ae)),N=l,ae.multi.push(l)}this.records.set(N,B)}hydrate(l,m){return m.value===O2&&(m.value=k6,m.value=m.factory()),"object"==typeof m.value&&m.value&&function k5(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(l){if(!l.providedIn)return!1;const m=A(l.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Cc(s){const l=ke(s),m=null!==l?l.factory:lr(s);if(null!==m)return m;if(s instanceof Or)throw new w(204,!1);if(s instanceof Function)return function D5(s){const l=s.length;if(l>0)throw qo(l,"?"),new w(204,!1);const m=function te(s){const l=s&&(s[Z]||s[ot]);if(l){const m=function ze(s){if(s.hasOwnProperty("name"))return s.name;const l=(""+s).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),l}return null}(s);return null!==m?()=>m.factory(s):()=>new s}(s);throw new w(204,!1)}function z4(s,l,m){let L;if(y1(s)){const N=A(s);return lr(N)||Cc(N)}if(H6(s))L=()=>A(s.useValue);else if(function B4(s){return!(!s||!s.useFactory)}(s))L=()=>s.useFactory(...m3(s.deps||[]));else if(function I5(s){return!(!s||!s.useExisting)}(s))L=()=>Fa(A(s.useExisting));else{const N=A(s&&(s.useClass||s.provide));if(!function O5(s){return!!s.deps}(s))return lr(N)||Cc(N);L=()=>new N(...m3(s.deps))}return L}function v1(s,l,m=!1){return{factory:s,value:l,multi:m?[]:void 0}}function H6(s){return null!==s&&"object"==typeof s&&id in s}function y1(s){return"function"==typeof s}let Us=(()=>{class s{static create(m,L){var N;if(Array.isArray(m))return P6({name:""},L,m,"");{const B=null!==(N=m.name)&&void 0!==N?N:"";return P6({name:B},m.parent,m.providers,B)}}}return s.THROW_IF_NOT_FOUND=qs,s.NULL=new O6,s.\u0275prov=$({token:s,providedIn:"any",factory:()=>Fa(fc)}),s.__NG_ELEMENT_ID__=-1,s})();function Q6(s,l){qt(Tl(s)[1],Cr())}function _c(s){let l=function X6(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),m=!0;const L=[s];for(;l;){let N;if(Cn(s))N=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new w(903,"");N=l.\u0275dir}if(N){if(m){L.push(N);const ae=s;ae.inputs=$4(s.inputs),ae.declaredInputs=$4(s.declaredInputs),ae.outputs=$4(s.outputs);const Se=N.hostBindings;Se&&U5(s,Se);const Ve=N.viewQuery,dt=N.contentQueries;if(Ve&&z5(s,Ve),dt&&B5(s,dt),d(s.inputs,N.inputs),d(s.declaredInputs,N.declaredInputs),d(s.outputs,N.outputs),Cn(N)&&N.data.animation){const wt=s.data;wt.animation=(wt.animation||[]).concat(N.data.animation)}}const B=N.features;if(B)for(let ae=0;ae=0;L--){const N=s[L];N.hostVars=l+=N.hostVars,N.hostAttrs=za(N.hostAttrs,m=za(m,N.hostAttrs))}}(L)}function $4(s){return s===gt?{}:s===Qe?[]:s}function z5(s,l){const m=s.viewQuery;s.viewQuery=m?(L,N)=>{l(L,N),m(L,N)}:l}function B5(s,l){const m=s.contentQueries;s.contentQueries=m?(L,N,B)=>{l(L,N,B),m(L,N,B)}:l}function U5(s,l){const m=s.hostBindings;s.hostBindings=m?(L,N)=>{l(L,N),m(L,N)}:l}let k2=null;function Vo(){if(!k2){const s=di.Symbol;if(s&&s.iterator)k2=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mSe(Ye(nr[L.index])):L.index;if(Wn(m)){let nr=null;if(!Se&&Ve&&(nr=function c0(s,l,m,L){const N=s.cleanup;if(null!=N)for(let B=0;BVe?Se[Ve]:null}"string"==typeof ae&&(B+=2)}return null}(s,l,N,L.index)),null!==nr)(nr.__ngLastListenerFn__||nr).__ngNextListenerFn__=B,nr.__ngLastListenerFn__=B,_i=!1;else{B=zc(L,l,Wt,B,!1);const Er=m.listen(gn,N,B);ci.push(B,Er),wt&&wt.push(N,Tn,Fi,Fi+1)}}else B=zc(L,l,Wt,B,!0),gn.addEventListener(N,B,ae),ci.push(B),wt&&wt.push(N,Tn,Fi,ae)}else B=zc(L,l,Wt,B,!1);const Ni=L.outputs;let Xi;if(_i&&null!==Ni&&(Xi=Ni[N])){const an=Xi.length;if(an)for(let gn=0;gn0;)l=l[15],s--;return l}(s,Ne.lFrame.contextLView))[8]}(s)}function fh(s,l){let m=null;const L=function Kd(s){const l=s.attrs;if(null!=l){const m=l.indexOf(5);if(0==(1&m))return l[m+1]}return null}(s);for(let N=0;N=0}const wa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bc(s){return s.substring(wa.key,wa.keyEnd)}function bh(s,l){const m=wa.textEnd;return m===l?-1:(l=wa.keyEnd=function K5(s,l,m){for(;l32;)l++;return l}(s,wa.key=l,m),N1(s,l,m))}function N1(s,l,m){for(;l=0;m=bh(l,m))Ha(s,Bc(l),!0)}function Ns(s,l,m,L){const N=Hi(),B=Vn(),ae=pe(2);B.firstUpdatePass&&_0(B,s,ae,L),l!==Bn&&Wa(N,ae,l)&&v0(B,B.data[hr()],N,N[11],s,N[ae+1]=function Ih(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=P(Is(s)))),s}(l,m),L,ae)}function Hs(s,l,m,L){const N=Vn(),B=pe(2);N.firstUpdatePass&&_0(N,null,B,L);const ae=Hi();if(m!==Bn&&Wa(ae,B,m)){const Se=N.data[hr()];if(Oh(Se,L)&&!Lh(N,B)){let Ve=L?Se.classesWithoutHost:Se.stylesWithoutHost;null!==Ve&&(m=D(Ve,m||"")),W2(N,Se,ae,m,L)}else!function Ah(s,l,m,L,N,B,ae,Se){N===Bn&&(N=Qe);let Ve=0,dt=0,wt=0=s.expandoStartIndex}function _0(s,l,m,L){const N=s.data;if(null===N[m+1]){const B=N[hr()],ae=Lh(s,m);Oh(B,L)&&null===l&&!ae&&(l=!1),l=function X5(s,l,m,L){const N=Ci(s);let B=L?l.residualClasses:l.residualStyles;if(null===N)0===(L?l.classBindings:l.styleBindings)&&(m=K2(m=jc(null,s,l,m,L),l.attrs,L),B=null);else{const ae=l.directiveStylingLast;if(-1===ae||s[ae]!==N)if(m=jc(N,s,l,m,L),null===B){let Ve=function q5(s,l,m){const L=m?l.classBindings:l.styleBindings;if(0!==ks(L))return s[hs(L)]}(s,l,L);void 0!==Ve&&Array.isArray(Ve)&&(Ve=jc(null,s,l,Ve[1],L),Ve=K2(Ve,l.attrs,L),function Th(s,l,m,L){s[hs(m?l.classBindings:l.styleBindings)]=L}(s,l,L,Ve))}else B=function J5(s,l,m){let L;const N=l.directiveEnd;for(let B=1+l.directiveStylingLast;B0)&&(dt=!0)}else wt=m;if(N)if(0!==Ve){const ci=hs(s[Se+1]);s[L+1]=_1(ci,Se),0!==ci&&(s[ci+1]=Ql(s[ci+1],L)),s[Se+1]=function u4(s,l){return 131071&s|l<<17}(s[Se+1],L)}else s[L+1]=_1(Se,0),0!==Se&&(s[Se+1]=Ql(s[Se+1],L)),Se=L;else s[L+1]=_1(Ve,0),0===Se?Se=L:s[Ve+1]=Ql(s[Ve+1],L),Ve=L;dt&&(s[L+1]=$l(s[L+1])),p0(s,wt,L,!0),p0(s,wt,L,!1),function yh(s,l,m,L,N){const B=N?s.residualClasses:s.residualStyles;null!=B&&"string"==typeof l&&Xs(B,l)>=0&&(m[L+1]=C2(m[L+1]))}(l,wt,s,L,B),ae=_1(Se,Ve),B?l.classBindings=ae:l.styleBindings=ae}(N,B,l,m,ae,L)}}function jc(s,l,m,L,N){let B=null;const ae=m.directiveEnd;let Se=m.directiveStylingLast;for(-1===Se?Se=m.directiveStart:Se++;Se0;){const Ve=s[N],dt=Array.isArray(Ve),wt=dt?Ve[1]:Ve,Wt=null===wt;let ci=m[N+1];ci===Bn&&(ci=Wt?Qe:void 0);let _i=Wt?Jo(ci,L):wt===L?ci:void 0;if(dt&&!Zc(_i)&&(_i=Jo(Ve,L)),Zc(_i)&&(Se=_i,ae))return Se;const Ni=s[N+1];N=ae?hs(Ni):ks(Ni)}if(null!==l){let Ve=B?l.residualClasses:l.residualStyles;null!=Ve&&(Se=Jo(Ve,L))}return Se}function Zc(s){return void 0!==s}function Oh(s,l){return 0!=(s.flags&(l?16:32))}function y0(s,l=""){const m=Hi(),L=Vn(),N=s+20,B=L.firstCreatePass?Ho(L,N,1,l,null):L.data[N],ae=m[N]=function o2(s,l){return Wn(s)?s.createText(l):s.createTextNode(l)}(m[11],l);h2(L,m,ae,B),cr(B,!1)}function b0(s){return Kc("",s,""),b0}function Kc(s,l,m){const L=Hi(),N=Bo(L,s,l,m);return N!==Bn&&Bs(L,hr(),N),Kc}function $c(s,l,m,L,N){const B=Hi(),ae=function x1(s,l,m,L,N,B){const Se=zo(s,Oa(),m,N);return pe(2),Se?l+U(m)+L+U(N)+B:Bn}(B,s,l,m,L,N);return ae!==Bn&&Bs(B,hr(),ae),$c}function x0(s,l,m,L,N,B,ae){const Se=Hi(),Ve=function M1(s,l,m,L,N,B,ae,Se){const dt=N2(s,Oa(),m,N,ae);return pe(3),dt?l+U(m)+L+U(N)+B+U(ae)+Se:Bn}(Se,s,l,m,L,N,B,ae);return Ve!==Bn&&Bs(Se,hr(),Ve),x0}function M0(s,l,m,L,N,B,ae,Se,Ve){const dt=Hi(),wt=Uo(dt,s,l,m,L,N,B,ae,Se,Ve);return wt!==Bn&&Bs(dt,hr(),wt),M0}function Rh(s,l,m){Hs(Ha,Rs,Bo(Hi(),s,l,m),!0)}function Dn(s,l,m){const L=Hi();return Wa(L,re(),l)&&Ja(Vn(),zn(),L,s,l,L[11],m,!0),Dn}function En(s,l,m){const L=Hi();if(Wa(L,re(),l)){const B=Vn(),ae=zn();Ja(B,ae,L,s,l,F4(Ci(B.data),ae,L),m,!0)}return En}const pr=void 0;var Sa=["en",[["a","p"],["AM","PM"],pr],[["AM","PM"],pr,pr],[["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"]],pr,[["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"]],pr,[["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}",pr,"{1} 'at' {0}",pr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mr(s){const m=Math.floor(Math.abs(s)),L=s.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===L?1:5}];let Lr={};function pa(s){const l=function ja(s){return s.toLowerCase().replace(/_/g,"-")}(s);let m=Ya(l);if(m)return m;const L=l.split("-")[0];if(m=Ya(L),m)return m;if("en"===L)return Sa;throw new Error(`Missing locale data for the locale "${s}".`)}function Tr(s){return pa(s)[ln.PluralCase]}function Ya(s){return s in Lr||(Lr[s]=di.ng&&di.ng.common&&di.ng.common.locales&&di.ng.common.locales[s]),Lr[s]}var ln=(()=>((ln=ln||{})[ln.LocaleId=0]="LocaleId",ln[ln.DayPeriodsFormat=1]="DayPeriodsFormat",ln[ln.DayPeriodsStandalone=2]="DayPeriodsStandalone",ln[ln.DaysFormat=3]="DaysFormat",ln[ln.DaysStandalone=4]="DaysStandalone",ln[ln.MonthsFormat=5]="MonthsFormat",ln[ln.MonthsStandalone=6]="MonthsStandalone",ln[ln.Eras=7]="Eras",ln[ln.FirstDayOfWeek=8]="FirstDayOfWeek",ln[ln.WeekendRange=9]="WeekendRange",ln[ln.DateFormat=10]="DateFormat",ln[ln.TimeFormat=11]="TimeFormat",ln[ln.DateTimeFormat=12]="DateTimeFormat",ln[ln.NumberSymbols=13]="NumberSymbols",ln[ln.NumberFormats=14]="NumberFormats",ln[ln.CurrencyCode=15]="CurrencyCode",ln[ln.CurrencySymbol=16]="CurrencySymbol",ln[ln.CurrencyName=17]="CurrencyName",ln[ln.Currencies=18]="Currencies",ln[ln.Directionality=19]="Directionality",ln[ln.PluralCase=20]="PluralCase",ln[ln.ExtraData=21]="ExtraData",ln))();const Wr="en-US";let Pa=Wr;function Gh(s,l,m,L,N){if(s=A(s),Array.isArray(s))for(let B=0;B>20;if(y1(s)||!s.multi){const _i=new on(Ve,N,Wo),Ni=Yh(Se,l,N?wt:wt+ci,Wt);-1===Ni?(Mn(Qt(dt,ae),B,Se),Wh(B,s,l.length),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(_i),ae.push(_i)):(m[Ni]=_i,ae[Ni]=_i)}else{const _i=Yh(Se,l,wt+ci,Wt),Ni=Yh(Se,l,wt,wt+ci),Xi=_i>=0&&m[_i],an=Ni>=0&&m[Ni];if(N&&!an||!N&&!Xi){Mn(Qt(dt,ae),B,Se);const gn=function $p(s,l,m,L,N){const B=new on(s,m,Wo);return B.multi=[],B.index=l,B.componentProviders=0,I0(B,N,L&&!m),B}(N?Kp:O0,m.length,N,L,Ve);!N&&an&&(m[Ni].providerFactory=gn),Wh(B,s,l.length,0),l.push(Se),dt.directiveStart++,dt.directiveEnd++,N&&(dt.providerIndexes+=1048576),m.push(gn),ae.push(gn)}else Wh(B,s,_i>-1?_i:Ni,I0(m[N?Ni:_i],Ve,!N&&L));!N&&L&&an&&m[Ni].componentProviders++}}}function Wh(s,l,m,L){const N=y1(l),B=function F6(s){return!!s.useClass}(l);if(N||B){const Ve=(B?A(l.useClass):l).prototype.ngOnDestroy;if(Ve){const dt=s.destroyHooks||(s.destroyHooks=[]);if(!N&&l.multi){const wt=dt.indexOf(m);-1===wt?dt.push(m,[L,Ve]):dt[wt+1].push(L,Ve)}else dt.push(m,Ve)}}}function I0(s,l,m){return m&&s.componentProviders++,s.multi.push(l)-1}function Yh(s,l,m,L){for(let N=m;N{m.providersResolver=(L,N)=>function xf(s,l,m){const L=Vn();if(L.firstCreatePass){const N=Cn(s);Gh(m,L.data,L.blueprint,N,!0),Gh(l,L.data,L.blueprint,N,!1)}}(L,N?N(s):s,l)}}class wf{}class Qp{resolveComponentFactory(l){throw function Sf(s){const l=Error(`No component factory found for ${P(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let k0=(()=>{class s{}return s.NULL=new Qp,s})();function Af(){return q2(Cr(),Hi())}function q2(s,l){return new t3(Oi(s,l))}let t3=(()=>{class s{constructor(m){this.nativeElement=m}}return s.__NG_ELEMENT_ID__=Af,s})();function Xp(s){return s instanceof t3?s.nativeElement:s}class Df{}let If=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Of(){const s=Hi(),m=oi(Cr().index,s);return function Jp(s){return s[11]}(ki(m)?m:s)}(),s})(),e7=(()=>{class s{}return s.\u0275prov=$({token:s,providedIn:"root",factory:()=>null}),s})();class kf{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const Pf=new kf("13.3.11"),Zh={};function P0(s,l,m,L,N=!1){for(;null!==m;){const B=l[m.index];if(null!==B&&L.push(Ye(B)),hn(B))for(let Se=10;Se-1&&(_o(l,L),U1(m,L))}this._attachedToViewContainer=!1}q3(this._lView[1],this._lView)}onDestroy(l){L4(this._lView[1],this._lView,null,l)}markForCheck(){A2(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function hc(s,l,m){const L=l[10];L.begin&&L.begin();try{bo(s,l,s.template,m)}catch(N){throw A6(l,N),N}finally{L.end&&L.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zd(s,l){g1(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new w(902,"");this._appRef=l}}class t7 extends i3{constructor(l){super(l),this._view=l}detectChanges(){uc(this._view)}checkNoChanges(){}get context(){return null}}class Rf extends k0{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const m=at(l);return new Kh(m,this.ngModule)}}function Nf(s){const l=[];for(let m in s)s.hasOwnProperty(m)&&l.push({propName:s[m],templateName:m});return l}class Kh extends wf{constructor(l,m){super(),this.componentDef=l,this.ngModule=m,this.componentType=l.type,this.selector=function Xd(s){return s.map(Qd).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Nf(this.componentDef.inputs)}get outputs(){return Nf(this.componentDef.outputs)}create(l,m,L,N){const B=(N=N||this.ngModule)?function Ff(s,l){return{get:(m,L,N)=>{const B=s.get(m,Zh,N);return B!==Zh||L===Zh?B:l.get(m,L,N)}}}(l,N.injector):l,ae=B.get(Df,je),Se=B.get(e7,null),Ve=ae.createRenderer(null,this.componentDef),dt=this.componentDef.selectors[0][0]||"div",wt=L?function S4(s,l,m){if(Wn(s))return s.selectRootElement(l,m===ht.ShadowDom);let L="string"==typeof l?s.querySelector(l):l;return L.textContent="",L}(Ve,L,this.componentDef.encapsulation):Js(ae.createRenderer(null,this.componentDef),dt,function Hf(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(dt)),Wt=this.componentDef.onPush?576:528,ci=function K4(s,l){return{components:[],scheduler:s||kd,clean:T6,playerHandler:l||null,flags:0}}(),_i=w2(0,null,null,1,0,null,null,null,null,null),Ni=E2(null,_i,ci,Wt,null,null,ae,Ve,Se,B);let Xi,an;Pn(Ni);try{const gn=function Z4(s,l,m,L,N,B){const ae=m[1];m[20]=s;const Ve=Ho(ae,20,2,"#host",null),dt=Ve.mergedAttrs=l.hostAttrs;null!==dt&&(I2(Ve,dt,!0),null!==s&&(Ir(N,s,dt),null!==Ve.classes&&Yl(N,s,Ve.classes),null!==Ve.styles&&Wl(N,s,Ve.styles)));const wt=L.createRenderer(s,l),Wt=E2(m,M4(l),null,l.onPush?64:16,m[20],Ve,L,wt,B||null,null);return ae.firstCreatePass&&(Mn(Qt(Ve,m),ae,l.type),y6(ae,Ve),cc(Ve,m.length,1)),T2(m,Wt),m[20]=Wt}(wt,this.componentDef,Ni,ae,Ve);if(wt)if(L)Ir(Ve,wt,["ng-version",Pf.full]);else{const{attrs:Fi,classes:Tn}=function l4(s){const l=[],m=[];let L=1,N=2;for(;L0&&Yl(Ve,wt,Tn.join(" "))}if(an=Yn(_i,20),void 0!==m){const Fi=an.projection=[];for(let Tn=0;TnVe(ae,l)),l.contentQueries){const Ve=Cr();l.contentQueries(1,ae,Ve.directiveStart)}const Se=Cr();return!B.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(zr(Se.index),C6(m[1],Se,0,Se.directiveStart,Se.directiveEnd,l),_6(l,ae)),ae}(gn,this.componentDef,Ni,ci,[Q6]),bs(_i,Ni,null)}finally{dr()}return new r7(this.componentType,Xi,q2(an,Ni),Ni,an)}}class r7 extends class Ef{}{constructor(l,m,L,N,B){super(),this.location=L,this._rootLView=N,this._tNode=B,this.instance=m,this.hostView=this.changeDetectorRef=new t7(N),this.componentType=l}get injector(){return new Ko(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class J2{}class $h{}const el=new Map;class Xh extends J2{constructor(l,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Rf(this);const L=Xt(l);this._bootstrapComponents=Os(L.bootstrap),this._r3Injector=R6(l,m,[{provide:J2,useValue:this},{provide:k0,useValue:this.componentFactoryResolver}],P(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,m=Us.THROW_IF_NOT_FOUND,L=Ae.Default){return l===Us||l===J2||l===fc?this:this._r3Injector.get(l,m,L)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class qh extends $h{constructor(l){super(),this.moduleType=l,null!==Xt(l)&&function s7(s){const l=new Set;!function m(L){const N=Xt(L,!0),B=N.id;null!==B&&(function zf(s,l,m){if(l&&l!==m)throw new Error(`Duplicate module registered for ${s} - ${P(l)} vs ${P(l.name)}`)}(B,el.get(B),L),el.set(B,L));const ae=Os(N.imports);for(const Se of ae)l.has(Se)||(l.add(Se),m(Se))}(s)}(l)}create(l){return new Xh(this.moduleType,l)}}function Bf(s,l,m){const L=Vr()+s,N=Hi();return N[L]===Bn?Gs(N,L,m?l.call(m):l()):function R2(s,l){return s[l]}(N,L)}function Uf(s,l,m,L){return Jh(Hi(),Vr(),s,l,m,L)}function Gf(s,l,m,L,N){return Zf(Hi(),Vr(),s,l,m,L,N)}function Wf(s,l,m,L,N,B){return eu(Hi(),Vr(),s,l,m,L,N,B)}function n3(s,l){const m=s[l];return m===Bn?void 0:m}function Jh(s,l,m,L,N,B){const ae=l+m;return Wa(s,ae,N)?Gs(s,ae+1,B?L.call(B,N):L(N)):n3(s,ae+1)}function Zf(s,l,m,L,N,B,ae){const Se=l+m;return zo(s,Se,N,B)?Gs(s,Se+2,ae?L.call(ae,N,B):L(N,B)):n3(s,Se+2)}function eu(s,l,m,L,N,B,ae,Se){const Ve=l+m;return N2(s,Ve,N,B,ae)?Gs(s,Ve+3,Se?L.call(Se,N,B,ae):L(N,B,ae)):n3(s,Ve+3)}function $f(s,l){const m=Vn();let L;const N=s+20;m.firstCreatePass?(L=function h7(s,l){if(l)for(let m=l.length-1;m>=0;m--){const L=l[m];if(s===L.name)return L}}(l,m.pipeRegistry),m.data[N]=L,L.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(N,L.onDestroy)):L=m.data[N];const B=L.factory||(L.factory=lr(L.type)),ae=xe(Wo);try{const Se=Ce(!1),Ve=B();return Ce(Se),function Mc(s,l,m,L){m>=s.data.length&&(s.data[m]=null,s.blueprint[m]=null),l[m]=L}(m,Hi(),N,Ve),Ve}finally{xe(ae)}}function Qf(s,l,m){const L=s+20,N=Hi(),B=At(N,L);return tl(N,L)?Jh(N,Vr(),l,B.transform,m,B):B.transform(m)}function Xf(s,l,m,L){const N=s+20,B=Hi(),ae=At(B,N);return tl(B,N)?Zf(B,Vr(),l,ae.transform,m,L,ae):ae.transform(m,L)}function iu(s,l,m,L,N){const B=s+20,ae=Hi(),Se=At(ae,B);return tl(ae,B)?eu(ae,Vr(),l,Se.transform,m,L,N,Se):Se.transform(m,L,N)}function tl(s,l){return s[1].data[l].pure}function nu(s){return l=>{setTimeout(s,void 0,l)}}const oo=class p7 extends e.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,m,L){var N,B,ae;let Se=l,Ve=m||(()=>null),dt=L;if(l&&"object"==typeof l){const Wt=l;Se=null===(N=Wt.next)||void 0===N?void 0:N.bind(Wt),Ve=null===(B=Wt.error)||void 0===B?void 0:B.bind(Wt),dt=null===(ae=Wt.complete)||void 0===ae?void 0:ae.bind(Wt)}this.__isAsync&&(Ve=nu(Ve),Se&&(Se=nu(Se)),dt&&(dt=nu(dt)));const wt=super.subscribe({next:Se,error:Ve,complete:dt});return l instanceof i.w0&&l.add(wt),wt}};function m7(){return this._results[Vo()]()}class R0{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Vo(),L=R0.prototype;L[m]||(L[m]=m7)}get changes(){return this._changes||(this._changes=new oo)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,m){return this._results.reduce(l,m)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,m){const L=this;L.dirty=!1;const N=ls(l);(this._changesDetected=!function u3(s,l,m){if(s.length!==l.length)return!1;for(let L=0;L{class s{}return s.__NG_ELEMENT_ID__=_7,s})();const g7=il,C7=class extends g7{constructor(l,m,L){super(),this._declarationLView=l,this._declarationTContainer=m,this.elementRef=L}createEmbeddedView(l){const m=this._declarationTContainer.tViews,L=E2(this._declarationLView,m,l,16,null,m.declTNode,null,null,null,null);L[17]=this._declarationLView[this._declarationTContainer.index];const B=this._declarationLView[19];return null!==B&&(L[19]=B.createEmbeddedView(m)),bs(m,L,l),new i3(L)}};function _7(){return N0(Cr(),Hi())}function N0(s,l){return 4&s.type?new C7(l,s,q2(s,l)):null}let r3=(()=>{class s{}return s.__NG_ELEMENT_ID__=v7,s})();function v7(){return t8(Cr(),Hi())}const qf=r3,Jf=class extends qf{constructor(l,m,L){super(),this._lContainer=l,this._hostTNode=m,this._hostLView=L}get element(){return q2(this._hostTNode,this._hostLView)}get injector(){return new Ko(this._hostTNode,this._hostLView)}get parentInjector(){const l=Vi(this._hostTNode,this._hostLView);if(_e(l)){const m=We(l,this._hostLView),L=Xe(l);return new Ko(m[1].data[L+8],m)}return new Ko(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const m=e8(this._lContainer);return null!==m&&m[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,m,L){const N=l.createEmbeddedView(m||{});return this.insert(N,L),N}createComponent(l,m,L,N,B){const ae=l&&!function ho(s){return"function"==typeof s}(l);let Se;if(ae)Se=m;else{const Wt=m||{};Se=Wt.index,L=Wt.injector,N=Wt.projectableNodes,B=Wt.ngModuleRef}const Ve=ae?l:new Kh(at(l)),dt=L||this.parentInjector;if(!B&&null==Ve.ngModule){const ci=(ae?dt:this.parentInjector).get(J2,null);ci&&(B=ci)}const wt=Ve.create(dt,N,void 0,B);return this.insert(wt.hostView,Se),wt}insert(l,m){const L=l._lView,N=L[1];if(function Ai(s){return hn(s[3])}(L)){const wt=this.indexOf(l);if(-1!==wt)this.detach(wt);else{const Wt=L[3],ci=new Jf(Wt,Wt[6],Wt[3]);ci.detach(ci.indexOf(l))}}const B=this._adjustIndex(m),ae=this._lContainer;!function Fl(s,l,m,L){const N=10+L,B=m.length;L>0&&(m[N-1][4]=l),L0)L.push(ae[Se/2]);else{const dt=B[Se+1],wt=l[-Ve];for(let Wt=10;Wt{class s{constructor(m){this.appInits=m,this.resolve=z0,this.reject=z0,this.initialized=!1,this.done=!1,this.donePromise=new Promise((L,N)=>{this.resolve=L,this.reject=N})}runInitializers(){if(this.initialized)return;const m=[],L=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N{B.subscribe({complete:Se,error:Ve})});m.push(ae)}}Promise.all(m).then(()=>{L()}).catch(N=>{this.reject(N)}),0===m.length&&L(),this.initialized=!0}}return s.\u0275fac=function(m){return new(m||s)(Fa(bu,8))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const w8=new Or("AppId",{providedIn:"root",factory:function S8(){return`${Mu()}${Mu()}${Mu()}`}});function Mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Eu=new Or("Platform Initializer"),G7=new Or("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wu=new Or("appBootstrapListener");let L8=(()=>{class s{log(m){console.log(m)}warn(m){console.warn(m)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const B0=new Or("LocaleId",{providedIn:"root",factory:()=>Z1(B0,Ae.Optional|Ae.SkipSelf)||function W7(){return"undefined"!=typeof $localize&&$localize.locale||Wr}()}),Y7=new Or("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Z7{constructor(l,m){this.ngModuleFactory=l,this.componentFactories=m}}let K7=(()=>{class s{compileModuleSync(m){return new qh(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const L=this.compileModuleSync(m),B=Os(Xt(m).declarations).reduce((ae,Se)=>{const Ve=at(Se);return Ve&&ae.push(new Kh(Ve)),ae},[]);return new Z7(L,B)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const T8=(()=>Promise.resolve(0))();function U0(s){"undefined"==typeof Zone?T8.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class Ks{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:L=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oo(!1),this.onMicrotaskEmpty=new oo(!1),this.onStable=new oo(!1),this.onError=new oo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!L&&m,N.shouldCoalesceRunChangeDetection=L,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function X7(){let s=di.requestAnimationFrame,l=di.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const m=s[Zone.__symbol__("OriginalDelegate")];m&&(s=m);const L=l[Zone.__symbol__("OriginalDelegate")];L&&(l=L)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function em(s){const l=()=>{!function J7(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(di,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Su(s),s.isCheckStableRunning=!0,G0(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Su(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,L,N,B,ae,Se)=>{try{return A8(s),m.invokeTask(N,B,ae,Se)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===B.type||s.shouldCoalesceRunChangeDetection)&&l(),D8(s)}},onInvoke:(m,L,N,B,ae,Se,Ve)=>{try{return A8(s),m.invoke(N,B,ae,Se,Ve)}finally{s.shouldCoalesceRunChangeDetection&&l(),D8(s)}},onHasTask:(m,L,N,B)=>{m.hasTask(N,B),L===N&&("microTask"==B.change?(s._hasPendingMicrotasks=B.microTask,Su(s),G0(s)):"macroTask"==B.change&&(s.hasPendingMacrotasks=B.macroTask))},onHandleError:(m,L,N,B)=>(m.handleError(N,B),s.runOutsideAngular(()=>s.onError.emit(B)),!1)})}(N)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ks.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ks.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,m,L){return this._inner.run(l,m,L)}runTask(l,m,L,N){const B=this._inner,ae=B.scheduleEventTask("NgZoneEvent: "+N,l,q7,z0,z0);try{return B.runTask(ae,m,L)}finally{B.cancelTask(ae)}}runGuarded(l,m,L){return this._inner.runGuarded(l,m,L)}runOutsideAngular(l){return this._outer.run(l)}}const q7={};function G0(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Su(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function A8(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function D8(s){s._nesting--,G0(s)}class tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oo,this.onMicrotaskEmpty=new oo,this.onStable=new oo,this.onError=new oo}run(l,m,L){return l.apply(m,L)}runGuarded(l,m,L){return l.apply(m,L)}runOutsideAngular(l){return l()}runTask(l,m,L,N){return l.apply(m,L)}}let I8=(()=>{class s{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ks.assertNotInAngularZone(),U0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())U0(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(L=>!L.updateCb||!L.updateCb(m)||(clearTimeout(L.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,L,N){let B=-1;L&&L>0&&(B=setTimeout(()=>{this._callbacks=this._callbacks.filter(ae=>ae.timeoutId!==B),m(this._didWork,this.getPendingTasks())},L)),this._callbacks.push({doneCb:m,timeoutId:B,updateCb:N})}whenStable(m,L,N){if(N&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,L,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,L,N){return[]}}return s.\u0275fac=function(m){return new(m||s)(Fa(Ks))},s.\u0275prov=$({token:s,factory:s.\u0275fac}),s})(),im=(()=>{class s{constructor(){this._applications=new Map,Lu.addToWindow(this)}registerApplication(m,L){this._applications.set(m,L)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,L=!0){return Lu.findTestabilityInTree(this,m,L)}}return s.\u0275fac=function(m){return new(m||s)},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class nm{addToWindow(l){}findTestabilityInTree(l,m,L){return null}}function rm(s){Lu=s}let Lu=new nm,V1=null;const Tu=new Or("AllowMultipleToken"),O8=new Or("PlatformOnDestroy");class am{constructor(l,m){this.name=l,this.token=m}}function R8(s,l,m=[]){const L=`Platform: ${l}`,N=new Or(L);return(B=[])=>{let ae=Au();if(!ae||ae.injector.get(Tu,!1)){const Se=[...m,...B,{provide:N,useValue:!0}];s?s(Se):function sm(s){if(V1&&!V1.get(Tu,!1))throw new w(400,"");V1=s;const l=s.get(Du),m=s.get(Eu,null);m&&m.forEach(L=>L())}(function lm(s=[],l){return Us.create({name:l,providers:[{provide:pc,useValue:"platform"},{provide:O8,useValue:()=>V1=null},...s]})}(Se,L))}return function om(s){const l=Au();if(!l)throw new w(401,"");return l}()}}function Au(){var s;return null!==(s=null==V1?void 0:V1.get(Du))&&void 0!==s?s:null}let Du=(()=>{class s{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,L){const Se=function cm(s,l){let m;return m="noop"===s?new tm:("zone.js"===s?void 0:s)||new Ks({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),m}(L?L.ngZone:void 0,{ngZoneEventCoalescing:L&&L.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:L&&L.ngZoneRunCoalescing||!1}),Ve=[{provide:Ks,useValue:Se}];return Se.run(()=>{const dt=Us.create({providers:Ve,parent:this.injector,name:m.moduleType.name}),wt=m.create(dt),Wt=wt.injector.get(a2,null);if(!Wt)throw new w(402,"");return Se.runOutsideAngular(()=>{const ci=Se.onError.subscribe({next:_i=>{Wt.handleError(_i)}});wt.onDestroy(()=>{W0(this._modules,wt),ci.unsubscribe()})}),function dm(s,l,m){try{const L=m();return ts(L)?L.catch(N=>{throw l.runOutsideAngular(()=>s.handleError(N)),N}):L}catch(L){throw l.runOutsideAngular(()=>s.handleError(L)),L}}(Wt,Se,()=>{const ci=wt.injector.get(xu);return ci.runInitializers(),ci.donePromise.then(()=>(function Q2(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Pa=s.toLowerCase().replace(/_/g,"-"))}(wt.injector.get(B0,Wr)||Wr),this._moduleDoBootstrap(wt),wt))})})}bootstrapModule(m,L=[]){const N=N8({},L);return function k8(s,l,m){const L=new qh(m);return Promise.resolve(L)}(0,0,m).then(B=>this.bootstrapModuleFactory(B,N))}_moduleDoBootstrap(m){const L=m.injector.get(Iu);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(N=>L.bootstrap(N));else{if(!m.instance.ngDoBootstrap)throw new w(403,"");m.instance.ngDoBootstrap(L)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,"");this._modules.slice().forEach(L=>L.destroy()),this._destroyListeners.forEach(L=>L());const m=this._injector.get(O8,null);null==m||m(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(m){return new(m||s)(Fa(Us))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function N8(s,l){return Array.isArray(l)?l.reduce(N8,s):Object.assign(Object.assign({},s),l)}let Iu=(()=>{class s{constructor(m,L,N,B){this._zone=m,this._injector=L,this._exceptionHandler=N,this._initStatus=B,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ae=new u.y(Ve=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ve.next(this._stable),Ve.complete()})}),Se=new u.y(Ve=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{Ks.assertNotInAngularZone(),U0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ve.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{Ks.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ve.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,b.T)(ae,Se.pipe((0,a.B)()))}bootstrap(m,L){if(!this._initStatus.done)throw new w(405,"");let N;N=m instanceof wf?m:this._injector.get(k0).resolveComponentFactory(m),this.componentTypes.push(N.componentType);const B=function P8(s){return s.isBoundToModule}(N)?void 0:this._injector.get(J2),Se=N.create(Us.NULL,[],L||N.selector,B),Ve=Se.location.nativeElement,dt=Se.injector.get(I8,null),wt=dt&&Se.injector.get(im);return dt&&wt&&wt.registerApplication(Ve,dt),Se.onDestroy(()=>{this.detachView(Se.hostView),W0(this.components,Se),wt&&wt.unregisterApplication(Ve)}),this._loadComponent(Se),Se}tick(){if(this._runningTick)throw new w(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const L=m;this._views.push(L),L.attachToAppRef(this)}detachView(m){const L=m;W0(this._views,L),L.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(wu,[]).concat(this._bootstrapListeners).forEach(N=>N(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(m){return new(m||s)(Fa(Ks),Fa(Us),Fa(a2),Fa(xu))},s.\u0275prov=$({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function W0(s,l){const m=s.indexOf(l);m>-1&&s.splice(m,1)}let F8=!0,V8=!1;function z8(){return V8=!0,F8}function um(){if(V8)throw new Error("Cannot enable prod mode after platform setup.");F8=!1}let U8=(()=>{class s{}return s.__NG_ELEMENT_ID__=pm,s})();function pm(s){return function G8(s,l,m){if(An(s)&&!m){const L=oi(s.index,l);return new i3(L,L)}return 47&s.type?new i3(l[16],l):null}(Cr(),Hi(),16==(16&s))}class Ru{constructor(){}supports(l){return P2(l)}create(l){return new Mm(l)}}const xm=(s,l)=>l;class Mm{constructor(l){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=l||xm}forEachItem(l){let m;for(m=this._itHead;null!==m;m=m._next)l(m)}forEachOperation(l){let m=this._itHead,L=this._removalsHead,N=0,B=null;for(;m||L;){const ae=!L||m&&m.currentIndex{ae=this._trackByFn(N,Se),null!==m&&Object.is(m.trackById,ae)?(L&&(m=this._verifyReinsertion(m,Se,ae,N)),Object.is(m.item,Se)||this._addIdentityChange(m,Se)):(m=this._mismatch(m,Se,ae,N),L=!0),m=m._next,N++}),this.length=N;return this._truncate(m),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,m,L,N){let B;return null===l?B=this._itTail:(B=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._reinsertAfter(l,B,N)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(L,N))?(Object.is(l.item,m)||this._addIdentityChange(l,m),this._moveAfter(l,B,N)):l=this._addAfter(new Em(m,L),B,N),l}_verifyReinsertion(l,m,L,N){let B=null===this._unlinkedRecords?null:this._unlinkedRecords.get(L,null);return null!==B?l=this._reinsertAfter(B,l._prev,N):l.currentIndex!=N&&(l.currentIndex=N,this._addToMoves(l,N)),l}_truncate(l){for(;null!==l;){const m=l._next;this._addToRemovals(this._unlink(l)),l=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(l,m,L){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const N=l._prevRemoved,B=l._nextRemoved;return null===N?this._removalsHead=B:N._nextRemoved=B,null===B?this._removalsTail=N:B._prevRemoved=N,this._insertAfter(l,m,L),this._addToMoves(l,L),l}_moveAfter(l,m,L){return this._unlink(l),this._insertAfter(l,m,L),this._addToMoves(l,L),l}_addAfter(l,m,L){return this._insertAfter(l,m,L),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,m,L){const N=null===m?this._itHead:m._next;return l._next=N,l._prev=m,null===N?this._itTail=l:N._prev=l,null===m?this._itHead=l:m._next=l,null===this._linkedRecords&&(this._linkedRecords=new j8),this._linkedRecords.put(l),l.currentIndex=L,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const m=l._prev,L=l._next;return null===m?this._itHead=L:m._next=L,null===L?this._itTail=m:L._prev=m,l}_addToMoves(l,m){return l.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new j8),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,m){return l.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class Em{constructor(l,m){this.item=l,this.trackById=m,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}}class wm{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,m){let L;for(L=this._head;null!==L;L=L._nextDup)if((null===m||m<=L.currentIndex)&&Object.is(L.trackById,l))return L;return null}remove(l){const m=l._prevDup,L=l._nextDup;return null===m?this._head=L:m._nextDup=L,null===L?this._tail=m:L._prevDup=m,null===this._head}}class j8{constructor(){this.map=new Map}put(l){const m=l.trackById;let L=this.map.get(m);L||(L=new wm,this.map.set(m,L)),L.add(l)}get(l,m){const N=this.map.get(l);return N?N.get(l,m):null}remove(l){const m=l.trackById;return this.map.get(m).remove(l)&&this.map.delete(m),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Z8(s,l,m){const L=s.previousIndex;if(null===L)return L;let N=0;return m&&L{if(m&&m.key===N)this._maybeAddToChanges(m,L),this._appendAfter=m,m=m._next;else{const B=this._getOrCreateRecordForKey(N,L);m=this._insertBeforeOrAppend(m,B)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let L=m;null!==L;L=L._nextRemoved)L===this._mapHead&&(this._mapHead=null),this._records.delete(L.key),L._nextRemoved=L._next,L.previousValue=L.currentValue,L.currentValue=null,L._prev=null,L._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,m){if(l){const L=l._prev;return m._next=l,m._prev=L,l._prev=m,L&&(L._next=m),l===this._mapHead&&(this._mapHead=m),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(l,m){if(this._records.has(l)){const N=this._records.get(l);this._maybeAddToChanges(N,m);const B=N._prev,ae=N._next;return B&&(B._next=ae),ae&&(ae._prev=B),N._next=null,N._prev=null,N}const L=new Lm(l);return this._records.set(l,L),L.currentValue=m,this._addToAdditions(L),L}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,m){Object.is(m,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=m,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,m){l instanceof Map?l.forEach(m):Object.keys(l).forEach(L=>m(l[L],L))}}class Lm{constructor(l){this.key=l,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $8(){return new Nu([new Ru])}let Nu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(null!=L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||$8()),deps:[[s,new Ts,new n1]]}}find(m){const L=this.factories.find(N=>N.supports(m));if(null!=L)return L;throw new w(901,"")}}return s.\u0275prov=$({token:s,providedIn:"root",factory:$8}),s})();function Q8(){return new Hu([new K8])}let Hu=(()=>{class s{constructor(m){this.factories=m}static create(m,L){if(L){const N=L.factories.slice();m=m.concat(N)}return new s(m)}static extend(m){return{provide:s,useFactory:L=>s.create(m,L||Q8()),deps:[[s,new Ts,new n1]]}}find(m){const L=this.factories.find(B=>B.supports(m));if(L)return L;throw new w(901,"")}}return s.\u0275prov=$({token:s,providedIn:"root",factory:Q8}),s})();const Dm=R8(null,"core",[]);let Im=(()=>{class s{constructor(m){}}return s.\u0275fac=function(m){return new(m||s)(Fa(Iu))},s.\u0275mod=qe({type:s}),s.\u0275inj=ye({}),s})()},9042:(He,j,p)=>{"use strict";function e(T){for(let M in T){let A=T[M]||"";switch(M){case"display":T.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":T["-webkit-"+M]=A;break;case"flex-direction":A=A||"row",T["-webkit-flex-direction"]=A,T["flex-direction"]=A;break;case"order":T.order=T["-webkit-"+M]=isNaN(+A)?"0":A}}return T}p.d(j,{Ar:()=>b,GK:()=>e,iQ:()=>u,kt:()=>D,tj:()=>y});const i="inline",u=["row","column","row-reverse","column-reverse"];function b(T){let[M,A,E]=a(T);return function P(T,M=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":T,"flex-wrap":M||null}}(M,A,E)}function a(T){var M;T=null!==(M=null==T?void 0:T.toLowerCase())&&void 0!==M?M:"";let[A,E,k]=T.split(" ");return u.find(w=>w===A)||(A=u[0]),E===i&&(E=k!==i?k:"",k=i),[A,d(E),!!k]}function y(T){let[M]=a(T);return M.indexOf("row")>-1}function d(T){if(T)switch(T.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":T="wrap-reverse";break;case"no":case"none":case"nowrap":T="nowrap";break;default:T="wrap"}return T}function D(T,...M){if(null==T)throw TypeError("Cannot convert undefined or null to object");for(let A of M)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(T[E]=A[E]);return T}},3270:(He,j,p)=>{"use strict";p.d(j,{Bs:()=>ne,FL:()=>di,IR:()=>E,Ot:()=>hi,QI:()=>le,RK:()=>q,WU:()=>U,g5:()=>z,iR:()=>xe,wY:()=>W,yB:()=>ce});var e=p(5e3),i=p(9808),u=p(1135),b=p(8306),a=p(6451),y=p(7579),d=p(9042),P=p(9300),D=p(8505);const M={provide:e.tb,useFactory:function T(vt,kt){return()=>{if((0,i.NF)(kt)){const gt=Array.from(vt.querySelectorAll(`[class*=${A}]`)),Qe=/\bflex-layout-.+?\b/g;gt.forEach(_t=>{_t.classList.contains(`${A}ssr`)&&_t.parentNode?_t.parentNode.removeChild(_t):_t.className.replace(Qe,"")})}}},deps:[i.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class vt{}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275mod=e.oAB({type:vt}),vt.\u0275inj=e.cJS({providers:[M]}),vt})();class k{constructor(kt=!1,gt="all",Qe="",_t="",ei=0){this.matches=kt,this.mediaQuery=gt,this.mqAlias=Qe,this.suffix=_t,this.priority=ei,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class vt{constructor(){this.stylesheet=new Map}addStyleToElement(gt,Qe,_t){const ei=this.stylesheet.get(gt);ei?ei.set(Qe,_t):this.stylesheet.set(gt,new Map([[Qe,_t]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,Qe){const _t=this.stylesheet.get(gt);let ei="";if(_t){const Zt=_t.get(Qe);("number"==typeof Zt||"string"==typeof Zt)&&(ei=Zt+"")}return ei}}return vt.\u0275fac=function(gt){return new(gt||vt)},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const z={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},U=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>z}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ne=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Q(vt,kt){return vt=vt?vt.clone():new k,kt&&(vt.mqAlias=kt.alias,vt.mediaQuery=kt.mediaQuery,vt.suffix=kt.suffix,vt.priority=kt.priority),vt}class le{constructor(){this.shouldCache=!0}sideEffect(kt,gt,Qe){}}let q=(()=>{class vt{constructor(gt,Qe,_t,ei){this._serverStylesheet=gt,this._serverModuleLoaded=Qe,this._platformId=_t,this.layoutConfig=ei}applyStyleToElement(gt,Qe,_t=null){let ei={};"string"==typeof Qe&&(ei[Qe]=_t,Qe=ei),ei=this.layoutConfig.disableVendorPrefixes?Qe:(0,d.GK)(Qe),this._applyMultiValueStyleToElement(ei,gt)}applyStyleToElements(gt,Qe=[]){const _t=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);Qe.forEach(ei=>{this._applyMultiValueStyleToElement(_t,ei)})}getFlowDirection(gt){const Qe="flex-direction";let _t=this.lookupStyle(gt,Qe);return[_t||"row",this.lookupInlineStyle(gt,Qe)||(0,i.PM)(this._platformId)&&this._serverModuleLoaded?_t:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,Qe){var _t;return null!==(_t=gt.getAttribute(Qe))&&void 0!==_t?_t:""}lookupInlineStyle(gt,Qe){return(0,i.NF)(this._platformId)?gt.style.getPropertyValue(Qe):function ie(vt,kt){var gt;return null!==(gt=me(vt)[kt])&&void 0!==gt?gt:""}(gt,Qe)}lookupStyle(gt,Qe,_t=!1){let ei="";return gt&&((ei=this.lookupInlineStyle(gt,Qe))||((0,i.NF)(this._platformId)?_t||(ei=getComputedStyle(gt).getPropertyValue(Qe)):this._serverModuleLoaded&&(ei=this._serverStylesheet.getStyleForElement(gt,Qe)))),ei?ei.trim():""}_applyMultiValueStyleToElement(gt,Qe){Object.keys(gt).sort().forEach(_t=>{const ei=gt[_t],Zt=Array.isArray(ei)?ei:[ei];Zt.sort();for(let Pe of Zt)Pe=Pe?Pe+"":"",(0,i.NF)(this._platformId)||!this._serverModuleLoaded?(0,i.NF)(this._platformId)?Qe.style.setProperty(_t,Pe):se(Qe,_t,Pe):this._serverStylesheet.addStyleToElement(Qe,_t,Pe)})}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(w),e.LFG(W),e.LFG(e.Lbi),e.LFG(U))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function se(vt,kt,gt){kt=kt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Qe=me(vt);Qe[kt]=null!=gt?gt:"",function J(vt,kt){let gt="";for(const Qe in kt)kt[Qe]&&(gt+=`${Qe}:${kt[Qe]};`);vt.setAttribute("style",gt)}(vt,Qe)}function me(vt){const kt={},gt=vt.getAttribute("style");if(gt){const Qe=gt.split(/;+/g);for(let _t=0;_t0){const Zt=ei.indexOf(":");if(-1===Zt)throw new Error(`Invalid CSS style: ${ei}`);kt[ei.substr(0,Zt).trim()]=ei.substr(Zt+1).trim()}}}return kt}function x(vt,kt){return(kt&&kt.priority||0)-(vt&&vt.priority||0)}function t(vt,kt){return(vt.priority||0)-(kt.priority||0)}let r=(()=>{class vt{constructor(gt,Qe,_t){this._zone=gt,this._platformId=Qe,this._document=_t,this.source=new u.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((Qe,_t)=>{Qe.matches&>.push(_t)}),gt}isActive(gt){var Qe;const _t=this.registry.get(gt);return null!==(Qe=null==_t?void 0:_t.matches)&&void 0!==Qe?Qe:this.registerQuery(gt).some(ei=>ei.matches)}observe(gt,Qe=!1){if(gt&>.length){const _t=this._observable$.pipe((0,P.h)(Zt=>!Qe||gt.indexOf(Zt.mediaQuery)>-1)),ei=new b.y(Zt=>{const Pe=this.registerQuery(gt);if(Pe.length){const De=Pe.pop();Pe.forEach(oe=>{Zt.next(oe)}),this.source.next(De)}Zt.complete()});return(0,a.T)(ei,_t)}return this._observable$}registerQuery(gt){const Qe=Array.isArray(gt)?gt:[gt],_t=[];return function c(vt,kt){const gt=vt.filter(Qe=>!h[Qe]);if(gt.length>0){const Qe=gt.join(", ");try{const _t=kt.createElement("style");_t.setAttribute("type","text/css"),_t.styleSheet||_t.appendChild(kt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Qe} {.fx-query-test{ }}\n`)),kt.head.appendChild(_t),gt.forEach(ei=>h[ei]=_t)}catch(_t){console.error(_t)}}}(Qe,this._document),Qe.forEach(ei=>{const Zt=De=>{this._zone.run(()=>this.source.next(new k(De.matches,ei)))};let Pe=this.registry.get(ei);Pe||(Pe=this.buildMQL(ei),Pe.addListener(Zt),this.pendingRemoveListenerFns.push(()=>Pe.removeListener(Zt)),this.registry.set(ei,Pe)),Pe.matches&&_t.push(new k(!0,ei))}),_t}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function C(vt,kt){return kt&&window.matchMedia("all").addListener?window.matchMedia(vt):{matches:"all"===vt||""===vt,media:vt,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,i.NF)(this._platformId))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const h={},S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],I="(orientation: portrait) and (max-width: 599.98px)",_="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",g="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",V="(orientation: portrait) and (min-width: 840px)",R="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${_}`,TABLET:`${n} , ${g}`,WEB:`${V}, ${R} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${V}`,HANDSET_LANDSCAPE:`${_}`,TABLET_LANDSCAPE:`${g}`,WEB_LANDSCAPE:`${R}`},$=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],fe=/(\.|-|_)/g;function ye(vt){let kt=vt.length>0?vt.charAt(0):"",gt=vt.length>1?vt.slice(1):"";return kt.toUpperCase()+gt}const ze=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const vt=(0,e.f3M)(ne),kt=(0,e.f3M)(U),gt=[].concat.apply([],(vt||[]).map(_t=>Array.isArray(_t)?_t:[_t]));return function te(vt,kt=[]){const gt={};return vt.forEach(Qe=>{gt[Qe.alias]=Qe}),kt.forEach(Qe=>{gt[Qe.alias]?(0,d.kt)(gt[Qe.alias],Qe):gt[Qe.alias]=Qe}),function Ee(vt){return vt.forEach(kt=>{kt.suffix||(kt.suffix=function ke(vt){return vt.replace(fe,"|").split("|").map(ye).join("")}(kt.alias),kt.overlapping=!!kt.overlapping)}),vt}(Object.keys(gt).map(Qe=>gt[Qe]))}((kt.disableDefaultBps?[]:S).concat(kt.addOrientationBps?$:[]),gt)}});let be=(()=>{class vt{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(t)}findByAlias(gt){return gt?this.findWithPredicate(gt,Qe=>Qe.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,Qe=>Qe.mediaQuery===gt)}get overlappings(){return this.items.filter(gt=>gt.overlapping)}get aliases(){return this.items.map(gt=>gt.alias)}get suffixes(){return this.items.map(gt=>{var Qe;return null!==(Qe=null==gt?void 0:gt.suffix)&&void 0!==Qe?Qe:""})}findWithPredicate(gt,Qe){var _t;let ei=this.findByMap.get(gt);return ei||(ei=null!==(_t=this.items.find(Qe))&&void 0!==_t?_t:null,this.findByMap.set(gt,ei)),null!=ei?ei:null}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(ze))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const Z="print",Y={alias:Z,mediaQuery:Z,priority:1e3};let ot=(()=>{class vt{constructor(gt,Qe,_t){this.breakpoints=gt,this.layoutConfig=Qe,this._document=_t,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ie,this.deactivations=[]}withPrintQuery(gt){return[...gt,Z]}isPrintEvent(gt){return gt.mediaQuery.startsWith(Z)}get printAlias(){var gt;return[...null!==(gt=this.layoutConfig.printWithBreakpoints)&&void 0!==gt?gt:[]]}get printBreakPoints(){return this.printAlias.map(gt=>this.breakpoints.findByAlias(gt)).filter(gt=>null!==gt)}getEventBreakpoints({mediaQuery:gt}){const Qe=this.breakpoints.findByQuery(gt);return(Qe?[...this.printBreakPoints,Qe]:this.printBreakPoints).sort(x)}updateEvent(gt){var Qe;let _t=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(_t=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(Qe=null==_t?void 0:_t.mediaQuery)&&void 0!==Qe?Qe:""),Q(gt,_t)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Qe=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,Z))),gt.updateStyles())},_t=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Qe),this._document.defaultView.addEventListener("afterprint",_t),this.beforePrintEventListeners.push(Qe),this.afterPrintEventListeners.push(_t)}interceptEvents(gt){return Qe=>{this.isPrintEvent(Qe)?Qe.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(Qe)),gt.updateStyles()):!Qe.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,Qe)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,Qe){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(Qe)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,Qe){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Qe.matches){const _t=this.breakpoints.findByQuery(Qe.mediaQuery);if(_t){const ei=this.formerActivations&&this.formerActivations.includes(_t),Zt=!this.formerActivations&>.activatedBreakpoints.includes(_t);(ei||Zt)&&(this.deactivations.push(_t),this.deactivations.sort(x))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("beforeprint",gt)),this.afterPrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("afterprint",gt)))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(be),e.LFG(U),e.LFG(i.K0))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(kt){return kt.push(Y),kt.sort(x),kt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(kt){kt&&void 0===this.printBreakpoints.find(Qe=>Qe.mediaQuery===kt.mediaQuery)&&(this.printBreakpoints=function Ae(vt){var kt;return null!==(kt=null==vt?void 0:vt.mediaQuery.startsWith(Z))&&void 0!==kt&&kt}(kt)?[kt,...this.printBreakpoints]:[...this.printBreakpoints,kt])}clear(){this.printBreakpoints=[]}}let ce=(()=>{class vt{constructor(gt,Qe,_t){this.matchMedia=gt,this.breakpoints=Qe,this.hook=_t,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new y.x,this.observeActivations()}get activatedAlias(){var gt,Qe;return null!==(Qe=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==Qe?Qe:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const Qe=this.findByQuery(gt.mediaQuery);if(Qe){gt=Q(gt,Qe);const _t=this.activatedBreakpoints.indexOf(Qe);gt.matches&&-1===_t?(this._activatedBreakpoints.push(Qe),this._activatedBreakpoints.sort(x),this.updateStyles()):!gt.matches&&-1!==_t&&(this._activatedBreakpoints.splice(_t,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(gt,Qe,_t,ei,Zt=[]){Te(this.updateMap,gt,Qe,_t),Te(this.clearMap,gt,Qe,ei),this.buildElementKeyMap(gt,Qe),this.watchExtraTriggers(gt,Qe,Zt)}getValue(gt,Qe,_t){const ei=this.elementMap.get(gt);if(ei){const Zt=void 0!==_t?ei.get(_t):this.getActivatedValues(ei,Qe);if(Zt)return Zt.get(Qe)}}hasValue(gt,Qe){const _t=this.elementMap.get(gt);if(_t){const ei=this.getActivatedValues(_t,Qe);if(ei)return void 0!==ei.get(Qe)||!1}return!1}setValue(gt,Qe,_t,ei){var Zt;let Pe=this.elementMap.get(gt);if(Pe){const oe=(null!==(Zt=Pe.get(ei))&&void 0!==Zt?Zt:new Map).set(Qe,_t);Pe.set(ei,oe),this.elementMap.set(gt,Pe)}else Pe=(new Map).set(ei,(new Map).set(Qe,_t)),this.elementMap.set(gt,Pe);const De=this.getValue(gt,Qe);void 0!==De&&this.updateElement(gt,Qe,De)}trackValue(gt,Qe){return this.subject.asObservable().pipe((0,P.h)(_t=>_t.element===gt&&_t.key===Qe))}updateStyles(){this.elementMap.forEach((gt,Qe)=>{const _t=new Set(this.elementKeyMap.get(Qe));let ei=this.getActivatedValues(gt);ei&&ei.forEach((Zt,Pe)=>{this.updateElement(Qe,Pe,Zt),_t.delete(Pe)}),_t.forEach(Zt=>{if(ei=this.getActivatedValues(gt,Zt),ei){const Pe=ei.get(Zt);this.updateElement(Qe,Zt,Pe)}else this.clearElement(Qe,Zt)})})}clearElement(gt,Qe){const _t=this.clearMap.get(gt);if(_t){const ei=_t.get(Qe);ei&&(ei(),this.subject.next({element:gt,key:Qe,value:""}))}}updateElement(gt,Qe,_t){const ei=this.updateMap.get(gt);if(ei){const Zt=ei.get(Qe);Zt&&(Zt(_t),this.subject.next({element:gt,key:Qe,value:_t}))}}releaseElement(gt){const Qe=this.watcherMap.get(gt);Qe&&(Qe.forEach(ei=>ei.unsubscribe()),this.watcherMap.delete(gt));const _t=this.elementMap.get(gt);_t&&(_t.forEach((ei,Zt)=>_t.delete(Zt)),this.elementMap.delete(gt))}triggerUpdate(gt,Qe){const _t=this.elementMap.get(gt);if(_t){const ei=this.getActivatedValues(_t,Qe);ei&&(Qe?this.updateElement(gt,Qe,ei.get(Qe)):ei.forEach((Zt,Pe)=>this.updateElement(gt,Pe,Zt)))}}buildElementKeyMap(gt,Qe){let _t=this.elementKeyMap.get(gt);_t||(_t=new Set,this.elementKeyMap.set(gt,_t)),_t.add(Qe)}watchExtraTriggers(gt,Qe,_t){if(_t&&_t.length){let ei=this.watcherMap.get(gt);if(ei||(ei=new Map,this.watcherMap.set(gt,ei)),!ei.get(Qe)){const Pe=(0,a.T)(..._t).subscribe(()=>{const De=this.getValue(gt,Qe);this.updateElement(gt,Qe,De)});ei.set(Qe,Pe)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,Qe){for(let ei=0;eiQe.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,D.b)(this.hook.interceptEvents(this)),(0,P.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.LFG(r),e.LFG(be),e.LFG(ot))},vt.\u0275prov=e.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();function Te(vt,kt,gt,Qe){var _t;if(void 0!==Qe){const ei=null!==(_t=vt.get(kt))&&void 0!==_t?_t:new Map;ei.set(gt,Qe),vt.set(kt,ei)}}let xe=(()=>{class vt{constructor(gt,Qe,_t,ei){this.elementRef=gt,this.styleBuilder=Qe,this.styler=_t,this.marshal=ei,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new y.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(gt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,this.marshal.activatedAlias)}ngOnChanges(gt){Object.keys(gt).forEach(Qe=>{if(-1!==this.inputs.indexOf(Qe)){const _t=Qe.split(".").slice(1).join(".");this.setValue(gt[Qe].currentValue,_t)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(gt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),gt)}addStyles(gt,Qe){const _t=this.styleBuilder,ei=_t.shouldCache;let Zt=this.styleCache.get(gt);(!Zt||!ei)&&(Zt=_t.buildStyles(gt,Qe),ei&&this.styleCache.set(gt,Zt)),this.mru=Object.assign({},Zt),this.applyStyleToElement(Zt),_t.sideEffect(gt,Zt,Qe)}clearStyles(){Object.keys(this.mru).forEach(gt=>{this.mru[gt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(gt,Qe=!1){if(gt){const[_t,ei]=this.styler.getFlowDirection(gt);if(!ei&&Qe){const Zt=(0,d.Ar)(_t);this.styler.applyStyleToElements(Zt,[gt])}return _t.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,Qe,_t=this.nativeElement){this.styler.applyStyleToElement(_t,gt,Qe)}setValue(gt,Qe){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,Qe)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return vt.\u0275fac=function(gt){return new(gt||vt)(e.Y36(e.SBq),e.Y36(le),e.Y36(q),e.Y36(ce))},vt.\u0275dir=e.lG2({type:vt,features:[e.TTD]}),vt})();function hi(vt,kt="1",gt="1"){let Qe=[kt,gt,vt],_t=vt.indexOf("calc");if(_t>0){Qe[2]=jt(vt.substring(_t).trim());let ei=vt.substr(0,_t).trim().split(" ");2==ei.length&&(Qe[0]=ei[0],Qe[1]=ei[1])}else if(0==_t)Qe[2]=jt(vt.trim());else{let ei=vt.split(" ");Qe=3===ei.length?ei:[kt,gt,vt]}return Qe}function jt(vt){return vt.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function di(vt,kt){if(void 0===kt)return vt;const gt=Qe=>{const _t=+Qe.slice(0,-"x".length);return vt.endsWith("x")&&!isNaN(_t)?`${_t*kt.value}${kt.unit}`:vt};return vt.includes(" ")?vt.split(" ").map(gt).join(" "):gt(vt)}},3322:(He,j,p)=>{"use strict";p.d(j,{Zl:()=>S,aT:()=>n,oO:()=>z});var e=p(5e3),i=p(3270),u=p(9808),y=(p(3191),p(2722),p(2313));let E=(()=>{class g extends i.iR{constructor(R,H,$,fe,ye,ke,Ee){super(R,null,H,$),this.ngClassInstance=Ee,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new u.mk(fe,ye,R,ke)),this.init(),this.setValue("","")}set klass(R){this.ngClassInstance.klass=R,this.setValue(R,"")}updateWithValue(R){this.ngClassInstance.ngClass=R,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return g.\u0275fac=function(R){return new(R||g)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.mk,10))},g.\u0275dir=e.lG2({type:g,inputs:{klass:["class","klass"]},features:[e.qOj]}),g})();const k=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let z=(()=>{class g extends E{constructor(){super(...arguments),this.inputs=k}}return g.\u0275fac=function(){let V;return function(H){return(V||(V=e.n5z(g)))(H||g)}}(),g.\u0275dir=e.lG2({type:g,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),g})();class ie{constructor(V,R,H=!0){this.key=V,this.value=R,this.key=H?V.replace(/['"]/g,"").trim():V.trim(),this.value=H?R.replace(/['"]/g,"").trim():R.trim(),this.value=this.value.replace(/;/,"")}}function se(g){let V=typeof g;return"object"===V?g.constructor===Array?"array":g.constructor===Set?"set":"object":V}function t(g){const[V,...R]=g.split(":");return new ie(V,R.join(":"))}function r(g,V){return V.key&&(g[V.key]=V.value),g}let h=(()=>{class g extends i.iR{constructor(R,H,$,fe,ye,ke,Ee,te,ze){var be;super(R,null,H,$),this.sanitizer=fe,this.ngStyleInstance=Ee,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new u.PC(R,ye,ke)),this.init();const Z=null!==(be=this.nativeElement.getAttribute("style"))&&void 0!==be?be:"";this.fallbackStyles=this.buildStyleMap(Z),this.isServer=te&&(0,u.PM)(ze)}updateWithValue(R){const H=this.buildStyleMap(R);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(R){const H=$=>{var fe;return null!==(fe=this.sanitizer.sanitize(e.q3G.STYLE,$))&&void 0!==fe?fe:""};if(R)switch(se(R)){case"string":return I(function J(g,V=";"){return String(g).trim().split(V).map(R=>R.trim()).filter(R=>""!==R)}(R),H);case"array":return I(R,H);default:return function x(g,V){let R=[];return"set"===se(g)?g.forEach(H=>R.push(H)):Object.keys(g).forEach(H=>{R.push(`${H}:${g[H]}`)}),function me(g,V){return g.map(t).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}(R,V)}(R,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return g.\u0275fac=function(R){return new(R||g)(e.Y36(e.SBq),e.Y36(i.RK),e.Y36(i.yB),e.Y36(y.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(u.PC,10),e.Y36(i.wY),e.Y36(e.Lbi))},g.\u0275dir=e.lG2({type:g,features:[e.qOj]}),g})();const c=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let S=(()=>{class g extends h{constructor(){super(...arguments),this.inputs=c}}return g.\u0275fac=function(){let V;return function(H){return(V||(V=e.n5z(g)))(H||g)}}(),g.\u0275dir=e.lG2({type:g,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),g})();function I(g,V){return g.map(t).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}let n=(()=>{class g{}return g.\u0275fac=function(R){return new(R||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[[i.IR]]}),g})()},7093:(He,j,p)=>{"use strict";p.d(j,{Wh:()=>jt,ae:()=>Pe,xw:()=>M,yH:()=>C});var e=p(5e3),i=p(226),u=p(3270),b=p(9042),y=(p(7579),p(2722));let d=(()=>{class De extends u.QI{buildStyles(Me,{display:ut}){const ft=(0,b.Ar)(Me);return Object.assign(Object.assign({},ft),{display:"none"===ut?ut:ft.display})}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const P=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let T=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,ft,ut,Rt),this._config=et,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Me){var ut;const Rt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ut=A.get(Rt))&&void 0!==ut?ut:new Map,A.set(Rt,this.styleCache),this.currentValue!==Me&&(this.addStyles(Me,{display:Rt}),this.currentValue=Me)}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(d),e.Y36(u.yB),e.Y36(u.WU))},De.\u0275dir=e.lG2({type:De,features:[e.qOj]}),De})(),M=(()=>{class De extends T{constructor(){super(...arguments),this.inputs=P}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),De})();const A=new Map;let t=(()=>{class De extends u.QI{constructor(Me){super(),this.layoutConfig=Me}buildStyles(Me,ut){let[ft,Rt,...et]=Me.split(" "),Re=et.join(" ");const qe=ut.direction.indexOf("column")>-1?"column":"row",Ze=(0,b.tj)(qe)?"max-width":"max-height",we=(0,b.tj)(qe)?"min-width":"min-height",Fe=String(Re).indexOf("calc")>-1,rt=Fe||"auto"===Re,at=String(Re).indexOf("%")>-1&&!Fe,yt=String(Re).indexOf("px")>-1||String(Re).indexOf("rem")>-1||String(Re).indexOf("em")>-1||String(Re).indexOf("vw")>-1||String(Re).indexOf("vh")>-1;let mi=Fe||yt;ft="0"==ft?0:ft,Rt="0"==Rt?0:Rt;const Xt=!ft&&!Rt;let Jt={};const qi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Re||""){case"":const ui=!1!==this.layoutConfig.useColumnBasisZero;Re="row"===qe?"0%":ui?"0.000000001px":"auto";break;case"initial":case"nogrow":ft=0,Re="auto";break;case"grow":Re="100%";break;case"noshrink":Rt=0,Re="auto";break;case"auto":break;case"none":ft=0,Rt=0,Re="auto";break;default:!mi&&!at&&!isNaN(Re)&&(Re+="%"),"0%"===Re&&(mi=!0),"0px"===Re&&(Re="0%"),Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":mi?Re:"100%"}:{flex:`${ft} ${Rt} ${mi?Re:"100%"}`})}return Jt.flex||Jt["flex-grow"]||(Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`})),"0%"!==Re&&"0px"!==Re&&"0.000000001px"!==Re&&"auto"!==Re&&(Jt[we]=Xt||mi&&ft?Re:null,Jt[Ze]=Xt||!rt&&Rt?Re:null),Jt[we]||Jt[Ze]?ut.hasWrap&&(Jt[Fe?"flex-basis":"flex"]=Jt[Ze]?Fe?Jt[Ze]:`${ft} ${Rt} ${Jt[Ze]}`:Fe?Jt[we]:`${ft} ${Rt} ${Jt[we]}`):Jt=(0,b.kt)(qi,Fe?{"flex-grow":ft,"flex-shrink":Rt,"flex-basis":Re}:{flex:`${ft} ${Rt} ${Re}`}),(0,b.kt)(Jt,{"box-sizing":"border-box"})}}return De.\u0275fac=function(Me){return new(Me||De)(e.LFG(u.WU))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const r=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let c=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt,et){super(Me,Rt,ut,et),this.layoutConfig=ft,this.marshal=et,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Me){this.flexShrink=Me||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Me){this.flexGrow=Me||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,y.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Me){const ft=Me.value.split(" ");this.direction=ft[0],this.wrap=void 0!==ft[1]&&"wrap"===ft[1],this.triggerUpdate()}updateWithValue(Me){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const ft=this.direction,Rt=ft.startsWith("row"),et=this.wrap;Rt&&et?this.styleCache=_:Rt&&!et?this.styleCache=S:!Rt&&et?this.styleCache=n:!Rt&&!et&&(this.styleCache=I);const Re=String(Me).replace(";",""),qe=(0,u.Ot)(Re,this.flexGrow,this.flexShrink);this.addStyles(qe.join(" "),{direction:ft,hasWrap:et})}triggerReflow(){const Me=this.activatedValue;if(void 0!==Me){const ut=(0,u.Ot)(Me+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ut.join(" "))}}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(u.WU),e.Y36(t),e.Y36(u.yB))},De.\u0275dir=e.lG2({type:De,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),De})(),C=(()=>{class De extends c{constructor(){super(...arguments),this.inputs=r}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),De})();const S=new Map,I=new Map,_=new Map,n=new Map;let lt=(()=>{class De extends u.QI{buildStyles(Me,ut){const ft={},[Rt,et]=Me.split(" ");switch(Rt){case"center":ft["justify-content"]="center";break;case"space-around":ft["justify-content"]="space-around";break;case"space-between":ft["justify-content"]="space-between";break;case"space-evenly":ft["justify-content"]="space-evenly";break;case"end":case"flex-end":ft["justify-content"]="flex-end";break;default:ft["justify-content"]="flex-start"}switch(et){case"start":case"flex-start":ft["align-items"]=ft["align-content"]="flex-start";break;case"center":ft["align-items"]=ft["align-content"]="center";break;case"end":case"flex-end":ft["align-items"]=ft["align-content"]="flex-end";break;case"space-between":ft["align-content"]="space-between",ft["align-items"]="stretch";break;case"space-around":ft["align-content"]="space-around",ft["align-items"]="stretch";break;case"baseline":ft["align-content"]="stretch",ft["align-items"]="baseline";break;default:ft["align-items"]=ft["align-content"]="stretch"}return(0,b.kt)(ft,{display:ut.inline?"inline-flex":"flex","flex-direction":ut.layout,"box-sizing":"border-box","max-width":"stretch"===et?(0,b.tj)(ut.layout)?null:"100%":null,"max-height":"stretch"===et&&(0,b.tj)(ut.layout)?"100%":null})}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const ht=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let hi=(()=>{class De extends u.iR{constructor(Me,ut,ft,Rt){super(Me,ft,ut,Rt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,y.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Me){const ut=this.layout||"row",ft=this.inline;"row"===ut&&ft?this.styleCache=gt:"row"!==ut||ft?"row-reverse"===ut&&ft?this.styleCache=_t:"row-reverse"!==ut||ft?"column"===ut&&ft?this.styleCache=Qe:"column"!==ut||ft?"column-reverse"===ut&&ft?this.styleCache=ei:"column-reverse"===ut&&!ft&&(this.styleCache=kt):this.styleCache=di:this.styleCache=vt:this.styleCache=Gt,this.addStyles(Me,{layout:ut,inline:ft})}onLayoutChange(Me){const ut=Me.value.split(" ");this.layout=ut[0],this.inline=Me.value.includes("inline"),b.iQ.find(ft=>ft===this.layout)||(this.layout="row"),this.triggerUpdate()}}return De.\u0275fac=function(Me){return new(Me||De)(e.Y36(e.SBq),e.Y36(u.RK),e.Y36(lt),e.Y36(u.yB))},De.\u0275dir=e.lG2({type:De,features:[e.qOj]}),De})(),jt=(()=>{class De extends hi{constructor(){super(...arguments),this.inputs=ht}}return De.\u0275fac=function(){let oe;return function(ut){return(oe||(oe=e.n5z(De)))(ut||De)}}(),De.\u0275dir=e.lG2({type:De,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),De})();const Gt=new Map,di=new Map,vt=new Map,kt=new Map,gt=new Map,Qe=new Map,_t=new Map,ei=new Map;let Pe=(()=>{class De{}return De.\u0275fac=function(Me){return new(Me||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({imports:[[u.IR,i.vT]]}),De})()},3075:(He,j,p)=>{"use strict";p.d(j,{Cf:()=>U,F:()=>Yt,Fd:()=>Ma,Fj:()=>k,JJ:()=>Ae,JL:()=>ce,JU:()=>P,NI:()=>Li,On:()=>An,Q7:()=>Fr,UX:()=>mt,Zs:()=>ha,_Y:()=>Kn,a5:()=>be,kI:()=>Q,oH:()=>La,qQ:()=>qn,qu:()=>Ai,sg:()=>rr,u:()=>Xn,u5:()=>oi,wV:()=>wi});var e=p(5e3),i=p(9808),u=p(457),b=p(4128),a=p(4004);let y=(()=>{class Ke{constructor(Ne,Lt){this._renderer=Ne,this._elementRef=Lt,this.onChange=vi=>{},this.onTouched=()=>{}}setProperty(Ne,Lt){this._renderer.setProperty(this._elementRef.nativeElement,Ne,Lt)}registerOnTouched(Ne){this.onTouched=Ne}registerOnChange(Ne){this.onChange=Ne}setDisabledState(Ne){this.setProperty("disabled",Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke}),Ke})(),d=(()=>{class Ke extends y{}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,features:[e.qOj]}),Ke})();const P=new e.OlP("NgValueAccessor"),M={provide:P,useExisting:(0,e.Gpc)(()=>k),multi:!0},E=new e.OlP("CompositionEventMode");let k=(()=>{class Ke extends y{constructor(Ne,Lt,vi){super(Ne,Lt),this._compositionMode=vi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const Ke=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(Ke.toLowerCase())}())}writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}_handleInput(Ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ne)}_compositionStart(){this._composing=!0}_compositionEnd(Ne){this._composing=!1,this._compositionMode&&this.onChange(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},Ke.\u0275dir=e.lG2({type:Ke,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(Ne,Lt){1&Ne&&e.NdJ("input",function($i){return Lt._handleInput($i.target.value)})("blur",function(){return Lt.onTouched()})("compositionstart",function(){return Lt._compositionStart()})("compositionend",function($i){return Lt._compositionEnd($i.target.value)})},features:[e._Bn([M]),e.qOj]}),Ke})();function w(Ke){return null==Ke||0===Ke.length}function z(Ke){return null!=Ke&&"number"==typeof Ke.length}const U=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ne=/^(?=.{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])?)*$/;class Q{static min(Be){return le(Be)}static max(Be){return q(Be)}static required(Be){return ie(Be)}static requiredTrue(Be){return se(Be)}static email(Be){return function J(Ke){return w(Ke.value)||ne.test(Ke.value)?null:{email:!0}}(Be)}static minLength(Be){return function me(Ke){return Be=>w(Be.value)||!z(Be.value)?null:Be.value.lengthz(Be.value)&&Be.value.length>Ke?{maxlength:{requiredLength:Ke,actualLength:Be.value.length}}:null}(Be)}static pattern(Be){return function t(Ke){if(!Ke)return r;let Be,Ne;return"string"==typeof Ke?(Ne="","^"!==Ke.charAt(0)&&(Ne+="^"),Ne+=Ke,"$"!==Ke.charAt(Ke.length-1)&&(Ne+="$"),Be=new RegExp(Ne)):(Ne=Ke.toString(),Be=Ke),Lt=>{if(w(Lt.value))return null;const vi=Lt.value;return Be.test(vi)?null:{pattern:{requiredPattern:Ne,actualValue:vi}}}}(Be)}static nullValidator(Be){return null}static compose(Be){return n(Be)}static composeAsync(Be){return V(Be)}}function le(Ke){return Be=>{if(w(Be.value)||w(Ke))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne{if(w(Be.value)||w(Ke))return null;const Ne=parseFloat(Be.value);return!isNaN(Ne)&&Ne>Ke?{max:{max:Ke,actual:Be.value}}:null}}function ie(Ke){return w(Ke.value)?{required:!0}:null}function se(Ke){return!0===Ke.value?null:{required:!0}}function r(Ke){return null}function h(Ke){return null!=Ke}function c(Ke){const Be=(0,e.QGY)(Ke)?(0,u.D)(Ke):Ke;return(0,e.CqO)(Be),Be}function C(Ke){let Be={};return Ke.forEach(Ne=>{Be=null!=Ne?Object.assign(Object.assign({},Be),Ne):Be}),0===Object.keys(Be).length?null:Be}function S(Ke,Be){return Be.map(Ne=>Ne(Ke))}function _(Ke){return Ke.map(Be=>function I(Ke){return!Ke.validate}(Be)?Be:Ne=>Be.validate(Ne))}function n(Ke){if(!Ke)return null;const Be=Ke.filter(h);return 0==Be.length?null:function(Ne){return C(S(Ne,Be))}}function g(Ke){return null!=Ke?n(_(Ke)):null}function V(Ke){if(!Ke)return null;const Be=Ke.filter(h);return 0==Be.length?null:function(Ne){const Lt=S(Ne,Be).map(c);return(0,b.D)(Lt).pipe((0,a.U)(C))}}function R(Ke){return null!=Ke?V(_(Ke)):null}function H(Ke,Be){return null===Ke?[Be]:Array.isArray(Ke)?[...Ke,Be]:[Ke,Be]}function $(Ke){return Ke._rawValidators}function fe(Ke){return Ke._rawAsyncValidators}function ye(Ke){return Ke?Array.isArray(Ke)?Ke:[Ke]:[]}function ke(Ke,Be){return Array.isArray(Ke)?Ke.includes(Be):Ke===Be}function Ee(Ke,Be){const Ne=ye(Be);return ye(Ke).forEach(vi=>{ke(Ne,vi)||Ne.push(vi)}),Ne}function te(Ke,Be){return ye(Be).filter(Ne=>!ke(Ke,Ne))}class ze{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(Be){this._rawValidators=Be||[],this._composedValidatorFn=g(this._rawValidators)}_setAsyncValidators(Be){this._rawAsyncValidators=Be||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Be){this._onDestroyCallbacks.push(Be)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Be=>Be()),this._onDestroyCallbacks=[]}reset(Be){this.control&&this.control.reset(Be)}hasError(Be,Ne){return!!this.control&&this.control.hasError(Be,Ne)}getError(Be,Ne){return this.control?this.control.getError(Be,Ne):null}}class be extends ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Z extends ze{get formDirective(){return null}get path(){return null}}class Y{constructor(Be){this._cd=Be}is(Be){var Ne,Lt,vi;return"submitted"===Be?!!(null===(Ne=this._cd)||void 0===Ne?void 0:Ne.submitted):!!(null===(vi=null===(Lt=this._cd)||void 0===Lt?void 0:Lt.control)||void 0===vi?void 0:vi[Be])}}let Ae=(()=>{class Ke extends Y{constructor(Ne){super(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(be,2))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ne,Lt){2&Ne&&e.ekj("ng-untouched",Lt.is("untouched"))("ng-touched",Lt.is("touched"))("ng-pristine",Lt.is("pristine"))("ng-dirty",Lt.is("dirty"))("ng-valid",Lt.is("valid"))("ng-invalid",Lt.is("invalid"))("ng-pending",Lt.is("pending"))},features:[e.qOj]}),Ke})(),ce=(()=>{class Ke extends Y{constructor(Ne){super(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ne,Lt){2&Ne&&e.ekj("ng-untouched",Lt.is("untouched"))("ng-touched",Lt.is("touched"))("ng-pristine",Lt.is("pristine"))("ng-dirty",Lt.is("dirty"))("ng-valid",Lt.is("valid"))("ng-invalid",Lt.is("invalid"))("ng-pending",Lt.is("pending"))("ng-submitted",Lt.is("submitted"))},features:[e.qOj]}),Ke})();function gt(Ke,Be){return[...Be.path,Ke]}function Qe(Ke,Be){Pe(Ke,Be),Be.valueAccessor.writeValue(Ke.value),function oe(Ke,Be){Be.valueAccessor.registerOnChange(Ne=>{Ke._pendingValue=Ne,Ke._pendingChange=!0,Ke._pendingDirty=!0,"change"===Ke.updateOn&&ut(Ke,Be)})}(Ke,Be),function ft(Ke,Be){const Ne=(Lt,vi)=>{Be.valueAccessor.writeValue(Lt),vi&&Be.viewToModelUpdate(Lt)};Ke.registerOnChange(Ne),Be._registerOnDestroy(()=>{Ke._unregisterOnChange(Ne)})}(Ke,Be),function Me(Ke,Be){Be.valueAccessor.registerOnTouched(()=>{Ke._pendingTouched=!0,"blur"===Ke.updateOn&&Ke._pendingChange&&ut(Ke,Be),"submit"!==Ke.updateOn&&Ke.markAsTouched()})}(Ke,Be),function Zt(Ke,Be){if(Be.valueAccessor.setDisabledState){const Ne=Lt=>{Be.valueAccessor.setDisabledState(Lt)};Ke.registerOnDisabledChange(Ne),Be._registerOnDestroy(()=>{Ke._unregisterOnDisabledChange(Ne)})}}(Ke,Be)}function _t(Ke,Be,Ne=!0){const Lt=()=>{};Be.valueAccessor&&(Be.valueAccessor.registerOnChange(Lt),Be.valueAccessor.registerOnTouched(Lt)),De(Ke,Be),Ke&&(Be._invokeOnDestroyCallbacks(),Ke._registerOnCollectionChange(()=>{}))}function ei(Ke,Be){Ke.forEach(Ne=>{Ne.registerOnValidatorChange&&Ne.registerOnValidatorChange(Be)})}function Pe(Ke,Be){const Ne=$(Ke);null!==Be.validator?Ke.setValidators(H(Ne,Be.validator)):"function"==typeof Ne&&Ke.setValidators([Ne]);const Lt=fe(Ke);null!==Be.asyncValidator?Ke.setAsyncValidators(H(Lt,Be.asyncValidator)):"function"==typeof Lt&&Ke.setAsyncValidators([Lt]);const vi=()=>Ke.updateValueAndValidity();ei(Be._rawValidators,vi),ei(Be._rawAsyncValidators,vi)}function De(Ke,Be){let Ne=!1;if(null!==Ke){if(null!==Be.validator){const vi=$(Ke);if(Array.isArray(vi)&&vi.length>0){const $i=vi.filter(Nn=>Nn!==Be.validator);$i.length!==vi.length&&(Ne=!0,Ke.setValidators($i))}}if(null!==Be.asyncValidator){const vi=fe(Ke);if(Array.isArray(vi)&&vi.length>0){const $i=vi.filter(Nn=>Nn!==Be.asyncValidator);$i.length!==vi.length&&(Ne=!0,Ke.setAsyncValidators($i))}}}const Lt=()=>{};return ei(Be._rawValidators,Lt),ei(Be._rawAsyncValidators,Lt),Ne}function ut(Ke,Be){Ke._pendingDirty&&Ke.markAsDirty(),Ke.setValue(Ke._pendingValue,{emitModelToViewChange:!1}),Be.viewToModelUpdate(Ke._pendingValue),Ke._pendingChange=!1}function Rt(Ke,Be){Pe(Ke,Be)}function Fe(Ke,Be){if(!Ke.hasOwnProperty("model"))return!1;const Ne=Ke.model;return!!Ne.isFirstChange()||!Object.is(Be,Ne.currentValue)}function at(Ke,Be){Ke._syncPendingControls(),Be.forEach(Ne=>{const Lt=Ne.control;"submit"===Lt.updateOn&&Lt._pendingChange&&(Ne.viewToModelUpdate(Lt._pendingValue),Lt._pendingChange=!1)})}function yt(Ke,Be){if(!Be)return null;let Ne,Lt,vi;return Array.isArray(Be),Be.forEach($i=>{$i.constructor===k?Ne=$i:function rt(Ke){return Object.getPrototypeOf(Ke.constructor)===d}($i)?Lt=$i:vi=$i}),vi||Lt||Ne||null}function mi(Ke,Be){const Ne=Ke.indexOf(Be);Ne>-1&&Ke.splice(Ne,1)}const qi="VALID",ui="INVALID",si="PENDING",en="DISABLED";function Bi(Ke){return(pt(Ke)?Ke.validators:Ke)||null}function Gi(Ke){return Array.isArray(Ke)?g(Ke):Ke||null}function ct(Ke,Be){return(pt(Be)?Be.asyncValidators:Ke)||null}function Ft(Ke){return Array.isArray(Ke)?R(Ke):Ke||null}function pt(Ke){return null!=Ke&&!Array.isArray(Ke)&&"object"==typeof Ke}const it=Ke=>Ke instanceof Li,It=Ke=>Ke instanceof Ji,de=Ke=>Ke instanceof Wi;function $e(Ke){return it(Ke)?Ke.value:Ke.getRawValue()}function bt(Ke,Be){const Ne=It(Ke),Lt=Ke.controls;if(!(Ne?Object.keys(Lt):Lt).length)throw new e.vHH(1e3,"");if(!Lt[Be])throw new e.vHH(1001,"")}function Vt(Ke,Be){It(Ke),Ke._forEachChild((Lt,vi)=>{if(void 0===Be[vi])throw new e.vHH(1002,"")})}class bi{constructor(Be,Ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Be,this._rawAsyncValidators=Ne,this._composedValidatorFn=Gi(this._rawValidators),this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Be){this._rawValidators=this._composedValidatorFn=Be}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Be){this._rawAsyncValidators=this._composedAsyncValidatorFn=Be}get parent(){return this._parent}get valid(){return this.status===qi}get invalid(){return this.status===ui}get pending(){return this.status==si}get disabled(){return this.status===en}get enabled(){return this.status!==en}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Be){this._rawValidators=Be,this._composedValidatorFn=Gi(Be)}setAsyncValidators(Be){this._rawAsyncValidators=Be,this._composedAsyncValidatorFn=Ft(Be)}addValidators(Be){this.setValidators(Ee(Be,this._rawValidators))}addAsyncValidators(Be){this.setAsyncValidators(Ee(Be,this._rawAsyncValidators))}removeValidators(Be){this.setValidators(te(Be,this._rawValidators))}removeAsyncValidators(Be){this.setAsyncValidators(te(Be,this._rawAsyncValidators))}hasValidator(Be){return ke(this._rawValidators,Be)}hasAsyncValidator(Be){return ke(this._rawAsyncValidators,Be)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Be={}){this.touched=!0,this._parent&&!Be.onlySelf&&this._parent.markAsTouched(Be)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Be=>Be.markAllAsTouched())}markAsUntouched(Be={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ne=>{Ne.markAsUntouched({onlySelf:!0})}),this._parent&&!Be.onlySelf&&this._parent._updateTouched(Be)}markAsDirty(Be={}){this.pristine=!1,this._parent&&!Be.onlySelf&&this._parent.markAsDirty(Be)}markAsPristine(Be={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ne=>{Ne.markAsPristine({onlySelf:!0})}),this._parent&&!Be.onlySelf&&this._parent._updatePristine(Be)}markAsPending(Be={}){this.status=si,!1!==Be.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Be.onlySelf&&this._parent.markAsPending(Be)}disable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=en,this.errors=null,this._forEachChild(Lt=>{Lt.disable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this._updateValue(),!1!==Be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(Lt=>Lt(!0))}enable(Be={}){const Ne=this._parentMarkedDirty(Be.onlySelf);this.status=qi,this._forEachChild(Lt=>{Lt.enable(Object.assign(Object.assign({},Be),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Be),{skipPristineCheck:Ne})),this._onDisabledChange.forEach(Lt=>Lt(!1))}_updateAncestors(Be){this._parent&&!Be.onlySelf&&(this._parent.updateValueAndValidity(Be),Be.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Be){this._parent=Be}updateValueAndValidity(Be={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qi||this.status===si)&&this._runAsyncValidator(Be.emitEvent)),!1!==Be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Be.onlySelf&&this._parent.updateValueAndValidity(Be)}_updateTreeValidity(Be={emitEvent:!0}){this._forEachChild(Ne=>Ne._updateTreeValidity(Be)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Be.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?en:qi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Be){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const Ne=c(this.asyncValidator(this));this._asyncValidationSubscription=Ne.subscribe(Lt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Lt,{emitEvent:Be})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Be,Ne={}){this.errors=Be,this._updateControlsErrors(!1!==Ne.emitEvent)}get(Be){return function Ui(Ke,Be,Ne){if(null==Be||(Array.isArray(Be)||(Be=Be.split(Ne)),Array.isArray(Be)&&0===Be.length))return null;let Lt=Ke;return Be.forEach(vi=>{Lt=It(Lt)?Lt.controls.hasOwnProperty(vi)?Lt.controls[vi]:null:de(Lt)&&Lt.at(vi)||null}),Lt}(this,Be,".")}getError(Be,Ne){const Lt=Ne?this.get(Ne):this;return Lt&&Lt.errors?Lt.errors[Be]:null}hasError(Be,Ne){return!!this.getError(Be,Ne)}get root(){let Be=this;for(;Be._parent;)Be=Be._parent;return Be}_updateControlsErrors(Be){this.status=this._calculateStatus(),Be&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Be)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?en:this.errors?ui:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(ui)?ui:qi}_anyControlsHaveStatus(Be){return this._anyControls(Ne=>Ne.status===Be)}_anyControlsDirty(){return this._anyControls(Be=>Be.dirty)}_anyControlsTouched(){return this._anyControls(Be=>Be.touched)}_updatePristine(Be={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Be.onlySelf&&this._parent._updatePristine(Be)}_updateTouched(Be={}){this.touched=this._anyControlsTouched(),this._parent&&!Be.onlySelf&&this._parent._updateTouched(Be)}_isBoxedValue(Be){return"object"==typeof Be&&null!==Be&&2===Object.keys(Be).length&&"value"in Be&&"disabled"in Be}_registerOnCollectionChange(Be){this._onCollectionChange=Be}_setUpdateStrategy(Be){pt(Be)&&null!=Be.updateOn&&(this._updateOn=Be.updateOn)}_parentMarkedDirty(Be){return!Be&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Li extends bi{constructor(Be=null,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Be),this._setUpdateStrategy(Ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pt(Ne)&&Ne.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Be)?Be.value:Be)}setValue(Be,Ne={}){this.value=this._pendingValue=Be,this._onChange.length&&!1!==Ne.emitModelToViewChange&&this._onChange.forEach(Lt=>Lt(this.value,!1!==Ne.emitViewToModelChange)),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){this.setValue(Be,Ne)}reset(Be=this.defaultValue,Ne={}){this._applyFormState(Be),this.markAsPristine(Ne),this.markAsUntouched(Ne),this.setValue(this.value,Ne),this._pendingChange=!1}_updateValue(){}_anyControls(Be){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Be){this._onChange.push(Be)}_unregisterOnChange(Be){mi(this._onChange,Be)}registerOnDisabledChange(Be){this._onDisabledChange.push(Be)}_unregisterOnDisabledChange(Be){mi(this._onDisabledChange,Be)}_forEachChild(Be){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Be){this._isBoxedValue(Be)?(this.value=this._pendingValue=Be.value,Be.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Be}}class Ji extends bi{constructor(Be,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Be,Ne){return this.controls[Be]?this.controls[Be]:(this.controls[Be]=Ne,Ne.setParent(this),Ne._registerOnCollectionChange(this._onCollectionChange),Ne)}addControl(Be,Ne,Lt={}){this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}removeControl(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}setControl(Be,Ne,Lt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),delete this.controls[Be],Ne&&this.registerControl(Be,Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}contains(Be){return this.controls.hasOwnProperty(Be)&&this.controls[Be].enabled}setValue(Be,Ne={}){Vt(this,Be),Object.keys(Be).forEach(Lt=>{bt(this,Lt),this.controls[Lt].setValue(Be[Lt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Object.keys(Be).forEach(Lt=>{this.controls[Lt]&&this.controls[Lt].patchValue(Be[Lt],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be={},Ne={}){this._forEachChild((Lt,vi)=>{Lt.reset(Be[vi],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this._reduceChildren({},(Be,Ne,Lt)=>(Be[Lt]=$e(Ne),Be))}_syncPendingControls(){let Be=this._reduceChildren(!1,(Ne,Lt)=>!!Lt._syncPendingControls()||Ne);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){Object.keys(this.controls).forEach(Ne=>{const Lt=this.controls[Ne];Lt&&Be(Lt,Ne)})}_setUpControls(){this._forEachChild(Be=>{Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Be){for(const Ne of Object.keys(this.controls)){const Lt=this.controls[Ne];if(this.contains(Ne)&&Be(Lt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Be,Ne,Lt)=>((Ne.enabled||this.disabled)&&(Be[Lt]=Ne.value),Be))}_reduceChildren(Be,Ne){let Lt=Be;return this._forEachChild((vi,$i)=>{Lt=Ne(Lt,vi,$i)}),Lt}_allControlsDisabled(){for(const Be of Object.keys(this.controls))if(this.controls[Be].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Wi extends bi{constructor(Be,Ne,Lt){super(Bi(Ne),ct(Lt,Ne)),this.controls=Be,this._initObservables(),this._setUpdateStrategy(Ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Be){return this.controls[Be]}push(Be,Ne={}){this.controls.push(Be),this._registerControl(Be),this.updateValueAndValidity({emitEvent:Ne.emitEvent}),this._onCollectionChange()}insert(Be,Ne,Lt={}){this.controls.splice(Be,0,Ne),this._registerControl(Ne),this.updateValueAndValidity({emitEvent:Lt.emitEvent})}removeAt(Be,Ne={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),this.updateValueAndValidity({emitEvent:Ne.emitEvent})}setControl(Be,Ne,Lt={}){this.controls[Be]&&this.controls[Be]._registerOnCollectionChange(()=>{}),this.controls.splice(Be,1),Ne&&(this.controls.splice(Be,0,Ne),this._registerControl(Ne)),this.updateValueAndValidity({emitEvent:Lt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Be,Ne={}){Vt(this,Be),Be.forEach((Lt,vi)=>{bt(this,vi),this.at(vi).setValue(Lt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne)}patchValue(Be,Ne={}){null!=Be&&(Be.forEach((Lt,vi)=>{this.at(vi)&&this.at(vi).patchValue(Lt,{onlySelf:!0,emitEvent:Ne.emitEvent})}),this.updateValueAndValidity(Ne))}reset(Be=[],Ne={}){this._forEachChild((Lt,vi)=>{Lt.reset(Be[vi],{onlySelf:!0,emitEvent:Ne.emitEvent})}),this._updatePristine(Ne),this._updateTouched(Ne),this.updateValueAndValidity(Ne)}getRawValue(){return this.controls.map(Be=>$e(Be))}clear(Be={}){this.controls.length<1||(this._forEachChild(Ne=>Ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Be.emitEvent}))}_syncPendingControls(){let Be=this.controls.reduce((Ne,Lt)=>!!Lt._syncPendingControls()||Ne,!1);return Be&&this.updateValueAndValidity({onlySelf:!0}),Be}_forEachChild(Be){this.controls.forEach((Ne,Lt)=>{Be(Ne,Lt)})}_updateValue(){this.value=this.controls.filter(Be=>Be.enabled||this.disabled).map(Be=>Be.value)}_anyControls(Be){return this.controls.some(Ne=>Ne.enabled&&Be(Ne))}_setUpControls(){this._forEachChild(Be=>this._registerControl(Be))}_allControlsDisabled(){for(const Be of this.controls)if(Be.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Be){Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange)}}const sn={provide:Z,useExisting:(0,e.Gpc)(()=>Yt)},mn=(()=>Promise.resolve(null))();let Yt=(()=>{class Ke extends Z{constructor(Ne,Lt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new Ji({},g(Ne),R(Lt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Ne.control=Lt.registerControl(Ne.name,Ne.control),Qe(Ne.control,Ne),Ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ne)})}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Lt&&Lt.removeControl(Ne.name),this._directives.delete(Ne)})}addFormGroup(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path),vi=new Ji({});Rt(vi,Ne),Lt.registerControl(Ne.name,vi),vi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ne){mn.then(()=>{const Lt=this._findContainer(Ne.path);Lt&&Lt.removeControl(Ne.name)})}getFormGroup(Ne){return this.form.get(Ne.path)}updateModel(Ne,Lt){mn.then(()=>{this.form.get(Ne.path).setValue(Lt)})}setValue(Ne){this.control.setValue(Ne)}onSubmit(Ne){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ne){return Ne.pop(),Ne.length?this.form.get(Ne):this.form}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("submit",function($i){return Lt.onSubmit($i)})("reset",function(){return Lt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([sn]),e.qOj]}),Ke})();const hn={provide:be,useExisting:(0,e.Gpc)(()=>An)},Hn=(()=>Promise.resolve(null))();let An=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i,Nn){super(),this._changeDetectorRef=Nn,this.control=new Li,this._registered=!1,this.update=new e.vpe,this._parent=Ne,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=yt(0,$i)}ngOnChanges(Ne){if(this._checkForErrors(),!this._registered||"name"in Ne){if(this._registered&&(this._checkName(),this.formDirective)){const Lt=Ne.name.previousValue;this.formDirective.removeControl({name:Lt,path:this._getPath(Lt)})}this._setUpControl()}"isDisabled"in Ne&&this._updateDisabled(Ne),Fe(Ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qe(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ne){Hn.then(()=>{var Lt;this.control.setValue(Ne,{emitViewToModelChange:!1}),null===(Lt=this._changeDetectorRef)||void 0===Lt||Lt.markForCheck()})}_updateDisabled(Ne){const Lt=Ne.isDisabled.currentValue,vi=""===Lt||Lt&&"false"!==Lt;Hn.then(()=>{var $i;vi&&!this.control.disabled?this.control.disable():!vi&&this.control.disabled&&this.control.enable(),null===($i=this._changeDetectorRef)||void 0===$i||$i.markForCheck()})}_getPath(Ne){return this._parent?gt(Ne,this._parent):[Ne]}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,9),e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(e.sBO,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([hn]),e.qOj,e.TTD]}),Ke})(),Kn=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ke})();const Cn={provide:P,useExisting:(0,e.Gpc)(()=>wi),multi:!0};let wi=(()=>{class Ke extends d{writeValue(Ne){this.setProperty("value",null==Ne?"":Ne)}registerOnChange(Ne){this.onChange=Lt=>{Ne(""==Lt?null:parseFloat(Lt))}}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("input",function($i){return Lt.onChange($i.target.value)})("blur",function(){return Lt.onTouched()})},features:[e._Bn([Cn]),e.qOj]}),Ke})(),Gn=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({}),Ke})();const sa=new e.OlP("NgModelWithFormControlWarning"),oa={provide:be,useExisting:(0,e.Gpc)(()=>La)};let La=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i){super(),this._ngModelWarningConfig=$i,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ne),this._setAsyncValidators(Lt),this.valueAccessor=yt(0,vi)}set isDisabled(Ne){}ngOnChanges(Ne){if(this._isControlChanged(Ne)){const Lt=Ne.form.previousValue;Lt&&_t(Lt,this,!1),Qe(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Fe(Ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}_isControlChanged(Ne){return Ne.hasOwnProperty("form")}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(sa,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([oa]),e.qOj,e.TTD]}),Ke})();const Ta={provide:Z,useExisting:(0,e.Gpc)(()=>rr)};let rr=(()=>{class Ke extends Z{constructor(Ne,Lt){super(),this.validators=Ne,this.asyncValidators=Lt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ne),this._setAsyncValidators(Lt)}ngOnChanges(Ne){this._checkFormPresent(),Ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(De(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ne){const Lt=this.form.get(Ne.path);return Qe(Lt,Ne),Lt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ne),Lt}getControl(Ne){return this.form.get(Ne.path)}removeControl(Ne){_t(Ne.control||null,Ne,!1),mi(this.directives,Ne)}addFormGroup(Ne){this._setUpFormContainer(Ne)}removeFormGroup(Ne){this._cleanUpFormContainer(Ne)}getFormGroup(Ne){return this.form.get(Ne.path)}addFormArray(Ne){this._setUpFormContainer(Ne)}removeFormArray(Ne){this._cleanUpFormContainer(Ne)}getFormArray(Ne){return this.form.get(Ne.path)}updateModel(Ne,Lt){this.form.get(Ne.path).setValue(Lt)}onSubmit(Ne){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(Ne),!1}onReset(){this.resetForm()}resetForm(Ne){this.form.reset(Ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ne=>{const Lt=Ne.control,vi=this.form.get(Ne.path);Lt!==vi&&(_t(Lt||null,Ne),it(vi)&&(Qe(vi,Ne),Ne.control=vi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ne){const Lt=this.form.get(Ne.path);Rt(Lt,Ne),Lt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ne){if(this.form){const Lt=this.form.get(Ne.path);Lt&&function et(Ke,Be){return De(Ke,Be)}(Lt,Ne)&&Lt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&De(this._oldForm,this)}_checkFormPresent(){}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(U,10),e.Y36(W,10))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formGroup",""]],hostBindings:function(Ne,Lt){1&Ne&&e.NdJ("submit",function($i){return Lt.onSubmit($i)})("reset",function(){return Lt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ta]),e.qOj,e.TTD]}),Ke})();const Rr={provide:be,useExisting:(0,e.Gpc)(()=>Xn)};let Xn=(()=>{class Ke extends be{constructor(Ne,Lt,vi,$i,Nn){super(),this._ngModelWarningConfig=Nn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ne,this._setValidators(Lt),this._setAsyncValidators(vi),this.valueAccessor=yt(0,$i)}set isDisabled(Ne){}ngOnChanges(Ne){this._added||this._setUpControl(),Fe(Ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ne){this.viewModel=Ne,this.update.emit(Ne)}get path(){return gt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Ke._ngModelWarningSentOnce=!1,Ke.\u0275fac=function(Ne){return new(Ne||Ke)(e.Y36(Z,13),e.Y36(U,10),e.Y36(W,10),e.Y36(P,10),e.Y36(sa,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Rr]),e.qOj,e.TTD]}),Ke})();function da(Ke){return"number"==typeof Ke?Ke:parseFloat(Ke)}let Jn=(()=>{class Ke{constructor(){this._validator=r}ngOnChanges(Ne){if(this.inputName in Ne){const Lt=this.normalizeInput(Ne[this.inputName].currentValue);this._enabled=this.enabled(Lt),this._validator=this._enabled?this.createValidator(Lt):r,this._onChange&&this._onChange()}}validate(Ne){return this._validator(Ne)}registerOnValidatorChange(Ne){this._onChange=Ne}enabled(Ne){return null!=Ne}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();const ga={provide:U,useExisting:(0,e.Gpc)(()=>Ma),multi:!0};let Ma=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>q(Ne)}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("max",Lt._enabled?Lt.max:null)},inputs:{max:"max"},features:[e._Bn([ga]),e.qOj]}),Ke})();const $n={provide:U,useExisting:(0,e.Gpc)(()=>qn),multi:!0};let qn=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Ne=>da(Ne),this.createValidator=Ne=>le(Ne)}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("min",Lt._enabled?Lt.min:null)},inputs:{min:"min"},features:[e._Bn([$n]),e.qOj]}),Ke})();const Hr={provide:U,useExisting:(0,e.Gpc)(()=>Fr),multi:!0},br={provide:U,useExisting:(0,e.Gpc)(()=>ha),multi:!0};let Fr=(()=>{class Ke extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ne=>function ca(Ke){return null!=Ke&&!1!==Ke&&"false"!=`${Ke}`}(Ne),this.createValidator=Ne=>ie}enabled(Ne){return Ne}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("required",Lt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Hr]),e.qOj]}),Ke})(),ha=(()=>{class Ke extends Fr{constructor(){super(...arguments),this.createValidator=Ne=>se}}return Ke.\u0275fac=function(){let Be;return function(Lt){return(Be||(Be=e.n5z(Ke)))(Lt||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ne,Lt){2&Ne&&e.uIk("required",Lt._enabled?"":null)},features:[e._Bn([br]),e.qOj]}),Ke})(),At=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Gn]]}),Ke})(),oi=(()=>{class Ke{}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[At]}),Ke})(),mt=(()=>{class Ke{static withConfig(Ne){return{ngModule:Ke,providers:[{provide:sa,useValue:Ne.warnOnNgModelWithFormControl}]}}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[At]}),Ke})(),Ai=(()=>{class Ke{group(Ne,Lt=null){const vi=this._reduceControls(Ne);let Sr,$i=null,Nn=null;return null!=Lt&&(function $t(Ke){return void 0!==Ke.asyncValidators||void 0!==Ke.validators||void 0!==Ke.updateOn}(Lt)?($i=null!=Lt.validators?Lt.validators:null,Nn=null!=Lt.asyncValidators?Lt.asyncValidators:null,Sr=null!=Lt.updateOn?Lt.updateOn:void 0):($i=null!=Lt.validator?Lt.validator:null,Nn=null!=Lt.asyncValidator?Lt.asyncValidator:null)),new Ji(vi,{asyncValidators:Nn,updateOn:Sr,validators:$i})}control(Ne,Lt,vi){return new Li(Ne,Lt,vi)}array(Ne,Lt,vi){const $i=Ne.map(Nn=>this._createControl(Nn));return new Wi($i,Lt,vi)}_reduceControls(Ne){const Lt={};return Object.keys(Ne).forEach(vi=>{Lt[vi]=this._createControl(Ne[vi])}),Lt}_createControl(Ne){return it(Ne)||It(Ne)||de(Ne)?Ne:Array.isArray(Ne)?this.control(Ne[0],Ne.length>1?Ne[1]:null,Ne.length>2?Ne[2]:null):this.control(Ne)}}return Ke.\u0275fac=function(Ne){return new(Ne||Ke)},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:mt}),Ke})()},1079:(He,j,p)=>{"use strict";p.d(j,{Bb:()=>te,XC:()=>n,ZL:()=>ye});var e=p(5664),i=p(3191),u=p(5e3),b=p(508),a=p(727),y=p(7579),d=p(9770),P=p(6451),D=p(9646),T=p(4968),M=p(925),A=p(9808),E=p(9776),k=p(5303),w=p(1159),z=p(7429),U=p(3075),W=p(7322),ne=p(8675),Q=p(3900),le=p(5698),q=p(9300),ie=p(4004),se=p(8505),J=p(4086),me=p(226);const x=["panel"];function t(ze,be){if(1&ze&&(u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA()),2&ze){const Z=be.id,Y=u.oxw();u.Q6J("id",Y.id)("ngClass",Y._classList),u.uIk("aria-label",Y.ariaLabel||null)("aria-labelledby",Y._getPanelAriaLabelledby(Z))}}const r=["*"];let h=0;class c{constructor(be,Z){this.source=be,this.option=Z}}const C=(0,b.Kr)(class{}),S=new u.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let _=(()=>{class ze extends C{constructor(Z,Y,ot,Ie){super(),this._changeDetectorRef=Z,this._elementRef=Y,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new u.vpe,this.opened=new u.vpe,this.closed=new u.vpe,this.optionActivated=new u.vpe,this._classList={},this.id="mat-autocomplete-"+h++,this.inertGroups=(null==Ie?void 0:Ie.SAFARI)||!1,this._autoActiveFirstOption=!!ot.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Z){this._autoActiveFirstOption=(0,i.Ig)(Z)}set classList(Z){this._classList=Z&&Z.length?(0,i.du)(Z).reduce((Y,ot)=>(Y[ot]=!0,Y),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Z=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Z]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Z){this.panel&&(this.panel.nativeElement.scrollTop=Z)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Z){const Y=new c(this,Z);this.optionSelected.emit(Y)}_getPanelAriaLabelledby(Z){return this.ariaLabel?null:this.ariaLabelledby?(Z?Z+" ":"")+this.ariaLabelledby:Z}_setVisibilityClasses(Z){Z[this._visibleClass]=this.showPanel,Z[this._hiddenClass]=!this.showPanel}}return ze.\u0275fac=function(Z){return new(Z||ze)(u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(S),u.Y36(M.t4))},ze.\u0275dir=u.lG2({type:ze,viewQuery:function(Z,Y){if(1&Z&&(u.Gf(u.Rgc,7),u.Gf(x,5)),2&Z){let ot;u.iGM(ot=u.CRH())&&(Y.template=ot.first),u.iGM(ot=u.CRH())&&(Y.panel=ot.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[u.qOj]}),ze})(),n=(()=>{class ze extends _{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=u.n5z(ze)))(Y||ze)}}(),ze.\u0275cmp=u.Xpm({type:ze,selectors:[["mat-autocomplete"]],contentQueries:function(Z,Y,ot){if(1&Z&&(u.Suo(ot,b.K7,5),u.Suo(ot,b.ey,5)),2&Z){let Ie;u.iGM(Ie=u.CRH())&&(Y.optionGroups=Ie),u.iGM(Ie=u.CRH())&&(Y.options=Ie)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[u._Bn([{provide:b.HF,useExisting:ze}]),u.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Z,Y){1&Z&&(u.F$t(),u.YNc(0,t,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),ze})();const g=new u.OlP("mat-autocomplete-scroll-strategy"),R={provide:g,deps:[E.aV],useFactory:function V(ze){return()=>ze.scrollStrategies.reposition()}},H={provide:U.JU,useExisting:(0,u.Gpc)(()=>ye),multi:!0};let fe=(()=>{class ze{constructor(Z,Y,ot,Ie,Ae,ce,Te,xe,G,ee,ue){this._element=Z,this._overlay=Y,this._viewContainerRef=ot,this._zone=Ie,this._changeDetectorRef=Ae,this._dir=Te,this._formField=xe,this._document=G,this._viewportRuler=ee,this._defaults=ue,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new y.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,d.P)(()=>{const ve=this.autocomplete?this.autocomplete.options:null;return ve?ve.changes.pipe((0,ne.O)(ve),(0,Q.w)(()=>(0,P.T)(...ve.map(Le=>Le.onSelectionChange)))):this._zone.onStable.pipe((0,le.q)(1),(0,Q.w)(()=>this.optionSelections))}),this._scrollStrategy=ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Z){this._autocompleteDisabled=(0,i.Ig)(Z)}ngAfterViewInit(){const Z=this._getWindow();void 0!==Z&&this._zone.runOutsideAngular(()=>Z.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Z){Z.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Z=this._getWindow();void 0!==Z&&Z.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,P.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,q.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,q.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,ie.U)(Z=>Z instanceof b.rN?Z:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,P.T)((0,T.R)(this._document,"click"),(0,T.R)(this._document,"auxclick"),(0,T.R)(this._document,"touchend")).pipe((0,q.h)(Z=>{const Y=(0,M.sA)(Z),ot=this._formField?this._formField._elementRef.nativeElement:null,Ie=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Y!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ot||!ot.contains(Y))&&(!Ie||!Ie.contains(Y))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Y)}))}writeValue(Z){Promise.resolve().then(()=>this._setTriggerValue(Z))}registerOnChange(Z){this._onChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this._element.nativeElement.disabled=Z}_handleKeydown(Z){const Y=Z.keyCode,ot=(0,w.Vb)(Z);if(Y===w.hY&&!ot&&Z.preventDefault(),this.activeOption&&Y===w.K5&&this.panelOpen&&!ot)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Z.preventDefault();else if(this.autocomplete){const Ie=this.autocomplete._keyManager.activeItem,Ae=Y===w.LH||Y===w.JH;Y===w.Mf||Ae&&!ot&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Z):Ae&&this._canOpen()&&this.openPanel(),(Ae||this.autocomplete._keyManager.activeItem!==Ie)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(Z){let Y=Z.target,ot=Y.value;"number"===Y.type&&(ot=""==ot?null:parseFloat(ot)),this._previousValue!==ot&&(this._previousValue=ot,this._onChange(ot),this._canOpen()&&this._document.activeElement===Z.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Z=!1){this._formField&&"auto"===this._formField.floatLabel&&(Z?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Z=this._zone.onStable.pipe((0,le.q)(1)),Y=this.autocomplete.options.changes.pipe((0,se.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,J.g)(0));return(0,P.T)(Z,Y).pipe((0,Q.w)(()=>(this._zone.run(()=>{const ot=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),ot!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,le.q)(1)).subscribe(ot=>this._setValueAndClose(ot))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(Z){const Y=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Z):Z,ot=null!=Y?Y:"";this._formField?this._formField._control.value=ot:this._element.nativeElement.value=ot,this._previousValue=ot}_setValueAndClose(Z){const Y=Z&&Z.source;Y&&(this._clearPreviousSelectedOption(Y),this._setTriggerValue(Y.value),this._onChange(Y.value),this.autocomplete._emitSelectEvent(Y),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Z){this.autocomplete.options.forEach(Y=>{Y!==Z&&Y.selected&&Y.deselect()})}_attachOverlay(){var Z;let Y=this._overlayRef;Y?(this._positionStrategy.setOrigin(this._getConnectedElement()),Y.updateSize({width:this._getPanelWidth()})):(this._portal=new z.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(Z=this._formField)||void 0===Z?void 0:Z.getLabelId()}),Y=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Y,Y.keydownEvents().subscribe(Ie=>{(Ie.keyCode===w.hY&&!(0,w.Vb)(Ie)||Ie.keyCode===w.LH&&(0,w.Vb)(Ie,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ie.stopPropagation(),Ie.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Y&&Y.updateSize({width:this._getPanelWidth()})})),Y&&!Y.hasAttached()&&(Y.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ot=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ot!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Z;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Z=this._defaults)||void 0===Z?void 0:Z.overlayPanelClass})}_getOverlayPosition(){const Z=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Z),this._positionStrategy=Z,Z}_setStrategyPositions(Z){const Y=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ot=this._aboveClass,Ie=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ot},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ot}];let Ae;Ae="above"===this.position?Ie:"below"===this.position?Y:[...Y,...Ie],Z.withPositions(Ae)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Z=this.autocomplete;Z.autoActiveFirstOption?Z._keyManager.setFirstItemActive():Z._keyManager.setActiveItem(-1)}_canOpen(){const Z=this._element.nativeElement;return!Z.readOnly&&!Z.disabled&&!this._autocompleteDisabled}_getWindow(){var Z;return(null===(Z=this._document)||void 0===Z?void 0:Z.defaultView)||window}_scrollToOption(Z){const Y=this.autocomplete,ot=(0,b.CB)(Z,Y.options,Y.optionGroups);if(0===Z&&1===ot)Y._setScrollTop(0);else if(Y.panel){const Ie=Y.options.toArray()[Z];if(Ie){const Ae=Ie._getHostElement(),ce=(0,b.jH)(Ae.offsetTop,Ae.offsetHeight,Y._getScrollTop(),Y.panel.nativeElement.offsetHeight);Y._setScrollTop(ce)}}}}return ze.\u0275fac=function(Z){return new(Z||ze)(u.Y36(u.SBq),u.Y36(E.aV),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(g),u.Y36(me.Is,8),u.Y36(W.G_,9),u.Y36(A.K0,8),u.Y36(k.rL),u.Y36(S,8))},ze.\u0275dir=u.lG2({type:ze,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[u.TTD]}),ze})(),ye=(()=>{class ze extends fe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=u.n5z(ze)))(Y||ze)}}(),ze.\u0275dir=u.lG2({type:ze,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Z,Y){1&Z&&u.NdJ("focusin",function(){return Y._handleFocus()})("blur",function(){return Y._onTouched()})("input",function(Ie){return Y._handleInput(Ie)})("keydown",function(Ie){return Y._handleKeydown(Ie)})("click",function(){return Y._handleClick()}),2&Z&&u.uIk("autocomplete",Y.autocompleteAttribute)("role",Y.autocompleteDisabled?null:"combobox")("aria-autocomplete",Y.autocompleteDisabled?null:"list")("aria-activedescendant",Y.panelOpen&&Y.activeOption?Y.activeOption.id:null)("aria-expanded",Y.autocompleteDisabled?null:Y.panelOpen.toString())("aria-owns",Y.autocompleteDisabled||!Y.panelOpen||null==Y.autocomplete?null:Y.autocomplete.id)("aria-haspopup",Y.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[u._Bn([H]),u.qOj]}),ze})(),te=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=u.oAB({type:ze}),ze.\u0275inj=u.cJS({providers:[R],imports:[[E.U8,b.Ng,b.BQ,A.ez],k.ZD,b.Ng,b.BQ]}),ze})()},7544:(He,j,p)=>{"use strict";p.d(j,{g:()=>T,k:()=>D});var e=p(5e3),i=p(508),u=p(5664),b=p(3191),a=p(6360);let y=0;const d=(0,i.Id)(class{}),P="mat-badge-content";let D=(()=>{class M extends d{constructor(E,k,w,z,U){super(),this._ngZone=E,this._elementRef=k,this._ariaDescriber=w,this._renderer=z,this._animationMode=U,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=y++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,b.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,b.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),k="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(P),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(k)})}):E.classList.add(k),E}_updateRenderedContent(E){const k=`${null!=E?E:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),E&&k.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${P}`);for(const k of Array.from(E))k!==this._badgeElement&&k.remove()}}return M.\u0275fac=function(E){return new(E||M)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(u.$s),e.Y36(e.Qsj),e.Y36(a.Qb,8))},M.\u0275dir=e.lG2({type:M,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,k){2&E&&e.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[u.rt,i.BQ],i.BQ]}),M})()},7423:(He,j,p)=>{"use strict";p.d(j,{lW:()=>M,ot:()=>E});var e=p(5e3),i=p(508),u=p(6360),b=p(5664);const a=["mat-button",""],y=["*"],D=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],T=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(k){this._elementRef=k}})));let M=(()=>{class k extends T{constructor(z,U,W){super(z),this._focusMonitor=U,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ne of D)this._hasHostAttributes(ne)&&this._getHostElement().classList.add(ne);z.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(z,U){z?this._focusMonitor.focusVia(this._getHostElement(),z,U):this._getHostElement().focus(U)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...z){return z.some(U=>this._getHostElement().hasAttribute(U))}}return k.\u0275fac=function(z){return new(z||k)(e.Y36(e.SBq),e.Y36(b.tE),e.Y36(u.Qb,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(z,U){if(1&z&&e.Gf(i.wG,5),2&z){let W;e.iGM(W=e.CRH())&&(U.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(z,U){2&z&&(e.uIk("disabled",U.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-button-disabled",U.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:a,ngContentSelectors:y,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(z,U){1&z&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&z&&(e.xp6(2),e.ekj("mat-button-ripple-round",U.isRoundButton||U.isIconButton),e.Q6J("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",U.isIconButton)("matRippleTrigger",U._getHostElement()))},directives:[i.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),E=(()=>{class k{}return k.\u0275fac=function(z){return new(z||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),k})()},9224:(He,j,p)=>{"use strict";p.d(j,{$j:()=>A,QW:()=>se,a8:()=>le,dk:()=>q,dn:()=>T,n5:()=>M});var e=p(5e3),i=p(6360),u=p(508);const b=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],y=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let T=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),J})(),M=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),J})(),A=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),J})(),le=(()=>{class J{constructor(x){this._animationMode=x}}return J.\u0275fac=function(x){return new(x||J)(e.Y36(i.Qb,8))},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,t){2&x&&e.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,t){1&x&&(e.F$t(b),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),J})(),q=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(x,t){1&x&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),J})(),se=(()=>{class J{}return J.\u0275fac=function(x){return new(x||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),J})()},7446:(He,j,p)=>{"use strict";p.d(j,{oG:()=>W,p9:()=>q});var e=p(3191),i=p(5e3),u=p(3075),b=p(508),a=p(6360),y=p(5664),d=p(7144);const P=["input"],D=function(ie){return{enterDuration:ie}},T=["*"],M=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const k=A(),w={provide:u.JU,useExisting:(0,i.Gpc)(()=>W),multi:!0};class z{}const U=(0,b.sb)((0,b.pj)((0,b.Kr)((0,b.Id)(class{constructor(ie){this._elementRef=ie}}))));let W=(()=>{class ie extends U{constructor(J,me,x,t,r,h,c){super(J),this._changeDetectorRef=me,this._focusMonitor=x,this._ngZone=t,this._animationMode=h,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(J){this._required=(0,e.Ig)(J)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{J||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(J){const me=(0,e.Ig)(J);me!=this.checked&&(this._checked=me,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(J){const me=(0,e.Ig)(J);me!==this.disabled&&(this._disabled=me,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(J){const me=J!=this._indeterminate;this._indeterminate=(0,e.Ig)(J),me&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(J){this.checked=!!J}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(J){let me=this._currentCheckState,x=this._elementRef.nativeElement;if(me!==J&&(this._currentAnimationClass.length>0&&x.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(me,J),this._currentCheckState=J,this._currentAnimationClass.length>0)){x.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(t)},1e3)})}}_emitChangeEvent(){const J=new z;J.source=this,J.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(J),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(J){var me;const x=null===(me=this._options)||void 0===me?void 0:me.clickAction;J.stopPropagation(),this.disabled||"noop"===x?!this.disabled&&"noop"===x&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==x&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(J,me){J?this._focusMonitor.focusVia(this._inputElement,J,me):this._inputElement.nativeElement.focus(me)}_onInteractionEvent(J){J.stopPropagation()}_getAnimationClassForCheckStateTransition(J,me){if("NoopAnimations"===this._animationMode)return"";let x="";switch(J){case 0:if(1===me)x="unchecked-checked";else{if(3!=me)return"";x="unchecked-indeterminate"}break;case 2:x=1===me?"unchecked-checked":"unchecked-indeterminate";break;case 1:x=2===me?"checked-unchecked":"checked-indeterminate";break;case 3:x=1===me?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${x}`}_syncIndeterminate(J){const me=this._inputElement;me&&(me.nativeElement.indeterminate=J)}}return ie.\u0275fac=function(J){return new(J||ie)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(y.tE),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(a.Qb,8),i.Y36(M,8))},ie.\u0275cmp=i.Xpm({type:ie,selectors:[["mat-checkbox"]],viewQuery:function(J,me){if(1&J&&(i.Gf(P,5),i.Gf(b.wG,5)),2&J){let x;i.iGM(x=i.CRH())&&(me._inputElement=x.first),i.iGM(x=i.CRH())&&(me.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(J,me){2&J&&(i.Ikx("id",me.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",me.indeterminate)("mat-checkbox-checked",me.checked)("mat-checkbox-disabled",me.disabled)("mat-checkbox-label-before","before"==me.labelPosition)("_mat-animation-noopable","NoopAnimations"===me._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([w]),i.qOj],ngContentSelectors:T,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(J,me){if(1&J&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(t){return me._onInteractionEvent(t)})("click",function(t){return me._onInputClick(t)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&J){const x=i.MAs(1),t=i.MAs(13);i.uIk("for",me.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(1),i.Q6J("id",me.inputId)("required",me.required)("checked",me.checked)("disabled",me.disabled)("tabIndex",me.tabIndex),i.uIk("value",me.value)("name",me.name)("aria-label",me.ariaLabel||null)("aria-labelledby",me.ariaLabelledby)("aria-checked",me._getAriaChecked())("aria-describedby",me.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",x)("matRippleDisabled",me._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,D,"NoopAnimations"===me._animationMode?0:150))}},directives:[b.wG,d.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({}),ie})(),q=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({imports:[[b.si,b.BQ,d.Q8,le],b.BQ,le]}),ie})()},6688:(He,j,p)=>{"use strict";p.d(j,{HS:()=>x,Hi:()=>g,qn:()=>_});var e=p(1159),i=p(5e3),u=p(508),b=p(3191),a=p(9808),y=p(6360),d=p(7579),P=p(6451),D=p(5698),T=p(2722),M=p(8675),A=p(925),E=p(5664),k=p(449),w=p(3075),z=p(7322),U=p(226);const W=["*"],Q=new i.OlP("MatChipRemove"),le=new i.OlP("MatChipAvatar"),q=new i.OlP("MatChipTrailingIcon");class ie{constructor(R){this._elementRef=R}}const se=(0,u.sb)((0,u.pj)((0,u.Kr)(ie),"primary"),-1);let x=(()=>{class V extends se{constructor(H,$,fe,ye,ke,Ee,te,ze){super(H),this._ngZone=$,this._changeDetectorRef=ke,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=Ee.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.IR(this,$,this._chipRippleTarget,fe),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=ye||{},this._animationsDisabled="NoopAnimations"===te,this.tabIndex=null!=ze&&parseInt(ze)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const $=(0,b.Ig)(H);$!==this._selected&&(this._selected=$,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,b.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,b.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",$=this._elementRef.nativeElement;$.hasAttribute(H)||$.tagName.toLowerCase()===H?$.classList.add(H):$.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case e.yY:case e.ZH:this.remove(),H.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(A.t4),i.Y36(u.Y2,8),i.Y36(i.sBO),i.Y36(a.K0),i.Y36(y.Qb,8),i.$8M("tabindex"))},V.\u0275dir=i.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,$,fe){if(1&H&&(i.Suo(fe,le,5),i.Suo(fe,q,5),i.Suo(fe,Q,5)),2&H){let ye;i.iGM(ye=i.CRH())&&($.avatar=ye.first),i.iGM(ye=i.CRH())&&($.trailingIcon=ye.first),i.iGM(ye=i.CRH())&&($.removeIcon=ye.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,$){1&H&&i.NdJ("click",function(ye){return $._handleClick(ye)})("keydown",function(ye){return $._handleKeydown(ye)})("focus",function(){return $.focus()})("blur",function(){return $._blur()}),2&H&&(i.uIk("tabindex",$.disabled?null:$.tabIndex)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString())("aria-selected",$.ariaSelected),i.ekj("mat-chip-selected",$.selected)("mat-chip-with-avatar",$.avatar)("mat-chip-with-trailing-icon",$.trailingIcon||$.removeIcon)("mat-chip-disabled",$.disabled)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),V})();const r=new i.OlP("mat-chips-default-options"),C=(0,u.FD)(class{constructor(V,R,H,$){this._defaultErrorStateMatcher=V,this._parentForm=R,this._parentFormGroup=H,this.ngControl=$}});let S=0;class I{constructor(R,H){this.source=R,this.value=H}}let _=(()=>{class V extends C{constructor(H,$,fe,ye,ke,Ee,te){super(Ee,ye,ke,te),this._elementRef=H,this._changeDetectorRef=$,this._dir=fe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+S++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(ze,be)=>ze===be,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,$;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,b.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,$,fe,ye;return null!==(ye=null!==(H=this._required)&&void 0!==H?H:null===(fe=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===fe?void 0:fe.hasValidator(w.kI.required))&&void 0!==ye&&ye}set required(H){this._required=(0,b.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,b.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,b.Ig)(H),this.chips&&this.chips.forEach($=>$.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,P.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,P.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,P.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,P.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new E.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,T.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const $=H.target;$&&$.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&Hfe.deselect()),Array.isArray(H))H.forEach(fe=>this._selectValue(fe,$)),this._sortValues();else{const fe=this._selectValue(H,$);fe&&$&&this._keyManager.setActiveItem(fe)}}_selectValue(H,$=!0){const fe=this.chips.find(ye=>null!=ye.value&&this._compareWith(ye.value,H));return fe&&($?fe.selectViaInteraction():fe.select(),this._selectionModel.select(fe)),fe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach($=>{$!==H&&$.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let $=null;$=Array.isArray(this.selected)?this.selected.map(fe=>fe.value):this.selected?this.selected.value:H,this._value=$,this.change.emit(new I(this,$)),this.valueChange.emit($),this._onChange($),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach($=>{!this._selectionModel.isSelected($)&&$.selected&&$.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let $=this.chips.toArray().indexOf(H.chip);this._isValidIndex($)&&this._keyManager.updateActiveItem($),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const $=H.chip,fe=this.chips.toArray().indexOf(H.chip);this._isValidIndex(fe)&&$._hasFocus&&(this._lastDestroyedChipIndex=fe)})}_originatesFromChip(H){let $=H.target;for(;$&&$!==this._elementRef.nativeElement;){if($.classList.contains("mat-chip"))return!0;$=$.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(U.Is,8),i.Y36(w.F,8),i.Y36(w.sg,8),i.Y36(u.rD),i.Y36(w.a5,10))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(H,$,fe){if(1&H&&i.Suo(fe,x,5),2&H){let ye;i.iGM(ye=i.CRH())&&($.chips=ye)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,$){1&H&&i.NdJ("focus",function(){return $.focus()})("blur",function(){return $._blur()})("keydown",function(ye){return $._keydown(ye)}),2&H&&(i.Ikx("id",$._uid),i.uIk("tabindex",$.disabled?null:$._tabIndex)("aria-describedby",$._ariaDescribedby||null)("aria-required",$.role?$.required:null)("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-multiselectable",$.multiple)("role",$.role)("aria-orientation",$.ariaOrientation),i.ekj("mat-chip-list-disabled",$.disabled)("mat-chip-list-invalid",$.errorState)("mat-chip-list-required",$.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:z.Eo,useExisting:V}]),i.qOj],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,$){1&H&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),V})(),g=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({providers:[u.rD,{provide:r,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[u.BQ]]}),V})()},508:(He,j,p)=>{"use strict";p.d(j,{yN:()=>ne,mZ:()=>Q,_A:()=>_,rD:()=>ke,sG:()=>n,K7:()=>Gt,HF:()=>ht,Y2:()=>ee,BQ:()=>ie,X2:()=>Ee,uc:()=>be,XK:()=>fe,ey:()=>Qe,Ng:()=>Zt,rN:()=>kt,nP:()=>Le,us:()=>lt,wG:()=>ue,si:()=>ve,LF:()=>R,IR:()=>Te,CB:()=>_t,jH:()=>ei,pj:()=>t,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>C,sb:()=>h,E0:()=>te});var e=p(5e3),i=p(226),b=p(9808),a=p(925),y=p(5664),d=p(3191),P=p(7579),D=p(8306),T=p(8675),M=p(6360),A=p(1159);function w(Pe,De){if(1&Pe&&e._UZ(0,"mat-pseudo-checkbox",4),2&Pe){const oe=e.oxw();e.Q6J("state",oe.selected?"checked":"unchecked")("disabled",oe.disabled)}}function z(Pe,De){if(1&Pe&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Pe){const oe=e.oxw();e.xp6(1),e.hij("(",oe.group.label,")")}}const U=["*"];let ne=(()=>{class Pe{}return Pe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Pe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Pe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Pe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Pe})(),Q=(()=>{class Pe{}return Pe.COMPLEX="375ms",Pe.ENTERING="225ms",Pe.EXITING="195ms",Pe})();const q=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function le(){return!0}});let ie=(()=>{class Pe{constructor(oe,Me,ut){this._sanityChecks=Me,this._document=ut,this._hasDoneGlobalChecks=!1,oe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(oe){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[oe])}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.LFG(y.qm),e.LFG(q,8),e.LFG(b.K0))},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[i.vT],i.vT]}),Pe})();function x(Pe){return class extends Pe{constructor(...De){super(...De),this._disabled=!1}get disabled(){return this._disabled}set disabled(De){this._disabled=(0,d.Ig)(De)}}}function t(Pe,De){return class extends Pe{constructor(...oe){super(...oe),this.defaultColor=De,this.color=De}get color(){return this._color}set color(oe){const Me=oe||this.defaultColor;Me!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Me&&this._elementRef.nativeElement.classList.add(`mat-${Me}`),this._color=Me)}}}function r(Pe){return class extends Pe{constructor(...De){super(...De),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(De){this._disableRipple=(0,d.Ig)(De)}}}function h(Pe,De=0){return class extends Pe{constructor(...oe){super(...oe),this._tabIndex=De,this.defaultTabIndex=De}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(oe){this._tabIndex=null!=oe?(0,d.su)(oe):this.defaultTabIndex}}}function c(Pe){return class extends Pe{constructor(...De){super(...De),this.stateChanges=new P.x,this.errorState=!1}updateErrorState(){const De=this.errorState,ft=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ft!==De&&(this.errorState=ft,this.stateChanges.next())}}}function C(Pe){return class extends Pe{constructor(...De){super(...De),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new D.y(oe=>{this._isInitialized?this._notifySubscriber(oe):this._pendingSubscribers.push(oe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(De){De.next(),De.complete()}}}const S=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,e.f3M)(e.soG)}});class _{constructor(){this._localeChanges=new P.x,this.localeChanges=this._localeChanges}getValidDateOrNull(De){return this.isDateInstance(De)&&this.isValid(De)?De:null}deserialize(De){return null==De||this.isDateInstance(De)&&this.isValid(De)?De:this.invalid()}setLocale(De){this.locale=De,this._localeChanges.next()}compareDate(De,oe){return this.getYear(De)-this.getYear(oe)||this.getMonth(De)-this.getMonth(oe)||this.getDate(De)-this.getDate(oe)}sameDate(De,oe){if(De&&oe){let Me=this.isValid(De),ut=this.isValid(oe);return Me&&ut?!this.compareDate(De,oe):Me==ut}return De==oe}clampDate(De,oe,Me){return oe&&this.compareDate(De,oe)<0?oe:Me&&this.compareDate(De,Me)>0?Me:De}}const n=new e.OlP("mat-date-formats"),g=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function V(Pe,De){const oe=Array(Pe);for(let Me=0;Me{class Pe extends _{constructor(oe,Me){super(),this.useUtcForDisplay=!1,super.setLocale(oe)}getYear(oe){return oe.getFullYear()}getMonth(oe){return oe.getMonth()}getDate(oe){return oe.getDate()}getDayOfWeek(oe){return oe.getDay()}getMonthNames(oe){const Me=new Intl.DateTimeFormat(this.locale,{month:oe,timeZone:"utc"});return V(12,ut=>this._format(Me,new Date(2017,ut,1)))}getDateNames(){const oe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return V(31,Me=>this._format(oe,new Date(2017,0,Me+1)))}getDayOfWeekNames(oe){const Me=new Intl.DateTimeFormat(this.locale,{weekday:oe,timeZone:"utc"});return V(7,ut=>this._format(Me,new Date(2017,0,ut+1)))}getYearName(oe){const Me=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Me,oe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(oe){return this.getDate(this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe)+1,0))}clone(oe){return new Date(oe.getTime())}createDate(oe,Me,ut){let ft=this._createDateWithOverflow(oe,Me,ut);return ft.getMonth(),ft}today(){return new Date}parse(oe){return"number"==typeof oe?new Date(oe):oe?new Date(Date.parse(oe)):null}format(oe,Me){if(!this.isValid(oe))throw Error("NativeDateAdapter: Cannot format invalid date.");const ut=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Me),{timeZone:"utc"}));return this._format(ut,oe)}addCalendarYears(oe,Me){return this.addCalendarMonths(oe,12*Me)}addCalendarMonths(oe,Me){let ut=this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe)+Me,this.getDate(oe));return this.getMonth(ut)!=((this.getMonth(oe)+Me)%12+12)%12&&(ut=this._createDateWithOverflow(this.getYear(ut),this.getMonth(ut),0)),ut}addCalendarDays(oe,Me){return this._createDateWithOverflow(this.getYear(oe),this.getMonth(oe),this.getDate(oe)+Me)}toIso8601(oe){return[oe.getUTCFullYear(),this._2digit(oe.getUTCMonth()+1),this._2digit(oe.getUTCDate())].join("-")}deserialize(oe){if("string"==typeof oe){if(!oe)return null;if(g.test(oe)){let Me=new Date(oe);if(this.isValid(Me))return Me}}return super.deserialize(oe)}isDateInstance(oe){return oe instanceof Date}isValid(oe){return!isNaN(oe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(oe,Me,ut){const ft=new Date;return ft.setFullYear(oe,Me,ut),ft.setHours(0,0,0,0),ft}_2digit(oe){return("00"+oe).slice(-2)}_format(oe,Me){const ut=new Date;return ut.setUTCFullYear(Me.getFullYear(),Me.getMonth(),Me.getDate()),ut.setUTCHours(Me.getHours(),Me.getMinutes(),Me.getSeconds(),Me.getMilliseconds()),oe.format(ut)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.LFG(S,8),e.LFG(a.t4))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let $=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:_,useClass:R}]}),Pe})(),fe=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:n,useValue:H}],imports:[[$]]}),Pe})(),ke=(()=>{class Pe{isErrorState(oe,Me){return!!(oe&&oe.invalid&&(oe.touched||Me&&Me.submitted))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Ee=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Pe})();function te(Pe,De,oe="mat"){Pe.changes.pipe((0,T.O)(Pe)).subscribe(({length:Me})=>{ze(De,`${oe}-2-line`,!1),ze(De,`${oe}-3-line`,!1),ze(De,`${oe}-multi-line`,!1),2===Me||3===Me?ze(De,`${oe}-${Me}-line`,!0):Me>3&&ze(De,`${oe}-multi-line`,!0)})}function ze(Pe,De,oe){Pe.nativeElement.classList.toggle(De,oe)}let be=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie],ie]}),Pe})();class Z{constructor(De,oe,Me){this._renderer=De,this.element=oe,this.config=Me,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Y={enterDuration:225,exitDuration:150},Ie=(0,a.i$)({passive:!0}),Ae=["mousedown","touchstart"],ce=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(De,oe,Me,ut){this._target=De,this._ngZone=oe,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ut.isBrowser&&(this._containerElement=(0,d.fI)(Me))}fadeInRipple(De,oe,Me={}){const ut=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ft=Object.assign(Object.assign({},Y),Me.animation);Me.centered&&(De=ut.left+ut.width/2,oe=ut.top+ut.height/2);const Rt=Me.radius||function G(Pe,De,oe){const Me=Math.max(Math.abs(Pe-oe.left),Math.abs(Pe-oe.right)),ut=Math.max(Math.abs(De-oe.top),Math.abs(De-oe.bottom));return Math.sqrt(Me*Me+ut*ut)}(De,oe,ut),et=De-ut.left,Re=oe-ut.top,qe=ft.enterDuration,Ze=document.createElement("div");Ze.classList.add("mat-ripple-element"),Ze.style.left=et-Rt+"px",Ze.style.top=Re-Rt+"px",Ze.style.height=2*Rt+"px",Ze.style.width=2*Rt+"px",null!=Me.color&&(Ze.style.backgroundColor=Me.color),Ze.style.transitionDuration=`${qe}ms`,this._containerElement.appendChild(Ze),function xe(Pe){window.getComputedStyle(Pe).getPropertyValue("opacity")}(Ze),Ze.style.transform="scale(1)";const we=new Z(this,Ze,Me);return we.state=0,this._activeRipples.add(we),Me.persistent||(this._mostRecentTransientRipple=we),this._runTimeoutOutsideZone(()=>{const Fe=we===this._mostRecentTransientRipple;we.state=1,!Me.persistent&&(!Fe||!this._isPointerDown)&&we.fadeOut()},qe),we}fadeOutRipple(De){const oe=this._activeRipples.delete(De);if(De===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!oe)return;const Me=De.element,ut=Object.assign(Object.assign({},Y),De.config.animation);Me.style.transitionDuration=`${ut.exitDuration}ms`,Me.style.opacity="0",De.state=2,this._runTimeoutOutsideZone(()=>{De.state=3,Me.remove()},ut.exitDuration)}fadeOutAll(){this._activeRipples.forEach(De=>De.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(De=>{De.config.persistent||De.fadeOut()})}setupTriggerEvents(De){const oe=(0,d.fI)(De);!oe||oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=oe,this._registerEvents(Ae))}handleEvent(De){"mousedown"===De.type?this._onMousedown(De):"touchstart"===De.type?this._onTouchStart(De):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ce),this._pointerUpEventsRegistered=!0)}_onMousedown(De){const oe=(0,y.X6)(De),Me=this._lastTouchStartEvent&&Date.now(){!De.config.persistent&&(1===De.state||De.config.terminateOnPointerUp&&0===De.state)&&De.fadeOut()}))}_runTimeoutOutsideZone(De,oe=0){this._ngZone.runOutsideAngular(()=>setTimeout(De,oe))}_registerEvents(De){this._ngZone.runOutsideAngular(()=>{De.forEach(oe=>{this._triggerElement.addEventListener(oe,this,Ie)})})}_removeTriggerEvents(){this._triggerElement&&(Ae.forEach(De=>{this._triggerElement.removeEventListener(De,this,Ie)}),this._pointerUpEventsRegistered&&ce.forEach(De=>{this._triggerElement.removeEventListener(De,this,Ie)}))}}const ee=new e.OlP("mat-ripple-global-options");let ue=(()=>{class Pe{constructor(oe,Me,ut,ft,Rt){this._elementRef=oe,this._animationMode=Rt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ft||{},this._rippleRenderer=new Te(this,Me,oe,ut)}get disabled(){return this._disabled}set disabled(oe){oe&&this.fadeOutAllNonPersistent(),this._disabled=oe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(oe){this._trigger=oe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(oe,Me=0,ut){return"number"==typeof oe?this._rippleRenderer.fadeInRipple(oe,Me,Object.assign(Object.assign({},this.rippleConfig),ut)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),oe))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.t4),e.Y36(ee,8),e.Y36(M.Qb,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(oe,Me){2&oe&&e.ekj("mat-ripple-unbounded",Me.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Pe})(),ve=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie],ie]}),Pe})(),Le=(()=>{class Pe{constructor(oe){this._animationMode=oe,this.state="unchecked",this.disabled=!1}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(M.Qb,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(oe,Me){2&oe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Me.state)("mat-pseudo-checkbox-checked","checked"===Me.state)("mat-pseudo-checkbox-disabled",Me.disabled)("_mat-animation-noopable","NoopAnimations"===Me._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(oe,Me){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Pe})(),lt=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ie]]}),Pe})();const ht=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Gt=new e.OlP("MatOptgroup");let vt=0;class kt{constructor(De,oe=!1){this.source=De,this.isUserInput=oe}}let gt=(()=>{class Pe{constructor(oe,Me,ut,ft){this._element=oe,this._changeDetectorRef=Me,this._parent=ut,this.group=ft,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new P.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(oe){this._disabled=(0,d.Ig)(oe)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(oe,Me){const ut=this._getHostElement();"function"==typeof ut.focus&&ut.focus(Me)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(oe){(oe.keyCode===A.K5||oe.keyCode===A.L_)&&!(0,A.Vb)(oe)&&(this._selectViaInteraction(),oe.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const oe=this.viewValue;oe!==this._mostRecentViewValue&&(this._mostRecentViewValue=oe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(oe=!1){this.onSelectionChange.emit(new kt(this,oe))}}return Pe.\u0275fac=function(oe){e.$Z()},Pe.\u0275dir=e.lG2({type:Pe,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Pe})(),Qe=(()=>{class Pe extends gt{constructor(oe,Me,ut,ft){super(oe,Me,ut,ft)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ht,8),e.Y36(Gt,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(oe,Me){1&oe&&e.NdJ("click",function(){return Me._selectViaInteraction()})("keydown",function(ft){return Me._handleKeydown(ft)}),2&oe&&(e.Ikx("id",Me.id),e.uIk("tabindex",Me._getTabIndex())("aria-selected",Me._getAriaSelected())("aria-disabled",Me.disabled.toString()),e.ekj("mat-selected",Me.selected)("mat-option-multiple",Me.multiple)("mat-active",Me.active)("mat-option-disabled",Me.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:U,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(oe,Me){1&oe&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,z,2,1,"span",2),e._UZ(4,"div",3)),2&oe&&(e.Q6J("ngIf",Me.multiple),e.xp6(3),e.Q6J("ngIf",Me.group&&Me.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Me._getHostElement())("matRippleDisabled",Me.disabled||Me.disableRipple))},directives:[Le,b.O5,ue],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Pe})();function _t(Pe,De,oe){if(oe.length){let Me=De.toArray(),ut=oe.toArray(),ft=0;for(let Rt=0;Rtoe+Me?Math.max(0,Pe-Me+De):oe}let Zt=(()=>{class Pe{}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[ve,b.ez,ie,lt]]}),Pe})()},6856:(He,j,p)=>{"use strict";p.d(j,{FA:()=>pt,Mq:()=>Re,hl:()=>at,nW:()=>mi});var e=p(5664),i=p(9776),u=p(7429),b=p(9808),a=p(5e3),y=p(7423),d=p(5303),P=p(508),D=p(7579),T=p(727),M=p(6451),A=p(9646),E=p(1159),k=p(5698),w=p(8675),z=p(9300),U=p(226),W=p(3191),ne=p(925),Q=p(1777),le=p(3075),q=p(7322),ie=p(7531);const se=["mat-calendar-body",""];function J(it,It){if(1&it&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&it){const de=a.oxw();a.xp6(1),a.Udp("padding-top",de._cellPadding)("padding-bottom",de._cellPadding),a.uIk("colspan",de.numCols),a.xp6(1),a.hij(" ",de.label," ")}}function me(it,It){if(1&it&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&it){const de=a.oxw(2);a.Udp("padding-top",de._cellPadding)("padding-bottom",de._cellPadding),a.uIk("colspan",de._firstRowOffset),a.xp6(1),a.hij(" ",de._firstRowOffset>=de.labelMinRequiredCells?de.label:""," ")}}function x(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(bt){const bi=a.CHM(de).$implicit;return a.oxw(2)._cellClicked(bi,bt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&it){const de=It.$implicit,$e=It.index,bt=a.oxw().index,Vt=a.oxw();a.Udp("width",Vt._cellWidth)("padding-top",Vt._cellPadding)("padding-bottom",Vt._cellPadding),a.uIk("data-mat-row",bt)("data-mat-col",$e),a.xp6(1),a.ekj("mat-calendar-body-disabled",!de.enabled)("mat-calendar-body-active",Vt._isActiveCell(bt,$e))("mat-calendar-body-range-start",Vt._isRangeStart(de.compareValue))("mat-calendar-body-range-end",Vt._isRangeEnd(de.compareValue))("mat-calendar-body-in-range",Vt._isInRange(de.compareValue))("mat-calendar-body-comparison-bridge-start",Vt._isComparisonBridgeStart(de.compareValue,bt,$e))("mat-calendar-body-comparison-bridge-end",Vt._isComparisonBridgeEnd(de.compareValue,bt,$e))("mat-calendar-body-comparison-start",Vt._isComparisonStart(de.compareValue))("mat-calendar-body-comparison-end",Vt._isComparisonEnd(de.compareValue))("mat-calendar-body-in-comparison-range",Vt._isInComparisonRange(de.compareValue))("mat-calendar-body-preview-start",Vt._isPreviewStart(de.compareValue))("mat-calendar-body-preview-end",Vt._isPreviewEnd(de.compareValue))("mat-calendar-body-in-preview",Vt._isInPreview(de.compareValue)),a.Q6J("ngClass",de.cssClasses)("tabindex",Vt._isActiveCell(bt,$e)?0:-1),a.uIk("aria-label",de.ariaLabel)("aria-disabled",!de.enabled||null)("aria-pressed",Vt._isSelected(de.compareValue))("aria-current",Vt.todayValue===de.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Vt._isSelected(de.compareValue))("mat-calendar-body-comparison-identical",Vt._isComparisonIdentical(de.compareValue))("mat-calendar-body-today",Vt.todayValue===de.compareValue),a.xp6(1),a.hij(" ",de.displayValue," ")}}function t(it,It){if(1&it&&(a.TgZ(0,"tr",4),a.YNc(1,me,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&it){const de=It.$implicit,$e=It.index,bt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===$e&&bt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",de)}}function r(it,It){if(1&it&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&it){const de=It.$implicit;a.xp6(2),a.Oqu(de.long),a.xp6(2),a.Oqu(de.narrow)}}const h=["*"];function c(it,It){}function C(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("_userSelection",function(bt){return a.CHM(de),a.oxw()._dateSelected(bt)}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)("comparisonStart",de.comparisonStart)("comparisonEnd",de.comparisonEnd)}}function S(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("monthSelected",function(bt){return a.CHM(de),a.oxw()._monthSelectedInYearView(bt)})("selectedChange",function(bt){return a.CHM(de),a.oxw()._goToDateInView(bt,"month")}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)}}function I(it,It){if(1&it){const de=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(bt){return a.CHM(de),a.oxw().activeDate=bt})("yearSelected",function(bt){return a.CHM(de),a.oxw()._yearSelectedInMultiYearView(bt)})("selectedChange",function(bt){return a.CHM(de),a.oxw()._goToDateInView(bt,"year")}),a.qZA()}if(2&it){const de=a.oxw();a.Q6J("activeDate",de.activeDate)("selected",de.selected)("dateFilter",de.dateFilter)("maxDate",de.maxDate)("minDate",de.minDate)("dateClass",de.dateClass)}}function _(it,It){}const n=["button"];function g(it,It){1&it&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const V=[[["","matDatepickerToggleIcon",""]]],R=["[matDatepickerToggleIcon]"];class ke{constructor(It,de,$e,bt,Vt={},bi=It,Li){this.value=It,this.displayValue=de,this.ariaLabel=$e,this.enabled=bt,this.cssClasses=Vt,this.compareValue=bi,this.rawValue=Li}}let Ee=(()=>{class it{constructor(de,$e){this._elementRef=de,this._ngZone=$e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=bt=>{if(this._skipNextFocus&&"focus"===bt.type)this._skipNextFocus=!1;else if(bt.target&&this.isRange){const Vt=this._getCellFromElement(bt.target);Vt&&this._ngZone.run(()=>this.previewChange.emit({value:Vt.enabled?Vt:null,event:bt}))}},this._leaveHandler=bt=>{null!==this.previewEnd&&this.isRange&&bt.target&&this._getCellFromElement(bt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:bt}))},$e.runOutsideAngular(()=>{const bt=de.nativeElement;bt.addEventListener("mouseenter",this._enterHandler,!0),bt.addEventListener("focus",this._enterHandler,!0),bt.addEventListener("mouseleave",this._leaveHandler,!0),bt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(de,$e){de.enabled&&this.selectedValueChange.emit({value:de.value,event:$e})}_isSelected(de){return this.startValue===de||this.endValue===de}ngOnChanges(de){const $e=de.numCols,{rows:bt,numCols:Vt}=this;(de.rows||$e)&&(this._firstRowOffset=bt&&bt.length&&bt[0].length?Vt-bt[0].length:0),(de.cellAspectRatio||$e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Vt+"%"),($e||!this._cellWidth)&&(this._cellWidth=100/Vt+"%")}ngOnDestroy(){const de=this._elementRef.nativeElement;de.removeEventListener("mouseenter",this._enterHandler,!0),de.removeEventListener("focus",this._enterHandler,!0),de.removeEventListener("mouseleave",this._leaveHandler,!0),de.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(de,$e){let bt=de*this.numCols+$e;return de&&(bt-=this._firstRowOffset),bt==this.activeCell}_focusActiveCell(de=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const $e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");$e&&(de||(this._skipNextFocus=!0),$e.focus())})})})}_isRangeStart(de){return ze(de,this.startValue,this.endValue)}_isRangeEnd(de){return be(de,this.startValue,this.endValue)}_isInRange(de){return Z(de,this.startValue,this.endValue,this.isRange)}_isComparisonStart(de){return ze(de,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(de,$e,bt){if(!this._isComparisonStart(de)||this._isRangeStart(de)||!this._isInRange(de))return!1;let Vt=this.rows[$e][bt-1];if(!Vt){const bi=this.rows[$e-1];Vt=bi&&bi[bi.length-1]}return Vt&&!this._isRangeEnd(Vt.compareValue)}_isComparisonBridgeEnd(de,$e,bt){if(!this._isComparisonEnd(de)||this._isRangeEnd(de)||!this._isInRange(de))return!1;let Vt=this.rows[$e][bt+1];if(!Vt){const bi=this.rows[$e+1];Vt=bi&&bi[0]}return Vt&&!this._isRangeStart(Vt.compareValue)}_isComparisonEnd(de){return be(de,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(de){return Z(de,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(de){return this.comparisonStart===this.comparisonEnd&&de===this.comparisonStart}_isPreviewStart(de){return ze(de,this.previewStart,this.previewEnd)}_isPreviewEnd(de){return be(de,this.previewStart,this.previewEnd)}_isInPreview(de){return Z(de,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(de){let $e;if(te(de)?$e=de:te(de.parentNode)&&($e=de.parentNode),$e){const bt=$e.getAttribute("data-mat-row"),Vt=$e.getAttribute("data-mat-col");if(bt&&Vt)return this.rows[parseInt(bt)][parseInt(Vt)]}return null}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(a.R0b))},it.\u0275cmp=a.Xpm({type:it,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:se,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(de,$e){1&de&&(a.YNc(0,J,3,6,"tr",0),a.YNc(1,t,3,2,"tr",1)),2&de&&(a.Q6J("ngIf",$e._firstRowOffset<$e.labelMinRequiredCells),a.xp6(1),a.Q6J("ngForOf",$e.rows))},directives:[b.O5,b.sg,b.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),it})();function te(it){return"TD"===it.nodeName}function ze(it,It,de){return null!==de&&It!==de&&it=It&&it===de}function Z(it,It,de,$e){return $e&&null!==It&&null!==de&&It!==de&&it>=It&&it<=de}class Y{constructor(It,de){this.start=It,this.end=de}}let ot=(()=>{class it{constructor(de,$e){this.selection=de,this._adapter=$e,this._selectionChanged=new D.x,this.selectionChanged=this._selectionChanged,this.selection=de}updateSelection(de,$e){const bt=this.selection;this.selection=de,this._selectionChanged.next({selection:de,source:$e,oldValue:bt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(de){return this._adapter.isDateInstance(de)&&this._adapter.isValid(de)}}return it.\u0275fac=function(de){a.$Z()},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})(),Ie=(()=>{class it extends ot{constructor(de){super(null,de)}add(de){super.updateSelection(de,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const de=new it(this._adapter);return de.updateSelection(this.selection,this),de}}return it.\u0275fac=function(de){return new(de||it)(a.LFG(P._A))},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac}),it})();const Te={provide:ot,deps:[[new a.FiY,new a.tp0,ot],P._A],useFactory:function ce(it,It){return it||new Ie(It)}},ee=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let ht=(()=>{class it{constructor(de,$e,bt,Vt,bi){this._changeDetectorRef=de,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rangeStrategy=bi,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){const $e=this._activeDate,bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._hasSameMonthAndYear($e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(de){const $e=de.comparisonStart||de.comparisonEnd;$e&&!$e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(de){const $e=de.value,bt=this._dateAdapter.getYear(this.activeDate),Vt=this._dateAdapter.getMonth(this.activeDate),bi=this._dateAdapter.createDate(bt,Vt,$e);let Li,Ji;this._selected instanceof Y?(Li=this._getDateInCurrentMonth(this._selected.start),Ji=this._getDateInCurrentMonth(this._selected.end)):Li=Ji=this._getDateInCurrentMonth(this._selected),(Li!==$e||Ji!==$e)&&this.selectedChange.emit(bi),this._userSelection.emit({value:bi,event:de.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=de.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=de.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&de.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(de)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:de}),de.preventDefault(),de.stopPropagation()));default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:de}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let de=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(de)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(de){this._matCalendarBody._focusActiveCell(de)}_previewChanged({event:de,value:$e}){if(this._rangeStrategy){const Vt=this._rangeStrategy.createPreview($e?$e.rawValue:null,this.selected,de);this._previewStart=this._getCellCompareValue(Vt.start),this._previewEnd=this._getCellCompareValue(Vt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const de=this._dateAdapter.getFirstDayOfWeek(),$e=this._dateAdapter.getDayOfWeekNames("narrow");let Vt=this._dateAdapter.getDayOfWeekNames("long").map((bi,Li)=>({long:bi,narrow:$e[Li]}));this._weekdays=Vt.slice(de).concat(Vt.slice(0,de))}_createWeekCells(){const de=this._dateAdapter.getNumDaysInMonth(this.activeDate),$e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let bt=0,Vt=this._firstWeekOffset;bt=0)&&(!this.maxDate||this._dateAdapter.compareDate(de,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(de))}_getDateInCurrentMonth(de){return de&&this._hasSameMonthAndYear(de,this.activeDate)?this._dateAdapter.getDate(de):null}_hasSameMonthAndYear(de,$e){return!(!de||!$e||this._dateAdapter.getMonth(de)!=this._dateAdapter.getMonth($e)||this._dateAdapter.getYear(de)!=this._dateAdapter.getYear($e))}_getCellCompareValue(de){if(de){const $e=this._dateAdapter.getYear(de),bt=this._dateAdapter.getMonth(de),Vt=this._dateAdapter.getDate(de);return new Date($e,bt,Vt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(de){de instanceof Y?(this._rangeStart=this._getCellCompareValue(de.start),this._rangeEnd=this._getCellCompareValue(de.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(de),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(de){return!this.dateFilter||this.dateFilter(de)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.sBO),a.Y36(P.sG,8),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(ee,8))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-month-view"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Ee,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._matCalendarBody=bt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(de,$e){1&de&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Vt){return $e._dateSelected(Vt)})("previewChange",function(Vt){return $e._previewChanged(Vt)})("keyup",function(Vt){return $e._handleCalendarBodyKeyup(Vt)})("keydown",function(Vt){return $e._handleCalendarBodyKeydown(Vt)}),a.qZA()()),2&de&&(a.xp6(3),a.Q6J("ngForOf",$e._weekdays),a.xp6(3),a.Q6J("label",$e._monthLabel)("rows",$e._weeks)("todayValue",$e._todayDate)("startValue",$e._rangeStart)("endValue",$e._rangeEnd)("comparisonStart",$e._comparisonRangeStart)("comparisonEnd",$e._comparisonRangeEnd)("previewStart",$e._previewStart)("previewEnd",$e._previewEnd)("isRange",$e._isRange)("labelMinRequiredCells",3)("activeCell",$e._dateAdapter.getDate($e.activeDate)-1))},directives:[Ee,b.sg],encapsulation:2,changeDetection:0}),it})(),jt=(()=>{class it{constructor(de,$e,bt){this._changeDetectorRef=de,this._dateAdapter=$e,this._dir=bt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),Gt(this._dateAdapter,$e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setSelectedYear(de)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const $e=this._dateAdapter.getYear(this._activeDate)-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let bt=0,Vt=[];bt<24;bt++)Vt.push($e+bt),4==Vt.length&&(this._years.push(Vt.map(bi=>this._createCellForYear(bi))),Vt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(de){const $e=de.value;this.yearSelected.emit(this._dateAdapter.createDate($e,0,1));let bt=this._dateAdapter.getMonth(this.activeDate),Vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($e,bt,1));this.selectedChange.emit(this._dateAdapter.createDate($e,bt,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:de}),this._selectionKeyPressed=!1)}_getActiveCell(){return di(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(de){const $e=this._dateAdapter.createDate(de,0,1),bt=this._dateAdapter.getYearName($e),Vt=this.dateClass?this.dateClass($e,"multi-year"):void 0;return new ke(de,bt,bt,this._shouldEnableYear(de),Vt)}_shouldEnableYear(de){if(null==de||this.maxDate&&de>this._dateAdapter.getYear(this.maxDate)||this.minDate&&de{class it{constructor(de,$e,bt,Vt){this._changeDetectorRef=de,this._dateFormats=$e,this._dateAdapter=bt,this._dir=Vt,this._rerenderSubscription=T.w0.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(de){let $e=this._activeDate;const bt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(bt,this.minDate,this.maxDate),this._dateAdapter.getYear($e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de)),this._setSelectedMonth(de)}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(de){const $e=de.value,bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,1);this.monthSelected.emit(bt);const Vt=this._dateAdapter.getNumDaysInMonth(bt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,Math.min(this._dateAdapter.getDate(this.activeDate),Vt)))}_handleCalendarBodyKeydown(de){const $e=this._activeDate,bt=this._isRtl();switch(de.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,bt?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,de.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),de.preventDefault()}_handleCalendarBodyKeyup(de){(de.keyCode===E.L_||de.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:de}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let de=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map($e=>$e.map(bt=>this._createCellForMonth(bt,de[bt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(de){return de&&this._dateAdapter.getYear(de)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(de):null}_createCellForMonth(de,$e){const bt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,1),Vt=this._dateAdapter.format(bt,this._dateFormats.display.monthYearA11yLabel),bi=this.dateClass?this.dateClass(bt,"year"):void 0;return new ke(de,$e.toLocaleUpperCase(),Vt,this._shouldEnableMonth(de),bi)}_shouldEnableMonth(de){const $e=this._dateAdapter.getYear(this.activeDate);if(null==de||this._isYearAndMonthAfterMaxDate($e,de)||this._isYearAndMonthBeforeMinDate($e,de))return!1;if(!this.dateFilter)return!0;for(let Vt=this._dateAdapter.createDate($e,de,1);this._dateAdapter.getMonth(Vt)==de;Vt=this._dateAdapter.addCalendarDays(Vt,1))if(this.dateFilter(Vt))return!0;return!1}_isYearAndMonthAfterMaxDate(de,$e){if(this.maxDate){const bt=this._dateAdapter.getYear(this.maxDate),Vt=this._dateAdapter.getMonth(this.maxDate);return de>bt||de===bt&&$e>Vt}return!1}_isYearAndMonthBeforeMinDate(de,$e){if(this.minDate){const bt=this._dateAdapter.getYear(this.minDate),Vt=this._dateAdapter.getMonth(this.minDate);return de{class it{constructor(){this.changes=new D.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(de,$e){return`${de} \u2013 ${$e}`}}return it.\u0275fac=function(de){return new(de||it)},it.\u0275prov=a.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})(),_t=0,ei=(()=>{class it{constructor(de,$e,bt,Vt,bi){this._intl=de,this.calendar=$e,this._dateAdapter=bt,this._dateFormats=Vt,this._buttonDescriptionId="mat-calendar-button-"+_t++,this.calendar.stateChanges.subscribe(()=>bi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const $e=this._dateAdapter.getYear(this.calendar.activeDate)-di(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),bt=$e+24-1,Vt=this._dateAdapter.getYearName(this._dateAdapter.createDate($e,0,1)),bi=this._dateAdapter.getYearName(this._dateAdapter.createDate(bt,0,1));return this._intl.formatYearRange(Vt,bi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(de,$e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(de)==this._dateAdapter.getYear($e)&&this._dateAdapter.getMonth(de)==this._dateAdapter.getMonth($e):"year"==this.calendar.currentView?this._dateAdapter.getYear(de)==this._dateAdapter.getYear($e):Gt(this._dateAdapter,de,$e,this.calendar.minDate,this.calendar.maxDate)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36((0,a.Gpc)(()=>Zt)),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:h,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(de,$e){1&de&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return $e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return $e.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return $e.nextClicked()}),a.qZA()()()),2&de&&(a.xp6(2),a.uIk("aria-label",$e.periodButtonLabel)("aria-describedby",$e._buttonDescriptionId),a.xp6(1),a.uIk("id",$e._buttonDescriptionId),a.xp6(1),a.Oqu($e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==$e.calendar.currentView),a.xp6(4),a.Q6J("disabled",!$e.previousEnabled()),a.uIk("aria-label",$e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!$e.nextEnabled()),a.uIk("aria-label",$e.nextButtonLabel))},directives:[y.lW],encapsulation:2,changeDetection:0}),it})(),Zt=(()=>{class it{constructor(de,$e,bt,Vt){this._dateAdapter=$e,this._dateFormats=bt,this._changeDetectorRef=Vt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new D.x,this._intlChanges=de.changes.subscribe(()=>{Vt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(de){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get selected(){return this._selected}set selected(de){this._selected=de instanceof Y?de:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get minDate(){return this._minDate}set minDate(de){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get maxDate(){return this._maxDate}set maxDate(de){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get activeDate(){return this._clampedActiveDate}set activeDate(de){this._clampedActiveDate=this._dateAdapter.clampDate(de,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(de){const $e=this._currentView!==de?de:null;this._currentView=de,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),$e&&this.viewChanged.emit($e)}ngAfterContentInit(){this._calendarHeaderPortal=new u.C5(this.headerComponent||ei),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(de){const $e=de.minDate&&!this._dateAdapter.sameDate(de.minDate.previousValue,de.minDate.currentValue)?de.minDate:void 0,bt=de.maxDate&&!this._dateAdapter.sameDate(de.maxDate.previousValue,de.maxDate.currentValue)?de.maxDate:void 0,Vt=$e||bt||de.dateFilter;if(Vt&&!Vt.firstChange){const bi=this._getCurrentViewComponent();bi&&(this._changeDetectorRef.detectChanges(),bi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(de){const $e=de.value;(this.selected instanceof Y||$e&&!this._dateAdapter.sameDate($e,this.selected))&&this.selectedChange.emit($e),this._userSelection.emit(de)}_yearSelectedInMultiYearView(de){this.yearSelected.emit(de)}_monthSelectedInYearView(de){this.monthSelected.emit(de)}_goToDateInView(de,$e){this.activeDate=de,this.currentView=$e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(a.sBO))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-calendar"]],viewQuery:function(de,$e){if(1&de&&(a.Gf(ht,5),a.Gf(gt,5),a.Gf(jt,5)),2&de){let bt;a.iGM(bt=a.CRH())&&($e.monthView=bt.first),a.iGM(bt=a.CRH())&&($e.yearView=bt.first),a.iGM(bt=a.CRH())&&($e.multiYearView=bt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([Te]),a.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(de,$e){1&de&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,C,1,8,"mat-month-view",2),a.YNc(3,S,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&de&&(a.Q6J("cdkPortalOutlet",$e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",$e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[ht,gt,jt,u.Pl,e.kH,b.RF,b.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),it})();const Pe={transformPanel:(0,Q.X$)("transformPanel",[(0,Q.eR)("void => enter-dropdown",(0,Q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Q.F4)([(0,Q.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Q.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Q.eR)("void => enter-dialog",(0,Q.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Q.F4)([(0,Q.oB)({opacity:0,transform:"scale(0.7)"}),(0,Q.oB)({transform:"none",opacity:1})]))),(0,Q.eR)("* => void",(0,Q.jt)("100ms linear",(0,Q.oB)({opacity:0})))]),fadeInCalendar:(0,Q.X$)("fadeInCalendar",[(0,Q.SB)("void",(0,Q.oB)({opacity:0})),(0,Q.SB)("enter",(0,Q.oB)({opacity:1})),(0,Q.eR)("void => *",(0,Q.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let De=0;const oe=new a.OlP("mat-datepicker-scroll-strategy"),ut={provide:oe,deps:[i.aV],useFactory:function Me(it){return()=>it.scrollStrategies.reposition()}},ft=(0,P.pj)(class{constructor(it){this._elementRef=it}});let Rt=(()=>{class it extends ft{constructor(de,$e,bt,Vt,bi,Li){super(de),this._changeDetectorRef=$e,this._globalModel=bt,this._dateAdapter=Vt,this._rangeSelectionStrategy=bi,this._subscriptions=new T.w0,this._animationDone=new D.x,this._actionsPortal=null,this._closeButtonText=Li.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(de){const $e=this._model.selection,bt=de.value,Vt=$e instanceof Y;if(Vt&&this._rangeSelectionStrategy){const bi=this._rangeSelectionStrategy.selectionFinished(bt,$e,de.event);this._model.updateSelection(bi,this)}else bt&&(Vt||!this._dateAdapter.sameDate(bt,$e))&&this._model.add(bt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ot),a.Y36(P._A),a.Y36(ee,8),a.Y36(Qe))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-content"]],viewQuery:function(de,$e){if(1&de&&a.Gf(Zt,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._calendar=bt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(de,$e){1&de&&a.WFA("@transformPanel.done",function(){return $e._animationDone.next()}),2&de&&(a.d8E("@transformPanel",$e._animationState),a.ekj("mat-datepicker-content-touch",$e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(de,$e){if(1&de&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Vt){return $e.datepicker._selectYear(Vt)})("monthSelected",function(Vt){return $e.datepicker._selectMonth(Vt)})("viewChanged",function(Vt){return $e.datepicker._viewChanged(Vt)})("_userSelection",function(Vt){return $e._handleUserSelection(Vt)}),a.qZA(),a.YNc(2,_,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return $e._closeButtonFocused=!0})("blur",function(){return $e._closeButtonFocused=!1})("click",function(){return $e.datepicker.close()}),a._uU(4),a.qZA()()),2&de){let bt;a.ekj("mat-datepicker-content-container-with-custom-header",$e.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",$e._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(bt=$e._dialogLabelId)&&void 0!==bt?bt:void 0),a.xp6(1),a.Q6J("id",$e.datepicker.id)("ngClass",$e.datepicker.panelClass)("startAt",$e.datepicker.startAt)("startView",$e.datepicker.startView)("minDate",$e.datepicker._getMinDate())("maxDate",$e.datepicker._getMaxDate())("dateFilter",$e.datepicker._getDateFilter())("headerComponent",$e.datepicker.calendarHeaderComponent)("selected",$e._getSelected())("dateClass",$e.datepicker.dateClass)("comparisonStart",$e.comparisonStart)("comparisonEnd",$e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",$e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!$e._closeButtonFocused),a.Q6J("color",$e.color||"primary"),a.xp6(1),a.Oqu($e._closeButtonText)}},directives:[Zt,y.lW,e.mK,b.mk,u.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Pe.transformPanel,Pe.fadeInCalendar]},changeDetection:0}),it})(),et=(()=>{class it{constructor(de,$e,bt,Vt,bi,Li,Ji){this._overlay=de,this._ngZone=$e,this._viewContainerRef=bt,this._dateAdapter=bi,this._dir=Li,this._model=Ji,this._inputStateChanges=T.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+De++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new D.x,this._scrollStrategy=Vt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(de){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(de){this._color=de}get touchUi(){return this._touchUi}set touchUi(de){this._touchUi=(0,W.Ig)(de)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(de){const $e=(0,W.Ig)(de);$e!==this._disabled&&(this._disabled=$e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(de){this._restoreFocus=(0,W.Ig)(de)}get panelClass(){return this._panelClass}set panelClass(de){this._panelClass=(0,W.du)(de)}get opened(){return this._opened}set opened(de){(0,W.Ig)(de)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(de){const $e=de.xPosition||de.yPosition;if($e&&!$e.firstChange&&this._overlayRef){const bt=this._overlayRef.getConfig().positionStrategy;bt instanceof i._G&&(this._setConnectedPositions(bt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(de){this._model.add(de)}_selectYear(de){this.yearSelected.emit(de)}_selectMonth(de){this.monthSelected.emit(de)}_viewChanged(de){this.viewChanged.emit(de)}registerInput(de){return this._inputStateChanges.unsubscribe(),this.datepickerInput=de,this._inputStateChanges=de.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(de){this._actionsPortal=de}removeActions(de){de===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ne.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const $e=this._componentRef.instance;$e._startExitAnimation(),$e._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const de=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(de)):de()}_applyPendingSelection(){var de,$e;null===($e=null===(de=this._componentRef)||void 0===de?void 0:de.instance)||void 0===$e||$e._applyPendingSelection()}_forwardContentValues(de){de.datepicker=this,de.color=this.color,de._actionsPortal=this._actionsPortal,de._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const de=this.touchUi,$e=new u.C5(Rt,this._viewContainerRef),bt=this._overlayRef=this._overlay.create(new i.X_({positionStrategy:de?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[de?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:de?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(de?"dialog":"popup")}));this._getCloseStream(bt).subscribe(Vt=>{Vt&&Vt.preventDefault(),this.close()}),bt.keydownEvents().subscribe(Vt=>{const bi=Vt.keyCode;(bi===E.LH||bi===E.JH||bi===E.oh||bi===E.SV||bi===E.Ku||bi===E.VM)&&Vt.preventDefault()}),this._componentRef=bt.attach($e),this._forwardContentValues(this._componentRef.instance),de||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>bt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const de=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(de)}_setConnectedPositions(de){const $e="end"===this.xPosition?"end":"start",bt="start"===$e?"end":"start",Vt="above"===this.yPosition?"bottom":"top",bi="top"===Vt?"bottom":"top";return de.withPositions([{originX:$e,originY:bi,overlayX:$e,overlayY:Vt},{originX:$e,originY:Vt,overlayX:$e,overlayY:bi},{originX:bt,originY:bi,overlayX:bt,overlayY:Vt},{originX:bt,originY:Vt,overlayX:bt,overlayY:bi}])}_getCloseStream(de){return(0,M.T)(de.backdropClick(),de.detachments(),de.keydownEvents().pipe((0,z.h)($e=>$e.keyCode===E.hY&&!(0,E.Vb)($e)||this.datepickerInput&&(0,E.Vb)($e,"altKey")&&$e.keyCode===E.LH)))}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(i.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(oe),a.Y36(P._A,8),a.Y36(U.Is,8),a.Y36(ot))},it.\u0275dir=a.lG2({type:it,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),it})(),Re=(()=>{class it extends et{}return it.\u0275fac=function(){let It;return function($e){return(It||(It=a.n5z(it)))($e||it)}}(),it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:et,useExisting:it}]),a.qOj],decls:0,vars:0,template:function(de,$e){},encapsulation:2,changeDetection:0}),it})();class qe{constructor(It,de){this.target=It,this.targetElement=de,this.value=this.target.value}}let Ze=(()=>{class it{constructor(de,$e,bt){this._elementRef=de,this._dateAdapter=$e,this._dateFormats=bt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new D.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=T.w0.EMPTY,this._localeSubscription=T.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value));return!bi||this._matchesFilter(bi)?null:{matDatepickerFilter:!0}},this._minValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMinDate();return!Li||!bi||this._dateAdapter.compareDate(Li,bi)<=0?null:{matDatepickerMin:{min:Li,actual:bi}}},this._maxValidator=Vt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Vt.value)),Li=this._getMaxDate();return!Li||!bi||this._dateAdapter.compareDate(Li,bi)>=0?null:{matDatepickerMax:{max:Li,actual:bi}}},this._lastValueValid=!1,this._localeSubscription=$e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(de){this._assignValueProgrammatically(de)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(de){const $e=(0,W.Ig)(de),bt=this._elementRef.nativeElement;this._disabled!==$e&&(this._disabled=$e,this.stateChanges.next(void 0)),$e&&this._isInitialized&&bt.blur&&bt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(de){this._model=de,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe($e=>{if(this._shouldHandleChangeEvent($e)){const bt=this._getValueFromModel($e.selection);this._lastValueValid=this._isValidValue(bt),this._cvaOnChange(bt),this._onTouched(),this._formatValue(bt),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)),this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(de){(function we(it,It){const de=Object.keys(it);for(let $e of de){const{previousValue:bt,currentValue:Vt}=it[$e];if(!It.isDateInstance(bt)||!It.isDateInstance(Vt))return!0;if(!It.sameDate(bt,Vt))return!0}return!1})(de,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(de){this._validatorOnChange=de}validate(de){return this._validator?this._validator(de):null}writeValue(de){this._assignValueProgrammatically(de)}registerOnChange(de){this._cvaOnChange=de}registerOnTouched(de){this._onTouched=de}setDisabledState(de){this.disabled=de}_onKeydown(de){de.altKey&&de.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),de.preventDefault())}_onInput(de){const $e=this._lastValueValid;let bt=this._dateAdapter.parse(de,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(bt),bt=this._dateAdapter.getValidDateOrNull(bt);const Vt=!this._dateAdapter.sameDate(bt,this.value);!bt||Vt?this._cvaOnChange(bt):(de&&!this.value&&this._cvaOnChange(bt),$e!==this._lastValueValid&&this._validatorOnChange()),Vt&&(this._assignValue(bt),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(de){this._elementRef.nativeElement.value=null!=de?this._dateAdapter.format(de,this._dateFormats.display.dateInput):""}_assignValue(de){this._model?(this._assignValueToModel(de),this._pendingValue=null):this._pendingValue=de}_isValidValue(de){return!de||this._dateAdapter.isValid(de)}_parentDisabled(){return!1}_assignValueProgrammatically(de){de=this._dateAdapter.deserialize(de),this._lastValueValid=this._isValidValue(de),de=this._dateAdapter.getValidDateOrNull(de),this._assignValue(de),this._formatValue(de)}_matchesFilter(de){const $e=this._getDateFilter();return!$e||$e(de)}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8))},it.\u0275dir=a.lG2({type:it,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),it})();const Fe={provide:le.JU,useExisting:(0,a.Gpc)(()=>at),multi:!0},rt={provide:le.Cf,useExisting:(0,a.Gpc)(()=>at),multi:!0};let at=(()=>{class it extends Ze{constructor(de,$e,bt,Vt){super(de,$e,bt),this._formField=Vt,this._closedSubscription=T.w0.EMPTY,this._validator=le.kI.compose(super._getValidators())}set matDatepicker(de){de&&(this._datepicker=de,this._closedSubscription=de.closedStream.subscribe(()=>this._onTouched()),this._registerModel(de.registerInput(this)))}get min(){return this._min}set min(de){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de));this._dateAdapter.sameDate($e,this._min)||(this._min=$e,this._validatorOnChange())}get max(){return this._max}set max(de){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(de));this._dateAdapter.sameDate($e,this._max)||(this._max=$e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(de){const $e=this._matchesFilter(this.value);this._dateFilter=de,this._matchesFilter(this.value)!==$e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(de){return de}_assignValueToModel(de){this._model&&this._model.updateSelection(de,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(de){return de.source!==this}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(a.SBq),a.Y36(P._A,8),a.Y36(P.sG,8),a.Y36(q.G_,8))},it.\u0275dir=a.lG2({type:it,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(de,$e){1&de&&a.NdJ("input",function(Vt){return $e._onInput(Vt.target.value)})("change",function(){return $e._onChange()})("blur",function(){return $e._onBlur()})("keydown",function(Vt){return $e._onKeydown(Vt)}),2&de&&(a.Ikx("disabled",$e.disabled),a.uIk("aria-haspopup",$e._datepicker?"dialog":null)("aria-owns",(null==$e._datepicker?null:$e._datepicker.opened)&&$e._datepicker.id||null)("min",$e.min?$e._dateAdapter.toIso8601($e.min):null)("max",$e.max?$e._dateAdapter.toIso8601($e.max):null)("data-mat-calendar",$e._datepicker?$e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Fe,rt,{provide:ie.Jk,useExisting:it}]),a.qOj]}),it})(),yt=(()=>{class it{}return it.\u0275fac=function(de){return new(de||it)},it.\u0275dir=a.lG2({type:it,selectors:[["","matDatepickerToggleIcon",""]]}),it})(),mi=(()=>{class it{constructor(de,$e,bt){this._intl=de,this._changeDetectorRef=$e,this._stateChanges=T.w0.EMPTY;const Vt=Number(bt);this.tabIndex=Vt||0===Vt?Vt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(de){this._disabled=(0,W.Ig)(de)}ngOnChanges(de){de.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(de){this.datepicker&&!this.disabled&&(this.datepicker.open(),de.stopPropagation())}_watchStateChanges(){const de=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),$e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),bt=this.datepicker?(0,M.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,M.T)(this._intl.changes,de,$e,bt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return it.\u0275fac=function(de){return new(de||it)(a.Y36(Qe),a.Y36(a.sBO),a.$8M("tabindex"))},it.\u0275cmp=a.Xpm({type:it,selectors:[["mat-datepicker-toggle"]],contentQueries:function(de,$e,bt){if(1&de&&a.Suo(bt,yt,5),2&de){let Vt;a.iGM(Vt=a.CRH())&&($e._customIcon=Vt.first)}},viewQuery:function(de,$e){if(1&de&&a.Gf(n,5),2&de){let bt;a.iGM(bt=a.CRH())&&($e._button=bt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(de,$e){1&de&&a.NdJ("click",function(Vt){return $e._open(Vt)}),2&de&&(a.uIk("tabindex",null)("data-mat-calendar",$e.datepicker?$e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",$e.datepicker&&$e.datepicker.opened)("mat-accent",$e.datepicker&&"accent"===$e.datepicker.color)("mat-warn",$e.datepicker&&"warn"===$e.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:R,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(de,$e){1&de&&(a.F$t(V),a.TgZ(0,"button",0,1),a.YNc(2,g,2,0,"svg",2),a.Hsn(3),a.qZA()),2&de&&(a.Q6J("disabled",$e.disabled)("disableRipple",$e.disableRipple),a.uIk("aria-haspopup",$e.datepicker?"dialog":null)("aria-label",$e.ariaLabel||$e._intl.openCalendarLabel)("tabindex",$e.disabled?-1:$e.tabIndex),a.xp6(2),a.Q6J("ngIf",!$e._customIcon))},directives:[y.lW,b.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),it})(),pt=(()=>{class it{}return it.\u0275fac=function(de){return new(de||it)},it.\u0275mod=a.oAB({type:it}),it.\u0275inj=a.cJS({providers:[Qe,ut],imports:[[b.ez,y.ot,i.U8,e.rt,u.eL,P.BQ],d.ZD]}),it})()},8966:(He,j,p)=>{"use strict";p.d(j,{Bq:()=>t,Is:()=>fe,WI:()=>x,ZT:()=>g,so:()=>J,uw:()=>I});var e=p(9776),i=p(7429),u=p(5e3),b=p(508),a=p(226),y=p(7579),d=p(9770),P=p(9646),D=p(9300),T=p(5698),M=p(8675),A=p(925),E=p(9808),k=p(1777),w=p(5664),z=p(1159),U=p(6360);function W(ye,ke){}class ne{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Q={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let q=(()=>{class ye extends i.en{constructor(Ee,te,ze,be,Z,Y,ot,Ie){super(),this._elementRef=Ee,this._focusTrapFactory=te,this._changeDetectorRef=ze,this._config=Z,this._interactivityChecker=Y,this._ngZone=ot,this._focusMonitor=Ie,this._animationStateChanged=new u.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Ae)),this._ariaLabelledBy=Z.ariaLabelledBy||null,this._document=be}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,te){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ze=()=>{Ee.removeEventListener("blur",ze),Ee.removeEventListener("mousedown",ze),Ee.removeAttribute("tabindex")};Ee.addEventListener("blur",ze),Ee.addEventListener("mousedown",ze)})),Ee.focus(te)}_focusByCssSelector(Ee,te){let ze=this._elementRef.nativeElement.querySelector(Ee);ze&&this._forceFocus(ze,te)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(te=>{te||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const te=(0,A.ht)(),ze=this._elementRef.nativeElement;(!te||te===this._document.body||te===ze||ze.contains(te))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,te=(0,A.ht)();return Ee===te||Ee.contains(te)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.Y36(u.SBq),u.Y36(w.qV),u.Y36(u.sBO),u.Y36(E.K0,8),u.Y36(ne),u.Y36(w.ic),u.Y36(u.R0b),u.Y36(w.tE))},ye.\u0275dir=u.lG2({type:ye,viewQuery:function(Ee,te){if(1&Ee&&u.Gf(i.Pl,7),2&Ee){let ze;u.iGM(ze=u.CRH())&&(te._portalOutlet=ze.first)}},features:[u.qOj]}),ye})(),ie=(()=>{class ye extends q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:te}){"enter"===Ee?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:te})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:te}))}_onAnimationStart({toState:Ee,totalTime:te}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:te}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:te})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return ye.\u0275fac=function(){let ke;return function(te){return(ke||(ke=u.n5z(ye)))(te||ye)}}(),ye.\u0275cmp=u.Xpm({type:ye,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,te){1&Ee&&u.WFA("@dialogContainer.start",function(be){return te._onAnimationStart(be)})("@dialogContainer.done",function(be){return te._onAnimationDone(be)}),2&Ee&&(u.Ikx("id",te._id),u.uIk("role",te._config.role)("aria-labelledby",te._config.ariaLabel?null:te._ariaLabelledBy)("aria-label",te._config.ariaLabel)("aria-describedby",te._config.ariaDescribedBy||null),u.d8E("@dialogContainer",te._state))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,te){1&Ee&&u.YNc(0,W,0,0,"ng-template",0)},directives:[i.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Q.dialogContainer]}}),ye})(),se=0;class J{constructor(ke,Ee,te="mat-dialog-"+se++){this._overlayRef=ke,this._containerInstance=Ee,this.id=te,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new y.x,this._afterClosed=new y.x,this._beforeClosed=new y.x,this._state=0,Ee._id=te,Ee._animationStateChanged.pipe((0,D.h)(ze=>"opened"===ze.state),(0,T.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,D.h)(ze=>"closed"===ze.state),(0,T.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ke.keydownEvents().pipe((0,D.h)(ze=>ze.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(ze))).subscribe(ze=>{ze.preventDefault(),me(this,"keyboard")}),ke.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():me(this,"mouse")})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,D.h)(Ee=>"closing"===Ee.state),(0,T.q)(1)).subscribe(Ee=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ke){let Ee=this._getPositionStrategy();return ke&&(ke.left||ke.right)?ke.left?Ee.left(ke.left):Ee.right(ke.right):Ee.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?Ee.top(ke.top):Ee.bottom(ke.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ke="",Ee=""){return this._overlayRef.updateSize({width:ke,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(ke){return this._overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this._overlayRef.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function me(ye,ke,Ee){return void 0!==ye._containerInstance&&(ye._containerInstance._closeInteractionType=ke),ye.close(Ee)}const x=new u.OlP("MatDialogData"),t=new u.OlP("mat-dialog-default-options"),r=new u.OlP("mat-dialog-scroll-strategy"),C={provide:r,deps:[e.aV],useFactory:function c(ye){return()=>ye.scrollStrategies.block()}};let S=(()=>{class ye{constructor(Ee,te,ze,be,Z,Y,ot,Ie,Ae,ce){this._overlay=Ee,this._injector=te,this._defaultOptions=ze,this._parentDialog=be,this._overlayContainer=Z,this._dialogRefConstructor=ot,this._dialogContainerType=Ie,this._dialogDataToken=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new y.x,this._afterOpenedAtThisLevel=new y.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.O)(void 0))),this._scrollStrategy=Y}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,te){te=function _(ye,ke){return Object.assign(Object.assign({},ke),ye)}(te,this._defaultOptions||new ne),te.id&&this.getDialogById(te.id);const ze=this._createOverlay(te),be=this._attachDialogContainer(ze,te),Z=this._attachDialogContent(Ee,be,ze,te);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Z),Z.afterClosed().subscribe(()=>this._removeOpenDialog(Z)),this.afterOpened.next(Z),be._initializeWithAttachedContent(),Z}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(te=>te.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ee){const te=this._getOverlayConfig(Ee);return this._overlay.create(te)}_getOverlayConfig(Ee){const te=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(te.backdropClass=Ee.backdropClass),te}_attachDialogContainer(Ee,te){const be=u.zs3.create({parent:te&&te.viewContainerRef&&te.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:te}]}),Z=new i.C5(this._dialogContainerType,te.viewContainerRef,be,te.componentFactoryResolver);return Ee.attach(Z).instance}_attachDialogContent(Ee,te,ze,be){const Z=new this._dialogRefConstructor(ze,te,be.id);if(Ee instanceof u.Rgc)te.attachTemplatePortal(new i.UE(Ee,null,{$implicit:be.data,dialogRef:Z}));else{const Y=this._createInjector(be,Z,te),ot=te.attachComponentPortal(new i.C5(Ee,be.viewContainerRef,Y,be.componentFactoryResolver));Z.componentInstance=ot.instance}return Z.updateSize(be.width,be.height).updatePosition(be.position),Z}_createInjector(Ee,te,ze){const be=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,Z=[{provide:this._dialogContainerType,useValue:ze},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:te}];return Ee.direction&&(!be||!be.get(a.Is,null,u.XFs.Optional))&&Z.push({provide:a.Is,useValue:{value:Ee.direction,change:(0,P.of)()}}),u.zs3.create({parent:be||this._injector,providers:Z})}_removeOpenDialog(Ee){const te=this.openDialogs.indexOf(Ee);te>-1&&(this.openDialogs.splice(te,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ze,be)=>{ze?be.setAttribute("aria-hidden",ze):be.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const te=Ee.parentElement.children;for(let ze=te.length-1;ze>-1;ze--){let be=te[ze];be!==Ee&&"SCRIPT"!==be.nodeName&&"STYLE"!==be.nodeName&&!be.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(be,be.getAttribute("aria-hidden")),be.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let te=Ee.length;for(;te--;)Ee[te].close()}}return ye.\u0275fac=function(Ee){u.$Z()},ye.\u0275dir=u.lG2({type:ye}),ye})(),I=(()=>{class ye extends S{constructor(Ee,te,ze,be,Z,Y,ot,Ie){super(Ee,te,be,Y,ot,Z,J,ie,x,Ie)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.LFG(e.aV),u.LFG(u.zs3),u.LFG(E.Ye,8),u.LFG(t,8),u.LFG(r),u.LFG(ye,12),u.LFG(e.Xj),u.LFG(U.Qb,8))},ye.\u0275prov=u.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),g=(()=>{class ye{constructor(Ee,te,ze){this.dialogRef=Ee,this._elementRef=te,this._dialog=ze,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function $(ye,ke){let Ee=ye.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?ke.find(te=>te.id===Ee.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const te=Ee._matDialogClose||Ee._matDialogCloseResult;te&&(this.dialogResult=te.currentValue)}_onButtonClick(Ee){me(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(u.Y36(J,8),u.Y36(u.SBq),u.Y36(I))},ye.\u0275dir=u.lG2({type:ye,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,te){1&Ee&&u.NdJ("click",function(be){return te._onButtonClick(be)}),2&Ee&&u.uIk("aria-label",te.ariaLabel||null)("type",te.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[u.TTD]}),ye})(),fe=(()=>{class ye{}return ye.\u0275fac=function(Ee){return new(Ee||ye)},ye.\u0275mod=u.oAB({type:ye}),ye.\u0275inj=u.cJS({providers:[I,C],imports:[[e.U8,i.eL,b.BQ],b.BQ]}),ye})()},4834:(He,j,p)=>{"use strict";p.d(j,{d:()=>b,t:()=>a});var e=p(5e3),i=p(3191),u=p(508);let b=(()=>{class y{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(P){this._vertical=(0,i.Ig)(P)}get inset(){return this._inset}set inset(P){this._inset=(0,i.Ig)(P)}}return y.\u0275fac=function(P){return new(P||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,D){2&P&&(e.uIk("aria-orientation",D.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",D.vertical)("mat-divider-horizontal",!D.vertical)("mat-divider-inset",D.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(P,D){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),y})(),a=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[u.BQ],u.BQ]}),y})()},1125:(He,j,p)=>{"use strict";p.d(j,{pp:()=>Ee,To:()=>te,ib:()=>V,u4:()=>ye,yz:()=>fe,yK:()=>ke});var e=p(5e3),i=p(3191),u=p(7579),b=p(727),a=p(449);let y=0;const d=new e.OlP("CdkAccordion");let P=(()=>{class ze{constructor(){this._stateChanges=new u.x,this._openCloseAllActions=new u.x,this.id="cdk-accordion-"+y++,this._multi=!1}get multi(){return this._multi}set multi(Z){this._multi=(0,i.Ig)(Z)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Z){this._stateChanges.next(Z)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:d,useExisting:ze}]),e.TTD]}),ze})(),D=0,T=(()=>{class ze{constructor(Z,Y,ot){this.accordion=Z,this._changeDetectorRef=Y,this._expansionDispatcher=ot,this._openCloseAllSubscription=b.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+D++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ot.listen((Ie,Ae)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ae&&this.id!==Ie&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Z){Z=(0,i.Ig)(Z),this._expanded!==Z&&(this._expanded=Z,this.expandedChange.emit(Z),Z?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,i.Ig)(Z)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Z=>{this.disabled||(this.expanded=Z)})}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(d,12),e.Y36(e.sBO),e.Y36(a.A8))},ze.\u0275dir=e.lG2({type:ze,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:d,useValue:void 0}])]}),ze})(),M=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({}),ze})();var A=p(7429),E=p(9808),k=p(508),w=p(5664),z=p(1884),U=p(8675),W=p(9300),ne=p(5698),Q=p(1159),le=p(6360),q=p(515),ie=p(6451),se=p(1777);const J=["body"];function me(ze,be){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],t=["mat-expansion-panel-header","*","mat-action-row"];function r(ze,be){if(1&ze&&e._UZ(0,"span",2),2&ze){const Z=e.oxw();e.Q6J("@indicatorRotate",Z._getExpandedState())}}const h=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],C=new e.OlP("MAT_ACCORDION"),S="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,se.X$)("indicatorRotate",[(0,se.SB)("collapsed, void",(0,se.oB)({transform:"rotate(0deg)"})),(0,se.SB)("expanded",(0,se.oB)({transform:"rotate(180deg)"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(S))]),bodyExpansion:(0,se.X$)("bodyExpansion",[(0,se.SB)("collapsed, void",(0,se.oB)({height:"0px",visibility:"hidden"})),(0,se.SB)("expanded",(0,se.oB)({height:"*",visibility:"visible"})),(0,se.eR)("expanded <=> collapsed, void => collapsed",(0,se.jt)(S))])};let _=(()=>{class ze{constructor(Z){this._template=Z}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(e.Rgc))},ze.\u0275dir=e.lG2({type:ze,selectors:[["ng-template","matExpansionPanelContent",""]]}),ze})(),n=0;const g=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let V=(()=>{class ze extends T{constructor(Z,Y,ot,Ie,Ae,ce,Te){super(Z,Y,ot),this._viewContainerRef=Ie,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new u.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new u.x,this.accordion=Z,this._document=Ae,this._bodyAnimationDone.pipe((0,z.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{"void"!==xe.fromState&&("expanded"===xe.toState?this.afterExpand.emit():"collapsed"===xe.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Z){this._hideToggle=(0,i.Ig)(Z)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Z){this._togglePosition=Z}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,U.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ne.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Z){this._inputChanges.next(Z)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Z=this._document.activeElement,Y=this._body.nativeElement;return Z===Y||Y.contains(Z)}return!1}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(C,12),e.Y36(e.sBO),e.Y36(a.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(le.Qb,8),e.Y36(g,8))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel"]],contentQueries:function(Z,Y,ot){if(1&Z&&e.Suo(ot,_,5),2&Z){let Ie;e.iGM(Ie=e.CRH())&&(Y._lazyContent=Ie.first)}},viewQuery:function(Z,Y){if(1&Z&&e.Gf(J,5),2&Z){let ot;e.iGM(ot=e.CRH())&&(Y._body=ot.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Z,Y){2&Z&&e.ekj("mat-expanded",Y.expanded)("_mat-animation-noopable","NoopAnimations"===Y._animationMode)("mat-expansion-panel-spacing",Y._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:C,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:t,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Z,Y){1&Z&&(e.F$t(x),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Ie){return Y._bodyAnimationDone.next(Ie)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,me,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Z&&(e.xp6(1),e.Q6J("@bodyExpansion",Y._getExpandedState())("id",Y.id),e.uIk("aria-labelledby",Y._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Y._portal))},directives:[A.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),ze})();class H{}const $=(0,k.sb)(H);let fe=(()=>{class ze extends ${constructor(Z,Y,ot,Ie,Ae,ce,Te){super(),this.panel=Z,this._element=Y,this._focusMonitor=ot,this._changeDetectorRef=Ie,this._animationMode=ce,this._parentChangeSubscription=b.w0.EMPTY;const xe=Z.accordion?Z.accordion._stateChanges.pipe((0,W.h)(G=>!(!G.hideToggle&&!G.togglePosition))):q.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,ie.T)(Z.opened,Z.closed,xe,Z._inputChanges.pipe((0,W.h)(G=>!!(G.hideToggle||G.disabled||G.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Z.closed.pipe((0,W.h)(()=>Z._containsFocus())).subscribe(()=>ot.focusVia(Y,"program")),Ae&&(this.expandedHeight=Ae.expandedHeight,this.collapsedHeight=Ae.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Z=this._isExpanded();return Z&&this.expandedHeight?this.expandedHeight:!Z&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Z){switch(Z.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(Z)||(Z.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Z))}}focus(Z,Y){Z?this._focusMonitor.focusVia(this._element,Z,Y):this._element.nativeElement.focus(Y)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Z=>{Z&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ze.\u0275fac=function(Z){return new(Z||ze)(e.Y36(V,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(g,8),e.Y36(le.Qb,8),e.$8M("tabindex"))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Z,Y){1&Z&&e.NdJ("click",function(){return Y._toggle()})("keydown",function(Ie){return Y._keydown(Ie)}),2&Z&&(e.uIk("id",Y.panel._headerId)("tabindex",Y.tabIndex)("aria-controls",Y._getPanelId())("aria-expanded",Y._isExpanded())("aria-disabled",Y.panel.disabled),e.Udp("height",Y._getHeaderHeight()),e.ekj("mat-expanded",Y._isExpanded())("mat-expansion-toggle-indicator-after","after"===Y._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Y._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Y._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Z,Y){1&Z&&(e.F$t(h),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,r,1,1,"span",1)),2&Z&&(e.xp6(4),e.Q6J("ngIf",Y._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),ze})(),ye=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ze})(),ke=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ze})(),Ee=(()=>{class ze extends P{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Z){this._hideToggle=(0,i.Ig)(Z)}ngAfterContentInit(){this._headers.changes.pipe((0,U.O)(this._headers)).subscribe(Z=>{this._ownHeaders.reset(Z.filter(Y=>Y.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Z){this._keyManager.onKeydown(Z)}_handleHeaderFocus(Z){this._keyManager.updateActiveItem(Z)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ze.\u0275fac=function(){let be;return function(Y){return(be||(be=e.n5z(ze)))(Y||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["mat-accordion"]],contentQueries:function(Z,Y,ot){if(1&Z&&e.Suo(ot,fe,5),2&Z){let Ie;e.iGM(Ie=e.CRH())&&(Y._headers=Ie)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Z,Y){2&Z&&e.ekj("mat-accordion-multi",Y.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:C,useExisting:ze}]),e.qOj]}),ze})(),te=(()=>{class ze{}return ze.\u0275fac=function(Z){return new(Z||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[E.ez,k.BQ,M,A.eL]]}),ze})()},7322:(He,j,p)=>{"use strict";p.d(j,{Eo:()=>n,G_:()=>ce,KE:()=>Te,R9:()=>be,TO:()=>I,bx:()=>fe,lN:()=>xe});var e=p(7144),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(7579),d=p(6451),P=p(4968),D=p(8675),T=p(2722),M=p(5698),A=p(1777),E=p(6360),k=p(226),w=p(925);const z=["connectionContainer"],U=["inputContainer"],W=["label"];function ne(G,ee){1&G&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function Q(G,ee){if(1&G){const ue=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){return u.CHM(ue),u.oxw().updateOutlineGap()}),u.Hsn(1,1),u.qZA()}if(2&G){const ue=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)}}function le(G,ee){if(1&G&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&G){const ue=u.oxw(2);u.xp6(3),u.Oqu(ue._control.placeholder)}}function q(G,ee){1&G&&u.Hsn(0,3,["*ngSwitchCase","true"])}function ie(G,ee){1&G&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function se(G,ee){if(1&G){const ue=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){return u.CHM(ue),u.oxw().updateOutlineGap()}),u.YNc(2,le,4,1,"ng-container",12),u.YNc(3,q,1,0,"ng-content",12),u.YNc(4,ie,2,0,"span",22),u.qZA()}if(2&G){const ue=u.oxw();u.ekj("mat-empty",ue._control.empty&&!ue._shouldAlwaysFloat())("mat-form-field-empty",ue._control.empty&&!ue._shouldAlwaysFloat())("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color),u.Q6J("cdkObserveContentDisabled","outline"!=ue.appearance)("id",ue._labelId)("ngSwitch",ue._hasLabel()),u.uIk("for",ue._control.id)("aria-owns",ue._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!ue.hideRequiredMarker&&ue._control.required&&!ue._control.disabled)}}function J(G,ee){1&G&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function me(G,ee){if(1&G&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&G){const ue=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==ue.color)("mat-warn","warn"==ue.color)}}function x(G,ee){if(1&G&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&G){const ue=u.oxw();u.Q6J("@transitionMessages",ue._subscriptAnimationState)}}function t(G,ee){if(1&G&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&G){const ue=u.oxw(2);u.Q6J("id",ue._hintLabelId),u.xp6(1),u.Oqu(ue.hintLabel)}}function r(G,ee){if(1&G&&(u.TgZ(0,"div",27),u.YNc(1,t,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&G){const ue=u.oxw();u.Q6J("@transitionMessages",ue._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",ue.hintLabel)}}const h=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let C=0;const S=new u.OlP("MatError");let I=(()=>{class G{constructor(ue,ve){this.id="mat-error-"+C++,ue||ve.nativeElement.setAttribute("aria-live","polite")}}return G.\u0275fac=function(ue){return new(ue||G)(u.$8M("aria-live"),u.Y36(u.SBq))},G.\u0275dir=u.lG2({type:G,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ue,ve){2&ue&&u.uIk("id",ve.id)},inputs:{id:"id"},features:[u._Bn([{provide:S,useExisting:G}])]}),G})();const _={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G}),G})(),H=0;const $=new u.OlP("MatHint");let fe=(()=>{class G{constructor(){this.align="start",this.id="mat-hint-"+H++}}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(ue,ve){2&ue&&(u.uIk("id",ve.id)("align",null),u.ekj("mat-form-field-hint-end","end"===ve.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:$,useExisting:G}])]}),G})(),ye=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-label"]]}),G})(),ke=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["mat-placeholder"]]}),G})();const Ee=new u.OlP("MatPrefix"),ze=new u.OlP("MatSuffix");let be=(()=>{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275dir=u.lG2({type:G,selectors:[["","matSuffix",""]],features:[u._Bn([{provide:ze,useExisting:G}])]}),G})(),Z=0;const Ie=(0,b.pj)(class{constructor(G){this._elementRef=G}},"primary"),Ae=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new u.OlP("MatFormField");let Te=(()=>{class G extends Ie{constructor(ue,ve,Le,lt,ht,Tt,hi){super(ue),this._changeDetectorRef=ve,this._dir=Le,this._defaults=lt,this._platform=ht,this._ngZone=Tt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new y.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Z++,this._labelId="mat-form-field-label-"+Z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==hi,this.appearance=lt&<.appearance?lt.appearance:"legacy",this._hideRequiredMarker=!(!lt||null==lt.hideRequiredMarker)&<.hideRequiredMarker}get appearance(){return this._appearance}set appearance(ue){const ve=this._appearance;this._appearance=ue||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ve!==ue&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ue){this._hideRequiredMarker=(0,a.Ig)(ue)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(ue){this._hintLabel=ue,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(ue){ue!==this._floatLabel&&(this._floatLabel=ue||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(ue){this._explicitFormFieldControl=ue}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const ue=this._control;ue.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${ue.controlType}`),ue.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,D.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(ue){const ve=this._control?this._control.ngControl:null;return ve&&ve[ue]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,P.R)(this._label.nativeElement,"transitionend").pipe((0,M.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let ue=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ue.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(lt=>"start"===lt.align):null,Le=this._hintChildren?this._hintChildren.find(lt=>"end"===lt.align):null;ve?ue.push(ve.id):this._hintLabel&&ue.push(this._hintLabelId),Le&&ue.push(Le.id)}else this._errorChildren&&ue.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(ue)}}_validateControlChild(){}updateOutlineGap(){const ue=this._label?this._label.nativeElement:null,ve=this._connectionContainerRef.nativeElement,Le=".mat-form-field-outline-start",lt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!ue||!ue.children.length||!ue.textContent.trim()){const Gt=ve.querySelectorAll(`${Le}, ${lt}`);for(let di=0;di0?.75*gt+10:0}for(let Gt=0;Gt{class G{}return G.\u0275fac=function(ue){return new(ue||G)},G.\u0275mod=u.oAB({type:G}),G.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.Q8],b.BQ]}),G})()},3954:(He,j,p)=>{"use strict";p.d(j,{DX:()=>A,Il:()=>J,N6:()=>me});var e=p(5e3),i=p(508),u=p(3191),b=p(226);const a=["*"];class D{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,h){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=h.map(c=>this._trackTile(c))}_trackTile(r){const h=this._findMatchingGap(r.colspan);return this._markTilePosition(h,r),this.columnIndex=h+r.colspan,new T(this.rowIndex,h)}_findMatchingGap(r){let h=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(h)):(h=this.tracker.indexOf(0,this.columnIndex),-1!=h?(c=this._findGapEndIndex(h),this.columnIndex=h+1):(this._nextRow(),h=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(h)))}while(c-h{class t{constructor(h,c){this._element=h,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(h){this._rowspan=Math.round((0,u.su)(h))}get colspan(){return this._colspan}set colspan(h){this._colspan=Math.round((0,u.su)(h))}_setStyle(h,c){this._element.nativeElement.style[h]=c}}return t.\u0275fac=function(h){return new(h||t)(e.Y36(e.SBq),e.Y36(M,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(h,c){2&h&&e.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(h,c){1&h&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})();const U=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(r,h,c,C){this._gutterSize=ie(r),this._rows=h.rowCount,this._rowspan=h.rowspan,this._cols=c,this._direction=C}getBaseTileSize(r,h){return`(${r}% - (${this._gutterSize} * ${h}))`}getTilePosition(r,h){return 0===h?"0":q(`(${r} + ${this._gutterSize}) * ${h}`)}getTileSize(r,h){return`(${r} * ${h}) + (${h-1} * ${this._gutterSize})`}setStyle(r,h,c){let C=100/this._cols,S=(this._cols-1)/this._cols;this.setColStyles(r,c,C,S),this.setRowStyles(r,h,C,S)}setColStyles(r,h,c,C){let S=this.getBaseTileSize(c,C);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(S,h)),r._setStyle("width",q(this.getTileSize(S,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ne extends W{constructor(r){super(),this.fixedRowHeight=r}init(r,h,c,C){super.init(r,h,c,C),this.fixedRowHeight=ie(this.fixedRowHeight),U.test(this.fixedRowHeight)}setRowStyles(r,h){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,h)),r._setStyle("height",q(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",q(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}class Q extends W{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,h,c,C){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,C),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,h)),r._setStyle("paddingTop",q(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",q(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(h=>{h._setStyle("marginTop",null),h._setStyle("paddingTop",null)})}_parseRatio(r){const h=r.split(":");this.rowHeightRatio=parseFloat(h[0])/parseFloat(h[1])}}class le extends W{setRowStyles(r,h){let S=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(S,h)),r._setStyle("height",q(this.getTileSize(S,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(h=>{h._setStyle("top",null),h._setStyle("height",null)})}}function q(t){return`calc(${t})`}function ie(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let J=(()=>{class t{constructor(h,c){this._element=h,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(h){this._cols=Math.max(1,Math.round((0,u.su)(h)))}get gutterSize(){return this._gutter}set gutterSize(h){this._gutter=`${null==h?"":h}`}get rowHeight(){return this._rowHeight}set rowHeight(h){const c=`${null==h?"":h}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(h){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===h?new le:h&&h.indexOf(":")>-1?new Q(h):new ne(h)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new D);const h=this._tileCoordinator,c=this._tiles.filter(S=>!S._gridList||S._gridList===this),C=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,h,this.cols,C),c.forEach((S,I)=>{const _=h.positions[I];this._tileStyler.setStyle(S,_.row,_.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(h){h&&(this._element.nativeElement.style[h[0]]=h[1])}}return t.\u0275fac=function(h){return new(h||t)(e.Y36(e.SBq),e.Y36(b.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["mat-grid-list"]],contentQueries:function(h,c,C){if(1&h&&e.Suo(C,A,5),2&h){let S;e.iGM(S=e.CRH())&&(c._tiles=S)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(h,c){2&h&&e.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:M,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(h,c){1&h&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),t})(),me=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[i.uc,i.BQ],i.uc,i.BQ]}),t})()},5245:(He,j,p)=>{"use strict";p.d(j,{Hw:()=>V,Ps:()=>R});var e=p(5e3),i=p(508),u=p(3191),b=p(9808),a=p(9646),y=p(2843),d=p(4128),P=p(727),D=p(8505),T=p(4004),M=p(262),A=p(8746),E=p(3099),k=p(5698),w=p(8138),z=p(2313);const U=["*"];let W;function Q(H){var $;return(null===($=function ne(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(W=H.trustedTypes.createPolicy("angular#components",{createHTML:$=>$}))}return W}())||void 0===$?void 0:$.createHTML(H))||H}function le(H){return Error(`Unable to find icon with the name "${H}"`)}function ie(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function se(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class J{constructor($,fe,ye){this.url=$,this.svgText=fe,this.options=ye}}let me=(()=>{class H{constructor(fe,ye,ke,Ee){this._httpClient=fe,this._sanitizer=ye,this._errorHandler=Ee,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=ke}addSvgIcon(fe,ye,ke){return this.addSvgIconInNamespace("",fe,ye,ke)}addSvgIconLiteral(fe,ye,ke){return this.addSvgIconLiteralInNamespace("",fe,ye,ke)}addSvgIconInNamespace(fe,ye,ke,Ee){return this._addSvgIconConfig(fe,ye,new J(ke,null,Ee))}addSvgIconResolver(fe){return this._resolvers.push(fe),this}addSvgIconLiteralInNamespace(fe,ye,ke,Ee){const te=this._sanitizer.sanitize(e.q3G.HTML,ke);if(!te)throw se(ke);const ze=Q(te);return this._addSvgIconConfig(fe,ye,new J("",ze,Ee))}addSvgIconSet(fe,ye){return this.addSvgIconSetInNamespace("",fe,ye)}addSvgIconSetLiteral(fe,ye){return this.addSvgIconSetLiteralInNamespace("",fe,ye)}addSvgIconSetInNamespace(fe,ye,ke){return this._addSvgIconSetConfig(fe,new J(ye,null,ke))}addSvgIconSetLiteralInNamespace(fe,ye,ke){const Ee=this._sanitizer.sanitize(e.q3G.HTML,ye);if(!Ee)throw se(ye);const te=Q(Ee);return this._addSvgIconSetConfig(fe,new J("",te,ke))}registerFontClassAlias(fe,ye=fe){return this._fontCssClassesByAlias.set(fe,ye),this}classNameForFontAlias(fe){return this._fontCssClassesByAlias.get(fe)||fe}setDefaultFontSetClass(fe){return this._defaultFontSetClass=fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(fe){const ye=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,fe);if(!ye)throw ie(fe);const ke=this._cachedIconsByUrl.get(ye);return ke?(0,a.of)(r(ke)):this._loadSvgIconFromConfig(new J(fe,null)).pipe((0,D.b)(Ee=>this._cachedIconsByUrl.set(ye,Ee)),(0,T.U)(Ee=>r(Ee)))}getNamedSvgIcon(fe,ye=""){const ke=h(ye,fe);let Ee=this._svgIconConfigs.get(ke);if(Ee)return this._getSvgFromConfig(Ee);if(Ee=this._getIconConfigFromResolvers(ye,fe),Ee)return this._svgIconConfigs.set(ke,Ee),this._getSvgFromConfig(Ee);const te=this._iconSetConfigs.get(ye);return te?this._getSvgFromIconSetConfigs(fe,te):(0,y._)(le(ke))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(fe){return fe.svgText?(0,a.of)(r(this._svgElementFromConfig(fe))):this._loadSvgIconFromConfig(fe).pipe((0,T.U)(ye=>r(ye)))}_getSvgFromIconSetConfigs(fe,ye){const ke=this._extractIconWithNameFromAnySet(fe,ye);if(ke)return(0,a.of)(ke);const Ee=ye.filter(te=>!te.svgText).map(te=>this._loadSvgIconSetFromConfig(te).pipe((0,M.K)(ze=>{const Z=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,te.url)} failed: ${ze.message}`;return this._errorHandler.handleError(new Error(Z)),(0,a.of)(null)})));return(0,d.D)(Ee).pipe((0,T.U)(()=>{const te=this._extractIconWithNameFromAnySet(fe,ye);if(!te)throw le(fe);return te}))}_extractIconWithNameFromAnySet(fe,ye){for(let ke=ye.length-1;ke>=0;ke--){const Ee=ye[ke];if(Ee.svgText&&Ee.svgText.toString().indexOf(fe)>-1){const te=this._svgElementFromConfig(Ee),ze=this._extractSvgIconFromSet(te,fe,Ee.options);if(ze)return ze}}return null}_loadSvgIconFromConfig(fe){return this._fetchIcon(fe).pipe((0,D.b)(ye=>fe.svgText=ye),(0,T.U)(()=>this._svgElementFromConfig(fe)))}_loadSvgIconSetFromConfig(fe){return fe.svgText?(0,a.of)(null):this._fetchIcon(fe).pipe((0,D.b)(ye=>fe.svgText=ye))}_extractSvgIconFromSet(fe,ye,ke){const Ee=fe.querySelector(`[id="${ye}"]`);if(!Ee)return null;const te=Ee.cloneNode(!0);if(te.removeAttribute("id"),"svg"===te.nodeName.toLowerCase())return this._setSvgAttributes(te,ke);if("symbol"===te.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(te),ke);const ze=this._svgElementFromString(Q(""));return ze.appendChild(te),this._setSvgAttributes(ze,ke)}_svgElementFromString(fe){const ye=this._document.createElement("DIV");ye.innerHTML=fe;const ke=ye.querySelector("svg");if(!ke)throw Error(" tag not found");return ke}_toSvgElement(fe){const ye=this._svgElementFromString(Q("")),ke=fe.attributes;for(let Ee=0;EeQ(Y)),(0,A.x)(()=>this._inProgressUrlFetches.delete(ze)),(0,E.B)());return this._inProgressUrlFetches.set(ze,Z),Z}_addSvgIconConfig(fe,ye,ke){return this._svgIconConfigs.set(h(fe,ye),ke),this}_addSvgIconSetConfig(fe,ye){const ke=this._iconSetConfigs.get(fe);return ke?ke.push(ye):this._iconSetConfigs.set(fe,[ye]),this}_svgElementFromConfig(fe){if(!fe.svgElement){const ye=this._svgElementFromString(fe.svgText);this._setSvgAttributes(ye,fe.options),fe.svgElement=ye}return fe.svgElement}_getIconConfigFromResolvers(fe,ye){for(let ke=0;ke$?$.pathname+$.search:""}}}),_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=_.map(H=>`[${H}]`).join(", "),g=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class H extends C{constructor(fe,ye,ke,Ee,te){super(fe),this._iconRegistry=ye,this._location=Ee,this._errorHandler=te,this._inline=!1,this._currentIconFetch=P.w0.EMPTY,ke||fe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(fe){this._inline=(0,u.Ig)(fe)}get svgIcon(){return this._svgIcon}set svgIcon(fe){fe!==this._svgIcon&&(fe?this._updateSvgIcon(fe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=fe)}get fontSet(){return this._fontSet}set fontSet(fe){const ye=this._cleanupFontValue(fe);ye!==this._fontSet&&(this._fontSet=ye,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(fe){const ye=this._cleanupFontValue(fe);ye!==this._fontIcon&&(this._fontIcon=ye,this._updateFontIconClasses())}_splitIconName(fe){if(!fe)return["",""];const ye=fe.split(":");switch(ye.length){case 1:return["",ye[0]];case 2:return ye;default:throw Error(`Invalid icon name: "${fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const fe=this._elementsWithExternalReferences;if(fe&&fe.size){const ye=this._location.getPathname();ye!==this._previousPath&&(this._previousPath=ye,this._prependPathToReferences(ye))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(fe){this._clearSvgElement();const ye=this._location.getPathname();this._previousPath=ye,this._cacheChildrenWithExternalReferences(fe),this._prependPathToReferences(ye),this._elementRef.nativeElement.appendChild(fe)}_clearSvgElement(){const fe=this._elementRef.nativeElement;let ye=fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ye--;){const ke=fe.childNodes[ye];(1!==ke.nodeType||"svg"===ke.nodeName.toLowerCase())&&ke.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const fe=this._elementRef.nativeElement,ye=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();ye!=this._previousFontSetClass&&(this._previousFontSetClass&&fe.classList.remove(this._previousFontSetClass),ye&&fe.classList.add(ye),this._previousFontSetClass=ye),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&fe.classList.remove(this._previousFontIconClass),this.fontIcon&&fe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(fe){return"string"==typeof fe?fe.trim().split(" ")[0]:fe}_prependPathToReferences(fe){const ye=this._elementsWithExternalReferences;ye&&ye.forEach((ke,Ee)=>{ke.forEach(te=>{Ee.setAttribute(te.name,`url('${fe}#${te.value}')`)})})}_cacheChildrenWithExternalReferences(fe){const ye=fe.querySelectorAll(n),ke=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ee=0;Ee{const ze=ye[Ee],be=ze.getAttribute(te),Z=be?be.match(g):null;if(Z){let Y=ke.get(ze);Y||(Y=[],ke.set(ze,Y)),Y.push({name:te,value:Z[1]})}})}_updateSvgIcon(fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),fe){const[ye,ke]=this._splitIconName(fe);ye&&(this._svgNamespace=ye),ke&&(this._svgName=ke),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ke,ye).pipe((0,k.q)(1)).subscribe(Ee=>this._setSvgElement(Ee),Ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ye}:${ke}! ${Ee.message}`))})}}}return H.\u0275fac=function(fe){return new(fe||H)(e.Y36(e.SBq),e.Y36(me),e.$8M("aria-hidden"),e.Y36(S),e.Y36(e.qLn))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(fe,ye){2&fe&&(e.uIk("data-mat-icon-type",ye._usingFontIcon()?"font":"svg")("data-mat-icon-name",ye._svgName||ye.fontIcon)("data-mat-icon-namespace",ye._svgNamespace||ye.fontSet),e.ekj("mat-icon-inline",ye.inline)("mat-icon-no-color","primary"!==ye.color&&"accent"!==ye.color&&"warn"!==ye.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:U,decls:1,vars:0,template:function(fe,ye){1&fe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),H})(),R=(()=>{class H{}return H.\u0275fac=function(fe){return new(fe||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),H})()},7531:(He,j,p)=>{"use strict";p.d(j,{Jk:()=>w,Nt:()=>ne,c:()=>Q});var e=p(3191),i=p(925),u=p(5e3),b=p(3075),a=p(508),y=p(7322),d=p(7579),P=p(515);const D=(0,i.i$)({passive:!0});let T=(()=>{class le{constructor(ie,se){this._platform=ie,this._ngZone=se,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return P.E;const se=(0,e.fI)(ie),J=this._monitoredElements.get(se);if(J)return J.subject;const me=new d.x,x="cdk-text-field-autofilled",t=r=>{"cdk-text-field-autofill-start"!==r.animationName||se.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&se.classList.contains(x)&&(se.classList.remove(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!1}))):(se.classList.add(x),this._ngZone.run(()=>me.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{se.addEventListener("animationstart",t,D),se.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(se,{subject:me,unlisten:()=>{se.removeEventListener("animationstart",t,D)}}),me}stopMonitoring(ie){const se=(0,e.fI)(ie),J=this._monitoredElements.get(se);J&&(J.unlisten(),J.subject.complete(),se.classList.remove("cdk-text-field-autofill-monitored"),se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(se))}ngOnDestroy(){this._monitoredElements.forEach((ie,se)=>this.stopMonitoring(se))}}return le.\u0275fac=function(ie){return new(ie||le)(u.LFG(i.t4),u.LFG(u.R0b))},le.\u0275prov=u.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),E=(()=>{class le{}return le.\u0275fac=function(ie){return new(ie||le)},le.\u0275mod=u.oAB({type:le}),le.\u0275inj=u.cJS({}),le})();const w=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let U=0;const W=(0,a.FD)(class{constructor(le,q,ie,se){this._defaultErrorStateMatcher=le,this._parentForm=q,this._parentFormGroup=ie,this.ngControl=se}});let ne=(()=>{class le extends W{constructor(ie,se,J,me,x,t,r,h,c,C){super(t,me,x,J),this._elementRef=ie,this._platform=se,this._autofillMonitor=h,this._formField=C,this._uid="mat-input-"+U++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(_=>(0,i.qK)().has(_)),this._iOSKeyupListener=_=>{const n=_.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,I=S.nodeName.toLowerCase();this._inputValueAccessor=r||S,this._previousNativeValue=this.value,this.id=this.id,se.IOS&&c.runOutsideAngular(()=>{ie.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(ie){this._disabled=(0,e.Ig)(ie),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(ie){this._id=ie||this._uid}get required(){var ie,se,J,me;return null!==(me=null!==(ie=this._required)&&void 0!==ie?ie:null===(J=null===(se=this.ngControl)||void 0===se?void 0:se.control)||void 0===J?void 0:J.hasValidator(b.kI.required))&&void 0!==me&&me}set required(ie){this._required=(0,e.Ig)(ie)}get type(){return this._type}set type(ie){this._type=ie||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(ie){ie!==this.value&&(this._inputValueAccessor.value=ie,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(ie){this._readonly=(0,e.Ig)(ie)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(ie=>{this.autofilled=ie.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(ie){this._elementRef.nativeElement.focus(ie)}_focusChanged(ie){ie!==this.focused&&(this.focused=ie,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var ie,se;const J=(null===(se=null===(ie=this._formField)||void 0===ie?void 0:ie._hideControlPlaceholder)||void 0===se?void 0:se.call(ie))?null:this.placeholder;if(J!==this._previousPlaceholder){const me=this._elementRef.nativeElement;this._previousPlaceholder=J,J?me.setAttribute("placeholder",J):me.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const ie=this._elementRef.nativeElement.value;this._previousNativeValue!==ie&&(this._previousNativeValue=ie,this.stateChanges.next())}_validateType(){z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let ie=this._elementRef.nativeElement.validity;return ie&&ie.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const ie=this._elementRef.nativeElement,se=ie.options[0];return this.focused||ie.multiple||!this.empty||!!(ie.selectedIndex>-1&&se&&se.label)}return this.focused||!this.empty}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const ie=this._elementRef.nativeElement;return this._isNativeSelect&&(ie.multiple||ie.size>1)}}return le.\u0275fac=function(ie){return new(ie||le)(u.Y36(u.SBq),u.Y36(i.t4),u.Y36(b.a5,10),u.Y36(b.F,8),u.Y36(b.sg,8),u.Y36(a.rD),u.Y36(w,10),u.Y36(T),u.Y36(u.R0b),u.Y36(y.G_,8))},le.\u0275dir=u.lG2({type:le,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(ie,se){1&ie&&u.NdJ("focus",function(){return se._focusChanged(!0)})("blur",function(){return se._focusChanged(!1)})("input",function(){return se._onInput()}),2&ie&&(u.Ikx("disabled",se.disabled)("required",se.required),u.uIk("id",se.id)("data-placeholder",se.placeholder)("name",se.name||null)("readonly",se.readonly&&!se._isNativeSelect||null)("aria-invalid",se.empty&&se.required?null:se.errorState)("aria-required",se.required),u.ekj("mat-input-server",se._isServer)("mat-native-select-inline",se._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[u._Bn([{provide:y.Eo,useExisting:le}]),u.qOj,u.TTD]}),le})(),Q=(()=>{class le{}return le.\u0275fac=function(ie){return new(ie||le)},le.\u0275mod=u.oAB({type:le}),le.\u0275inj=u.cJS({providers:[a.rD],imports:[[E,y.lN,a.BQ],E,y.lN]}),le})()},4623:(He,j,p)=>{"use strict";p.d(j,{Tg:()=>h,i$:()=>me,ie:()=>g});var e=p(9808),i=p(5e3),u=p(508),b=p(3191),a=p(7579),y=p(2722),A=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],le=(0,u.Id)((0,u.Kr)(class{})),q=(0,u.Kr)(class{}),ie=new i.OlP("MatList"),se=new i.OlP("MatNavList");let me=(()=>{class V extends le{constructor(H){super(),this._elementRef=H,this._stateChanges=new a.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:ie,useExisting:V}]),i.qOj,i.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(H,$){1&H&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),V})(),x=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=i.lG2({type:V,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),V})(),t=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=i.lG2({type:V,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),V})(),h=(()=>{class V extends q{constructor(H,$,fe,ye){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(fe||ye&&"action-list"===ye._getListType()),this._list=fe||ye;const ke=this._getHostElement();"button"===ke.nodeName.toLowerCase()&&!ke.hasAttribute("type")&&ke.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,y.R)(this._destroyed)).subscribe(()=>{$.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,b.Ig)(H)}ngAfterContentInit(){(0,u.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return V.\u0275fac=function(H){return new(H||V)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(se,8),i.Y36(ie,8))},V.\u0275cmp=i.Xpm({type:V,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,$,fe){if(1&H&&(i.Suo(fe,x,5),i.Suo(fe,t,5),i.Suo(fe,u.X2,5)),2&H){let ye;i.iGM(ye=i.CRH())&&($._avatar=ye.first),i.iGM(ye=i.CRH())&&($._icon=ye.first),i.iGM(ye=i.CRH())&&($._lines=ye)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,$){2&H&&i.ekj("mat-list-item-disabled",$.disabled)("mat-list-item-avatar",$._avatar||$._icon)("mat-list-item-with-avatar",$._avatar||$._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:z,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(H,$){1&H&&(i.F$t(w),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&H&&(i.xp6(1),i.Q6J("matRippleTrigger",$._getHostElement())("matRippleDisabled",$._isRippleDisabled()))},directives:[u.wG],encapsulation:2,changeDetection:0}),V})(),g=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[u.uc,u.si,u.BQ,u.us,e.ez],u.uc,u.BQ,u.us,A.t]}),V})()},2181:(He,j,p)=>{"use strict";p.d(j,{OP:()=>H,Tx:()=>Ae,VK:()=>Ee,p6:()=>Ie});var e=p(5664),i=p(3191),u=p(1159),b=p(5e3),a=p(7579),y=p(727),d=p(6451),P=p(9646),D=p(3101),T=p(8675),M=p(3900),A=p(5698),E=p(2722),k=p(9300),w=p(4086),z=p(1777),U=p(7429),W=p(9808),ne=p(508),Q=p(9776),le=p(925),q=p(226),ie=p(5303);const se=["mat-menu-item",""];function J(ce,Te){1&ce&&(b.O4$(),b.TgZ(0,"svg",2),b._UZ(1,"polygon",3),b.qZA())}const me=["*"];function x(ce,Te){if(1&ce){const xe=b.EpF();b.TgZ(0,"div",0),b.NdJ("keydown",function(ee){return b.CHM(xe),b.oxw()._handleKeydown(ee)})("click",function(){return b.CHM(xe),b.oxw().closed.emit("click")})("@transformMenu.start",function(ee){return b.CHM(xe),b.oxw()._onAnimationStart(ee)})("@transformMenu.done",function(ee){return b.CHM(xe),b.oxw()._onAnimationDone(ee)}),b.TgZ(1,"div",1),b.Hsn(2),b.qZA()()}if(2&ce){const xe=b.oxw();b.Q6J("id",xe.panelId)("ngClass",xe._classList)("@transformMenu",xe._panelAnimationState),b.uIk("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const t={transformMenu:(0,z.X$)("transformMenu",[(0,z.SB)("void",(0,z.oB)({opacity:0,transform:"scale(0.8)"})),(0,z.eR)("void => enter",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,z.oB)({opacity:1,transform:"scale(1)"}))),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))]),fadeInItems:(0,z.X$)("fadeInItems",[(0,z.SB)("showing",(0,z.oB)({opacity:1})),(0,z.eR)("void => *",[(0,z.oB)({opacity:0}),(0,z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},c=new b.OlP("MatMenuContent"),V=new b.OlP("MAT_MENU_PANEL"),R=(0,ne.Kr)((0,ne.Id)(class{}));let H=(()=>{class ce extends R{constructor(xe,G,ee,ue,ve){var Le;super(),this._elementRef=xe,this._document=G,this._focusMonitor=ee,this._parentMenu=ue,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Le=null==ue?void 0:ue.addItem)||void 0===Le||Le.call(ue,this)}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,G):this._getHostElement().focus(G),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var xe;const G=this._elementRef.nativeElement.cloneNode(!0),ee=G.querySelectorAll("mat-icon, .material-icons");for(let ue=0;ue{class ce{constructor(xe,G,ee,ue){this._elementRef=xe,this._ngZone=G,this._defaultOptions=ee,this._changeDetectorRef=ue,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new b.n_E,this._tabSubscription=y.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new b.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ye++}get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xe){this._overlapTrigger=(0,i.Ig)(xe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xe){this._hasBackdrop=(0,i.Ig)(xe)}set panelClass(xe){const G=this._previousPanelClass;G&&G.length&&G.split(" ").forEach(ee=>{this._classList[ee]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(ee=>{this._classList[ee]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,T.O)(this._directDescendantItems),(0,M.w)(xe=>(0,d.T)(...xe.map(G=>G._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{var G;const ee=this._keyManager;if("enter"===this._panelAnimationState&&(null===(G=ee.activeItem)||void 0===G?void 0:G._hasFocus())){const ue=xe.toArray(),ve=Math.max(0,Math.min(ue.length-1,ee.activeItemIndex||0));ue[ve]&&!ue[ve].disabled?ee.setActiveItem(ve):ee.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,T.O)(this._directDescendantItems),(0,M.w)(G=>(0,d.T)(...G.map(ee=>ee._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const G=xe.keyCode,ee=this._keyManager;switch(G){case u.hY:(0,u.Vb)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case u.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case u.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(G===u.LH||G===u.JH)&&ee.setFocusOrigin("keyboard"),void ee.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{let G=null;if(this._directDescendantItems.length&&(G=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!G||!G.contains(document.activeElement)){const ee=this._keyManager;ee.setFocusOrigin(xe).setFirstItemActive(),!ee.activeItem&&G&&G.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){const G=Math.min(this._baseElevation+xe,24),ee=`${this._elevationPrefix}${G}`,ue=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!ue||ue===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ee]=!0,this._previousElevation=ee)}setPositionClasses(xe=this.xPosition,G=this.yPosition){var ee;const ue=this._classList;ue["mat-menu-before"]="before"===xe,ue["mat-menu-after"]="after"===xe,ue["mat-menu-above"]="above"===G,ue["mat-menu-below"]="below"===G,null===(ee=this._changeDetectorRef)||void 0===ee||ee.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.O)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(G=>G._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36($),b.Y36(b.sBO))},ce.\u0275dir=b.lG2({type:ce,contentQueries:function(xe,G,ee){if(1&xe&&(b.Suo(ee,c,5),b.Suo(ee,H,5),b.Suo(ee,H,4)),2&xe){let ue;b.iGM(ue=b.CRH())&&(G.lazyContent=ue.first),b.iGM(ue=b.CRH())&&(G._allItems=ue),b.iGM(ue=b.CRH())&&(G.items=ue)}},viewQuery:function(xe,G){if(1&xe&&b.Gf(b.Rgc,5),2&xe){let ee;b.iGM(ee=b.CRH())&&(G.templateRef=ee.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ce})(),Ee=(()=>{class ce extends ke{constructor(xe,G,ee,ue){super(xe,G,ee,ue),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36($),b.Y36(b.sBO))},ce.\u0275cmp=b.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(xe,G){2&xe&&b.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[b._Bn([{provide:V,useExisting:ce}]),b.qOj],ngContentSelectors:me,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(xe,G){1&xe&&(b.F$t(),b.YNc(0,x,3,6,"ng-template"))},directives:[W.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[t.transformMenu,t.fadeInItems]},changeDetection:0}),ce})();const te=new b.OlP("mat-menu-scroll-strategy"),be={provide:te,deps:[Q.aV],useFactory:function ze(ce){return()=>ce.scrollStrategies.reposition()}},Y=(0,le.i$)({passive:!0});let ot=(()=>{class ce{constructor(xe,G,ee,ue,ve,Le,lt,ht,Tt){this._overlay=xe,this._element=G,this._viewContainerRef=ee,this._menuItemInstance=Le,this._dir=lt,this._focusMonitor=ht,this._ngZone=Tt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.w0.EMPTY,this._hoverSubscription=y.w0.EMPTY,this._menuCloseSubscription=y.w0.EMPTY,this._handleTouchStart=hi=>{(0,e.yG)(hi)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new b.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new b.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=ue,this._parentMaterialMenu=ve instanceof ke?ve:void 0,G.nativeElement.addEventListener("touchstart",this._handleTouchStart,Y),Le&&(Le._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(G=>{this._destroyMenu(G),("click"===G||"tab"===G)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(G)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Y),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const xe=this._createOverlay(),G=xe.getConfig(),ee=G.positionStrategy;this._setPosition(ee),G.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,xe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ke&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,E.R)(this.menu.close)).subscribe(()=>{ee.withLockedPosition(!1).reapplyLastPosition(),ee.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(xe,G){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,G):this._element.nativeElement.focus(G)}updatePosition(){var xe;null===(xe=this._overlayRef)||void 0===xe||xe.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const G=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,G instanceof ke?(G._resetAnimation(),G.lazyContent?G._animationDone.pipe((0,k.h)(ee=>"void"===ee.toState),(0,A.q)(1),(0,E.R)(G.lazyContent._attached)).subscribe({next:()=>G.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),G.lazyContent&&G.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let xe=0,G=this.menu.parentMenu;for(;G;)xe++,G=G.parentMenu;this.menu.setElevation(xe)}}_setIsMenuOpen(xe){this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const xe=this._getOverlayConfig();this._subscribeToPositions(xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Q.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xe){this.menu.setPositionClasses&&xe.positionChanges.subscribe(G=>{const ee="start"===G.connectionPair.overlayX?"after":"before",ue="top"===G.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(ee,ue)):this.menu.setPositionClasses(ee,ue)})}_setPosition(xe){let[G,ee]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ue,ve]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Le,lt]=[ue,ve],[ht,Tt]=[G,ee],hi=0;this.triggersSubmenu()?(Tt=G="before"===this.menu.xPosition?"start":"end",ee=ht="end"===G?"start":"end",hi="bottom"===ue?8:-8):this.menu.overlapTrigger||(Le="top"===ue?"bottom":"top",lt="top"===ve?"bottom":"top"),xe.withPositions([{originX:G,originY:Le,overlayX:ht,overlayY:ue,offsetY:hi},{originX:ee,originY:Le,overlayX:Tt,overlayY:ue,offsetY:hi},{originX:G,originY:lt,overlayX:ht,overlayY:ve,offsetY:-hi},{originX:ee,originY:lt,overlayX:Tt,overlayY:ve,offsetY:-hi}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),G=this._overlayRef.detachments(),ee=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,P.of)(),ue=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(ve=>ve!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,P.of)();return(0,d.T)(xe,ee,ue,G)}_handleMousedown(xe){(0,e.X6)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const G=xe.keyCode;(G===u.K5||G===u.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(G===u.SV&&"ltr"===this.dir||G===u.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,w.g)(0,D.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ke&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,D.E),(0,E.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new U.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(xe){return new(xe||ce)(b.Y36(Q.aV),b.Y36(b.SBq),b.Y36(b.s_b),b.Y36(te),b.Y36(V,8),b.Y36(H,10),b.Y36(q.Is,8),b.Y36(e.tE),b.Y36(b.R0b))},ce.\u0275dir=b.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(xe,G){1&xe&&b.NdJ("click",function(ue){return G._handleClick(ue)})("mousedown",function(ue){return G._handleMousedown(ue)})("keydown",function(ue){return G._handleKeydown(ue)}),2&xe&&b.uIk("aria-expanded",G.menuOpen||null)("aria-controls",G.menuOpen?G.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Ie=(()=>{class ce extends ot{}return ce.\u0275fac=function(){let Te;return function(G){return(Te||(Te=b.n5z(ce)))(G||ce)}}(),ce.\u0275dir=b.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[b.qOj]}),ce})(),Ae=(()=>{class ce{}return ce.\u0275fac=function(xe){return new(xe||ce)},ce.\u0275mod=b.oAB({type:ce}),ce.\u0275inj=b.cJS({providers:[be],imports:[[W.ez,ne.BQ,ne.si,Q.U8],ie.ZD,ne.BQ]}),ce})()},6087:(He,j,p)=>{"use strict";p.d(j,{NW:()=>se,TU:()=>J,ye:()=>z});var e=p(9808),i=p(5e3),u=p(508),b=p(7423),a=p(4107),y=p(7238),d=p(3191),P=p(7579),D=p(7322);function T(me,x){if(1&me&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&me){const t=x.$implicit;i.Q6J("value",t),i.xp6(1),i.hij(" ",t," ")}}function M(me,x){if(1&me){const t=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(h){return i.CHM(t),i.oxw(2)._changePageSize(h.value)}),i.YNc(2,T,2,2,"mat-option",18),i.qZA()()}if(2&me){const t=i.oxw(2);i.Q6J("appearance",t._formFieldAppearance)("color",t.color),i.xp6(1),i.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",t._displayedPageSizeOptions)}}function A(me,x){if(1&me&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&me){const t=i.oxw(2);i.xp6(1),i.Oqu(t.pageSize)}}function E(me,x){if(1&me&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,M,3,6,"mat-form-field",14),i.YNc(4,A,2,1,"div",15),i.qZA()),2&me){const t=i.oxw();i.xp6(2),i.hij(" ",t._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function k(me,x){if(1&me){const t=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(t),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&me){const t=i.oxw();i.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.firstPageLabel)}}function w(me,x){if(1&me){const t=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(t),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&me){const t=i.oxw();i.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.lastPageLabel)}}let z=(()=>{class me{constructor(){this.changes=new P.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,r,h)=>{if(0==h||0==r)return`0 of ${h}`;const c=t*r;return`${c+1} \u2013 ${c<(h=Math.max(h,0))?Math.min(c+r,h):c+r} of ${h}`}}}return me.\u0275fac=function(t){return new(t||me)},me.\u0275prov=i.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();const W={provide:z,deps:[[new i.FiY,new i.tp0,z]],useFactory:function U(me){return me||new z}},le=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),q=(0,u.Id)((0,u.dB)(class{}));let ie=(()=>{class me extends q{constructor(t,r,h){if(super(),this._intl=t,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),h){const{pageSize:c,pageSizeOptions:C,hidePageSize:S,showFirstLastButtons:I}=h;null!=c&&(this._pageSize=c),null!=C&&(this._pageSizeOptions=C),null!=S&&(this._hidePageSize=S),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,d.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,d.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,d.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,d.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,d.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return me.\u0275fac=function(t){i.$Z()},me.\u0275dir=i.lG2({type:me,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),me})(),se=(()=>{class me extends ie{constructor(t,r,h){super(t,r,h),h&&null!=h.formFieldAppearance&&(this._formFieldAppearance=h.formFieldAppearance)}}return me.\u0275fac=function(t){return new(t||me)(i.Y36(z),i.Y36(i.sBO),i.Y36(le,8))},me.\u0275cmp=i.Xpm({type:me,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,r){1&t&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,E,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,k,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return r.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return r.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,w,3,5,"button",11),i.qZA()()()),2&t&&(i.xp6(2),i.Q6J("ngIf",!r.hidePageSize),i.xp6(3),i.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),i.xp6(1),i.Q6J("ngIf",r.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),i.uIk("aria-label",r._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),i.uIk("aria-label",r._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",r.showFirstLastButtons))},directives:[D.KE,a.gD,u.ey,b.lW,e.O5,e.sg,y.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),me})(),J=(()=>{class me{}return me.\u0275fac=function(t){return new(t||me)},me.\u0275mod=i.oAB({type:me}),me.\u0275inj=i.cJS({providers:[W],imports:[[e.ez,b.ot,a.LD,y.AV,u.BQ]]}),me})()},5899:(He,j,p)=>{"use strict";p.d(j,{Cv:()=>U,pW:()=>w});var e=p(5e3),i=p(9808),u=p(508),b=p(3191),a=p(6360),y=p(727),d=p(4968),P=p(9300);const D=["primaryValueBar"],T=(0,u.pj)(class{constructor(W){this._elementRef=W}},"primary"),M=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function A(){const W=(0,e.f3M)(i.K0),ne=W?W.location:null;return{getPathname:()=>ne?ne.pathname+ne.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,w=(()=>{class W extends T{constructor(Q,le,q,ie,se,J){super(Q),this._ngZone=le,this._animationMode=q,this._changeDetectorRef=J,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=y.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const me=ie?ie.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${me}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===q,se&&(se.color&&(this.color=this.defaultColor=se.color),this.mode=se.mode||this.mode)}get value(){return this._value}set value(Q){var le;this._value=z((0,b.su)(Q)||0),null===(le=this._changeDetectorRef)||void 0===le||le.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Q){var le;this._bufferValue=z(Q||0),null===(le=this._changeDetectorRef)||void 0===le||le.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Q=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,d.R)(Q,"transitionend").pipe((0,P.h)(le=>le.target===Q)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(Q){return new(Q||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(a.Qb,8),e.Y36(M,8),e.Y36(E,8),e.Y36(e.sBO))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(Q,le){if(1&Q&&e.Gf(D,5),2&Q){let q;e.iGM(q=e.CRH())&&(le._primaryValueBar=q.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Q,le){2&Q&&(e.uIk("aria-valuenow","indeterminate"===le.mode||"query"===le.mode?null:le.value)("mode",le.mode),e.ekj("_mat-animation-noopable",le._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Q,le){1&Q&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),e._UZ(4,"circle",3),e.qZA()(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),e.qZA()),2&Q&&(e.xp6(3),e.Q6J("id",le.progressbarId),e.xp6(2),e.uIk("fill",le._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",le._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",le._primaryTransform()))},directives:[i.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),W})();function z(W,ne=0,Q=100){return Math.max(ne,Math.min(Q,W))}let U=(()=>{class W{}return W.\u0275fac=function(Q){return new(Q||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[i.ez,u.BQ],u.BQ]}),W})()},773:(He,j,p)=>{"use strict";p.d(j,{Cq:()=>W,Ou:()=>U});var e=p(3191),i=p(925),u=p(9808),b=p(5e3),a=p(508),y=p(6360),d=p(727),P=p(5303);function D(Q,le){if(1&Q&&(b.O4$(),b._UZ(0,"circle",4)),2&Q){const q=b.oxw(),ie=b.MAs(1);b.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+q._spinnerAnimationLabel)("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(ie)),b.uIk("r",q._getCircleRadius())}}function T(Q,le){if(1&Q&&(b.O4$(),b._UZ(0,"circle",4)),2&Q){const q=b.oxw(),ie=b.MAs(1);b.Udp("stroke-dashoffset",q._getStrokeDashOffset(),"px")("stroke-dasharray",q._getStrokeCircumference(),"px")("stroke-width",q._getCircleStrokeWidth(),"%")("transform-origin",q._getCircleTransformOrigin(ie)),b.uIk("r",q._getCircleRadius())}}const E=(0,a.pj)(class{constructor(Q){this._elementRef=Q}},"primary"),k=new b.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:100}}});class U extends E{constructor(le,q,ie,se,J,me,x,t){super(le),this._document=ie,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=U._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(ie.head)||r.set(ie.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!J&&!J._forceAnimations,"mat-spinner"===le.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),J&&(J.diameter&&(this.diameter=J.diameter),J.strokeWidth&&(this.strokeWidth=J.strokeWidth)),q.isBrowser&&q.SAFARI&&x&&me&&t&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&t.run(()=>me.markForCheck())}))}get diameter(){return this._diameter}set diameter(le){this._diameter=(0,e.su)(le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(le){this._strokeWidth=(0,e.su)(le)}get value(){return"determinate"===this.mode?this._value:0}set value(le){this._value=Math.max(0,Math.min(100,(0,e.su)(le)))}ngOnInit(){const le=this._elementRef.nativeElement;this._styleRoot=(0,i.kV)(le)||this._document.head,this._attachStyleNode(),le.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${le} ${le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(le){var q;const ie=50*(null!==(q=le.currentScale)&&void 0!==q?q:1);return`${ie}% ${ie}%`}_attachStyleNode(){const le=this._styleRoot,q=this._diameter,ie=U._diameters;let se=ie.get(le);if(!se||!se.has(q)){const J=this._document.createElement("style");J.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),J.textContent=this._getAnimationText(),le.appendChild(J),se||(se=new Set,ie.set(le,se)),se.add(q)}}_getAnimationText(){const le=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*le).replace(/END_VALUE/g,""+.2*le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}U._diameters=new WeakMap,U.\u0275fac=function(le){return new(le||U)(b.Y36(b.SBq),b.Y36(i.t4),b.Y36(u.K0,8),b.Y36(y.Qb,8),b.Y36(k),b.Y36(b.sBO),b.Y36(P.rL),b.Y36(b.R0b))},U.\u0275cmp=b.Xpm({type:U,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(le,q){2&le&&(b.uIk("aria-valuemin","determinate"===q.mode?0:null)("aria-valuemax","determinate"===q.mode?100:null)("aria-valuenow","determinate"===q.mode?q.value:null)("mode",q.mode),b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.ekj("_mat-animation-noopable",q._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[b.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(le,q){1&le&&(b.O4$(),b.TgZ(0,"svg",0,1),b.YNc(2,D,1,11,"circle",2),b.YNc(3,T,1,9,"circle",3),b.qZA()),2&le&&(b.Udp("width",q.diameter,"px")("height",q.diameter,"px"),b.Q6J("ngSwitch","indeterminate"===q.mode),b.uIk("viewBox",q._getViewBox()),b.xp6(2),b.Q6J("ngSwitchCase",!0),b.xp6(1),b.Q6J("ngSwitchCase",!1))},directives:[u.RF,u.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let W=(()=>{class Q{}return Q.\u0275fac=function(q){return new(q||Q)},Q.\u0275mod=b.oAB({type:Q}),Q.\u0275inj=b.cJS({imports:[[a.BQ,u.ez],a.BQ]}),Q})()},9814:(He,j,p)=>{"use strict";p.d(j,{Fk:()=>ie,U0:()=>q,VQ:()=>W});var e=p(5e3),i=p(508),u=p(3191),b=p(3075),a=p(6360),y=p(5664),d=p(449);const P=["input"],D=function(se){return{enterDuration:se}},T=["*"],M=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function A(){return{color:"accent"}}});let E=0;const k={provide:b.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(J,me){this.source=J,this.value=me}}const z=new e.OlP("MatRadioGroup");let U=(()=>{class se{constructor(me){this._changeDetector=me,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(me){this._name=me,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(me){this._labelPosition="before"===me?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(me){this._selected=me,this.value=me?me.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(me){this._disabled=(0,u.Ig)(me),this._markRadiosForCheck()}get required(){return this._required}set required(me){this._required=(0,u.Ig)(me),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(me=>{me.name=this.name,me._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(x=>{x.checked=this.value===x.value,x.checked&&(this._selected=x)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(me=>me._markForCheck())}writeValue(me){this.value=me,this._changeDetector.markForCheck()}registerOnChange(me){this._controlValueAccessorChangeFn=me}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetector.markForCheck()}}return se.\u0275fac=function(me){return new(me||se)(e.Y36(e.sBO))},se.\u0275dir=e.lG2({type:se,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),se})(),W=(()=>{class se extends U{}return se.\u0275fac=function(){let J;return function(x){return(J||(J=e.n5z(se)))(x||se)}}(),se.\u0275dir=e.lG2({type:se,selectors:[["mat-radio-group"]],contentQueries:function(me,x,t){if(1&me&&e.Suo(t,q,5),2&me){let r;e.iGM(r=e.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([k,{provide:z,useExisting:se}]),e.qOj]}),se})();class ne{constructor(J){this._elementRef=J}}const Q=(0,i.Kr)((0,i.sb)(ne));let le=(()=>{class se extends Q{constructor(me,x,t,r,h,c,C,S){super(x),this._changeDetector=t,this._focusMonitor=r,this._radioDispatcher=h,this._providerOverride=C,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=me,this._noopAnimations="NoopAnimations"===c,S&&(this.tabIndex=(0,u.su)(S,0)),this._removeUniqueSelectionListener=h.listen((I,_)=>{I!==this.id&&_===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(me){const x=(0,u.Ig)(me);this._checked!==x&&(this._checked=x,x&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!x&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),x&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(me){this._value!==me&&(this._value=me,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===me),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(me){this._labelPosition=me}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(me){this._setDisabled((0,u.Ig)(me))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(me){this._required=(0,u.Ig)(me)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(me){this._color=me}get inputId(){return`${this.id||this._uniqueId}-input`}focus(me,x){x?this._focusMonitor.focusVia(this._inputElement,x,me):this._inputElement.nativeElement.focus(me)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(me=>{!me&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(me){me.stopPropagation()}_onInputInteraction(me){if(me.stopPropagation(),!this.checked&&!this.disabled){const x=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),x&&this.radioGroup._emitChangeEvent())}}_setDisabled(me){this._disabled!==me&&(this._disabled=me,this._changeDetector.markForCheck())}_updateTabIndex(){var me;const x=this.radioGroup;let t;if(t=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){const r=null===(me=this._inputElement)||void 0===me?void 0:me.nativeElement;r&&(r.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return se.\u0275fac=function(me){e.$Z()},se.\u0275dir=e.lG2({type:se,viewQuery:function(me,x){if(1&me&&e.Gf(P,5),2&me){let t;e.iGM(t=e.CRH())&&(x._inputElement=t.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),se})(),q=(()=>{class se extends le{constructor(me,x,t,r,h,c,C,S){super(me,x,t,r,h,c,C,S)}}return se.\u0275fac=function(me){return new(me||se)(e.Y36(z,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(y.tE),e.Y36(d.A8),e.Y36(a.Qb,8),e.Y36(M,8),e.$8M("tabindex"))},se.\u0275cmp=e.Xpm({type:se,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(me,x){1&me&&e.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&me&&(e.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",x.checked)("mat-radio-disabled",x.disabled)("_mat-animation-noopable",x._noopAnimations)("mat-primary","primary"===x.color)("mat-accent","accent"===x.color)("mat-warn","warn"===x.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:T,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(me,x){if(1&me&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&me){const t=e.MAs(1);e.uIk("for",x.inputId),e.xp6(5),e.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),e.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",t)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,D,x._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[i.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),se})(),ie=(()=>{class se{}return se.\u0275fac=function(me){return new(me||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[[i.si,i.BQ],i.BQ]}),se})()},4107:(He,j,p)=>{"use strict";p.d(j,{$L:()=>ot,LD:()=>ce,gD:()=>Ae});var e=p(9776),i=p(9808),u=p(5e3),b=p(508),a=p(7322),y=p(5303),d=p(5664),P=p(3191),D=p(449),T=p(1159),M=p(3075),A=p(7579),E=p(9770),k=p(6451),w=p(8675),z=p(3900),U=p(5698),W=p(9300),ne=p(4004),Q=p(1884),le=p(2722),q=p(1777),ie=p(226);const se=["trigger"],J=["panel"];function me(Te,xe){if(1&Te&&(u.TgZ(0,"span",8),u._uU(1),u.qZA()),2&Te){const G=u.oxw();u.xp6(1),u.Oqu(G.placeholder)}}function x(Te,xe){if(1&Te&&(u.TgZ(0,"span",12),u._uU(1),u.qZA()),2&Te){const G=u.oxw(2);u.xp6(1),u.Oqu(G.triggerValue)}}function t(Te,xe){1&Te&&u.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,xe){if(1&Te&&(u.TgZ(0,"span",9),u.YNc(1,x,2,1,"span",10),u.YNc(2,t,1,0,"ng-content",11),u.qZA()),2&Te){const G=u.oxw();u.Q6J("ngSwitch",!!G.customTrigger),u.xp6(2),u.Q6J("ngSwitchCase",!0)}}function h(Te,xe){if(1&Te){const G=u.EpF();u.TgZ(0,"div",13)(1,"div",14,15),u.NdJ("@transformPanel.done",function(ue){return u.CHM(G),u.oxw()._panelDoneAnimatingStream.next(ue.toState)})("keydown",function(ue){return u.CHM(G),u.oxw()._handleKeydown(ue)}),u.Hsn(3,1),u.qZA()()}if(2&Te){const G=u.oxw();u.Q6J("@transformPanelWrap",void 0),u.xp6(1),u.Gre("mat-select-panel ",G._getPanelTheme(),""),u.Udp("transform-origin",G._transformOrigin)("font-size",G._triggerFontSize,"px"),u.Q6J("ngClass",G.panelClass)("@transformPanel",G.multiple?"showing-multiple":"showing"),u.uIk("id",G.id+"-panel")("aria-multiselectable",G.multiple)("aria-label",G.ariaLabel||null)("aria-labelledby",G._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],C=["mat-select-trigger","*"],S={transformPanelWrap:(0,q.X$)("transformPanelWrap",[(0,q.eR)("* => void",(0,q.IO)("@transformPanel",[(0,q.pV)()],{optional:!0}))]),transformPanel:(0,q.X$)("transformPanel",[(0,q.SB)("void",(0,q.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,q.SB)("showing",(0,q.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,q.SB)("showing-multiple",(0,q.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,q.eR)("void => *",(0,q.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,q.eR)("* => void",(0,q.jt)("100ms 25ms linear",(0,q.oB)({opacity:0})))])};let g=0;const V=256,ke=new u.OlP("mat-select-scroll-strategy"),te=new u.OlP("MAT_SELECT_CONFIG"),ze={provide:ke,deps:[e.aV],useFactory:function Ee(Te){return()=>Te.scrollStrategies.reposition()}};class be{constructor(xe,G){this.source=xe,this.value=G}}const Z=(0,b.Kr)((0,b.sb)((0,b.Id)((0,b.FD)(class{constructor(Te,xe,G,ee,ue){this._elementRef=Te,this._defaultErrorStateMatcher=xe,this._parentForm=G,this._parentFormGroup=ee,this.ngControl=ue}})))),Y=new u.OlP("MatSelectTrigger");let ot=(()=>{class Te{}return Te.\u0275fac=function(G){return new(G||Te)},Te.\u0275dir=u.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[u._Bn([{provide:Y,useExisting:Te}])]}),Te})(),Ie=(()=>{class Te extends Z{constructor(G,ee,ue,ve,Le,lt,ht,Tt,hi,jt,Gt,di,vt,kt){var gt,Qe,_t;super(Le,ve,ht,Tt,jt),this._viewportRuler=G,this._changeDetectorRef=ee,this._ngZone=ue,this._dir=lt,this._parentFormField=hi,this._liveAnnouncer=vt,this._defaultOptions=kt,this._panelOpen=!1,this._compareWith=(ei,Zt)=>ei===Zt,this._uid="mat-select-"+g++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+g++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(gt=this._defaultOptions)||void 0===gt?void 0:gt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(_t=null===(Qe=this._defaultOptions)||void 0===Qe?void 0:Qe.disableOptionCentering)&&void 0!==_t&&_t,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const ei=this.options;return ei?ei.changes.pipe((0,w.O)(ei),(0,z.w)(()=>(0,k.T)(...ei.map(Zt=>Zt.onSelectionChange)))):this._ngZone.onStable.pipe((0,U.q)(1),(0,z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new u.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(ei=>ei),(0,ne.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(ei=>!ei),(0,ne.U)(()=>{})),this.selectionChange=new u.vpe,this.valueChange=new u.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==kt?void 0:kt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=kt.typeaheadDebounceInterval),this._scrollStrategyFactory=di,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Gt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(G){this._placeholder=G,this.stateChanges.next()}get required(){var G,ee,ue,ve;return null!==(ve=null!==(G=this._required)&&void 0!==G?G:null===(ue=null===(ee=this.ngControl)||void 0===ee?void 0:ee.control)||void 0===ue?void 0:ue.hasValidator(M.kI.required))&&void 0!==ve&&ve}set required(G){this._required=(0,P.Ig)(G),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(G){this._multiple=(0,P.Ig)(G)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(G){this._disableOptionCentering=(0,P.Ig)(G)}get compareWith(){return this._compareWith}set compareWith(G){this._compareWith=G,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(G){this._assignValue(G)&&this._onChange(G)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(G){this._typeaheadDebounceInterval=(0,P.su)(G)}get id(){return this._id}set id(G){this._id=G||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Q.x)(),(0,le.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,le.R)(this._destroy)).subscribe(G=>{G.added.forEach(ee=>ee.select()),G.removed.forEach(ee=>ee.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,le.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const G=this._getTriggerAriaLabelledby(),ee=this.ngControl;if(G!==this._triggerAriaLabelledBy){const ue=this._elementRef.nativeElement;this._triggerAriaLabelledBy=G,G?ue.setAttribute("aria-labelledby",G):ue.removeAttribute("aria-labelledby")}ee&&(this._previousControl!==ee.control&&(void 0!==this._previousControl&&null!==ee.disabled&&ee.disabled!==this.disabled&&(this.disabled=ee.disabled),this._previousControl=ee.control),this.updateErrorState())}ngOnChanges(G){G.disabled&&this.stateChanges.next(),G.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(G){this._assignValue(G)}registerOnChange(G){this._onChange=G}registerOnTouched(G){this._onTouched=G}setDisabledState(G){this.disabled=G,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var G,ee;return this.multiple?(null===(G=this._selectionModel)||void 0===G?void 0:G.selected)||[]:null===(ee=this._selectionModel)||void 0===ee?void 0:ee.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const G=this._selectionModel.selected.map(ee=>ee.viewValue);return this._isRtl()&&G.reverse(),G.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(G){this.disabled||(this.panelOpen?this._handleOpenKeydown(G):this._handleClosedKeydown(G))}_handleClosedKeydown(G){const ee=G.keyCode,ue=ee===T.JH||ee===T.LH||ee===T.oh||ee===T.SV,ve=ee===T.K5||ee===T.L_,Le=this._keyManager;if(!Le.isTyping()&&ve&&!(0,T.Vb)(G)||(this.multiple||G.altKey)&&ue)G.preventDefault(),this.open();else if(!this.multiple){const lt=this.selected;Le.onKeydown(G);const ht=this.selected;ht&<!==ht&&this._liveAnnouncer.announce(ht.viewValue,1e4)}}_handleOpenKeydown(G){const ee=this._keyManager,ue=G.keyCode,ve=ue===T.JH||ue===T.LH,Le=ee.isTyping();if(ve&&G.altKey)G.preventDefault(),this.close();else if(Le||ue!==T.K5&&ue!==T.L_||!ee.activeItem||(0,T.Vb)(G))if(!Le&&this._multiple&&ue===T.A&&G.ctrlKey){G.preventDefault();const lt=this.options.some(ht=>!ht.disabled&&!ht.selected);this.options.forEach(ht=>{ht.disabled||(lt?ht.select():ht.deselect())})}else{const lt=ee.activeItemIndex;ee.onKeydown(G),this._multiple&&ve&&G.shiftKey&&ee.activeItem&&ee.activeItemIndex!==lt&&ee.activeItem._selectViaInteraction()}else G.preventDefault(),ee.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,U.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(G){if(this._selectionModel.selected.forEach(ee=>ee.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&G)Array.isArray(G),G.forEach(ee=>this._selectOptionByValue(ee)),this._sortValues();else{const ee=this._selectOptionByValue(G);ee?this._keyManager.updateActiveItem(ee):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(G){const ee=this.options.find(ue=>{if(this._selectionModel.isSelected(ue))return!1;try{return null!=ue.value&&this._compareWith(ue.value,G)}catch(ve){return!1}});return ee&&this._selectionModel.select(ee),ee}_assignValue(G){return!!(G!==this._value||this._multiple&&Array.isArray(G))&&(this.options&&this._setSelectionByValue(G),this._value=G,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,le.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,le.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const G=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,le.R)(G)).subscribe(ee=>{this._onSelect(ee.source,ee.isUserInput),ee.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(ee=>ee._stateChanges)).pipe((0,le.R)(G)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(G,ee){const ue=this._selectionModel.isSelected(G);null!=G.value||this._multiple?(ue!==G.selected&&(G.selected?this._selectionModel.select(G):this._selectionModel.deselect(G)),ee&&this._keyManager.setActiveItem(G),this.multiple&&(this._sortValues(),ee&&this.focus())):(G.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(G.value)),ue!==this._selectionModel.isSelected(G)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const G=this.options.toArray();this._selectionModel.sort((ee,ue)=>this.sortComparator?this.sortComparator(ee,ue,G):G.indexOf(ee)-G.indexOf(ue)),this.stateChanges.next()}}_propagateChanges(G){let ee=null;ee=this.multiple?this.selected.map(ue=>ue.value):this.selected?this.selected.value:G,this._value=ee,this.valueChange.emit(ee),this._onChange(ee),this.selectionChange.emit(this._getChangeEvent(ee)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var G;return!this._panelOpen&&!this.disabled&&(null===(G=this.options)||void 0===G?void 0:G.length)>0}focus(G){this._elementRef.nativeElement.focus(G)}_getPanelAriaLabelledby(){var G;if(this.ariaLabel)return null;const ee=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();return this.ariaLabelledby?(ee?ee+" ":"")+this.ariaLabelledby:ee}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var G;if(this.ariaLabel)return null;const ee=null===(G=this._parentFormField)||void 0===G?void 0:G.getLabelId();let ue=(ee?ee+" ":"")+this._valueId;return this.ariaLabelledby&&(ue+=" "+this.ariaLabelledby),ue}_panelDoneAnimating(G){this.openedChange.emit(G)}setDescribedByIds(G){this._ariaDescribedby=G.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(G){return new(G||Te)(u.Y36(y.rL),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(b.rD),u.Y36(u.SBq),u.Y36(ie.Is,8),u.Y36(M.F,8),u.Y36(M.sg,8),u.Y36(a.G_,8),u.Y36(M.a5,10),u.$8M("tabindex"),u.Y36(ke),u.Y36(d.Kd),u.Y36(te,8))},Te.\u0275dir=u.lG2({type:Te,viewQuery:function(G,ee){if(1&G&&(u.Gf(se,5),u.Gf(J,5),u.Gf(e.pI,5)),2&G){let ue;u.iGM(ue=u.CRH())&&(ee.trigger=ue.first),u.iGM(ue=u.CRH())&&(ee.panel=ue.first),u.iGM(ue=u.CRH())&&(ee._overlayDir=ue.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[u.qOj,u.TTD]}),Te})(),Ae=(()=>{class Te extends Ie{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(G,ee,ue){const ve=this._getItemHeight();return Math.min(Math.max(0,ve*G-ee+ve/2),ue)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,le.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,U.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(G){const ee=(0,b.CB)(G,this.options,this.optionGroups),ue=this._getItemHeight();this.panel.nativeElement.scrollTop=0===G&&1===ee?0:(0,b.jH)((G+ee)*ue,ue,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(G){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(G)}_getChangeEvent(G){return new be(this,G)}_calculateOverlayOffsetX(){const G=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ee=this._viewportRuler.getViewportSize(),ue=this._isRtl(),ve=this.multiple?56:32;let Le;if(this.multiple)Le=40;else if(this.disableOptionCentering)Le=16;else{let Tt=this._selectionModel.selected[0]||this.options.first;Le=Tt&&Tt.group?32:16}ue||(Le*=-1);const lt=0-(G.left+Le-(ue?ve:0)),ht=G.right+Le-ee.width+(ue?0:ve);lt>0?Le+=lt+8:ht>0&&(Le-=ht+8),this._overlayDir.offsetX=Math.round(Le),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(G,ee,ue){const ve=this._getItemHeight(),Le=(ve-this._triggerRect.height)/2,lt=Math.floor(V/ve);let ht;return this.disableOptionCentering?0:(ht=0===this._scrollTop?G*ve:this._scrollTop===ue?(G-(this._getItemCount()-lt))*ve+(ve-(this._getItemCount()*ve-V)%ve):ee-ve/2,Math.round(-1*ht-Le))}_checkOverlayWithinViewport(G){const ee=this._getItemHeight(),ue=this._viewportRuler.getViewportSize(),ve=this._triggerRect.top-8,Le=ue.height-this._triggerRect.bottom-8,lt=Math.abs(this._offsetY),Tt=Math.min(this._getItemCount()*ee,V)-lt-this._triggerRect.height;Tt>Le?this._adjustPanelUp(Tt,Le):lt>ve?this._adjustPanelDown(lt,ve,G):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(G,ee){const ue=Math.round(G-ee);this._scrollTop-=ue,this._offsetY-=ue,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(G,ee,ue){const ve=Math.round(G-ee);if(this._scrollTop+=ve,this._offsetY+=ve,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ue)return this._scrollTop=ue,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const G=this._getItemHeight(),ee=this._getItemCount(),ue=Math.min(ee*G,V),Le=ee*G-ue;let lt;lt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),lt+=(0,b.CB)(lt,this.options,this.optionGroups);const ht=ue/2;this._scrollTop=this._calculateOverlayScroll(lt,ht,Le),this._offsetY=this._calculateOverlayOffsetY(lt,ht,Le),this._checkOverlayWithinViewport(Le)}_getOriginBasedOnOption(){const G=this._getItemHeight(),ee=(G-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-ee+G/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let xe;return function(ee){return(xe||(xe=u.n5z(Te)))(ee||Te)}}(),Te.\u0275cmp=u.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(G,ee,ue){if(1&G&&(u.Suo(ue,Y,5),u.Suo(ue,b.ey,5),u.Suo(ue,b.K7,5)),2&G){let ve;u.iGM(ve=u.CRH())&&(ee.customTrigger=ve.first),u.iGM(ve=u.CRH())&&(ee.options=ve),u.iGM(ve=u.CRH())&&(ee.optionGroups=ve)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(G,ee){1&G&&u.NdJ("keydown",function(ve){return ee._handleKeydown(ve)})("focus",function(){return ee._onFocus()})("blur",function(){return ee._onBlur()}),2&G&&(u.uIk("id",ee.id)("tabindex",ee.tabIndex)("aria-controls",ee.panelOpen?ee.id+"-panel":null)("aria-expanded",ee.panelOpen)("aria-label",ee.ariaLabel||null)("aria-required",ee.required.toString())("aria-disabled",ee.disabled.toString())("aria-invalid",ee.errorState)("aria-describedby",ee._ariaDescribedby||null)("aria-activedescendant",ee._getAriaActiveDescendant()),u.ekj("mat-select-disabled",ee.disabled)("mat-select-invalid",ee.errorState)("mat-select-required",ee.required)("mat-select-empty",ee.empty)("mat-select-multiple",ee.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[u._Bn([{provide:a.Eo,useExisting:Te},{provide:b.HF,useExisting:Te}]),u.qOj],ngContentSelectors:C,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(G,ee){if(1&G&&(u.F$t(c),u.TgZ(0,"div",0,1),u.NdJ("click",function(){return ee.toggle()}),u.TgZ(3,"div",2),u.YNc(4,me,2,1,"span",3),u.YNc(5,r,3,2,"span",4),u.qZA(),u.TgZ(6,"div",5),u._UZ(7,"div",6),u.qZA()(),u.YNc(8,h,4,14,"ng-template",7),u.NdJ("backdropClick",function(){return ee.close()})("attach",function(){return ee._onAttached()})("detach",function(){return ee.close()})),2&G){const ue=u.MAs(1);u.uIk("aria-owns",ee.panelOpen?ee.id+"-panel":null),u.xp6(3),u.Q6J("ngSwitch",ee.empty),u.uIk("id",ee._valueId),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1),u.xp6(3),u.Q6J("cdkConnectedOverlayPanelClass",ee._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ee._scrollStrategy)("cdkConnectedOverlayOrigin",ue)("cdkConnectedOverlayOpen",ee.panelOpen)("cdkConnectedOverlayPositions",ee._positions)("cdkConnectedOverlayMinWidth",null==ee._triggerRect?null:ee._triggerRect.width)("cdkConnectedOverlayOffsetY",ee._offsetY)}},directives:[e.xu,i.RF,i.n9,i.ED,e.pI,i.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[S.transformPanelWrap,S.transformPanel]},changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(G){return new(G||Te)},Te.\u0275mod=u.oAB({type:Te}),Te.\u0275inj=u.cJS({providers:[ze],imports:[[i.ez,e.U8,b.Ng,b.BQ],y.ZD,a.lN,b.Ng,b.BQ]}),Te})()},2638:(He,j,p)=>{"use strict";p.d(j,{JX:()=>ye,Rh:()=>fe,SJ:()=>Ee,TM:()=>ke});var e=p(5303),i=p(9808),u=p(5e3),b=p(508),a=p(3191),y=p(1159),d=p(7579),P=p(4968),D=p(6451),T=p(9300),M=p(4004),A=p(9718),E=p(2722),k=p(1884),w=p(5698),z=p(8675),U=p(8372),W=p(1777),ne=p(6360),Q=p(5664),le=p(925),q=p(226);const ie=["*"],se=["content"];function J(te,ze){if(1&te){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&te){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function me(te,ze){1&te&&(u.TgZ(0,"mat-drawer-content"),u.Hsn(1,2),u.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function r(te,ze){if(1&te){const be=u.EpF();u.TgZ(0,"div",2),u.NdJ("click",function(){return u.CHM(be),u.oxw()._onBackdropClicked()}),u.qZA()}if(2&te){const be=u.oxw();u.ekj("mat-drawer-shown",be._isShowingBackdrop())}}function h(te,ze){1&te&&(u.TgZ(0,"mat-sidenav-content"),u.Hsn(1,2),u.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],C=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,W.X$)("transform",[(0,W.SB)("open, open-instant",(0,W.oB)({transform:"none",visibility:"visible"})),(0,W.SB)("void",(0,W.oB)({"box-shadow":"none",visibility:"hidden"})),(0,W.eR)("void => open-instant",(0,W.jt)("0ms")),(0,W.eR)("void <=> open, open-instant => void",(0,W.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new u.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V(){return!1}}),g=new u.OlP("MAT_DRAWER_CONTAINER");let R=(()=>{class te extends e.PQ{constructor(be,Z,Y,ot,Ie){super(Y,ot,Ie),this._changeDetectorRef=be,this._container=Z}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>$)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(be,Z){2&be&&u.Udp("margin-left",Z._container._contentMargins.left,"px")("margin-right",Z._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:te}]),u.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(be,Z){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),te})(),H=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae,ce,Te){this._elementRef=be,this._focusTrapFactory=Z,this._focusMonitor=Y,this._platform=ot,this._ngZone=Ie,this._interactivityChecker=Ae,this._doc=ce,this._container=Te,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.x,this._animationEnd=new d.x,this._animationState="void",this.openedChange=new u.vpe(!0),this._openedStream=this.openedChange.pipe((0,T.h)(xe=>xe),(0,M.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&0===xe.toState.indexOf("open")),(0,A.h)(void 0)),this._closedStream=this.openedChange.pipe((0,T.h)(xe=>!xe),(0,M.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,T.h)(xe=>xe.fromState!==xe.toState&&"void"===xe.toState),(0,A.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new u.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(xe=>{xe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,P.R)(this._elementRef.nativeElement,"keydown").pipe((0,T.h)(xe=>xe.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(xe)),(0,E.R)(this._destroyed)).subscribe(xe=>this._ngZone.run(()=>{this.close(),xe.stopPropagation(),xe.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((xe,G)=>xe.fromState===G.fromState&&xe.toState===G.toState)).subscribe(xe=>{const{fromState:G,toState:ee}=xe;(0===ee.indexOf("open")&&"void"===G||"void"===ee&&0===G.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(be){(be="end"===be?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(be),this._position=be,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(be){this._mode=be,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(be){this._disableClose=(0,a.Ig)(be)}get autoFocus(){const be=this._autoFocus;return null==be?"side"===this.mode?"dialog":"first-tabbable":be}set autoFocus(be){("true"===be||"false"===be||null==be)&&(be=(0,a.Ig)(be)),this._autoFocus=be}get opened(){return this._opened}set opened(be){this.toggle((0,a.Ig)(be))}_forceFocus(be,Z){this._interactivityChecker.isFocusable(be)||(be.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Y=()=>{be.removeEventListener("blur",Y),be.removeEventListener("mousedown",Y),be.removeAttribute("tabindex")};be.addEventListener("blur",Y),be.addEventListener("mousedown",Y)})),be.focus(Z)}_focusByCssSelector(be,Z){let Y=this._elementRef.nativeElement.querySelector(be);Y&&this._forceFocus(Y,Z)}_takeFocus(){if(!this._focusTrap)return;const be=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Z=>{!Z&&"function"==typeof this._elementRef.nativeElement.focus&&be.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(be){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,be):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const be=this._doc.activeElement;return!!be&&this._elementRef.nativeElement.contains(be)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var be;this._focusTrap&&this._focusTrap.destroy(),null===(be=this._anchor)||void 0===be||be.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(be){return this.toggle(!0,be)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(be=!this.opened,Z){be&&Z&&(this._openedVia=Z);const Y=this._setOpen(be,!be&&this._isFocusWithinDrawer(),this._openedVia||"program");return be||(this._openedVia=null),Y}_setOpen(be,Z,Y){return this._opened=be,be?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Z&&this._restoreFocus(Y)),this._updateFocusTrapState(),new Promise(ot=>{this.openedChange.pipe((0,w.q)(1)).subscribe(Ie=>ot(Ie?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(be){const Z=this._elementRef.nativeElement,Y=Z.parentNode;"end"===be?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Y.insertBefore(this._anchor,Z)),Y.appendChild(Z)):this._anchor&&this._anchor.parentNode.insertBefore(Z,this._anchor)}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.SBq),u.Y36(Q.qV),u.Y36(Q.tE),u.Y36(le.t4),u.Y36(u.R0b),u.Y36(Q.ic),u.Y36(i.K0,8),u.Y36(g,8))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer"]],viewQuery:function(be,Z){if(1&be&&u.Gf(se,5),2&be){let Y;u.iGM(Y=u.CRH())&&(Z._content=Y.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(be,Z){1&be&&u.WFA("@transform.start",function(ot){return Z._animationStarted.next(ot)})("@transform.done",function(ot){return Z._animationEnd.next(ot)}),2&be&&(u.uIk("align",null),u.d8E("@transform",Z._animationState),u.ekj("mat-drawer-end","end"===Z.position)("mat-drawer-over","over"===Z.mode)("mat-drawer-push","push"===Z.mode)("mat-drawer-side","side"===Z.mode)("mat-drawer-opened",Z.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,Z){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),te})(),$=(()=>{class te{constructor(be,Z,Y,ot,Ie,Ae=!1,ce){this._dir=be,this._element=Z,this._ngZone=Y,this._changeDetectorRef=ot,this._animationMode=ce,this._drawers=new u.n_E,this.backdropClick=new u.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,be&&be.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ie.change().pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ae}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(be){this._autosize=(0,a.Ig)(be)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(be){this._backdropOverride=null==be?null:(0,a.Ig)(be)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,z.O)(this._allDrawers),(0,E.R)(this._destroyed)).subscribe(be=>{this._drawers.reset(be.filter(Z=>!Z._container||Z._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,z.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(be=>{this._watchDrawerToggle(be),this._watchDrawerPosition(be),this._watchDrawerMode(be)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,U.b)(10),(0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(be=>be.open())}close(){this._drawers.forEach(be=>be.close())}updateContentMargins(){let be=0,Z=0;if(this._left&&this._left.opened)if("side"==this._left.mode)be+=this._left._getWidth();else if("push"==this._left.mode){const Y=this._left._getWidth();be+=Y,Z-=Y}if(this._right&&this._right.opened)if("side"==this._right.mode)Z+=this._right._getWidth();else if("push"==this._right.mode){const Y=this._right._getWidth();Z+=Y,be-=Y}be=be||null,Z=Z||null,(be!==this._contentMargins.left||Z!==this._contentMargins.right)&&(this._contentMargins={left:be,right:Z},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(be){be._animationStarted.pipe((0,T.h)(Z=>Z.fromState!==Z.toState),(0,E.R)(this._drawers.changes)).subscribe(Z=>{"open-instant"!==Z.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==be.mode&&be.openedChange.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(be.opened))}_watchDrawerPosition(be){!be||be.onPositionChanged.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(be){be&&be._modeChanged.pipe((0,E.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(be){const Z=this._element.nativeElement.classList,Y="mat-drawer-container-has-open";be?Z.add(Y):Z.remove(Y)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(be=>{"end"==be.position?this._end=be:this._start=be}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(be=>be&&!be.disableClose&&this._canHaveBackdrop(be)).forEach(be=>be._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(be){return"side"!==be.mode||!!this._backdropOverride}_isDrawerOpen(be){return null!=be&&be.opened}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(q.Is,8),u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(u.sBO),u.Y36(e.rL),u.Y36(n),u.Y36(ne.Qb,8))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-drawer-container"]],contentQueries:function(be,Z,Y){if(1&be&&(u.Suo(Y,R,5),u.Suo(Y,H,5)),2&be){let ot;u.iGM(ot=u.CRH())&&(Z._content=ot.first),u.iGM(ot=u.CRH())&&(Z._allDrawers=ot)}},viewQuery:function(be,Z){if(1&be&&u.Gf(R,5),2&be){let Y;u.iGM(Y=u.CRH())&&(Z._userContent=Y.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(be,Z){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",Z._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[u._Bn([{provide:g,useExisting:te}])],ngContentSelectors:t,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(be,Z){1&be&&(u.F$t(x),u.YNc(0,J,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,me,2,0,"mat-drawer-content",1)),2&be&&(u.Q6J("ngIf",Z.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!Z._content))},directives:[R,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),te})(),fe=(()=>{class te extends R{constructor(be,Z,Y,ot,Ie){super(be,Z,Y,ot,Ie)}}return te.\u0275fac=function(be){return new(be||te)(u.Y36(u.sBO),u.Y36((0,u.Gpc)(()=>ke)),u.Y36(u.SBq),u.Y36(e.mF),u.Y36(u.R0b))},te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(be,Z){2&be&&u.Udp("margin-left",Z._container._contentMargins.left,"px")("margin-right",Z._container._contentMargins.right,"px")},features:[u._Bn([{provide:e.PQ,useExisting:te}]),u.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(be,Z){1&be&&(u.F$t(),u.Hsn(0))},encapsulation:2,changeDetection:0}),te})(),ye=(()=>{class te extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(be){this._fixedInViewport=(0,a.Ig)(be)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(be){this._fixedTopGap=(0,a.su)(be)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(be){this._fixedBottomGap=(0,a.su)(be)}}return te.\u0275fac=function(){let ze;return function(Z){return(ze||(ze=u.n5z(te)))(Z||te)}}(),te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(be,Z){2&be&&(u.uIk("align",null),u.Udp("top",Z.fixedInViewport?Z.fixedTopGap:null,"px")("bottom",Z.fixedInViewport?Z.fixedBottomGap:null,"px"),u.ekj("mat-drawer-end","end"===Z.position)("mat-drawer-over","over"===Z.mode)("mat-drawer-push","push"===Z.mode)("mat-drawer-side","side"===Z.mode)("mat-drawer-opened",Z.opened)("mat-sidenav-fixed",Z.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[u.qOj],ngContentSelectors:ie,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(be,Z){1&be&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA())},directives:[e.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),te})(),ke=(()=>{class te extends ${}return te.\u0275fac=function(){let ze;return function(Z){return(ze||(ze=u.n5z(te)))(Z||te)}}(),te.\u0275cmp=u.Xpm({type:te,selectors:[["mat-sidenav-container"]],contentQueries:function(be,Z,Y){if(1&be&&(u.Suo(Y,fe,5),u.Suo(Y,ye,5)),2&be){let ot;u.iGM(ot=u.CRH())&&(Z._content=ot.first),u.iGM(ot=u.CRH())&&(Z._allDrawers=ot)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(be,Z){2&be&&u.ekj("mat-drawer-container-explicit-backdrop",Z._backdropOverride)},exportAs:["matSidenavContainer"],features:[u._Bn([{provide:g,useExisting:te}]),u.qOj],ngContentSelectors:C,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(be,Z){1&be&&(u.F$t(c),u.YNc(0,r,1,2,"div",0),u.Hsn(1),u.Hsn(2,1),u.YNc(3,h,2,0,"mat-sidenav-content",1)),2&be&&(u.Q6J("ngIf",Z.hasBackdrop),u.xp6(3),u.Q6J("ngIf",!Z._content))},directives:[fe,i.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),te})(),Ee=(()=>{class te{}return te.\u0275fac=function(be){return new(be||te)},te.\u0275mod=u.oAB({type:te}),te.\u0275inj=u.cJS({imports:[[i.ez,b.BQ,e.ZD],e.ZD,b.BQ]}),te})()},2368:(He,j,p)=>{"use strict";p.d(j,{Rr:()=>W,rP:()=>q});var e=p(7144),i=p(5e3),u=p(508),b=p(3191),a=p(3075),y=p(6360),d=p(5664);const P=["thumbContainer"],D=["toggleBar"],T=["input"],M=function(ie){return{enterDuration:ie}},A=["*"],E=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const w={provide:a.JU,useExisting:(0,i.Gpc)(()=>W),multi:!0};class z{constructor(se,J){this.source=se,this.checked=J}}const U=(0,u.sb)((0,u.pj)((0,u.Kr)((0,u.Id)(class{constructor(ie){this._elementRef=ie}}))));let W=(()=>{class ie extends U{constructor(J,me,x,t,r,h){super(J),this._focusMonitor=me,this._changeDetectorRef=x,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(t)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===h}get required(){return this._required}set required(J){this._required=(0,b.Ig)(J)}get checked(){return this._checked}set checked(J){this._checked=(0,b.Ig)(J),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{J||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(J){J.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(J){J.stopPropagation()}writeValue(J){this.checked=!!J}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetectorRef.markForCheck()}focus(J,me){me?this._focusMonitor.focusVia(this._inputElement,me,J):this._inputElement.nativeElement.focus(J)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new z(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return ie.\u0275fac=function(J){return new(J||ie)(i.Y36(i.SBq),i.Y36(d.tE),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(E),i.Y36(y.Qb,8))},ie.\u0275cmp=i.Xpm({type:ie,selectors:[["mat-slide-toggle"]],viewQuery:function(J,me){if(1&J&&(i.Gf(P,5),i.Gf(D,5),i.Gf(T,5)),2&J){let x;i.iGM(x=i.CRH())&&(me._thumbEl=x.first),i.iGM(x=i.CRH())&&(me._thumbBarEl=x.first),i.iGM(x=i.CRH())&&(me._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(J,me){2&J&&(i.Ikx("id",me.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",me.checked)("mat-disabled",me.disabled)("mat-slide-toggle-label-before","before"==me.labelPosition)("_mat-animation-noopable",me._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i._Bn([w]),i.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(J,me){if(1&J&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),i.NdJ("change",function(t){return me._onChangeEvent(t)})("click",function(t){return me._onInputClick(t)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA()()(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return me._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA()()),2&J){const x=i.MAs(1),t=i.MAs(12);i.uIk("for",me.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!t.textContent||!t.textContent.trim()),i.xp6(2),i.Q6J("id",me.inputId)("required",me.required)("tabIndex",me.tabIndex)("checked",me.checked)("disabled",me.disabled),i.uIk("name",me.name)("aria-checked",me.checked)("aria-label",me.ariaLabel)("aria-labelledby",me.ariaLabelledby)("aria-describedby",me.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",x)("matRippleDisabled",me.disableRipple||me.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,M,me._noopAnimations?0:150))}},directives:[u.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),ie})(),le=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({}),ie})(),q=(()=>{class ie{}return ie.\u0275fac=function(J){return new(J||ie)},ie.\u0275mod=i.oAB({type:ie}),ie.\u0275inj=i.cJS({imports:[[le,u.si,u.BQ,e.Q8],le,u.BQ]}),ie})()},7261:(He,j,p)=>{"use strict";p.d(j,{Ve:()=>se,ZX:()=>ie,ux:()=>x});var e=p(9776),i=p(7429),u=p(9808),b=p(5e3),a=p(508),y=p(7423),d=p(7579),P=p(5698),D=p(2722),T=p(1777),M=p(925),A=p(5113),E=p(5664);function k(t,r){if(1&t){const h=b.EpF();b.TgZ(0,"div",2)(1,"button",3),b.NdJ("click",function(){return b.CHM(h),b.oxw().action()}),b._uU(2),b.qZA()()}if(2&t){const h=b.oxw();b.xp6(2),b.Oqu(h.data.action)}}function w(t,r){}const z=new b.OlP("MatSnackBarData");class U{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class ne{constructor(r,h){this._overlayRef=h,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=r,r._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(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,W))}_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}}let Q=(()=>{class t{constructor(h,c){this.snackBarRef=h,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(h){return new(h||t)(b.Y36(ne),b.Y36(z))},t.\u0275cmp=b.Xpm({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(h,c){1&h&&(b.TgZ(0,"span",0),b._uU(1),b.qZA(),b.YNc(2,k,3,1,"div",1)),2&h&&(b.xp6(1),b.Oqu(c.data.message),b.xp6(1),b.Q6J("ngIf",c.hasAction))},directives:[y.lW,u.O5],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const le={snackBarState:(0,T.X$)("state",[(0,T.SB)("void, hidden",(0,T.oB)({transform:"scale(0.8)",opacity:0})),(0,T.SB)("visible",(0,T.oB)({transform:"scale(1)",opacity:1})),(0,T.eR)("* => visible",(0,T.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void, * => hidden",(0,T.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,T.oB)({opacity:0})))])};let q=(()=>{class t extends i.en{constructor(h,c,C,S,I){super(),this._ngZone=h,this._elementRef=c,this._changeDetectorRef=C,this._platform=S,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=_=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(_)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(h){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(h)}attachTemplatePortal(h){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(h)}onAnimationEnd(h){const{fromState:c,toState:C}=h;if(("void"===C&&"void"!==c||"hidden"===C)&&this._completeExit(),"visible"===C){const S=this._onEnter;this._ngZone.run(()=>{S.next(),S.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const h=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(C=>h.classList.add(C)):h.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&h.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&h.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const h=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(h&&c){let C=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),c.appendChild(h),null==C||C.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(h){return new(h||t)(b.Y36(b.R0b),b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(M.t4),b.Y36(U))},t.\u0275cmp=b.Xpm({type:t,selectors:[["snack-bar-container"]],viewQuery:function(h,c){if(1&h&&b.Gf(i.Pl,7),2&h){let C;b.iGM(C=b.CRH())&&(c._portalOutlet=C.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(h,c){1&h&&b.WFA("@state.done",function(S){return c.onAnimationEnd(S)}),2&h&&b.d8E("@state",c._animationState)},features:[b.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(h,c){1&h&&(b.TgZ(0,"div",0),b.YNc(1,w,0,0,"ng-template",1),b.qZA(),b._UZ(2,"div")),2&h&&(b.xp6(2),b.uIk("aria-live",c._live)("role",c._role))},directives:[i.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[le.snackBarState]}}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=b.oAB({type:t}),t.\u0275inj=b.cJS({imports:[[e.U8,i.eL,u.ez,y.ot,a.BQ],a.BQ]}),t})();const se=new b.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function J(){return new U}});let me=(()=>{class t{constructor(h,c,C,S,I,_){this._overlay=h,this._live=c,this._injector=C,this._breakpointObserver=S,this._parentSnackBar=I,this._defaultConfig=_,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const h=this._parentSnackBar;return h?h._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(h){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=h:this._snackBarRefAtThisLevel=h}openFromComponent(h,c){return this._attach(h,c)}openFromTemplate(h,c){return this._attach(h,c)}open(h,c="",C){const S=Object.assign(Object.assign({},this._defaultConfig),C);return S.data={message:h,action:c},S.announcementMessage===h&&(S.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,S)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(h,c){const S=b.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:U,useValue:c}]}),I=new i.C5(this.snackBarContainerComponent,c.viewContainerRef,S),_=h.attach(I);return _.instance.snackBarConfig=c,_.instance}_attach(h,c){const C=Object.assign(Object.assign(Object.assign({},new U),this._defaultConfig),c),S=this._createOverlay(C),I=this._attachSnackBarContainer(S,C),_=new ne(I,S);if(h instanceof b.Rgc){const n=new i.UE(h,null,{$implicit:C.data,snackBarRef:_});_.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(C,_),g=new i.C5(h,void 0,n),V=I.attachComponentPortal(g);_.instance=V.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,D.R)(S.detachments())).subscribe(n=>{S.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),C.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(C.announcementMessage,C.politeness)}),this._animateSnackBar(_,C),this._openedSnackBarRef=_,this._openedSnackBarRef}_animateSnackBar(h,c){h.afterDismissed().subscribe(()=>{this._openedSnackBarRef==h&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{h.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):h.containerInstance.enter(),c.duration&&c.duration>0&&h.afterOpened().subscribe(()=>h._dismissAfter(c.duration))}_createOverlay(h){const c=new e.X_;c.direction=h.direction;let C=this._overlay.position().global();const S="rtl"===h.direction,I="left"===h.horizontalPosition||"start"===h.horizontalPosition&&!S||"end"===h.horizontalPosition&&S,_=!I&&"center"!==h.horizontalPosition;return I?C.left("0"):_?C.right("0"):C.centerHorizontally(),"top"===h.verticalPosition?C.top("0"):C.bottom("0"),c.positionStrategy=C,this._overlay.create(c)}_createInjector(h,c){return b.zs3.create({parent:h&&h.viewContainerRef&&h.viewContainerRef.injector||this._injector,providers:[{provide:ne,useValue:c},{provide:z,useValue:h.data}]})}}return t.\u0275fac=function(h){return new(h||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(se))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends me{constructor(h,c,C,S,I,_){super(h,c,C,S,I,_),this.simpleSnackBarComponent=Q,this.snackBarContainerComponent=q,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(h){return new(h||t)(b.LFG(e.aV),b.LFG(E.Kd),b.LFG(b.zs3),b.LFG(A.Yg),b.LFG(t,12),b.LFG(se))},t.\u0275prov=b.Yz7({token:t,factory:t.\u0275fac,providedIn:ie}),t})()},4847:(He,j,p)=>{"use strict";p.d(j,{JX:()=>t,YE:()=>se,nU:()=>x});var e=p(5e3),i=p(3191),u=p(1159),b=p(508),a=p(7579),y=p(6451),d=p(1777),P=p(5664),D=p(9808);const T=["mat-sort-header",""];function M(r,h){if(1&r){const c=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(c),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(c),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&r){const c=e.oxw();e.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",c._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",c._getArrowDirectionState())}}const A=["*"],E=b.mZ.ENTERING+" "+b.yN.STANDARD_CURVE,k={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(E))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(E))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(E,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let ne=(()=>{class r{constructor(){this.changes=new a.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const le={provide:ne,deps:[[new e.FiY,new e.tp0,ne]],useFactory:function Q(r){return r||new ne}},q=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),ie=(0,b.dB)((0,b.Id)(class{}));let se=(()=>{class r extends ie{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var C,S,I;if(!c)return"";const _=null!==(S=null!==(C=null==c?void 0:c.disableClear)&&void 0!==C?C:this.disableClear)&&void 0!==S?S:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function J(r,h){let c=["asc","desc"];return"desc"==r&&c.reverse(),h||c.push(""),c}(c.start||this.start,_),g=n.indexOf(this.direction)+1;return g>=n.length&&(g=0),n[g]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(q,8))},r.\u0275dir=e.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),r})();const me=(0,b.Id)(class{});let x=(()=>{class r extends me{constructor(c,C,S,I,_,n,g){super(),this._intl=c,this._changeDetectorRef=C,this._sort=S,this._columnDef=I,this._focusMonitor=_,this._elementRef=n,this._ariaDescriber=g,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,i.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const C=!!c;C!==this._showIndicatorHint&&(this._setIndicatorHintVisible(C),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(c){!this._isDisabled()&&(c.keyCode===u.L_||c.keyCode===u.K5)&&(c.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const c=this._viewState.fromState;return(c?`${c}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(c){var C,S;this._sortButton&&(null===(C=this._ariaDescriber)||void 0===C||C.removeDescription(this._sortButton,this._sortActionDescription),null===(S=this._ariaDescriber)||void 0===S||S.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,y.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return r.\u0275fac=function(c){return new(c||r)(e.Y36(ne),e.Y36(e.sBO),e.Y36(se,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(P.tE),e.Y36(e.SBq),e.Y36(P.$s,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,C){1&c&&e.NdJ("click",function(){return C._handleClick()})("keydown",function(I){return C._handleKeydown(I)})("mouseenter",function(){return C._setIndicatorHintVisible(!0)})("mouseleave",function(){return C._setIndicatorHintVisible(!1)}),2&c&&(e.uIk("aria-sort",C._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",C._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:T,ngContentSelectors:A,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(c,C){1&c&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,M,6,6,"div",2),e.qZA()),2&c&&(e.ekj("mat-sort-header-sorted",C._isSorted())("mat-sort-header-position-before","before"==C.arrowPosition),e.uIk("tabindex",C._isDisabled()?null:0)("role",C._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",C._renderArrow()))},directives:[D.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),t=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[le],imports:[[D.ez,b.BQ]]}),r})()},5615:(He,j,p)=>{"use strict";p.d(j,{C0:()=>be,Ic:()=>Ae,T5:()=>Te,VY:()=>R,Vq:()=>Ie,fd:()=>ce,z9:()=>te});var e=p(7429),i=p(1555),u=p(9808),b=p(5e3),a=p(7423),y=p(508),d=p(5245),P=p(7579),D=p(727),T=p(5664),M=p(3900),A=p(4004),E=p(8675),k=p(2722),w=p(1884),z=p(1777),U=p(226);function W(xe,G){if(1&xe&&b.GkF(0,8),2&xe){const ee=b.oxw();b.Q6J("ngTemplateOutlet",ee.iconOverrides[ee.state])("ngTemplateOutletContext",ee._getIconContext())}}function ne(xe,G){if(1&xe&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._getDefaultTextForState(ee.state))}}function Q(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._intl.completedLabel)}}function le(xe,G){if(1&xe&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._intl.editableLabel)}}function q(xe,G){if(1&xe&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&xe){const ee=b.oxw(2);b.xp6(1),b.Oqu(ee._getDefaultTextForState(ee.state))}}function ie(xe,G){if(1&xe&&(b.ynx(0,9),b.YNc(1,ne,2,1,"span",10),b.YNc(2,Q,2,1,"span",11),b.YNc(3,le,2,1,"span",11),b.YNc(4,q,2,1,"mat-icon",12),b.BQk()),2&xe){const ee=b.oxw();b.Q6J("ngSwitch",ee.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===ee.state),b.xp6(1),b.Q6J("ngIf","edit"===ee.state)}}function se(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",ee._templateLabel().template)}}function J(xe,G){if(1&xe&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee.label)}}function me(xe,G){if(1&xe&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee._intl.optionalLabel)}}function x(xe,G){if(1&xe&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&xe){const ee=b.oxw();b.xp6(1),b.Oqu(ee.errorMessage)}}function t(xe,G){}function r(xe,G){if(1&xe&&(b.Hsn(0),b.YNc(1,t,0,0,"ng-template",0)),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",ee._portal)}}const h=["*"];function c(xe,G){1&xe&&b._UZ(0,"div",9)}const C=function(xe,G){return{step:xe,i:G}};function S(xe,G){if(1&xe&&(b.ynx(0),b.GkF(1,7),b.YNc(2,c,1,0,"div",8),b.BQk()),2&xe){const ee=G.$implicit,ue=G.index,ve=G.last;b.oxw(2);const Le=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",b.WLB(3,C,ee,ue)),b.xp6(1),b.Q6J("ngIf",!ve)}}function I(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"div",10),b.NdJ("@horizontalStepTransition.done",function(ve){return b.CHM(ee),b.oxw(2)._animationDone.next(ve)}),b.GkF(1,11),b.qZA()}if(2&xe){const ee=G.$implicit,ue=G.index,ve=b.oxw(2);b.Q6J("@horizontalStepTransition",ve._getAnimationDirection(ue))("id",ve._getStepContentId(ue)),b.uIk("aria-labelledby",ve._getStepLabelId(ue))("aria-expanded",ve.selectedIndex===ue),b.xp6(1),b.Q6J("ngTemplateOutlet",ee.content)}}function _(xe,G){if(1&xe&&(b.ynx(0),b.TgZ(1,"div",3),b.YNc(2,S,3,6,"ng-container",4),b.qZA(),b.TgZ(3,"div",5),b.YNc(4,I,2,5,"div",6),b.qZA(),b.BQk()),2&xe){const ee=b.oxw();b.xp6(2),b.Q6J("ngForOf",ee.steps),b.xp6(2),b.Q6J("ngForOf",ee.steps)}}function n(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"div",13),b.GkF(1,7),b.TgZ(2,"div",14)(3,"div",15),b.NdJ("@verticalStepTransition.done",function(ve){return b.CHM(ee),b.oxw(2)._animationDone.next(ve)}),b.TgZ(4,"div",16),b.GkF(5,11),b.qZA()()()()}if(2&xe){const ee=G.$implicit,ue=G.index,ve=G.last,Le=b.oxw(2),lt=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",lt)("ngTemplateOutletContext",b.WLB(9,C,ee,ue)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!ve),b.xp6(1),b.Q6J("@verticalStepTransition",Le._getAnimationDirection(ue))("id",Le._getStepContentId(ue)),b.uIk("aria-labelledby",Le._getStepLabelId(ue))("aria-expanded",Le.selectedIndex===ue),b.xp6(2),b.Q6J("ngTemplateOutlet",ee.content)}}function g(xe,G){if(1&xe&&(b.ynx(0),b.YNc(1,n,6,12,"div",12),b.BQk()),2&xe){const ee=b.oxw();b.xp6(1),b.Q6J("ngForOf",ee.steps)}}function V(xe,G){if(1&xe){const ee=b.EpF();b.TgZ(0,"mat-step-header",17),b.NdJ("click",function(){return b.CHM(ee).step.select()})("keydown",function(ve){return b.CHM(ee),b.oxw()._onKeydown(ve)}),b.qZA()}if(2&xe){const ee=G.step,ue=G.i,ve=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===ve.orientation)("mat-vertical-stepper-header","vertical"===ve.orientation),b.Q6J("tabIndex",ve._getFocusIndex()===ue?0:-1)("id",ve._getStepLabelId(ue))("index",ue)("state",ve._getIndicatorType(ue,ee.state))("label",ee.stepLabel||ee.label)("selected",ve.selectedIndex===ue)("active",ve._stepIsNavigable(ue,ee))("optional",ee.optional)("errorMessage",ee.errorMessage)("iconOverrides",ve._iconOverrides)("disableRipple",ve.disableRipple||!ve._stepIsNavigable(ue,ee))("color",ee.color||ve.color),b.uIk("aria-posinset",ue+1)("aria-setsize",ve.steps.length)("aria-controls",ve._getStepContentId(ue))("aria-selected",ve.selectedIndex==ue)("aria-label",ee.ariaLabel||null)("aria-labelledby",!ee.ariaLabel&&ee.ariaLabelledby?ee.ariaLabelledby:null)("aria-disabled",!ve._stepIsNavigable(ue,ee)||null)}}let R=(()=>{class xe extends i.u6{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["","matStepLabel",""]],features:[b.qOj]}),xe})(),H=(()=>{class xe{constructor(){this.changes=new P.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275prov=b.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const fe={provide:H,deps:[[new b.FiY,new b.tp0,H]],useFactory:function $(xe){return xe||new H}},ye=(0,y.pj)(class extends i.KL{constructor(G){super(G)}},"primary");let ke=(()=>{class xe extends ye{constructor(ee,ue,ve,Le){super(ve),this._intl=ee,this._focusMonitor=ue,this._intlSubscription=ee.changes.subscribe(()=>Le.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ee,ue){ee?this._focusMonitor.focusVia(this._elementRef,ee,ue):this._elementRef.nativeElement.focus(ue)}_stringLabel(){return this.label instanceof R?null:this.label}_templateLabel(){return this.label instanceof R?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ee){return"number"==ee?`${this.index+1}`:"edit"==ee?"create":"error"==ee?"warning":ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(H),b.Y36(T.tE),b.Y36(b.SBq),b.Y36(b.sBO))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ee,ue){1&ee&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,W,1,2,"ng-container",2),b.YNc(4,ie,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,se,2,1,"div",5),b.YNc(7,J,2,1,"div",5),b.YNc(8,me,2,1,"div",6),b.YNc(9,x,2,1,"div",7),b.qZA()),2&ee&&(b.Q6J("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",ue.state," mat-step-icon"),b.ekj("mat-step-icon-selected",ue.selected),b.xp6(1),b.Q6J("ngSwitch",!(!ue.iconOverrides||!ue.iconOverrides[ue.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",ue.active)("mat-step-label-selected",ue.selected)("mat-step-label-error","error"==ue.state),b.xp6(1),b.Q6J("ngIf",ue._templateLabel()),b.xp6(1),b.Q6J("ngIf",ue._stringLabel()),b.xp6(1),b.Q6J("ngIf",ue.optional&&"error"!=ue.state),b.xp6(1),b.Q6J("ngIf","error"==ue.state))},directives:[d.Hw,y.wG,u.RF,u.n9,u.tP,u.ED,u.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),xe})();const Ee={horizontalStepTransition:(0,z.X$)("horizontalStepTransition",[(0,z.SB)("previous",(0,z.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,z.SB)("current",(0,z.oB)({transform:"none",visibility:"inherit"})),(0,z.SB)("next",(0,z.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,z.eR)("* => *",(0,z.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,z.X$)("verticalStepTransition",[(0,z.SB)("previous",(0,z.oB)({height:"0px",visibility:"hidden"})),(0,z.SB)("next",(0,z.oB)({height:"0px",visibility:"hidden"})),(0,z.SB)("current",(0,z.oB)({height:"*",visibility:"inherit"})),(0,z.eR)("* <=> current",(0,z.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let te=(()=>{class xe{constructor(ee){this.templateRef=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xe})(),ze=(()=>{class xe{constructor(ee){this._template=ee}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(b.Rgc))},xe.\u0275dir=b.lG2({type:xe,selectors:[["ng-template","matStepContent",""]]}),xe})(),be=(()=>{class xe extends i.be{constructor(ee,ue,ve,Le){super(ee,Le),this._errorStateMatcher=ue,this._viewContainerRef=ve,this._isSelected=D.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,M.w)(()=>this._stepper.selectionChange.pipe((0,A.U)(ee=>ee.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe(ee=>{ee&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ee,ue){return this._errorStateMatcher.isErrorState(ee,ue)||!!(ee&&ee.invalid&&this.interacted)}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36((0,b.Gpc)(()=>Ie)),b.Y36(y.rD,4),b.Y36(b.s_b),b.Y36(i.gx,8))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-step"]],contentQueries:function(ee,ue,ve){if(1&ee&&(b.Suo(ve,R,5),b.Suo(ve,ze,5)),2&ee){let Le;b.iGM(Le=b.CRH())&&(ue.stepLabel=Le.first),b.iGM(Le=b.CRH())&&(ue._lazyContent=Le.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:y.rD,useExisting:xe},{provide:i.be,useExisting:xe}]),b.qOj],ngContentSelectors:h,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ee,ue){1&ee&&(b.F$t(),b.YNc(0,r,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),xe})(),Z=(()=>{class xe extends i.B8{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,features:[b.qOj]}),xe})(),Y=(()=>{class xe extends Z{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-horizontal-stepper"]],features:[b.qOj]}),xe})(),ot=(()=>{class xe extends Z{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["mat-vertical-stepper"]],features:[b.qOj]}),xe})(),Ie=(()=>{class xe extends i.B8{constructor(ee,ue,ve,Le){super(ee,ue,ve,Le),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new P.x;const lt=ve.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===lt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ee,templateRef:ue})=>this._iconOverrides[ee]=ue),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)((ee,ue)=>ee.fromState===ue.fromState&&ee.toState===ue.toState),(0,k.R)(this._destroyed)).subscribe(ee=>{"current"===ee.toState&&this.animationDone.emit()})}_stepIsNavigable(ee,ue){return ue.completed||this.selectedIndex===ee||!this.linear}}return xe.\u0275fac=function(ee){return new(ee||xe)(b.Y36(U.Is,8),b.Y36(b.sBO),b.Y36(b.SBq),b.Y36(u.K0))},xe.\u0275cmp=b.Xpm({type:xe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ee,ue,ve){if(1&ee&&(b.Suo(ve,be,5),b.Suo(ve,te,5)),2&ee){let Le;b.iGM(Le=b.CRH())&&(ue._steps=Le),b.iGM(Le=b.CRH())&&(ue._icons=Le)}},viewQuery:function(ee,ue){if(1&ee&&b.Gf(ke,5),2&ee){let ve;b.iGM(ve=b.CRH())&&(ue._stepHeader=ve)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(ee,ue){2&ee&&(b.uIk("aria-orientation",ue.orientation),b.ekj("mat-stepper-horizontal","horizontal"===ue.orientation)("mat-stepper-vertical","vertical"===ue.orientation)("mat-stepper-label-position-end","horizontal"===ue.orientation&&"end"==ue.labelPosition)("mat-stepper-label-position-bottom","horizontal"===ue.orientation&&"bottom"==ue.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:i.B8,useExisting:xe},{provide:Y,useExisting:xe},{provide:ot,useExisting:xe}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ee,ue){1&ee&&(b.ynx(0,0),b.YNc(1,_,5,2,"ng-container",1),b.YNc(2,g,2,1,"ng-container",1),b.BQk(),b.YNc(3,V,1,23,"ng-template",null,2,b.W1O)),2&ee&&(b.Q6J("ngSwitch",ue.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},directives:[ke,u.RF,u.n9,u.sg,u.tP,u.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Ee.horizontalStepTransition,Ee.verticalStepTransition]},changeDetection:0}),xe})(),Ae=(()=>{class xe extends i.st{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ee,ue){2&ee&&b.Ikx("type",ue.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),ce=(()=>{class xe extends i.po{}return xe.\u0275fac=function(){let G;return function(ue){return(G||(G=b.n5z(xe)))(ue||xe)}}(),xe.\u0275dir=b.lG2({type:xe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ee,ue){2&ee&&b.Ikx("type",ue.type)},inputs:{type:"type"},features:[b.qOj]}),xe})(),Te=(()=>{class xe{}return xe.\u0275fac=function(ee){return new(ee||xe)},xe.\u0275mod=b.oAB({type:xe}),xe.\u0275inj=b.cJS({providers:[fe,y.rD],imports:[[y.BQ,u.ez,e.eL,a.ot,i.U5,d.Ps,y.si],y.BQ]}),xe})()},2075:(He,j,p)=>{"use strict";p.d(j,{ev:()=>Fe,Dz:()=>Rt,w1:()=>qe,yh:()=>we,mD:()=>Re,Q2:()=>Xt,Ke:()=>at,ge:()=>Ze,fO:()=>et,XQ:()=>mi,as:()=>rt,Gk:()=>Jt,nj:()=>yt,BZ:()=>ft,by:()=>Gi,p0:()=>en});var e=p(5e3),i=p(3191),u=p(449),b=p(9808),a=p(7579),y=p(457),d=p(1135),P=p(5191),D=p(9646),T=p(2722),M=p(5698),A=p(226),E=p(925),k=p(5303);const w=[[["caption"]],[["colgroup"],["col"]]],z=["caption","colgroup, col"];function ne(ct){return class extends ct{constructor(...Ft){super(...Ft),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ft){const pt=this._sticky;this._sticky=(0,i.Ig)(Ft),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Ft=this._hasStickyChanged;return this._hasStickyChanged=!1,Ft}resetStickyChanged(){this._hasStickyChanged=!1}}}const Q=new e.OlP("CDK_TABLE");let q=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellDef",""]]}),ct})(),ie=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderCellDef",""]]}),ct})(),se=(()=>{class ct{constructor(pt){this.template=pt}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterCellDef",""]]}),ct})();class J{}const me=ne(J);let x=(()=>{class ct extends me{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const it=this._stickyEnd;this._stickyEnd=(0,i.Ig)(pt),this._hasStickyChanged=it!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,q,5),e.Suo(It,ie,5),e.Suo(It,se,5)),2&pt){let de;e.iGM(de=e.CRH())&&(it.cell=de.first),e.iGM(de=e.CRH())&&(it.headerCell=de.first),e.iGM(de=e.CRH())&&(it.footerCell=de.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})();class t{constructor(Ft,pt){pt.nativeElement.classList.add(...Ft._columnCssClassName)}}let r=(()=>{class ct extends t{constructor(pt,it){super(pt,it)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),ct})(),h=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const de=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),ct})(),c=(()=>{class ct extends t{constructor(pt,it){var It;if(super(pt,it),1===(null===(It=pt._table)||void 0===It?void 0:It._elementRef.nativeElement.nodeType)){const de=pt._table._elementRef.nativeElement.getAttribute("role");it.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(x),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),ct})();class C{constructor(){this.tasks=[],this.endTasks=[]}}const S=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class ct{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new a.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new C,this._getScheduleObservable().pipe((0,T.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new C;for(const it of pt.tasks)it();for(const it of pt.endTasks)it()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,y.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,M.q)(1))}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.LFG(e.R0b))},ct.\u0275prov=e.Yz7({token:ct,factory:ct.\u0275fac}),ct})(),n=(()=>{class ct{constructor(pt,it){this.template=pt,this._differs=it}ngOnChanges(pt){if(!this._columnsDiffer){const it=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(it).create(),this._columnsDiffer.diff(it)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof R?pt.headerCell.template:this instanceof fe?pt.footerCell.template:pt.cell.template}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},ct.\u0275dir=e.lG2({type:ct,features:[e.TTD]}),ct})();class g extends n{}const V=ne(g);let R=(()=>{class ct extends V{constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})();class H extends n{}const $=ne(H);let fe=(()=>{class ct extends ${constructor(pt,it,It){super(pt,it),this._table=It}ngOnChanges(pt){super.ngOnChanges(pt)}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),ct})(),ye=(()=>{class ct extends n{constructor(pt,it,It){super(pt,it),this._table=It}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Q,8))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),ct})(),ke=(()=>{class ct{constructor(pt){this._viewContainer=pt,ct.mostRecentCellOutlet=this}ngOnDestroy(){ct.mostRecentCellOutlet===this&&(ct.mostRecentCellOutlet=null)}}return ct.mostRecentCellOutlet=null,ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","cdkCellOutlet",""]]}),ct})(),Ee=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),te=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),ze=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),be=(()=>{class ct{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.Rgc))},ct.\u0275dir=e.lG2({type:ct,selectors:[["ng-template","cdkNoDataRow",""]]}),ct})();const Z=["top","bottom","left","right"];class Y{constructor(Ft,pt,it,It,de=!0,$e=!0,bt){this._isNativeHtmlTable=Ft,this._stickCellCss=pt,this.direction=it,this._coalescedStyleScheduler=It,this._isBrowser=de,this._needsPositionStickyOnElement=$e,this._positionListener=bt,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Ft,pt){const it=[];for(const It of Ft)if(It.nodeType===It.ELEMENT_NODE){it.push(It);for(let de=0;de{for(const It of it)this._removeStickyStyle(It,pt)})}updateStickyColumns(Ft,pt,it,It=!0){if(!Ft.length||!this._isBrowser||!pt.some(Wi=>Wi)&&!it.some(Wi=>Wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const de=Ft[0],$e=de.children.length,bt=this._getCellWidths(de,It),Vt=this._getStickyStartColumnPositions(bt,pt),bi=this._getStickyEndColumnPositions(bt,it),Li=pt.lastIndexOf(!0),Ji=it.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Wi="rtl"===this.direction,sn=Wi?"right":"left",mn=Wi?"left":"right";for(const Yt of Ft)for(let Mi=0;Mi<$e;Mi++){const Je=Yt.children[Mi];pt[Mi]&&this._addStickyStyle(Je,sn,Vt[Mi],Mi===Li),it[Mi]&&this._addStickyStyle(Je,mn,bi[Mi],Mi===Ji)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Li?[]:bt.slice(0,Li+1).map((Yt,Mi)=>pt[Mi]?Yt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ji?[]:bt.slice(Ji).map((Yt,Mi)=>it[Mi+Ji]?Yt:null).reverse()}))})}stickRows(Ft,pt,it){if(!this._isBrowser)return;const It="bottom"===it?Ft.slice().reverse():Ft,de="bottom"===it?pt.slice().reverse():pt,$e=[],bt=[],Vt=[];for(let Li=0,Ji=0;Li{var Li,Ji;for(let Wi=0;Wi{pt.some(It=>!It)?this._removeStickyStyle(it,["bottom"]):this._addStickyStyle(it,"bottom",0,!1)})}_removeStickyStyle(Ft,pt){for(const It of pt)Ft.style[It]="",Ft.classList.remove(this._borderCellCss[It]);Z.some(It=>-1===pt.indexOf(It)&&Ft.style[It])?Ft.style.zIndex=this._getCalculatedZIndex(Ft):(Ft.style.zIndex="",this._needsPositionStickyOnElement&&(Ft.style.position=""),Ft.classList.remove(this._stickCellCss))}_addStickyStyle(Ft,pt,it,It){Ft.classList.add(this._stickCellCss),It&&Ft.classList.add(this._borderCellCss[pt]),Ft.style[pt]=`${it}px`,Ft.style.zIndex=this._getCalculatedZIndex(Ft),this._needsPositionStickyOnElement&&(Ft.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ft){const pt={top:100,bottom:10,left:1,right:1};let it=0;for(const It of Z)Ft.style[It]&&(it+=pt[It]);return it?`${it}`:""}_getCellWidths(Ft,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const it=[],It=Ft.children;for(let de=0;de0;de--)pt[de]&&(it[de]=It,It+=Ft[de]);return it}}const ue=new e.OlP("CDK_SPL");let Le=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","rowOutlet",""]]}),ct})(),lt=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","headerRowOutlet",""]]}),ct})(),ht=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","footerRowOutlet",""]]}),ct})(),Tt=(()=>{class ct{constructor(pt,it){this.viewContainer=pt,this.elementRef=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.s_b),e.Y36(e.SBq))},ct.\u0275dir=e.lG2({type:ct,selectors:[["","noDataRowOutlet",""]]}),ct})(),Gt=(()=>{class ct{constructor(pt,it,It,de,$e,bt,Vt,bi,Li,Ji,Wi,sn){this._differs=pt,this._changeDetectorRef=it,this._elementRef=It,this._dir=$e,this._platform=Vt,this._viewRepeater=bi,this._coalescedStyleScheduler=Li,this._viewportRuler=Ji,this._stickyPositioningListener=Wi,this._ngZone=sn,this._onDestroy=new a.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),de||this._elementRef.nativeElement.setAttribute("role","table"),this._document=bt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,i.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,i.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,it)=>this.trackBy?this.trackBy(it.dataIndex,it.data):it),this._viewportRuler.change().pipe((0,T.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const it=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||it,this._forceRecalculateCellWidths=it,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const it=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,it,(It,de,$e)=>this._getEmbeddedViewArgs(It.item,$e),It=>It.item.data,It=>{1===It.operation&&It.context&&this._renderCellTemplateForItem(It.record.item.rowDef,It.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(It=>{it.get(It.currentIndex).context.$implicit=It.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,M.q)(1),(0,T.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),It=this._elementRef.nativeElement.querySelector("thead");It&&(It.style.display=pt.length?"":"none");const de=this._headerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,de,"top"),this._headerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),It=this._elementRef.nativeElement.querySelector("tfoot");It&&(It.style.display=pt.length?"":"none");const de=this._footerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,de,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,de),this._footerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),it=this._getRenderedRows(this._rowOutlet),It=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...it,...It],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach((de,$e)=>{this._addStickyColumnStyles([de],this._headerRowDefs[$e])}),this._rowDefs.forEach(de=>{const $e=[];for(let bt=0;bt{this._addStickyColumnStyles([de],this._footerRowDefs[$e])}),Array.from(this._columnDefsByName.values()).forEach(de=>de.resetStickyChanged())}_getAllRenderRows(){const pt=[],it=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let It=0;It{const bt=It&&It.has($e)?It.get($e):[];if(bt.length){const Vt=bt.shift();return Vt.dataIndex=it,Vt}return{data:pt,rowDef:$e,dataIndex:it}})}_cacheColumnDefs(){this._columnDefsByName.clear(),di(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(it=>{this._columnDefsByName.has(it.name),this._columnDefsByName.set(it.name,it)})}_cacheRowDefs(){this._headerRowDefs=di(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=di(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=di(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(it=>!it.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=($e,bt)=>$e||!!bt.getColumnsDiff(),it=this._rowDefs.reduce(pt,!1);it&&this._forceRenderDataRows();const It=this._headerRowDefs.reduce(pt,!1);It&&this._forceRenderHeaderRows();const de=this._footerRowDefs.reduce(pt,!1);return de&&this._forceRenderFooterRows(),it||It||de}_switchDataSource(pt){this._data=[],(0,u.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,u.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,P.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,D.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._data=it||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,it)=>this._renderRow(this._headerRowOutlet,pt,it)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,it)=>this._renderRow(this._footerRowOutlet,pt,it)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,it){const It=Array.from(it.columns||[]).map(bt=>this._columnDefsByName.get(bt)),de=It.map(bt=>bt.sticky),$e=It.map(bt=>bt.stickyEnd);this._stickyStyler.updateStickyColumns(pt,de,$e,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const it=[];for(let It=0;It!de.when||de.when(it,pt));else{let de=this._rowDefs.find($e=>$e.when&&$e.when(it,pt))||this._defaultRowDef;de&&It.push(de)}return It}_getEmbeddedViewArgs(pt,it){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:it}}_renderRow(pt,it,It,de={}){const $e=pt.viewContainer.createEmbeddedView(it.template,de,It);return this._renderCellTemplateForItem(it,de),$e}_renderCellTemplateForItem(pt,it){for(let It of this._getCellTemplates(pt))ke.mostRecentCellOutlet&&ke.mostRecentCellOutlet._viewContainer.createEmbeddedView(It,it);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let it=0,It=pt.length;it{const It=this._columnDefsByName.get(it);return pt.extractCellTemplate(It)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),it=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const It of it){const de=this._document.createElement(It.tag);de.setAttribute("role","rowgroup");for(const $e of It.outlets)de.appendChild($e.elementRef.nativeElement);pt.appendChild(de)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(it,It)=>it||It.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,D.of)()).pipe((0,T.R)(this._onDestroy)).subscribe(it=>{this._stickyStyler.direction=it,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(it=>!it._table||it._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const it=0===this._rowOutlet.viewContainer.length;if(it===this._isShowingNoDataRow)return;const It=this._noDataRowOutlet.viewContainer;if(it){const de=It.createEmbeddedView(pt.templateRef),$e=de.rootNodes[0];1===de.rootNodes.length&&(null==$e?void 0:$e.nodeType)===this._document.ELEMENT_NODE&&($e.setAttribute("role","row"),$e.classList.add(pt._contentClassName))}else It.clear();this._isShowingNoDataRow=it}}return ct.\u0275fac=function(pt){return new(pt||ct)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(b.K0),e.Y36(E.t4),e.Y36(u.k),e.Y36(S),e.Y36(k.rL),e.Y36(ue,12),e.Y36(e.R0b,8))},ct.\u0275cmp=e.Xpm({type:ct,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,it,It){if(1&pt&&(e.Suo(It,be,5),e.Suo(It,x,5),e.Suo(It,ye,5),e.Suo(It,R,5),e.Suo(It,fe,5)),2&pt){let de;e.iGM(de=e.CRH())&&(it._noDataRow=de.first),e.iGM(de=e.CRH())&&(it._contentColumnDefs=de),e.iGM(de=e.CRH())&&(it._contentRowDefs=de),e.iGM(de=e.CRH())&&(it._contentHeaderRowDefs=de),e.iGM(de=e.CRH())&&(it._contentFooterRowDefs=de)}},viewQuery:function(pt,it){if(1&pt&&(e.Gf(Le,7),e.Gf(lt,7),e.Gf(ht,7),e.Gf(Tt,7)),2&pt){let It;e.iGM(It=e.CRH())&&(it._rowOutlet=It.first),e.iGM(It=e.CRH())&&(it._headerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._footerRowOutlet=It.first),e.iGM(It=e.CRH())&&(it._noDataRowOutlet=It.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("cdk-table-fixed-layout",it.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Q,useExisting:ct},{provide:u.k,useClass:u.yy},{provide:S,useClass:I},{provide:ue,useValue:null}])],ngContentSelectors:z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[lt,Le,Tt,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})();function di(ct,Ft){return ct.concat(Array.from(Ft))}let gt=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[k.Cl]]}),ct})();var Qe=p(508),_t=p(6451),ei=p(9841),Zt=p(4004);const Pe=[[["caption"]],[["colgroup"],["col"]]],De=["caption","colgroup, col"];let ft=(()=>{class ct extends Gt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,it){2&pt&&e.ekj("mat-table-fixed-layout",it.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:u.k,useClass:u.yy},{provide:Gt,useExisting:ct},{provide:Q,useExisting:ct},{provide:S,useClass:I},{provide:ue,useValue:null}]),e.qOj],ngContentSelectors:De,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,it){1&pt&&(e.F$t(Pe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},directives:[lt,Le,Tt,ht],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ct})(),Rt=(()=>{class ct extends q{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:q,useExisting:ct}]),e.qOj]}),ct})(),et=(()=>{class ct extends ie{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:ie,useExisting:ct}]),e.qOj]}),ct})(),Re=(()=>{class ct extends se{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:se,useExisting:ct}]),e.qOj]}),ct})(),qe=(()=>{class ct extends x{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:x,useExisting:ct},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ct}]),e.qOj]}),ct})(),Ze=(()=>{class ct extends r{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),ct})(),we=(()=>{class ct extends h{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),ct})(),Fe=(()=>{class ct extends c{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),ct})(),rt=(()=>{class ct extends R{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:R,useExisting:ct}]),e.qOj]}),ct})(),at=(()=>{class ct extends fe{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:fe,useExisting:ct}]),e.qOj]}),ct})(),yt=(()=>{class ct extends ye{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275dir=e.lG2({type:ct,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:ye,useExisting:ct}]),e.qOj]}),ct})(),mi=(()=>{class ct extends Ee{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ee,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),Xt=(()=>{class ct extends te{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:te,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),Jt=(()=>{class ct extends ze{}return ct.\u0275fac=function(){let Ft;return function(it){return(Ft||(Ft=e.n5z(ct)))(it||ct)}}(),ct.\u0275cmp=e.Xpm({type:ct,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:ze,useExisting:ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,it){1&pt&&e.GkF(0,0)},directives:[ke],encapsulation:2}),ct})(),en=(()=>{class ct{}return ct.\u0275fac=function(pt){return new(pt||ct)},ct.\u0275mod=e.oAB({type:ct}),ct.\u0275inj=e.cJS({imports:[[gt,Qe.BQ],Qe.BQ]}),ct})();class Bi extends u.o2{constructor(Ft=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,it)=>{const It=pt[it];if((0,i.t6)(It)){const de=Number(It);return de<9007199254740991?de:It}return It},this.sortData=(pt,it)=>{const It=it.active,de=it.direction;return It&&""!=de?pt.sort(($e,bt)=>{let Vt=this.sortingDataAccessor($e,It),bi=this.sortingDataAccessor(bt,It);const Li=typeof Vt,Ji=typeof bi;Li!==Ji&&("number"===Li&&(Vt+=""),"number"===Ji&&(bi+=""));let Wi=0;return null!=Vt&&null!=bi?Vt>bi?Wi=1:Vt{const It=Object.keys(pt).reduce(($e,bt)=>$e+pt[bt]+"\u25ec","").toLowerCase(),de=it.trim().toLowerCase();return-1!=It.indexOf(de)},this._data=new d.X(Ft),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ft){Ft=Array.isArray(Ft)?Ft:[],this._data.next(Ft),this._renderChangesSubscription||this._filterData(Ft)}get filter(){return this._filter.value}set filter(Ft){this._filter.next(Ft),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ft){this._sort=Ft,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ft){this._paginator=Ft,this._updateChangeSubscription()}_updateChangeSubscription(){var Ft;const pt=this._sort?(0,_t.T)(this._sort.sortChange,this._sort.initialized):(0,D.of)(null),it=this._paginator?(0,_t.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,D.of)(null),de=(0,ei.a)([this._data,this._filter]).pipe((0,Zt.U)(([Vt])=>this._filterData(Vt))),$e=(0,ei.a)([de,pt]).pipe((0,Zt.U)(([Vt])=>this._orderData(Vt))),bt=(0,ei.a)([$e,it]).pipe((0,Zt.U)(([Vt])=>this._pageData(Vt)));null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=bt.subscribe(Vt=>this._renderData.next(Vt))}_filterData(Ft){return this.filteredData=null==this.filter||""===this.filter?Ft:Ft.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ft){return this.sort?this.sortData(Ft.slice(),this.sort):Ft}_pageData(Ft){if(!this.paginator)return Ft;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Ft.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Ft){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Ft,pt.pageIndex>0)){const it=Math.ceil(pt.length/pt.pageSize)-1||0,It=Math.min(pt.pageIndex,it);It!==pt.pageIndex&&(pt.pageIndex=It,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ft;null===(Ft=this._renderChangesSubscription)||void 0===Ft||Ft.unsubscribe(),this._renderChangesSubscription=null}}class Gi extends Bi{}},3251:(He,j,p)=>{"use strict";p.d(j,{BU:()=>oe,Nh:()=>et,Nj:()=>ft,SP:()=>Zt,uD:()=>Ae,uX:()=>xe});var e=p(5664),i=p(7144),u=p(7429),b=p(9808),a=p(5e3),y=p(508),d=p(6360),P=p(5698),D=p(8675),T=p(1884),M=p(2722),A=p(3900),E=p(5684),k=p(7579),w=p(727),z=p(4968),U=p(9646),W=p(6451),ne=p(515),Q=p(8306),le=p(2805),q=p(1777),ie=p(226),se=p(3191),J=p(1159),me=p(925),x=p(5303);function t(Re,qe){1&Re&&a.Hsn(0)}const r=["*"];function h(Re,qe){}const c=function(Re){return{animationDuration:Re}},C=function(Re,qe){return{value:Re,params:qe}},S=["tabListContainer"],I=["tabList"],_=["tabListInner"],n=["nextPaginator"],g=["previousPaginator"],V=["tabBodyWrapper"],R=["tabHeader"];function H(Re,qe){}function $(Re,qe){if(1&Re&&a.YNc(0,H,0,0,"ng-template",10),2&Re){const Ze=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",Ze.templateLabel)}}function fe(Re,qe){if(1&Re&&a._uU(0),2&Re){const Ze=a.oxw().$implicit;a.Oqu(Ze.textLabel)}}function ye(Re,qe){if(1&Re){const Ze=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Fe=a.CHM(Ze),rt=Fe.$implicit,at=Fe.index,yt=a.oxw(),mi=a.MAs(1);return yt._handleClick(rt,mi,at)})("cdkFocusChange",function(Fe){const at=a.CHM(Ze).index;return a.oxw()._tabFocusChanged(Fe,at)}),a.TgZ(1,"div",7),a.YNc(2,$,1,1,"ng-template",8),a.YNc(3,fe,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&Re){const Ze=qe.$implicit,we=qe.index,Fe=a.MAs(4),rt=a.oxw();a.ekj("mat-tab-label-active",rt.selectedIndex===we),a.Q6J("id",rt._getTabLabelId(we))("ngClass",Ze.labelClass)("disabled",Ze.disabled)("matRippleDisabled",Ze.disabled||rt.disableRipple),a.uIk("tabIndex",rt._getTabIndex(Ze,we))("aria-posinset",we+1)("aria-setsize",rt._tabs.length)("aria-controls",rt._getTabContentId(we))("aria-selected",rt.selectedIndex===we)("aria-label",Ze.ariaLabel||null)("aria-labelledby",!Ze.ariaLabel&&Ze.ariaLabelledby?Ze.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",Ze.templateLabel)("ngIfElse",Fe)}}function ke(Re,qe){if(1&Re){const Ze=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(Ze),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return a.CHM(Ze),a.oxw()._setTabBodyWrapperHeight(Fe)}),a.qZA()}if(2&Re){const Ze=qe.$implicit,we=qe.index,Fe=a.oxw();a.ekj("mat-tab-body-active",Fe.selectedIndex===we),a.Q6J("id",Fe._getTabContentId(we))("ngClass",Ze.bodyClass)("content",Ze.content)("position",Ze.position)("origin",Ze.origin)("animationDuration",Fe.animationDuration),a.uIk("tabindex",null!=Fe.contentTabIndex&&Fe.selectedIndex===we?Fe.contentTabIndex:null)("aria-labelledby",Fe._getTabLabelId(we))}}const Ee=["mat-tab-nav-bar",""],te=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ze(){return qe=>({left:qe?(qe.offsetLeft||0)+"px":"0",width:qe?(qe.offsetWidth||0)+"px":"0"})}});let be=(()=>{class Re{constructor(Ze,we,Fe,rt){this._elementRef=Ze,this._ngZone=we,this._inkBarPositioner=Fe,this._animationMode=rt}alignToElement(Ze){this.show(),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>{const we=this._inkBarPositioner(Ze),Fe=this._elementRef.nativeElement;Fe.style.left=we.left,Fe.style.width=we.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(te),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Ze,we){2&Ze&&a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode)}}),Re})();const Z=new a.OlP("MatTabContent"),ot=new a.OlP("MatTabLabel"),Ie=new a.OlP("MAT_TAB");let Ae=(()=>{class Re extends u.ig{constructor(Ze,we,Fe){super(Ze,we),this._closestTab=Fe}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Ie,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:ot,useExisting:Re}]),a.qOj]}),Re})();const ce=(0,y.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let xe=(()=>{class Re extends ce{constructor(Ze,we){super(),this._viewContainerRef=Ze,this._closestTabGroup=we,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Ze){this._setTemplateLabelInput(Ze)}get content(){return this._contentPortal}ngOnChanges(Ze){(Ze.hasOwnProperty("textLabel")||Ze.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new u.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ze){Ze&&Ze._closestTab===this&&(this._templateLabel=Ze)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.s_b),a.Y36(Te,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&(a.Suo(Fe,ot,5),a.Suo(Fe,Z,7,a.Rgc)),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we.templateLabel=rt.first),a.iGM(rt=a.CRH())&&(we._explicitContent=rt.first)}},viewQuery:function(Ze,we){if(1&Ze&&a.Gf(a.Rgc,7),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._implicitContent=Fe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:Ie,useExisting:Re}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(Ze,we){1&Ze&&(a.F$t(),a.YNc(0,t,1,0,"ng-template"))},encapsulation:2}),Re})();const G={translateTab:(0,q.X$)("translateTab",[(0,q.SB)("center, void, left-origin-center, right-origin-center",(0,q.oB)({transform:"none"})),(0,q.SB)("left",(0,q.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,q.SB)("right",(0,q.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,q.eR)("* => left, * => right, left => center, right => center",(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,q.eR)("void => left-origin-center",[(0,q.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,q.eR)("void => right-origin-center",[(0,q.oB)({transform:"translate3d(100%, 0, 0)"}),(0,q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ee=(()=>{class Re extends u.Pl{constructor(Ze,we,Fe,rt){super(Ze,we,rt),this._host=Fe,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,D.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ze=>{Ze&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>ve)),a.Y36(b.K0))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),Re})(),ue=(()=>{class Re{constructor(Ze,we,Fe){this._elementRef=Ze,this._dir=we,this._dirChangeSubscription=w.w0.EMPTY,this._translateTabComplete=new k.x,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",we&&(this._dirChangeSubscription=we.change.subscribe(rt=>{this._computePositionAnimationState(rt),Fe.markForCheck()})),this._translateTabComplete.pipe((0,T.x)((rt,at)=>rt.fromState===at.fromState&&rt.toState===at.toState)).subscribe(rt=>{this._isCenterPosition(rt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(rt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Ze){this._positionIndex=Ze,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ze){const we=this._isCenterPosition(Ze.toState);this._beforeCentering.emit(we),we&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ze){return"center"==Ze||"left-origin-center"==Ze||"right-origin-center"==Ze}_computePositionAnimationState(Ze=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ze?"left":"right":this._positionIndex>0?"ltr"==Ze?"right":"left":"center"}_computePositionFromOrigin(Ze){const we=this._getLayoutDirection();return"ltr"==we&&Ze<=0||"rtl"==we&&Ze>0?"left-origin-center":"right-origin-center"}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.sBO))},Re.\u0275dir=a.lG2({type:Re,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Re})(),ve=(()=>{class Re extends ue{constructor(Ze,we,Fe){super(Ze,we,Fe)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.sBO))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-body"]],viewQuery:function(Ze,we){if(1&Ze&&a.Gf(u.Pl,5),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._portalHost=Fe.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ze,we){1&Ze&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(rt){return we._onTranslateTabStarted(rt)})("@translateTab.done",function(rt){return we._translateTabComplete.next(rt)}),a.YNc(2,h,0,0,"ng-template",2),a.qZA()),2&Ze&&a.Q6J("@translateTab",a.WLB(3,C,we._position,a.VKq(1,c,we.animationDuration)))},directives:[ee],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[G.translateTab]}}),Re})();const Le=new a.OlP("MAT_TABS_CONFIG"),lt=(0,y.Id)(class{});let ht=(()=>{class Re extends lt{constructor(Ze){super(),this.elementRef=Ze}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ze,we){2&Ze&&(a.uIk("aria-disabled",!!we.disabled),a.ekj("mat-tab-disabled",we.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),Re})();const Tt=(0,me.i$)({passive:!0});let di=(()=>{class Re{constructor(Ze,we,Fe,rt,at,yt,mi){this._elementRef=Ze,this._changeDetectorRef=we,this._viewportRuler=Fe,this._dir=rt,this._ngZone=at,this._platform=yt,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,at.runOutsideAngular(()=>{(0,z.R)(Ze.nativeElement,"mouseleave").pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ze){Ze=(0,se.su)(Ze),this._selectedIndex!=Ze&&(this._selectedIndexChanged=!0,this._selectedIndex=Ze,this._keyManager&&this._keyManager.updateActiveItem(Ze))}ngAfterViewInit(){(0,z.R)(this._previousPaginator.nativeElement,"touchstart",Tt).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,z.R)(this._nextPaginator.nativeElement,"touchstart",Tt).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ze=this._dir?this._dir.change:(0,U.of)("ltr"),we=this._viewportRuler.change(150),Fe=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(Fe),(0,W.T)(Ze,we,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Fe()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,M.R)(this._destroyed)).subscribe(rt=>{this.indexFocused.emit(rt),this._setTabFocus(rt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ne.E:this._items.changes.pipe((0,D.O)(this._items),(0,A.w)(Ze=>new Q.y(we=>this._ngZone.runOutsideAngular(()=>{const Fe=new ResizeObserver(()=>{we.next()});return Ze.forEach(rt=>{Fe.observe(rt.elementRef.nativeElement)}),()=>{Fe.disconnect()}}))),(0,E.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ze){if(!(0,J.Vb)(Ze))switch(Ze.keyCode){case J.K5:case J.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ze));break;default:this._keyManager.onKeydown(Ze)}}_onContentChanges(){const Ze=this._elementRef.nativeElement.textContent;Ze!==this._currentTextContent&&(this._currentTextContent=Ze||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ze){!this._isValidIndex(Ze)||this.focusIndex===Ze||!this._keyManager||this._keyManager.setActiveItem(Ze)}_isValidIndex(Ze){if(!this._items)return!0;const we=this._items?this._items.toArray()[Ze]:null;return!!we&&!we.disabled}_setTabFocus(Ze){if(this._showPaginationControls&&this._scrollToLabel(Ze),this._items&&this._items.length){this._items.toArray()[Ze].focus();const we=this._tabListContainer.nativeElement;we.scrollLeft="ltr"==this._getLayoutDirection()?0:we.scrollWidth-we.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ze=this.scrollDistance,we="ltr"===this._getLayoutDirection()?-Ze:Ze;this._tabList.nativeElement.style.transform=`translateX(${Math.round(we)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ze){this._scrollTo(Ze)}_scrollHeader(Ze){return this._scrollTo(this._scrollDistance+("before"==Ze?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ze){this._stopInterval(),this._scrollHeader(Ze)}_scrollToLabel(Ze){if(this.disablePagination)return;const we=this._items?this._items.toArray()[Ze]:null;if(!we)return;const Fe=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:rt,offsetWidth:at}=we.elementRef.nativeElement;let yt,mi;"ltr"==this._getLayoutDirection()?(yt=rt,mi=yt+at):(mi=this._tabListInner.nativeElement.offsetWidth-rt,yt=mi-at);const Xt=this.scrollDistance,Jt=this.scrollDistance+Fe;ytJt&&(this.scrollDistance+=mi-Jt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ze=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ze||(this.scrollDistance=0),Ze!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ze}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ze=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,we=Ze?Ze.elementRef.nativeElement:null;we?this._inkBar.alignToElement(we):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ze,we){we&&null!=we.button&&0!==we.button||(this._stopInterval(),(0,le.H)(650,100).pipe((0,M.R)((0,W.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Fe,distance:rt}=this._scrollHeader(Ze);(0===rt||rt>=Fe)&&this._stopInterval()}))}_scrollTo(Ze){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const we=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(we,Ze)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:we,distance:this._scrollDistance}}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disablePagination:"disablePagination"}}),Re})(),vt=(()=>{class Re extends di{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ze){this._disableRipple=(0,se.Ig)(Ze)}_itemSelected(Ze){Ze.preventDefault()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),Re})(),kt=(()=>{class Re extends vt{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-header"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,ht,4),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(_,7),a.Gf(n,5),a.Gf(g,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Ze,we){2&Ze&&a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ze,we){1&Ze&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ze&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Re})(),gt=0;class Qe{}const _t=(0,y.pj)((0,y.Kr)(class{constructor(Re){this._elementRef=Re}}),"primary");let ei=(()=>{class Re extends _t{constructor(Ze,we,Fe,rt){var at;super(Ze),this._changeDetectorRef=we,this._animationMode=rt,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=gt++,this.animationDuration=Fe&&Fe.animationDuration?Fe.animationDuration:"500ms",this.disablePagination=!(!Fe||null==Fe.disablePagination)&&Fe.disablePagination,this.dynamicHeight=!(!Fe||null==Fe.dynamicHeight)&&Fe.dynamicHeight,this.contentTabIndex=null!==(at=null==Fe?void 0:Fe.contentTabIndex)&&void 0!==at?at:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ze){this._dynamicHeight=(0,se.Ig)(Ze)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ze){this._indexToSelect=(0,se.su)(Ze,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ze){this._animationDuration=/^\d+$/.test(Ze+"")?Ze+"ms":Ze}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ze){this._contentTabIndex=(0,se.su)(Ze,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ze){const we=this._elementRef.nativeElement;we.classList.remove(`mat-background-${this.backgroundColor}`),Ze&&we.classList.add(`mat-background-${Ze}`),this._backgroundColor=Ze}ngAfterContentChecked(){const Ze=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ze){const we=null==this._selectedIndex;if(!we){this.selectedTabChange.emit(this._createChangeEvent(Ze));const Fe=this._tabBodyWrapper.nativeElement;Fe.style.minHeight=Fe.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Fe,rt)=>Fe.isActive=rt===Ze),we||(this.selectedIndexChange.emit(Ze),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((we,Fe)=>{we.position=Fe-Ze,null!=this._selectedIndex&&0==we.position&&!we.origin&&(we.origin=Ze-this._selectedIndex)}),this._selectedIndex!==Ze&&(this._selectedIndex=Ze,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ze=this._clampTabIndex(this._indexToSelect);if(Ze===this._selectedIndex){const we=this._tabs.toArray();let Fe;for(let rt=0;rt{we[Ze].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ze))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,D.O)(this._allTabs)).subscribe(Ze=>{this._tabs.reset(Ze.filter(we=>we._closestTabGroup===this||!we._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ze){const we=this._tabHeader;we&&(we.focusIndex=Ze)}_focusChanged(Ze){this._lastFocusedTabIndex=Ze,this.focusChange.emit(this._createChangeEvent(Ze))}_createChangeEvent(Ze){const we=new Qe;return we.index=Ze,this._tabs&&this._tabs.length&&(we.tab=this._tabs.toArray()[Ze]),we}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,W.T)(...this._tabs.map(Ze=>Ze._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ze){return Math.min(this._tabs.length-1,Math.max(Ze||0,0))}_getTabLabelId(Ze){return`mat-tab-label-${this._groupId}-${Ze}`}_getTabContentId(Ze){return`mat-tab-content-${this._groupId}-${Ze}`}_setTabBodyWrapperHeight(Ze){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const we=this._tabBodyWrapper.nativeElement;we.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(we.style.height=Ze+"px")}_removeTabBodyWrapperHeight(){const Ze=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ze.clientHeight,Ze.style.height="",this.animationDone.emit()}_handleClick(Ze,we,Fe){Ze.disabled||(this.selectedIndex=we.focusIndex=Fe)}_getTabIndex(Ze,we){var Fe;return Ze.disabled?null:we===(null!==(Fe=this._lastFocusedTabIndex)&&void 0!==Fe?Fe:this.selectedIndex)?0:-1}_tabFocusChanged(Ze,we){Ze&&"mouse"!==Ze&&"touch"!==Ze&&(this._tabHeader.focusIndex=we)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),Re})(),Zt=(()=>{class Re extends ei{constructor(Ze,we,Fe,rt){super(Ze,we,Fe,rt)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Le,8),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["mat-tab-group"]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,xe,5),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._allTabs=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(V,5),a.Gf(R,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._tabBodyWrapper=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabHeader=Fe.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Ze,we){2&Ze&&a.ekj("mat-tab-group-dynamic-height",we.dynamicHeight)("mat-tab-group-inverted-header","below"===we.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:Re}]),a.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Ze,we){1&Ze&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(rt){return we._focusChanged(rt)})("selectFocusedIndex",function(rt){return we.selectedIndex=rt}),a.YNc(2,ye,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,ke,1,10,"mat-tab-body",5),a.qZA()),2&Ze&&(a.Q6J("selectedIndex",we.selectedIndex||0)("disableRipple",we.disableRipple)("disablePagination",we.disablePagination),a.xp6(2),a.Q6J("ngForOf",we._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(2),a.Q6J("ngForOf",we._tabs))},directives:[kt,ve,b.sg,ht,y.wG,e.kH,b.mk,b.O5,u.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Re})(),Pe=0,De=(()=>{class Re extends di{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,rt,at,we,Fe,yt,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ze){const we=this._elementRef.nativeElement.classList;we.remove(`mat-background-${this.backgroundColor}`),Ze&&we.add(`mat-background-${Ze}`),this._backgroundColor=Ze}get disableRipple(){return this._disableRipple}set disableRipple(Ze){this._disableRipple=(0,se.Ig)(Ze)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,D.O)(null),(0,M.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Ze=this._items.toArray();for(let we=0;we{class Re extends De{constructor(Ze,we,Fe,rt,at,yt,mi){super(Ze,we,Fe,rt,at,yt,mi)}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(a.SBq),a.Y36(ie.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(me.t4),a.Y36(d.Qb,8))},Re.\u0275cmp=a.Xpm({type:Re,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Ze,we,Fe){if(1&Ze&&a.Suo(Fe,ft,5),2&Ze){let rt;a.iGM(rt=a.CRH())&&(we._items=rt)}},viewQuery:function(Ze,we){if(1&Ze&&(a.Gf(be,7),a.Gf(S,7),a.Gf(I,7),a.Gf(_,7),a.Gf(n,5),a.Gf(g,5)),2&Ze){let Fe;a.iGM(Fe=a.CRH())&&(we._inkBar=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListContainer=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabList=Fe.first),a.iGM(Fe=a.CRH())&&(we._tabListInner=Fe.first),a.iGM(Fe=a.CRH())&&(we._nextPaginator=Fe.first),a.iGM(Fe=a.CRH())&&(we._previousPaginator=Fe.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Ze,we){2&Ze&&(a.uIk("role",we._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",we._showPaginationControls)("mat-tab-header-rtl","rtl"==we._getLayoutDirection())("mat-primary","warn"!==we.color&&"accent"!==we.color)("mat-accent","accent"===we.color)("mat-warn","warn"===we.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:Ee,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ze,we){1&Ze&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return we._handlePaginatorClick("before")})("mousedown",function(rt){return we._handlePaginatorPress("before",rt)})("touchend",function(){return we._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(rt){return we._handleKeydown(rt)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return we._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(rt){return we._handlePaginatorPress("after",rt)})("click",function(){return we._handlePaginatorClick("after")})("touchend",function(){return we._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&Ze&&(a.ekj("mat-tab-header-pagination-disabled",we._disableScrollBefore),a.Q6J("matRippleDisabled",we._disableScrollBefore||we.disableRipple)("disabled",we._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===we._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",we._disableScrollAfter),a.Q6J("matRippleDisabled",we._disableScrollAfter||we.disableRipple)("disabled",we._disableScrollAfter||null))},directives:[y.wG,i.wD,be],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Re})();const Me=(0,y.sb)((0,y.Kr)((0,y.Id)(class{})));let ut=(()=>{class Re extends Me{constructor(Ze,we,Fe,rt,at,yt){super(),this._tabNavBar=Ze,this.elementRef=we,this._focusMonitor=at,this._isActive=!1,this.id="mat-tab-link-"+Pe++,this.rippleConfig=Fe||{},this.tabIndex=parseInt(rt)||0,"NoopAnimations"===yt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Ze){const we=(0,se.Ig)(Ze);we!==this._isActive&&(this._isActive=we,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ze){this._tabNavBar.tabPanel&&Ze.keyCode===J.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var Ze;return this._tabNavBar.tabPanel?null===(Ze=this._tabNavBar.tabPanel)||void 0===Ze?void 0:Ze.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(De),a.Y36(a.SBq),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,inputs:{active:"active",id:"id"},features:[a.qOj]}),Re})(),ft=(()=>{class Re extends ut{constructor(Ze,we,Fe,rt,at,yt,mi,Xt){super(Ze,we,at,yt,mi,Xt),this._tabLinkRipple=new y.IR(this,Fe,we,rt),this._tabLinkRipple.setupTriggerEvents(we.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Re.\u0275fac=function(Ze){return new(Ze||Re)(a.Y36(oe),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(me.t4),a.Y36(y.Y2,8),a.$8M("tabindex"),a.Y36(e.tE),a.Y36(d.Qb,8))},Re.\u0275dir=a.lG2({type:Re,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Ze,we){1&Ze&&a.NdJ("focus",function(){return we._handleFocus()})("keydown",function(rt){return we._handleKeydown(rt)}),2&Ze&&(a.uIk("aria-controls",we._getAriaControls())("aria-current",we._getAriaCurrent())("aria-disabled",we.disabled)("aria-selected",we._getAriaSelected())("id",we.id)("tabIndex",we._getTabIndex())("role",we._getRole()),a.ekj("mat-tab-disabled",we.disabled)("mat-tab-label-active",we.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),Re})(),et=(()=>{class Re{}return Re.\u0275fac=function(Ze){return new(Ze||Re)},Re.\u0275mod=a.oAB({type:Re}),Re.\u0275inj=a.cJS({imports:[[b.ez,y.BQ,u.eL,y.si,i.Q8,e.rt],y.BQ]}),Re})()},4594:(He,j,p)=>{"use strict";p.d(j,{Ye:()=>D,g0:()=>M});var e=p(5e3),i=p(508),u=p(9808),b=p(925);const a=["*",[["mat-toolbar-row"]]],y=["*","mat-toolbar-row"],d=(0,i.pj)(class{constructor(A){this._elementRef=A}});let P=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),D=(()=>{class A extends d{constructor(k,w,z){super(k),this._platform=w,this._document=z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(k){return new(k||A)(e.Y36(e.SBq),e.Y36(b.t4),e.Y36(u.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(k,w,z){if(1&k&&e.Suo(z,P,5),2&k){let U;e.iGM(U=e.CRH())&&(w._toolbarRows=U)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,w){2&k&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:y,decls:2,vars:0,template:function(k,w){1&k&&(e.F$t(a),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),M=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[i.BQ],i.BQ]}),A})()},7238:(He,j,p)=>{"use strict";p.d(j,{AV:()=>I,gM:()=>c});var e=p(9776),i=p(5664),u=p(9808),b=p(5e3),a=p(508),y=p(5303),d=p(3191),P=p(1159),D=p(5113),T=p(925),M=p(7429),A=p(6360),E=p(7579),k=p(2722),w=p(5698),z=p(226);p(1777);const W=["tooltip"],le="tooltip-panel",q=(0,T.i$)({passive:!0}),J=new b.OlP("mat-tooltip-scroll-strategy"),x={provide:J,deps:[e.aV],useFactory:function me(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},t=new b.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let h=(()=>{class n{constructor(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z){this._overlay=V,this._elementRef=R,this._scrollDispatcher=H,this._viewContainerRef=$,this._ngZone=fe,this._platform=ye,this._ariaDescriber=ke,this._focusMonitor=Ee,this._dir=ze,this._defaultOptions=be,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E.x,this._scrollStrategy=te,this._document=Z,be&&(be.position&&(this.position=be.position),be.touchGestures&&(this.touchGestures=be.touchGestures)),ze.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var R;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(R=this._tooltipInstance)||void 0===R||R.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,d.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,d.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,d.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([R,H])=>{V.removeEventListener(R,H,q)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const R=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=R.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var V;if(this._overlayRef)return this._overlayRef;const R=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(R);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe($=>{this._updateCurrentPositionClass($.connectionPair),this._tooltipInstance&&$.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${le}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var $;return null===($=this._tooltipInstance)||void 0===$?void 0:$._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe($=>{this._isTooltipVisible()&&$.keyCode===P.hY&&!(0,P.Vb)($)&&($.preventDefault(),$.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(V=this._defaultOptions)||void 0===V?void 0:V.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const R=V.getConfig().positionStrategy,H=this._getOrigin(),$=this._getOverlayPosition();R.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),$.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),$.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R||"below"==R?H={originX:"center",originY:"above"==R?"top":"bottom"}:"before"==R||"left"==R&&V||"right"==R&&!V?H={originX:"start",originY:"center"}:("after"==R||"right"==R&&V||"left"==R&&!V)&&(H={originX:"end",originY:"center"});const{x:$,y:fe}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:$,originY:fe}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,R=this.position;let H;"above"==R?H={overlayX:"center",overlayY:"bottom"}:"below"==R?H={overlayX:"center",overlayY:"top"}:"before"==R||"left"==R&&V||"right"==R&&!V?H={overlayX:"end",overlayY:"center"}:("after"==R||"right"==R&&V||"left"==R&&!V)&&(H={overlayX:"start",overlayY:"center"});const{x:$,y:fe}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:$,overlayY:fe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,w.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,R){return"above"===this.position||"below"===this.position?"top"===R?R="bottom":"bottom"===R&&(R="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:R}}_updateCurrentPositionClass(V){const{overlayY:R,originX:H,originY:$}=V;let fe;if(fe="center"===R?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===R&&"top"===$?"above":"below",fe!==this._currentPosition){const ye=this._overlayRef;if(ye){const ke=`${this._cssClassPrefix}-${le}-`;ye.removePanelClass(ke+this._currentPosition),ye.addPanelClass(ke+fe)}this._currentPosition=fe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",R=>{var H;const $=R.relatedTarget;(!$||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains($)))&&this.hide()}],["wheel",R=>this._wheelListener(R)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const R=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",R],["touchcancel",R])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([R,H])=>{this._elementRef.nativeElement.addEventListener(R,H,q)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const R=this._document.elementFromPoint(V.clientX,V.clientY),H=this._elementRef.nativeElement;R!==H&&!H.contains(R)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const R=this._elementRef.nativeElement,H=R.style;("on"===V||"INPUT"!==R.nodeName&&"TEXTAREA"!==R.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===V||!R.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(V){b.$Z()},n.\u0275dir=b.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends h{constructor(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z){super(V,R,H,$,fe,ye,ke,Ee,te,ze,be,Z),this._tooltipComponent=S}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(e.aV),b.Y36(b.SBq),b.Y36(y.mF),b.Y36(b.s_b),b.Y36(b.R0b),b.Y36(T.t4),b.Y36(i.$s),b.Y36(i.tE),b.Y36(J),b.Y36(z.Is,8),b.Y36(t,8),b.Y36(u.K0))},n.\u0275dir=b.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[b.qOj]}),n})(),C=(()=>{class n{constructor(V,R){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new E.x,this._animationsDisabled="NoopAnimations"===R}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const R=this._tooltip.nativeElement,H=this._showAnimation,$=this._hideAnimation;if(R.classList.remove(V?$:H),R.classList.add(V?H:$),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const fe=getComputedStyle(R);("0s"===fe.getPropertyValue("animation-duration")||"none"===fe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(R.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(b.sBO),b.Y36(A.Qb,8))},n.\u0275dir=b.lG2({type:n}),n})(),S=(()=>{class n extends C{constructor(V,R,H){super(V,H),this._breakpointObserver=R,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(V){return new(V||n)(b.Y36(b.sBO),b.Y36(D.Yg),b.Y36(A.Qb,8))},n.\u0275cmp=b.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(V,R){if(1&V&&b.Gf(W,7),2&V){let H;b.iGM(H=b.CRH())&&(R._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,R){1&V&&b.NdJ("mouseleave",function($){return R._handleMouseLeave($)}),2&V&&b.Udp("zoom",R.isVisible()?1:null)},features:[b.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,R){if(1&V&&(b.TgZ(0,"div",0,1),b.NdJ("animationend",function($){return R._handleAnimationEnd($)}),b.ALo(2,"async"),b._uU(3),b.qZA()),2&V){let H;b.ekj("mat-tooltip-handset",null==(H=b.lcZ(2,4,R._isHandset))?null:H.matches),b.Q6J("ngClass",R.tooltipClass),b.xp6(3),b.Oqu(R.message)}},directives:[u.mk],pipes:[u.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(V){return new(V||n)},n.\u0275mod=b.oAB({type:n}),n.\u0275inj=b.cJS({providers:[x],imports:[[i.rt,u.ez,e.U8,a.BQ],a.BQ,y.ZD]}),n})()},149:(He,j,p)=>{"use strict";p.d(j,{Ar:()=>k,GZ:()=>A,WX:()=>le,dp:()=>W,eu:()=>z,fQ:()=>M,gi:()=>w,uo:()=>T});var e=p(8258),i=p(5e3),u=p(508),b=p(3191),a=p(449),y=p(1135),d=p(6451),P=p(4004);const D=(0,u.sb)((0,u.Id)(e.Hs));let T=(()=>{class q extends D{constructor(se,J,me){super(se,J),this.tabIndex=Number(me)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.SBq),i.Y36(e._0),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[i._Bn([{provide:e.Hs,useExisting:q}]),i.qOj]}),q})(),M=(()=>{class q extends e.rO{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i._Bn([{provide:e.rO,useExisting:q}]),i.qOj]}),q})(),A=(()=>{class q extends e.Xx{constructor(se,J,me,x){super(se,J,me),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(se){this._disabled=(0,b.Ig)(se)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(se){this._tabIndex=null!=se?se:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.SBq),i.Y36(e._0),i.Y36(i.ZZ4),i.$8M("tabindex"))},q.\u0275dir=i.lG2({type:q,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[i._Bn([{provide:e.Xx,useExisting:q},{provide:e.Hs,useExisting:q},{provide:e.HI,useExisting:q}]),i.qOj]}),q})(),k=(()=>{class q{constructor(se,J){this.viewContainer=se,this._node=J}}return q.\u0275fac=function(se){return new(se||q)(i.Y36(i.s_b),i.Y36(e.HI,8))},q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeOutlet",""]],features:[i._Bn([{provide:e.cu,useExisting:q}])]}),q})(),w=(()=>{class q extends e._0{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275cmp=i.Xpm({type:q,selectors:[["mat-tree"]],viewQuery:function(se,J){if(1&se&&i.Gf(k,7),2&se){let me;i.iGM(me=i.CRH())&&(J._nodeOutlet=me.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[i._Bn([{provide:e._0,useExisting:q}]),i.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(se,J){1&se&&i.GkF(0,0)},directives:[k],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),q})(),z=(()=>{class q extends e.Ud{}return q.\u0275fac=function(){let ie;return function(J){return(ie||(ie=i.n5z(q)))(J||q)}}(),q.\u0275dir=i.lG2({type:q,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i._Bn([{provide:e.Ud,useExisting:q}]),i.qOj]}),q})(),W=(()=>{class q{}return q.\u0275fac=function(se){return new(se||q)},q.\u0275mod=i.oAB({type:q}),q.\u0275inj=i.cJS({imports:[[e.nZ,u.BQ],u.BQ]}),q})();class le extends a.o2{constructor(){super(...arguments),this._data=new y.X([])}get data(){return this._data.value}set data(ie){this._data.next(ie)}connect(ie){return(0,d.T)(ie.viewChange,this._data).pipe((0,P.U)(()=>this.data))}disconnect(){}}},6360:(He,j,p)=>{"use strict";p.d(j,{Qb:()=>Ia,PW:()=>Vr});var e=p(5e3),i=p(2313),u=p(1777);const b=!1;function y(Ct){return new e.vHH(3e3,b)}function fe(){return"undefined"!=typeof window&&void 0!==window.document}function ye(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ke(Ct){switch(Ct.length){case 0:return new u.ZN;case 1:return Ct[0];default:return new u.ZE(Ct)}}function Ee(Ct,re,pe,Ge,xt={},Ht={}){const ii=[],ni=[];let Ci=-1,Pi=null;if(Ge.forEach(tn=>{const cn=tn.offset,wn=cn==Ci,Pn=wn&&Pi||{};Object.keys(tn).forEach(yn=>{let Ln=yn,Qn=tn[yn];if("offset"!==yn)switch(Ln=re.normalizePropertyName(Ln,ii),Qn){case u.k1:Qn=xt[yn];break;case u.l3:Qn=Ht[yn];break;default:Qn=re.normalizeStyleValue(yn,Ln,Qn,ii)}Pn[Ln]=Qn}),wn||ni.push(Pn),Pi=Pn,Ci=cn}),ii.length)throw function h(Ct){return new e.vHH(3502,b)}();return ni}function te(Ct,re,pe,Ge){switch(re){case"start":Ct.onStart(()=>Ge(pe&&ze(pe,"start",Ct)));break;case"done":Ct.onDone(()=>Ge(pe&&ze(pe,"done",Ct)));break;case"destroy":Ct.onDestroy(()=>Ge(pe&&ze(pe,"destroy",Ct)))}}function ze(Ct,re,pe){const Ge=pe.totalTime,Ht=be(Ct.element,Ct.triggerName,Ct.fromState,Ct.toState,re||Ct.phaseName,null==Ge?Ct.totalTime:Ge,!!pe.disabled),ii=Ct._data;return null!=ii&&(Ht._data=ii),Ht}function be(Ct,re,pe,Ge,xt="",Ht=0,ii){return{element:Ct,triggerName:re,fromState:pe,toState:Ge,phaseName:xt,totalTime:Ht,disabled:!!ii}}function Z(Ct,re,pe){let Ge;return Ct instanceof Map?(Ge=Ct.get(re),Ge||Ct.set(re,Ge=pe)):(Ge=Ct[re],Ge||(Ge=Ct[re]=pe)),Ge}function Y(Ct){const re=Ct.indexOf(":");return[Ct.substring(1,re),Ct.substr(re+1)]}let ot=(Ct,re)=>!1,Ie=(Ct,re,pe)=>[],Ae=null;function ce(Ct){const re=Ct.parentNode||Ct.host;return re===Ae?null:re}(ye()||"undefined"!=typeof Element)&&(fe()?(Ae=(()=>document.documentElement)(),ot=(Ct,re)=>{for(;re;){if(re===Ct)return!0;re=ce(re)}return!1}):ot=(Ct,re)=>Ct.contains(re),Ie=(Ct,re,pe)=>{if(pe)return Array.from(Ct.querySelectorAll(re));const Ge=Ct.querySelector(re);return Ge?[Ge]:[]});let G=null,ee=!1;function ue(Ct){G||(G=function ve(){return"undefined"!=typeof document?document.body:null}()||{},ee=!!G.style&&"WebkitAppearance"in G.style);let re=!0;return G.style&&!function xe(Ct){return"ebkit"==Ct.substring(1,6)}(Ct)&&(re=Ct in G.style,!re&&ee&&(re="Webkit"+Ct.charAt(0).toUpperCase()+Ct.substr(1)in G.style)),re}const Le=ot,lt=Ie;let Tt=(()=>{class Ct{validateStyleProperty(pe){return ue(pe)}matchesElement(pe,Ge){return!1}containsElement(pe,Ge){return Le(pe,Ge)}getParentElement(pe){return ce(pe)}query(pe,Ge,xt){return lt(pe,Ge,xt)}computeStyle(pe,Ge,xt){return xt||""}animate(pe,Ge,xt,Ht,ii,ni=[],Ci){return new u.ZN(xt,Ht)}}return Ct.\u0275fac=function(pe){return new(pe||Ct)},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})(),hi=(()=>{class Ct{}return Ct.NOOP=new Tt,Ct})();const vt="ng-enter",kt="ng-leave",gt="ng-trigger",Qe=".ng-trigger",_t="ng-animating",ei=".ng-animating";function Zt(Ct){if("number"==typeof Ct)return Ct;const re=Ct.match(/^(-?[\.\d]+)(m?s)/);return!re||re.length<2?0:Pe(parseFloat(re[1]),re[2])}function Pe(Ct,re){return"s"===re?1e3*Ct:Ct}function De(Ct,re,pe){return Ct.hasOwnProperty("duration")?Ct:function oe(Ct,re,pe){let xt,Ht=0,ii="";if("string"==typeof Ct){const ni=Ct.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return re.push(y()),{duration:0,delay:0,easing:""};xt=Pe(parseFloat(ni[1]),ni[2]);const Ci=ni[3];null!=Ci&&(Ht=Pe(parseFloat(Ci),ni[4]));const Pi=ni[5];Pi&&(ii=Pi)}else xt=Ct;if(!pe){let ni=!1,Ci=re.length;xt<0&&(re.push(function d(){return new e.vHH(3100,b)}()),ni=!0),Ht<0&&(re.push(function P(){return new e.vHH(3101,b)}()),ni=!0),ni&&re.splice(Ci,0,y())}return{duration:xt,delay:Ht,easing:ii}}(Ct,re,pe)}function Me(Ct,re={}){return Object.keys(Ct).forEach(pe=>{re[pe]=Ct[pe]}),re}function ft(Ct,re,pe={}){if(re)for(let Ge in Ct)pe[Ge]=Ct[Ge];else Me(Ct,pe);return pe}function Rt(Ct,re,pe){return pe?re+":"+pe+";":""}function et(Ct){let re="";for(let pe=0;pe{const xt=Xt(Ge);pe&&!pe.hasOwnProperty(Ge)&&(pe[Ge]=Ct.style[xt]),Ct.style[xt]=re[Ge]}),ye()&&et(Ct))}function qe(Ct,re){Ct.style&&(Object.keys(re).forEach(pe=>{const Ge=Xt(pe);Ct.style[Ge]=""}),ye()&&et(Ct))}function Ze(Ct){return Array.isArray(Ct)?1==Ct.length?Ct[0]:(0,u.vP)(Ct):Ct}const Fe=new RegExp("{{\\s*(.+?)\\s*}}","g");function rt(Ct){let re=[];if("string"==typeof Ct){let pe;for(;pe=Fe.exec(Ct);)re.push(pe[1]);Fe.lastIndex=0}return re}function at(Ct,re,pe){const Ge=Ct.toString(),xt=Ge.replace(Fe,(Ht,ii)=>{let ni=re[ii];return re.hasOwnProperty(ii)||(pe.push(function T(Ct){return new e.vHH(3003,b)}()),ni=""),ni.toString()});return xt==Ge?Ct:xt}function yt(Ct){const re=[];let pe=Ct.next();for(;!pe.done;)re.push(pe.value),pe=Ct.next();return re}const mi=/-+([a-z0-9])/g;function Xt(Ct){return Ct.replace(mi,(...re)=>re[1].toUpperCase())}function Jt(Ct){return Ct.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(Ct,re,pe){switch(re.type){case 7:return Ct.visitTrigger(re,pe);case 0:return Ct.visitState(re,pe);case 1:return Ct.visitTransition(re,pe);case 2:return Ct.visitSequence(re,pe);case 3:return Ct.visitGroup(re,pe);case 4:return Ct.visitAnimate(re,pe);case 5:return Ct.visitKeyframes(re,pe);case 6:return Ct.visitStyle(re,pe);case 8:return Ct.visitReference(re,pe);case 9:return Ct.visitAnimateChild(re,pe);case 10:return Ct.visitAnimateRef(re,pe);case 11:return Ct.visitQuery(re,pe);case 12:return Ct.visitStagger(re,pe);default:throw function M(Ct){return new e.vHH(3004,b)}()}}function en(Ct,re){return window.getComputedStyle(Ct)[re]}function de(Ct,re){const pe=[];return"string"==typeof Ct?Ct.split(/\s*,\s*/).forEach(Ge=>function $e(Ct,re,pe){if(":"==Ct[0]){const Ci=function bt(Ct,re){switch(Ct){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ge)=>parseFloat(Ge)>parseFloat(pe);case":decrement":return(pe,Ge)=>parseFloat(Ge) *"}}(Ct,pe);if("function"==typeof Ci)return void re.push(Ci);Ct=Ci}const Ge=Ct.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ge||Ge.length<4)return pe.push(function J(Ct){return new e.vHH(3015,b)}()),re;const xt=Ge[1],Ht=Ge[2],ii=Ge[3];re.push(Li(xt,ii));"<"==Ht[0]&&!("*"==xt&&"*"==ii)&&re.push(Li(ii,xt))}(Ge,pe,re)):pe.push(Ct),pe}const Vt=new Set(["true","1"]),bi=new Set(["false","0"]);function Li(Ct,re){const pe=Vt.has(Ct)||bi.has(Ct),Ge=Vt.has(re)||bi.has(re);return(xt,Ht)=>{let ii="*"==Ct||Ct==xt,ni="*"==re||re==Ht;return!ii&&pe&&"boolean"==typeof xt&&(ii=xt?Vt.has(Ct):bi.has(Ct)),!ni&&Ge&&"boolean"==typeof Ht&&(ni=Ht?Vt.has(re):bi.has(re)),ii&&ni}}const Wi=new RegExp("s*:selfs*,?","g");function sn(Ct,re,pe,Ge){return new Yt(Ct).build(re,pe,Ge)}class Yt{constructor(re){this._driver=re}build(re,pe,Ge){const xt=new Nt(pe);this._resetContextStyleTimingState(xt);const Ht=si(this,Ze(re),xt);return xt.unsupportedCSSPropertiesFound.size&&xt.unsupportedCSSPropertiesFound.keys(),Ht}_resetContextStyleTimingState(re){re.currentQuerySelector="",re.collectedStyles={},re.collectedStyles[""]={},re.currentTime=0}visitTrigger(re,pe){let Ge=pe.queryCount=0,xt=pe.depCount=0;const Ht=[],ii=[];return"@"==re.name.charAt(0)&&pe.errors.push(function E(){return new e.vHH(3006,b)}()),re.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(pe),0==ni.type){const Ci=ni,Pi=Ci.name;Pi.toString().split(/\s*,\s*/).forEach(tn=>{Ci.name=tn,Ht.push(this.visitState(Ci,pe))}),Ci.name=Pi}else if(1==ni.type){const Ci=this.visitTransition(ni,pe);Ge+=Ci.queryCount,xt+=Ci.depCount,ii.push(Ci)}else pe.errors.push(function k(){return new e.vHH(3007,b)}())}),{type:7,name:re.name,states:Ht,transitions:ii,queryCount:Ge,depCount:xt,options:null}}visitState(re,pe){const Ge=this.visitStyle(re.styles,pe),xt=re.options&&re.options.params||null;if(Ge.containsDynamicStyles){const Ht=new Set,ii=xt||{};Ge.styles.forEach(ni=>{if(pi(ni)){const Ci=ni;Object.keys(Ci).forEach(Pi=>{rt(Ci[Pi]).forEach(tn=>{ii.hasOwnProperty(tn)||Ht.add(tn)})})}}),Ht.size&&(yt(Ht.values()),pe.errors.push(function w(Ct,re){return new e.vHH(3008,b)}()))}return{type:0,name:re.name,style:Ge,options:xt?{params:xt}:null}}visitTransition(re,pe){pe.queryCount=0,pe.depCount=0;const Ge=si(this,Ze(re.animation),pe);return{type:1,matchers:de(re.expr,pe.errors),animation:Ge,queryCount:pe.queryCount,depCount:pe.depCount,options:ki(re.options)}}visitSequence(re,pe){return{type:2,steps:re.steps.map(Ge=>si(this,Ge,pe)),options:ki(re.options)}}visitGroup(re,pe){const Ge=pe.currentTime;let xt=0;const Ht=re.steps.map(ii=>{pe.currentTime=Ge;const ni=si(this,ii,pe);return xt=Math.max(xt,pe.currentTime),ni});return pe.currentTime=xt,{type:3,steps:Ht,options:ki(re.options)}}visitAnimate(re,pe){const Ge=function Ri(Ct,re){if(Ct.hasOwnProperty("duration"))return Ct;if("number"==typeof Ct)return hn(De(Ct,re).duration,0,"");const pe=Ct;if(pe.split(/\s+/).some(Ht=>"{"==Ht.charAt(0)&&"{"==Ht.charAt(1))){const Ht=hn(0,0,"");return Ht.dynamic=!0,Ht.strValue=pe,Ht}const xt=De(pe,re);return hn(xt.duration,xt.delay,xt.easing)}(re.timings,pe.errors);pe.currentAnimateTimings=Ge;let xt,Ht=re.styles?re.styles:(0,u.oB)({});if(5==Ht.type)xt=this.visitKeyframes(Ht,pe);else{let ii=re.styles,ni=!1;if(!ii){ni=!0;const Pi={};Ge.easing&&(Pi.easing=Ge.easing),ii=(0,u.oB)(Pi)}pe.currentTime+=Ge.duration+Ge.delay;const Ci=this.visitStyle(ii,pe);Ci.isEmptyStep=ni,xt=Ci}return pe.currentAnimateTimings=null,{type:4,timings:Ge,style:xt,options:null}}visitStyle(re,pe){const Ge=this._makeStyleAst(re,pe);return this._validateStyleAst(Ge,pe),Ge}_makeStyleAst(re,pe){const Ge=[];Array.isArray(re.styles)?re.styles.forEach(ii=>{"string"==typeof ii?ii==u.l3?Ge.push(ii):pe.errors.push(function z(Ct){return new e.vHH(3002,b)}()):Ge.push(ii)}):Ge.push(re.styles);let xt=!1,Ht=null;return Ge.forEach(ii=>{if(pi(ii)){const ni=ii,Ci=ni.easing;if(Ci&&(Ht=Ci,delete ni.easing),!xt)for(let Pi in ni)if(ni[Pi].toString().indexOf("{{")>=0){xt=!0;break}}}),{type:6,styles:Ge,easing:Ht,offset:re.offset,containsDynamicStyles:xt,options:null}}_validateStyleAst(re,pe){const Ge=pe.currentAnimateTimings;let xt=pe.currentTime,Ht=pe.currentTime;Ge&&Ht>0&&(Ht-=Ge.duration+Ge.delay),re.styles.forEach(ii=>{"string"!=typeof ii&&Object.keys(ii).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ii[ni],void pe.unsupportedCSSPropertiesFound.add(ni);const Ci=pe.collectedStyles[pe.currentQuerySelector],Pi=Ci[ni];let tn=!0;Pi&&(Ht!=xt&&Ht>=Pi.startTime&&xt<=Pi.endTime&&(pe.errors.push(function W(Ct,re,pe,Ge,xt){return new e.vHH(3010,b)}()),tn=!1),Ht=Pi.startTime),tn&&(Ci[ni]={startTime:Ht,endTime:xt}),pe.options&&function we(Ct,re,pe){const Ge=re.params||{},xt=rt(Ct);xt.length&&xt.forEach(Ht=>{Ge.hasOwnProperty(Ht)||pe.push(function D(Ct){return new e.vHH(3001,b)}())})}(ii[ni],pe.options,pe.errors)})})}visitKeyframes(re,pe){const Ge={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function ne(){return new e.vHH(3011,b)}()),Ge;let Ht=0;const ii=[];let ni=!1,Ci=!1,Pi=0;const tn=re.steps.map(xr=>{const dr=this._makeStyleAst(xr,pe);let Zr=null!=dr.offset?dr.offset:function Kt(Ct){if("string"==typeof Ct)return null;let re=null;if(Array.isArray(Ct))Ct.forEach(pe=>{if(pi(pe)&&pe.hasOwnProperty("offset")){const Ge=pe;re=parseFloat(Ge.offset),delete Ge.offset}});else if(pi(Ct)&&Ct.hasOwnProperty("offset")){const pe=Ct;re=parseFloat(pe.offset),delete pe.offset}return re}(dr.styles),Gr=0;return null!=Zr&&(Ht++,Gr=dr.offset=Zr),Ci=Ci||Gr<0||Gr>1,ni=ni||Gr0&&Ht{const Zr=wn>0?dr==Pn?1:wn*dr:ii[dr],Gr=Zr*Qn;pe.currentTime=yn+Ln.delay+Gr,Ln.duration=Gr,this._validateStyleAst(xr,pe),xr.offset=Zr,Ge.styles.push(xr)}),Ge}visitReference(re,pe){return{type:8,animation:si(this,Ze(re.animation),pe),options:ki(re.options)}}visitAnimateChild(re,pe){return pe.depCount++,{type:9,options:ki(re.options)}}visitAnimateRef(re,pe){return{type:10,animation:this.visitReference(re.animation,pe),options:ki(re.options)}}visitQuery(re,pe){const Ge=pe.currentQuerySelector,xt=re.options||{};pe.queryCount++,pe.currentQuery=re;const[Ht,ii]=function Mi(Ct){const re=!!Ct.split(/\s*,\s*/).find(pe=>":self"==pe);return re&&(Ct=Ct.replace(Wi,"")),Ct=Ct.replace(/@\*/g,Qe).replace(/@\w+/g,pe=>Qe+"-"+pe.substr(1)).replace(/:animating/g,ei),[Ct,re]}(re.selector);pe.currentQuerySelector=Ge.length?Ge+" "+Ht:Ht,Z(pe.collectedStyles,pe.currentQuerySelector,{});const ni=si(this,Ze(re.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ge,{type:11,selector:Ht,limit:xt.limit||0,optional:!!xt.optional,includeSelf:ii,animation:ni,originalSelector:re.selector,options:ki(re.options)}}visitStagger(re,pe){pe.currentQuery||pe.errors.push(function ie(){return new e.vHH(3013,b)}());const Ge="full"===re.timings?{duration:0,delay:0,easing:"full"}:De(re.timings,pe.errors,!0);return{type:12,animation:si(this,Ze(re.animation),pe),timings:Ge,options:null}}}class Nt{constructor(re){this.errors=re,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function pi(Ct){return!Array.isArray(Ct)&&"object"==typeof Ct}function ki(Ct){return Ct?(Ct=Me(Ct)).params&&(Ct.params=function Je(Ct){return Ct?Me(Ct):null}(Ct.params)):Ct={},Ct}function hn(Ct,re,pe){return{duration:Ct,delay:re,easing:pe}}function Hn(Ct,re,pe,Ge,xt,Ht,ii=null,ni=!1){return{type:1,element:Ct,keyframes:re,preStyleProps:pe,postStyleProps:Ge,duration:xt,delay:Ht,totalTime:xt+Ht,easing:ii,subTimeline:ni}}class An{constructor(){this._map=new Map}get(re){return this._map.get(re)||[]}append(re,pe){let Ge=this._map.get(re);Ge||this._map.set(re,Ge=[]),Ge.push(...pe)}has(re){return this._map.has(re)}clear(){this._map.clear()}}const wi=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function Gn(Ct,re,pe,Ge,xt,Ht={},ii={},ni,Ci,Pi=[]){return(new ar).buildKeyframes(Ct,re,pe,Ge,xt,Ht,ii,ni,Ci,Pi)}class ar{buildKeyframes(re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn=[]){Pi=Pi||new An;const cn=new Pr(re,pe,Pi,xt,Ht,tn,[]);cn.options=Ci,cn.currentTimeline.setStyles([ii],null,cn.errors,Ci),si(this,Ge,cn);const wn=cn.timelines.filter(Pn=>Pn.containsAnimation());if(Object.keys(ni).length){let Pn;for(let yn=wn.length-1;yn>=0;yn--){const Ln=wn[yn];if(Ln.element===pe){Pn=Ln;break}}Pn&&!Pn.allowOnlyTimelineStyles()&&Pn.setStyles([ni],null,cn.errors,Ci)}return wn.length?wn.map(Pn=>Pn.buildKeyframes()):[Hn(pe,[],[],[],0,0,"",!1)]}visitTrigger(re,pe){}visitState(re,pe){}visitTransition(re,pe){}visitAnimateChild(re,pe){const Ge=pe.subInstructions.get(pe.element);if(Ge){const xt=pe.createSubContext(re.options),Ht=pe.currentTimeline.currentTime,ii=this._visitSubInstructions(Ge,xt,xt.options);Ht!=ii&&pe.transformIntoNewTimeline(ii)}pe.previousNode=re}visitAnimateRef(re,pe){const Ge=pe.createSubContext(re.options);Ge.transformIntoNewTimeline(),this.visitReference(re.animation,Ge),pe.transformIntoNewTimeline(Ge.currentTimeline.currentTime),pe.previousNode=re}_visitSubInstructions(re,pe,Ge){let Ht=pe.currentTimeline.currentTime;const ii=null!=Ge.duration?Zt(Ge.duration):null,ni=null!=Ge.delay?Zt(Ge.delay):null;return 0!==ii&&re.forEach(Ci=>{const Pi=pe.appendInstructionToTimeline(Ci,ii,ni);Ht=Math.max(Ht,Pi.duration+Pi.delay)}),Ht}visitReference(re,pe){pe.updateOptions(re.options,!0),si(this,re.animation,pe),pe.previousNode=re}visitSequence(re,pe){const Ge=pe.subContextCount;let xt=pe;const Ht=re.options;if(Ht&&(Ht.params||Ht.delay)&&(xt=pe.createSubContext(Ht),xt.transformIntoNewTimeline(),null!=Ht.delay)){6==xt.previousNode.type&&(xt.currentTimeline.snapshotCurrentStyles(),xt.previousNode=kr);const ii=Zt(Ht.delay);xt.delayNextStep(ii)}re.steps.length&&(re.steps.forEach(ii=>si(this,ii,xt)),xt.currentTimeline.applyStylesToKeyframe(),xt.subContextCount>Ge&&xt.transformIntoNewTimeline()),pe.previousNode=re}visitGroup(re,pe){const Ge=[];let xt=pe.currentTimeline.currentTime;const Ht=re.options&&re.options.delay?Zt(re.options.delay):0;re.steps.forEach(ii=>{const ni=pe.createSubContext(re.options);Ht&&ni.delayNextStep(Ht),si(this,ii,ni),xt=Math.max(xt,ni.currentTimeline.currentTime),Ge.push(ni.currentTimeline)}),Ge.forEach(ii=>pe.currentTimeline.mergeTimelineCollectedStyles(ii)),pe.transformIntoNewTimeline(xt),pe.previousNode=re}_visitTiming(re,pe){if(re.dynamic){const Ge=re.strValue;return De(pe.params?at(Ge,pe.params,pe.errors):Ge,pe.errors)}return{duration:re.duration,delay:re.delay,easing:re.easing}}visitAnimate(re,pe){const Ge=pe.currentAnimateTimings=this._visitTiming(re.timings,pe),xt=pe.currentTimeline;Ge.delay&&(pe.incrementTime(Ge.delay),xt.snapshotCurrentStyles());const Ht=re.style;5==Ht.type?this.visitKeyframes(Ht,pe):(pe.incrementTime(Ge.duration),this.visitStyle(Ht,pe),xt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=re}visitStyle(re,pe){const Ge=pe.currentTimeline,xt=pe.currentAnimateTimings;!xt&&Ge.getCurrentStyleProperties().length&&Ge.forwardFrame();const Ht=xt&&xt.easing||re.easing;re.isEmptyStep?Ge.applyEmptyStep(Ht):Ge.setStyles(re.styles,Ht,pe.errors,pe.options),pe.previousNode=re}visitKeyframes(re,pe){const Ge=pe.currentAnimateTimings,xt=pe.currentTimeline.duration,Ht=Ge.duration,ni=pe.createSubContext().currentTimeline;ni.easing=Ge.easing,re.styles.forEach(Ci=>{ni.forwardTime((Ci.offset||0)*Ht),ni.setStyles(Ci.styles,Ci.easing,pe.errors,pe.options),ni.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(ni),pe.transformIntoNewTimeline(xt+Ht),pe.previousNode=re}visitQuery(re,pe){const Ge=pe.currentTimeline.currentTime,xt=re.options||{},Ht=xt.delay?Zt(xt.delay):0;Ht&&(6===pe.previousNode.type||0==Ge&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=kr);let ii=Ge;const ni=pe.invokeQuery(re.selector,re.originalSelector,re.limit,re.includeSelf,!!xt.optional,pe.errors);pe.currentQueryTotal=ni.length;let Ci=null;ni.forEach((Pi,tn)=>{pe.currentQueryIndex=tn;const cn=pe.createSubContext(re.options,Pi);Ht&&cn.delayNextStep(Ht),Pi===pe.element&&(Ci=cn.currentTimeline),si(this,re.animation,cn),cn.currentTimeline.applyStylesToKeyframe(),ii=Math.max(ii,cn.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(ii),Ci&&(pe.currentTimeline.mergeTimelineCollectedStyles(Ci),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=re}visitStagger(re,pe){const Ge=pe.parentContext,xt=pe.currentTimeline,Ht=re.timings,ii=Math.abs(Ht.duration),ni=ii*(pe.currentQueryTotal-1);let Ci=ii*pe.currentQueryIndex;switch(Ht.duration<0?"reverse":Ht.easing){case"reverse":Ci=ni-Ci;break;case"full":Ci=Ge.currentStaggerTime}const tn=pe.currentTimeline;Ci&&tn.delayNextStep(Ci);const cn=tn.currentTime;si(this,re.animation,pe),pe.previousNode=re,Ge.currentStaggerTime=xt.currentTime-cn+(xt.startTime-Ge.currentTimeline.startTime)}}const kr={};class Pr{constructor(re,pe,Ge,xt,Ht,ii,ni,Ci){this._driver=re,this.element=pe,this.subInstructions=Ge,this._enterClassName=xt,this._leaveClassName=Ht,this.errors=ii,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ci||new ia(this._driver,pe,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(re,pe){if(!re)return;const Ge=re;let xt=this.options;null!=Ge.duration&&(xt.duration=Zt(Ge.duration)),null!=Ge.delay&&(xt.delay=Zt(Ge.delay));const Ht=Ge.params;if(Ht){let ii=xt.params;ii||(ii=this.options.params={}),Object.keys(Ht).forEach(ni=>{(!pe||!ii.hasOwnProperty(ni))&&(ii[ni]=at(Ht[ni],ii,this.errors))})}}_copyOptions(){const re={};if(this.options){const pe=this.options.params;if(pe){const Ge=re.params={};Object.keys(pe).forEach(xt=>{Ge[xt]=pe[xt]})}}return re}createSubContext(re=null,pe,Ge){const xt=pe||this.element,Ht=new Pr(this._driver,xt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xt,Ge||0));return Ht.previousNode=this.previousNode,Ht.currentAnimateTimings=this.currentAnimateTimings,Ht.options=this._copyOptions(),Ht.updateOptions(re),Ht.currentQueryIndex=this.currentQueryIndex,Ht.currentQueryTotal=this.currentQueryTotal,Ht.parentContext=this,this.subContextCount++,Ht}transformIntoNewTimeline(re){return this.previousNode=kr,this.currentTimeline=this.currentTimeline.fork(this.element,re),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(re,pe,Ge){const xt={duration:null!=pe?pe:re.duration,delay:this.currentTimeline.currentTime+(null!=Ge?Ge:0)+re.delay,easing:""},Ht=new sa(this._driver,re.element,re.keyframes,re.preStyleProps,re.postStyleProps,xt,re.stretchStartingKeyframe);return this.timelines.push(Ht),xt}incrementTime(re){this.currentTimeline.forwardTime(this.currentTimeline.duration+re)}delayNextStep(re){re>0&&this.currentTimeline.delayNextStep(re)}invokeQuery(re,pe,Ge,xt,Ht,ii){let ni=[];if(xt&&ni.push(this.element),re.length>0){re=(re=re.replace(wi,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let Pi=this._driver.query(this.element,re,1!=Ge);0!==Ge&&(Pi=Ge<0?Pi.slice(Pi.length+Ge,Pi.length):Pi.slice(0,Ge)),ni.push(...Pi)}return!Ht&&0==ni.length&&ii.push(function se(Ct){return new e.vHH(3014,b)}()),ni}}class ia{constructor(re,pe,Ge,xt){this._driver=re,this.element=pe,this.startTime=Ge,this._elementTimelineStylesLookup=xt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(re){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+re),pe&&this.snapshotCurrentStyles()):this.startTime+=re}fork(re,pe){return this.applyStylesToKeyframe(),new ia(this._driver,re,pe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(re){this.applyStylesToKeyframe(),this.duration=re,this._loadKeyframe()}_updateStyle(re,pe){this._localTimelineStyles[re]=pe,this._globalTimelineStyles[re]=pe,this._styleSummary[re]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(re){re&&(this._previousKeyframe.easing=re),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||u.l3,this._currentKeyframe[pe]=u.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(re,pe,Ge,xt){pe&&(this._previousKeyframe.easing=pe);const Ht=xt&&xt.params||{},ii=function La(Ct,re){const pe={};let Ge;return Ct.forEach(xt=>{"*"===xt?(Ge=Ge||Object.keys(re),Ge.forEach(Ht=>{pe[Ht]=u.l3})):ft(xt,!1,pe)}),pe}(re,this._globalTimelineStyles);Object.keys(ii).forEach(ni=>{const Ci=at(ii[ni],Ht,Ge);this._pendingStyles[ni]=Ci,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:u.l3),this._updateStyle(ni,Ci)})}applyStylesToKeyframe(){const re=this._pendingStyles,pe=Object.keys(re);0!=pe.length&&(this._pendingStyles={},pe.forEach(Ge=>{this._currentKeyframe[Ge]=re[Ge]}),Object.keys(this._localTimelineStyles).forEach(Ge=>{this._currentKeyframe.hasOwnProperty(Ge)||(this._currentKeyframe[Ge]=this._localTimelineStyles[Ge])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(re=>{const pe=this._localTimelineStyles[re];this._pendingStyles[re]=pe,this._updateStyle(re,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const re=[];for(let pe in this._currentKeyframe)re.push(pe);return re}mergeTimelineCollectedStyles(re){Object.keys(re._styleSummary).forEach(pe=>{const Ge=this._styleSummary[pe],xt=re._styleSummary[pe];(!Ge||xt.time>Ge.time)&&this._updateStyle(pe,xt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const re=new Set,pe=new Set,Ge=1===this._keyframes.size&&0===this.duration;let xt=[];this._keyframes.forEach((ni,Ci)=>{const Pi=ft(ni,!0);Object.keys(Pi).forEach(tn=>{const cn=Pi[tn];cn==u.k1?re.add(tn):cn==u.l3&&pe.add(tn)}),Ge||(Pi.offset=Ci/this.duration),xt.push(Pi)});const Ht=re.size?yt(re.values()):[],ii=pe.size?yt(pe.values()):[];if(Ge){const ni=xt[0],Ci=Me(ni);ni.offset=0,Ci.offset=1,xt=[ni,Ci]}return Hn(this.element,xt,Ht,ii,this.duration,this.startTime,this.easing,!1)}}class sa extends ia{constructor(re,pe,Ge,xt,Ht,ii,ni=!1){super(re,pe,ii.delay),this.keyframes=Ge,this.preStyleProps=xt,this.postStyleProps=Ht,this._stretchStartingKeyframe=ni,this.timings={duration:ii.duration,delay:ii.delay,easing:ii.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let re=this.keyframes,{delay:pe,duration:Ge,easing:xt}=this.timings;if(this._stretchStartingKeyframe&&pe){const Ht=[],ii=Ge+pe,ni=pe/ii,Ci=ft(re[0],!1);Ci.offset=0,Ht.push(Ci);const Pi=ft(re[0],!1);Pi.offset=oa(ni),Ht.push(Pi);const tn=re.length-1;for(let cn=1;cn<=tn;cn++){let wn=ft(re[cn],!1);wn.offset=oa((pe+wn.offset*Ge)/ii),Ht.push(wn)}Ge=ii,pe=0,xt="",re=Ht}return Hn(this.element,re,this.preStyleProps,this.postStyleProps,Ge,pe,xt,!0)}}function oa(Ct,re=3){const pe=Math.pow(10,re-1);return Math.round(Ct*pe)/pe}class rr{}class na extends rr{normalizePropertyName(re,pe){return Xt(re)}normalizeStyleValue(re,pe,Ge,xt){let Ht="";const ii=Ge.toString().trim();if(Ra[pe]&&0!==Ge&&"0"!==Ge)if("number"==typeof Ge)Ht="px";else{const ni=Ge.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&xt.push(function A(Ct,re){return new e.vHH(3005,b)}())}return ii+Ht}}const Ra=(()=>function qr(Ct){const re={};return Ct.forEach(pe=>re[pe]=!0),re}("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".split(",")))();function xa(Ct,re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn,cn,wn){return{type:0,element:Ct,triggerName:re,isRemovalTransition:xt,fromState:pe,fromStyles:Ht,toState:Ge,toStyles:ii,timelines:ni,queriedElements:Ci,preStyleProps:Pi,postStyleProps:tn,totalTime:cn,errors:wn}}const Rr={};class Xn{constructor(re,pe,Ge){this._triggerName=re,this.ast=pe,this._stateStyles=Ge}match(re,pe,Ge,xt){return function la(Ct,re,pe,Ge,xt){return Ct.some(Ht=>Ht(re,pe,Ge,xt))}(this.ast.matchers,re,pe,Ge,xt)}buildStyles(re,pe,Ge){const xt=this._stateStyles["*"],Ht=this._stateStyles[re],ii=xt?xt.buildStyles(pe,Ge):{};return Ht?Ht.buildStyles(pe,Ge):ii}build(re,pe,Ge,xt,Ht,ii,ni,Ci,Pi,tn){const cn=[],wn=this.ast.options&&this.ast.options.params||Rr,yn=this.buildStyles(Ge,ni&&ni.params||Rr,cn),Ln=Ci&&Ci.params||Rr,Qn=this.buildStyles(xt,Ln,cn),xr=new Set,dr=new Map,Zr=new Map,Gr="void"===xt,hr={params:Object.assign(Object.assign({},wn),Ln)},zr=tn?[]:Gn(re,pe,this.ast.animation,Ht,ii,yn,Qn,hr,Pi,cn);let zn=0;if(zr.forEach(ka=>{zn=Math.max(ka.duration+ka.delay,zn)}),cn.length)return xa(pe,this._triggerName,Ge,xt,Gr,yn,Qn,[],[],dr,Zr,zn,cn);zr.forEach(ka=>{const tt=ka.element,Et=Z(dr,tt,{});ka.preStyleProps.forEach(Pt=>Et[Pt]=!0);const St=Z(Zr,tt,{});ka.postStyleProps.forEach(Pt=>St[Pt]=!0),tt!==pe&&xr.add(tt)});const ur=yt(xr.values());return xa(pe,this._triggerName,Ge,xt,Gr,yn,Qn,zr,ur,dr,Zr,zn)}}class tr{constructor(re,pe,Ge){this.styles=re,this.defaultParams=pe,this.normalizer=Ge}buildStyles(re,pe){const Ge={},xt=Me(this.defaultParams);return Object.keys(re).forEach(Ht=>{const ii=re[Ht];null!=ii&&(xt[Ht]=ii)}),this.styles.styles.forEach(Ht=>{if("string"!=typeof Ht){const ii=Ht;Object.keys(ii).forEach(ni=>{let Ci=ii[ni];Ci.length>1&&(Ci=at(Ci,xt,pe));const Pi=this.normalizer.normalizePropertyName(ni,pe);Ci=this.normalizer.normalizeStyleValue(ni,Pi,Ci,pe),Ge[Pi]=Ci})}}),Ge}}class lr{constructor(re,pe,Ge){this.name=re,this.ast=pe,this._normalizer=Ge,this.transitionFactories=[],this.states={},pe.states.forEach(xt=>{this.states[xt.name]=new tr(xt.style,xt.options&&xt.options.params||{},Ge)}),jr(this.states,"true","1"),jr(this.states,"false","0"),pe.transitions.forEach(xt=>{this.transitionFactories.push(new Xn(re,xt,this.states))}),this.fallbackTransition=function ma(Ct,re,pe){return new Xn(Ct,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ii,ni)=>!0],options:null,queryCount:0,depCount:0},re)}(re,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(re,pe,Ge,xt){return this.transitionFactories.find(ii=>ii.match(re,pe,Ge,xt))||null}matchStyles(re,pe,Ge){return this.fallbackTransition.buildStyles(re,pe,Ge)}}function jr(Ct,re,pe){Ct.hasOwnProperty(re)?Ct.hasOwnProperty(pe)||(Ct[pe]=Ct[re]):Ct.hasOwnProperty(pe)&&(Ct[re]=Ct[pe])}const Dr=new An;class Nr{constructor(re,pe,Ge){this.bodyNode=re,this._driver=pe,this._normalizer=Ge,this._animations={},this._playersById={},this.players=[]}register(re,pe){const Ge=[],Ht=sn(this._driver,pe,Ge,[]);if(Ge.length)throw function c(Ct){return new e.vHH(3503,b)}();this._animations[re]=Ht}_buildPlayer(re,pe,Ge){const xt=re.element,Ht=Ee(0,this._normalizer,0,re.keyframes,pe,Ge);return this._driver.animate(xt,Ht,re.duration,re.delay,re.easing,[],!0)}create(re,pe,Ge={}){const xt=[],Ht=this._animations[re];let ii;const ni=new Map;if(Ht?(ii=Gn(this._driver,pe,Ht,vt,kt,{},{},Ge,Dr,xt),ii.forEach(tn=>{const cn=Z(ni,tn.element,{});tn.postStyleProps.forEach(wn=>cn[wn]=null)})):(xt.push(function C(){return new e.vHH(3300,b)}()),ii=[]),xt.length)throw function S(Ct){return new e.vHH(3504,b)}();ni.forEach((tn,cn)=>{Object.keys(tn).forEach(wn=>{tn[wn]=this._driver.computeStyle(cn,wn,u.l3)})});const Pi=ke(ii.map(tn=>{const cn=ni.get(tn.element);return this._buildPlayer(tn,{},cn)}));return this._playersById[re]=Pi,Pi.onDestroy(()=>this.destroy(re)),this.players.push(Pi),Pi}destroy(re){const pe=this._getPlayer(re);pe.destroy(),delete this._playersById[re];const Ge=this.players.indexOf(pe);Ge>=0&&this.players.splice(Ge,1)}_getPlayer(re){const pe=this._playersById[re];if(!pe)throw function I(Ct){return new e.vHH(3301,b)}();return pe}listen(re,pe,Ge,xt){const Ht=be(pe,"","","");return te(this._getPlayer(re),Ge,Ht,xt),()=>{}}command(re,pe,Ge,xt){if("register"==Ge)return void this.register(re,xt[0]);if("create"==Ge)return void this.create(re,pe,xt[0]||{});const Ht=this._getPlayer(re);switch(Ge){case"play":Ht.play();break;case"pause":Ht.pause();break;case"reset":Ht.reset();break;case"restart":Ht.restart();break;case"finish":Ht.finish();break;case"init":Ht.init();break;case"setPosition":Ht.setPosition(parseFloat(xt[0]));break;case"destroy":this.destroy(re)}}}const Ur="ng-animate-queued",gr="ng-animate-disabled",Jn=[],ga={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ma={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$n="__ng_removed";class qn{constructor(re,pe=""){this.namespaceId=pe;const Ge=re&&re.hasOwnProperty("value");if(this.value=function je(Ct){return null!=Ct?Ct:null}(Ge?re.value:re),Ge){const Ht=Me(re);delete Ht.value,this.options=Ht}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(re){const pe=re.params;if(pe){const Ge=this.options.params;Object.keys(pe).forEach(xt=>{null==Ge[xt]&&(Ge[xt]=pe[xt])})}}}const Hr="void",br=new qn(Hr);class Fr{constructor(re,pe,Ge){this.id=re,this.hostElement=pe,this._engine=Ge,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+re,Oi(pe,this._hostClassName)}listen(re,pe,Ge,xt){if(!this._triggers.hasOwnProperty(pe))throw function _(Ct,re){return new e.vHH(3302,b)}();if(null==Ge||0==Ge.length)throw function n(Ct){return new e.vHH(3303,b)}();if(!function Ye(Ct){return"start"==Ct||"done"==Ct}(Ge))throw function g(Ct,re){return new e.vHH(3400,b)}();const Ht=Z(this._elementListeners,re,[]),ii={name:pe,phase:Ge,callback:xt};Ht.push(ii);const ni=Z(this._engine.statesByElement,re,{});return ni.hasOwnProperty(pe)||(Oi(re,gt),Oi(re,gt+"-"+pe),ni[pe]=br),()=>{this._engine.afterFlush(()=>{const Ci=Ht.indexOf(ii);Ci>=0&&Ht.splice(Ci,1),this._triggers[pe]||delete ni[pe]})}}register(re,pe){return!this._triggers[re]&&(this._triggers[re]=pe,!0)}_getTrigger(re){const pe=this._triggers[re];if(!pe)throw function V(Ct){return new e.vHH(3401,b)}();return pe}trigger(re,pe,Ge,xt=!0){const Ht=this._getTrigger(pe),ii=new Aa(this.id,pe,re);let ni=this._engine.statesByElement.get(re);ni||(Oi(re,gt),Oi(re,gt+"-"+pe),this._engine.statesByElement.set(re,ni={}));let Ci=ni[pe];const Pi=new qn(Ge,this.id);if(!(Ge&&Ge.hasOwnProperty("value"))&&Ci&&Pi.absorbOptions(Ci.options),ni[pe]=Pi,Ci||(Ci=br),Pi.value!==Hr&&Ci.value===Pi.value){if(!function mt(Ct,re){const pe=Object.keys(Ct),Ge=Object.keys(re);if(pe.length!=Ge.length)return!1;for(let xt=0;xt{qe(re,Qn),Re(re,xr)})}return}const wn=Z(this._engine.playersByElement,re,[]);wn.forEach(Ln=>{Ln.namespaceId==this.id&&Ln.triggerName==pe&&Ln.queued&&Ln.destroy()});let Pn=Ht.matchTransition(Ci.value,Pi.value,re,Pi.params),yn=!1;if(!Pn){if(!xt)return;Pn=Ht.fallbackTransition,yn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:pe,transition:Pn,fromState:Ci,toState:Pi,player:ii,isFallbackTransition:yn}),yn||(Oi(re,Ur),ii.onStart(()=>{rn(re,Ur)})),ii.onDone(()=>{let Ln=this.players.indexOf(ii);Ln>=0&&this.players.splice(Ln,1);const Qn=this._engine.playersByElement.get(re);if(Qn){let xr=Qn.indexOf(ii);xr>=0&&Qn.splice(xr,1)}}),this.players.push(ii),wn.push(ii),ii}deregister(re){delete this._triggers[re],this._engine.statesByElement.forEach((pe,Ge)=>{delete pe[re]}),this._elementListeners.forEach((pe,Ge)=>{this._elementListeners.set(Ge,pe.filter(xt=>xt.name!=re))})}clearElementCache(re){this._engine.statesByElement.delete(re),this._elementListeners.delete(re);const pe=this._engine.playersByElement.get(re);pe&&(pe.forEach(Ge=>Ge.destroy()),this._engine.playersByElement.delete(re))}_signalRemovalForInnerTriggers(re,pe){const Ge=this._engine.driver.query(re,Qe,!0);Ge.forEach(xt=>{if(xt[$n])return;const Ht=this._engine.fetchNamespacesByElement(xt);Ht.size?Ht.forEach(ii=>ii.triggerLeaveAnimation(xt,pe,!1,!0)):this.clearElementCache(xt)}),this._engine.afterFlushAnimationsDone(()=>Ge.forEach(xt=>this.clearElementCache(xt)))}triggerLeaveAnimation(re,pe,Ge,xt){const Ht=this._engine.statesByElement.get(re),ii=new Map;if(Ht){const ni=[];if(Object.keys(Ht).forEach(Ci=>{if(ii.set(Ci,Ht[Ci].value),this._triggers[Ci]){const Pi=this.trigger(re,Ci,Hr,xt);Pi&&ni.push(Pi)}}),ni.length)return this._engine.markElementAsRemoved(this.id,re,!0,pe,ii),Ge&&ke(ni).onDone(()=>this._engine.processLeaveNode(re)),!0}return!1}prepareLeaveAnimationListeners(re){const pe=this._elementListeners.get(re),Ge=this._engine.statesByElement.get(re);if(pe&&Ge){const xt=new Set;pe.forEach(Ht=>{const ii=Ht.name;if(xt.has(ii))return;xt.add(ii);const Ci=this._triggers[ii].fallbackTransition,Pi=Ge[ii]||br,tn=new qn(Hr),cn=new Aa(this.id,ii,re);this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:ii,transition:Ci,fromState:Pi,toState:tn,player:cn,isFallbackTransition:!0})})}}removeNode(re,pe){const Ge=this._engine;if(re.childElementCount&&this._signalRemovalForInnerTriggers(re,pe),this.triggerLeaveAnimation(re,pe,!0))return;let xt=!1;if(Ge.totalAnimations){const Ht=Ge.players.length?Ge.playersByQueriedElement.get(re):[];if(Ht&&Ht.length)xt=!0;else{let ii=re;for(;ii=ii.parentNode;)if(Ge.statesByElement.get(ii)){xt=!0;break}}}if(this.prepareLeaveAnimationListeners(re),xt)Ge.markElementAsRemoved(this.id,re,!1,pe);else{const Ht=re[$n];(!Ht||Ht===ga)&&(Ge.afterFlush(()=>this.clearElementCache(re)),Ge.destroyInnerAnimations(re),Ge._onRemovalComplete(re,pe))}}insertNode(re,pe){Oi(re,this._hostClassName)}drainQueuedTransitions(re){const pe=[];return this._queue.forEach(Ge=>{const xt=Ge.player;if(xt.destroyed)return;const Ht=Ge.element,ii=this._elementListeners.get(Ht);ii&&ii.forEach(ni=>{if(ni.name==Ge.triggerName){const Ci=be(Ht,Ge.triggerName,Ge.fromState.value,Ge.toState.value);Ci._data=re,te(Ge.player,ni.phase,Ci,ni.callback)}}),xt.markedForDestroy?this._engine.afterFlush(()=>{xt.destroy()}):pe.push(Ge)}),this._queue=[],pe.sort((Ge,xt)=>{const Ht=Ge.transition.ast.depCount,ii=xt.transition.ast.depCount;return 0==Ht||0==ii?Ht-ii:this._engine.driver.containsElement(Ge.element,xt.element)?1:-1})}destroy(re){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,re)}elementContainsData(re){let pe=!1;return this._elementListeners.has(re)&&(pe=!0),pe=!!this._queue.find(Ge=>Ge.element===re)||pe,pe}}class ha{constructor(re,pe,Ge){this.bodyNode=re,this.driver=pe,this._normalizer=Ge,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=(xt,Ht)=>{}}_onRemovalComplete(re,pe){this.onRemovalComplete(re,pe)}get queuedPlayers(){const re=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ge=>{Ge.queued&&re.push(Ge)})}),re}createNamespace(re,pe){const Ge=new Fr(re,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ge,pe):(this.newHostElements.set(pe,Ge),this.collectEnterElement(pe)),this._namespaceLookup[re]=Ge}_balanceNamespaceList(re,pe){const Ge=this._namespaceList,xt=this.namespacesByHostElement,Ht=Ge.length-1;if(Ht>=0){let ii=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(pe);for(;ni;){const Ci=xt.get(ni);if(Ci){const Pi=Ge.indexOf(Ci);Ge.splice(Pi+1,0,re),ii=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Ht;ni>=0;ni--)if(this.driver.containsElement(Ge[ni].hostElement,pe)){Ge.splice(ni+1,0,re),ii=!0;break}ii||Ge.unshift(re)}else Ge.push(re);return xt.set(pe,re),re}register(re,pe){let Ge=this._namespaceLookup[re];return Ge||(Ge=this.createNamespace(re,pe)),Ge}registerTrigger(re,pe,Ge){let xt=this._namespaceLookup[re];xt&&xt.register(pe,Ge)&&this.totalAnimations++}destroy(re,pe){if(!re)return;const Ge=this._fetchNamespace(re);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ge.hostElement),delete this._namespaceLookup[re];const xt=this._namespaceList.indexOf(Ge);xt>=0&&this._namespaceList.splice(xt,1)}),this.afterFlushAnimationsDone(()=>Ge.destroy(pe))}_fetchNamespace(re){return this._namespaceLookup[re]}fetchNamespacesByElement(re){const pe=new Set,Ge=this.statesByElement.get(re);if(Ge){const xt=Object.keys(Ge);for(let Ht=0;Ht=0&&this.collectedLeaveElements.splice(ii,1)}if(re){const ii=this._fetchNamespace(re);ii&&ii.insertNode(pe,Ge)}xt&&this.collectEnterElement(pe)}collectEnterElement(re){this.collectedEnterElements.push(re)}markElementAsDisabled(re,pe){pe?this.disabledNodes.has(re)||(this.disabledNodes.add(re),Oi(re,gr)):this.disabledNodes.has(re)&&(this.disabledNodes.delete(re),rn(re,gr))}removeNode(re,pe,Ge,xt){if(Mt(pe)){const Ht=re?this._fetchNamespace(re):null;if(Ht?Ht.removeNode(pe,xt):this.markElementAsRemoved(re,pe,!1,xt),Ge){const ii=this.namespacesByHostElement.get(pe);ii&&ii.id!==re&&ii.removeNode(pe,xt)}}else this._onRemovalComplete(pe,xt)}markElementAsRemoved(re,pe,Ge,xt,Ht){this.collectedLeaveElements.push(pe),pe[$n]={namespaceId:re,setForRemoval:xt,hasAnimation:Ge,removedBeforeQueried:!1,previousTriggersValues:Ht}}listen(re,pe,Ge,xt,Ht){return Mt(pe)?this._fetchNamespace(re).listen(pe,Ge,xt,Ht):()=>{}}_buildInstruction(re,pe,Ge,xt,Ht){return re.transition.build(this.driver,re.element,re.fromState.value,re.toState.value,Ge,xt,re.fromState.options,re.toState.options,pe,Ht)}destroyInnerAnimations(re){let pe=this.driver.query(re,Qe,!0);pe.forEach(Ge=>this.destroyActiveAnimationsForElement(Ge)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(re,ei,!0),pe.forEach(Ge=>this.finishActiveQueriedAnimationOnElement(Ge)))}destroyActiveAnimationsForElement(re){const pe=this.playersByElement.get(re);pe&&pe.forEach(Ge=>{Ge.queued?Ge.markedForDestroy=!0:Ge.destroy()})}finishActiveQueriedAnimationOnElement(re){const pe=this.playersByQueriedElement.get(re);pe&&pe.forEach(Ge=>Ge.finish())}whenRenderingDone(){return new Promise(re=>{if(this.players.length)return ke(this.players).onDone(()=>re());re()})}processLeaveNode(re){var pe;const Ge=re[$n];if(Ge&&Ge.setForRemoval){if(re[$n]=ga,Ge.namespaceId){this.destroyInnerAnimations(re);const xt=this._fetchNamespace(Ge.namespaceId);xt&&xt.clearElementCache(re)}this._onRemovalComplete(re,Ge.setForRemoval)}(null===(pe=re.classList)||void 0===pe?void 0:pe.contains(gr))&&this.markElementAsDisabled(re,!1),this.driver.query(re,".ng-animate-disabled",!0).forEach(xt=>{this.markElementAsDisabled(xt,!1)})}flush(re=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ge,xt)=>this._balanceNamespaceList(Ge,xt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ge=0;GeGe()),this._flushFns=[],this._whenQuietFns.length){const Ge=this._whenQuietFns;this._whenQuietFns=[],pe.length?ke(pe).onDone(()=>{Ge.forEach(xt=>xt())}):Ge.forEach(xt=>xt())}}reportError(re){throw function R(Ct){return new e.vHH(3402,b)}()}_flushAnimations(re,pe){const Ge=new An,xt=[],Ht=new Map,ii=[],ni=new Map,Ci=new Map,Pi=new Map,tn=new Set;this.disabledNodes.forEach(ti=>{tn.add(ti);const fi=this.driver.query(ti,".ng-animate-queued",!0);for(let Ei=0;Ei{const Ei=vt+Ln++;yn.set(fi,Ei),ti.forEach(Ki=>Oi(Ki,Ei))});const Qn=[],xr=new Set,dr=new Set;for(let ti=0;tixr.add(Ki)):dr.add(fi))}const Zr=new Map,Gr=Si(wn,Array.from(xr));Gr.forEach((ti,fi)=>{const Ei=kt+Ln++;Zr.set(fi,Ei),ti.forEach(Ki=>Oi(Ki,Ei))}),re.push(()=>{Pn.forEach((ti,fi)=>{const Ei=yn.get(fi);ti.forEach(Ki=>rn(Ki,Ei))}),Gr.forEach((ti,fi)=>{const Ei=Zr.get(fi);ti.forEach(Ki=>rn(Ki,Ei))}),Qn.forEach(ti=>{this.processLeaveNode(ti)})});const hr=[],zr=[];for(let ti=this._namespaceList.length-1;ti>=0;ti--)this._namespaceList[ti].drainQueuedTransitions(pe).forEach(Ei=>{const Ki=Ei.player,Qi=Ei.element;if(hr.push(Ki),this.collectedEnterElements.length){const ir=Qi[$n];if(ir&&ir.setForMove){if(ir.previousTriggersValues&&ir.previousTriggersValues.has(Ei.triggerName)){const _r=ir.previousTriggersValues.get(Ei.triggerName),fr=this.statesByElement.get(Ei.element);fr&&fr[Ei.triggerName]&&(fr[Ei.triggerName].value=_r)}return void Ki.destroy()}}const on=!cn||!this.driver.containsElement(cn,Qi),xn=Zr.get(Qi),jn=yn.get(Qi),On=this._buildInstruction(Ei,Ge,jn,xn,on);if(On.errors&&On.errors.length)return void zr.push(On);if(on)return Ki.onStart(()=>qe(Qi,On.fromStyles)),Ki.onDestroy(()=>Re(Qi,On.toStyles)),void xt.push(Ki);if(Ei.isFallbackTransition)return Ki.onStart(()=>qe(Qi,On.fromStyles)),Ki.onDestroy(()=>Re(Qi,On.toStyles)),void xt.push(Ki);const Kr=[];On.timelines.forEach(ir=>{ir.stretchStartingKeyframe=!0,this.disabledNodes.has(ir.element)||Kr.push(ir)}),On.timelines=Kr,Ge.append(Qi,On.timelines),ii.push({instruction:On,player:Ki,element:Qi}),On.queriedElements.forEach(ir=>Z(ni,ir,[]).push(Ki)),On.preStyleProps.forEach((ir,_r)=>{const fr=Object.keys(ir);if(fr.length){let Ir=Ci.get(_r);Ir||Ci.set(_r,Ir=new Set),fr.forEach(Br=>Ir.add(Br))}}),On.postStyleProps.forEach((ir,_r)=>{const fr=Object.keys(ir);let Ir=Pi.get(_r);Ir||Pi.set(_r,Ir=new Set),fr.forEach(Br=>Ir.add(Br))})});if(zr.length){const ti=[];zr.forEach(fi=>{ti.push(function $(Ct,re){return new e.vHH(3505,b)}())}),hr.forEach(fi=>fi.destroy()),this.reportError(ti)}const zn=new Map,ur=new Map;ii.forEach(ti=>{const fi=ti.element;Ge.has(fi)&&(ur.set(fi,fi),this._beforeAnimationBuild(ti.player.namespaceId,ti.instruction,zn))}),xt.forEach(ti=>{const fi=ti.element;this._getPreviousPlayers(fi,!1,ti.namespaceId,ti.triggerName,null).forEach(Ki=>{Z(zn,fi,[]).push(Ki),Ki.destroy()})});const ka=Qn.filter(ti=>$t(ti,Ci,Pi)),tt=new Map;ri(tt,this.driver,dr,Pi,u.l3).forEach(ti=>{$t(ti,Ci,Pi)&&ka.push(ti)});const St=new Map;Pn.forEach((ti,fi)=>{ri(St,this.driver,new Set(ti),Ci,u.k1)}),ka.forEach(ti=>{const fi=tt.get(ti),Ei=St.get(ti);tt.set(ti,Object.assign(Object.assign({},fi),Ei))});const Pt=[],qt=[],gi={};ii.forEach(ti=>{const{element:fi,player:Ei,instruction:Ki}=ti;if(Ge.has(fi)){if(tn.has(fi))return Ei.onDestroy(()=>Re(fi,Ki.toStyles)),Ei.disabled=!0,Ei.overrideTotalTime(Ki.totalTime),void xt.push(Ei);let Qi=gi;if(ur.size>1){let xn=fi;const jn=[];for(;xn=xn.parentNode;){const On=ur.get(xn);if(On){Qi=On;break}jn.push(xn)}jn.forEach(On=>ur.set(On,Qi))}const on=this._buildAnimation(Ei.namespaceId,Ki,zn,Ht,St,tt);if(Ei.setRealPlayer(on),Qi===gi)Pt.push(Ei);else{const xn=this.playersByElement.get(Qi);xn&&xn.length&&(Ei.parentPlayer=ke(xn)),xt.push(Ei)}}else qe(fi,Ki.fromStyles),Ei.onDestroy(()=>Re(fi,Ki.toStyles)),qt.push(Ei),tn.has(fi)&&xt.push(Ei)}),qt.forEach(ti=>{const fi=Ht.get(ti.element);if(fi&&fi.length){const Ei=ke(fi);ti.setRealPlayer(Ei)}}),xt.forEach(ti=>{ti.parentPlayer?ti.syncPlayerEvents(ti.parentPlayer):ti.destroy()});for(let ti=0;ti!on.destroyed);Qi.length?Yn(this,fi,Qi):this.processLeaveNode(fi)}return Qn.length=0,Pt.forEach(ti=>{this.players.push(ti),ti.onDone(()=>{ti.destroy();const fi=this.players.indexOf(ti);this.players.splice(fi,1)}),ti.play()}),Pt}elementContainsData(re,pe){let Ge=!1;const xt=pe[$n];return xt&&xt.setForRemoval&&(Ge=!0),this.playersByElement.has(pe)&&(Ge=!0),this.playersByQueriedElement.has(pe)&&(Ge=!0),this.statesByElement.has(pe)&&(Ge=!0),this._fetchNamespace(re).elementContainsData(pe)||Ge}afterFlush(re){this._flushFns.push(re)}afterFlushAnimationsDone(re){this._whenQuietFns.push(re)}_getPreviousPlayers(re,pe,Ge,xt,Ht){let ii=[];if(pe){const ni=this.playersByQueriedElement.get(re);ni&&(ii=ni)}else{const ni=this.playersByElement.get(re);if(ni){const Ci=!Ht||Ht==Hr;ni.forEach(Pi=>{Pi.queued||!Ci&&Pi.triggerName!=xt||ii.push(Pi)})}}return(Ge||xt)&&(ii=ii.filter(ni=>!(Ge&&Ge!=ni.namespaceId||xt&&xt!=ni.triggerName))),ii}_beforeAnimationBuild(re,pe,Ge){const Ht=pe.element,ii=pe.isRemovalTransition?void 0:re,ni=pe.isRemovalTransition?void 0:pe.triggerName;for(const Ci of pe.timelines){const Pi=Ci.element,tn=Pi!==Ht,cn=Z(Ge,Pi,[]);this._getPreviousPlayers(Pi,tn,ii,ni,pe.toState).forEach(Pn=>{const yn=Pn.getRealPlayer();yn.beforeDestroy&&yn.beforeDestroy(),Pn.destroy(),cn.push(Pn)})}qe(Ht,pe.fromStyles)}_buildAnimation(re,pe,Ge,xt,Ht,ii){const ni=pe.triggerName,Ci=pe.element,Pi=[],tn=new Set,cn=new Set,wn=pe.timelines.map(yn=>{const Ln=yn.element;tn.add(Ln);const Qn=Ln[$n];if(Qn&&Qn.removedBeforeQueried)return new u.ZN(yn.duration,yn.delay);const xr=Ln!==Ci,dr=function At(Ct){const re=[];return oi(Ct,re),re}((Ge.get(Ln)||Jn).map(zn=>zn.getRealPlayer())).filter(zn=>!!zn.element&&zn.element===Ln),Zr=Ht.get(Ln),Gr=ii.get(Ln),hr=Ee(0,this._normalizer,0,yn.keyframes,Zr,Gr),zr=this._buildPlayer(yn,hr,dr);if(yn.subTimeline&&xt&&cn.add(Ln),xr){const zn=new Aa(re,ni,Ln);zn.setRealPlayer(zr),Pi.push(zn)}return zr});Pi.forEach(yn=>{Z(this.playersByQueriedElement,yn.element,[]).push(yn),yn.onDone(()=>function Wn(Ct,re,pe){let Ge;if(Ct instanceof Map){if(Ge=Ct.get(re),Ge){if(Ge.length){const xt=Ge.indexOf(pe);Ge.splice(xt,1)}0==Ge.length&&Ct.delete(re)}}else if(Ge=Ct[re],Ge){if(Ge.length){const xt=Ge.indexOf(pe);Ge.splice(xt,1)}0==Ge.length&&delete Ct[re]}return Ge}(this.playersByQueriedElement,yn.element,yn))}),tn.forEach(yn=>Oi(yn,_t));const Pn=ke(wn);return Pn.onDestroy(()=>{tn.forEach(yn=>rn(yn,_t)),Re(Ci,pe.toStyles)}),cn.forEach(yn=>{Z(xt,yn,[]).push(Pn)}),Pn}_buildPlayer(re,pe,Ge){return pe.length>0?this.driver.animate(re.element,pe,re.duration,re.delay,re.easing,Ge):new u.ZN(re.duration,re.delay)}}class Aa{constructor(re,pe,Ge){this.namespaceId=re,this.triggerName=pe,this.element=Ge,this._player=new u.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(re){this._containsRealPlayer||(this._player=re,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(Ge=>te(re,pe,void 0,Ge))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(re.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(re){this.totalTime=re}syncPlayerEvents(re){const pe=this._player;pe.triggerCallback&&re.onStart(()=>pe.triggerCallback("start")),re.onDone(()=>this.finish()),re.onDestroy(()=>this.destroy())}_queueEvent(re,pe){Z(this._queuedCallbacks,re,[]).push(pe)}onDone(re){this.queued&&this._queueEvent("done",re),this._player.onDone(re)}onStart(re){this.queued&&this._queueEvent("start",re),this._player.onStart(re)}onDestroy(re){this.queued&&this._queueEvent("destroy",re),this._player.onDestroy(re)}init(){this._player.init()}hasStarted(){return!this.queued&&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(re){this.queued||this._player.setPosition(re)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(re){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(re)}}function Mt(Ct){return Ct&&1===Ct.nodeType}function Ot(Ct,re){const pe=Ct.style.display;return Ct.style.display=null!=re?re:"none",pe}function ri(Ct,re,pe,Ge,xt){const Ht=[];pe.forEach(Ci=>Ht.push(Ot(Ci)));const ii=[];Ge.forEach((Ci,Pi)=>{const tn={};Ci.forEach(cn=>{const wn=tn[cn]=re.computeStyle(Pi,cn,xt);(!wn||0==wn.length)&&(Pi[$n]=Ma,ii.push(Pi))}),Ct.set(Pi,tn)});let ni=0;return pe.forEach(Ci=>Ot(Ci,Ht[ni++])),ii}function Si(Ct,re){const pe=new Map;if(Ct.forEach(ni=>pe.set(ni,[])),0==re.length)return pe;const xt=new Set(re),Ht=new Map;function ii(ni){if(!ni)return 1;let Ci=Ht.get(ni);if(Ci)return Ci;const Pi=ni.parentNode;return Ci=pe.has(Pi)?Pi:xt.has(Pi)?1:ii(Pi),Ht.set(ni,Ci),Ci}return re.forEach(ni=>{const Ci=ii(ni);1!==Ci&&pe.get(Ci).push(ni)}),pe}function Oi(Ct,re){var pe;null===(pe=Ct.classList)||void 0===pe||pe.add(re)}function rn(Ct,re){var pe;null===(pe=Ct.classList)||void 0===pe||pe.remove(re)}function Yn(Ct,re,pe){ke(pe).onDone(()=>Ct.processLeaveNode(re))}function oi(Ct,re){for(let pe=0;pext.add(Ht)):re.set(Ct,Ge),pe.delete(Ct),!0}class Ai{constructor(re,pe,Ge){this.bodyNode=re,this._driver=pe,this._normalizer=Ge,this._triggerCache={},this.onRemovalComplete=(xt,Ht)=>{},this._transitionEngine=new ha(re,pe,Ge),this._timelineEngine=new Nr(re,pe,Ge),this._transitionEngine.onRemovalComplete=(xt,Ht)=>this.onRemovalComplete(xt,Ht)}registerTrigger(re,pe,Ge,xt,Ht){const ii=re+"-"+xt;let ni=this._triggerCache[ii];if(!ni){const Ci=[],tn=sn(this._driver,Ht,Ci,[]);if(Ci.length)throw function r(Ct,re){return new e.vHH(3404,b)}();ni=function wr(Ct,re,pe){return new lr(Ct,re,pe)}(xt,tn,this._normalizer),this._triggerCache[ii]=ni}this._transitionEngine.registerTrigger(pe,xt,ni)}register(re,pe){this._transitionEngine.register(re,pe)}destroy(re,pe){this._transitionEngine.destroy(re,pe)}onInsert(re,pe,Ge,xt){this._transitionEngine.insertNode(re,pe,Ge,xt)}onRemove(re,pe,Ge,xt){this._transitionEngine.removeNode(re,pe,xt||!1,Ge)}disableAnimations(re,pe){this._transitionEngine.markElementAsDisabled(re,pe)}process(re,pe,Ge,xt){if("@"==Ge.charAt(0)){const[Ht,ii]=Y(Ge);this._timelineEngine.command(Ht,pe,ii,xt)}else this._transitionEngine.trigger(re,pe,Ge,xt)}listen(re,pe,Ge,xt,Ht){if("@"==Ge.charAt(0)){const[ii,ni]=Y(Ge);return this._timelineEngine.listen(ii,pe,ni,Ht)}return this._transitionEngine.listen(re,pe,Ge,xt,Ht)}flush(re=-1){this._transitionEngine.flush(re)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ke=(()=>{class Ct{constructor(pe,Ge,xt){this._element=pe,this._startStyles=Ge,this._endStyles=xt,this._state=0;let Ht=Ct.initialStylesByElement.get(pe);Ht||Ct.initialStylesByElement.set(pe,Ht={}),this._initialStyles=Ht}start(){this._state<1&&(this._startStyles&&Re(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Re(this._element,this._initialStyles),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ct.initialStylesByElement.delete(this._element),this._startStyles&&(qe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qe(this._element,this._endStyles),this._endStyles=null),Re(this._element,this._initialStyles),this._state=3)}}return Ct.initialStylesByElement=new WeakMap,Ct})();function Be(Ct){let re=null;const pe=Object.keys(Ct);for(let Ge=0;Gere()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const re=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,re,this.options),this._finalKeyframe=re.length?re[re.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(re,pe,Ge){return re.animate(pe,Ge)}onStart(re){this._onStartFns.push(re)}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(re=>re()),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}_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(re=>re()),this._onDestroyFns=[])}setPosition(re){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=re*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const re={};if(this.hasStarted()){const pe=this._finalKeyframe;Object.keys(pe).forEach(Ge=>{"offset"!=Ge&&(re[Ge]=this._finished?pe[Ge]:en(this.element,Ge))})}this.currentSnapshot=re}triggerCallback(re){const pe="start"==re?this._onStartFns:this._onDoneFns;pe.forEach(Ge=>Ge()),pe.length=0}}class vi{validateStyleProperty(re){return ue(re)}matchesElement(re,pe){return!1}containsElement(re,pe){return Le(re,pe)}getParentElement(re){return ce(re)}query(re,pe,Ge){return lt(re,pe,Ge)}computeStyle(re,pe,Ge){return window.getComputedStyle(re)[pe]}animate(re,pe,Ge,xt,Ht,ii=[]){const Ci={duration:Ge,delay:xt,fill:0==xt?"both":"forwards"};Ht&&(Ci.easing=Ht);const Pi={},tn=ii.filter(wn=>wn instanceof Lt);(function qi(Ct,re){return 0===Ct||0===re})(Ge,xt)&&tn.forEach(wn=>{let Pn=wn.currentSnapshot;Object.keys(Pn).forEach(yn=>Pi[yn]=Pn[yn])}),pe=function ui(Ct,re,pe){const Ge=Object.keys(pe);if(Ge.length&&re.length){let Ht=re[0],ii=[];if(Ge.forEach(ni=>{Ht.hasOwnProperty(ni)||ii.push(ni),Ht[ni]=pe[ni]}),ii.length)for(var xt=1;xtft(wn,!1)),Pi);const cn=function ji(Ct,re){let pe=null,Ge=null;return Array.isArray(re)&&re.length?(pe=Be(re[0]),re.length>1&&(Ge=Be(re[re.length-1]))):re&&(pe=Be(re)),pe||Ge?new Ke(Ct,pe,Ge):null}(re,pe);return new Lt(re,pe,Ci,cn)}}var $i=p(9808);let Nn=(()=>{class Ct extends u._j{constructor(pe,Ge){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(Ge.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(pe){const Ge=this._nextAnimationId.toString();this._nextAnimationId++;const xt=Array.isArray(pe)?(0,u.vP)(pe):pe;return Jr(this._renderer,null,Ge,"register",[xt]),new Sr(Ge,this._renderer)}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG(e.FYo),e.LFG($i.K0))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();class Sr extends u.LC{constructor(re,pe){super(),this._id=re,this._renderer=pe}create(re,pe){return new Ca(this._id,re,pe||{},this._renderer)}}class Ca{constructor(re,pe,Ge,xt){this.id=re,this.element=pe,this._renderer=xt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ge)}_listen(re,pe){return this._renderer.listen(this.element,`@@${this.id}:${re}`,pe)}_command(re,...pe){return Jr(this._renderer,this.element,this.id,re,pe)}onDone(re){this._listen("done",re)}onStart(re){this._listen("start",re)}onDestroy(re){this._listen("destroy",re)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(re){this._command("setPosition",re)}getPosition(){var re,pe;return null!==(pe=null===(re=this._renderer.engine.players[+this.id])||void 0===re?void 0:re.getPosition())&&void 0!==pe?pe:0}}function Jr(Ct,re,pe,Ge,xt){return Ct.setProperty(re,`@@${pe}:${Ge}`,xt)}const Hi="@.disabled";let Vn=(()=>{class Ct{constructor(pe,Ge,xt){this.delegate=pe,this.engine=Ge,this._zone=xt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ge.onRemovalComplete=(Ht,ii)=>{const ni=null==ii?void 0:ii.parentNode(Ht);ni&&ii.removeChild(ni,Ht)}}createRenderer(pe,Ge){const Ht=this.delegate.createRenderer(pe,Ge);if(!(pe&&Ge&&Ge.data&&Ge.data.animation)){let tn=this._rendererCache.get(Ht);return tn||(tn=new ms("",Ht,this.engine),this._rendererCache.set(Ht,tn)),tn}const ii=Ge.id,ni=Ge.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,pe);const Ci=tn=>{Array.isArray(tn)?tn.forEach(Ci):this.engine.registerTrigger(ii,ni,pe,tn.name,tn)};return Ge.data.animation.forEach(Ci),new Cr(this,ni,Ht,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,Ge,xt){pe>=0&&peGe(xt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ht=>{const[ii,ni]=Ht;ii(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ge,xt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG(e.FYo),e.LFG(Ai),e.LFG(e.R0b))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();class ms{constructor(re,pe,Ge){this.namespaceId=re,this.delegate=pe,this.engine=Ge,this.destroyNode=this.delegate.destroyNode?xt=>pe.destroyNode(xt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(re,pe){return this.delegate.createElement(re,pe)}createComment(re){return this.delegate.createComment(re)}createText(re){return this.delegate.createText(re)}appendChild(re,pe){this.delegate.appendChild(re,pe),this.engine.onInsert(this.namespaceId,pe,re,!1)}insertBefore(re,pe,Ge,xt=!0){this.delegate.insertBefore(re,pe,Ge),this.engine.onInsert(this.namespaceId,pe,re,xt)}removeChild(re,pe,Ge){this.engine.onRemove(this.namespaceId,pe,this.delegate,Ge)}selectRootElement(re,pe){return this.delegate.selectRootElement(re,pe)}parentNode(re){return this.delegate.parentNode(re)}nextSibling(re){return this.delegate.nextSibling(re)}setAttribute(re,pe,Ge,xt){this.delegate.setAttribute(re,pe,Ge,xt)}removeAttribute(re,pe,Ge){this.delegate.removeAttribute(re,pe,Ge)}addClass(re,pe){this.delegate.addClass(re,pe)}removeClass(re,pe){this.delegate.removeClass(re,pe)}setStyle(re,pe,Ge,xt){this.delegate.setStyle(re,pe,Ge,xt)}removeStyle(re,pe,Ge){this.delegate.removeStyle(re,pe,Ge)}setProperty(re,pe,Ge){"@"==pe.charAt(0)&&pe==Hi?this.disableAnimations(re,!!Ge):this.delegate.setProperty(re,pe,Ge)}setValue(re,pe){this.delegate.setValue(re,pe)}listen(re,pe,Ge){return this.delegate.listen(re,pe,Ge)}disableAnimations(re,pe){this.engine.disableAnimations(re,pe)}}class Cr extends ms{constructor(re,pe,Ge,xt){super(pe,Ge,xt),this.factory=re,this.namespaceId=pe}setProperty(re,pe,Ge){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==Hi?this.disableAnimations(re,Ge=void 0===Ge||!!Ge):this.engine.process(this.namespaceId,re,pe.substr(1),Ge):this.delegate.setProperty(re,pe,Ge)}listen(re,pe,Ge){if("@"==pe.charAt(0)){const xt=function ss(Ct){switch(Ct){case"body":return document.body;case"document":return document;case"window":return window;default:return Ct}}(re);let Ht=pe.substr(1),ii="";return"@"!=Ht.charAt(0)&&([Ht,ii]=function Da(Ct){const re=Ct.indexOf(".");return[Ct.substring(0,re),Ct.substr(re+1)]}(Ht)),this.engine.listen(this.namespaceId,xt,Ht,ii,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ge,ni)})}return this.delegate.listen(re,pe,Ge)}}let cr=(()=>{class Ct extends Ai{constructor(pe,Ge,xt){super(pe.body,Ge,xt)}ngOnDestroy(){this.flush()}}return Ct.\u0275fac=function(pe){return new(pe||Ct)(e.LFG($i.K0),e.LFG(hi),e.LFG(rr))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();const Ia=new e.OlP("AnimationModuleType"),_s=[{provide:u._j,useClass:Nn},{provide:rr,useFactory:function gs(){return new na}},{provide:Ai,useClass:cr},{provide:e.FYo,useFactory:function Cs(Ct,re,pe){return new Vn(Ct,re,pe)},deps:[i.se,Ai,e.R0b]}],os=[{provide:hi,useFactory:()=>new vi},{provide:Ia,useValue:"BrowserAnimations"},..._s],is=[{provide:hi,useClass:Tt},{provide:Ia,useValue:"NoopAnimations"},..._s];let Vr=(()=>{class Ct{static withConfig(pe){return{ngModule:Ct,providers:pe.disableAnimations?is:os}}}return Ct.\u0275fac=function(pe){return new(pe||Ct)},Ct.\u0275mod=e.oAB({type:Ct}),Ct.\u0275inj=e.cJS({providers:os,imports:[i.b2]}),Ct})()},2313:(He,j,p)=>{"use strict";p.d(j,{H7:()=>et,b2:()=>ot,q6:()=>Z,se:()=>c,t6:()=>Rt});var e=p(9808),i=p(5e3);class u extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b extends u{static makeCurrent(){(0,e.HT)(new b)}onAndCancel(Fe,rt,at){return Fe.addEventListener(rt,at,!1),()=>{Fe.removeEventListener(rt,at,!1)}}dispatchEvent(Fe,rt){Fe.dispatchEvent(rt)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,rt){return(rt=rt||this.getDefaultDocument()).createElement(Fe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Fe){return Fe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Fe){return Fe instanceof DocumentFragment}getGlobalEventTarget(Fe,rt){return"window"===rt?window:"document"===rt?Fe:"body"===rt?Fe.body:null}getBaseHref(Fe){const rt=function y(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==rt?null:function P(we){d=d||document.createElement("a"),d.setAttribute("href",we);const Fe=d.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(rt)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let d,a=null;const D=new i.OlP("TRANSITION_ID"),M=[{provide:i.ip1,useFactory:function T(we,Fe,rt){return()=>{rt.get(i.CZH).donePromise.then(()=>{const at=(0,e.q)(),yt=Fe.querySelectorAll(`style[ng-transition="${we}"]`);for(let mi=0;mi{const mi=Fe.findTestabilityInTree(at,yt);if(null==mi)throw new Error("Could not find testability for element.");return mi},i.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(at=>{const yt=i.dqk.getAllAngularTestabilities();let mi=yt.length,Xt=!1;const Jt=function(qi){Xt=Xt||qi,mi--,0==mi&&at(Xt)};yt.forEach(function(qi){qi.whenStable(Jt)})})}findTestabilityInTree(Fe,rt,at){if(null==rt)return null;const yt=Fe.getTestability(rt);return null!=yt?yt:at?(0,e.q)().isShadowRoot(rt)?this.findTestabilityInTree(Fe,rt.host,!0):this.findTestabilityInTree(Fe,rt.parentElement,!0):null}}let E=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const k=new i.OlP("EventManagerPlugins");let w=(()=>{class we{constructor(rt,at){this._zone=at,this._eventNameToPlugin=new Map,rt.forEach(yt=>yt.manager=this),this._plugins=rt.slice().reverse()}addEventListener(rt,at,yt){return this._findPluginFor(at).addEventListener(rt,at,yt)}addGlobalEventListener(rt,at,yt){return this._findPluginFor(at).addGlobalEventListener(rt,at,yt)}getZone(){return this._zone}_findPluginFor(rt){const at=this._eventNameToPlugin.get(rt);if(at)return at;const yt=this._plugins;for(let mi=0;mi{class we{constructor(){this._stylesSet=new Set}addStyles(rt){const at=new Set;rt.forEach(yt=>{this._stylesSet.has(yt)||(this._stylesSet.add(yt),at.add(yt))}),this.onStylesAdded(at)}onStylesAdded(rt){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),W=(()=>{class we extends U{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,at,yt){rt.forEach(mi=>{const Xt=this._doc.createElement("style");Xt.textContent=mi,yt.push(at.appendChild(Xt))})}addHost(rt){const at=[];this._addStylesToHost(this._stylesSet,rt,at),this._hostNodes.set(rt,at)}removeHost(rt){const at=this._hostNodes.get(rt);at&&at.forEach(ne),this._hostNodes.delete(rt)}onStylesAdded(rt){this._hostNodes.forEach((at,yt)=>{this._addStylesToHost(rt,yt,at)})}ngOnDestroy(){this._hostNodes.forEach(rt=>rt.forEach(ne))}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();function ne(we){(0,e.q)().remove(we)}const Q={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/MathML/"},le=/%COMP%/g;function t(we,Fe,rt){for(let at=0;at{if("__ngUnwrap__"===Fe)return we;!1===we(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let c=(()=>{class we{constructor(rt,at,yt){this.eventManager=rt,this.sharedStylesHost=at,this.appId=yt,this.rendererByCompId=new Map,this.defaultRenderer=new C(rt)}createRenderer(rt,at){if(!rt||!at)return this.defaultRenderer;switch(at.encapsulation){case i.ifc.Emulated:{let yt=this.rendererByCompId.get(at.id);return yt||(yt=new _(this.eventManager,this.sharedStylesHost,at,this.appId),this.rendererByCompId.set(at.id,yt)),yt.applyToHost(rt),yt}case 1:case i.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,rt,at);default:if(!this.rendererByCompId.has(at.id)){const yt=t(at.id,at.styles,[]);this.sharedStylesHost.addStyles(yt),this.rendererByCompId.set(at.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(w),i.LFG(W),i.LFG(i.AFp))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();class C{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,rt){return rt?document.createElementNS(Q[rt]||rt,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,rt){Fe.appendChild(rt)}insertBefore(Fe,rt,at){Fe&&Fe.insertBefore(rt,at)}removeChild(Fe,rt){Fe&&Fe.removeChild(rt)}selectRootElement(Fe,rt){let at="string"==typeof Fe?document.querySelector(Fe):Fe;if(!at)throw new Error(`The selector "${Fe}" did not match any elements`);return rt||(at.textContent=""),at}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,rt,at,yt){if(yt){rt=yt+":"+rt;const mi=Q[yt];mi?Fe.setAttributeNS(mi,rt,at):Fe.setAttribute(rt,at)}else Fe.setAttribute(rt,at)}removeAttribute(Fe,rt,at){if(at){const yt=Q[at];yt?Fe.removeAttributeNS(yt,rt):Fe.removeAttribute(`${at}:${rt}`)}else Fe.removeAttribute(rt)}addClass(Fe,rt){Fe.classList.add(rt)}removeClass(Fe,rt){Fe.classList.remove(rt)}setStyle(Fe,rt,at,yt){yt&(i.JOm.DashCase|i.JOm.Important)?Fe.style.setProperty(rt,at,yt&i.JOm.Important?"important":""):Fe.style[rt]=at}removeStyle(Fe,rt,at){at&i.JOm.DashCase?Fe.style.removeProperty(rt):Fe.style[rt]=""}setProperty(Fe,rt,at){Fe[rt]=at}setValue(Fe,rt){Fe.nodeValue=rt}listen(Fe,rt,at){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,rt,r(at)):this.eventManager.addEventListener(Fe,rt,r(at))}}class _ extends C{constructor(Fe,rt,at,yt){super(Fe),this.component=at;const mi=t(yt+"-"+at.id,at.styles,[]);rt.addStyles(mi),this.contentAttr=function me(we){return"_ngcontent-%COMP%".replace(le,we)}(yt+"-"+at.id),this.hostAttr=function x(we){return"_nghost-%COMP%".replace(le,we)}(yt+"-"+at.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,rt){const at=super.createElement(Fe,rt);return super.setAttribute(at,this.contentAttr,""),at}}class n extends C{constructor(Fe,rt,at,yt){super(Fe),this.sharedStylesHost=rt,this.hostEl=at,this.shadowRoot=at.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=t(yt.id,yt.styles,[]);for(let Xt=0;Xt{class we extends z{constructor(rt){super(rt)}supports(rt){return!0}addEventListener(rt,at,yt){return rt.addEventListener(at,yt,!1),()=>this.removeEventListener(rt,at,yt)}removeEventListener(rt,at,yt){return rt.removeEventListener(at,yt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const V=["alt","control","meta","shift"],H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},fe={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let ye=(()=>{class we extends z{constructor(rt){super(rt)}supports(rt){return null!=we.parseEventName(rt)}addEventListener(rt,at,yt){const mi=we.parseEventName(at),Xt=we.eventCallback(mi.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(rt,mi.domEventName,Xt))}static parseEventName(rt){const at=rt.toLowerCase().split("."),yt=at.shift();if(0===at.length||"keydown"!==yt&&"keyup"!==yt)return null;const mi=we._normalizeKey(at.pop());let Xt="";if(V.forEach(qi=>{const ui=at.indexOf(qi);ui>-1&&(at.splice(ui,1),Xt+=qi+".")}),Xt+=mi,0!=at.length||0===mi.length)return null;const Jt={};return Jt.domEventName=yt,Jt.fullKey=Xt,Jt}static getEventFullKey(rt){let at="",yt=function ke(we){let Fe=we.key;if(null==Fe){if(Fe=we.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===we.location&&$.hasOwnProperty(Fe)&&(Fe=$[Fe]))}return H[Fe]||Fe}(rt);return yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),V.forEach(mi=>{mi!=yt&&fe[mi](rt)&&(at+=mi+".")}),at+=yt,at}static eventCallback(rt,at,yt){return mi=>{we.getEventFullKey(mi)===rt&&yt.runGuarded(()=>at(mi))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})();const Z=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:e.bD},{provide:i.g9A,useValue:function Ee(){b.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function ze(){return(0,i.RDi)(document),document},deps:[]}]),Y=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function te(){return new i.qLn},deps:[]},{provide:k,useClass:g,multi:!0,deps:[e.K0,i.R0b,i.Lbi]},{provide:k,useClass:ye,multi:!0,deps:[e.K0]},{provide:c,useClass:c,deps:[w,W,i.AFp]},{provide:i.FYo,useExisting:c},{provide:U,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:w,useClass:w,deps:[k,i.R0b]},{provide:e.JF,useClass:E,deps:[]}];let ot=(()=>{class we{constructor(rt){if(rt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(rt){return{ngModule:we,providers:[{provide:i.AFp,useValue:rt.appId},{provide:D,useExisting:i.AFp},M]}}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(we,12))},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:Y,imports:[e.ez,i.hGG]}),we})();"undefined"!=typeof window&&window;const De={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},oe=new i.OlP("HammerGestureConfig"),Me=new i.OlP("HammerLoader");let ut=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(rt){const at=new Hammer(rt,this.options);at.get("pinch").set({enable:!0}),at.get("rotate").set({enable:!0});for(const yt in this.overrides)at.get(yt).set(this.overrides[yt]);return at}}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),ft=(()=>{class we extends z{constructor(rt,at,yt,mi){super(rt),this._config=at,this.console=yt,this.loader=mi,this._loaderPromise=null}supports(rt){return!(!De.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,at,yt){const mi=this.manager.getZone();if(at=at.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Xt=!1,Jt=()=>{Xt=!0};return this._loaderPromise.then(()=>{window.Hammer?Xt||(Jt=this.addEventListener(rt,at,yt)):Jt=()=>{}}).catch(()=>{Jt=()=>{}}),()=>{Jt()}}return mi.runOutsideAngular(()=>{const Xt=this._config.buildHammer(rt),Jt=function(qi){mi.runGuarded(function(){yt(qi)})};return Xt.on(at,Jt),()=>{Xt.off(at,Jt),"function"==typeof Xt.destroy&&Xt.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0),i.LFG(oe),i.LFG(i.c2e),i.LFG(Me,8))},we.\u0275prov=i.Yz7({token:we,factory:we.\u0275fac}),we})(),Rt=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275mod=i.oAB({type:we}),we.\u0275inj=i.cJS({providers:[{provide:k,useClass:ft,multi:!0,deps:[e.K0,oe,i.c2e,[new i.FiY,Me]]},{provide:oe,useClass:ut,deps:[]}]}),we})(),et=(()=>{class we{}return we.\u0275fac=function(rt){return new(rt||we)},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new(rt||we):i.LFG(qe),at},providedIn:"root"}),we})(),qe=(()=>{class we extends et{constructor(rt){super(),this._doc=rt}sanitize(rt,at){if(null==at)return null;switch(rt){case i.q3G.NONE:return at;case i.q3G.HTML:return(0,i.qzn)(at,"HTML")?(0,i.z3N)(at):(0,i.EiD)(this._doc,String(at)).toString();case i.q3G.STYLE:return(0,i.qzn)(at,"Style")?(0,i.z3N)(at):at;case i.q3G.SCRIPT:if((0,i.qzn)(at,"Script"))return(0,i.z3N)(at);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(at),(0,i.qzn)(at,"URL")?(0,i.z3N)(at):(0,i.mCW)(String(at));case i.q3G.RESOURCE_URL:if((0,i.qzn)(at,"ResourceURL"))return(0,i.z3N)(at);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${rt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(rt){return(0,i.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,i.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,i.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,i.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,i.pB0)(rt)}}return we.\u0275fac=function(rt){return new(rt||we)(i.LFG(e.K0))},we.\u0275prov=i.Yz7({token:we,factory:function(rt){let at=null;return at=rt?new rt:function Re(we){return new qe(we.get(e.K0))}(i.LFG(i.zs3)),at},providedIn:"root"}),we})()},1402:(He,j,p)=>{"use strict";p.d(j,{gz:()=>Wi,gk:()=>H,m2:()=>R,Q3:()=>$,OD:()=>V,Av:()=>te,F0:()=>ur,rH:()=>Et,Od:()=>qt,yS:()=>St,Bz:()=>_a,lC:()=>gr});var e=p(5e3),i=p(8306),u=p(727),b=p(4482),a=p(5403);function y(){return(0,b.e)((Ce,ge)=>{let he=null;Ce._refCount++;const Ue=(0,a.x)(ge,void 0,void 0,void 0,()=>{if(!Ce||Ce._refCount<=0||0<--Ce._refCount)return void(he=null);const nt=Ce._connection,Dt=he;he=null,nt&&(!Dt||nt===Dt)&&nt.unsubscribe(),ge.unsubscribe()});Ce.subscribe(Ue),Ue.closed||(he=Ce.connect())})}class d extends i.y{constructor(ge,he){super(),this.source=ge,this.subjectFactory=he,this._subject=null,this._refCount=0,this._connection=null,(0,b.A)(ge)&&(this.lift=ge.lift)}_subscribe(ge){return this.getSubject().subscribe(ge)}getSubject(){const ge=this._subject;return(!ge||ge.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ge}=this;this._subject=this._connection=null,null==ge||ge.unsubscribe()}connect(){let ge=this._connection;if(!ge){ge=this._connection=new u.w0;const he=this.getSubject();ge.add(this.source.subscribe((0,a.x)(he,void 0,()=>{this._teardown(),he.complete()},Ue=>{this._teardown(),he.error(Ue)},()=>this._teardown()))),ge.closed&&(this._connection=null,ge=u.w0.EMPTY)}return ge}refCount(){return y()(this)}}var P=p(457),D=p(9646),T=p(1135),M=p(9841),A=p(2843),E=p(6805),k=p(7272),w=p(9770),z=p(515),U=p(7579),W=p(9300);function ne(Ce){return Ce<=0?()=>z.E:(0,b.e)((ge,he)=>{let Ue=[];ge.subscribe((0,a.x)(he,nt=>{Ue.push(nt),Ce{for(const nt of Ue)he.next(nt);he.complete()},void 0,()=>{Ue=null}))})}var Q=p(8068),le=p(6590),q=p(4671),se=p(4004),J=p(3900),me=p(5698),x=p(8675),t=p(5026),r=p(262),h=p(4351),c=p(590),C=p(5577),S=p(8505),I=p(8746),_=p(8189),n=p(9808);class g{constructor(ge,he){this.id=ge,this.url=he}}class V extends g{constructor(ge,he,Ue="imperative",nt=null){super(ge,he),this.navigationTrigger=Ue,this.restoredState=nt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class R extends g{constructor(ge,he,Ue){super(ge,he),this.urlAfterRedirects=Ue}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends g{constructor(ge,he,Ue){super(ge,he),this.reason=Ue}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $ extends g{constructor(ge,he,Ue){super(ge,he),this.error=Ue}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fe extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ye extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ke extends g{constructor(ge,he,Ue,nt,Dt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt,this.shouldActivate=Dt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends g{constructor(ge,he,Ue,nt){super(ge,he),this.urlAfterRedirects=Ue,this.state=nt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class be{constructor(ge){this.route=ge}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Z{constructor(ge){this.snapshot=ge}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Y{constructor(ge){this.snapshot=ge}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(ge){this.snapshot=ge}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(ge){this.snapshot=ge}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(ge,he,Ue){this.routerEvent=ge,this.position=he,this.anchor=Ue}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class Te{constructor(ge){this.params=ge||{}}has(ge){return Object.prototype.hasOwnProperty.call(this.params,ge)}get(ge){if(this.has(ge)){const he=this.params[ge];return Array.isArray(he)?he[0]:he}return null}getAll(ge){if(this.has(ge)){const he=this.params[ge];return Array.isArray(he)?he:[he]}return[]}get keys(){return Object.keys(this.params)}}function xe(Ce){return new Te(Ce)}const G="ngNavigationCancelingError";function ee(Ce){const ge=Error("NavigationCancelingError: "+Ce);return ge[G]=!0,ge}function ve(Ce,ge,he){const Ue=he.path.split("/");if(Ue.length>Ce.length||"full"===he.pathMatch&&(ge.hasChildren()||Ue.lengthUe[Dt]===nt)}return Ce===ge}function Tt(Ce){return Array.prototype.concat.apply([],Ce)}function hi(Ce){return Ce.length>0?Ce[Ce.length-1]:null}function Gt(Ce,ge){for(const he in Ce)Ce.hasOwnProperty(he)&&ge(Ce[he],he)}function di(Ce){return(0,e.CqO)(Ce)?Ce:(0,e.QGY)(Ce)?(0,P.D)(Promise.resolve(Ce)):(0,D.of)(Ce)}const kt={exact:function ei(Ce,ge,he){if(!et(Ce.segments,ge.segments)||!oe(Ce.segments,ge.segments,he)||Ce.numberOfChildren!==ge.numberOfChildren)return!1;for(const Ue in ge.children)if(!Ce.children[Ue]||!ei(Ce.children[Ue],ge.children[Ue],he))return!1;return!0},subset:Pe},gt={exact:function _t(Ce,ge){return lt(Ce,ge)},subset:function Zt(Ce,ge){return Object.keys(ge).length<=Object.keys(Ce).length&&Object.keys(ge).every(he=>ht(Ce[he],ge[he]))},ignored:()=>!0};function Qe(Ce,ge,he){return kt[he.paths](Ce.root,ge.root,he.matrixParams)&>[he.queryParams](Ce.queryParams,ge.queryParams)&&!("exact"===he.fragment&&Ce.fragment!==ge.fragment)}function Pe(Ce,ge,he){return De(Ce,ge,ge.segments,he)}function De(Ce,ge,he,Ue){if(Ce.segments.length>he.length){const nt=Ce.segments.slice(0,he.length);return!(!et(nt,he)||ge.hasChildren()||!oe(nt,he,Ue))}if(Ce.segments.length===he.length){if(!et(Ce.segments,he)||!oe(Ce.segments,he,Ue))return!1;for(const nt in ge.children)if(!Ce.children[nt]||!Pe(Ce.children[nt],ge.children[nt],Ue))return!1;return!0}{const nt=he.slice(0,Ce.segments.length),Dt=he.slice(Ce.segments.length);return!!(et(Ce.segments,nt)&&oe(Ce.segments,nt,Ue)&&Ce.children[ce])&&De(Ce.children[ce],ge,Dt,Ue)}}function oe(Ce,ge,he){return ge.every((Ue,nt)=>gt[he](Ce[nt].parameters,Ue.parameters))}class Me{constructor(ge,he,Ue){this.root=ge,this.queryParams=he,this.fragment=Ue}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return we.serialize(this)}}class ut{constructor(ge,he){this.segments=ge,this.children=he,this.parent=null,Gt(he,(Ue,nt)=>Ue.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fe(this)}}class ft{constructor(ge,he){this.path=ge,this.parameters=he}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ui(this)}}function et(Ce,ge){return Ce.length===ge.length&&Ce.every((he,Ue)=>he.path===ge[Ue].path)}class qe{}class Ze{parse(ge){const he=new it(ge);return new Me(he.parseRootSegment(),he.parseQueryParams(),he.parseFragment())}serialize(ge){const he=`/${rt(ge.root,!0)}`,Ue=function en(Ce){const ge=Object.keys(Ce).map(he=>{const Ue=Ce[he];return Array.isArray(Ue)?Ue.map(nt=>`${yt(he)}=${yt(nt)}`).join("&"):`${yt(he)}=${yt(Ue)}`}).filter(he=>!!he);return ge.length?`?${ge.join("&")}`:""}(ge.queryParams);return`${he}${Ue}${"string"==typeof ge.fragment?`#${function mi(Ce){return encodeURI(Ce)}(ge.fragment)}`:""}`}}const we=new Ze;function Fe(Ce){return Ce.segments.map(ge=>ui(ge)).join("/")}function rt(Ce,ge){if(!Ce.hasChildren())return Fe(Ce);if(ge){const he=Ce.children[ce]?rt(Ce.children[ce],!1):"",Ue=[];return Gt(Ce.children,(nt,Dt)=>{Dt!==ce&&Ue.push(`${Dt}:${rt(nt,!1)}`)}),Ue.length>0?`${he}(${Ue.join("//")})`:he}{const he=function Re(Ce,ge){let he=[];return Gt(Ce.children,(Ue,nt)=>{nt===ce&&(he=he.concat(ge(Ue,nt)))}),Gt(Ce.children,(Ue,nt)=>{nt!==ce&&(he=he.concat(ge(Ue,nt)))}),he}(Ce,(Ue,nt)=>nt===ce?[rt(Ce.children[ce],!1)]:[`${nt}:${rt(Ue,!1)}`]);return 1===Object.keys(Ce.children).length&&null!=Ce.children[ce]?`${Fe(Ce)}/${he[0]}`:`${Fe(Ce)}/(${he.join("//")})`}}function at(Ce){return encodeURIComponent(Ce).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(Ce){return at(Ce).replace(/%3B/gi,";")}function Xt(Ce){return at(Ce).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jt(Ce){return decodeURIComponent(Ce)}function qi(Ce){return Jt(Ce.replace(/\+/g,"%20"))}function ui(Ce){return`${Xt(Ce.path)}${function si(Ce){return Object.keys(Ce).map(ge=>`;${Xt(ge)}=${Xt(Ce[ge])}`).join("")}(Ce.parameters)}`}const Ui=/^[^\/()?;=#]+/;function Bi(Ce){const ge=Ce.match(Ui);return ge?ge[0]:""}const Gi=/^[^=?&#]+/,Ft=/^[^&#]+/;class it{constructor(ge){this.url=ge,this.remaining=ge}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],this.parseChildren())}parseQueryParams(){const ge={};if(this.consumeOptional("?"))do{this.parseQueryParam(ge)}while(this.consumeOptional("&"));return ge}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ge=[];for(this.peekStartsWith("(")||ge.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ge.push(this.parseSegment());let he={};this.peekStartsWith("/(")&&(this.capture("/"),he=this.parseParens(!0));let Ue={};return this.peekStartsWith("(")&&(Ue=this.parseParens(!1)),(ge.length>0||Object.keys(he).length>0)&&(Ue[ce]=new ut(ge,he)),Ue}parseSegment(){const ge=Bi(this.remaining);if(""===ge&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ge),new ft(Jt(ge),this.parseMatrixParams())}parseMatrixParams(){const ge={};for(;this.consumeOptional(";");)this.parseParam(ge);return ge}parseParam(ge){const he=Bi(this.remaining);if(!he)return;this.capture(he);let Ue="";if(this.consumeOptional("=")){const nt=Bi(this.remaining);nt&&(Ue=nt,this.capture(Ue))}ge[Jt(he)]=Jt(Ue)}parseQueryParam(ge){const he=function ct(Ce){const ge=Ce.match(Gi);return ge?ge[0]:""}(this.remaining);if(!he)return;this.capture(he);let Ue="";if(this.consumeOptional("=")){const Qt=function pt(Ce){const ge=Ce.match(Ft);return ge?ge[0]:""}(this.remaining);Qt&&(Ue=Qt,this.capture(Ue))}const nt=qi(he),Dt=qi(Ue);if(ge.hasOwnProperty(nt)){let Qt=ge[nt];Array.isArray(Qt)||(Qt=[Qt],ge[nt]=Qt),Qt.push(Dt)}else ge[nt]=Dt}parseParens(ge){const he={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ue=Bi(this.remaining),nt=this.remaining[Ue.length];if("/"!==nt&&")"!==nt&&";"!==nt)throw new Error(`Cannot parse url '${this.url}'`);let Dt;Ue.indexOf(":")>-1?(Dt=Ue.substr(0,Ue.indexOf(":")),this.capture(Dt),this.capture(":")):ge&&(Dt=ce);const Qt=this.parseChildren();he[Dt]=1===Object.keys(Qt).length?Qt[ce]:new ut([],Qt),this.consumeOptional("//")}return he}peekStartsWith(ge){return this.remaining.startsWith(ge)}consumeOptional(ge){return!!this.peekStartsWith(ge)&&(this.remaining=this.remaining.substring(ge.length),!0)}capture(ge){if(!this.consumeOptional(ge))throw new Error(`Expected "${ge}".`)}}class It{constructor(ge){this._root=ge}get root(){return this._root.value}parent(ge){const he=this.pathFromRoot(ge);return he.length>1?he[he.length-2]:null}children(ge){const he=de(ge,this._root);return he?he.children.map(Ue=>Ue.value):[]}firstChild(ge){const he=de(ge,this._root);return he&&he.children.length>0?he.children[0].value:null}siblings(ge){const he=$e(ge,this._root);return he.length<2?[]:he[he.length-2].children.map(nt=>nt.value).filter(nt=>nt!==ge)}pathFromRoot(ge){return $e(ge,this._root).map(he=>he.value)}}function de(Ce,ge){if(Ce===ge.value)return ge;for(const he of ge.children){const Ue=de(Ce,he);if(Ue)return Ue}return null}function $e(Ce,ge){if(Ce===ge.value)return[ge];for(const he of ge.children){const Ue=$e(Ce,he);if(Ue.length)return Ue.unshift(ge),Ue}return[]}class bt{constructor(ge,he){this.value=ge,this.children=he}toString(){return`TreeNode(${this.value})`}}function Vt(Ce){const ge={};return Ce&&Ce.children.forEach(he=>ge[he.value.outlet]=he),ge}class bi extends It{constructor(ge,he){super(ge),this.snapshot=he,Je(this,ge)}toString(){return this.snapshot.toString()}}function Li(Ce,ge){const he=function Ji(Ce,ge){const Qt=new Yt([],{},{},"",{},ce,ge,null,Ce.root,-1,{});return new Mi("",new bt(Qt,[]))}(Ce,ge),Ue=new T.X([new ft("",{})]),nt=new T.X({}),Dt=new T.X({}),Qt=new T.X({}),ai=new T.X(""),Di=new Wi(Ue,nt,Qt,ai,Dt,ce,ge,he.root);return Di.snapshot=he.root,new bi(new bt(Di,[]),he)}class Wi{constructor(ge,he,Ue,nt,Dt,Qt,ai,Di){this.url=ge,this.params=he,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this._futureSnapshot=Di}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._paramMap=this.params.pipe((0,se.U)(ge=>xe(ge)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,se.U)(ge=>xe(ge)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sn(Ce,ge="emptyOnly"){const he=Ce.pathFromRoot;let Ue=0;if("always"!==ge)for(Ue=he.length-1;Ue>=1;){const nt=he[Ue],Dt=he[Ue-1];if(nt.routeConfig&&""===nt.routeConfig.path)Ue--;else{if(Dt.component)break;Ue--}}return function mn(Ce){return Ce.reduce((ge,he)=>({params:Object.assign(Object.assign({},ge.params),he.params),data:Object.assign(Object.assign({},ge.data),he.data),resolve:Object.assign(Object.assign({},ge.resolve),he._resolvedData)}),{params:{},data:{},resolve:{}})}(he.slice(Ue))}class Yt{constructor(ge,he,Ue,nt,Dt,Qt,ai,Di,Vi,Mn,zi){this.url=ge,this.params=he,this.queryParams=Ue,this.fragment=nt,this.data=Dt,this.outlet=Qt,this.component=ai,this.routeConfig=Di,this._urlSegment=Vi,this._lastPathIndex=Mn,this._resolve=zi}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._paramMap=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ue=>Ue.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mi extends It{constructor(ge,he){super(he),this.url=ge,Je(this,he)}toString(){return Nt(this._root)}}function Je(Ce,ge){ge.value._routerState=Ce,ge.children.forEach(he=>Je(Ce,he))}function Nt(Ce){const ge=Ce.children.length>0?` { ${Ce.children.map(Nt).join(", ")} } `:"";return`${Ce.value}${ge}`}function Kt(Ce){if(Ce.snapshot){const ge=Ce.snapshot,he=Ce._futureSnapshot;Ce.snapshot=he,lt(ge.queryParams,he.queryParams)||Ce.queryParams.next(he.queryParams),ge.fragment!==he.fragment&&Ce.fragment.next(he.fragment),lt(ge.params,he.params)||Ce.params.next(he.params),function Le(Ce,ge){if(Ce.length!==ge.length)return!1;for(let he=0;helt(he.parameters,ge[Ue].parameters))}(Ce.url,ge.url);return he&&!(!Ce.parent!=!ge.parent)&&(!Ce.parent||pi(Ce.parent,ge.parent))}function ki(Ce,ge,he){if(he&&Ce.shouldReuseRoute(ge.value,he.value.snapshot)){const Ue=he.value;Ue._futureSnapshot=ge.value;const nt=function hn(Ce,ge,he){return ge.children.map(Ue=>{for(const nt of he.children)if(Ce.shouldReuseRoute(Ue.value,nt.value.snapshot))return ki(Ce,Ue,nt);return ki(Ce,Ue)})}(Ce,ge,he);return new bt(Ue,nt)}{if(Ce.shouldAttach(ge.value)){const Dt=Ce.retrieve(ge.value);if(null!==Dt){const Qt=Dt.route;return Qt.value._futureSnapshot=ge.value,Qt.children=ge.children.map(ai=>ki(Ce,ai)),Qt}}const Ue=function Hn(Ce){return new Wi(new T.X(Ce.url),new T.X(Ce.params),new T.X(Ce.queryParams),new T.X(Ce.fragment),new T.X(Ce.data),Ce.outlet,Ce.component,Ce)}(ge.value),nt=ge.children.map(Dt=>ki(Ce,Dt));return new bt(Ue,nt)}}function Kn(Ce){return"object"==typeof Ce&&null!=Ce&&!Ce.outlets&&!Ce.segmentPath}function Cn(Ce){return"object"==typeof Ce&&null!=Ce&&Ce.outlets}function wi(Ce,ge,he,Ue,nt){let Dt={};if(Ue&&Gt(Ue,(ai,Di)=>{Dt[Di]=Array.isArray(ai)?ai.map(Vi=>`${Vi}`):`${ai}`}),Ce===ge)return new Me(he,Dt,nt);const Qt=Yi(Ce,ge,he);return new Me(Qt,Dt,nt)}function Yi(Ce,ge,he){const Ue={};return Gt(Ce.children,(nt,Dt)=>{Ue[Dt]=nt===ge?he:Yi(nt,ge,he)}),new ut(Ce.segments,Ue)}class bn{constructor(ge,he,Ue){if(this.isAbsolute=ge,this.numberOfDoubleDots=he,this.commands=Ue,ge&&Ue.length>0&&Kn(Ue[0]))throw new Error("Root segment cannot have matrix parameters");const nt=Ue.find(Cn);if(nt&&nt!==hi(Ue))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ar{constructor(ge,he,Ue){this.segmentGroup=ge,this.processChildren=he,this.index=Ue}}function sa(Ce,ge,he){if(Ce||(Ce=new ut([],{})),0===Ce.segments.length&&Ce.hasChildren())return oa(Ce,ge,he);const Ue=function La(Ce,ge,he){let Ue=0,nt=ge;const Dt={match:!1,pathIndex:0,commandIndex:0};for(;nt=he.length)return Dt;const Qt=Ce.segments[nt],ai=he[Ue];if(Cn(ai))break;const Di=`${ai}`,Vi=Ue0&&void 0===Di)break;if(Di&&Vi&&"object"==typeof Vi&&void 0===Vi.outlets){if(!na(Di,Vi,Qt))return Dt;Ue+=2}else{if(!na(Di,{},Qt))return Dt;Ue++}nt++}return{match:!0,pathIndex:nt,commandIndex:Ue}}(Ce,ge,he),nt=he.slice(Ue.commandIndex);if(Ue.match&&Ue.pathIndex{"string"==typeof Dt&&(Dt=[Dt]),null!==Dt&&(nt[Qt]=sa(Ce.children[Qt],ge,Dt))}),Gt(Ce.children,(Dt,Qt)=>{void 0===Ue[Qt]&&(nt[Qt]=Dt)}),new ut(Ce.segments,nt)}}function Ta(Ce,ge,he){const Ue=Ce.segments.slice(0,ge);let nt=0;for(;nt{"string"==typeof he&&(he=[he]),null!==he&&(ge[Ue]=Ta(new ut([],{}),0,he))}),ge}function Yr(Ce){const ge={};return Gt(Ce,(he,Ue)=>ge[Ue]=`${he}`),ge}function na(Ce,ge,he){return Ce==he.path&<(ge,he.parameters)}class qr{constructor(ge,he,Ue,nt){this.routeReuseStrategy=ge,this.futureState=he,this.currState=Ue,this.forwardEvent=nt}activate(ge){const he=this.futureState._root,Ue=this.currState?this.currState._root:null;this.deactivateChildRoutes(he,Ue,ge),Kt(this.futureState.root),this.activateChildRoutes(he,Ue,ge)}deactivateChildRoutes(ge,he,Ue){const nt=Vt(he);ge.children.forEach(Dt=>{const Qt=Dt.value.outlet;this.deactivateRoutes(Dt,nt[Qt],Ue),delete nt[Qt]}),Gt(nt,(Dt,Qt)=>{this.deactivateRouteAndItsChildren(Dt,Ue)})}deactivateRoutes(ge,he,Ue){const nt=ge.value,Dt=he?he.value:null;if(nt===Dt)if(nt.component){const Qt=Ue.getContext(nt.outlet);Qt&&this.deactivateChildRoutes(ge,he,Qt.children)}else this.deactivateChildRoutes(ge,he,Ue);else Dt&&this.deactivateRouteAndItsChildren(he,Ue)}deactivateRouteAndItsChildren(ge,he){ge.value.component&&this.routeReuseStrategy.shouldDetach(ge.value.snapshot)?this.detachAndStoreRouteSubtree(ge,he):this.deactivateRouteAndOutlet(ge,he)}detachAndStoreRouteSubtree(ge,he){const Ue=he.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:he,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);if(Ue&&Ue.outlet){const Qt=Ue.outlet.detach(),ai=Ue.children.onOutletDeactivated();this.routeReuseStrategy.store(ge.value.snapshot,{componentRef:Qt,route:ge,contexts:ai})}}deactivateRouteAndOutlet(ge,he){const Ue=he.getContext(ge.value.outlet),nt=Ue&&ge.value.component?Ue.children:he,Dt=Vt(ge);for(const Qt of Object.keys(Dt))this.deactivateRouteAndItsChildren(Dt[Qt],nt);Ue&&Ue.outlet&&(Ue.outlet.deactivate(),Ue.children.onOutletDeactivated(),Ue.attachRef=null,Ue.resolver=null,Ue.route=null)}activateChildRoutes(ge,he,Ue){const nt=Vt(he);ge.children.forEach(Dt=>{this.activateRoutes(Dt,nt[Dt.value.outlet],Ue),this.forwardEvent(new Ie(Dt.value.snapshot))}),ge.children.length&&this.forwardEvent(new Y(ge.value.snapshot))}activateRoutes(ge,he,Ue){const nt=ge.value,Dt=he?he.value:null;if(Kt(nt),nt===Dt)if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);this.activateChildRoutes(ge,he,Qt.children)}else this.activateChildRoutes(ge,he,Ue);else if(nt.component){const Qt=Ue.getOrCreateContext(nt.outlet);if(this.routeReuseStrategy.shouldAttach(nt.snapshot)){const ai=this.routeReuseStrategy.retrieve(nt.snapshot);this.routeReuseStrategy.store(nt.snapshot,null),Qt.children.onOutletReAttached(ai.contexts),Qt.attachRef=ai.componentRef,Qt.route=ai.route.value,Qt.outlet&&Qt.outlet.attach(ai.componentRef,ai.route.value),Kt(ai.route.value),this.activateChildRoutes(ge,null,Qt.children)}else{const ai=function xa(Ce){for(let ge=Ce.parent;ge;ge=ge.parent){const he=ge.routeConfig;if(he&&he._loadedConfig)return he._loadedConfig;if(he&&he.component)return null}return null}(nt.snapshot),Di=ai?ai.module.componentFactoryResolver:null;Qt.attachRef=null,Qt.route=nt,Qt.resolver=Di,Qt.outlet&&Qt.outlet.activateWith(nt,Di),this.activateChildRoutes(ge,null,Qt.children)}}else this.activateChildRoutes(ge,null,Ue)}}class Rr{constructor(ge,he){this.routes=ge,this.module=he}}function Xn(Ce){return"function"==typeof Ce}function tr(Ce){return Ce instanceof Me}const Dr=Symbol("INITIAL_VALUE");function Nr(){return(0,J.w)(Ce=>(0,M.a)(Ce.map(ge=>ge.pipe((0,me.q)(1),(0,x.O)(Dr)))).pipe((0,t.R)((ge,he)=>{let Ue=!1;return he.reduce((nt,Dt,Qt)=>nt!==Dr?nt:(Dt===Dr&&(Ue=!0),Ue||!1!==Dt&&Qt!==he.length-1&&!tr(Dt)?nt:Dt),ge)},Dr),(0,W.h)(ge=>ge!==Dr),(0,se.U)(ge=>tr(ge)?ge:!0===ge),(0,me.q)(1)))}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mr,this.attachRef=null}}class mr{constructor(){this.contexts=new Map}onChildOutletCreated(ge,he){const Ue=this.getOrCreateContext(ge);Ue.outlet=he,this.contexts.set(ge,Ue)}onChildOutletDestroyed(ge){const he=this.getContext(ge);he&&(he.outlet=null,he.attachRef=null)}onOutletDeactivated(){const ge=this.contexts;return this.contexts=new Map,ge}onOutletReAttached(ge){this.contexts=ge}getOrCreateContext(ge){let he=this.getContext(ge);return he||(he=new Ur,this.contexts.set(ge,he)),he}getContext(ge){return this.contexts.get(ge)||null}}let gr=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt){this.parentContexts=he,this.location=Ue,this.resolver=nt,this.changeDetector=Qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Dt||ce,he.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const he=this.parentContexts.getContext(this.name);he&&he.route&&(he.attachRef?this.attach(he.attachRef,he.route):this.activateWith(he.route,he.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const he=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(he.instance),he}attach(he,Ue){this.activated=he,this._activatedRoute=Ue,this.location.insert(he.hostView),this.attachEvents.emit(he.instance)}deactivate(){if(this.activated){const he=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(he)}}activateWith(he,Ue){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=he;const Qt=(Ue=Ue||this.resolver).resolveComponentFactory(he._futureSnapshot.routeConfig.component),ai=this.parentContexts.getOrCreateContext(this.name).children,Di=new ra(he,ai,this.location.injector);this.activated=this.location.createComponent(Qt,this.location.length,Di),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(mr),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ce})();class ra{constructor(ge,he,Ue){this.route=ge,this.childContexts=he,this.parent=Ue}get(ge,he){return ge===Wi?this.route:ge===mr?this.childContexts:this.parent.get(ge,he)}}let ca=(()=>{class Ce{}return Ce.\u0275fac=function(he){return new(he||Ce)},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["ng-component"]],decls:1,vars:0,template:function(he,Ue){1&he&&e._UZ(0,"router-outlet")},directives:[gr],encapsulation:2}),Ce})();function da(Ce,ge=""){for(let he=0;he$n(Ue)===ge);return he.push(...Ce.filter(Ue=>$n(Ue)!==ge)),he}const Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function br(Ce,ge,he){var Ue;if(""===ge.path)return"full"===ge.pathMatch&&(Ce.hasChildren()||he.length>0)?Object.assign({},Hr):{matched:!0,consumedSegments:[],remainingSegments:he,parameters:{},positionalParamSegments:{}};const Dt=(ge.matcher||ve)(he,Ce,ge);if(!Dt)return Object.assign({},Hr);const Qt={};Gt(Dt.posParams,(Di,Vi)=>{Qt[Vi]=Di.path});const ai=Dt.consumed.length>0?Object.assign(Object.assign({},Qt),Dt.consumed[Dt.consumed.length-1].parameters):Qt;return{matched:!0,consumedSegments:Dt.consumed,remainingSegments:he.slice(Dt.consumed.length),parameters:ai,positionalParamSegments:null!==(Ue=Dt.posParams)&&void 0!==Ue?Ue:{}}}function Fr(Ce,ge,he,Ue,nt="corrected"){if(he.length>0&&function Wn(Ce,ge,he){return he.some(Ue=>Mt(Ce,ge,Ue)&&$n(Ue)!==ce)}(Ce,he,Ue)){const Qt=new ut(ge,function Aa(Ce,ge,he,Ue){const nt={};nt[ce]=Ue,Ue._sourceSegment=Ce,Ue._segmentIndexShift=ge.length;for(const Dt of he)if(""===Dt.path&&$n(Dt)!==ce){const Qt=new ut([],{});Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,nt[$n(Dt)]=Qt}return nt}(Ce,ge,Ue,new ut(he,Ce.children)));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:[]}}if(0===he.length&&function je(Ce,ge,he){return he.some(Ue=>Mt(Ce,ge,Ue))}(Ce,he,Ue)){const Qt=new ut(Ce.segments,function ha(Ce,ge,he,Ue,nt,Dt){const Qt={};for(const ai of Ue)if(Mt(Ce,he,ai)&&!nt[$n(ai)]){const Di=new ut([],{});Di._sourceSegment=Ce,Di._segmentIndexShift="legacy"===Dt?Ce.segments.length:ge.length,Qt[$n(ai)]=Di}return Object.assign(Object.assign({},nt),Qt)}(Ce,ge,he,Ue,Ce.children,nt));return Qt._sourceSegment=Ce,Qt._segmentIndexShift=ge.length,{segmentGroup:Qt,slicedSegments:he}}const Dt=new ut(Ce.segments,Ce.children);return Dt._sourceSegment=Ce,Dt._segmentIndexShift=ge.length,{segmentGroup:Dt,slicedSegments:he}}function Mt(Ce,ge,he){return(!(Ce.hasChildren()||ge.length>0)||"full"!==he.pathMatch)&&""===he.path}function Ye(Ce,ge,he,Ue){return!!($n(Ce)===Ue||Ue!==ce&&Mt(ge,he,Ce))&&("**"===Ce.path||br(ge,Ce,he).matched)}function Ot(Ce,ge,he){return 0===ge.length&&!Ce.children[he]}class ri{constructor(ge){this.segmentGroup=ge||null}}class Si{constructor(ge){this.urlTree=ge}}function Oi(Ce){return(0,A._)(new ri(Ce))}function rn(Ce){return(0,A._)(new Si(Ce))}class mt{constructor(ge,he,Ue,nt,Dt){this.configLoader=he,this.urlSerializer=Ue,this.urlTree=nt,this.config=Dt,this.allowRedirects=!0,this.ngModule=ge.get(e.h0i)}apply(){const ge=Fr(this.urlTree.root,[],[],this.config).segmentGroup,he=new ut(ge.segments,ge.children);return this.expandSegmentGroup(this.ngModule,this.config,he,ce).pipe((0,se.U)(Dt=>this.createUrlTree(Ai(Dt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(Dt=>{if(Dt instanceof Si)return this.allowRedirects=!1,this.match(Dt.urlTree);throw Dt instanceof ri?this.noMatchError(Dt):Dt}))}match(ge){return this.expandSegmentGroup(this.ngModule,this.config,ge.root,ce).pipe((0,se.U)(nt=>this.createUrlTree(Ai(nt),ge.queryParams,ge.fragment))).pipe((0,r.K)(nt=>{throw nt instanceof ri?this.noMatchError(nt):nt}))}noMatchError(ge){return new Error(`Cannot match any routes. URL Segment: '${ge.segmentGroup}'`)}createUrlTree(ge,he,Ue){const nt=ge.segments.length>0?new ut([],{[ce]:ge}):ge;return new Me(nt,he,Ue)}expandSegmentGroup(ge,he,Ue,nt){return 0===Ue.segments.length&&Ue.hasChildren()?this.expandChildren(ge,he,Ue).pipe((0,se.U)(Dt=>new ut([],Dt))):this.expandSegment(ge,Ue,he,Ue.segments,nt,!0)}expandChildren(ge,he,Ue){const nt=[];for(const Dt of Object.keys(Ue.children))"primary"===Dt?nt.unshift(Dt):nt.push(Dt);return(0,P.D)(nt).pipe((0,h.b)(Dt=>{const Qt=Ue.children[Dt],ai=qn(he,Dt);return this.expandSegmentGroup(ge,ai,Qt,Dt).pipe((0,se.U)(Di=>({segment:Di,outlet:Dt})))}),(0,t.R)((Dt,Qt)=>(Dt[Qt.outlet]=Qt.segment,Dt),{}),function ie(Ce,ge){const he=arguments.length>=2;return Ue=>Ue.pipe(Ce?(0,W.h)((nt,Dt)=>Ce(nt,Dt,Ue)):q.y,ne(1),he?(0,le.d)(ge):(0,Q.T)(()=>new E.K))}())}expandSegment(ge,he,Ue,nt,Dt,Qt){return(0,P.D)(Ue).pipe((0,h.b)(ai=>this.expandSegmentAgainstRoute(ge,he,Ue,ai,nt,Dt,Qt).pipe((0,r.K)(Vi=>{if(Vi instanceof ri)return(0,D.of)(null);throw Vi}))),(0,c.P)(ai=>!!ai),(0,r.K)((ai,Di)=>{if(ai instanceof E.K||"EmptyError"===ai.name)return Ot(he,nt,Dt)?(0,D.of)(new ut([],{})):Oi(he);throw ai}))}expandSegmentAgainstRoute(ge,he,Ue,nt,Dt,Qt,ai){return Ye(nt,he,Dt,Qt)?void 0===nt.redirectTo?this.matchSegmentAgainstRoute(ge,he,nt,Dt,Qt):ai&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt):Oi(he):Oi(he)}expandSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt){return"**"===nt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ge,Ue,nt,Qt):this.expandRegularSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ge,he,Ue,nt){const Dt=this.applyRedirectCommands([],Ue.redirectTo,{});return Ue.redirectTo.startsWith("/")?rn(Dt):this.lineralizeSegments(Ue,Dt).pipe((0,C.z)(Qt=>{const ai=new ut(Qt,{});return this.expandSegment(ge,ai,he,Qt,nt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ge,he,Ue,nt,Dt,Qt){const{matched:ai,consumedSegments:Di,remainingSegments:Vi,positionalParamSegments:Mn}=br(he,nt,Dt);if(!ai)return Oi(he);const zi=this.applyRedirectCommands(Di,nt.redirectTo,Mn);return nt.redirectTo.startsWith("/")?rn(zi):this.lineralizeSegments(nt,zi).pipe((0,C.z)(un=>this.expandSegment(ge,he,Ue,un.concat(Vi),Qt,!1)))}matchSegmentAgainstRoute(ge,he,Ue,nt,Dt){if("**"===Ue.path)return Ue.loadChildren?(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.configLoader.load(ge.injector,Ue)).pipe((0,se.U)(zi=>(Ue._loadedConfig=zi,new ut(nt,{})))):(0,D.of)(new ut(nt,{}));const{matched:Qt,consumedSegments:ai,remainingSegments:Di}=br(he,Ue,nt);return Qt?this.getChildConfig(ge,Ue,nt).pipe((0,C.z)(Mn=>{const zi=Mn.module,un=Mn.routes,{segmentGroup:kn,slicedSegments:ns}=Fr(he,ai,Di,un),Ss=new ut(kn.segments,kn.children);if(0===ns.length&&Ss.hasChildren())return this.expandChildren(zi,un,Ss).pipe((0,se.U)(lo=>new ut(ai,lo)));if(0===un.length&&0===ns.length)return(0,D.of)(new ut(ai,{}));const Zo=$n(Ue)===Dt;return this.expandSegment(zi,Ss,un,ns,Zo?ce:Dt,!0).pipe((0,se.U)(Ea=>new ut(ai.concat(Ea.segments),Ea.children)))})):Oi(he)}getChildConfig(ge,he,Ue){return he.children?(0,D.of)(new Rr(he.children,ge)):he.loadChildren?void 0!==he._loadedConfig?(0,D.of)(he._loadedConfig):this.runCanLoadGuards(ge.injector,he,Ue).pipe((0,C.z)(nt=>nt?this.configLoader.load(ge.injector,he).pipe((0,se.U)(Dt=>(he._loadedConfig=Dt,Dt))):function At(Ce){return(0,A._)(ee(`Cannot load children because the guard of the route "path: '${Ce.path}'" returned false`))}(he))):(0,D.of)(new Rr([],ge))}runCanLoadGuards(ge,he,Ue){const nt=he.canLoad;if(!nt||0===nt.length)return(0,D.of)(!0);const Dt=nt.map(Qt=>{const ai=ge.get(Qt);let Di;if(function wr(Ce){return Ce&&Xn(Ce.canLoad)}(ai))Di=ai.canLoad(he,Ue);else{if(!Xn(ai))throw new Error("Invalid CanLoad guard");Di=ai(he,Ue)}return di(Di)});return(0,D.of)(Dt).pipe(Nr(),(0,S.b)(Qt=>{if(!tr(Qt))return;const ai=ee(`Redirecting to "${this.urlSerializer.serialize(Qt)}"`);throw ai.url=Qt,ai}),(0,se.U)(Qt=>!0===Qt))}lineralizeSegments(ge,he){let Ue=[],nt=he.root;for(;;){if(Ue=Ue.concat(nt.segments),0===nt.numberOfChildren)return(0,D.of)(Ue);if(nt.numberOfChildren>1||!nt.children[ce])return(0,A._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${ge.redirectTo}'`));nt=nt.children[ce]}}applyRedirectCommands(ge,he,Ue){return this.applyRedirectCreatreUrlTree(he,this.urlSerializer.parse(he),ge,Ue)}applyRedirectCreatreUrlTree(ge,he,Ue,nt){const Dt=this.createSegmentGroup(ge,he.root,Ue,nt);return new Me(Dt,this.createQueryParams(he.queryParams,this.urlTree.queryParams),he.fragment)}createQueryParams(ge,he){const Ue={};return Gt(ge,(nt,Dt)=>{if("string"==typeof nt&&nt.startsWith(":")){const ai=nt.substring(1);Ue[Dt]=he[ai]}else Ue[Dt]=nt}),Ue}createSegmentGroup(ge,he,Ue,nt){const Dt=this.createSegments(ge,he.segments,Ue,nt);let Qt={};return Gt(he.children,(ai,Di)=>{Qt[Di]=this.createSegmentGroup(ge,ai,Ue,nt)}),new ut(Dt,Qt)}createSegments(ge,he,Ue,nt){return he.map(Dt=>Dt.path.startsWith(":")?this.findPosParam(ge,Dt,nt):this.findOrReturn(Dt,Ue))}findPosParam(ge,he,Ue){const nt=Ue[he.path.substring(1)];if(!nt)throw new Error(`Cannot redirect to '${ge}'. Cannot find '${he.path}'.`);return nt}findOrReturn(ge,he){let Ue=0;for(const nt of he){if(nt.path===ge.path)return he.splice(Ue),nt;Ue++}return ge}}function Ai(Ce){const ge={};for(const Ue of Object.keys(Ce.children)){const Dt=Ai(Ce.children[Ue]);(Dt.segments.length>0||Dt.hasChildren())&&(ge[Ue]=Dt)}return function $t(Ce){if(1===Ce.numberOfChildren&&Ce.children[ce]){const ge=Ce.children[ce];return new ut(Ce.segments.concat(ge.segments),ge.children)}return Ce}(new ut(Ce.segments,ge))}class Ke{constructor(ge){this.path=ge,this.route=this.path[this.path.length-1]}}class Be{constructor(ge,he){this.component=ge,this.route=he}}function Ne(Ce,ge,he){const Ue=Ce._root;return Nn(Ue,ge?ge._root:null,he,[Ue.value])}function vi(Ce,ge,he){const Ue=function $i(Ce){if(!Ce)return null;for(let ge=Ce.parent;ge;ge=ge.parent){const he=ge.routeConfig;if(he&&he._loadedConfig)return he._loadedConfig}return null}(ge);return(Ue?Ue.module.injector:he).get(Ce)}function Nn(Ce,ge,he,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Vt(ge);return Ce.children.forEach(Qt=>{(function Sr(Ce,ge,he,Ue,nt={canDeactivateChecks:[],canActivateChecks:[]}){const Dt=Ce.value,Qt=ge?ge.value:null,ai=he?he.getContext(Ce.value.outlet):null;if(Qt&&Dt.routeConfig===Qt.routeConfig){const Di=function Ca(Ce,ge,he){if("function"==typeof he)return he(Ce,ge);switch(he){case"pathParamsChange":return!et(Ce.url,ge.url);case"pathParamsOrQueryParamsChange":return!et(Ce.url,ge.url)||!lt(Ce.queryParams,ge.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pi(Ce,ge)||!lt(Ce.queryParams,ge.queryParams);default:return!pi(Ce,ge)}}(Qt,Dt,Dt.routeConfig.runGuardsAndResolvers);Di?nt.canActivateChecks.push(new Ke(Ue)):(Dt.data=Qt.data,Dt._resolvedData=Qt._resolvedData),Nn(Ce,ge,Dt.component?ai?ai.children:null:he,Ue,nt),Di&&ai&&ai.outlet&&ai.outlet.isActivated&&nt.canDeactivateChecks.push(new Be(ai.outlet.component,Qt))}else Qt&&Jr(ge,ai,nt),nt.canActivateChecks.push(new Ke(Ue)),Nn(Ce,null,Dt.component?ai?ai.children:null:he,Ue,nt)})(Qt,Dt[Qt.value.outlet],he,Ue.concat([Qt.value]),nt),delete Dt[Qt.value.outlet]}),Gt(Dt,(Qt,ai)=>Jr(Qt,he.getContext(ai),nt)),nt}function Jr(Ce,ge,he){const Ue=Vt(Ce),nt=Ce.value;Gt(Ue,(Dt,Qt)=>{Jr(Dt,nt.component?ge?ge.children.getContext(Qt):null:ge,he)}),he.canDeactivateChecks.push(new Be(nt.component&&ge&&ge.outlet&&ge.outlet.isActivated?ge.outlet.component:null,nt))}class gs{}function Cs(Ce){return new i.y(ge=>ge.error(Ce))}class _s{constructor(ge,he,Ue,nt,Dt,Qt){this.rootComponentType=ge,this.config=he,this.urlTree=Ue,this.url=nt,this.paramsInheritanceStrategy=Dt,this.relativeLinkResolution=Qt}recognize(){const ge=Fr(this.urlTree.root,[],[],this.config.filter(Qt=>void 0===Qt.redirectTo),this.relativeLinkResolution).segmentGroup,he=this.processSegmentGroup(this.config,ge,ce);if(null===he)return null;const Ue=new Yt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),nt=new bt(Ue,he),Dt=new Mi(this.url,nt);return this.inheritParamsAndData(Dt._root),Dt}inheritParamsAndData(ge){const he=ge.value,Ue=sn(he,this.paramsInheritanceStrategy);he.params=Object.freeze(Ue.params),he.data=Object.freeze(Ue.data),ge.children.forEach(nt=>this.inheritParamsAndData(nt))}processSegmentGroup(ge,he,Ue){return 0===he.segments.length&&he.hasChildren()?this.processChildren(ge,he):this.processSegment(ge,he,he.segments,Ue)}processChildren(ge,he){const Ue=[];for(const Dt of Object.keys(he.children)){const Qt=he.children[Dt],ai=qn(ge,Dt),Di=this.processSegmentGroup(ai,Qt,Dt);if(null===Di)return null;Ue.push(...Di)}const nt=Oa(Ue);return function os(Ce){Ce.sort((ge,he)=>ge.value.outlet===ce?-1:he.value.outlet===ce?1:ge.value.outlet.localeCompare(he.value.outlet))}(nt),nt}processSegment(ge,he,Ue,nt){for(const Dt of ge){const Qt=this.processSegmentAgainstRoute(Dt,he,Ue,nt);if(null!==Qt)return Qt}return Ot(he,Ue,nt)?[]:null}processSegmentAgainstRoute(ge,he,Ue,nt){if(ge.redirectTo||!Ye(ge,he,Ue,nt))return null;let Dt,Qt=[],ai=[];if("**"===ge.path){const kn=Ue.length>0?hi(Ue).parameters:{};Dt=new Yt(Ue,kn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(ge),$n(ge),ge.component,ge,re(he),pe(he)+Ue.length,xt(ge))}else{const kn=br(he,ge,Ue);if(!kn.matched)return null;Qt=kn.consumedSegments,ai=kn.remainingSegments,Dt=new Yt(Qt,kn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(ge),$n(ge),ge.component,ge,re(he),pe(he)+Qt.length,xt(ge))}const Di=function is(Ce){return Ce.children?Ce.children:Ce.loadChildren?Ce._loadedConfig.routes:[]}(ge),{segmentGroup:Vi,slicedSegments:Mn}=Fr(he,Qt,ai,Di.filter(kn=>void 0===kn.redirectTo),this.relativeLinkResolution);if(0===Mn.length&&Vi.hasChildren()){const kn=this.processChildren(Di,Vi);return null===kn?null:[new bt(Dt,kn)]}if(0===Di.length&&0===Mn.length)return[new bt(Dt,[])];const zi=$n(ge)===nt,un=this.processSegment(Di,Vi,Mn,zi?ce:nt);return null===un?null:[new bt(Dt,un)]}}function Vr(Ce){const ge=Ce.value.routeConfig;return ge&&""===ge.path&&void 0===ge.redirectTo}function Oa(Ce){const ge=[],he=new Set;for(const Ue of Ce){if(!Vr(Ue)){ge.push(Ue);continue}const nt=ge.find(Dt=>Ue.value.routeConfig===Dt.value.routeConfig);void 0!==nt?(nt.children.push(...Ue.children),he.add(nt)):ge.push(Ue)}for(const Ue of he){const nt=Oa(Ue.children);ge.push(new bt(Ue.value,nt))}return ge.filter(Ue=>!he.has(Ue))}function re(Ce){let ge=Ce;for(;ge._sourceSegment;)ge=ge._sourceSegment;return ge}function pe(Ce){let ge=Ce,he=ge._segmentIndexShift?ge._segmentIndexShift:0;for(;ge._sourceSegment;)ge=ge._sourceSegment,he+=ge._segmentIndexShift?ge._segmentIndexShift:0;return he-1}function Ge(Ce){return Ce.data||{}}function xt(Ce){return Ce.resolve||{}}function Pi(Ce){return[...Object.keys(Ce),...Object.getOwnPropertySymbols(Ce)]}function cn(Ce){return(0,J.w)(ge=>{const he=Ce(ge);return he?(0,P.D)(he).pipe((0,se.U)(()=>ge)):(0,D.of)(ge)})}class yn extends class Pn{shouldDetach(ge){return!1}store(ge,he){}shouldAttach(ge){return!1}retrieve(ge){return null}shouldReuseRoute(ge,he){return ge.routeConfig===he.routeConfig}}{}const Ln=new e.OlP("ROUTES");class Qn{constructor(ge,he,Ue,nt){this.injector=ge,this.compiler=he,this.onLoadStartListener=Ue,this.onLoadEndListener=nt}load(ge,he){if(he._loader$)return he._loader$;this.onLoadStartListener&&this.onLoadStartListener(he);const nt=this.loadModuleFactory(he.loadChildren).pipe((0,se.U)(Dt=>{this.onLoadEndListener&&this.onLoadEndListener(he);const Qt=Dt.create(ge);return new Rr(Tt(Qt.injector.get(Ln,void 0,e.XFs.Self|e.XFs.Optional)).map(Ma),Qt)}),(0,r.K)(Dt=>{throw he._loader$=void 0,Dt}));return he._loader$=new d(nt,()=>new U.x).pipe(y()),he._loader$}loadModuleFactory(ge){return di(ge()).pipe((0,C.z)(he=>he instanceof e.YKP?(0,D.of)(he):(0,P.D)(this.compiler.compileModuleAsync(he))))}}class dr{shouldProcessUrl(ge){return!0}extract(ge){return ge}merge(ge,he){return ge}}function Zr(Ce){throw Ce}function Gr(Ce,ge,he){return ge.parse("/")}function hr(Ce,ge){return(0,D.of)(null)}const zr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ur=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt,ai,Di){this.rootComponentType=he,this.urlSerializer=Ue,this.rootContexts=nt,this.location=Dt,this.config=Di,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U.x,this.errorHandler=Zr,this.malformedUriErrorHandler=Gr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hr,afterPreactivation:hr},this.urlHandlingStrategy=new dr,this.routeReuseStrategy=new yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Qt.get(e.h0i),this.console=Qt.get(e.c2e);const zi=Qt.get(e.R0b);this.isNgZoneEnabled=zi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Di),this.currentUrlTree=function vt(){return new Me(new ut([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qn(Qt,ai,un=>this.triggerEvent(new ze(un)),un=>this.triggerEvent(new be(un))),this.routerState=Li(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var he;return null===(he=this.location.getState())||void 0===he?void 0:he.\u0275routerPageId}setupNavigations(he){const Ue=this.events;return he.pipe((0,W.h)(nt=>0!==nt.id),(0,se.U)(nt=>Object.assign(Object.assign({},nt),{extractedUrl:this.urlHandlingStrategy.extract(nt.rawUrl)})),(0,J.w)(nt=>{let Dt=!1,Qt=!1;return(0,D.of)(nt).pipe((0,S.b)(ai=>{this.currentNavigation={id:ai.id,initialUrl:ai.currentRawUrl,extractedUrl:ai.extractedUrl,trigger:ai.source,extras:ai.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,J.w)(ai=>{const Di=this.browserUrlTree.toString(),Vi=!this.navigated||ai.extractedUrl.toString()!==Di||Di!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Vi)&&this.urlHandlingStrategy.shouldProcessUrl(ai.rawUrl))return tt(ai.source)&&(this.browserUrlTree=ai.extractedUrl),(0,D.of)(ai).pipe((0,J.w)(zi=>{const un=this.transitions.getValue();return Ue.next(new V(zi.id,this.serializeUrl(zi.extractedUrl),zi.source,zi.restoredState)),un!==this.transitions.getValue()?z.E:Promise.resolve(zi)}),function ji(Ce,ge,he,Ue){return(0,J.w)(nt=>function oi(Ce,ge,he,Ue,nt){return new mt(Ce,ge,he,Ue,nt).apply()}(Ce,ge,he,nt.extractedUrl,Ue).pipe((0,se.U)(Dt=>Object.assign(Object.assign({},nt),{urlAfterRedirects:Dt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,S.b)(zi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:zi.urlAfterRedirects})}),function Ht(Ce,ge,he,Ue,nt){return(0,C.z)(Dt=>function Ia(Ce,ge,he,Ue,nt="emptyOnly",Dt="legacy"){try{const Qt=new _s(Ce,ge,he,Ue,nt,Dt).recognize();return null===Qt?Cs(new gs):(0,D.of)(Qt)}catch(Qt){return Cs(Qt)}}(Ce,ge,Dt.urlAfterRedirects,he(Dt.urlAfterRedirects),Ue,nt).pipe((0,se.U)(Qt=>Object.assign(Object.assign({},Dt),{targetSnapshot:Qt}))))}(this.rootComponentType,this.config,zi=>this.serializeUrl(zi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,S.b)(zi=>{if("eager"===this.urlUpdateStrategy){if(!zi.extras.skipLocationChange){const kn=this.urlHandlingStrategy.merge(zi.urlAfterRedirects,zi.rawUrl);this.setBrowserUrl(kn,zi)}this.browserUrlTree=zi.urlAfterRedirects}const un=new fe(zi.id,this.serializeUrl(zi.extractedUrl),this.serializeUrl(zi.urlAfterRedirects),zi.targetSnapshot);Ue.next(un)}));if(Vi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:un,extractedUrl:kn,source:ns,restoredState:Ss,extras:Zo}=ai,B1=new V(un,this.serializeUrl(kn),ns,Ss);Ue.next(B1);const Ea=Li(kn,this.rootComponentType).snapshot;return(0,D.of)(Object.assign(Object.assign({},ai),{targetSnapshot:Ea,urlAfterRedirects:kn,extras:Object.assign(Object.assign({},Zo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ai.rawUrl,ai.resolve(null),z.E}),cn(ai=>{const{targetSnapshot:Di,id:Vi,extractedUrl:Mn,rawUrl:zi,extras:{skipLocationChange:un,replaceUrl:kn}}=ai;return this.hooks.beforePreactivation(Di,{navigationId:Vi,appliedUrlTree:Mn,rawUrlTree:zi,skipLocationChange:!!un,replaceUrl:!!kn})}),(0,S.b)(ai=>{const Di=new ye(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot);this.triggerEvent(Di)}),(0,se.U)(ai=>Object.assign(Object.assign({},ai),{guards:Ne(ai.targetSnapshot,ai.currentSnapshot,this.rootContexts)})),function $a(Ce,ge){return(0,C.z)(he=>{const{targetSnapshot:Ue,currentSnapshot:nt,guards:{canActivateChecks:Dt,canDeactivateChecks:Qt}}=he;return 0===Qt.length&&0===Dt.length?(0,D.of)(Object.assign(Object.assign({},he),{guardsResult:!0})):function Hi(Ce,ge,he,Ue){return(0,P.D)(Ce).pipe((0,C.z)(nt=>function cr(Ce,ge,he,Ue,nt){const Dt=ge&&ge.routeConfig?ge.routeConfig.canDeactivate:null;if(!Dt||0===Dt.length)return(0,D.of)(!0);const Qt=Dt.map(ai=>{const Di=vi(ai,ge,nt);let Vi;if(function jr(Ce){return Ce&&Xn(Ce.canDeactivate)}(Di))Vi=di(Di.canDeactivate(Ce,ge,he,Ue));else{if(!Xn(Di))throw new Error("Invalid CanDeactivate guard");Vi=di(Di(Ce,ge,he,Ue))}return Vi.pipe((0,c.P)())});return(0,D.of)(Qt).pipe(Nr())}(nt.component,nt.route,he,ge,Ue)),(0,c.P)(nt=>!0!==nt,!0))}(Qt,Ue,nt,Ce).pipe((0,C.z)(ai=>ai&&function la(Ce){return"boolean"==typeof Ce}(ai)?function Vn(Ce,ge,he,Ue){return(0,P.D)(ge).pipe((0,h.b)(nt=>(0,k.z)(function Cr(Ce,ge){return null!==Ce&&ge&&ge(new Z(Ce)),(0,D.of)(!0)}(nt.route.parent,Ue),function ms(Ce,ge){return null!==Ce&&ge&&ge(new ot(Ce)),(0,D.of)(!0)}(nt.route,Ue),function Da(Ce,ge,he){const Ue=ge[ge.length-1],Dt=ge.slice(0,ge.length-1).reverse().map(Qt=>function Lt(Ce){const ge=Ce.routeConfig?Ce.routeConfig.canActivateChild:null;return ge&&0!==ge.length?{node:Ce,guards:ge}:null}(Qt)).filter(Qt=>null!==Qt).map(Qt=>(0,w.P)(()=>{const ai=Qt.guards.map(Di=>{const Vi=vi(Di,Qt.node,he);let Mn;if(function ma(Ce){return Ce&&Xn(Ce.canActivateChild)}(Vi))Mn=di(Vi.canActivateChild(Ue,Ce));else{if(!Xn(Vi))throw new Error("Invalid CanActivateChild guard");Mn=di(Vi(Ue,Ce))}return Mn.pipe((0,c.P)())});return(0,D.of)(ai).pipe(Nr())}));return(0,D.of)(Dt).pipe(Nr())}(Ce,nt.path,he),function ss(Ce,ge,he){const Ue=ge.routeConfig?ge.routeConfig.canActivate:null;if(!Ue||0===Ue.length)return(0,D.of)(!0);const nt=Ue.map(Dt=>(0,w.P)(()=>{const Qt=vi(Dt,ge,he);let ai;if(function lr(Ce){return Ce&&Xn(Ce.canActivate)}(Qt))ai=di(Qt.canActivate(ge,Ce));else{if(!Xn(Qt))throw new Error("Invalid CanActivate guard");ai=di(Qt(ge,Ce))}return ai.pipe((0,c.P)())}));return(0,D.of)(nt).pipe(Nr())}(Ce,nt.route,he))),(0,c.P)(nt=>!0!==nt,!0))}(Ue,Dt,Ce,ge):(0,D.of)(ai)),(0,se.U)(ai=>Object.assign(Object.assign({},he),{guardsResult:ai})))})}(this.ngModule.injector,ai=>this.triggerEvent(ai)),(0,S.b)(ai=>{if(tr(ai.guardsResult)){const Vi=ee(`Redirecting to "${this.serializeUrl(ai.guardsResult)}"`);throw Vi.url=ai.guardsResult,Vi}const Di=new ke(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot,!!ai.guardsResult);this.triggerEvent(Di)}),(0,W.h)(ai=>!!ai.guardsResult||(this.restoreHistory(ai),this.cancelNavigationTransition(ai,""),!1)),cn(ai=>{if(ai.guards.canActivateChecks.length)return(0,D.of)(ai).pipe((0,S.b)(Di=>{const Vi=new Ee(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(Vi)}),(0,J.w)(Di=>{let Vi=!1;return(0,D.of)(Di).pipe(function ii(Ce,ge){return(0,C.z)(he=>{const{targetSnapshot:Ue,guards:{canActivateChecks:nt}}=he;if(!nt.length)return(0,D.of)(he);let Dt=0;return(0,P.D)(nt).pipe((0,h.b)(Qt=>function ni(Ce,ge,he,Ue){return function Ci(Ce,ge,he,Ue){const nt=Pi(Ce);if(0===nt.length)return(0,D.of)({});const Dt={};return(0,P.D)(nt).pipe((0,C.z)(Qt=>function tn(Ce,ge,he,Ue){const nt=vi(Ce,ge,Ue);return di(nt.resolve?nt.resolve(ge,he):nt(ge,he))}(Ce[Qt],ge,he,Ue).pipe((0,S.b)(ai=>{Dt[Qt]=ai}))),ne(1),(0,C.z)(()=>Pi(Dt).length===nt.length?(0,D.of)(Dt):z.E))}(Ce._resolve,Ce,ge,Ue).pipe((0,se.U)(Dt=>(Ce._resolvedData=Dt,Ce.data=Object.assign(Object.assign({},Ce.data),sn(Ce,he).resolve),null)))}(Qt.route,Ue,Ce,ge)),(0,S.b)(()=>Dt++),ne(1),(0,C.z)(Qt=>Dt===nt.length?(0,D.of)(he):z.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,S.b)({next:()=>Vi=!0,complete:()=>{Vi||(this.restoreHistory(Di),this.cancelNavigationTransition(Di,"At least one route resolver didn't emit any value."))}}))}),(0,S.b)(Di=>{const Vi=new te(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(Vi)}))}),cn(ai=>{const{targetSnapshot:Di,id:Vi,extractedUrl:Mn,rawUrl:zi,extras:{skipLocationChange:un,replaceUrl:kn}}=ai;return this.hooks.afterPreactivation(Di,{navigationId:Vi,appliedUrlTree:Mn,rawUrlTree:zi,skipLocationChange:!!un,replaceUrl:!!kn})}),(0,se.U)(ai=>{const Di=function Ri(Ce,ge,he){const Ue=ki(Ce,ge._root,he?he._root:void 0);return new bi(Ue,ge)}(this.routeReuseStrategy,ai.targetSnapshot,ai.currentRouterState);return Object.assign(Object.assign({},ai),{targetRouterState:Di})}),(0,S.b)(ai=>{this.currentUrlTree=ai.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ai.urlAfterRedirects,ai.rawUrl),this.routerState=ai.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ai.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ai),this.browserUrlTree=ai.urlAfterRedirects)}),((Ce,ge,he)=>(0,se.U)(Ue=>(new qr(ge,Ue.targetRouterState,Ue.currentRouterState,he).activate(Ce),Ue)))(this.rootContexts,this.routeReuseStrategy,ai=>this.triggerEvent(ai)),(0,S.b)({next(){Dt=!0},complete(){Dt=!0}}),(0,I.x)(()=>{var ai;Dt||Qt||this.cancelNavigationTransition(nt,`Navigation ID ${nt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ai=this.currentNavigation)||void 0===ai?void 0:ai.id)===nt.id&&(this.currentNavigation=null)}),(0,r.K)(ai=>{if(Qt=!0,function ue(Ce){return Ce&&Ce[G]}(ai)){const Di=tr(ai.url);Di||(this.navigated=!0,this.restoreHistory(nt,!0));const Vi=new H(nt.id,this.serializeUrl(nt.extractedUrl),ai.message);Ue.next(Vi),Di?setTimeout(()=>{const Mn=this.urlHandlingStrategy.merge(ai.url,this.rawUrlTree),zi={skipLocationChange:nt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tt(nt.source)};this.scheduleNavigation(Mn,"imperative",null,zi,{resolve:nt.resolve,reject:nt.reject,promise:nt.promise})},0):nt.resolve(!1)}else{this.restoreHistory(nt,!0);const Di=new $(nt.id,this.serializeUrl(nt.extractedUrl),ai);Ue.next(Di);try{nt.resolve(this.errorHandler(ai))}catch(Vi){nt.reject(Vi)}}return z.E}))}))}resetRootComponentType(he){this.rootComponentType=he,this.routerState.root.component=this.rootComponentType}setTransition(he){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),he))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(he=>{const Ue="popstate"===he.type?"popstate":"hashchange";"popstate"===Ue&&setTimeout(()=>{var nt;const Dt={replaceUrl:!0},Qt=(null===(nt=he.state)||void 0===nt?void 0:nt.navigationId)?he.state:null;if(Qt){const Di=Object.assign({},Qt);delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Dt.state=Di)}const ai=this.parseUrl(he.url);this.scheduleNavigation(ai,Ue,Qt,Dt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(he){this.events.next(he)}resetConfig(he){da(he),this.config=he.map(Ma),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(he,Ue={}){const{relativeTo:nt,queryParams:Dt,fragment:Qt,queryParamsHandling:ai,preserveFragment:Di}=Ue,Vi=nt||this.routerState.root,Mn=Di?this.currentUrlTree.fragment:Qt;let zi=null;switch(ai){case"merge":zi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Dt);break;case"preserve":zi=this.currentUrlTree.queryParams;break;default:zi=Dt||null}return null!==zi&&(zi=this.removeEmptyProps(zi)),function An(Ce,ge,he,Ue,nt){if(0===he.length)return wi(ge.root,ge.root,ge.root,Ue,nt);const Dt=function Gn(Ce){if("string"==typeof Ce[0]&&1===Ce.length&&"/"===Ce[0])return new bn(!0,0,Ce);let ge=0,he=!1;const Ue=Ce.reduce((nt,Dt,Qt)=>{if("object"==typeof Dt&&null!=Dt){if(Dt.outlets){const ai={};return Gt(Dt.outlets,(Di,Vi)=>{ai[Vi]="string"==typeof Di?Di.split("/"):Di}),[...nt,{outlets:ai}]}if(Dt.segmentPath)return[...nt,Dt.segmentPath]}return"string"!=typeof Dt?[...nt,Dt]:0===Qt?(Dt.split("/").forEach((ai,Di)=>{0==Di&&"."===ai||(0==Di&&""===ai?he=!0:".."===ai?ge++:""!=ai&&nt.push(ai))}),nt):[...nt,Dt]},[]);return new bn(he,ge,Ue)}(he);if(Dt.toRoot())return wi(ge.root,ge.root,new ut([],{}),Ue,nt);const Qt=function kr(Ce,ge,he){if(Ce.isAbsolute)return new ar(ge.root,!0,0);if(-1===he.snapshot._lastPathIndex){const Dt=he.snapshot._urlSegment;return new ar(Dt,Dt===ge.root,0)}const Ue=Kn(Ce.commands[0])?0:1;return function Pr(Ce,ge,he){let Ue=Ce,nt=ge,Dt=he;for(;Dt>nt;){if(Dt-=nt,Ue=Ue.parent,!Ue)throw new Error("Invalid number of '../'");nt=Ue.segments.length}return new ar(Ue,!1,nt-Dt)}(he.snapshot._urlSegment,he.snapshot._lastPathIndex+Ue,Ce.numberOfDoubleDots)}(Dt,ge,Ce),ai=Qt.processChildren?oa(Qt.segmentGroup,Qt.index,Dt.commands):sa(Qt.segmentGroup,Qt.index,Dt.commands);return wi(ge.root,Qt.segmentGroup,ai,Ue,nt)}(Vi,this.currentUrlTree,he,zi,null!=Mn?Mn:null)}navigateByUrl(he,Ue={skipLocationChange:!1}){const nt=tr(he)?he:this.parseUrl(he),Dt=this.urlHandlingStrategy.merge(nt,this.rawUrlTree);return this.scheduleNavigation(Dt,"imperative",null,Ue)}navigate(he,Ue={skipLocationChange:!1}){return function ka(Ce){for(let ge=0;ge{const Dt=he[nt];return null!=Dt&&(Ue[nt]=Dt),Ue},{})}processNavigations(){this.navigations.subscribe(he=>{this.navigated=!0,this.lastSuccessfulId=he.id,this.currentPageId=he.targetPageId,this.events.next(new R(he.id,this.serializeUrl(he.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,he.resolve(!0)},he=>{this.console.warn(`Unhandled Navigation Error: ${he}`)})}scheduleNavigation(he,Ue,nt,Dt,Qt){var ai,Di;if(this.disposed)return Promise.resolve(!1);let Vi,Mn,zi;Qt?(Vi=Qt.resolve,Mn=Qt.reject,zi=Qt.promise):zi=new Promise((ns,Ss)=>{Vi=ns,Mn=Ss});const un=++this.navigationId;let kn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(nt=this.location.getState()),kn=nt&&nt.\u0275routerPageId?nt.\u0275routerPageId:Dt.replaceUrl||Dt.skipLocationChange?null!==(ai=this.browserPageId)&&void 0!==ai?ai:0:(null!==(Di=this.browserPageId)&&void 0!==Di?Di:0)+1):kn=0,this.setTransition({id:un,targetPageId:kn,source:Ue,restoredState:nt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:he,extras:Dt,resolve:Vi,reject:Mn,promise:zi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),zi.catch(ns=>Promise.reject(ns))}setBrowserUrl(he,Ue){const nt=this.urlSerializer.serialize(he),Dt=Object.assign(Object.assign({},Ue.extras.state),this.generateNgRouterState(Ue.id,Ue.targetPageId));this.location.isCurrentPathEqualTo(nt)||Ue.extras.replaceUrl?this.location.replaceState(nt,"",Dt):this.location.go(nt,"",Dt)}restoreHistory(he,Ue=!1){var nt,Dt;if("computed"===this.canceledNavigationResolution){const Qt=this.currentPageId-he.targetPageId;"popstate"!==he.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(nt=this.currentNavigation)||void 0===nt?void 0:nt.finalUrl)||0===Qt?this.currentUrlTree===(null===(Dt=this.currentNavigation)||void 0===Dt?void 0:Dt.finalUrl)&&0===Qt&&(this.resetState(he),this.browserUrlTree=he.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Qt)}else"replace"===this.canceledNavigationResolution&&(Ue&&this.resetState(he),this.resetUrlToCurrentUrlTree())}resetState(he){this.routerState=he.currentRouterState,this.currentUrlTree=he.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,he.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(he,Ue){const nt=new H(he.id,this.serializeUrl(he.extractedUrl),Ue);this.triggerEvent(nt),he.resolve(!1)}generateNgRouterState(he,Ue){return"computed"===this.canceledNavigationResolution?{navigationId:he,\u0275routerPageId:Ue}:{navigationId:he}}}return Ce.\u0275fac=function(he){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function tt(Ce){return"imperative"!==Ce}let Et=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt){this.router=he,this.route=Ue,this.tabIndexAttribute=nt,this.renderer=Dt,this.el=Qt,this.commands=null,this.onChanges=new U.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(he){if(null!=this.tabIndexAttribute)return;const Ue=this.renderer,nt=this.el.nativeElement;null!==he?Ue.setAttribute(nt,"tabindex",he):Ue.removeAttribute(nt,"tabindex")}ngOnChanges(he){this.onChanges.next(this)}set routerLink(he){null!=he?(this.commands=Array.isArray(he)?he:[he],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const he={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,he),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(Wi),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(he,Ue){1&he&&e.NdJ("click",function(){return Ue.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})(),St=(()=>{class Ce{constructor(he,Ue,nt){this.router=he,this.route=Ue,this.locationStrategy=nt,this.commands=null,this.href=null,this.onChanges=new U.x,this.subscription=he.events.subscribe(Dt=>{Dt instanceof R&&this.updateTargetUrlAndHref()})}set routerLink(he){this.commands=null!=he?Array.isArray(he)?he:[he]:null}ngOnChanges(he){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(he,Ue,nt,Dt,Qt){if(0!==he||Ue||nt||Dt||Qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ai={skipLocationChange:Pt(this.skipLocationChange),replaceUrl:Pt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ai),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Pt(this.preserveFragment)})}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(Wi),e.Y36(n.S$))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(he,Ue){1&he&&e.NdJ("click",function(Dt){return Ue.onClick(Dt.button,Dt.ctrlKey,Dt.shiftKey,Dt.altKey,Dt.metaKey)}),2&he&&e.uIk("target",Ue.target)("href",Ue.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})();function Pt(Ce){return""===Ce||!!Ce}let qt=(()=>{class Ce{constructor(he,Ue,nt,Dt,Qt,ai){this.router=he,this.element=Ue,this.renderer=nt,this.cdr=Dt,this.link=Qt,this.linkWithHref=ai,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=he.events.subscribe(Di=>{Di instanceof R&&this.update()})}ngAfterContentInit(){(0,D.of)(this.links.changes,this.linksWithHrefs.changes,(0,D.of)(null)).pipe((0,_.J)()).subscribe(he=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var he;null===(he=this.linkInputChangesSubscription)||void 0===he||he.unsubscribe();const Ue=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(nt=>!!nt).map(nt=>nt.onChanges);this.linkInputChangesSubscription=(0,P.D)(Ue).pipe((0,_.J)()).subscribe(nt=>{this.isActive!==this.isLinkActive(this.router)(nt)&&this.update()})}set routerLinkActive(he){const Ue=Array.isArray(he)?he:he.split(" ");this.classes=Ue.filter(nt=>!!nt)}ngOnChanges(he){this.update()}ngOnDestroy(){var he;this.routerEventsSubscription.unsubscribe(),null===(he=this.linkInputChangesSubscription)||void 0===he||he.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const he=this.hasActiveLinks();this.isActive!==he&&(this.isActive=he,this.cdr.markForCheck(),this.classes.forEach(Ue=>{he?this.renderer.addClass(this.element.nativeElement,Ue):this.renderer.removeClass(this.element.nativeElement,Ue)}),this.isActiveChange.emit(he))})}isLinkActive(he){const Ue=function gi(Ce){return!!Ce.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return nt=>!!nt.urlTree&&he.isActive(nt.urlTree,Ue)}hasActiveLinks(){const he=this.isLinkActive(this.router);return this.link&&he(this.link)||this.linkWithHref&&he(this.linkWithHref)||this.links.some(he)||this.linksWithHrefs.some(he)}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.Y36(ur),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Et,8),e.Y36(St,8))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLinkActive",""]],contentQueries:function(he,Ue,nt){if(1&he&&(e.Suo(nt,Et,5),e.Suo(nt,St,5)),2&he){let Dt;e.iGM(Dt=e.CRH())&&(Ue.links=Dt),e.iGM(Dt=e.CRH())&&(Ue.linksWithHrefs=Dt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ce})();class ti{}class Ei{preload(ge,he){return(0,D.of)(null)}}let Ki=(()=>{class Ce{constructor(he,Ue,nt,Dt){this.router=he,this.injector=nt,this.preloadingStrategy=Dt,this.loader=new Qn(nt,Ue,Di=>he.triggerEvent(new ze(Di)),Di=>he.triggerEvent(new be(Di)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.h)(he=>he instanceof R),(0,h.b)(()=>this.preload())).subscribe(()=>{})}preload(){const he=this.injector.get(e.h0i);return this.processRoutes(he,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(he,Ue){const nt=[];for(const Dt of Ue)if(Dt.loadChildren&&!Dt.canLoad&&Dt._loadedConfig){const Qt=Dt._loadedConfig;nt.push(this.processRoutes(Qt.module,Qt.routes))}else Dt.loadChildren&&!Dt.canLoad?nt.push(this.preloadConfig(he,Dt)):Dt.children&&nt.push(this.processRoutes(he,Dt.children));return(0,P.D)(nt).pipe((0,_.J)(),(0,se.U)(Dt=>{}))}preloadConfig(he,Ue){return this.preloadingStrategy.preload(Ue,()=>(Ue._loadedConfig?(0,D.of)(Ue._loadedConfig):this.loader.load(he.injector,Ue)).pipe((0,C.z)(Dt=>(Ue._loadedConfig=Dt,this.processRoutes(Dt.module,Dt.routes)))))}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(ur),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(ti))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qi=(()=>{class Ce{constructor(he,Ue,nt={}){this.router=he,this.viewportScroller=Ue,this.options=nt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},nt.scrollPositionRestoration=nt.scrollPositionRestoration||"disabled",nt.anchorScrolling=nt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(he=>{he instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=he.navigationTrigger,this.restoredId=he.restoredState?he.restoredState.navigationId:0):he instanceof R&&(this.lastId=he.id,this.scheduleScrollEvent(he,this.router.parseUrl(he.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(he=>{he instanceof Ae&&(he.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(he.position):he.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(he.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(he,Ue){this.router.triggerEvent(new Ae(he,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ue))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ce.\u0275fac=function(he){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const xn=new e.OlP("ROUTER_CONFIGURATION"),jn=new e.OlP("ROUTER_FORROOT_GUARD"),On=[n.Ye,{provide:qe,useClass:Ze},{provide:ur,useFactory:function Br(Ce,ge,he,Ue,nt,Dt,Qt={},ai,Di){const Vi=new ur(null,Ce,ge,he,Ue,nt,Tt(Dt));return ai&&(Vi.urlHandlingStrategy=ai),Di&&(Vi.routeReuseStrategy=Di),function Na(Ce,ge){Ce.errorHandler&&(ge.errorHandler=Ce.errorHandler),Ce.malformedUriErrorHandler&&(ge.malformedUriErrorHandler=Ce.malformedUriErrorHandler),Ce.onSameUrlNavigation&&(ge.onSameUrlNavigation=Ce.onSameUrlNavigation),Ce.paramsInheritanceStrategy&&(ge.paramsInheritanceStrategy=Ce.paramsInheritanceStrategy),Ce.relativeLinkResolution&&(ge.relativeLinkResolution=Ce.relativeLinkResolution),Ce.urlUpdateStrategy&&(ge.urlUpdateStrategy=Ce.urlUpdateStrategy),Ce.canceledNavigationResolution&&(ge.canceledNavigationResolution=Ce.canceledNavigationResolution)}(Qt,Vi),Qt.enableTracing&&Vi.events.subscribe(Mn=>{var zi,un;null===(zi=console.group)||void 0===zi||zi.call(console,`Router Event: ${Mn.constructor.name}`),console.log(Mn.toString()),console.log(Mn),null===(un=console.groupEnd)||void 0===un||un.call(console)}),Vi},deps:[qe,mr,n.Ye,e.zs3,e.Sil,Ln,xn,[class xr{},new e.FiY],[class wn{},new e.FiY]]},mr,{provide:Wi,useFactory:function za(Ce){return Ce.routerState.root},deps:[ur]},Ki,Ei,class fi{preload(ge,he){return he().pipe((0,r.K)(()=>(0,D.of)(null)))}},{provide:xn,useValue:{enableTracing:!1}}];function Kr(){return new e.PXZ("Router",ur)}let _a=(()=>{class Ce{constructor(he,Ue){}static forRoot(he,Ue){return{ngModule:Ce,providers:[On,Ir(he),{provide:jn,useFactory:fr,deps:[[ur,new e.FiY,new e.tp0]]},{provide:xn,useValue:Ue||{}},{provide:n.S$,useFactory:_r,deps:[n.lw,[new e.tBr(n.mr),new e.FiY],xn]},{provide:Qi,useFactory:ir,deps:[ur,n.EM,xn]},{provide:ti,useExisting:Ue&&Ue.preloadingStrategy?Ue.preloadingStrategy:Ei},{provide:e.PXZ,multi:!0,useFactory:Kr},[Qa,{provide:e.ip1,multi:!0,useFactory:_e,deps:[Qa]},{provide:K,useFactory:Xe,deps:[Qa]},{provide:e.tb,multi:!0,useExisting:K}]]}}static forChild(he){return{ngModule:Ce,providers:[Ir(he)]}}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(jn,8),e.LFG(ur,8))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();function ir(Ce,ge,he){return he.scrollOffset&&ge.setOffset(he.scrollOffset),new Qi(Ce,ge,he)}function _r(Ce,ge,he={}){return he.useHash?new n.Do(Ce,ge):new n.b0(Ce,ge)}function fr(Ce){return"guarded"}function Ir(Ce){return[{provide:e.deG,multi:!0,useValue:Ce},{provide:Ln,multi:!0,useValue:Ce}]}let Qa=(()=>{class Ce{constructor(he){this.injector=he,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ue=null;const nt=new Promise(ai=>Ue=ai),Dt=this.injector.get(ur),Qt=this.injector.get(xn);return"disabled"===Qt.initialNavigation?(Dt.setUpLocationChangeListener(),Ue(!0)):"enabled"===Qt.initialNavigation||"enabledBlocking"===Qt.initialNavigation?(Dt.hooks.afterPreactivation=()=>this.initNavigation?(0,D.of)(null):(this.initNavigation=!0,Ue(!0),this.resultOfPreactivationDone),Dt.initialNavigation()):Ue(!0),nt})}bootstrapListener(he){const Ue=this.injector.get(xn),nt=this.injector.get(Ki),Dt=this.injector.get(Qi),Qt=this.injector.get(ur),ai=this.injector.get(e.z2F);he===ai.components[0]&&(("enabledNonBlocking"===Ue.initialNavigation||void 0===Ue.initialNavigation)&&Qt.initialNavigation(),nt.setUpPreloading(),Dt.init(),Qt.resetRootComponentType(ai.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ce.\u0275fac=function(he){return new(he||Ce)(e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function _e(Ce){return Ce.appInitializer.bind(Ce)}function Xe(Ce){return Ce.bootstrapListener.bind(Ce)}const K=new e.OlP("Router Initializer")},9444:(He,j,p)=>{"use strict";p.d(j,{BN:()=>Zr,uH:()=>ka});var e=p(5e3);function i(tt,Et){var St=Object.keys(tt);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(tt);Et&&(Pt=Pt.filter(function(qt){return Object.getOwnPropertyDescriptor(tt,qt).enumerable})),St.push.apply(St,Pt)}return St}function u(tt){for(var Et=1;Ettt.length)&&(Et=tt.length);for(var St=0,Pt=new Array(Et);St0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function De(tt){for(var Et=[],St=(tt||[]).length>>>0;St--;)Et[St]=tt[St];return Et}function oe(tt){return tt.classList?De(tt.classList):(tt.getAttribute("class")||"").split(" ").filter(function(Et){return Et})}function Me(tt){return"".concat(tt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ft(tt){return Object.keys(tt||{}).reduce(function(Et,St){return Et+"".concat(St,": ").concat(tt[St].trim(),";")},"")}function Rt(tt){return tt.size!==_t.size||tt.x!==_t.x||tt.y!==_t.y||tt.rotate!==_t.rotate||tt.flipX||tt.flipY}function Ze(){var Et=H,St=vt.familyPrefix,Pt=vt.replacementClass,qt=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==St||Pt!==Et){var gi=new RegExp("\\.".concat("fa","\\-"),"g"),ti=new RegExp("\\--".concat("fa","\\-"),"g"),fi=new RegExp("\\.".concat(Et),"g");qt=qt.replace(gi,".".concat(St,"-")).replace(ti,"--".concat(St,"-")).replace(fi,".".concat(Pt))}return qt}var we=!1;function Fe(){vt.autoAddCss&&!we&&(function ei(tt){if(tt&&_){var Et=c.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var St=c.head.childNodes,Pt=null,qt=St.length-1;qt>-1;qt--){var gi=St[qt],ti=(gi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(ti)>-1&&(Pt=gi)}c.head.insertBefore(Et,Pt)}}(Ze()),we=!0)}var rt={mixout:function(){return{dom:{css:Ze,insertCss:Fe}}},hooks:function(){return{beforeDOMElementCreation:function(){Fe()},beforeI2svg:function(){Fe()}}}},at=h||{};at[g]||(at[g]={}),at[g].styles||(at[g].styles={}),at[g].hooks||(at[g].hooks={}),at[g].shims||(at[g].shims=[]);var yt=at[g],mi=[],Jt=!1;function qi(tt){!_||(Jt?setTimeout(tt,0):mi.push(tt))}function ui(tt){var Et=tt.tag,St=tt.attributes,Pt=void 0===St?{}:St,qt=tt.children,gi=void 0===qt?[]:qt;return"string"==typeof tt?Me(tt):"<".concat(Et," ").concat(function ut(tt){return Object.keys(tt||{}).reduce(function(Et,St){return Et+"".concat(St,'="').concat(Me(tt[St]),'" ')},"").trim()}(Pt),">").concat(gi.map(ui).join(""),"")}function si(tt,Et,St){if(tt&&tt[Et]&&tt[Et][St])return{prefix:Et,iconName:St,icon:tt[Et][St]}}_&&((Jt=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function tt(){c.removeEventListener("DOMContentLoaded",tt),Jt=1,mi.map(function(Et){return Et()})}));var Ui=function(Et,St,Pt,qt){var Ei,Ki,Qi,gi=Object.keys(Et),ti=gi.length,fi=void 0!==qt?function(Et,St){return function(Pt,qt,gi,ti){return Et.call(St,Pt,qt,gi,ti)}}(St,qt):St;for(void 0===Pt?(Ei=1,Qi=Et[gi[0]]):(Ei=0,Qi=Pt);Ei=55296&&qt<=56319&&St2&&void 0!==arguments[2]?arguments[2]:{},Pt=St.skipHooks,qt=void 0!==Pt&&Pt,gi=Ft(Et);"function"!=typeof yt.hooks.addPack||qt?yt.styles[tt]=u(u({},yt.styles[tt]||{}),gi):yt.hooks.addPack(tt,Ft(Et)),"fas"===tt&&pt("fa",Et)}var It=yt.styles,de=yt.shims,$e=Object.values(Ie),bt=null,Vt={},bi={},Li={},Ji={},Wi={},sn=Object.keys(Y);function Yt(tt,Et){var St=Et.split("-"),Pt=St[0],qt=St.slice(1).join("-");return Pt!==tt||""===qt||function mn(tt){return~lt.indexOf(tt)}(qt)?null:qt}var Mi=function(){var Et=function(gi){return Ui(It,function(ti,fi,Ei){return ti[Ei]=Ui(fi,gi,{}),ti},{})};Vt=Et(function(qt,gi,ti){return gi[3]&&(qt[gi[3]]=ti),gi[2]&&gi[2].filter(function(Ei){return"number"==typeof Ei}).forEach(function(Ei){qt[Ei.toString(16)]=ti}),qt}),bi=Et(function(qt,gi,ti){return qt[ti]=ti,gi[2]&&gi[2].filter(function(Ei){return"string"==typeof Ei}).forEach(function(Ei){qt[Ei]=ti}),qt}),Wi=Et(function(qt,gi,ti){var fi=gi[2];return qt[ti]=ti,fi.forEach(function(Ei){qt[Ei]=ti}),qt});var St="far"in It||vt.autoFetchSvg,Pt=Ui(de,function(qt,gi){var ti=gi[0],fi=gi[1],Ei=gi[2];return"far"===fi&&!St&&(fi="fas"),"string"==typeof ti&&(qt.names[ti]={prefix:fi,iconName:Ei}),"number"==typeof ti&&(qt.unicodes[ti.toString(16)]={prefix:fi,iconName:Ei}),qt},{names:{},unicodes:{}});Li=Pt.names,Ji=Pt.unicodes,bt=Hn(vt.styleDefault)};function Je(tt,Et){return(Vt[tt]||{})[Et]}function Kt(tt,Et){return(Wi[tt]||{})[Et]}function pi(tt){return Li[tt]||{prefix:null,iconName:null}}function ki(){return bt}function Hn(tt){return ot[tt]||ot[Y[tt]]||(tt in yt.styles?tt:null)||null}function An(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},St=Et.skipLookups,Pt=void 0!==St&&St,qt=null,gi=tt.reduce(function(ti,fi){var Ei=Yt(vt.familyPrefix,fi);if(It[fi]?(fi=$e.includes(fi)?Ae[fi]:fi,qt=fi,ti.prefix=fi):sn.indexOf(fi)>-1?(qt=fi,ti.prefix=Hn(fi)):Ei?ti.iconName=Ei:fi!==vt.replacementClass&&ti.rest.push(fi),!Pt&&ti.prefix&&ti.iconName){var Ki="fa"===qt?pi(ti.iconName):{},Qi=Kt(ti.prefix,ti.iconName);Ki.prefix&&(qt=null),ti.iconName=Ki.iconName||Qi||ti.iconName,ti.prefix=Ki.prefix||ti.prefix,"far"===ti.prefix&&!It.far&&It.fas&&!vt.autoFetchSvg&&(ti.prefix="fas")}return ti},{prefix:null,iconName:null,rest:[]});return("fa"===gi.prefix||"fa"===qt)&&(gi.prefix=ki()||"fas"),gi}(function gt(tt){kt.push(tt)})(function(tt){bt=Hn(tt.styleDefault)}),Mi();var Kn=function(){function tt(){(function y(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function P(tt,Et,St){Et&&d(tt.prototype,Et),St&&d(tt,St),Object.defineProperty(tt,"prototype",{writable:!1})}(tt,[{key:"add",value:function(){for(var St=this,Pt=arguments.length,qt=new Array(Pt),gi=0;gi0&&Qi.forEach(function(on){"string"==typeof on&&(St[fi][on]=Ki)}),St[fi][Ei]=Ki}),St}}]),tt}(),Cn=[],wi={},Yi={},bn=Object.keys(Yi);function ar(tt,Et){for(var St=arguments.length,Pt=new Array(St>2?St-2:0),qt=2;qt1?Et-1:0),Pt=1;Pt0&&void 0!==arguments[0]?arguments[0]:{};return _?(kr("beforeI2svg",Et),Pr("pseudoElements2svg",Et),Pr("i2svg",Et)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},St=Et.autoReplaceSvgRoot;!1===vt.autoReplaceSvg&&(vt.autoReplaceSvg=!0),vt.observeMutations=!0,qi(function(){Yr({autoReplaceSvgRoot:St}),kr("watch",Et)})}},rr={noAuto:function(){vt.autoReplaceSvg=!1,vt.observeMutations=!1,kr("noAuto")},config:vt,dom:La,parse:{icon:function(Et){if(null===Et)return null;if("object"===b(Et)&&Et.prefix&&Et.iconName)return{prefix:Et.prefix,iconName:Kt(Et.prefix,Et.iconName)||Et.iconName};if(Array.isArray(Et)&&2===Et.length){var St=0===Et[1].indexOf("fa-")?Et[1].slice(3):Et[1],Pt=Hn(Et[0]);return{prefix:Pt,iconName:Kt(Pt,St)||St}}if("string"==typeof Et&&(Et.indexOf("".concat(vt.familyPrefix,"-"))>-1||Et.match(ce))){var qt=An(Et.split(" "),{skipLookups:!0});return{prefix:qt.prefix||ki(),iconName:Kt(qt.prefix,qt.iconName)||qt.iconName}}if("string"==typeof Et){var gi=ki();return{prefix:gi,iconName:Kt(gi,Et)||Et}}}},library:sa,findIconDefinition:ia,toHtml:ui},Yr=function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},St=Et.autoReplaceSvgRoot,Pt=void 0===St?c:St;(Object.keys(yt.styles).length>0||vt.autoFetchSvg)&&_&&vt.autoReplaceSvg&&rr.dom.i2svg({node:Pt})};function na(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(Pt){return ui(Pt)})}}),Object.defineProperty(tt,"node",{get:function(){if(_){var Pt=c.createElement("div");return Pt.innerHTML=tt.html,Pt.children}}}),tt}function xa(tt){var Et=tt.icons,St=Et.main,Pt=Et.mask,qt=tt.prefix,gi=tt.iconName,ti=tt.transform,fi=tt.symbol,Ei=tt.title,Ki=tt.maskId,Qi=tt.titleId,on=tt.extra,xn=tt.watchable,jn=void 0!==xn&&xn,On=Pt.found?Pt:St,Kr=On.width,_a=On.height,ir="fak"===qt,_r=[vt.replacementClass,gi?"".concat(vt.familyPrefix,"-").concat(gi):""].filter(function(_e){return-1===on.classes.indexOf(_e)}).filter(function(_e){return""!==_e||!!_e}).concat(on.classes).join(" "),fr={children:[],attributes:u(u({},on.attributes),{},{"data-prefix":qt,"data-icon":gi,class:_r,role:on.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Kr," ").concat(_a)})},Ir=ir&&!~on.classes.indexOf("fa-fw")?{width:"".concat(Kr/_a*16*.0625,"em")}:{};jn&&(fr.attributes[$]=""),Ei&&(fr.children.push({tag:"title",attributes:{id:fr.attributes["aria-labelledby"]||"title-".concat(Qi||Pe())},children:[Ei]}),delete fr.attributes.title);var Br=u(u({},fr),{},{prefix:qt,iconName:gi,main:St,mask:Pt,maskId:Ki,transform:ti,symbol:fi,styles:u(u({},Ir),on.styles)}),Na=Pt.found&&St.found?Pr("generateAbstractMask",Br)||{children:[],attributes:{}}:Pr("generateAbstractIcon",Br)||{children:[],attributes:{}},Qa=Na.attributes;return Br.children=Na.children,Br.attributes=Qa,fi?function qr(tt){var St=tt.iconName,Pt=tt.children,qt=tt.attributes,gi=tt.symbol,ti=!0===gi?"".concat(tt.prefix,"-").concat(vt.familyPrefix,"-").concat(St):gi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u(u({},qt),{},{id:ti}),children:Pt}]}]}(Br):function Ra(tt){var Et=tt.children,St=tt.main,Pt=tt.mask,qt=tt.attributes,gi=tt.styles,ti=tt.transform;if(Rt(ti)&&St.found&&!Pt.found){var Ki={x:St.width/St.height/2,y:.5};qt.style=ft(u(u({},gi),{},{"transform-origin":"".concat(Ki.x+ti.x/16,"em ").concat(Ki.y+ti.y/16,"em")}))}return[{tag:"svg",attributes:qt,children:Et}]}(Br)}function Rr(tt){var Et=tt.content,St=tt.width,Pt=tt.height,qt=tt.transform,gi=tt.title,ti=tt.extra,fi=tt.watchable,Ei=void 0!==fi&&fi,Ki=u(u(u({},ti.attributes),gi?{title:gi}:{}),{},{class:ti.classes.join(" ")});Ei&&(Ki[$]="");var Qi=u({},ti.styles);Rt(qt)&&(Qi.transform=function Re(tt){var Et=tt.transform,St=tt.width,qt=tt.height,gi=void 0===qt?16:qt,ti=tt.startCentered,fi=void 0!==ti&&ti,Ei="";return Ei+=fi&&n?"translate(".concat(Et.x/16-(void 0===St?16:St)/2,"em, ").concat(Et.y/16-gi/2,"em) "):fi?"translate(calc(-50% + ".concat(Et.x/16,"em), calc(-50% + ").concat(Et.y/16,"em)) "):"translate(".concat(Et.x/16,"em, ").concat(Et.y/16,"em) "),(Ei+="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "))+"rotate(".concat(Et.rotate,"deg) ")}({transform:qt,startCentered:!0,width:St,height:Pt}),Qi["-webkit-transform"]=Qi.transform);var on=ft(Qi);on.length>0&&(Ki.style=on);var xn=[];return xn.push({tag:"span",attributes:Ki,children:[Et]}),gi&&xn.push({tag:"span",attributes:{class:"sr-only"},children:[gi]}),xn}function Xn(tt){var Et=tt.content,St=tt.title,Pt=tt.extra,qt=u(u(u({},Pt.attributes),St?{title:St}:{}),{},{class:Pt.classes.join(" ")}),gi=ft(Pt.styles);gi.length>0&&(qt.style=gi);var ti=[];return ti.push({tag:"span",attributes:qt,children:[Et]}),St&&ti.push({tag:"span",attributes:{class:"sr-only"},children:[St]}),ti}var la=yt.styles;function tr(tt){var Et=tt[0],St=tt[1],gi=A(tt.slice(4),1)[0];return{found:!0,width:Et,height:St,icon:Array.isArray(gi)?{tag:"g",attributes:{class:"".concat(vt.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:gi[0]}},{tag:"path",attributes:{class:"".concat(vt.familyPrefix,"-").concat("primary"),fill:"currentColor",d:gi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:gi}}}}var wr={found:!1,width:512,height:512};function ma(tt,Et){var St=Et;return"fa"===Et&&null!==vt.styleDefault&&(Et=ki()),new Promise(function(Pt,qt){if(Pr("missingIconAbstract"),"fa"===St){var ti=pi(tt)||{};tt=ti.iconName||tt,Et=ti.prefix||Et}if(tt&&Et&&la[Et]&&la[Et][tt])return Pt(tr(la[Et][tt]));(function lr(tt,Et){!Z&&!vt.showMissingIcons&&tt&&console.error('Icon with name "'.concat(tt,'" and prefix "').concat(Et,'" is missing.'))})(tt,Et),Pt(u(u({},wr),{},{icon:vt.showMissingIcons&&tt&&Pr("missingIconAbstract")||{}}))})}var jr=function(){},Dr=vt.measurePerformance&&S&&S.mark&&S.measure?S:{mark:jr,measure:jr},Nr='FA "6.1.2"',gr_begin=function(Et){return Dr.mark("".concat(Nr," ").concat(Et," begins")),function(){return function(Et){Dr.mark("".concat(Nr," ").concat(Et," ends")),Dr.measure("".concat(Nr," ").concat(Et),"".concat(Nr," ").concat(Et," begins"),"".concat(Nr," ").concat(Et," ends"))}(Et)}},ra=function(){};function ca(tt){return"string"==typeof(tt.getAttribute?tt.getAttribute($):null)}function Ma(tt){return c.createElementNS("http://www.w3.org/2000/svg",tt)}function $n(tt){return c.createElement(tt)}function qn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},St=Et.ceFn,Pt=void 0===St?"svg"===tt.tag?Ma:$n:St;if("string"==typeof tt)return c.createTextNode(tt);var qt=Pt(tt.tag);Object.keys(tt.attributes||[]).forEach(function(ti){qt.setAttribute(ti,tt.attributes[ti])});var gi=tt.children||[];return gi.forEach(function(ti){qt.appendChild(qn(ti,{ceFn:Pt}))}),qt}var br={replace:function(Et){var St=Et[0];if(St.parentNode)if(Et[1].forEach(function(qt){St.parentNode.insertBefore(qn(qt),St)}),null===St.getAttribute($)&&vt.keepOriginalSource){var Pt=c.createComment(function Hr(tt){var Et=" ".concat(tt.outerHTML," ");return"".concat(Et,"Font Awesome fontawesome.com ")}(St));St.parentNode.replaceChild(Pt,St)}else St.remove()},nest:function(Et){var St=Et[0],Pt=Et[1];if(~oe(St).indexOf(vt.replacementClass))return br.replace(Et);var qt=new RegExp("".concat(vt.familyPrefix,"-.*"));if(delete Pt[0].attributes.id,Pt[0].attributes.class){var gi=Pt[0].attributes.class.split(" ").reduce(function(fi,Ei){return Ei===vt.replacementClass||Ei.match(qt)?fi.toSvg.push(Ei):fi.toNode.push(Ei),fi},{toNode:[],toSvg:[]});Pt[0].attributes.class=gi.toSvg.join(" "),0===gi.toNode.length?St.removeAttribute("class"):St.setAttribute("class",gi.toNode.join(" "))}var ti=Pt.map(function(fi){return ui(fi)}).join("\n");St.setAttribute($,""),St.innerHTML=ti}};function Fr(tt){tt()}function ha(tt,Et){var St="function"==typeof Et?Et:ra;if(0===tt.length)St();else{var Pt=Fr;"async"===vt.mutateApproach&&(Pt=h.requestAnimationFrame||Fr),Pt(function(){var qt=function ga(){return!0===vt.autoReplaceSvg?br.replace:br[vt.autoReplaceSvg]||br.replace}(),gi=gr_begin("mutate");tt.map(qt),gi(),St()})}}var Aa=!1;function Wn(){Aa=!0}function je(){Aa=!1}var Mt=null;function Ye(tt){if(C&&vt.observeMutations){var Et=tt.treeCallback,St=void 0===Et?ra:Et,Pt=tt.nodeCallback,qt=void 0===Pt?ra:Pt,gi=tt.pseudoElementsCallback,ti=void 0===gi?ra:gi,fi=tt.observeMutationsRoot,Ei=void 0===fi?c:fi;Mt=new C(function(Ki){if(!Aa){var Qi=ki();De(Ki).forEach(function(on){if("childList"===on.type&&on.addedNodes.length>0&&!ca(on.addedNodes[0])&&(vt.searchPseudoElements&&ti(on.target),St(on.target)),"attributes"===on.type&&on.target.parentNode&&vt.searchPseudoElements&&ti(on.target.parentNode),"attributes"===on.type&&ca(on.target)&&~ve.indexOf(on.attributeName))if("class"===on.attributeName&&function da(tt){var Et=tt.getAttribute?tt.getAttribute(ke):null,St=tt.getAttribute?tt.getAttribute(Ee):null;return Et&&St}(on.target)){var xn=An(oe(on.target)),On=xn.iconName;on.target.setAttribute(ke,xn.prefix||Qi),On&&on.target.setAttribute(Ee,On)}else(function Jn(tt){return tt&&tt.classList&&tt.classList.contains&&tt.classList.contains(vt.replacementClass)})(on.target)&&qt(on.target)})}}),_&&Mt.observe(Ei,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ri(tt){var Et=tt.getAttribute("style"),St=[];return Et&&(St=Et.split(";").reduce(function(Pt,qt){var gi=qt.split(":"),ti=gi[0],fi=gi.slice(1);return ti&&fi.length>0&&(Pt[ti]=fi.join(":").trim()),Pt},{})),St}function Si(tt){var Et=tt.getAttribute("data-prefix"),St=tt.getAttribute("data-icon"),Pt=void 0!==tt.innerText?tt.innerText.trim():"",qt=An(oe(tt));return qt.prefix||(qt.prefix=ki()),Et&&St&&(qt.prefix=Et,qt.iconName=St),qt.iconName&&qt.prefix||(qt.prefix&&Pt.length>0&&(qt.iconName=function Nt(tt,Et){return(bi[tt]||{})[Et]}(qt.prefix,tt.innerText)||Je(qt.prefix,Gi(tt.innerText))),!qt.iconName&&vt.autoFetchSvg&&tt.firstChild&&tt.firstChild.nodeType===Node.TEXT_NODE&&(qt.iconName=tt.firstChild.data)),qt}function Oi(tt){var Et=De(tt.attributes).reduce(function(qt,gi){return"class"!==qt.name&&"style"!==qt.name&&(qt[gi.name]=gi.value),qt},{}),St=tt.getAttribute("title"),Pt=tt.getAttribute("data-fa-title-id");return vt.autoA11y&&(St?Et["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(Pt||Pe()):(Et["aria-hidden"]="true",Et.focusable="false")),Et}function Yn(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},St=Si(tt),Pt=St.iconName,qt=St.prefix,gi=St.rest,ti=Oi(tt),fi=ar("parseNodeAttributes",{},tt),Ei=Et.styleParser?ri(tt):[];return u({iconName:Pt,title:tt.getAttribute("title"),titleId:tt.getAttribute("data-fa-title-id"),prefix:qt,transform:_t,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:gi,styles:Ei,attributes:ti}},fi)}var At=yt.styles;function oi(tt){var Et="nest"===vt.autoReplaceSvg?Yn(tt,{styleParser:!1}):Yn(tt);return~Et.extra.classes.indexOf(Te)?Pr("generateLayersText",tt,Et):Pr("generateSvgReplacementMutation",tt,Et)}function mt(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!_)return Promise.resolve();var St=c.documentElement.classList,Pt=function(on){return St.add("".concat(te,"-").concat(on))},qt=function(on){return St.remove("".concat(te,"-").concat(on))},gi=Object.keys(vt.autoFetchSvg?Y:At);gi.includes("fa")||gi.push("fa");var ti=[".".concat(Te,":not([").concat($,"])")].concat(gi.map(function(Qi){return".".concat(Qi,":not([").concat($,"])")})).join(", ");if(0===ti.length)return Promise.resolve();var fi=[];try{fi=De(tt.querySelectorAll(ti))}catch(Qi){}if(!(fi.length>0))return Promise.resolve();Pt("pending"),qt("complete");var Ei=gr_begin("onTree"),Ki=fi.reduce(function(Qi,on){try{var xn=oi(on);xn&&Qi.push(xn)}catch(jn){Z||"MissingIcon"===jn.name&&console.error(jn)}return Qi},[]);return new Promise(function(Qi,on){Promise.all(Ki).then(function(xn){ha(xn,function(){Pt("active"),Pt("complete"),qt("pending"),"function"==typeof Et&&Et(),Ei(),Qi()})}).catch(function(xn){Ei(),on(xn)})})}function $t(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;oi(tt).then(function(St){St&&ha([St],Et)})}var ji=function(Et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=St.transform,qt=void 0===Pt?_t:Pt,gi=St.symbol,ti=void 0!==gi&&gi,fi=St.mask,Ei=void 0===fi?null:fi,Ki=St.maskId,Qi=void 0===Ki?null:Ki,on=St.title,xn=void 0===on?null:on,jn=St.titleId,On=void 0===jn?null:jn,Kr=St.classes,_a=void 0===Kr?[]:Kr,ir=St.attributes,_r=void 0===ir?{}:ir,fr=St.styles,Ir=void 0===fr?{}:fr;if(Et){var Br=Et.prefix,Na=Et.iconName,za=Et.icon;return na(u({type:"icon"},Et),function(){return kr("beforeDOMElementCreation",{iconDefinition:Et,params:St}),vt.autoA11y&&(xn?_r["aria-labelledby"]="".concat(vt.replacementClass,"-title-").concat(On||Pe()):(_r["aria-hidden"]="true",_r.focusable="false")),xa({icons:{main:tr(za),mask:Ei?tr(Ei.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Br,iconName:Na,transform:u(u({},_t),qt),symbol:ti,title:xn,maskId:Qi,titleId:On,extra:{attributes:_r,styles:Ir,classes:_a}})})}},Ke={mixout:function(){return{icon:(tt=ji,function(Et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=(Et||{}).icon?Et:ia(Et||{}),qt=St.mask;return qt&&(qt=(qt||{}).icon?qt:ia(qt||{})),tt(Pt,u(u({},St),{},{mask:qt}))})};var tt},hooks:function(){return{mutationObserverCallbacks:function(St){return St.treeCallback=mt,St.nodeCallback=$t,St}}},provides:function(Et){Et.i2svg=function(St){var Pt=St.node,gi=St.callback;return mt(void 0===Pt?c:Pt,void 0===gi?function(){}:gi)},Et.generateSvgReplacementMutation=function(St,Pt){var qt=Pt.iconName,gi=Pt.title,ti=Pt.titleId,fi=Pt.prefix,Ei=Pt.transform,Ki=Pt.symbol,Qi=Pt.mask,on=Pt.maskId,xn=Pt.extra;return new Promise(function(jn,On){Promise.all([ma(qt,fi),Qi.iconName?ma(Qi.iconName,Qi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Kr){var _a=A(Kr,2);jn([St,xa({icons:{main:_a[0],mask:_a[1]},prefix:fi,iconName:qt,transform:Ei,symbol:Ki,maskId:on,title:gi,titleId:ti,extra:xn,watchable:!0})])}).catch(On)})},Et.generateAbstractIcon=function(St){var Ki,Pt=St.children,qt=St.attributes,gi=St.main,ti=St.transform,Ei=ft(St.styles);return Ei.length>0&&(qt.style=Ei),Rt(ti)&&(Ki=Pr("generateAbstractTransformGrouping",{main:gi,transform:ti,containerWidth:gi.width,iconWidth:gi.width})),Pt.push(Ki||gi.icon),{children:Pt,attributes:qt}}}},Be={mixout:function(){return{layer:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.classes,gi=void 0===qt?[]:qt;return na({type:"layer"},function(){kr("beforeDOMElementCreation",{assembler:St,params:Pt});var ti=[];return St(function(fi){Array.isArray(fi)?fi.map(function(Ei){ti=ti.concat(Ei.abstract)}):ti=ti.concat(fi.abstract)}),[{tag:"span",attributes:{class:["".concat(vt.familyPrefix,"-layers")].concat(E(gi)).join(" ")},children:ti}]})}}}},Ne={mixout:function(){return{counter:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.title,gi=void 0===qt?null:qt,ti=Pt.classes,fi=void 0===ti?[]:ti,Ei=Pt.attributes,Ki=void 0===Ei?{}:Ei,Qi=Pt.styles,on=void 0===Qi?{}:Qi;return na({type:"counter",content:St},function(){return kr("beforeDOMElementCreation",{content:St,params:Pt}),Xn({content:St.toString(),title:gi,extra:{attributes:Ki,styles:on,classes:["".concat(vt.familyPrefix,"-layers-counter")].concat(E(fi))}})})}}}},Lt={mixout:function(){return{text:function(St){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},qt=Pt.transform,gi=void 0===qt?_t:qt,ti=Pt.title,fi=void 0===ti?null:ti,Ei=Pt.classes,Ki=void 0===Ei?[]:Ei,Qi=Pt.attributes,on=void 0===Qi?{}:Qi,xn=Pt.styles,jn=void 0===xn?{}:xn;return na({type:"text",content:St},function(){return kr("beforeDOMElementCreation",{content:St,params:Pt}),Rr({content:St,transform:u(u({},_t),gi),title:fi,extra:{attributes:on,styles:jn,classes:["".concat(vt.familyPrefix,"-layers-text")].concat(E(Ki))}})})}}},provides:function(Et){Et.generateLayersText=function(St,Pt){var qt=Pt.title,gi=Pt.transform,ti=Pt.extra,fi=null,Ei=null;if(n){var Ki=parseInt(getComputedStyle(St).fontSize,10),Qi=St.getBoundingClientRect();fi=Qi.width/Ki,Ei=Qi.height/Ki}return vt.autoA11y&&!qt&&(ti.attributes["aria-hidden"]="true"),Promise.resolve([St,Rr({content:St.innerHTML,width:fi,height:Ei,transform:gi,title:qt,extra:ti,watchable:!0})])}}},vi=new RegExp('"',"ug"),$i=[1105920,1112319];function Sr(tt,Et){var St="".concat("data-fa-pseudo-element-pending").concat(Et.replace(":","-"));return new Promise(function(Pt,qt){if(null!==tt.getAttribute(St))return Pt();var ti=De(tt.children).filter(function(Na){return Na.getAttribute(fe)===Et})[0],fi=h.getComputedStyle(tt,Et),Ei=fi.getPropertyValue("font-family").match(xe),Ki=fi.getPropertyValue("font-weight"),Qi=fi.getPropertyValue("content");if(ti&&!Ei)return tt.removeChild(ti),Pt();if(Ei&&"none"!==Qi&&""!==Qi){var on=fi.getPropertyValue("content"),xn=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ei[2])?ot[Ei[2].toLowerCase()]:G[Ki],jn=function Nn(tt){var Et=tt.replace(vi,""),St=function ct(tt,Et){var qt,St=tt.length,Pt=tt.charCodeAt(Et);return Pt>=55296&&Pt<=56319&&St>Et+1&&(qt=tt.charCodeAt(Et+1))>=56320&&qt<=57343?1024*(Pt-55296)+qt-56320+65536:Pt}(Et,0),Pt=St>=$i[0]&&St<=$i[1],qt=2===Et.length&&Et[0]===Et[1];return{value:Gi(qt?Et[0]:Et),isSecondary:Pt||qt}}(on),On=jn.value,Kr=jn.isSecondary,_a=Ei[0].startsWith("FontAwesome"),ir=Je(xn,On),_r=ir;if(_a){var fr=function Ri(tt){var Et=Ji[tt],St=Je("fas",tt);return Et||(St?{prefix:"fas",iconName:St}:null)||{prefix:null,iconName:null}}(On);fr.iconName&&fr.prefix&&(ir=fr.iconName,xn=fr.prefix)}if(!ir||Kr||ti&&ti.getAttribute(ke)===xn&&ti.getAttribute(Ee)===_r)Pt();else{tt.setAttribute(St,_r),ti&&tt.removeChild(ti);var Ir=function rn(){return{iconName:null,title:null,titleId:null,prefix:null,transform:_t,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Br=Ir.extra;Br.attributes[fe]=Et,ma(ir,xn).then(function(Na){var za=xa(u(u({},Ir),{},{icons:{main:Na,mask:{prefix:null,iconName:null,rest:[]}},prefix:xn,iconName:_r,extra:Br,watchable:!0})),Qa=c.createElement("svg");"::before"===Et?tt.insertBefore(Qa,tt.firstChild):tt.appendChild(Qa),Qa.outerHTML=za.map(function(_e){return ui(_e)}).join("\n"),tt.removeAttribute(St),Pt()}).catch(qt)}}else Pt()})}function Ca(tt){return Promise.all([Sr(tt,"::before"),Sr(tt,"::after")])}function Jr(tt){return!(tt.parentNode===document.head||~be.indexOf(tt.tagName.toUpperCase())||tt.getAttribute(fe)||tt.parentNode&&"svg"===tt.parentNode.tagName)}function $a(tt){if(_)return new Promise(function(Et,St){var Pt=De(tt.querySelectorAll("*")).filter(Jr).map(Ca),qt=gr_begin("searchPseudoElements");Wn(),Promise.all(Pt).then(function(){qt(),je(),Et()}).catch(function(){qt(),je(),St()})})}var Vn=!1,Cr=function(Et){return Et.toLowerCase().split(" ").reduce(function(Pt,qt){var gi=qt.toLowerCase().split("-"),ti=gi[0],fi=gi.slice(1).join("-");if(ti&&"h"===fi)return Pt.flipX=!0,Pt;if(ti&&"v"===fi)return Pt.flipY=!0,Pt;if(fi=parseFloat(fi),isNaN(fi))return Pt;switch(ti){case"grow":Pt.size=Pt.size+fi;break;case"shrink":Pt.size=Pt.size-fi;break;case"left":Pt.x=Pt.x-fi;break;case"right":Pt.x=Pt.x+fi;break;case"up":Pt.y=Pt.y-fi;break;case"down":Pt.y=Pt.y+fi;break;case"rotate":Pt.rotate=Pt.rotate+fi}return Pt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Da={x:0,y:0,width:"100%",height:"100%"};function cr(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}!function Gn(tt,Et){var St=Et.mixoutsTo;Cn=tt,wi={},Object.keys(Yi).forEach(function(Pt){-1===bn.indexOf(Pt)&&delete Yi[Pt]}),Cn.forEach(function(Pt){var qt=Pt.mixout?Pt.mixout():{};if(Object.keys(qt).forEach(function(ti){"function"==typeof qt[ti]&&(St[ti]=qt[ti]),"object"===b(qt[ti])&&Object.keys(qt[ti]).forEach(function(fi){St[ti]||(St[ti]={}),St[ti][fi]=qt[ti][fi]})}),Pt.hooks){var gi=Pt.hooks();Object.keys(gi).forEach(function(ti){wi[ti]||(wi[ti]=[]),wi[ti].push(gi[ti])})}Pt.provides&&Pt.provides(Yi)})}([rt,Ke,Be,Ne,Lt,{hooks:function(){return{mutationObserverCallbacks:function(St){return St.pseudoElementsCallback=$a,St}}},provides:function(Et){Et.pseudoElements2svg=function(St){var Pt=St.node;vt.searchPseudoElements&&$a(void 0===Pt?c:Pt)}}},{mixout:function(){return{dom:{unwatch:function(){Wn(),Vn=!0}}}},hooks:function(){return{bootstrap:function(){Ye(ar("mutationObserverCallbacks",{}))},noAuto:function(){!function Ot(){!Mt||Mt.disconnect()}()},watch:function(St){var Pt=St.observeMutationsRoot;Vn?je():Ye(ar("mutationObserverCallbacks",{observeMutationsRoot:Pt}))}}}},{mixout:function(){return{parse:{transform:function(St){return Cr(St)}}}},hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-transform");return qt&&(St.transform=Cr(qt)),St}}},provides:function(Et){Et.generateAbstractTransformGrouping=function(St){var Pt=St.main,qt=St.transform,ti=St.iconWidth,fi={transform:"translate(".concat(St.containerWidth/2," 256)")},Ei="translate(".concat(32*qt.x,", ").concat(32*qt.y,") "),Ki="scale(".concat(qt.size/16*(qt.flipX?-1:1),", ").concat(qt.size/16*(qt.flipY?-1:1),") "),Qi="rotate(".concat(qt.rotate," 0 0)"),jn={outer:fi,inner:{transform:"".concat(Ei," ").concat(Ki," ").concat(Qi)},path:{transform:"translate(".concat(ti/2*-1," -256)")}};return{tag:"g",attributes:u({},jn.outer),children:[{tag:"g",attributes:u({},jn.inner),children:[{tag:Pt.icon.tag,children:Pt.icon.children,attributes:u(u({},Pt.icon.attributes),jn.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-mask"),gi=qt?An(qt.split(" ").map(function(ti){return ti.trim()})):{prefix:null,iconName:null,rest:[]};return gi.prefix||(gi.prefix=ki()),St.mask=gi,St.maskId=Pt.getAttribute("data-fa-mask-id"),St}}},provides:function(Et){Et.generateAbstractMask=function(St){var tt,Pt=St.children,qt=St.attributes,gi=St.main,ti=St.mask,fi=St.maskId,Qi=gi.icon,xn=ti.icon,jn=function et(tt){var Et=tt.transform,Pt=tt.iconWidth,qt={transform:"translate(".concat(tt.containerWidth/2," 256)")},gi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),ti="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),fi="rotate(".concat(Et.rotate," 0 0)");return{outer:qt,inner:{transform:"".concat(gi," ").concat(ti," ").concat(fi)},path:{transform:"translate(".concat(Pt/2*-1," -256)")}}}({transform:St.transform,containerWidth:ti.width,iconWidth:gi.width}),On={tag:"rect",attributes:u(u({},Da),{},{fill:"white"})},Kr=Qi.children?{children:Qi.children.map(cr)}:{},_a={tag:"g",attributes:u({},jn.inner),children:[cr(u({tag:Qi.tag,attributes:u(u({},Qi.attributes),jn.path)},Kr))]},ir={tag:"g",attributes:u({},jn.outer),children:[_a]},_r="mask-".concat(fi||Pe()),fr="clip-".concat(fi||Pe()),Ir={tag:"mask",attributes:u(u({},Da),{},{id:_r,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[On,ir]},Br={tag:"defs",children:[{tag:"clipPath",attributes:{id:fr},children:(tt=xn,"g"===tt.tag?tt.children:[tt])},Ir]};return Pt.push(Br,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(fr,")"),mask:"url(#".concat(_r,")")},Da)}),{children:Pt,attributes:qt}}}},{provides:function(Et){var St=!1;h.matchMedia&&(St=h.matchMedia("(prefers-reduced-motion: reduce)").matches),Et.missingIconAbstract=function(){var Pt=[],qt={fill:"currentColor"},gi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Pt.push({tag:"path",attributes:u(u({},qt),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ti=u(u({},gi),{},{attributeName:"opacity"}),fi={tag:"circle",attributes:u(u({},qt),{},{cx:"256",cy:"364",r:"28"}),children:[]};return St||fi.children.push({tag:"animate",attributes:u(u({},gi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;1;1;0;1;"})}),Pt.push(fi),Pt.push({tag:"path",attributes:u(u({},qt),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:St?[]:[{tag:"animate",attributes:u(u({},ti),{},{values:"1;0;0;0;0;1;"})}]}),St||Pt.push({tag:"path",attributes:u(u({},qt),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:u(u({},ti),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Pt}}}},{hooks:function(){return{parseNodeAttributes:function(St,Pt){var qt=Pt.getAttribute("data-fa-symbol");return St.symbol=null!==qt&&(""===qt||qt),St}}}}],{mixoutsTo:rr});var re=rr.parse,xt=rr.icon,Ci=p(2313);const Pi=["*"],wn=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(St=>Et[St]?St:null).filter(St=>St)};let Ln=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Qn=(()=>{class tt{constructor(){this.definitions={}}addIcons(...St){for(const Pt of St){Pt.prefix in this.definitions||(this.definitions[Pt.prefix]={}),this.definitions[Pt.prefix][Pt.iconName]=Pt;for(const qt of Pt.icon[2])"string"==typeof qt&&(this.definitions[Pt.prefix][qt]=Pt)}}addIconPacks(...St){for(const Pt of St){const qt=Object.keys(Pt).map(gi=>Pt[gi]);this.addIcons(...qt)}}getIconDefinition(St,Pt){return St in this.definitions&&Pt in this.definitions[St]?this.definitions[St][Pt]:null}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),xr=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(St){if("size"in St)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),dr=(()=>{class tt{constructor(St,Pt){this.renderer=St,this.elementRef=Pt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(St){"size"in St&&(null!=St.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${St.size.currentValue}`),null!=St.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${St.size.previousValue}`))}}return tt.\u0275fac=function(St){return new(St||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:Pi,decls:1,vars:0,template:function(St,Pt){1&St&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Zr=(()=>{class tt{constructor(St,Pt,qt,gi,ti){this.sanitizer=St,this.config=Pt,this.iconLibrary=qt,this.stackItem=gi,this.classes=[],null!=ti&&null==gi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(St){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Pt=null;if(Pt=null==this.icon?this.config.fallbackIcon:this.icon,St){const qt=this.findIconDefinition(Pt);if(null!=qt){const gi=this.buildParams();this.renderIcon(qt,gi)}}}render(){this.ngOnChanges({})}findIconDefinition(St){const Pt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(St,this.config.defaultPrefix);if("icon"in Pt)return Pt;const qt=this.iconLibrary.getIconDefinition(Pt.prefix,Pt.iconName);return null!=qt?qt:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(Pt),null)}buildParams(){const St={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Pt="string"==typeof this.transform?re.transform(this.transform):this.transform;return{title:this.title,transform:Pt,classes:[...wn(St),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(St,Pt){const qt=xt(St,Pt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(qt.html.join("\n"))}}return tt.\u0275fac=function(St){return new(St||tt)(e.Y36(Ci.H7),e.Y36(Ln),e.Y36(Qn),e.Y36(xr,8),e.Y36(dr,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(St,Pt){2&St&&(e.Ikx("innerHTML",Pt.renderedIconHTML,e.oJD),e.uIk("title",Pt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(St,Pt){},encapsulation:2}),tt})(),ka=(()=>{class tt{}return tt.\u0275fac=function(St){return new(St||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(He,j,p)=>{"use strict";p.d(j,{eX:()=>fe,sQ:()=>kt,GW:()=>t,l4:()=>ye});var e=p(5620),i=p(6451),u=p(8306),b=p(7579),a=p(515),y=p(9646),d=p(2843),P=p(576);class T{constructor(De,oe,Me){this.kind=De,this.value=oe,this.error=Me,this.hasValue="N"===De}observe(De){return M(this,De)}do(De,oe,Me){const{kind:ut,value:ft,error:Rt}=this;return"N"===ut?null==De?void 0:De(ft):"E"===ut?null==oe?void 0:oe(Rt):null==Me?void 0:Me()}accept(De,oe,Me){var ut;return(0,P.m)(null===(ut=De)||void 0===ut?void 0:ut.next)?this.observe(De):this.do(De,oe,Me)}toObservable(){const{kind:De,value:oe,error:Me}=this,ut="N"===De?(0,y.of)(oe):"E"===De?(0,d._)(()=>Me):"C"===De?a.E:0;if(!ut)throw new TypeError(`Unexpected notification kind ${De}`);return ut}static createNext(De){return new T("N",De)}static createError(De){return new T("E",void 0,De)}static createComplete(){return T.completeNotification}}function M(Pe,De){var oe,Me,ut;const{kind:ft,value:Rt,error:et}=Pe;if("string"!=typeof ft)throw new TypeError('Invalid notification, missing "kind"');"N"===ft?null===(oe=De.next)||void 0===oe||oe.call(De,Rt):"E"===ft?null===(Me=De.error)||void 0===Me||Me.call(De,et):null===(ut=De.complete)||void 0===ut||ut.call(De)}T.completeNotification=new T("C");var A=p(4482),E=p(5403),w=p(8421);function z(Pe,De,oe,Me){return(0,A.e)((ut,ft)=>{let Rt;De&&"function"!=typeof De?({duration:oe,element:Rt,connector:Me}=De):Rt=De;const et=new Map,Re=at=>{et.forEach(at),at(ft)},qe=at=>Re(yt=>yt.error(at));let Ze=0,we=!1;const Fe=new E.Q(ft,at=>{try{const yt=Pe(at);let mi=et.get(yt);if(!mi){et.set(yt,mi=Me?Me():new b.x);const Xt=function rt(at,yt){const mi=new u.y(Xt=>{Ze++;const Jt=yt.subscribe(Xt);return()=>{Jt.unsubscribe(),0==--Ze&&we&&Fe.unsubscribe()}});return mi.key=at,mi}(yt,mi);if(ft.next(Xt),oe){const Jt=(0,E.x)(mi,()=>{mi.complete(),null==Jt||Jt.unsubscribe()},void 0,void 0,()=>et.delete(yt));Fe.add((0,w.Xf)(oe(Xt)).subscribe(Jt))}}mi.next(Rt?Rt(at):at)}catch(yt){qe(yt)}},()=>Re(at=>at.complete()),qe,()=>et.clear(),()=>(we=!0,0===Ze));ut.subscribe(Fe)})}var U=p(4004);function W(Pe,De){return De?oe=>oe.pipe(W((Me,ut)=>(0,w.Xf)(Pe(Me,ut)).pipe((0,U.U)((ft,Rt)=>De(Me,ft,ut,Rt))))):(0,A.e)((oe,Me)=>{let ut=0,ft=null,Rt=!1;oe.subscribe((0,E.x)(Me,et=>{ft||(ft=(0,E.x)(Me,void 0,()=>{ft=null,Rt&&Me.complete()}),(0,w.Xf)(Pe(et,ut++)).subscribe(ft))},()=>{Rt=!0,!ft&&Me.complete()}))})}var Q=p(8502),le=p(262),q=p(9300),ie=p(5577),se=p(5698),J=p(5e3);const me={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function t(Pe,De){const oe=Pe(),Me=Object.assign(Object.assign({},me),De);return Object.defineProperty(oe,x,{value:Me}),oe}function r(Pe){return Object.getOwnPropertyNames(Pe).filter(Me=>!(!Pe[Me]||!Pe[Me].hasOwnProperty(x))&&Pe[Me][x].hasOwnProperty("dispatch")).map(Me=>Object.assign({propertyName:Me},Pe[Me][x]))}function h(Pe){return Object.getPrototypeOf(Pe)}const c="__@ngrx/effects__";function S(Pe){return(0,e.qC)(n,h)(Pe)}function n(Pe){return function I(Pe){return Pe.constructor.hasOwnProperty(c)}(Pe)?Pe.constructor[c]:[]}function R(Pe,De,oe){const Me=h(Pe).constructor.name,ut=function V(Pe){return[S,r].reduce((oe,Me)=>oe.concat(Me(Pe)),[])}(Pe).map(({propertyName:ft,dispatch:Rt,useEffectsErrorHandler:et})=>{const Re="function"==typeof Pe[ft]?Pe[ft]():Pe[ft],qe=et?oe(Re,De):Re;return!1===Rt?qe.pipe((0,Q.l)()):qe.pipe(function k(){return(0,A.e)((Pe,De)=>{Pe.subscribe((0,E.x)(De,oe=>{De.next(T.createNext(oe))},()=>{De.next(T.createComplete()),De.complete()},oe=>{De.next(T.createError(oe)),De.complete()}))})}()).pipe((0,U.U)(we=>({effect:Pe[ft],notification:we,propertyName:ft,sourceName:Me,sourceInstance:Pe})))});return(0,i.T)(...ut)}function $(Pe,De,oe=10){return Pe.pipe((0,le.K)(Me=>(De&&De.handleError(Me),oe<=1?Pe:$(Pe,De,oe-1))))}let fe=(()=>{class Pe extends u.y{constructor(oe){super(),oe&&(this.source=oe)}lift(oe){const Me=new Pe;return Me.source=this,Me.operator=oe,Me}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(e.Y$))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ye(...Pe){return(0,q.h)(De=>Pe.some(oe=>"string"==typeof oe?oe===De.type:oe.type===De.type))}function Ae(Pe){return ce(Pe,"ngrxOnInitEffects")}function ce(Pe,De){return Pe&&De in Pe&&"function"==typeof Pe[De]}const Te=new J.OlP("@ngrx/effects Internal Root Guard"),xe=new J.OlP("@ngrx/effects User Provided Effects"),G=new J.OlP("@ngrx/effects Internal Root Effects"),ee=new J.OlP("@ngrx/effects Root Effects"),ue=new J.OlP("@ngrx/effects Internal Feature Effects"),ve=new J.OlP("@ngrx/effects Feature Effects"),Le=new J.OlP("@ngrx/effects Effects Error Handler");let lt=(()=>{class Pe extends b.x{constructor(oe,Me){super(),this.errorHandler=oe,this.effectsErrorHandler=Me}addEffects(oe){this.next(oe)}toActions(){return this.pipe(z(h),(0,ie.z)(oe=>oe.pipe(z(ht))),(0,ie.z)(oe=>{const Me=oe.pipe(W(ft=>function Tt(Pe,De){return oe=>{const Me=R(oe,Pe,De);return function ot(Pe){return ce(Pe,"ngrxOnRunEffects")}(oe)?oe.ngrxOnRunEffects(Me):Me}}(this.errorHandler,this.effectsErrorHandler)(ft)),(0,U.U)(ft=>(function ke(Pe,De){if("N"===Pe.notification.kind){const oe=Pe.notification.value;!function Ee(Pe){return"function"!=typeof Pe&&Pe&&Pe.type&&"string"==typeof Pe.type}(oe)&&De.handleError(new Error(`Effect ${function te({propertyName:Pe,sourceInstance:De,sourceName:oe}){const Me="function"==typeof De[Pe];return`"${oe}.${String(Pe)}${Me?"()":""}"`}(Pe)} dispatched an invalid action: ${function ze(Pe){try{return JSON.stringify(Pe)}catch(De){return Pe}}(oe)}`))}}(ft,this.errorHandler),ft.notification)),(0,q.h)(ft=>"N"===ft.kind&&null!=ft.value),function ne(){return(0,A.e)((Pe,De)=>{Pe.subscribe((0,E.x)(De,oe=>M(oe,De)))})}()),ut=oe.pipe((0,se.q)(1),(0,q.h)(Ae),(0,U.U)(ft=>ft.ngrxOnInitEffects()));return(0,i.T)(Me,ut)}))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(J.qLn),J.LFG(Le))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();function ht(Pe){return function Z(Pe){return ce(Pe,"ngrxOnIdentifyEffects")}(Pe)?Pe.ngrxOnIdentifyEffects():""}let hi=(()=>{class Pe{constructor(oe,Me){this.effectSources=oe,this.store=Me,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(lt),J.LFG(e.yh))},Pe.\u0275prov=J.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const jt="@ngrx/effects/init";(0,e.PH)(jt);let di=(()=>{class Pe{constructor(oe,Me,ut,ft,Rt,et,Re){this.sources=oe,Me.start(),ft.forEach(qe=>oe.addEffects(qe)),ut.dispatch({type:jt})}addEffects(oe){this.sources.addEffects(oe)}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(lt),J.LFG(hi),J.LFG(e.yh),J.LFG(ee),J.LFG(e.cr,8),J.LFG(e.CK,8),J.LFG(Te,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),vt=(()=>{class Pe{constructor(oe,Me,ut,ft){Me.forEach(Rt=>Rt.forEach(et=>oe.addEffects(et)))}}return Pe.\u0275fac=function(oe){return new(oe||Pe)(J.LFG(di),J.LFG(ve),J.LFG(e.cr,8),J.LFG(e.CK,8))},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})(),kt=(()=>{class Pe{static forFeature(oe=[]){return{ngModule:vt,providers:[oe,{provide:ue,multi:!0,useValue:oe},{provide:xe,multi:!0,useValue:[]},{provide:ve,multi:!0,useFactory:gt,deps:[J.zs3,ue,xe]}]}}static forRoot(oe=[]){return{ngModule:di,providers:[{provide:Le,useValue:$},hi,lt,fe,oe,{provide:G,useValue:[oe]},{provide:Te,useFactory:_t,deps:[[hi,new J.FiY,new J.tp0],[G,new J.PiD]]},{provide:xe,multi:!0,useValue:[]},{provide:ee,useFactory:gt,deps:[J.zs3,G,xe]}]}}}return Pe.\u0275fac=function(oe){return new(oe||Pe)},Pe.\u0275mod=J.oAB({type:Pe}),Pe.\u0275inj=J.cJS({}),Pe})();function gt(Pe,De,oe){const Me=[];for(const ut of De)Me.push(...ut);for(const ut of oe)Me.push(...ut);return function Qe(Pe,De){return De.map(oe=>Pe.get(oe))}(Pe,Me)}function _t(Pe,De){if((1!==De.length||0!==De[0].length)&&Pe)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(He){const j={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},p="function"==typeof He?He():He,u=Object.assign({},j,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||j.features},p);if(u.maxAge&&u.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${u.maxAge}`);return u}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(j,p){if(this.action=j,this.timestamp=p,this.type=PERFORM_ACTION,void 0===j.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(j){this.timestamp=j,this.type=RESET}}class Rollback{constructor(j){this.timestamp=j,this.type=ROLLBACK}}class Commit{constructor(j){this.timestamp=j,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(j){this.id=j,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(j,p,e=!0){this.start=j,this.end=p,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(j){this.index=j,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(j){this.actionId=j,this.type=JUMP_TO_ACTION}}class ImportState{constructor(j){this.nextLiftedState=j,this.type=IMPORT_STATE}}class LockChanges{constructor(j){this.status=j,this.type=LOCK_CHANGES}}class PauseRecording{constructor(j){this.status=j,this.type=PAUSE_RECORDING}}function difference(He,j){return He.filter(p=>j.indexOf(p)<0)}function unliftState(He){const{computedStates:j,currentStateIndex:p}=He;if(p>=j.length){const{state:i}=j[j.length-1];return i}const{state:e}=j[p];return e}function unliftAction(He){return He.actionsById[He.nextActionId-1]}function liftAction(He){return new PerformAction(He,+Date.now())}function sanitizeActions(He,j){return Object.keys(j).reduce((p,e)=>{const i=Number(e);return p[i]=sanitizeAction(He,j[i],i),p},{})}function sanitizeAction(He,j,p){return Object.assign(Object.assign({},j),{action:He(j.action,p)})}function sanitizeStates(He,j){return j.map((p,e)=>({state:sanitizeState(He,p.state,e),error:p.error}))}function sanitizeState(He,j,p){return He(j,p)}function shouldFilterActions(He){return He.predicate||He.actionsSafelist||He.actionsBlocklist}function filterLiftedState(He,j,p,e){const i=[],u={},b=[];return He.stagedActionIds.forEach((a,y)=>{const d=He.actionsById[a];!d||y&&isActionFiltered(He.computedStates[y],d,j,p,e)||(u[a]=d,i.push(a),b.push(He.computedStates[y]))}),Object.assign(Object.assign({},He),{stagedActionIds:i,actionsById:u,computedStates:b})}function isActionFiltered(He,j,p,e,i){const u=p&&!p(He,j.action),b=e&&!j.action.type.match(e.map(y=>escapeRegExp(y)).join("|")),a=i&&j.action.type.match(i.map(y=>escapeRegExp(y)).join("|"));return u||b||a}function escapeRegExp(He){return He.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(He,j,p,e,i){if(e)return{state:p,error:"Interrupted by an error up the chain"};let b,u=p;try{u=He(p,j)}catch(a){b=a.toString(),i.handleError(a)}return{state:u,error:b}}function recomputeStates(He,j,p,e,i,u,b,a,y){if(j>=He.length&&He.length===u.length)return He;const d=He.slice(0,j),P=u.length-(y?1:0);for(let D=j;D-1?A:computeNextEntry(p,M,E,k,a);d.push(z)}return y&&d.push(He[He.length-1]),d}function liftInitialState(He,j){return{monitorState:j(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:He,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(He,j,p,e,i={}){return u=>(b,a)=>{let{monitorState:y,actionsById:d,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=b||j;function z(ne){let Q=ne,le=D.slice(1,Q+1);for(let q=0;q-1===le.indexOf(q)),D=[0,...D.slice(Q+1)],M=E[Q].state,E=E.slice(Q),A=A>Q?A-Q:0}function U(){d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=E[A].state,A=0,E=[]}b||(d=Object.create(d));let W=0;switch(a.type){case LOCK_CHANGES:k=a.status,W=1/0;break;case PAUSE_RECORDING:w=a.status,w?(D=[...D,P],d[P]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),P++,W=D.length-1,E=E.concat(E[E.length-1]),A===D.length-2&&A++,W=1/0):U();break;case RESET:d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],M=He,A=0,E=[];break;case COMMIT:U();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},P=1,D=[0],T=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:ne}=a;T=-1===T.indexOf(ne)?[ne,...T]:T.filter(le=>le!==ne),W=D.indexOf(ne);break}case SET_ACTIONS_ACTIVE:{const{start:ne,end:Q,active:le}=a,q=[];for(let ie=ne;iei.maxAge&&(E=recomputeStates(E,W,u,M,d,D,T,p,w),z(D.length-i.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(Q=>Q.error).length>0)W=0,i.maxAge&&D.length>i.maxAge&&(E=recomputeStates(E,W,u,M,d,D,T,p,w),z(D.length-i.maxAge),W=1/0);else{if(!w&&!k){A===D.length-1&&A++;const Q=P++;d[Q]=new PerformAction(a,+Date.now()),D=[...D,Q],W=D.length-1,E=recomputeStates(E,W,u,M,d,D,T,p,w)}E=E.map(Q=>Object.assign(Object.assign({},Q),{state:u(Q.state,RECOMPUTE_ACTION)})),A=D.length-1,i.maxAge&&D.length>i.maxAge&&z(D.length-i.maxAge),W=1/0}break;default:W=1/0}return E=recomputeStates(E,W,u,M,d,D,T,p,w),y=e(y,a),{monitorState:y,actionsById:d,nextActionId:P,stagedActionIds:D,skippedActionIds:T,committedState:M,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}}}let DevtoolsDispatcher=(()=>{class He extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return He.\u0275fac=function(){let j;return function(e){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(He)))(e||He)}}(),He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(He,j,p){this.config=j,this.dispatcher=p,this.devtoolsExtension=He,this.createActionStreams()}notify(He,j){if(this.devtoolsExtension)if(He.type===PERFORM_ACTION){if(j.isLocked||j.isPaused)return;const p=unliftState(j);if(shouldFilterActions(this.config)&&isActionFiltered(p,He,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,j.currentStateIndex):p,i=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,He,j.nextActionId):He;this.sendToReduxDevtools(()=>this.extensionConnection.send(i,e))}else{const p=Object.assign(Object.assign({},j),{stagedActionIds:j.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,j.actionsById):j.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,j.computedStates):j.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(He=>{const j=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=j,j.init(),j.subscribe(p=>He.next(p)),j.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const He=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),j=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),e=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(y=>y.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),u=He.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),b=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>u)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>b))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(He){var j;const p={name:He.name,features:He.features,serialize:He.serialize,autoPause:null!==(j=He.autoPause)&&void 0!==j&&j};return!1!==He.maxAge&&(p.maxAge=He.maxAge),p}sendToReduxDevtools(He){try{He()}catch(j){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",j)}}}return DevtoolsExtension.\u0275fac=function He(j){return new(j||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class He{constructor(p,e,i,u,b,a,y,d){const P=liftInitialState(y,d.monitor),D=liftReducerWith(y,P,a,d.monitor,d),T=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),u.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,u.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),M=i.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(D)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=T.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(M),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:U},[W,ne])=>{let Q=ne(U,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(Q=filterLiftedState(Q,d.predicate,d.actionsSafelist,d.actionsBlocklist)),u.notify(W,Q),{state:Q,action:W}},{state:P,action:null})).subscribe(({state:U,action:W})=>{A.next(U),W.type===PERFORM_ACTION&&b.next(W.action)}),k=u.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),z=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=E,this.dispatcher=p,this.liftedState=w,this.state=z}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return He.\u0275fac=function(p){return new(p||He)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},He.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:He,factory:He.\u0275fac}),He})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(He,j){return Boolean(He)||j.monitor!==noMonitor}function createReduxDevtoolsExtension(){const He="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[He]?window[He]:null}function createStateObservable(He){return He.state}let StoreDevtoolsModule=(()=>{class He{static instrument(p={}){return{ngModule:He,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return He.\u0275fac=function(p){return new(p||He)},He.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:He}),He.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),He})()},5620:(He,j,p)=>{"use strict";p.d(j,{UO:()=>se,qg:()=>ie,Y6:()=>t,mK:()=>Ae,n$:()=>Ie,Y$:()=>G,FR:()=>ue,yh:()=>ht,CK:()=>bt,Aw:()=>Vt,cr:()=>$e,wb:()=>ce,qC:()=>Z,PH:()=>k,ZF:()=>rt,Lq:()=>Mi,P1:()=>Ze,on:()=>Yt,Ky:()=>w});var e=p(5e3),i=p(1135),u=p(8306),b=p(7579),a=p(233),y=p(4004),P=p(5363),D=p(1365),T=p(5026),M=p(1884);const A={};function k(Je,Nt){if(A[Je]=(A[Je]||0)+1,"function"==typeof Nt)return U(Je,(...pi)=>Object.assign(Object.assign({},Nt(...pi)),{type:Je}));switch(Nt?Nt._as:"empty"){case"empty":return U(Je,()=>({type:Je}));case"props":return U(Je,pi=>Object.assign(Object.assign({},pi),{type:Je}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function U(Je,Nt){return Object.defineProperty(Nt,"type",{value:Je,writable:!1})}const ie="@ngrx/store/init";let se=(()=>{class Je extends i.X{constructor(){super({type:ie})}next(Kt){if("function"==typeof Kt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===Kt)throw new TypeError("Actions must be objects");if(void 0===Kt.type)throw new TypeError("Actions must have a type property");super.next(Kt)}complete(){}ngOnDestroy(){super.complete()}}return Je.\u0275fac=function(Kt){return new(Kt||Je)},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const J=[se],me=new e.OlP("@ngrx/store Internal Root Guard"),x=new e.OlP("@ngrx/store Internal Initial State"),t=new e.OlP("@ngrx/store Initial State"),r=new e.OlP("@ngrx/store Reducer Factory"),h=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new e.OlP("@ngrx/store Initial Reducers"),C=new e.OlP("@ngrx/store Internal Initial Reducers"),S=new e.OlP("@ngrx/store Store Features"),I=new e.OlP("@ngrx/store Internal Store Reducers"),_=new e.OlP("@ngrx/store Internal Feature Reducers"),n=new e.OlP("@ngrx/store Internal Feature Configs"),g=new e.OlP("@ngrx/store Internal Store Features"),V=new e.OlP("@ngrx/store Internal Feature Reducers Token"),R=new e.OlP("@ngrx/store Feature Reducers"),H=new e.OlP("@ngrx/store User Provided Meta Reducers"),$=new e.OlP("@ngrx/store Meta Reducers"),fe=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),ye=new e.OlP("@ngrx/store User Runtime Checks Config"),ke=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),Ee=new e.OlP("@ngrx/store Internal Runtime Checks"),te=new e.OlP("@ngrx/store Check if Action types are unique");function ze(Je,Nt={}){const Kt=Object.keys(Je),pi={};for(let ki=0;kiki(Ri),Kt(Nt))}}function Y(Je,Nt){return Array.isArray(Nt)&&Nt.length>0&&(Je=Z.apply(null,[...Nt,Je])),(Kt,pi)=>{const Ri=Je(Kt);return(ki,hn)=>Ri(ki=void 0===ki?pi:ki,hn)}}class Ie extends u.y{}class Ae extends se{}const ce="@ngrx/store/update-reducers";let Te=(()=>{class Je extends i.X{constructor(Kt,pi,Ri,ki){super(ki(Ri,pi)),this.dispatcher=Kt,this.initialState=pi,this.reducers=Ri,this.reducerFactory=ki}get currentReducers(){return this.reducers}addFeature(Kt){this.addFeatures([Kt])}addFeatures(Kt){const pi=Kt.reduce((Ri,{reducers:ki,reducerFactory:hn,metaReducers:Hn,initialState:An,key:Kn})=>{const Cn="function"==typeof ki?function ot(Je){const Nt=Array.isArray(Je)&&Je.length>0?Z(...Je):Kt=>Kt;return(Kt,pi)=>(Kt=Nt(Kt),(Ri,ki)=>Kt(Ri=void 0===Ri?pi:Ri,ki))}(Hn)(ki,An):Y(hn,Hn)(ki,An);return Ri[Kn]=Cn,Ri},{});this.addReducers(pi)}removeFeature(Kt){this.removeFeatures([Kt])}removeFeatures(Kt){this.removeReducers(Kt.map(pi=>pi.key))}addReducer(Kt,pi){this.addReducers({[Kt]:pi})}addReducers(Kt){this.reducers=Object.assign(Object.assign({},this.reducers),Kt),this.updateReducers(Object.keys(Kt))}removeReducer(Kt){this.removeReducers([Kt])}removeReducers(Kt){Kt.forEach(pi=>{this.reducers=function be(Je,Nt){return Object.keys(Je).filter(Kt=>Kt!==Nt).reduce((Kt,pi)=>Object.assign(Kt,{[pi]:Je[pi]}),{})}(this.reducers,pi)}),this.updateReducers(Kt)}updateReducers(Kt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ce,features:Kt})}ngOnDestroy(){this.complete()}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(Ae),e.LFG(t),e.LFG(c),e.LFG(r))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const xe=[Te,{provide:Ie,useExisting:Te},{provide:Ae,useExisting:se}];let G=(()=>{class Je extends b.x{ngOnDestroy(){this.complete()}}return Je.\u0275fac=function(){let Nt;return function(pi){return(Nt||(Nt=e.n5z(Je)))(pi||Je)}}(),Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const ee=[G];class ue extends u.y{}let ve=(()=>{class Je extends i.X{constructor(Kt,pi,Ri,ki){super(ki);const Kn=Kt.pipe((0,P.Q)(a.N)).pipe((0,D.M)(pi)).pipe((0,T.R)(Le,{state:ki}));this.stateSubscription=Kn.subscribe(({state:Cn,action:wi})=>{this.next(Cn),Ri.next(wi)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return Je.INIT=ie,Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(se),e.LFG(Ie),e.LFG(G),e.LFG(t))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();function Le(Je={state:void 0},[Nt,Kt]){const{state:pi}=Je;return{state:Kt(pi,Nt),action:Nt}}const lt=[ve,{provide:ue,useExisting:ve}];let ht=(()=>{class Je extends u.y{constructor(Kt,pi,Ri){super(),this.actionsObserver=pi,this.reducerManager=Ri,this.source=Kt}select(Kt,...pi){return hi.call(null,Kt,...pi)(this)}lift(Kt){const pi=new Je(this,this.actionsObserver,this.reducerManager);return pi.operator=Kt,pi}dispatch(Kt){this.actionsObserver.next(Kt)}next(Kt){this.actionsObserver.next(Kt)}error(Kt){this.actionsObserver.error(Kt)}complete(){this.actionsObserver.complete()}addReducer(Kt,pi){this.reducerManager.addReducer(Kt,pi)}removeReducer(Kt){this.reducerManager.removeReducer(Kt)}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(ue),e.LFG(se),e.LFG(Te))},Je.\u0275prov=e.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const Tt=[ht];function hi(Je,Nt,...Kt){return function(Ri){let ki;if("string"==typeof Je){const hn=[Nt,...Kt].filter(Boolean);ki=Ri.pipe(function d(...Je){const Nt=Je.length;if(0===Nt)throw new Error("list of properties cannot be empty.");return(0,y.U)(Kt=>{let pi=Kt;for(let Ri=0;RiJe(hn,Nt)))}return ki.pipe((0,M.x)())}}const jt="https://ngrx.io/guide/store/configuration/runtime-checks";function Gt(Je){return void 0===Je}function di(Je){return null===Je}function vt(Je){return Array.isArray(Je)}function _t(Je){return"object"==typeof Je&&null!==Je}function Pe(Je){return"function"==typeof Je}function Rt(Je,Nt){return Je===Nt}function et(Je,Nt,Kt){for(let pi=0;piCn.release&&"function"==typeof Cn.release),Hn=Je(function(...Cn){return ki.apply(null,Cn)}),An=qe(function(Cn,wi){return Nt.stateFn.apply(null,[Cn,Ri,wi,Hn])});return Object.assign(An.memoized,{release:function Kn(){An.reset(),Hn.reset(),hn.forEach(Cn=>Cn.release())},projector:Hn.memoized,setResult:An.setResult,clearResult:An.clearResult})}}(qe)(...Je)}function we(Je,Nt,Kt,pi){if(void 0===Kt){const ki=Nt.map(hn=>hn(Je));return pi.memoized.apply(null,ki)}const Ri=Nt.map(ki=>ki(Je,Kt));return pi.memoized.apply(null,[...Ri,Kt])}function rt(Je){return Ze(Nt=>{const Kt=Nt[Je];return(0,e.X6Q)()&&!(Je in Nt)&&console.warn(`@ngrx/store: The feature name "${Je}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${Je}', ...) or StoreModule.forFeature('${Je}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Kt},Nt=>Nt)}function Jt(Je){Object.freeze(Je);const Nt=Pe(Je);return Object.getOwnPropertyNames(Je).forEach(Kt=>{if(!Kt.startsWith("\u0275")&&function oe(Je,Nt){return Object.prototype.hasOwnProperty.call(Je,Nt)}(Je,Kt)&&(!Nt||"caller"!==Kt&&"callee"!==Kt&&"arguments"!==Kt)){const pi=Je[Kt];(_t(pi)||Pe(pi))&&!Object.isFrozen(pi)&&Jt(pi)}}),Je}function ui(Je,Nt=[]){return(Gt(Je)||di(Je))&&0===Nt.length?{path:["root"],value:Je}:Object.keys(Je).reduce((pi,Ri)=>{if(pi)return pi;const ki=Je[Ri];return function De(Je){return Pe(Je)&&Je.hasOwnProperty("\u0275cmp")}(ki)?pi:!(Gt(ki)||di(ki)||function Qe(Je){return"number"==typeof Je}(ki)||function gt(Je){return"boolean"==typeof Je}(ki)||function kt(Je){return"string"==typeof Je}(ki)||vt(ki))&&(function Zt(Je){if(!function ei(Je){return _t(Je)&&!vt(Je)}(Je))return!1;const Nt=Object.getPrototypeOf(Je);return Nt===Object.prototype||null===Nt}(ki)?ui(ki,[...Nt,Ri]):{path:[...Nt,Ri],value:ki})},!1)}function si(Je,Nt){if(!1===Je)return;const Kt=Je.path.join("."),pi=new Error(`Detected unserializable ${Nt} at "${Kt}". ${jt}#strict${Nt}serializability`);throw pi.value=Je.value,pi.unserializablePath=Kt,pi}function Ui(Je){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},Je):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Bi({strictActionSerializability:Je,strictStateSerializability:Nt}){return Kt=>Je||Nt?function qi(Je,Nt){return function(Kt,pi){Nt.action(pi)&&si(ui(pi),"action");const Ri=Je(Kt,pi);return Nt.state()&&si(ui(Ri),"state"),Ri}}(Kt,{action:pi=>Je&&!ct(pi),state:()=>Nt}):Kt}function Gi({strictActionImmutability:Je,strictStateImmutability:Nt}){return Kt=>Je||Nt?function Xt(Je,Nt){return function(Kt,pi){const Ri=Nt.action(pi)?Jt(pi):pi,ki=Je(Kt,Ri);return Nt.state()?Jt(ki):ki}}(Kt,{action:pi=>Je&&!ct(pi),state:()=>Nt}):Kt}function ct(Je){return Je.type.startsWith("@ngrx")}function Ft({strictActionWithinNgZone:Je}){return Nt=>Je?function en(Je,Nt){return function(Kt,pi){if(Nt.action(pi)&&!e.R0b.isInAngularZone())throw new Error(`Action '${pi.type}' running outside NgZone. ${jt}#strictactionwithinngzone`);return Je(Kt,pi)}}(Nt,{action:Kt=>Je&&!ct(Kt)}):Nt}function pt(Je){return[{provide:ke,useValue:Je},{provide:ye,useFactory:It,deps:[ke]},{provide:Ee,deps:[ye],useFactory:Ui},{provide:$,multi:!0,deps:[Ee],useFactory:Gi},{provide:$,multi:!0,deps:[Ee],useFactory:Bi},{provide:$,multi:!0,deps:[Ee],useFactory:Ft}]}function it(){return[{provide:te,multi:!0,deps:[Ee],useFactory:de}]}function It(Je){return Je}function de(Je){if(!Je.strictActionTypeUniqueness)return;const Nt=Object.entries(A).filter(([,Kt])=>Kt>1).map(([Kt])=>Kt);if(Nt.length)throw new Error(`Action types are registered more than once, ${Nt.map(Kt=>`"${Kt}"`).join(", ")}. ${jt}#strictactiontypeuniqueness`)}let $e=(()=>{class Je{constructor(Kt,pi,Ri,ki,hn,Hn){}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(se),e.LFG(Ie),e.LFG(G),e.LFG(ht),e.LFG(me,8),e.LFG(te,8))},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})(),bt=(()=>{class Je{constructor(Kt,pi,Ri,ki,hn){this.features=Kt,this.featureReducers=pi,this.reducerManager=Ri;const Hn=Kt.map((An,Kn)=>{const wi=pi.shift()[Kn];return Object.assign(Object.assign({},An),{reducers:wi,initialState:Wi(An.initialState)})});Ri.addFeatures(Hn)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return Je.\u0275fac=function(Kt){return new(Kt||Je)(e.LFG(g),e.LFG(R),e.LFG(Te),e.LFG($e),e.LFG(te,8))},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})(),Vt=(()=>{class Je{static forRoot(Kt,pi={}){return{ngModule:$e,providers:[{provide:me,useFactory:mn,deps:[[ht,new e.FiY,new e.tp0]]},{provide:x,useValue:pi.initialState},{provide:t,useFactory:Wi,deps:[x]},{provide:C,useValue:Kt},{provide:I,useExisting:Kt instanceof e.OlP?Kt:C},{provide:c,deps:[e.zs3,C,[new e.tBr(I)]],useFactory:bi},{provide:H,useValue:pi.metaReducers?pi.metaReducers:[]},{provide:fe,deps:[$,H],useFactory:sn},{provide:h,useValue:pi.reducerFactory?pi.reducerFactory:ze},{provide:r,deps:[h,fe],useFactory:Y},J,xe,ee,lt,Tt,pt(pi.runtimeChecks),it()]}}static forFeature(Kt,pi,Ri={}){return{ngModule:bt,providers:[{provide:n,multi:!0,useValue:Kt instanceof Object?{}:Ri},{provide:S,multi:!0,useValue:{key:Kt instanceof Object?Kt.name:Kt,reducerFactory:Ri instanceof e.OlP||!Ri.reducerFactory?ze:Ri.reducerFactory,metaReducers:Ri instanceof e.OlP||!Ri.metaReducers?[]:Ri.metaReducers,initialState:Ri instanceof e.OlP||!Ri.initialState?void 0:Ri.initialState}},{provide:g,deps:[e.zs3,n,S],useFactory:Li},{provide:_,multi:!0,useValue:Kt instanceof Object?Kt.reducer:pi},{provide:V,multi:!0,useExisting:pi instanceof e.OlP?pi:_},{provide:R,multi:!0,deps:[e.zs3,_,[new e.tBr(V)]],useFactory:Ji},it()]}}}return Je.\u0275fac=function(Kt){return new(Kt||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({}),Je})();function bi(Je,Nt){return Nt instanceof e.OlP?Je.get(Nt):Nt}function Li(Je,Nt,Kt){return Kt.map((pi,Ri)=>{if(Nt[Ri]instanceof e.OlP){const ki=Je.get(Nt[Ri]);return{key:pi.key,reducerFactory:ki.reducerFactory?ki.reducerFactory:ze,metaReducers:ki.metaReducers?ki.metaReducers:[],initialState:ki.initialState}}return pi})}function Ji(Je,Nt){return Nt.map(pi=>pi instanceof e.OlP?Je.get(pi):pi)}function Wi(Je){return"function"==typeof Je?Je():Je}function sn(Je,Nt){return Je.concat(Nt)}function mn(Je){if(Je)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Yt(...Je){return{reducer:Je.pop(),types:Je.map(pi=>pi.type)}}function Mi(Je,...Nt){const Kt=new Map;for(const pi of Nt)for(const Ri of pi.types){const ki=Kt.get(Ri);Kt.set(Ri,ki?(Hn,An)=>pi.reducer(ki(Hn,An),An):pi.reducer)}return function(pi=Je,Ri){const ki=Kt.get(Ri.type);return ki?ki(pi,Ri):pi}}},1210:(He,j,p)=>{"use strict";p.d(j,{H5:()=>p0,K$:()=>yh,a4:()=>Hh});var e=p(5e3),i=p(9808),u=p(655),b=p(7429),a=p(4968),y=p(8372),d=p(1777);function P(){}function D(f){return null==f?P:function(){return this.querySelector(f)}}function M(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function z(f){return function(){return this.matches(f)}}function U(f){return function(O){return O.matches(f)}}var W=Array.prototype.find;function Q(){return this.firstElementChild}var q=Array.prototype.filter;function ie(){return this.children}function x(f){return new Array(f.length)}function r(f,O){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=O}function h(f){return function(){return f}}function c(f,O,o,v,F,X){for(var st,Oe=0,Ut=O.length,zt=X.length;OeO?1:f>=O?0:NaN}r.prototype={constructor:r,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,O){return this._parent.insertBefore(f,O)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var ze="http://www.w3.org/1999/xhtml";const be={svg:"http://www.w3.org/2000/svg",xhtml:ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Z(f){var O=f+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=f.slice(0,o))&&(f=f.slice(o+1)),be.hasOwnProperty(O)?{space:be[O],local:f}:f}function Y(f){return function(){this.removeAttribute(f)}}function ot(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Ie(f,O){return function(){this.setAttribute(f,O)}}function Ae(f,O){return function(){this.setAttributeNS(f.space,f.local,O)}}function ce(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(f):this.setAttribute(f,o)}}function Te(f,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,o)}}function G(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function ee(f){return function(){this.style.removeProperty(f)}}function ue(f,O,o){return function(){this.style.setProperty(f,O,o)}}function ve(f,O,o){return function(){var v=O.apply(this,arguments);null==v?this.style.removeProperty(f):this.style.setProperty(f,v,o)}}function lt(f,O){return f.style.getPropertyValue(O)||G(f).getComputedStyle(f,null).getPropertyValue(O)}function ht(f){return function(){delete this[f]}}function Tt(f,O){return function(){this[f]=O}}function hi(f,O){return function(){var o=O.apply(this,arguments);null==o?delete this[f]:this[f]=o}}function Gt(f){return f.trim().split(/^|\s+/)}function di(f){return f.classList||new vt(f)}function vt(f){this._node=f,this._names=Gt(f.getAttribute("class")||"")}function kt(f,O){for(var o=di(f),v=-1,F=O.length;++v=0&&(o=O.slice(v+1),O=O.slice(0,v)),{type:O,name:o}})}function ct(f){return function(){var O=this.__on;if(O){for(var X,o=0,v=-1,F=O.length;o=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Vt=[null];function bi(f,O){this._groups=f,this._parents=O}function Li(){return new bi([[document.documentElement]],Vt)}bi.prototype=Li.prototype={constructor:bi,select:function T(f){"function"!=typeof f&&(f=D(f));for(var O=this._groups,o=O.length,v=new Array(o),F=0;F=pn&&(pn=_n+1);!(Dn=Ii[pn])&&++pn=0;)(Oe=v[F])&&(X&&4^Oe.compareDocumentPosition(X)&&X.parentNode.insertBefore(Oe,X),X=Oe);return this},sort:function R(f){function O(yi,xi){return yi&&xi?f(yi.__data__,xi.__data__):!yi-!xi}f||(f=H);for(var o=this._groups,v=o.length,F=new Array(v),X=0;X1?this.each((null==O?ee:"function"==typeof O?ve:ue)(f,O,null==o?"":o)):lt(this.node(),f)},property:function jt(f,O){return arguments.length>1?this.each((null==O?ht:"function"==typeof O?hi:Tt)(f,O)):this.node()[f]},classed:function Zt(f,O){var o=Gt(f+"");if(arguments.length<2){for(var v=di(this.node()),F=-1,X=o.length;++F{}};function Yt(){for(var v,f=0,O=arguments.length,o={};f=0&&(v=o.slice(F+1),o=o.slice(0,F)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:v}})}function Nt(f,O){for(var F,o=0,v=f.length;o0)for(var F,X,o=new Array(F),v=0;v>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Rr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Rr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=Pr.exec(f))?new tr(O[1],O[2],O[3],1):(O=ia.exec(f))?new tr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=sa.exec(f))?Rr(O[1],O[2],O[3],O[4]):(O=oa.exec(f))?Rr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=La.exec(f))?jr(O[1],O[2]/100,O[3]/100,1):(O=Ta.exec(f))?jr(O[1],O[2]/100,O[3]/100,O[4]):rr.hasOwnProperty(f)?xa(rr[f]):"transparent"===f?new tr(NaN,NaN,NaN,0):null}function xa(f){return new tr(f>>16&255,f>>8&255,255&f,1)}function Rr(f,O,o,v){return v<=0&&(f=O=o=NaN),new tr(f,O,o,v)}function Xn(f){return f instanceof Cn||(f=qr(f)),f?new tr((f=f.rgb()).r,f.g,f.b,f.opacity):new tr}function la(f,O,o,v){return 1===arguments.length?Xn(f):new tr(f,O,o,null==v?1:v)}function tr(f,O,o,v){this.r=+f,this.g=+O,this.b=+o,this.opacity=+v}function wr(){return"#"+ma(this.r)+ma(this.g)+ma(this.b)}function lr(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function ma(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function jr(f,O,o,v){return v<=0?f=O=o=NaN:o<=0||o>=1?f=O=NaN:O<=0&&(f=NaN),new Ur(f,O,o,v)}function Dr(f){if(f instanceof Ur)return new Ur(f.h,f.s,f.l,f.opacity);if(f instanceof Cn||(f=qr(f)),!f)return new Ur;if(f instanceof Ur)return f;var O=(f=f.rgb()).r/255,o=f.g/255,v=f.b/255,F=Math.min(O,o,v),X=Math.max(O,o,v),Oe=NaN,st=X-F,Ut=(X+F)/2;return st?(Oe=O===X?(o-v)/st+6*(o0&&Ut<1?0:Oe,new Ur(Oe,st,Ut,f.opacity)}function Ur(f,O,o,v){this.h=+f,this.s=+O,this.l=+o,this.opacity=+v}function mr(f,O,o){return 255*(f<60?O+(o-O)*f/60:f<180?o:f<240?O+(o-O)*(240-f)/60:O)}function gr(f,O,o,v,F){var X=f*f,Oe=X*f;return((1-3*f+3*X-Oe)*O+(4-6*X+3*Oe)*o+(1+3*f+3*X-3*Oe)*v+Oe*F)/6}An(Cn,qr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Yr,formatHex:Yr,formatHsl:function na(){return Dr(this).formatHsl()},formatRgb:Ra,toString:Ra}),An(tr,la,Kn(Cn,{brighter:function(f){return f=null==f?Yi:Math.pow(Yi,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new tr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wr,formatHex:wr,formatRgb:lr,toString:lr})),An(Ur,function Nr(f,O,o,v){return 1===arguments.length?Dr(f):new Ur(f,O,o,null==v?1:v)},Kn(Cn,{brighter:function(f){return f=null==f?Yi:Math.pow(Yi,f),new Ur(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Ur(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),O=isNaN(f)||isNaN(this.s)?0:this.s,o=this.l,v=o+(o<.5?o:1-o)*O,F=2*o-v;return new tr(mr(f>=240?f-240:f+120,F,v),mr(f,F,v),mr(f<120?f+240:f-120,F,v),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const da=f=>()=>f;function qn(f,O){var o=O-f;return o?function Jn(f,O){return function(o){return f+o*O}}(f,o):da(isNaN(f)?O:f)}const Hr=function f(O){var o=function $n(f){return 1==(f=+f)?qn:function(O,o){return o-O?function ga(f,O,o){return f=Math.pow(f,o),O=Math.pow(O,o)-f,o=1/o,function(v){return Math.pow(f+v*O,o)}}(O,o,f):da(isNaN(O)?o:O)}}(O);function v(F,X){var Oe=o((F=la(F)).r,(X=la(X)).r),st=o(F.g,X.g),Ut=o(F.b,X.b),zt=qn(F.opacity,X.opacity);return function(li){return F.r=Oe(li),F.g=st(li),F.b=Ut(li),F.opacity=zt(li),F+""}}return v.gamma=f,v}(1);function br(f){return function(O){var Oe,st,o=O.length,v=new Array(o),F=new Array(o),X=new Array(o);for(Oe=0;Oe=1?(o=1,O-1):Math.floor(o*O),F=f[v],X=f[v+1];return gr((o-v/O)*O,v>0?f[v-1]:2*F-X,F,X,vo&&(X=O.slice(o,X),st[Oe]?st[Oe]+=X:st[++Oe]=X),(v=v[0])===(F=F[0])?st[Oe]?st[Oe]+=F:st[++Oe]=F:(st[++Oe]=null,Ut.push({i:Oe,x:Mt(v,F)})),o=ri.lastIndex;return o=0&&f._call.call(null,O),f=f._next;--Ai}()}finally{Ai=0,function Da(){for(var f,o,O=Ne,v=1/0;O;)O._call?(v>O._time&&(v=O._time),f=O,O=O._next):(o=O._next,O._next=null,O=f?f._next=o:Ne=o);Lt=f,cr(v)}(),$i=0}}function ss(){var f=Sr.now(),O=f-vi;O>1e3&&(Nn-=O,vi=f)}function cr(f){Ai||(ji&&(ji=clearTimeout(ji)),f-$i>24?(f<1/0&&(ji=setTimeout(Cr,f-Sr.now()-Nn)),Ke&&(Ke=clearInterval(Ke))):(Ke||(vi=Sr.now(),Ke=setInterval(ss,1e3)),Ai=1,Ca(Cr)))}function gs(f,O,o){var v=new Hi;return v.restart(F=>{v.stop(),f(F+O)},O=null==O?0:+O,o),v}Hi.prototype=Vn.prototype={constructor:Hi,restart:function(f,O,o){if("function"!=typeof f)throw new TypeError("callback is not a function");o=(null==o?Jr():+o)+(null==O?0:+O),!this._next&&Lt!==this&&(Lt?Lt._next=this:Ne=this,Lt=this),this._call=f,this._time=o,cr()},stop:function(){this._call&&(this._call=null,this._time=1/0,cr())}};var Cs=pi("start","end","cancel","interrupt"),Ia=[];function pe(f,O,o,v,F,X){var Oe=f.__transition;if(Oe){if(o in Oe)return}else f.__transition={};!function ii(f,O,o){var F,v=f.__transition;function Oe(zt){var li,yi,xi,Ti;if(1!==o.state)return Ut();for(li in v)if((Ti=v[li]).name===o.name){if(3===Ti.state)return gs(Oe);4===Ti.state?(Ti.state=6,Ti.timer.stop(),Ti.on.call("interrupt",f,f.__data__,Ti.index,Ti.group),delete v[li]):+li0)throw new Error("too late; already scheduled");return o}function xt(f,O){var o=Ht(f,O);if(o.state>3)throw new Error("too late; already running");return o}function Ht(f,O){var o=f.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var wn,Pi=180/Math.PI,tn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cn(f,O,o,v,F,X){var Oe,st,Ut;return(Oe=Math.sqrt(f*f+O*O))&&(f/=Oe,O/=Oe),(Ut=f*o+O*v)&&(o-=f*Ut,v-=O*Ut),(st=Math.sqrt(o*o+v*v))&&(o/=st,v/=st,Ut/=st),f*v180?li+=360:li-zt>180&&(zt+=360),xi.push({i:yi.push(F(yi)+"rotate(",null,v)-2,x:Mt(zt,li)})):li&&yi.push(F(yi)+"rotate("+li+v)}(zt.rotate,li.rotate,yi,xi),function st(zt,li,yi,xi){zt!==li?xi.push({i:yi.push(F(yi)+"skewX(",null,v)-2,x:Mt(zt,li)}):li&&yi.push(F(yi)+"skewX("+li+v)}(zt.skewX,li.skewX,yi,xi),function Ut(zt,li,yi,xi,Ti,nn){if(zt!==yi||li!==xi){var vn=Ti.push(F(Ti)+"scale(",null,",",null,")");nn.push({i:vn-4,x:Mt(zt,yi)},{i:vn-2,x:Mt(li,xi)})}else(1!==yi||1!==xi)&&Ti.push(F(Ti)+"scale("+yi+","+xi+")")}(zt.scaleX,zt.scaleY,li.scaleX,li.scaleY,yi,xi),zt=li=null,function(Ti){for(var Ii,nn=-1,vn=xi.length;++nn=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ge:xt;return function(){var Oe=X(this,f),st=Oe.on;st!==v&&(F=(v=st).copy()).on(O,o),Oe.on=F}}var We=Wi.prototype.constructor;function ge(f){return function(){this.style.removeProperty(f)}}function Qt(f,O,o){return function(v){this.style.setProperty(f,O.call(this,v),o)}}function ai(f,O,o){var v,F;function X(){var Oe=O.apply(this,arguments);return Oe!==F&&(v=(F=Oe)&&Qt(f,Oe,o)),v}return X._value=O,X}function un(f){return function(O){this.textContent=f.call(this,O)}}function kn(f){var O,o;function v(){var F=f.apply(this,arguments);return F!==o&&(O=(o=F)&&un(F)),O}return v._value=f,v}var B1=0;function Ea(f,O,o,v){this._groups=f,this._parents=O,this._name=o,this._id=v}function c3(){return++B1}var $s=Wi.prototype;Ea.prototype=function lo(f){return Wi().transition(f)}.prototype={constructor:Ea,select:function Xe(f){var O=this._name,o=this._id;"function"!=typeof f&&(f=D(f));for(var v=this._groups,F=v.length,X=new Array(F),Oe=0;Oe2&&v.state<5,v.state=6,v.timer.stop(),v.on.call(F?"interrupt":"cancel",f,f.__data__,v.index,v.group),delete o[Oe]):X=!1;X&&delete f.__transition}}(this,f)})},Wi.prototype.transition=function Eo(f){var O,o;f instanceof Ea?(O=f._id,f=f._name):(O=c3(),(o=al).time=Jr(),f=null==f?null:f+"");for(var v=this._groups,F=v.length,X=0;XO?1:f>=O?0:NaN}function Xs(f){let O=f,o=f;function v(Oe,st,Ut,zt){for(null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);Ut>>1;o(Oe[li],st)<0?Ut=li+1:zt=li}return Ut}return 1===f.length&&(O=(Oe,st)=>f(Oe)-st,o=function ed(f){return(O,o)=>Jo(f(O),o)}(f)),{left:v,center:function X(Oe,st,Ut,zt){null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);const li=v(Oe,st,Ut,zt-1);return li>Ut&&O(Oe[li-1],st)>-O(Oe[li],st)?li-1:li},right:function F(Oe,st,Ut,zt){for(null==Ut&&(Ut=0),null==zt&&(zt=Oe.length);Ut>>1;o(Oe[li],st)>0?zt=li:Ut=li+1}return Ut}}}["w","e"].map(Xa),["n","s"].map(Xa),["n","w","e","s","nw","ne","sw","se"].map(Xa);var W1=Math.sqrt(50),hl=Math.sqrt(10),ul=Math.sqrt(2);function p3(f,O,o){var v=(O-f)/Math.max(0,o),F=Math.floor(Math.log(v)/Math.LN10),X=v/Math.pow(10,F);return F>=0?(X>=W1?10:X>=hl?5:X>=ul?2:1)*Math.pow(10,F):-Math.pow(10,-F)/(X>=W1?10:X>=hl?5:X>=ul?2:1)}function fl(f,O,o){var v=Math.abs(O-f)/Math.max(0,o),F=Math.pow(10,Math.floor(Math.log(v)/Math.LN10)),X=v/F;return X>=W1?F*=10:X>=hl?F*=5:X>=ul&&(F*=2),O0))return Ut;do{Ut.push(zt=new Date(+X)),O(X,st),f(X)}while(zt=Oe)for(;f(Oe),!X(Oe);)Oe.setTime(Oe-1)},function(Oe,st){if(Oe>=Oe)if(st<0)for(;++st<=0;)for(;O(Oe,-1),!X(Oe););else for(;--st>=0;)for(;O(Oe,1),!X(Oe););})},o&&(F.count=function(X,Oe){return pl.setTime(+X),ml.setTime(+Oe),f(pl),f(ml),Math.floor(o(pl,ml))},F.every=function(X){return X=Math.floor(X),isFinite(X)&&X>0?X>1?F.filter(v?function(Oe){return v(Oe)%X==0}:function(Oe){return F.count(0,Oe)%X==0}):F:null}),F}var e1=ya(function(){},function(f,O){f.setTime(+f+O)},function(f,O){return O-f});e1.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?ya(function(O){O.setTime(Math.floor(O/f)*f)},function(O,o){O.setTime(+O+o*f)},function(O,o){return(o-O)/f}):e1:null};const id=e1;const t1=ya(function(f){f.setTime(f-f.getMilliseconds())},function(f,O){f.setTime(+f+O*Ls)},function(f,O){return(O-f)/Ls},function(f){return f.getUTCSeconds()});const Z1=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls)},function(f,O){f.setTime(+f+O*qa)},function(f,O){return(O-f)/qa},function(f){return f.getMinutes()});const g3=ya(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*Ls-f.getMinutes()*qa)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getHours()});const po=ya(f=>f.setHours(0,0,0,0),(f,O)=>f.setDate(f.getDate()+O),(f,O)=>(O-f-(O.getTimezoneOffset()-f.getTimezoneOffset())*qa)/Lo,f=>f.getDate()-1);function Fs(f){return ya(function(O){O.setDate(O.getDate()-(O.getDay()+7-f)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*qa)/qs})}var Ts=Fs(0),K1=Fs(1),As=(Fs(2),Fs(3),Fs(4));const y3=(Fs(5),Fs(6),ya(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,O){f.setMonth(f.getMonth()+O)},function(f,O){return O.getMonth()-f.getMonth()+12*(O.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var yl=ya(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,O){f.setFullYear(f.getFullYear()+O)},function(f,O){return O.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});yl.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setFullYear(Math.floor(O.getFullYear()/f)*f),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*f)}):null};const Ds=yl;const sd=ya(function(f){f.setUTCSeconds(0,0)},function(f,O){f.setTime(+f+O*qa)},function(f,O){return(O-f)/qa},function(f){return f.getUTCMinutes()});const Q1=ya(function(f){f.setUTCMinutes(0,0,0)},function(f,O){f.setTime(+f+O*cs)},function(f,O){return(O-f)/cs},function(f){return f.getUTCHours()});const X1=ya(function(f){f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCDate(f.getUTCDate()+O)},function(f,O){return(O-f)/Lo},function(f){return f.getUTCDate()-1});function rs(f){return ya(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-f)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/qs})}var xl=rs(0),q1=rs(1),To=(rs(2),rs(3),rs(4));const L3=(rs(5),rs(6),ya(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCMonth(f.getUTCMonth()+O)},function(f,O){return O.getUTCMonth()-f.getUTCMonth()+12*(O.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var J1=ya(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,O){f.setUTCFullYear(f.getUTCFullYear()+O)},function(f,O){return O.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});J1.every=function(f){return isFinite(f=Math.floor(f))&&f>0?ya(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/f)*f),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*f)}):null};const a1=J1;function Do(f,O,o,v,F,X){const Oe=[[t1,1,Ls],[t1,5,5e3],[t1,15,15e3],[t1,30,3e4],[X,1,qa],[X,5,5*qa],[X,15,15*qa],[X,30,30*qa],[F,1,cs],[F,3,3*cs],[F,6,6*cs],[F,12,12*cs],[v,1,Lo],[v,2,2*Lo],[o,1,qs],[O,1,Y1],[O,3,3*Y1],[f,1,uo]];function Ut(zt,li,yi){const xi=Math.abs(li-zt)/yi,Ti=Xs(([,,Ii])=>Ii).right(Oe,xi);if(Ti===Oe.length)return f.every(fl(zt/uo,li/uo,yi));if(0===Ti)return id.every(Math.max(fl(zt,li,yi),1));const[nn,vn]=Oe[xi/Oe[Ti-1][2][O.toLowerCase(),o]))}function I3(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.w=+v[0],o+v[0].length):-1}function pd(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.u=+v[0],o+v[0].length):-1}function md(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.U=+v[0],o+v[0].length):-1}function O3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.V=+v[0],o+v[0].length):-1}function c1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.W=+v[0],o+v[0].length):-1}function El(f,O,o){var v=ua.exec(O.slice(o,o+4));return v?(f.y=+v[0],o+v[0].length):-1}function d1(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.y=+v[0]+(+v[0]>68?1900:2e3),o+v[0].length):-1}function gd(f,O,o){var v=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return v?(f.Z=v[1]?0:-(v[2]+(v[3]||"00")),o+v[0].length):-1}function ea(f,O,o){var v=ua.exec(O.slice(o,o+1));return v?(f.q=3*v[0]-3,o+v[0].length):-1}function k3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.m=v[0]-1,o+v[0].length):-1}function wl(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.d=+v[0],o+v[0].length):-1}function Sl(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.m=0,f.d=+v[0],o+v[0].length):-1}function n2(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.H=+v[0],o+v[0].length):-1}function Cd(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.M=+v[0],o+v[0].length):-1}function P3(f,O,o){var v=ua.exec(O.slice(o,o+2));return v?(f.S=+v[0],o+v[0].length):-1}function _d(f,O,o){var v=ua.exec(O.slice(o,o+3));return v?(f.L=+v[0],o+v[0].length):-1}function R3(f,O,o){var v=ua.exec(O.slice(o,o+6));return v?(f.L=Math.floor(v[0]/1e3),o+v[0].length):-1}function vd(f,O,o){var v=t2.exec(O.slice(o,o+1));return v?o+v[0].length:-1}function yd(f,O,o){var v=ua.exec(O.slice(o));return v?(f.Q=+v[0],o+v[0].length):-1}function s5(f,O,o){var v=ua.exec(O.slice(o));return v?(f.s=+v[0],o+v[0].length):-1}function Co(f,O){return sr(f.getDate(),O,2)}function Ga(f,O){return sr(f.getHours(),O,2)}function h1(f,O){return sr(f.getHours()%12||12,O,2)}function N3(f,O){return sr(1+po.count(Ds(f),f),O,3)}function Ll(f,O){return sr(f.getMilliseconds(),O,3)}function Va(f,O){return Ll(f,O)+"000"}function u1(f,O){return sr(f.getMonth()+1,O,2)}function Tl(f,O){return sr(f.getMinutes(),O,2)}function bd(f,O){return sr(f.getSeconds(),O,2)}function xd(f){var O=f.getDay();return 0===O?7:O}function H3(f,O){return sr(Ts.count(Ds(f)-1,f),O,2)}function F3(f){var O=f.getDay();return O>=4||0===O?As(f):As.ceil(f)}function Al(f,O){return f=F3(f),sr(As.count(Ds(f),f)+(4===Ds(f).getDay()),O,2)}function Md(f){return f.getDay()}function Dl(f,O){return sr(K1.count(Ds(f)-1,f),O,2)}function V3(f,O){return sr(f.getFullYear()%100,O,2)}function Ed(f,O){return sr((f=F3(f)).getFullYear()%100,O,2)}function Il(f,O){return sr(f.getFullYear()%1e4,O,4)}function wd(f,O){var o=f.getDay();return sr((f=o>=4||0===o?As(f):As.ceil(f)).getFullYear()%1e4,O,4)}function Ol(f){var O=f.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+sr(O/60|0,"0",2)+sr(O%60,"0",2)}function r2(f,O){return sr(f.getUTCDate(),O,2)}function Sd(f,O){return sr(f.getUTCHours(),O,2)}function kl(f,O){return sr(f.getUTCHours()%12||12,O,2)}function a2(f,O){return sr(1+X1.count(a1(f),f),O,3)}function z3(f,O){return sr(f.getUTCMilliseconds(),O,3)}function B3(f,O){return z3(f,O)+"000"}function Ld(f,O){return sr(f.getUTCMonth()+1,O,2)}function Td(f,O){return sr(f.getUTCMinutes(),O,2)}function Ad(f,O){return sr(f.getUTCSeconds(),O,2)}function U3(f){var O=f.getUTCDay();return 0===O?7:O}function Dd(f,O){return sr(xl.count(a1(f)-1,f),O,2)}function G3(f){var O=f.getUTCDay();return O>=4||0===O?To(f):To.ceil(f)}function Id(f,O){return f=G3(f),sr(To.count(a1(f),f)+(4===a1(f).getUTCDay()),O,2)}function Od(f){return f.getUTCDay()}function kd(f,O){return sr(q1.count(a1(f)-1,f),O,2)}function W3(f,O){return sr(f.getUTCFullYear()%100,O,2)}function Y3(f,O){return sr((f=G3(f)).getUTCFullYear()%100,O,2)}function j3(f,O){return sr(f.getUTCFullYear()%1e4,O,4)}function Oo(f,O){var o=f.getUTCDay();return sr((f=o>=4||0===o?To(f):To.ceil(f)).getUTCFullYear()%1e4,O,4)}function Os(){return"+0000"}function Pd(){return"%"}function Rd(f){return+f}function Pl(f){return Math.floor(+f/1e3)}function ko(f){return null===f?NaN:+f}!function K3(f){(function a5(f){var O=f.dateTime,o=f.date,v=f.time,F=f.periods,X=f.days,Oe=f.shortDays,st=f.months,Ut=f.shortMonths,zt=go(F),li=l1(F),yi=go(X),xi=l1(X),Ti=go(Oe),nn=l1(Oe),vn=go(st),Ii=l1(st),fn=go(Ut),_n=l1(Ut),pn={a:function ln(dn){return Oe[dn.getDay()]},A:function ja(dn){return X[dn.getDay()]},b:function vr(dn){return Ut[dn.getMonth()]},B:function ba(dn){return st[dn.getMonth()]},c:null,d:Co,e:Co,f:Va,g:Ed,G:wd,H:Ga,I:h1,j:N3,L:Ll,m:u1,M:Tl,p:function Wr(dn){return F[+(dn.getHours()>=12)]},q:function aa(dn){return 1+~~(dn.getMonth()/3)},Q:Rd,s:Pl,S:bd,u:xd,U:H3,V:Al,w:Md,W:Dl,x:null,X:null,y:V3,Y:Il,Z:Ol,"%":Pd},Fn={a:function ao(dn){return Oe[dn.getUTCDay()]},A:function Zs(dn){return X[dn.getUTCDay()]},b:function Ar(dn){return Ut[dn.getUTCMonth()]},B:function H1(dn){return st[dn.getUTCMonth()]},c:null,d:r2,e:r2,f:B3,g:Y3,G:Oo,H:Sd,I:kl,j:a2,L:z3,m:Ld,M:Td,p:function Pa(dn){return F[+(dn.getUTCHours()>=12)]},q:function Q2(dn){return 1+~~(dn.getUTCMonth()/3)},Q:Rd,s:Pl,S:Ad,u:U3,U:Dd,V:Id,w:Od,W:kd,x:null,X:null,y:W3,Y:j3,Z:Os,"%":Pd},Dn={a:function Lr(dn,Un,er){var Zi=Ti.exec(Un.slice(er));return Zi?(dn.w=nn.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},A:function In(dn,Un,er){var Zi=yi.exec(Un.slice(er));return Zi?(dn.w=xi.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},b:function pa(dn,Un,er){var Zi=fn.exec(Un.slice(er));return Zi?(dn.m=_n.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},B:function or(dn,Un,er){var Zi=vn.exec(Un.slice(er));return Zi?(dn.m=Ii.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},c:function Tr(dn,Un,er){return Mr(dn,O,Un,er)},d:wl,e:wl,f:R3,g:d1,G:El,H:n2,I:n2,j:Sl,L:_d,m:k3,M:Cd,p:function Sa(dn,Un,er){var Zi=zt.exec(Un.slice(er));return Zi?(dn.p=li.get(Zi[0].toLowerCase()),er+Zi[0].length):-1},q:ea,Q:yd,s:s5,S:P3,u:pd,U:md,V:O3,w:I3,W:c1,x:function Ya(dn,Un,er){return Mr(dn,o,Un,er)},X:function Qr(dn,Un,er){return Mr(dn,v,Un,er)},y:d1,Y:El,Z:gd,"%":vd};function En(dn,Un){return function(er){var Ka,Rn,ta,Zi=[],Xr=-1,yr=0,Za=dn.length;for(er instanceof Date||(er=new Date(+er));++Xr53)return null;"w"in Zi||(Zi.w=1),"Z"in Zi?(Za=(yr=e2(o1(Zi.y,0,1))).getUTCDay(),yr=Za>4||0===Za?q1.ceil(yr):q1(yr),yr=X1.offset(yr,7*(Zi.V-1)),Zi.y=yr.getUTCFullYear(),Zi.m=yr.getUTCMonth(),Zi.d=yr.getUTCDate()+(Zi.w+6)%7):(Za=(yr=s1(o1(Zi.y,0,1))).getDay(),yr=Za>4||0===Za?K1.ceil(yr):K1(yr),yr=po.offset(yr,7*(Zi.V-1)),Zi.y=yr.getFullYear(),Zi.m=yr.getMonth(),Zi.d=yr.getDate()+(Zi.w+6)%7)}else("W"in Zi||"U"in Zi)&&("w"in Zi||(Zi.w="u"in Zi?Zi.u%7:"W"in Zi?1:0),Za="Z"in Zi?e2(o1(Zi.y,0,1)).getUTCDay():s1(o1(Zi.y,0,1)).getDay(),Zi.m=0,Zi.d="W"in Zi?(Zi.w+6)%7+7*Zi.W-(Za+5)%7:Zi.w+7*Zi.U-(Za+6)%7);return"Z"in Zi?(Zi.H+=Zi.Z/100|0,Zi.M+=Zi.Z%100,e2(Zi)):s1(Zi)}}function Mr(dn,Un,er,Zi){for(var Ka,Rn,Xr=0,yr=Un.length,Za=er.length;Xr=Za)return-1;if(37===(Ka=Un.charCodeAt(Xr++))){if(Ka=Un.charAt(Xr++),!(Rn=Dn[Ka in D3?Un.charAt(Xr++):Ka])||(Zi=Rn(dn,er,Zi))<0)return-1}else if(Ka!=er.charCodeAt(Zi++))return-1}return Zi}return pn.x=En(o,pn),pn.X=En(v,pn),pn.c=En(O,pn),Fn.x=En(o,Fn),Fn.X=En(v,Fn),Fn.c=En(O,Fn),{format:function(dn){var Un=En(dn+="",pn);return Un.toString=function(){return dn},Un},parse:function(dn){var Un=pr(dn+="",!1);return Un.toString=function(){return dn},Un},utcFormat:function(dn){var Un=En(dn+="",Fn);return Un.toString=function(){return dn},Un},utcParse:function(dn){var Un=pr(dn+="",!0);return Un.toString=function(){return dn},Un}}})(f)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Hl=Xs(Jo).right,Fd=(Xs(ko),Hl);function Po(f,O){return f=+f,O=+O,function(o){return Math.round(f*(1-o)+O*o)}}function Q3(f){return+f}var X3=[0,1];function Js(f){return f}function l2(f,O){return(O-=f=+f)?function(o){return(o-f)/O}:function o2(f){return function(){return f}}(isNaN(O)?NaN:.5)}function zd(f,O,o){var v=f[0],F=f[1],X=O[0],Oe=O[1];return FO&&(o=f,f=O,O=o),function(v){return Math.max(f,Math.min(O,v))}}(f[0],f[xi-1])),st=xi>2?Bd:zd,Ut=zt=null,yi}function yi(xi){return null==xi||isNaN(xi=+xi)?X:(Ut||(Ut=st(f.map(v),O,o)))(v(Oe(xi)))}return yi.invert=function(xi){return Oe(F((zt||(zt=st(O,f.map(v),Mt)))(xi)))},yi.domain=function(xi){return arguments.length?(f=Array.from(xi,Q3),li()):f.slice()},yi.range=function(xi){return arguments.length?(O=Array.from(xi),li()):O.slice()},yi.rangeRound=function(xi){return O=Array.from(xi),o=Po,li()},yi.clamp=function(xi){return arguments.length?(Oe=!!xi||Js,li()):Oe!==Js},yi.interpolate=function(xi){return arguments.length?(o=xi,li()):o},yi.unknown=function(xi){return arguments.length?(X=xi,yi):X},function(xi,Ti){return v=xi,F=Ti,li()}}()(Js,Js)}function _o(f,O){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(O).domain(f)}return this}var d2,vo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p1(f){if(!(O=vo.exec(f)))throw new Error("invalid format: "+f);var O;return new c2({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function c2(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function yo(f,O){if((o=(f=O?f.toExponential(O-1):f.toExponential()).indexOf("e"))<0)return null;var o,v=f.slice(0,o);return[v.length>1?v[0]+v.slice(2):v,+f.slice(o+1)]}function Ro(f){return(f=yo(Math.abs(f)))?f[1]:NaN}function m1(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1];return F<0?"0."+new Array(-F).join("0")+v:v.length>F+1?v.slice(0,F+1)+"."+v.slice(F+1):v+new Array(F-v.length+2).join("0")}p1.prototype=c2.prototype,c2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const u2={"%":(f,O)=>(100*f).toFixed(O),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function Wd(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,O)=>f.toExponential(O),f:(f,O)=>f.toFixed(O),g:(f,O)=>f.toPrecision(O),o:f=>Math.round(f).toString(8),p:(f,O)=>m1(100*f,O),r:m1,s:function h2(f,O){var o=yo(f,O);if(!o)return f+"";var v=o[0],F=o[1],X=F-(d2=3*Math.max(-8,Math.min(8,Math.floor(F/3))))+1,Oe=v.length;return X===Oe?v:X>Oe?v+new Array(X-Oe+1).join("0"):X>0?v.slice(0,X)+"."+v.slice(X):"0."+new Array(1-X).join("0")+yo(f,Math.max(0,O+X-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function f2(f){return f}var C1,m2,r4,Gl=Array.prototype.map,p2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function o5(f){var O=f.domain;return f.ticks=function(o){var v=O();return function td(f,O,o){var v,X,Oe,st,F=-1;if(o=+o,(f=+f)==(O=+O)&&o>0)return[f];if((v=O0){let Ut=Math.round(f/st),zt=Math.round(O/st);for(Ut*stO&&--zt,Oe=new Array(X=zt-Ut+1);++FO&&--zt,Oe=new Array(X=zt-Ut+1);++F0;){if((zt=p3(Oe,st,o))===Ut)return v[F]=Oe,v[X]=st,O(v);if(zt>0)Oe=Math.floor(Oe/zt)*zt,st=Math.ceil(st/zt)*zt;else{if(!(zt<0))break;Oe=Math.ceil(Oe*zt)/zt,st=Math.floor(st*zt)/zt}Ut=zt}return f},f}function eo(){var f=Vl();return f.copy=function(){return Fl(f,eo())},_o.apply(f,arguments),o5(f)}function s4(f,O,o){f=+f,O=+O,o=(F=arguments.length)<2?(O=f,f=0,1):F<3?1:+o;for(var v=-1,F=0|Math.max(0,Math.ceil((O-f)/o)),X=new Array(F);++v0&&st>0&&(Ut+st+1>v&&(st=Math.max(1,v-Ut)),X.push(o.substring(F-=st,F+st)),!((Ut+=st+1)>v));)st=f[Oe=(Oe+1)%f.length];return X.reverse().join(O)}}(Gl.call(f.grouping,Number),f.thousands+""),o=void 0===f.currency?"":f.currency[0]+"",v=void 0===f.currency?"":f.currency[1]+"",F=void 0===f.decimal?".":f.decimal+"",X=void 0===f.numerals?f2:function n4(f){return function(O){return O.replace(/[0-9]/g,function(o){return f[+o]})}}(Gl.call(f.numerals,String)),Oe=void 0===f.percent?"%":f.percent+"",st=void 0===f.minus?"\u2212":f.minus+"",Ut=void 0===f.nan?"NaN":f.nan+"";function zt(yi){var xi=(yi=p1(yi)).fill,Ti=yi.align,nn=yi.sign,vn=yi.symbol,Ii=yi.zero,fn=yi.width,_n=yi.comma,pn=yi.precision,Fn=yi.trim,Dn=yi.type;"n"===Dn?(_n=!0,Dn="g"):u2[Dn]||(void 0===pn&&(pn=12),Fn=!0,Dn="g"),(Ii||"0"===xi&&"="===Ti)&&(Ii=!0,xi="0",Ti="=");var En="$"===vn?o:"#"===vn&&/[boxX]/.test(Dn)?"0"+Dn.toLowerCase():"",pr="$"===vn?v:/[%p]/.test(Dn)?Oe:"",Mr=u2[Dn],Sa=/[defgprs%]/.test(Dn);function Lr(In){var Tr,Ya,Qr,pa=En,or=pr;if("c"===Dn)or=Mr(In)+or,In="";else{var ln=(In=+In)<0||1/In<0;if(In=isNaN(In)?Ut:Mr(Math.abs(In),pn),Fn&&(In=function Ul(f){e:for(var F,O=f.length,o=1,v=-1;o0&&(v=0)}return v>0?f.slice(0,v)+f.slice(F+1):f}(In)),ln&&0==+In&&"+"!==nn&&(ln=!1),pa=(ln?"("===nn?nn:st:"-"===nn||"("===nn?"":nn)+pa,or=("s"===Dn?p2[8+d2/3]:"")+or+(ln&&"("===nn?")":""),Sa)for(Tr=-1,Ya=In.length;++Tr(Qr=In.charCodeAt(Tr))||Qr>57){or=(46===Qr?F+In.slice(Tr+1):In.slice(Tr))+or,In=In.slice(0,Tr);break}}_n&&!Ii&&(In=O(In,1/0));var ja=pa.length+In.length+or.length,vr=ja>1)+pa+In+or+vr.slice(ja);break;default:In=vr+pa+In+or}return X(In)}return pn=void 0===pn?6:/[gprs]/.test(Dn)?Math.max(1,Math.min(21,pn)):Math.max(0,Math.min(20,pn)),Lr.toString=function(){return yi+""},Lr}return{format:zt,formatPrefix:function li(yi,xi){var Ti=zt(((yi=p1(yi)).type="f",yi)),nn=3*Math.max(-8,Math.min(8,Math.floor(Ro(xi)/3))),vn=Math.pow(10,-nn),Ii=p2[8+nn/3];return function(fn){return Ti(vn*fn)+Ii}}}}(f),m2=C1.format,r4=C1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const jl=Symbol("implicit");function Zl(){var f=new Map,O=[],o=[],v=jl;function F(X){var Oe=X+"",st=f.get(Oe);if(!st){if(v!==jl)return v;f.set(Oe,st=O.push(X))}return o[(st-1)%o.length]}return F.domain=function(X){if(!arguments.length)return O.slice();O=[],f=new Map;for(const Oe of X){const st=Oe+"";f.has(st)||f.set(st,O.push(Oe))}return F},F.range=function(X){return arguments.length?(o=Array.from(X),F):o.slice()},F.unknown=function(X){return arguments.length?(v=X,F):v},F.copy=function(){return Zl(O,o).unknown(v)},_o.apply(F,arguments),F}function No(){var X,Oe,f=Zl().unknown(void 0),O=f.domain,o=f.range,v=0,F=1,st=!1,Ut=0,zt=0,li=.5;function yi(){var xi=O().length,Ti=F=1)return+o(f[v-1],v-1,f);var v,F=(v-1)*O,X=Math.floor(F),Oe=+o(f[X],X,f);return Oe+(+o(f[X+1],X+1,f)-Oe)*(F-X)}}function o4(){var v,f=[],O=[],o=[];function F(){var Oe=0,st=Math.max(1,O.length);for(o=new Array(st-1);++Oe0?o[st-1]:f[0],st{return(f=Zn||(Zn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Zn;var f})();function xc(f,O,o){return o===Zn.Top?f.top-7:o===Zn.Bottom?f.top+f.height-O.height+7:o===Zn.Center?f.top+f.height/2-O.height/2:void 0}function Mc(f,O,o){return o===Zn.Left?f.left-7:o===Zn.Right?f.left+f.width-O.width+7:o===Zn.Center?f.left+f.width/2-O.width/2:void 0}class es{static calculateVerticalAlignment(O,o,v){let F=xc(O,o,v);return F+o.height>window.innerHeight&&(F=window.innerHeight-o.height),F}static calculateVerticalCaret(O,o,v,F){let X;F===Zn.Top&&(X=O.height/2-v.height/2+7),F===Zn.Bottom&&(X=o.height-O.height/2-v.height/2-7),F===Zn.Center&&(X=o.height/2-v.height/2);const Oe=xc(O,o,F);return Oe+o.height>window.innerHeight&&(X+=Oe+o.height-window.innerHeight),X}static calculateHorizontalAlignment(O,o,v){let F=Mc(O,o,v);return F+o.width>window.innerWidth&&(F=window.innerWidth-o.width),F}static calculateHorizontalCaret(O,o,v,F){let X;F===Zn.Left&&(X=O.width/2-v.width/2+7),F===Zn.Right&&(X=o.width-O.width/2-v.width/2-7),F===Zn.Center&&(X=o.width/2-v.width/2);const Oe=Mc(O,o,F);return Oe+o.width>window.innerWidth&&(X+=Oe+o.width-window.innerWidth),X}static shouldFlip(O,o,v,F){let X=!1;return v===Zn.Right&&O.left+O.width+o.width+F>window.innerWidth&&(X=!0),v===Zn.Left&&O.left-o.width-F<0&&(X=!0),v===Zn.Top&&O.top-o.height-F<0&&(X=!0),v===Zn.Bottom&&O.top+O.height+o.height+F>window.innerHeight&&(X=!0),X}static positionCaret(O,o,v,F,X){let Oe=0,st=0;return O===Zn.Right?(st=-7,Oe=es.calculateVerticalCaret(v,o,F,X)):O===Zn.Left?(st=o.width,Oe=es.calculateVerticalCaret(v,o,F,X)):O===Zn.Top?(Oe=o.height,st=es.calculateHorizontalCaret(v,o,F,X)):O===Zn.Bottom&&(Oe=-7,st=es.calculateHorizontalCaret(v,o,F,X)),{top:Oe,left:st}}static positionContent(O,o,v,F,X){let Oe=0,st=0;return O===Zn.Right?(st=v.left+v.width+F,Oe=es.calculateVerticalAlignment(v,o,X)):O===Zn.Left?(st=v.left-o.width-F,Oe=es.calculateVerticalAlignment(v,o,X)):O===Zn.Top?(Oe=v.top-o.height-F,st=es.calculateHorizontalAlignment(v,o,X)):O===Zn.Bottom&&(Oe=v.top+v.height+F,st=es.calculateHorizontalAlignment(v,o,X)),{top:Oe,left:st}}static determinePlacement(O,o,v,F){if(es.shouldFlip(v,o,O,F)){if(O===Zn.Right)return Zn.Left;if(O===Zn.Left)return Zn.Right;if(O===Zn.Top)return Zn.Bottom;if(O===Zn.Bottom)return Zn.Top}return O}}let J4=(()=>{class f{constructor(o,v,F){this.element=o,this.renderer=v,this.platformId=F}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const o=this.element.nativeElement,v=this.host.nativeElement.getBoundingClientRect();if(!v.height&&!v.width)return;const F=o.getBoundingClientRect();this.checkFlip(v,F),this.positionContent(o,v,F),this.showCaret&&this.positionCaret(v,F),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,v,F){const{top:X,left:Oe}=es.positionContent(this.placement,F,v,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${X}px`),this.renderer.setStyle(o,"left",`${Oe}px`)}positionCaret(o,v){const F=this.caretElm.nativeElement,X=F.getBoundingClientRect(),{top:Oe,left:st}=es.positionCaret(this.placement,v,o,X,this.alignment);this.renderer.setStyle(F,"top",`${Oe}px`),this.renderer.setStyle(F,"left",`${st}px`)}checkFlip(o,v){this.placement=es.determinePlacement(this.placement,v,o,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,v){if(1&o&&e.Gf($d,5),2&o){let F;e.iGM(F=e.CRH())&&(v.caretElm=F.first)}},hostVars:2,hostBindings:function(o,v){1&o&&e.NdJ("resize",function(){return v.onWindowResize()},!1,e.Jf7),2&o&&e.Tol(v.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,v){1&o&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,Xd,2,4,"span",3),e.YNc(5,l4,1,1,"span",4),e.qZA()()),2&o&&(e.xp6(1),e.Gre("tooltip-caret position-",v.placement,""),e.Q6J("hidden",!v.showCaret),e.xp6(3),e.Q6J("ngIf",!v.title),e.xp6(1),e.Q6J("ngIf",v.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,u.gn)([q4(100)],f.prototype,"onWindowResize",null),f})(),wc=(()=>{class f{constructor(o,v,F){this.applicationRef=o,this.componentFactoryResolver=v,this.injector=F}static setGlobalRootViewContainer(o){f.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function Ec(f){return f.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,v){if(v){if(void 0!==v.inputs){const F=Object.getOwnPropertyNames(v.inputs);for(const X of F)o.instance[X]=v.inputs[X]}if(void 0!==v.outputs){const F=Object.getOwnPropertyNames(v.outputs);for(const X of F)o.instance[X]=v.outputs[X]}}return o}appendComponent(o,v={},F){F||(F=this.getRootViewContainer());const X=this.getComponentRootNode(F),Oe=new b.u0(X,this.componentFactoryResolver,this.applicationRef,this.injector),st=new b.C5(o),Ut=Oe.attach(st);return this.projectComponentBindings(Ut,v),Ut}}return f.globalRootViewContainer=null,f.\u0275fac=function(o){return new(o||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})(),Sc=(()=>{class f extends class oh{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const v=this.injectComponent(O,o);return this.register(O,v),v}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const v=o.indexOf(O);v>-1&&(o[v].destroy(),o.splice(v,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let v=o.length-1;for(;v>=0;)this.destroy(o[v--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),v=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),v&&(O.outputs=Object.assign(Object.assign({},v),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=J4}}return f.\u0275fac=function(o){return new(o||f)(e.LFG(wc))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var xs=(()=>{return(f=xs||(xs={})).Right="right",f.Below="below",xs;var f})(),xo=(()=>{return(f=xo||(xo={})).ScaleLegend="scaleLegend",f.Legend="legend",xo;var f})(),Sn=(()=>{return(f=Sn||(Sn={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",Sn;var f})();let H2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(o){const v=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${v})`}gradientString(o,v){v.push(1);const F=[];return o.reverse().forEach((X,Oe)=>{F.push(`${X} ${Math.round(100*v[Oe])}%`)}),F.join(", ")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,v){1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._uU(3),e.qZA()(),e._UZ(4,"div",2),e.TgZ(5,"div",1)(6,"span"),e._uU(7),e.qZA()()()),2&o&&(e.Udp("height",v.horizontal?void 0:v.height,"px")("width",v.width,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(3),e.Oqu(v.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",v.gradient),e.xp6(3),e.Oqu(v.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})();function T1(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}let F2=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,v){1&o&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return v.select.emit(v.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return v.toggle.emit(v.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA()()),2&o&&(e.ekj("active",v.isActive),e.Q6J("title",v.formattedLabel),e.xp6(1),e.Udp("background-color",v.color),e.xp6(2),e.hij(" ",v.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),V2=(()=>{class f{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const v of this.data){const F=T1(v);-1===o.findIndex(Oe=>Oe.label===F)&&o.push({label:v,formattedLabel:F,color:this.colors.getColor(v)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.label===F.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,v){return v.label}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(o,v){1&o&&(e.TgZ(0,"div"),e.YNc(1,Bn,3,1,"header",0),e.TgZ(2,"div",1)(3,"ul",2),e.YNc(4,c4,2,4,"li",3),e.qZA()()()),2&o&&(e.Udp("width",v.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==v.title?null:v.title.length)>0),e.xp6(2),e.Udp("max-height",v.height-45,"px"),e.ekj("horizontal-legend",v.horizontal),e.xp6(1),e.Q6J("ngForOf",v.legendEntries)("ngForTrackBy",v.trackBy))},directives:[F2,i.O5,i.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),Lc=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=xs,this.LegendType=xo}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===xs.Right)&&(o=this.legendType===xo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==xs.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===Sn.Linear?xo.ScaleLegend:xo.Legend}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Sc]),e.TTD],ngContentSelectors:_1,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(o,v){1&o&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,d4,1,5,"ngx-charts-scale-legend",2),e.YNc(4,h4,1,7,"ngx-charts-legend",3),e.qZA()),2&o&&(e.Udp("width",v.view[0],"px"),e.xp6(1),e.uIk("width",v.chartWidth)("height",v.view[1]),e.xp6(2),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",v.showLegend&&v.legendType===v.LegendType.Legend))},directives:[H2,V2,i.O5],encapsulation:2,changeDetection:0}),f})(),Y5=(()=>{class f{constructor(o,v){this.element=o,this.zone=v,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:v,offsetWidth:F}=this.element.nativeElement;v&&F?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function Tc(f){return"[object Date]"===toString.call(f)}let z2=(()=>{class f{constructor(o,v,F,X){this.chartElement=o,this.zone=v,this.cd=F,this.platformId=X,this.scheme="cool",this.schemeType=Sn.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,i.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Y5(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,v;const F=this.chartElement.nativeElement;if((0,i.NF)(this.platformId)&&null!==F.parentNode){const X=F.parentNode.getBoundingClientRect();o=X.width,v=X.height}return o&&v?{width:o,height:v}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=v}cloneData(o){const v=[];for(const F of o){const X={name:F.name};if(void 0!==F.value&&(X.value=F.value),void 0!==F.series){X.series=[];for(const Oe of F.series){const st=Object.assign({},Oe);X.series.push(st)}}void 0!==F.extra&&(X.extra=JSON.parse(JSON.stringify(F.extra))),v.push(X)}return v}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(o,v){1&o&&e._UZ(0,"div")},encapsulation:2}),f})();var fa=(()=>{return(f=fa||(fa={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",fa;var f})();let e0=(()=>{class f{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case fa.Top:case fa.Bottom:this.y=this.offset,this.x=this.width/2;break;case fa.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case fa.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:hs,decls:2,vars:6,template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&o&&(e.uIk("stroke-width",v.strokeWidth)("x",v.x)("y",v.y)("text-anchor",v.textAnchor)("transform",v.transform),e.xp6(1),e.hij(" ",v.label," "))},encapsulation:2,changeDetection:0}),f})();function no(f,O=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=O?f:`${f.slice(0,O)}...`}function Ac(f,O){if(f.length>O){const o=[],v=Math.floor(f.length/O);for(let F=0;F{return(f=fs||(fs={})).Start="start",f.Middle="middle",f.End="end",fs;var f})();let Dc=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=fs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()};const v=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(F){return this.scale(F)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",v&&0!==v?(this.textTransform=`rotate(${v})`,this.textAnchor=fs.End,this.verticalSpacing=10):this.textAnchor=fs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let v=0;this.maxTicksLength=0;for(let zt=0;ztthis.maxTicksLength&&(this.maxTicksLength=yi)}const Oe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let st=Oe;const Ut=Math.floor(this.width/o.length);for(;st>Ut&&v>-90;)v-=30,st=Math.cos(v*(Math.PI/180))*Oe;return this.approxHeight=Math.max(Math.abs(Math.sin(v*(Math.PI/180))*Oe),10),v}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:u4,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,$l,5,7,"g",1),e.qZA(),e.YNc(3,Ql,2,2,"g",2)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.ticks))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),B2=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=fa.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=fa}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const v=o+25+5;v!==this.labelOffset&&(this.labelOffset=v,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Dc,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f4,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,C2,1,12,"g",0),e.YNc(2,c5,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.xAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[Dc,e0,i.O5],encapsulation:2,changeDetection:0}),f})();function ps(f,O,o,v,F,[X,Oe,st,Ut]){let zt="";return zt=`M${[f+F,O]}`,zt+="h"+((o=0===(o=Math.floor(o))?1:o)-2*F),zt+=Oe?`a${[F,F]} 0 0 1 ${[F,F]}`:`h${F}v${F}`,zt+="v"+((v=0===(v=Math.floor(v))?1:v)-2*F),zt+=Ut?`a${[F,F]} 0 0 1 ${[-F,F]}`:`v${F}h${-F}`,zt+="h"+(2*F-o),zt+=st?`a${[F,F]} 0 0 1 ${[-F,-F]}`:`h${-F}v${-F}`,zt+="v"+(2*F-v),zt+=X?`a${[F,F]} 0 0 1 ${[F,-F]}`:`v${-F}h${F}`,zt+="z",zt}let t0=(()=>{class f{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=fs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=fa}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,i.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const v=this.orient===fa.Top||this.orient===fa.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(F){return"Date"===F.constructor.name?F.toLocaleDateString():F.toLocaleString()},this.adjustedScale=o.bandwidth?function(F){return o(F)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case fa.Top:case fa.Bottom:this.transform=function(F){return"translate("+this.adjustedScale(F)+",0)"},this.textAnchor=fs.Middle,this.y2=this.innerTickSize*v,this.y1=this.tickSpacing*v,this.dy=v<0?"0em":".71em";break;case fa.Left:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.End,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em";break;case fa.Right:this.transform=function(F){return"translate(0,"+this.adjustedScale(F)+")"},this.textAnchor=fs.Start,this.x2=this.innerTickSize*-v,this.x1=this.tickSpacing*-v,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=ps(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const v=this.getMaxTicks(20),F=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[F]):(o=this.scale.domain(),o=Ac(o,v)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?no(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(F=>this.tickTrim(this.tickFormat(F)).length))}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,v){if(1&o&&e.Gf(Kl,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksElement=F.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:Xl,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,d5,5,9,"g",1),e.qZA(),e.YNc(3,_2,1,2,"path",2),e.YNc(4,Jl,2,2,"g",3),e.YNc(5,Jd,2,1,"g",3)),2&o&&(e.xp6(2),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngIf",v.referenceLineLength>1&&v.refMax&&v.refMin&&v.showRefLines),e.xp6(1),e.Q6J("ngForOf",v.ticks),e.xp6(1),e.Q6J("ngForOf",v.referenceLines))},directives:[i.sg,i.O5],encapsulation:2,changeDetection:0}),f})(),Ic=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=fa.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===fa.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:o}){o!==this.labelOffset&&this.yOrient===fa.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,v){if(1&o&&e.Gf(t0,5),2&o){let F;e.iGM(F=e.CRH())&&(v.ticksComponent=F.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:b2,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,e6,1,14,"g",0),e.YNc(2,p4,1,5,"g",1),e.qZA()),2&o&&(e.uIk("class",v.yAxisClassName)("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.yScale),e.xp6(1),e.Q6J("ngIf",v.showLabel))},directives:[t0,e0,i.O5],encapsulation:2,changeDetection:0}),f})(),n0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez]]}),f})();var Mo=(()=>{return(f=Mo||(Mo={})).popover="popover",f.tooltip="tooltip",Mo;var f})(),ro=(()=>{return(f=ro||(ro={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",ro;var f})();let Oc=(()=>{class f{constructor(o,v,F){this.tooltipService=o,this.viewContainerRef=v,this.renderer=F,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Zn.Top,this.tooltipAlignment=Zn.Center,this.tooltipType=Mo.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ro.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.focus}get listensForHover(){return this.tooltipShowEvent===ro.all||this.tooltipShowEvent===ro.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const v=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const F=this.createBoundOptions();this.component=this.tooltipService.create(F),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},v)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",v=>{o.contains(v.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const v=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?v():this.timeout=setTimeout(v,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(Sc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,v){1&o&&e.NdJ("focusin",function(){return v.onFocus()})("blur",function(){return v.onBlur()})("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(X){return v.onMouseLeave(X.target)})("click",function(){return v.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),f})(),r0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[wc,Sc],imports:[[i.ez]]}),f})();const kc={};function D1(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,kc[f]?D1():(kc[f]=!0,f)}var $r=(()=>{return(f=$r||($r={})).Vertical="vertical",f.Horizontal="horizontal",$r;var f})();let Go=(()=>{class f{constructor(){this.orientation=$r.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$r.Horizontal?this.x2="100%":this.orientation===$r.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:u5,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,m4,1,5,"stop",1),e.qZA()),2&o&&(e.Q6J("id",v.name),e.uIk("x1",v.x1)("y1",v.y1)("x2",v.x2)("y2",v.y2),e.xp6(1),e.Q6J("ngForOf",v.stops))},directives:[i.sg],encapsulation:2,changeDetection:0}),f})(),a0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:m5,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,v){1&o&&(e.O4$(),e._UZ(0,"rect",0)),2&o&&e.uIk("height",v.height)("width",v.width)("x",v.x)("y",v.y)},encapsulation:2,changeDetection:0}),f})();var O1=(()=>{return(f=O1||(O1={})).Odd="odd",f.Even="even",O1;var f})();let P1,Wo=(()=>{class f{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let v,F,X,Oe,st,Ut=O1.Odd;if(this.orient===$r.Vertical){const zt=this.xScale(o.name);Number.parseInt((zt/this.xScale.step()).toString(),10)%2==1&&(Ut=O1.Even),v=this.xScale.bandwidth()*this.xScale.paddingInner(),F=this.xScale.bandwidth()+v,X=this.dims.height,Oe=this.xScale(o.name)-v/2,st=0}else if(this.orient===$r.Horizontal){const zt=this.yScale(o.name);Number.parseInt((zt/this.yScale.step()).toString(),10)%2==1&&(Ut=O1.Even),v=this.yScale.bandwidth()*this.yScale.paddingInner(),F=this.dims.width,X=this.yScale.bandwidth()+v,Oe=0,st=this.yScale(o.name)-v/2}return{name:o.name,class:Ut,height:X,width:F,x:Oe,y:st}})}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:t6,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(o,v){1&o&&e.YNc(0,g5,1,10,"g",0),2&o&&e.Q6J("ngForOf",v.gridPanels)},directives:[a0,i.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?P1=window:"undefined"!=typeof global&&(P1=global);let ts=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[i.ez,n0,r0],i.ez,n0,r0]}),f})();function j2({width:f,height:O,margins:o,showXAxis:v=!1,showYAxis:F=!1,xAxisHeight:X=0,yAxisWidth:Oe=0,showXLabel:st=!1,showYLabel:Ut=!1,showLegend:zt=!1,legendType:li=Sn.Ordinal,legendPosition:yi=xs.Right,columns:xi=12}){let Ti=o[3],nn=f,vn=O-o[0]-o[2];return zt&&yi===xs.Right&&(xi-=li===Sn.Ordinal?2:1),nn=nn*xi/12,nn=nn-o[1]-o[3],v&&(vn-=5,vn-=X,st&&(vn-=30)),F&&(nn-=5,nn-=Oe,Ti+=Oe,Ti+=10,Ut&&(nn-=30,Ti+=30)),nn=Math.max(0,nn),vn=Math.max(0,vn),{width:Math.floor(nn),height:Math.floor(vn),xOffset:Math.floor(Ti)}}let Vc=[{name:"vivid",selectable:!0,group:Sn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Sn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Sn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Sn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Sn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Sn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Sn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Sn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Sn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Sn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Sn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Sn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Sn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Sn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Sn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class R1{constructor(O,o,v,F){"string"==typeof O&&(O=Vc.find(X=>X.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=v,this.customColors=F,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,v){let F;switch("string"==typeof O&&(O=Vc.find(X=>X.name===O)),o){case Sn.Quantile:F=o4().range(O.domain).domain(v);break;case Sn.Ordinal:F=Zl().range(O.domain).domain(v);break;case Sn.Linear:{const X=[...O.domain];1===X.length&&(X.push(X[0]),this.colorDomain=X);const Oe=s4(0,1,1/X.length);F=eo().range(X).domain(Oe)}}return F}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===Sn.Linear){const o=eo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let v;return this.customColors&&this.customColors.length>0&&(v=this.customColors.find(F=>F.name.toLowerCase()===o.toLowerCase())),v?v.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const v=eo().domain(this.domain).range([0,1]),F=No().domain(this.colorDomain).range([0,1]),X=this.getColor(O),Oe=v(o),st=this.getColor(o),Ut=v(O);let zt=1,li=Oe;const yi=[];for(yi.push({color:st,offset:Oe,originalOffset:Oe,opacity:1});li=(Ut-F.bandwidth()).toFixed(4))break;yi.push({color:xi,offset:Ti,opacity:1}),li=Ti,zt++}}if(yi[yi.length-1].offset<100&&yi.push({color:X,offset:Ut,opacity:1}),Ut===Oe)yi[0].offset=0,yi[1].offset=100;else if(100!==yi[yi.length-1].offset)for(const xi of yi)xi.offset=(xi.offset-Oe)/(Ut-Oe)*100;return yi}}let Z2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),h0=(()=>{class f{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+D1().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const o=function sn(f){return"string"==typeof f?new bi([[document.querySelector(f)]],[document.documentElement]):new bi([[f]],Vt)}(this.element).select(".bar"),v=this.getPath();this.animations?o.transition().duration(500).attr("d",v):o.attr("d",v)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$r.Vertical?v=ps(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$r.Horizontal&&(v=ps(this.x,this.y,1,this.height,0,this.edges)),v}getPath(){let v,o=this.getRadius();return this.roundEdges?this.orientation===$r.Vertical?(o=Math.min(this.height,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===$r.Horizontal&&(o=Math.min(this.width,o),v=ps(this.x,this.y,this.width,this.height,o,this.edges)):v=ps(this.x,this.y,this.width,this.height,o,this.edges),v}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$r.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$r.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$r.Vertical&&0===this.height||this.orientation===$r.Horizontal&&0===this.width)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,v){1&o&&e.NdJ("mouseenter",function(){return v.onMouseEnter()})("mouseleave",function(){return v.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:u6,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(o,v){1&o&&(e.YNc(0,Ja,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return v.select.emit(v.data)}),e.qZA()),2&o&&(e.Q6J("ngIf",v.hasGradient),e.xp6(1),e.ekj("active",v.isActive)("hidden",v.hideBar),e.uIk("d",v.path)("aria-label",v.ariaLabel)("fill",v.hasGradient?v.gradientFill:v.fill))},directives:[Go,i.O5],encapsulation:2,changeDetection:0}),f})();var Ms=(()=>{return(f=Ms||(Ms={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",Ms;var f})(),Ys=(()=>{return(f=Ys||(Ys={})).positive="positive",f.negative="negative",Ys;var f})();let u0=(()=>{class f{constructor(o){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):T1(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:f6,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,v){1&o&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&o&&(e.uIk("text-anchor",v.textAnchor)("transform",v.transform)("x",v.x)("y",v.y),e.xp6(1),e.hij(" ",v.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),f0=(()=>{class f{constructor(o){this.platformId=o,this.type=Ms.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=$r,this.isSSR=!1}ngOnInit(){(0,i.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const v=Math.max(this.yScale.domain()[0],0),F={[Ys.positive]:0,[Ys.negative]:0};let Oe,X=Ys.positive;this.type===Ms.Normalized&&(Oe=this.series.map(st=>st.value).reduce((st,Ut)=>st+Ut,0)),this.bars=this.series.map((st,Ut)=>{let zt=st.value;const li=this.getLabel(st),yi=T1(li);X=zt>0?Ys.positive:Ys.negative;const Ti={value:zt,label:li,roundEdges:this.roundEdges,data:st,width:o,formattedLabel:yi,height:0,x:0,y:0};if(this.type===Ms.Standard)Ti.height=Math.abs(this.yScale(zt)-this.yScale(v)),Ti.x=this.xScale(li),Ti.y=this.yScale(zt<0?0:zt);else if(this.type===Ms.Stacked){const vn=F[X],Ii=vn+zt;F[X]+=zt,Ti.height=this.yScale(vn)-this.yScale(Ii),Ti.x=0,Ti.y=this.yScale(Ii),Ti.offset0=vn,Ti.offset1=Ii}else if(this.type===Ms.Normalized){let vn=F[X],Ii=vn+zt;F[X]+=zt,Oe>0?(vn=100*vn/Oe,Ii=100*Ii/Oe):(vn=0,Ii=0),Ti.height=this.yScale(vn)-this.yScale(Ii),Ti.x=0,Ti.y=this.yScale(Ii),Ti.offset0=vn,Ti.offset1=Ii,zt=(Ii-vn).toFixed(2)+"%"}this.colors.scaleType===Sn.Ordinal?Ti.color=this.colors.getColor(li):this.type===Ms.Standard?(Ti.color=this.colors.getColor(zt),Ti.gradientStops=this.colors.getLinearGradientStops(zt)):(Ti.color=this.colors.getColor(Ti.offset1),Ti.gradientStops=this.colors.getLinearGradientStops(Ti.offset1,Ti.offset0));let nn=yi;return Ti.ariaLabel=yi+" "+zt.toLocaleString(),null!=this.seriesName&&(nn=`${this.seriesName} \u2022 ${yi}`,Ti.data.series=this.seriesName,Ti.ariaLabel=this.seriesName+" "+Ti.ariaLabel),Ti.tooltipText=this.tooltipDisabled?void 0:`\n ${function A1(f){return f.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(nn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(zt):zt.toLocaleString()}\n `,Ti}),this.updateDataLabels()}updateDataLabels(){if(this.type===Ms.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const v=this.series.map(X=>X.value).reduce((X,Oe)=>Oe>0?X+Oe:X,0),F=this.series.map(X=>X.value).reduce((X,Oe)=>Oe<0?X+Oe:X,0);o.total=v+F,o.x=0,o.y=0,o.height=this.yScale(o.total>0?v:F),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var v;const F={};return F.series=null!==(v=this.seriesName)&&void 0!==v?v:o.label,F.total=o.value,F.x=this.xScale(o.label),F.y=this.yScale(0),F.height=this.yScale(F.total)-this.yScale(0),F.width=this.xScale.bandwidth(),F})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Zn.Top,this.tooltipType=this.tooltipDisabled?void 0:Mo.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(F=>o.name===F.name&&o.value===F.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,v){return v.label}trackDataLabelBy(o,v){return o+"#"+v.series+"#"+v.total}}return f.\u0275fac=function(o){return new(o||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:dc,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(o,v){1&o&&(e.YNc(0,k4,2,2,"g",0),e.YNc(1,L2,2,2,"g",0),e.YNc(2,P4,2,2,"g",0)),2&o&&(e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR),e.xp6(1),e.Q6J("ngIf",v.showDataLabel))},directives:[h0,u0,i.O5,i.sg,Oc],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),f})(),yh=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const o=this.xDomain.length/(this.dims.width/this.barPadding+1);return No().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=eo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map(X=>X.value);let v=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(v=Math.min(v,...this.yAxisTicks));let F=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(F=Math.max(F,...this.yAxisTicks)),[v,F]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===Sn.Ordinal?this.xDomain:this.yDomain,this.colors=new R1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Sn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,v=!1){o=this.results.find(X=>v?X.label===o.name:X.name===o.name),!(this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,v=!1){o=this.results.find(X=>v?X.label===o.name:X.name===o.name);const F=this.activeEntries.findIndex(X=>X.name===o.name&&X.value===o.value&&X.series===o.series);this.activeEntries.splice(F,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let X;e.iGM(X=e.CRH())&&(v.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(X){return v.onClick(X)})("legendLabelActivate",function(X){return v.onActivate(X,!0)})("legendLabelDeactivate",function(X){return v.onDeactivate(X,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,T2,1,11,"g",2),e.YNc(3,A2,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(X){return v.onActivate(X)})("deactivate",function(X){return v.onDeactivate(X)})("select",function(X){return v.onClick(X)})("dataLabelHeightChanged",function(X){return v.onDataLabelMaxHeightChanged(X)}),e.qZA()()()),2&o&&(e.Q6J("view",e.WLB(22,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("xScale",v.xScale)("yScale",v.yScale)("colors",v.colors)("series",v.results)("dims",v.dims)("gradient",v.gradient)("tooltipDisabled",v.tooltipDisabled)("tooltipTemplate",v.tooltipTemplate)("showDataLabel",v.showDataLabel)("dataLabelFormatting",v.dataLabelFormatting)("activeEntries",v.activeEntries)("roundEdges",v.roundEdges)("animations",v.animations)("noBarWhenZero",v.noBarWhenZero))},directives:[Lc,B2,Ic,f0,i.O5],styles:[E4],encapsulation:2,changeDetection:0}),f})(),p0=(()=>{class f extends z2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=xs.Right,this.tooltipDisabled=!1,this.scaleType=Sn.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=$r,this.trackBy=(o,v)=>v.name}ngOnInit(){(0,i.PM)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=j2({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(o,v){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),v===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return No().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),v=this.innerDomain.length/(o/this.barPadding+1);return No().rangeRound([0,o]).paddingInner(v).domain(this.innerDomain)}getValueScale(){const o=eo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const v of this.results)o.includes(v.label)||o.push(v.label);return o}getInnerDomain(){const o=[];for(const v of this.results)for(const F of v.series)o.includes(F.label)||o.push(F.label);return o}getValueDomain(){const o=[];for(const X of this.results)for(const Oe of X.series)o.includes(Oe.value)||o.push(Oe.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,v){v&&(o.series=v.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===Sn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new R1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Sn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,v,F=!1){const X=Object.assign({},o);v&&(X.series=v.name);const Oe=this.results.map(st=>st.series).flat().filter(st=>F?st.label===X.name:st.name===X.name&&st.series===X.series);this.activeEntries=[...Oe],this.activate.emit({value:X,entries:this.activeEntries})}onDeactivate(o,v,F=!1){const X=Object.assign({},o);v&&(X.series=v.name),this.activeEntries=this.activeEntries.filter(Oe=>F?Oe.label!==X.name:!(Oe.name===X.name&&Oe.series===X.series)),this.deactivate.emit({value:X,entries:this.activeEntries})}}return f.\u0275fac=function(){let O;return function(v){return(O||(O=e.n5z(f)))(v||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,v,F){if(1&o&&e.Suo(F,v4,5),2&o){let X;e.iGM(X=e.CRH())&&(v.tooltipTemplate=X.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(o,v){1&o&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(X){return v.onActivate(X,void 0,!0)})("legendLabelDeactivate",function(X){return v.onDeactivate(X,void 0,!0)})("legendLabelClick",function(X){return v.onClick(X)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,S6,1,10,"g",3),e.YNc(4,D2,1,9,"g",4),e.YNc(5,uc,2,2,"g",5),e.qZA(),e.YNc(6,L6,2,2,"g",5),e.qZA()),2&o&&(e.Q6J("view",e.WLB(15,bs,v.width,v.height))("showLegend",v.legend)("legendOptions",v.legendOptions)("activeEntries",v.activeEntries)("animations",v.animations),e.xp6(1),e.uIk("transform",v.transform),e.xp6(1),e.Q6J("xScale",v.groupScale)("yScale",v.valueScale)("data",v.results)("dims",v.dims)("orient",v.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",v.xAxis),e.xp6(1),e.Q6J("ngIf",v.yAxis),e.xp6(1),e.Q6J("ngIf",!v.isSSR),e.xp6(1),e.Q6J("ngIf",v.isSSR))},directives:[Lc,Wo,B2,Ic,f0,i.O5,i.sg],styles:[E4],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})(),Bc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),xh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Eh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Q5=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Yc=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})();Math;let $2=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Ah=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Yc]]}),f})(),$c=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),E0=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts]]}),f})(),Nh=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[ts,$2,Bc]]}),f})(),Hh=(()=>{class f{constructor(){!function Qc(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[ts,Z2,Bc,xh,Eh,Q5,Yc,Ah,$c,$2,E0,Nh]}),f})()},159:(He,j,p)=>{"use strict";p.d(j,{OF:()=>T,uU:()=>D});var e=p(5e3),i=p(9808),u=p(655),b=p(3259);function a(M,A){if(1&M&&e._UZ(0,"canvas",1),2&M){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const y=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class M{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=M.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,k;return(0,u.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const z=w.getContext("2d");z&&z.clearRect(0,0,z.canvas.width,z.canvas.height);const U=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:M.DEFAULT_ERROR_CORRECTION_LEVEL,W=y.test(this.darkColor)?this.darkColor:void 0,ne=y.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ne&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield b.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:U,width:this.width,margin:this.margin,color:{dark:W,light:ne}});const Q=this.centerImageSrc,le=P(this.centerImageWidth,M.DEFAULT_CENTER_IMAGE_SIZE),q=P(this.centerImageHeight,M.DEFAULT_CENTER_IMAGE_SIZE);if(Q&&z){this.centerImage||(this.centerImage=new Image(le,q)),Q!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=Q),le!==this.centerImage.width&&(this.centerImage.width=le),q!==this.centerImage.height&&(this.centerImage.height=q);const ie=this.centerImage;ie.onload=()=>{z.drawImage(ie,w.width/2-le/2,w.height/2-q/2,le,q)}}})}}return M.DEFAULT_ERROR_CORRECTION_LEVEL="M",M.DEFAULT_CENTER_IMAGE_SIZE=40,M.\u0275fac=function(E){return new(E||M)(e.Y36(e.s_b))},M.\u0275dir=e.lG2({type:M,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),M})();function P(M,A){return void 0===M||""===M?A:"string"==typeof M?parseInt(M,10):M}let D=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,k){1&E&&e.YNc(0,a,1,10,"canvas",0),2&E&&e.Q6J("ngIf",k.value)},directives:[i.O5,d],encapsulation:2}),M})(),T=(()=>{class M{}return M.\u0275fac=function(E){return new(E||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[i.ez]]}),M})()},8129:(He,j,p)=>{"use strict";p.d(j,{op:()=>ei,$V:()=>Me,Xd:()=>Rt});var e=p(7579),i=p(4968),u=p(3601),b=p(2722),a=p(5e3),y=p(9808);function d(et){return getComputedStyle(et)}function P(et,Re){for(var qe in Re){var Ze=Re[qe];"number"==typeof Ze&&(Ze+="px"),et.style[qe]=Ze}return et}function D(et){var Re=document.createElement("div");return Re.className=et,Re}var T="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function M(et,Re){if(!T)throw new Error("No element matching method supported");return T.call(et,Re)}function A(et){et.remove?et.remove():et.parentNode&&et.parentNode.removeChild(et)}function E(et,Re){return Array.prototype.filter.call(et.children,function(qe){return M(qe,Re)})}var k_element_thumb=function(et){return"ps__thumb-"+et},k_element_rail=function(et){return"ps__rail-"+et},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(et){return"ps--active-"+et},k_state_scrolling=function(et){return"ps--scrolling-"+et},w={x:null,y:null};function z(et,Re){var qe=et.element.classList,Ze=k_state_scrolling(Re);qe.contains(Ze)?clearTimeout(w[Re]):qe.add(Ze)}function U(et,Re){w[Re]=setTimeout(function(){return et.isAlive&&et.element.classList.remove(k_state_scrolling(Re))},et.settings.scrollingThreshold)}var ne=function(Re){this.element=Re,this.handlers={}},Q={isEmpty:{configurable:!0}};ne.prototype.bind=function(Re,qe){void 0===this.handlers[Re]&&(this.handlers[Re]=[]),this.handlers[Re].push(qe),this.element.addEventListener(Re,qe,!1)},ne.prototype.unbind=function(Re,qe){var Ze=this;this.handlers[Re]=this.handlers[Re].filter(function(we){return!(!qe||we===qe)||(Ze.element.removeEventListener(Re,we,!1),!1)})},ne.prototype.unbindAll=function(){for(var Re in this.handlers)this.unbind(Re)},Q.isEmpty.get=function(){var et=this;return Object.keys(this.handlers).every(function(Re){return 0===et.handlers[Re].length})},Object.defineProperties(ne.prototype,Q);var le=function(){this.eventElements=[]};function q(et){if("function"==typeof window.CustomEvent)return new CustomEvent(et);var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(et,!1,!1,void 0),Re}function ie(et,Re,qe,Ze,we){var Fe;if(void 0===Ze&&(Ze=!0),void 0===we&&(we=!1),"top"===Re)Fe=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Re)throw new Error("A proper axis should be provided");Fe=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function se(et,Re,qe,Ze,we){var Fe=qe[0],rt=qe[1],at=qe[2],yt=qe[3],mi=qe[4],Xt=qe[5];void 0===Ze&&(Ze=!0),void 0===we&&(we=!1);var Jt=et.element;et.reach[yt]=null,Jt[at]<1&&(et.reach[yt]="start"),Jt[at]>et[Fe]-et[rt]-1&&(et.reach[yt]="end"),Re&&(Jt.dispatchEvent(q("ps-scroll-"+yt)),Re<0?Jt.dispatchEvent(q("ps-scroll-"+mi)):Re>0&&Jt.dispatchEvent(q("ps-scroll-"+Xt)),Ze&&function W(et,Re){z(et,Re),U(et,Re)}(et,yt)),et.reach[yt]&&(Re||we)&&Jt.dispatchEvent(q("ps-"+yt+"-reach-"+et.reach[yt]))}(et,qe,Fe,Ze,we)}function J(et){return parseInt(et,10)||0}le.prototype.eventElement=function(Re){var qe=this.eventElements.filter(function(Ze){return Ze.element===Re})[0];return qe||(qe=new ne(Re),this.eventElements.push(qe)),qe},le.prototype.bind=function(Re,qe,Ze){this.eventElement(Re).bind(qe,Ze)},le.prototype.unbind=function(Re,qe,Ze){var we=this.eventElement(Re);we.unbind(qe,Ze),we.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(we),1)},le.prototype.unbindAll=function(){this.eventElements.forEach(function(Re){return Re.unbindAll()}),this.eventElements=[]},le.prototype.once=function(Re,qe,Ze){var we=this.eventElement(Re),Fe=function(rt){we.unbind(qe,Fe),Ze(rt)};we.bind(qe,Fe)};var t={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function r(et){var Re=et.element,qe=Math.floor(Re.scrollTop),Ze=Re.getBoundingClientRect();et.containerWidth=Math.round(Ze.width),et.containerHeight=Math.round(Ze.height),et.contentWidth=Re.scrollWidth,et.contentHeight=Re.scrollHeight,Re.contains(et.scrollbarXRail)||(E(Re,k_element_rail("x")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarXRail)),Re.contains(et.scrollbarYRail)||(E(Re,k_element_rail("y")).forEach(function(we){return A(we)}),Re.appendChild(et.scrollbarYRail)),!et.settings.suppressScrollX&&et.containerWidth+et.settings.scrollXMarginOffset=et.railXWidth-et.scrollbarXWidth&&(et.scrollbarXLeft=et.railXWidth-et.scrollbarXWidth),et.scrollbarYTop>=et.railYHeight-et.scrollbarYHeight&&(et.scrollbarYTop=et.railYHeight-et.scrollbarYHeight),function c(et,Re){var qe={width:Re.railXWidth},Ze=Math.floor(et.scrollTop);qe.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+Re.containerWidth-Re.contentWidth:et.scrollLeft,Re.isScrollbarXUsingBottom?qe.bottom=Re.scrollbarXBottom-Ze:qe.top=Re.scrollbarXTop+Ze,P(Re.scrollbarXRail,qe);var we={top:Ze,height:Re.railYHeight};Re.isScrollbarYUsingRight?we.right=Re.isRtl?Re.contentWidth-(Re.negativeScrollAdjustment+et.scrollLeft)-Re.scrollbarYRight-Re.scrollbarYOuterWidth-9:Re.scrollbarYRight-et.scrollLeft:we.left=Re.isRtl?Re.negativeScrollAdjustment+et.scrollLeft+2*Re.containerWidth-Re.contentWidth-Re.scrollbarYLeft-Re.scrollbarYOuterWidth:Re.scrollbarYLeft+et.scrollLeft,P(Re.scrollbarYRail,we),P(Re.scrollbarX,{left:Re.scrollbarXLeft,width:Re.scrollbarXWidth-Re.railBorderXWidth}),P(Re.scrollbarY,{top:Re.scrollbarYTop,height:Re.scrollbarYHeight-Re.railBorderYWidth})}(Re,et),et.scrollbarXActive?Re.classList.add(k_state_active("x")):(Re.classList.remove(k_state_active("x")),et.scrollbarXWidth=0,et.scrollbarXLeft=0,Re.scrollLeft=!0===et.isRtl?et.contentWidth:0),et.scrollbarYActive?Re.classList.add(k_state_active("y")):(Re.classList.remove(k_state_active("y")),et.scrollbarYHeight=0,et.scrollbarYTop=0,Re.scrollTop=0)}function h(et,Re){return et.settings.minScrollbarLength&&(Re=Math.max(Re,et.settings.minScrollbarLength)),et.settings.maxScrollbarLength&&(Re=Math.min(Re,et.settings.maxScrollbarLength)),Re}function I(et,Re){var qe=Re[0],Ze=Re[1],we=Re[2],Fe=Re[3],rt=Re[4],at=Re[5],yt=Re[6],mi=Re[7],Xt=Re[8],Jt=et.element,qi=null,ui=null,si=null;function en(Gi){Gi.touches&&Gi.touches[0]&&(Gi[we]=Gi.touches[0].pageY),Jt[yt]=qi+si*(Gi[we]-ui),z(et,mi),r(et),Gi.stopPropagation(),Gi.type.startsWith("touch")&&Gi.changedTouches.length>1&&Gi.preventDefault()}function Ui(){U(et,mi),et[Xt].classList.remove(k_state_clicking),et.event.unbind(et.ownerDocument,"mousemove",en)}function Bi(Gi,ct){qi=Jt[yt],ct&&Gi.touches&&(Gi[we]=Gi.touches[0].pageY),ui=Gi[we],si=(et[Ze]-et[qe])/(et[Fe]-et[at]),ct?et.event.bind(et.ownerDocument,"touchmove",en):(et.event.bind(et.ownerDocument,"mousemove",en),et.event.once(et.ownerDocument,"mouseup",Ui),Gi.preventDefault()),et[Xt].classList.add(k_state_clicking),Gi.stopPropagation()}et.event.bind(et[rt],"mousedown",function(Gi){Bi(Gi)}),et.event.bind(et[rt],"touchstart",function(Gi){Bi(Gi,!0)})}var R={"click-rail":function C(et){et.event.bind(et.scrollbarY,"mousedown",function(qe){return qe.stopPropagation()}),et.event.bind(et.scrollbarYRail,"mousedown",function(qe){var Ze=qe.pageY-window.pageYOffset-et.scrollbarYRail.getBoundingClientRect().top;et.element.scrollTop+=(Ze>et.scrollbarYTop?1:-1)*et.containerHeight,r(et),qe.stopPropagation()}),et.event.bind(et.scrollbarX,"mousedown",function(qe){return qe.stopPropagation()}),et.event.bind(et.scrollbarXRail,"mousedown",function(qe){var Ze=qe.pageX-window.pageXOffset-et.scrollbarXRail.getBoundingClientRect().left;et.element.scrollLeft+=(Ze>et.scrollbarXLeft?1:-1)*et.containerWidth,r(et),qe.stopPropagation()})},"drag-thumb":function S(et){I(et,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(et,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function _(et){var Re=et.element;et.event.bind(et.ownerDocument,"keydown",function(Fe){if(!(Fe.isDefaultPrevented&&Fe.isDefaultPrevented()||Fe.defaultPrevented)&&(M(Re,":hover")||M(et.scrollbarX,":focus")||M(et.scrollbarY,":focus"))){var rt=document.activeElement?document.activeElement:et.ownerDocument.activeElement;if(rt){if("IFRAME"===rt.tagName)rt=rt.contentDocument.activeElement;else for(;rt.shadowRoot;)rt=rt.shadowRoot.activeElement;if(function me(et){return M(et,"input,[contenteditable]")||M(et,"select,[contenteditable]")||M(et,"textarea,[contenteditable]")||M(et,"button,[contenteditable]")}(rt))return}var at=0,yt=0;switch(Fe.which){case 37:at=Fe.metaKey?-et.contentWidth:Fe.altKey?-et.containerWidth:-30;break;case 38:yt=Fe.metaKey?et.contentHeight:Fe.altKey?et.containerHeight:30;break;case 39:at=Fe.metaKey?et.contentWidth:Fe.altKey?et.containerWidth:30;break;case 40:yt=Fe.metaKey?-et.contentHeight:Fe.altKey?-et.containerHeight:-30;break;case 32:yt=Fe.shiftKey?et.containerHeight:-et.containerHeight;break;case 33:yt=et.containerHeight;break;case 34:yt=-et.containerHeight;break;case 36:yt=et.contentHeight;break;case 35:yt=-et.contentHeight;break;default:return}et.settings.suppressScrollX&&0!==at||et.settings.suppressScrollY&&0!==yt||(Re.scrollTop-=yt,Re.scrollLeft+=at,r(et),function we(Fe,rt){var at=Math.floor(Re.scrollTop);if(0===Fe){if(!et.scrollbarYActive)return!1;if(0===at&&rt>0||at>=et.contentHeight-et.containerHeight&&rt<0)return!et.settings.wheelPropagation}var yt=Re.scrollLeft;if(0===rt){if(!et.scrollbarXActive)return!1;if(0===yt&&Fe<0||yt>=et.contentWidth-et.containerWidth&&Fe>0)return!et.settings.wheelPropagation}return!0}(at,yt)&&Fe.preventDefault())}})},wheel:function n(et){var Re=et.element;function Fe(rt){var at=function Ze(rt){var at=rt.deltaX,yt=-1*rt.deltaY;return(void 0===at||void 0===yt)&&(at=-1*rt.wheelDeltaX/6,yt=rt.wheelDeltaY/6),rt.deltaMode&&1===rt.deltaMode&&(at*=10,yt*=10),at!=at&&yt!=yt&&(at=0,yt=rt.wheelDelta),rt.shiftKey?[-yt,-at]:[at,yt]}(rt),yt=at[0],mi=at[1];if(!function we(rt,at,yt){if(!t.isWebKit&&Re.querySelector("select:focus"))return!0;if(!Re.contains(rt))return!1;for(var mi=rt;mi&&mi!==Re;){if(mi.classList.contains(k_element_consuming))return!0;var Xt=d(mi);if(yt&&Xt.overflowY.match(/(scroll|auto)/)){var Jt=mi.scrollHeight-mi.clientHeight;if(Jt>0&&(mi.scrollTop>0&&yt<0||mi.scrollTop0))return!0}if(at&&Xt.overflowX.match(/(scroll|auto)/)){var qi=mi.scrollWidth-mi.clientWidth;if(qi>0&&(mi.scrollLeft>0&&at<0||mi.scrollLeft0))return!0}mi=mi.parentNode}return!1}(rt.target,yt,mi)){var Xt=!1;et.settings.useBothWheelAxes?et.scrollbarYActive&&!et.scrollbarXActive?(mi?Re.scrollTop-=mi*et.settings.wheelSpeed:Re.scrollTop+=yt*et.settings.wheelSpeed,Xt=!0):et.scrollbarXActive&&!et.scrollbarYActive&&(yt?Re.scrollLeft+=yt*et.settings.wheelSpeed:Re.scrollLeft-=mi*et.settings.wheelSpeed,Xt=!0):(Re.scrollTop-=mi*et.settings.wheelSpeed,Re.scrollLeft+=yt*et.settings.wheelSpeed),r(et),Xt=Xt||function qe(rt,at){var yt=Math.floor(Re.scrollTop),mi=0===Re.scrollTop,Xt=yt+Re.offsetHeight===Re.scrollHeight,Jt=0===Re.scrollLeft,qi=Re.scrollLeft+Re.offsetWidth===Re.scrollWidth;return!(Math.abs(at)>Math.abs(rt)?mi||Xt:Jt||qi)||!et.settings.wheelPropagation}(yt,mi),Xt&&!rt.ctrlKey&&(rt.stopPropagation(),rt.preventDefault())}}void 0!==window.onwheel?et.event.bind(Re,"wheel",Fe):void 0!==window.onmousewheel&&et.event.bind(Re,"mousewheel",Fe)},touch:function g(et){if(t.supportsTouch||t.supportsIePointer){var Re=et.element,we={},Fe=0,rt={},at=null;t.supportsTouch?(et.event.bind(Re,"touchstart",Xt),et.event.bind(Re,"touchmove",qi),et.event.bind(Re,"touchend",ui)):t.supportsIePointer&&(window.PointerEvent?(et.event.bind(Re,"pointerdown",Xt),et.event.bind(Re,"pointermove",qi),et.event.bind(Re,"pointerup",ui)):window.MSPointerEvent&&(et.event.bind(Re,"MSPointerDown",Xt),et.event.bind(Re,"MSPointerMove",qi),et.event.bind(Re,"MSPointerUp",ui)))}function Ze(si,en){Re.scrollTop-=en,Re.scrollLeft-=si,r(et)}function yt(si){return si.targetTouches?si.targetTouches[0]:si}function mi(si){return!(si.pointerType&&"pen"===si.pointerType&&0===si.buttons||!(si.targetTouches&&1===si.targetTouches.length||si.pointerType&&"mouse"!==si.pointerType&&si.pointerType!==si.MSPOINTER_TYPE_MOUSE))}function Xt(si){if(mi(si)){var en=yt(si);we.pageX=en.pageX,we.pageY=en.pageY,Fe=(new Date).getTime(),null!==at&&clearInterval(at)}}function qi(si){if(mi(si)){var en=yt(si),Ui={pageX:en.pageX,pageY:en.pageY},Bi=Ui.pageX-we.pageX,Gi=Ui.pageY-we.pageY;if(function Jt(si,en,Ui){if(!Re.contains(si))return!1;for(var Bi=si;Bi&&Bi!==Re;){if(Bi.classList.contains(k_element_consuming))return!0;var Gi=d(Bi);if(Ui&&Gi.overflowY.match(/(scroll|auto)/)){var ct=Bi.scrollHeight-Bi.clientHeight;if(ct>0&&(Bi.scrollTop>0&&Ui<0||Bi.scrollTop0))return!0}if(en&&Gi.overflowX.match(/(scroll|auto)/)){var Ft=Bi.scrollWidth-Bi.clientWidth;if(Ft>0&&(Bi.scrollLeft>0&&en<0||Bi.scrollLeft0))return!0}Bi=Bi.parentNode}return!1}(si.target,Bi,Gi))return;Ze(Bi,Gi),we=Ui;var ct=(new Date).getTime(),Ft=ct-Fe;Ft>0&&(rt.x=Bi/Ft,rt.y=Gi/Ft,Fe=ct),function qe(si,en){var Ui=Math.floor(Re.scrollTop),Bi=Re.scrollLeft,Gi=Math.abs(si),ct=Math.abs(en);if(ct>Gi){if(en<0&&Ui===et.contentHeight-et.containerHeight||en>0&&0===Ui)return 0===window.scrollY&&en>0&&t.isChrome}else if(Gi>ct&&(si<0&&Bi===et.contentWidth-et.containerWidth||si>0&&0===Bi))return!0;return!0}(Bi,Gi)&&si.preventDefault()}}function ui(){et.settings.swipeEasing&&(clearInterval(at),at=setInterval(function(){et.isInitialized?clearInterval(at):rt.x||rt.y?Math.abs(rt.x)<.01&&Math.abs(rt.y)<.01?clearInterval(at):et.element?(Ze(30*rt.x,30*rt.y),rt.x*=.8,rt.y*=.8):clearInterval(at):clearInterval(at)},10))}}},H=function(Re,qe){var Ze=this;if(void 0===qe&&(qe={}),"string"==typeof Re&&(Re=document.querySelector(Re)),!Re||!Re.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var we in this.element=Re,Re.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},qe)this.settings[we]=qe[we];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Xt,mi,Fe=function(){return Re.classList.add(k_state_focus)},rt=function(){return Re.classList.remove(k_state_focus)};this.isRtl="rtl"===d(Re).direction,!0===this.isRtl&&Re.classList.add("ps__rtl"),this.isNegativeScroll=(mi=Re.scrollLeft,Re.scrollLeft=-1,Xt=Re.scrollLeft<0,Re.scrollLeft=mi,Xt),this.negativeScrollAdjustment=this.isNegativeScroll?Re.scrollWidth-Re.clientWidth:0,this.event=new le,this.ownerDocument=Re.ownerDocument||document,this.scrollbarXRail=D(k_element_rail("x")),Re.appendChild(this.scrollbarXRail),this.scrollbarX=D(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Fe),this.event.bind(this.scrollbarX,"blur",rt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var at=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(at.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=J(at.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=J(at.borderLeftWidth)+J(at.borderRightWidth),P(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=J(at.marginLeft)+J(at.marginRight),P(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=D(k_element_rail("y")),Re.appendChild(this.scrollbarYRail),this.scrollbarY=D(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Fe),this.event.bind(this.scrollbarY,"blur",rt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var yt=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(yt.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=J(yt.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function x(et){var Re=d(et);return J(Re.width)+J(Re.paddingLeft)+J(Re.paddingRight)+J(Re.borderLeftWidth)+J(Re.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=J(yt.borderTopWidth)+J(yt.borderBottomWidth),P(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=J(yt.marginTop)+J(yt.marginBottom),P(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Re.scrollLeft<=0?"start":Re.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Re.scrollTop<=0?"start":Re.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return R[mi](Ze)}),this.lastScrollTop=Math.floor(Re.scrollTop),this.lastScrollLeft=Re.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return Ze.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,P(this.scrollbarXRail,{display:"block"}),P(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=J(d(this.scrollbarXRail).marginLeft)+J(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=J(d(this.scrollbarYRail).marginTop)+J(d(this.scrollbarYRail).marginBottom),P(this.scrollbarXRail,{display:"none"}),P(this.scrollbarYRail,{display:"none"}),r(this),ie(this,"top",0,!1,!0),ie(this,"left",0,!1,!0),P(this.scrollbarXRail,{display:""}),P(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(Re){!this.isAlive||(r(this),ie(this,"top",this.element.scrollTop-this.lastScrollTop),ie(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),A(this.scrollbarX),A(this.scrollbarY),A(this.scrollbarXRail),A(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Re){return!Re.match(/^ps([-_].+|)$/)}).join(" ")};const $=H;var fe=function(){if("undefined"!=typeof Map)return Map;function et(Re,qe){var Ze=-1;return Re.some(function(we,Fe){return we[0]===qe&&(Ze=Fe,!0)}),Ze}return function(){function Re(){this.__entries__=[]}return Object.defineProperty(Re.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Re.prototype.get=function(qe){var Ze=et(this.__entries__,qe),we=this.__entries__[Ze];return we&&we[1]},Re.prototype.set=function(qe,Ze){var we=et(this.__entries__,qe);~we?this.__entries__[we][1]=Ze:this.__entries__.push([qe,Ze])},Re.prototype.delete=function(qe){var Ze=this.__entries__,we=et(Ze,qe);~we&&Ze.splice(we,1)},Re.prototype.has=function(qe){return!!~et(this.__entries__,qe)},Re.prototype.clear=function(){this.__entries__.splice(0)},Re.prototype.forEach=function(qe,Ze){void 0===Ze&&(Ze=null);for(var we=0,Fe=this.__entries__;we0},et.prototype.connect_=function(){!ye||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},et.prototype.disconnect_=function(){!ye||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},et.prototype.onTransitionEnd_=function(Re){var qe=Re.propertyName,Ze=void 0===qe?"":qe;Z.some(function(Fe){return!!~Ze.indexOf(Fe)})&&this.refresh()},et.getInstance=function(){return this.instance_||(this.instance_=new et),this.instance_},et.instance_=null,et}(),Ie=function(et,Re){for(var qe=0,Ze=Object.keys(Re);qe0},et}(),di="undefined"!=typeof WeakMap?new WeakMap:new fe,vt=function et(Re){if(!(this instanceof et))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var qe=ot.getInstance(),Ze=new Gt(Re,qe,this);di.set(this,Ze)};["observe","unobserve","disconnect"].forEach(function(et){vt.prototype[et]=function(){var Re;return(Re=di.get(this))[et].apply(Re,arguments)}});const gt=void 0!==ke.ResizeObserver?ke.ResizeObserver:vt,ei=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class Zt{constructor(Re,qe,Ze,we){this.x=Re,this.y=qe,this.w=Ze,this.h=we}}class Pe{constructor(Re,qe){this.x=Re,this.y=qe}}const De=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class oe{constructor(Re={}){this.assign(Re)}assign(Re={}){for(const qe in Re)this[qe]=Re[qe]}}let Me=(()=>{class et{constructor(qe,Ze,we,Fe,rt){this.zone=qe,this.differs=Ze,this.elementRef=we,this.platformId=Fe,this.defaults=rt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new a.vpe,this.psScrollX=new a.vpe,this.psScrollUp=new a.vpe,this.psScrollDown=new a.vpe,this.psScrollLeft=new a.vpe,this.psScrollRight=new a.vpe,this.psYReachEnd=new a.vpe,this.psYReachStart=new a.vpe,this.psXReachEnd=new a.vpe,this.psXReachStart=new a.vpe}ngOnInit(){if(!this.disabled&&(0,y.NF)(this.platformId)){const qe=new oe(this.defaults);qe.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new $(this.elementRef.nativeElement,qe)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new gt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{De.forEach(Ze=>{const we=Ze.replace(/([A-Z])/g,Fe=>`-${Fe.toLowerCase()}`);(0,i.R)(this.elementRef.nativeElement,we).pipe((0,u.e)(20),(0,b.R)(this.ngDestroy)).subscribe(Fe=>{this[Ze].emit(Fe)})})})}}ngOnDestroy(){(0,y.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,y.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(qe){qe.disabled&&!qe.disabled.isFirstChange()&&(0,y.NF)(this.platformId)&&qe.disabled.currentValue!==qe.disabled.previousValue&&(!0===qe.disabled.currentValue?this.ngOnDestroy():!1===qe.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(qe){}},0))}geometry(qe="scroll"){return new Zt(this.elementRef.nativeElement[qe+"Left"],this.elementRef.nativeElement[qe+"Top"],this.elementRef.nativeElement[qe+"Width"],this.elementRef.nativeElement[qe+"Height"])}position(qe=!1){return!qe&&this.instance?new Pe(this.instance.reach.x||0,this.instance.reach.y||0):new Pe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(qe="any"){const Ze=this.elementRef.nativeElement;return"any"===qe?Ze.classList.contains("ps--active-x")||Ze.classList.contains("ps--active-y"):"both"===qe?Ze.classList.contains("ps--active-x")&&Ze.classList.contains("ps--active-y"):Ze.classList.contains("ps--active-"+qe)}scrollTo(qe,Ze,we){this.disabled||(null==Ze&&null==we?this.animateScrolling("scrollTop",qe,we):(null!=qe&&this.animateScrolling("scrollLeft",qe,we),null!=Ze&&this.animateScrolling("scrollTop",Ze,we)))}scrollToX(qe,Ze){this.animateScrolling("scrollLeft",qe,Ze)}scrollToY(qe,Ze){this.animateScrolling("scrollTop",qe,Ze)}scrollToTop(qe,Ze){this.animateScrolling("scrollTop",qe||0,Ze)}scrollToLeft(qe,Ze){this.animateScrolling("scrollLeft",qe||0,Ze)}scrollToRight(qe,Ze){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(qe||0),Ze)}scrollToBottom(qe,Ze){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(qe||0),Ze)}scrollToElement(qe,Ze,we){if("string"==typeof qe&&(qe=this.elementRef.nativeElement.querySelector(qe)),qe){const Fe=qe.getBoundingClientRect(),rt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Fe.left-rt.left+this.elementRef.nativeElement.scrollLeft+(Ze||0),we),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Fe.top-rt.top+this.elementRef.nativeElement.scrollTop+(Ze||0),we)}}animateScrolling(qe,Ze,we){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),we&&"undefined"!=typeof window){if(Ze!==this.elementRef.nativeElement[qe]){let Fe=0,rt=0,at=performance.now(),yt=this.elementRef.nativeElement[qe];const mi=(yt-Ze)/2,Xt=Jt=>{rt+=Math.PI/(we/(Jt-at)),Fe=Math.round(Ze+mi+mi*Math.cos(rt)),this.elementRef.nativeElement[qe]===yt&&(rt>=Math.PI?this.animateScrolling(qe,Ze,0):(this.elementRef.nativeElement[qe]=Fe,yt=this.elementRef.nativeElement[qe],at=Jt,this.animation=window.requestAnimationFrame(Xt)))};window.requestAnimationFrame(Xt)}}else this.elementRef.nativeElement[qe]=Ze}}return et.\u0275fac=function(qe){return new(qe||et)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(ei,8))},et.\u0275dir=a.lG2({type:et,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.TTD]}),et})(),Rt=(()=>{class et{}return et.\u0275fac=function(qe){return new(qe||et)},et.\u0275mod=a.oAB({type:et}),et.\u0275inj=a.cJS({imports:[[y.ez],y.ez]}),et})()},4946:He=>{"use strict";He.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},5207:He=>{"use strict";He.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:He=>{"use strict";He.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},9799:He=>{"use strict";He.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:He=>{"use strict";He.exports={i8:"6.5.4"}},2562:He=>{"use strict";He.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},He=>{He(He.s=5901)}]); \ No newline at end of file diff --git a/frontend/runtime.6449ae8affb0dea2.js b/frontend/runtime.4b216667d6a60356.js similarity index 62% rename from frontend/runtime.6449ae8affb0dea2.js rename to frontend/runtime.4b216667d6a60356.js index 53bd316d..94e5a093 100644 --- a/frontend/runtime.6449ae8affb0dea2.js +++ b/frontend/runtime.4b216667d6a60356.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{253:"256a01ccdc95a5d7",508:"06f7dec065381b97",515:"da134be35cc26574",924:"e98936d5bf0dd5da"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var d=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((u,c)=>i=e[f]=[u,c]);o.push(i[2]=a);var s=r.p+r.u(f),d=new Error;r.l(s,u=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;d.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",d.name="ChunkLoadError",d.type=c,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,l,[i,a,s]=o,u=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(s)var c=s(r)}for(f&&f(o);u{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{258:"525782ba4bbc257e",508:"06f7dec065381b97",515:"73bff63b24de0558",706:"911e43a7ac305c95"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(f&&f(o);l { }; export const allowSwapRequests = (req, res, next) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Allowing/Denying Swap Requests..' }); + logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Allowing/Not Allowing Swap Requests..' }); options = common.getOptions(req); if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } options.url = req.session.selectedNode.ln_server_url + '/v1/peerswap/allowSwapRequests' + req.params.isAllowed; request(options).then((body) => { - logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Swap Request Allowed/Denied', data: body }); + logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Peerswap', msg: 'Swap Request Allowed/Not Allowed', data: body }); res.status(200).json(body); }).catch((errRes) => { - const err = common.handleError(errRes, 'Peerswap', 'Allow/Deny Swap Request Error', req.session.selectedNode); + const err = common.handleError(errRes, 'Peerswap', 'Allow/Not Allow Swap Request Error', req.session.selectedNode); return res.status(err.statusCode).json({ message: err.message, error: err.error }); }); }; diff --git a/src/app/cln/cln.module.ts b/src/app/cln/cln.module.ts index 6dac2499..29ce455b 100644 --- a/src/app/cln/cln.module.ts +++ b/src/app/cln/cln.module.ts @@ -61,9 +61,7 @@ import { CLNOpenLiquidityChannelComponent } from './liquidity-ads/open-liquidity import { LNServicesComponent } from './ln-services/ln-services.component'; import { PeerswapComponent } from './ln-services/peerswap/peerswap.component'; import { SwapPeersComponent } from './ln-services/peerswap/swap-peers/swap-peers.component'; -import { PeerswapsCancelledComponent } from './ln-services/peerswap/swaps-cancelled/swaps-cancelled.component'; -import { PeerswapsInComponent } from './ln-services/peerswap/swaps-in/swaps-in.component'; -import { PeerswapsOutComponent } from './ln-services/peerswap/swaps-out/swaps-out.component'; +import { PeerswapsListComponent } from './ln-services/peerswap/swaps-list/swaps-list.component'; import { CLNSwapOutModalComponent } from './ln-services/peerswap/swap-out-modal/swap-out-modal.component'; import { CLNSwapInModalComponent } from './ln-services/peerswap/swap-in-modal/swap-in-modal.component'; @@ -133,9 +131,7 @@ import { CLNUnlockedGuard } from '../shared/services/auth.guard'; LNServicesComponent, PeerswapComponent, SwapPeersComponent, - PeerswapsCancelledComponent, - PeerswapsInComponent, - PeerswapsOutComponent, + PeerswapsListComponent, CLNSwapOutModalComponent, CLNSwapInModalComponent ], diff --git a/src/app/cln/cln.routing.ts b/src/app/cln/cln.routing.ts index f69d8d98..a5f28678 100644 --- a/src/app/cln/cln.routing.ts +++ b/src/app/cln/cln.routing.ts @@ -38,9 +38,7 @@ import { CLNLiquidityAdsListComponent } from './liquidity-ads/liquidity-ads-list import { LNServicesComponent } from './ln-services/ln-services.component'; import { PeerswapComponent } from './ln-services/peerswap/peerswap.component'; import { SwapPeersComponent } from './ln-services/peerswap/swap-peers/swap-peers.component'; -import { PeerswapsCancelledComponent } from './ln-services/peerswap/swaps-cancelled/swaps-cancelled.component'; -import { PeerswapsInComponent } from './ln-services/peerswap/swaps-in/swaps-in.component'; -import { PeerswapsOutComponent } from './ln-services/peerswap/swaps-out/swaps-out.component'; +import { PeerswapsListComponent } from './ln-services/peerswap/swaps-list/swaps-list.component'; export const ClnRoutes: Routes = [ { @@ -113,11 +111,11 @@ export const ClnRoutes: Routes = [ path: 'services', component: LNServicesComponent, canActivate: [CLNUnlockedGuard], children: [ { path: 'peerswap', component: PeerswapComponent, canActivate: [CLNUnlockedGuard], children: [ - { path: '', pathMatch: 'full', redirectTo: 'peers' }, - { path: 'peers', component: SwapPeersComponent, canActivate: [CLNUnlockedGuard] }, - { path: 'psout', component: PeerswapsOutComponent, canActivate: [CLNUnlockedGuard] }, - { path: 'psin', component: PeerswapsInComponent, canActivate: [CLNUnlockedGuard] }, - { path: 'pscancelled', component: PeerswapsCancelledComponent, canActivate: [CLNUnlockedGuard] } + { path: '', pathMatch: 'full', redirectTo: 'prs' }, + { path: 'prs', component: SwapPeersComponent, canActivate: [CLNUnlockedGuard] }, + { path: 'psout', component: PeerswapsListComponent, canActivate: [CLNUnlockedGuard] }, + { path: 'psin', component: PeerswapsListComponent, canActivate: [CLNUnlockedGuard] }, + { path: 'pscanceled', component: PeerswapsListComponent, canActivate: [CLNUnlockedGuard] } ] } ] diff --git a/src/app/cln/ln-services/peerswap/peerswap.component.ts b/src/app/cln/ln-services/peerswap/peerswap.component.ts index 8edbf64d..018105ff 100755 --- a/src/app/cln/ln-services/peerswap/peerswap.component.ts +++ b/src/app/cln/ln-services/peerswap/peerswap.component.ts @@ -4,7 +4,6 @@ import { Subject } from 'rxjs'; import { takeUntil, filter } from 'rxjs/operators'; import { faHandshake } from '@fortawesome/free-solid-svg-icons'; - @Component({ selector: 'rtl-peerswap', templateUrl: './peerswap.component.html', @@ -13,7 +12,7 @@ import { faHandshake } from '@fortawesome/free-solid-svg-icons'; export class PeerswapComponent implements OnInit, OnDestroy { public faHandshake = faHandshake; - public links = [{ link: 'peers', name: 'Peers' }, { link: 'psout', name: 'Swap Out' }, { link: 'psin', name: 'Swap In' }, { link: 'pscancelled', name: 'Swap Cancelled' }]; + public links = [{ link: 'prs', name: 'Peers' }, { link: 'psout', name: 'Swap Out' }, { link: 'psin', name: 'Swap In' }, { link: 'pscanceled', name: 'Swap Canceled' }]; public activeTab = this.links[0]; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; diff --git a/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.html b/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.html index f44cf249..62ad15e2 100644 --- a/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.html +++ b/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.html @@ -1,36 +1,37 @@
-
- -
- Initiate a Swapin -
- -
- -
-

Swapin with {{sPeer?.alias}}

- - - - - - Sats - Amount is required. - Amount must be less than or equal to {{sPeer.remote_balance}}. - Remaining Local: {{sPeer.remote_balance - ((swapAmount) ? swapAmount : 0) | number}}
{{swapAmountHint}}
-
-
- - {{swapInError}} -
-
- - -
-
-
-
+
+ +
+ Initiate a Swapin +
+ +
+ +
+

Swapin with {{sPeer?.alias}}

+ + + + + + Sats + Amount is required. + Amount must be greater than or equal to 100,000. + Amount must be less than or equal to {{sPeer.remote_balance | number}}. + Amount should be between 100,000 and {{sPeer.remote_balance | number}}
{{swapAmountHint}}
+
+
+ + {{swapInError}} +
+
+ + +
+
+
+
diff --git a/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.ts b/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.ts index 66f45919..e25b5aa3 100644 --- a/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.ts +++ b/src/app/cln/ln-services/peerswap/swap-in-modal/swap-in-modal.component.ts @@ -57,7 +57,7 @@ export class CLNSwapInModalComponent implements OnInit, OnDestroy { onExecuteSwapin(): boolean | void { this.swapInError = ''; if (!this.swapAmount || !this.sPeer || !this.sPeer.short_channel_id) { return true; } - this.store.dispatch(swapIn({ payload: { amountSats: this.swapAmount, shortChannelId: this.sPeer?.short_channel_id, asset: 'btc' } })); + this.store.dispatch(swapIn({ payload: { alias: this.sPeer.alias || '', amountSats: this.swapAmount, shortChannelId: this.sPeer?.short_channel_id, asset: 'btc' } })); } resetData() { diff --git a/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.html b/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.html index 80b9dfd6..bcb2cf36 100644 --- a/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.html +++ b/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.html @@ -1,36 +1,37 @@
-
- -
- Initiate a Swapout -
- -
- -
-

Swapout with {{sPeer?.alias}}

- - - - - - Sats - Amount is required. - Amount must be less than or equal to {{sPeer.local_balance}}. - Remaining Local: {{sPeer.local_balance - ((swapAmount) ? swapAmount : 0) | number}}
{{swapAmountHint}}
-
-
- - {{swapOutError}} -
-
- - -
-
-
-
+
+ +
+ Initiate a Swapout +
+ +
+ +
+

Swapout with {{sPeer?.alias}}

+ + + + + + Sats + Amount is required. + Amount must be greater than or equal to 100,000. + Amount must be less than or equal to {{sPeer.local_balance | number}}. + Amount should be between 100,000 and {{sPeer.local_balance | number}}
{{swapAmountHint}}
+
+
+ + {{swapOutError}} +
+
+ + +
+
+
+
diff --git a/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.ts b/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.ts index 41b42096..47794ca0 100644 --- a/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.ts +++ b/src/app/cln/ln-services/peerswap/swap-out-modal/swap-out-modal.component.ts @@ -57,7 +57,7 @@ export class CLNSwapOutModalComponent implements OnInit, OnDestroy { onExecuteSwapout(): boolean | void { this.swapOutError = ''; if (!this.swapAmount || !this.sPeer || !this.sPeer.short_channel_id) { return true; } - this.store.dispatch(swapOut({ payload: { amountSats: this.swapAmount, shortChannelId: this.sPeer?.short_channel_id, asset: 'btc' } })); + this.store.dispatch(swapOut({ payload: { alias: this.sPeer.alias || '', amountSats: this.swapAmount, shortChannelId: this.sPeer?.short_channel_id, asset: 'btc' } })); } resetData() { diff --git a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.html b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.html index e1d84418..4a00c55e 100755 --- a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.html +++ b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.html @@ -22,17 +22,9 @@ Node Alias {{sPeer?.alias}} - - Node ID - - - {{sPeer?.nodeid}} - - - Swaps Allowed - {{sPeer?.swaps_allowed ? 'Allowed' : 'Denied'}} + {{sPeer?.swaps_allowed ? 'Yes' : 'No'}} Local Balance (Sats) diff --git a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.scss b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.scss index 4d913f70..0aaa7fa6 100755 --- a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.scss +++ b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.scss @@ -1,11 +1,3 @@ -.mat-column-nodeid { - flex: 0 0 20%; - width: 20%; - & .ellipsis-parent { - display: flex; - } -} - .mat-column-actions { min-height: 4.8rem; } \ No newline at end of file diff --git a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.ts b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.ts index 7bff0327..cec9d174 100755 --- a/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.ts +++ b/src/app/cln/ln-services/peerswap/swap-peers/swap-peers.component.ts @@ -1,6 +1,5 @@ import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; -import { DatePipe } from '@angular/common'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { Store } from '@ngrx/store'; @@ -50,7 +49,7 @@ export class SwapPeersComponent implements OnInit, OnDestroy { public apiCallStatusEnum = APICallStatusEnum; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private datePipe: DatePipe, private router: Router) { + constructor(private logger: LoggerService, private commonService: CommonService, private store: Store) { this.screenSize = this.commonService.getScreenSize(); if (this.screenSize === ScreenSizeEnum.XS) { this.flgSticky = false; @@ -63,13 +62,11 @@ export class SwapPeersComponent implements OnInit, OnDestroy { this.displayedColumns = ['short_channel_id', 'alias', 'swaps_allowed', 'local_balance', 'remote_balance', 'actions']; } else { this.flgSticky = true; - this.displayedColumns = ['short_channel_id', 'alias', 'nodeid', 'swaps_allowed', 'local_balance', 'remote_balance', 'actions']; + this.displayedColumns = ['short_channel_id', 'alias', 'swaps_allowed', 'local_balance', 'remote_balance', 'actions']; } } ngOnInit() { - this.router.routeReuseStrategy.shouldReuseRoute = () => false; - this.router.onSameUrlNavigation = 'reload'; this.store.dispatch(fetchSwapPeers()); this.store.select(swapPeers).pipe(takeUntil(this.unSubs[0])). subscribe((spSeletor: { totalSwapPeers: number, swapPeers: SwapPeerChannelsFlattened[], apiCallStatus: ApiCallStatusPayload }) => { @@ -88,7 +85,6 @@ export class SwapPeersComponent implements OnInit, OnDestroy { } onSwapPeerClick(selSPeer: SwapPeerChannelsFlattened) { - this.logger.warn(selSPeer); const reorderedSPeer = [ [{ key: 'nodeid', value: selSPeer.nodeid, title: 'Node Id', width: 100, type: DataTypeEnum.STRING }], [{ key: 'alias', value: selSPeer.alias, title: 'Alias', width: 50, type: DataTypeEnum.STRING }, @@ -96,15 +92,15 @@ export class SwapPeersComponent implements OnInit, OnDestroy { [{ key: 'local_balance', value: selSPeer.local_balance, title: 'Local Balance (Sats)', width: 50, type: DataTypeEnum.NUMBER }, { key: 'remote_balance', value: selSPeer.remote_balance, title: 'Remote Balance (Sats)', width: 50, type: DataTypeEnum.NUMBER }], [{ key: 'total_fee_paid', value: selSPeer.total_fee_paid, title: 'Total Fee Paid (Sats)', width: 40, type: DataTypeEnum.NUMBER }, - { key: 'swaps_allowed', value: selSPeer.swaps_allowed ? 'Allowed' : 'Denied', title: 'Swaps Allowed', width: 30, type: DataTypeEnum.STRING }, - { key: 'total_channels', value: selSPeer.channels?.length, title: 'Channels Opened', width: 30, type: DataTypeEnum.NUMBER }], + { key: 'swaps_allowed', value: selSPeer.swaps_allowed ? 'Yes' : 'No', title: 'Swaps Allowed', width: 30, type: DataTypeEnum.STRING }, + { key: 'total_channels', value: selSPeer.channels?.length, title: 'Channels With Peer', width: 30, type: DataTypeEnum.NUMBER }], [{ key: 'sent_total_swaps_out', value: selSPeer.sent?.total_swaps_out, title: 'Swap Out Sent', width: 25, type: DataTypeEnum.NUMBER }, { key: 'sent_total_swaps_in', value: selSPeer.sent?.total_swaps_in, title: 'Swap In Sent', width: 25, type: DataTypeEnum.NUMBER }, { key: 'sent_total_sats_swapped_out', value: selSPeer.sent?.total_sats_swapped_out, title: 'Swapped Out Sent (Sats)', width: 25, type: DataTypeEnum.NUMBER }, { key: 'sent_total_sats_swapped_in', value: selSPeer.sent?.total_sats_swapped_in, title: 'Swapped In Sent (Sats)', width: 25, type: DataTypeEnum.NUMBER }], [{ key: 'received_total_swaps_out', value: selSPeer.received?.total_swaps_out, title: 'Swap Out Received', width: 25, type: DataTypeEnum.NUMBER }, { key: 'received_total_swaps_in', value: selSPeer.received?.total_swaps_in, title: 'Swap In Received', width: 25, type: DataTypeEnum.NUMBER }, - { key: 'received_total_sats_swapped_out', value: selSPeer.received?.total_sats_swapped_out, title: 'Swapped Out Received(Sats)', width: 25, type: DataTypeEnum.NUMBER }, + { key: 'received_total_sats_swapped_out', value: selSPeer.received?.total_sats_swapped_out, title: 'Swapped Out Received (Sats)', width: 25, type: DataTypeEnum.NUMBER }, { key: 'received_total_sats_swapped_in', value: selSPeer.received?.total_sats_swapped_in, title: 'Swapped In Received (Sats)', width: 25, type: DataTypeEnum.NUMBER }] ]; this.store.dispatch(openAlert({ @@ -148,7 +144,7 @@ export class SwapPeersComponent implements OnInit, OnDestroy { const newSPeer = (sPeer.nodeid ? sPeer.nodeid : '') + (sPeer.alias ? sPeer.alias.toLowerCase() : '') + - (sPeer.swaps_allowed ? 'allowed' : 'denied') + + (sPeer.swaps_allowed ? 'yes' : 'no') + (sPeer.short_channel_id ? sPeer.short_channel_id : '') + (sPeer.local_balance ? sPeer.local_balance : '') + (sPeer.remote_balance ? sPeer.remote_balance : ''); diff --git a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.html b/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.html deleted file mode 100755 index 265d51fd..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.html +++ /dev/null @@ -1 +0,0 @@ -

Peerswaps Cancelled

\ No newline at end of file diff --git a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.scss b/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.scss deleted file mode 100755 index e69de29b..00000000 diff --git a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.spec.ts b/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.spec.ts deleted file mode 100755 index 8dedaab8..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.spec.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; -import { SharedModule } from '../../../../shared/shared.module'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { PeerswapsCancelledComponent } from './swaps-cancelled.component'; -import { mockLoggerService } from '../../../../shared/test-helpers/mock-services'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -describe('PeerswapsCancelledComponent', () => { - let component: PeerswapsCancelledComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PeerswapsCancelledComponent], - imports: [ - BrowserAnimationsModule, - SharedModule - ], - providers: [ - { provide: LoggerService, useClass: mockLoggerService } - ] - }). - compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(PeerswapsCancelledComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); - - afterEach(() => { - TestBed.resetTestingModule(); - }); -}); diff --git a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.ts b/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.ts deleted file mode 100755 index d7aefec7..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-cancelled/swaps-cancelled.component.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; -import { Subject } from 'rxjs'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -@Component({ - selector: 'rtl-peerswap-cancelled', - templateUrl: './swaps-cancelled.component.html', - styleUrls: ['./swaps-cancelled.component.scss'] -}) -export class PeerswapsCancelledComponent implements OnInit, OnDestroy { - - private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - - constructor(private logger: LoggerService) {} - - ngOnInit() { - this.logger.info('Peerswap Out'); - } - - ngOnDestroy() { - this.unSubs.forEach((completeSub) => { - completeSub.next(null); - completeSub.complete(); - }); - } - -} diff --git a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.html b/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.html deleted file mode 100755 index b5db1428..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.html +++ /dev/null @@ -1 +0,0 @@ -

Peerswaps In

\ No newline at end of file diff --git a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.scss b/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.scss deleted file mode 100755 index e69de29b..00000000 diff --git a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.spec.ts b/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.spec.ts deleted file mode 100755 index ed628676..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.spec.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; -import { SharedModule } from '../../../../shared/shared.module'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { PeerswapsInComponent } from './swaps-in.component'; -import { mockLoggerService } from '../../../../shared/test-helpers/mock-services'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -describe('PeerswapsInComponent', () => { - let component: PeerswapsInComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PeerswapsInComponent], - imports: [ - BrowserAnimationsModule, - SharedModule - ], - providers: [ - { provide: LoggerService, useClass: mockLoggerService } - ] - }). - compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(PeerswapsInComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); - - afterEach(() => { - TestBed.resetTestingModule(); - }); -}); diff --git a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.ts b/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.ts deleted file mode 100755 index ad9a92d0..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-in/swaps-in.component.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; -import { Subject } from 'rxjs'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -@Component({ - selector: 'rtl-peer-swaps-in', - templateUrl: './swaps-in.component.html', - styleUrls: ['./swaps-in.component.scss'] -}) -export class PeerswapsInComponent implements OnInit, OnDestroy { - - private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - - constructor(private logger: LoggerService) {} - - ngOnInit() { - this.logger.info('Peerswap Out'); - } - - ngOnDestroy() { - this.unSubs.forEach((completeSub) => { - completeSub.next(null); - completeSub.complete(); - }); - } - -} diff --git a/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.html b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.html new file mode 100755 index 00000000..2408f822 --- /dev/null +++ b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.html @@ -0,0 +1,100 @@ +
+
+
+ + {{selSwapList === swapLists[0] ? 'Swapouts' : selSwapList === swapLists[1] ? 'Swapins' : 'Canceled Swaps'}} +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Swap Id + + + + + {{swap?.id}} + + + Node Alias{{swap?.alias}}Short Channel ID{{swap?.short_channel_id}}Created At + {{swap?.created_at | date:'dd/MMM/y HH:mm'}} + State{{swap?.state | swapState}}Amount (Sats){{swap?.amount | number }} + Cancel Message{{swap?.cancel_message}} +
+ + + Download CSV + +
+
+ +
+ + + View Info + Refresh + +
+
+

+ No swap available.

+

+ Getting swaps...

+

+ {{errorMessage}}

+
+
+ +
diff --git a/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.scss b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.scss new file mode 100755 index 00000000..611eb6be --- /dev/null +++ b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.scss @@ -0,0 +1,12 @@ +.mat-column-id { + flex: 0 0 20%; + width: 20%; + + & .ellipsis-parent { + display: flex; + } +} + +.mat-column-actions { + min-height: 4.8rem; +} \ No newline at end of file diff --git a/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.spec.ts b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.spec.ts new file mode 100755 index 00000000..57658f71 --- /dev/null +++ b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.spec.ts @@ -0,0 +1,55 @@ +import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { RouterTestingModule } from '@angular/router/testing'; +import { EffectsModule } from '@ngrx/effects'; +import { StoreModule } from '@ngrx/store'; +import { CommonService } from '../../../../shared/services/common.service'; +import { mockCLEffects, mockLoggerService, mockECLEffects, mockLNDEffects, mockRTLEffects, mockDataService } from '../../../../shared/test-helpers/mock-services'; +import { SharedModule } from '../../../../shared/shared.module'; + +import { RootReducer } from '../../../../store/rtl.reducers'; +import { LNDReducer } from '../../../../lnd/store/lnd.reducers'; +import { CLNReducer } from '../../../../cln/store/cln.reducers'; +import { ECLReducer } from '../../../../eclair/store/ecl.reducers'; +import { DataService } from '../../../../shared/services/data.service'; +import { PeerswapsListComponent } from './swaps-list.component'; +import { LoggerService } from '../../../../shared/services/logger.service'; +import { Router } from '@angular/router'; + +describe('PeerswapsListComponent', () => { + let component: PeerswapsListComponent; + let fixture: ComponentFixture; + // private commonService: CommonService, private store: Store, private router: Router + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [PeerswapsListComponent], + imports: [ + BrowserAnimationsModule, + SharedModule, + RouterTestingModule, + StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer }), + EffectsModule.forRoot([mockRTLEffects, mockLNDEffects, mockCLEffects, mockECLEffects]) + ], + providers: [ + CommonService, + { provide: LoggerService, useClass: mockLoggerService }, + { provide: DataService, useClass: mockDataService } + ] + }). + compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(PeerswapsListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); + + afterEach(() => { + TestBed.resetTestingModule(); + }); +}); diff --git a/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.ts b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.ts new file mode 100755 index 00000000..fe56be50 --- /dev/null +++ b/src/app/cln/ln-services/peerswap/swaps-list/swaps-list.component.ts @@ -0,0 +1,225 @@ +import { Component, OnInit, OnDestroy, ViewChild, AfterViewInit } from '@angular/core'; +import { DatePipe, TitleCasePipe } from '@angular/common'; +import { Router } from '@angular/router'; +import { Subject } from 'rxjs'; +import { takeUntil } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; +import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator'; +import { MatSort } from '@angular/material/sort'; +import { MatTableDataSource } from '@angular/material/table'; +import { faArrowRightFromBracket, faArrowRightToBracket, faPersonArrowDownToLine, faPersonArrowUpFromLine, faPersonCircleXmark } from '@fortawesome/free-solid-svg-icons'; + +import { Swap } from '../../../../shared/models/clnModels'; +import { PAGE_SIZE, PAGE_SIZE_OPTIONS, getPaginatorLabel, ScreenSizeEnum, APICallStatusEnum, DataTypeEnum, AlertTypeEnum, PeerswapRoles, SwapTypeEnum } from '../../../../shared/services/consts-enums-functions'; +import { ApiCallStatusPayload } from '../../../../shared/models/apiCallsPayload'; +import { LoggerService } from '../../../../shared/services/logger.service'; +import { CommonService } from '../../../../shared/services/common.service'; + +import { RTLState } from '../../../../store/rtl.state'; +import { openAlert } from '../../../../store/rtl.actions'; +import { fetchSwaps, getSwap } from '../../../store/cln.actions'; +import { swaps } from '../../../store/cln.selector'; +import { SwapStatePipe } from '../../../../shared/pipes/app.pipe'; + +@Component({ + selector: 'rtl-peer-swaps-list', + templateUrl: './swaps-list.component.html', + styleUrls: ['./swaps-list.component.scss'], + providers: [ + { provide: MatPaginatorIntl, useValue: getPaginatorLabel('Swaps') } + ] +}) +export class PeerswapsListComponent implements OnInit, AfterViewInit, OnDestroy { + + @ViewChild(MatSort, { static: false }) sort: MatSort | undefined; + @ViewChild(MatPaginator, { static: false }) paginator: MatPaginator | undefined; + public faPersonArrowDownToLine = faPersonArrowDownToLine; + public faPersonArrowUpFromLine = faPersonArrowUpFromLine; + public faPersonCircleXmark = faPersonCircleXmark; + public faArrowRightFromBracket = faArrowRightFromBracket; + public faArrowRightToBracket = faArrowRightToBracket; + public displayedColumns: any[] = []; + public allSwapsData: any = null; + public swapsData: Swap[] = []; + public swaps: any; + public flgSticky = false; + public pageSize = PAGE_SIZE; + public pageSizeOptions = PAGE_SIZE_OPTIONS; + public screenSize = ''; + public screenSizeEnum = ScreenSizeEnum; + public errorMessage = ''; + public selFilter = ''; + public swapLists = ['psout', 'psin', 'pscanceled']; + public selSwapList = this.swapLists[0]; + public peerswapRoles = PeerswapRoles; + public apiCallStatus: ApiCallStatusPayload | null = null; + public apiCallStatusEnum = APICallStatusEnum; + private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; + + constructor(private logger: LoggerService, private commonService: CommonService, private store: Store, private datePipe: DatePipe, private router: Router, private swapStatePipe: SwapStatePipe, private titleCasePipe: TitleCasePipe) { + this.screenSize = this.commonService.getScreenSize(); + } + + ngOnInit() { + this.router.routeReuseStrategy.shouldReuseRoute = () => false; + this.router.onSameUrlNavigation = 'reload'; + this.selSwapList = this.router.url.substring(this.router.url.lastIndexOf('/') + 1); + this.store.select(swaps).pipe(takeUntil(this.unSubs[0])). + subscribe((swapsSeletor: { swapOuts: Swap[], swapIns: Swap[], swapsCanceled: Swap[], apiCallStatus: ApiCallStatusPayload }) => { + this.errorMessage = ''; + this.apiCallStatus = swapsSeletor.apiCallStatus; + if (this.apiCallStatus?.status === APICallStatusEnum.UN_INITIATED) { + this.store.dispatch(fetchSwaps()); + } + if (this.apiCallStatus.status === APICallStatusEnum.ERROR) { + this.errorMessage = !this.apiCallStatus.message ? '' : (typeof (this.apiCallStatus.message) === 'object') ? JSON.stringify(this.apiCallStatus.message) : this.apiCallStatus.message; + } + if (this.apiCallStatus?.status === APICallStatusEnum.COMPLETED) { + this.allSwapsData = { swapOuts: swapsSeletor.swapOuts, swapIns: swapsSeletor.swapIns, swapsCanceled: swapsSeletor.swapsCanceled }; + if (this.sort && this.paginator) { + this.loadTableWithSelection(); + } + } + this.logger.info(swapsSeletor); + }); + } + + ngAfterViewInit(): void { + if (this.allSwapsData) { + this.loadTableWithSelection(); + } + } + + loadTableWithSelection() { + switch (this.selSwapList) { + case this.swapLists[0]: + if (this.screenSize === ScreenSizeEnum.XS) { + this.flgSticky = false; + this.displayedColumns = ['id', 'state', 'amount', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.SM) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'state', 'amount', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.MD) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'state', 'amount', 'actions']; + } else { + this.flgSticky = true; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'state', 'amount', 'actions']; + } + this.swapsData = this.allSwapsData?.swapOuts || []; + break; + case this.swapLists[1]: + if (this.screenSize === ScreenSizeEnum.XS) { + this.flgSticky = false; + this.displayedColumns = ['id', 'state', 'amount', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.SM) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'state', 'amount', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.MD) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'state', 'amount', 'actions']; + } else { + this.flgSticky = true; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'state', 'amount', 'actions']; + } + this.swapsData = this.allSwapsData?.swapIns || []; + break; + case this.swapLists[2]: + if (this.screenSize === ScreenSizeEnum.XS) { + this.flgSticky = false; + this.displayedColumns = ['id', 'amount', 'cancel_message', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.SM) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'amount', 'cancel_message', 'actions']; + } else if (this.screenSize === ScreenSizeEnum.MD) { + this.flgSticky = false; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'amount', 'cancel_message', 'actions']; + } else { + this.flgSticky = true; + this.displayedColumns = ['id', 'alias', 'short_channel_id', 'created_at', 'amount', 'cancel_message', 'actions']; + } + this.swapsData = this.allSwapsData?.swapsCanceled || []; + break; + default: + break; + } + if (this.swapsData && this.swapsData.length > 0 && this.sort && this.paginator) { + this.loadswapsTable(this.swapsData); + } + } + + onSwapClick(selSwap: Swap) { + const reorderedSwap = [ + [{ key: 'id', value: selSwap.id, title: 'Swap Id', width: 100, type: DataTypeEnum.STRING }], + [{ key: 'state', value: this.swapStatePipe.transform(selSwap.state || ''), title: 'State', width: 50, type: DataTypeEnum.STRING }, + { key: 'role', value: this.titleCasePipe.transform(selSwap.role), title: 'Role', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'alias', value: selSwap.alias, title: 'Alias', width: 50, type: DataTypeEnum.STRING }, + { key: 'short_channel_id', value: selSwap.short_channel_id, title: 'Short Channel ID', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'amount', value: selSwap.amount, title: 'Amount (Sats)', width: 50, type: DataTypeEnum.NUMBER }, + { key: 'created_at', value: this.datePipe.transform(new Date(selSwap.created_at || ''), 'dd/MMM/YYYY HH:mm'), title: 'Created At', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'peer_node_id', value: selSwap.peer_node_id, title: 'Peer Node Id', width: 100, type: DataTypeEnum.STRING }], + [{ key: 'initiator_node_id', value: selSwap.initiator_node_id, title: 'Initiator Node Id', width: 100, type: DataTypeEnum.STRING }] + ]; + if (selSwap.opening_tx_id) { + reorderedSwap.push([{ key: 'opening_tx_id', value: selSwap.opening_tx_id, title: 'Opening Transaction Id', width: 100, type: DataTypeEnum.STRING }]); + } + if (selSwap.claim_tx_id) { + reorderedSwap.push([{ key: 'claim_tx_id', value: selSwap.claim_tx_id, title: 'Claim Transaction Id', width: 100, type: DataTypeEnum.STRING }]); + } + if (selSwap.cancel_message) { + reorderedSwap.push([{ key: 'cancel_message', value: selSwap.cancel_message, title: 'Cancel Message', width: 100, type: DataTypeEnum.STRING }]); + } + this.store.dispatch(openAlert({ + payload: { + data: { + type: AlertTypeEnum.INFORMATION, + alertTitle: this.selSwapList === this.swapLists[0] ? 'Swapout Information' : this.selSwapList === this.swapLists[1] ? 'Swapin Information' : 'Swap Canceled Information', + message: reorderedSwap + } + } + })); + } + + loadswapsTable(swaps: Swap[]) { + this.swaps = new MatTableDataSource([...swaps]); + this.swaps.sort = this.sort; + this.swaps.sortingDataAccessor = (data: any, sortHeaderId: string) => ((data[sortHeaderId] && isNaN(data[sortHeaderId])) ? data[sortHeaderId].toLocaleLowerCase() : data[sortHeaderId] ? +data[sortHeaderId] : null); + this.swaps.filterPredicate = (swap: Swap, fltr: string) => { + const newSwap = + (swap.id ? swap.id : '') + + (swap.alias ? swap.alias.toLowerCase() : '') + + (swap.role ? swap.role : '') + + (swap.short_channel_id ? swap.short_channel_id : '') + + (swap.amount ? swap.amount : '') + + (swap.state ? swap.state : '') + + ((swap.created_at) ? this.datePipe.transform(new Date(swap.created_at), 'dd/MMM/YYYY HH:mm')?.toLowerCase() : '') + + (swap.cancel_message ? swap.cancel_message.toLowerCase : ''); + return newSwap?.includes(fltr) || false; + }; + this.swaps.paginator = this.paginator; + this.applyFilter(); + this.logger.info(this.swaps); + } + + onSwapRefresh(selSwap: Swap) { + this.store.dispatch(getSwap({ payload: selSwap.id || '' })); + } + + onDownloadCSV() { + if (this.swaps && this.swaps.data && this.swaps.data.length > 0) { + this.commonService.downloadFile(this.swaps.data, 'Peerswap-' + this.selSwapList); + } + } + + applyFilter() { + this.swaps.filter = this.selFilter.trim().toLowerCase(); + } + + ngOnDestroy() { + this.unSubs.forEach((completeSub) => { + completeSub.next(null); + completeSub.complete(); + }); + } + +} diff --git a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.html b/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.html deleted file mode 100755 index c3ce88f3..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.html +++ /dev/null @@ -1 +0,0 @@ -

Peerswaps Out

\ No newline at end of file diff --git a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.scss b/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.scss deleted file mode 100755 index e69de29b..00000000 diff --git a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.spec.ts b/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.spec.ts deleted file mode 100755 index d65f8c93..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.spec.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; -import { SharedModule } from '../../../../shared/shared.module'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { PeerswapsOutComponent } from './swaps-out.component'; -import { mockLoggerService } from '../../../../shared/test-helpers/mock-services'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -describe('PeerswapsOutComponent', () => { - let component: PeerswapsOutComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [PeerswapsOutComponent], - imports: [ - BrowserAnimationsModule, - SharedModule - ], - providers: [ - { provide: LoggerService, useClass: mockLoggerService } - ] - }). - compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(PeerswapsOutComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); - - afterEach(() => { - TestBed.resetTestingModule(); - }); -}); diff --git a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.ts b/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.ts deleted file mode 100755 index 1c73ac5d..00000000 --- a/src/app/cln/ln-services/peerswap/swaps-out/swaps-out.component.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Component, OnInit, OnDestroy } from '@angular/core'; -import { Subject } from 'rxjs'; -import { LoggerService } from '../../../../shared/services/logger.service'; - -@Component({ - selector: 'rtl-peer-swaps-out', - templateUrl: './swaps-out.component.html', - styleUrls: ['./swaps-out.component.scss'] -}) -export class PeerswapsOutComponent implements OnInit, OnDestroy { - - private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; - - constructor(private logger: LoggerService) {} - - ngOnInit() { - this.logger.info('Peerswap Out'); - } - - ngOnDestroy() { - this.unSubs.forEach((completeSub) => { - completeSub.next(null); - completeSub.complete(); - }); - } - -} diff --git a/src/app/cln/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts b/src/app/cln/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts index 7aaa4cf9..58c0c2ac 100644 --- a/src/app/cln/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts +++ b/src/app/cln/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts @@ -6,7 +6,7 @@ import { StoreModule } from '@ngrx/store'; import { CommonService } from '../../../../../shared/services/common.service'; import { DataService } from '../../../../../shared/services/data.service'; import { LoggerService } from '../../../../../shared/services/logger.service'; -import { mockCLEffects, mockDataService, mockLoggerService, mockECLEffects, mockLNDEffects, mockRTLEffects, mockRouter } from '../../../../../shared/test-helpers/mock-services'; +import { mockCLEffects, mockDataService, mockLoggerService, mockECLEffects, mockLNDEffects, mockRTLEffects } from '../../../../../shared/test-helpers/mock-services'; import { SharedModule } from '../../../../../shared/shared.module'; import { RTLEffects } from '../../../../../store/rtl.effects'; @@ -16,7 +16,7 @@ import { CLNReducer } from '../../../../../cln/store/cln.reducers'; import { ECLReducer } from '../../../../../eclair/store/ecl.reducers'; import { CLNEffects } from '../../../../store/cln.effects'; import { CLNChannelOpenTableComponent } from './channel-open-table.component'; -import { ExtraOptions, Route, Router } from '@angular/router'; +import { Router } from '@angular/router'; describe('CLNChannelOpenTableComponent', () => { let component: CLNChannelOpenTableComponent; @@ -34,7 +34,6 @@ describe('CLNChannelOpenTableComponent', () => { ], providers: [ CommonService, - { provide: Router, useClass: mockRouter }, { provide: LoggerService, useClass: mockLoggerService }, { provide: DataService, useClass: mockDataService }, { provide: RTLEffects, useClass: mockRTLEffects }, diff --git a/src/app/cln/store/cln.actions.ts b/src/app/cln/store/cln.actions.ts index adc40156..3a074d4a 100644 --- a/src/app/cln/store/cln.actions.ts +++ b/src/app/cln/store/cln.actions.ts @@ -1,6 +1,6 @@ import { createAction, props } from '@ngrx/store'; -import { CLNActions } from '../../shared/services/consts-enums-functions'; +import { CLNActions, SwapTypeEnum } from '../../shared/services/consts-enums-functions'; import { ApiCallStatusPayload } from '../../shared/models/apiCallsPayload'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import { GetInfo, Fees, Peer, Payment, QueryRoutes, Channel, FeeRates, Invoice, ListInvoices, OnChain, UTXO, SaveChannel, GetNewAddress, DetachPeer, UpdateChannel, CloseChannel, SendPayment, GetQueryRoutes, ChannelLookup, OfferInvoice, Offer, OfferBookmark, ListForwards, FetchListForwards, LocalFailedEvent, ForwardingEvent, Swap, SwapPeer, SwapRequest } from '../../shared/models/clnModels'; @@ -143,10 +143,14 @@ export const fetchSwapRequests = createAction(CLNActions.FETCH_SWAP_REQUESTS_CLN export const setSwapRequests = createAction(CLNActions.SET_SWAP_REQUESTS_CLN, props<{ payload: SwapRequest[] }>()); -export const swapOut = createAction(CLNActions.SWAPOUT_CLN, props<{ payload: { amountSats: number, shortChannelId: string, asset: string } }>()); +export const swapOut = createAction(CLNActions.SWAPOUT_CLN, props<{ payload: { alias: string, amountSats: number, shortChannelId: string, asset: string } }>()); export const addSwapout = createAction(CLNActions.ADD_SWAPOUT_CLN, props<{ payload: Swap }>()); -export const swapIn = createAction(CLNActions.SWAPIN_CLN, props<{ payload: { amountSats: number, shortChannelId: string, asset: string } }>()); +export const swapIn = createAction(CLNActions.SWAPIN_CLN, props<{ payload: { alias: string, amountSats: number, shortChannelId: string, asset: string } }>()); export const addSwapin = createAction(CLNActions.ADD_SWAPIN_CLN, props<{ payload: Swap }>()); + +export const getSwap = createAction(CLNActions.GET_SWAP_CLN, props<{ payload: string }>()); + +export const updateSwapState = createAction(CLNActions.UPDATE_SWAP_STATE_CLN, props<{ payload: { swapId: string, state: string, type: SwapTypeEnum } }>()); diff --git a/src/app/cln/store/cln.effects.ts b/src/app/cln/store/cln.effects.ts index 25e01962..c07d0ae9 100644 --- a/src/app/cln/store/cln.effects.ts +++ b/src/app/cln/store/cln.effects.ts @@ -5,7 +5,7 @@ import { Store } from '@ngrx/store'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { Subject, of } from 'rxjs'; import { map, mergeMap, catchError, takeUntil } from 'rxjs/operators'; -import { Location } from '@angular/common'; +import { DatePipe, DecimalPipe, Location, TitleCasePipe } from '@angular/common'; import { environment, API_URL } from '../../../environments/environment'; import { LoggerService } from '../../shared/services/logger.service'; @@ -14,15 +14,16 @@ import { SessionService } from '../../shared/services/session.service'; import { WebSocketClientService } from '../../shared/services/web-socket.service'; import { ErrorMessageComponent } from '../../shared/components/data-modal/error-message/error-message.component'; import { CLNInvoiceInformationComponent } from '../transactions/invoices/invoice-information-modal/invoice-information.component'; -import { GetInfo, Fees, Balance, LocalRemoteBalance, Payment, FeeRates, ListInvoices, Invoice, Peer, OnChain, QueryRoutes, SaveChannel, GetNewAddress, DetachPeer, UpdateChannel, CloseChannel, SendPayment, GetQueryRoutes, ChannelLookup, FetchInvoices, Channel, OfferInvoice, Offer, ListForwards, FetchListForwards, ForwardingEvent, LocalFailedEvent, Swap } from '../../shared/models/clnModels'; -import { AlertTypeEnum, APICallStatusEnum, UI_MESSAGES, CLNWSEventTypeEnum, CLNActions, RTLActions, CLNForwardingEventsStatusEnum, DataTypeEnum } from '../../shared/services/consts-enums-functions'; +import { GetInfo, Fees, Balance, LocalRemoteBalance, Payment, FeeRates, ListInvoices, Invoice, Peer, OnChain, QueryRoutes, SaveChannel, GetNewAddress, DetachPeer, UpdateChannel, CloseChannel, SendPayment, GetQueryRoutes, ChannelLookup, FetchInvoices, Channel, OfferInvoice, Offer, ListForwards, FetchListForwards, ForwardingEvent, LocalFailedEvent, Swap, ActiveSwap } from '../../shared/models/clnModels'; +import { AlertTypeEnum, APICallStatusEnum, UI_MESSAGES, CLNWSEventTypeEnum, CLNActions, RTLActions, CLNForwardingEventsStatusEnum, DataTypeEnum, SwapTypeEnum } from '../../shared/services/consts-enums-functions'; import { closeAllDialogs, closeSpinner, logout, openAlert, openSnackBar, openSpinner, setApiUrl, setNodeData } from '../../store/rtl.actions'; import { RTLState } from '../../store/rtl.state'; import { addUpdateOfferBookmark, fetchBalance, fetchChannels, fetchFeeRates, fetchFees, fetchInvoices, fetchLocalRemoteBalance, fetchPayments, fetchPeers, fetchUTXOs, getForwardingHistory, setLookup, setPeers, setQueryRoutes, updateCLAPICallStatus, updateInvoice, setOfferInvoice, sendPaymentStatus, setForwardingHistory } from './cln.actions'; -import { allAPIsCallStatus, clnNodeInformation } from './cln.selector'; +import { allAPIsCallStatus } from './cln.selector'; import { ApiCallsListCL } from '../../shared/models/apiCallsPayload'; import { CLNOfferInformationComponent } from '../transactions/offers/offer-information-modal/offer-information.component'; +import { SwapStatePipe } from '../../shared/pipes/app.pipe'; @Injectable() export class CLNEffects implements OnDestroy { @@ -40,7 +41,11 @@ export class CLNEffects implements OnDestroy { private logger: LoggerService, private router: Router, private wsService: WebSocketClientService, - private location: Location + private location: Location, + private swapStatePipe: SwapStatePipe, + private titleCasePipe: TitleCasePipe, + private decimalPipe: DecimalPipe, + private datePipe: DatePipe ) { this.store.select(allAPIsCallStatus).pipe(takeUntil(this.unSubs[0])).subscribe((allApisCallStatus: ApiCallsListCL) => { if ( @@ -934,6 +939,25 @@ export class CLNEffects implements OnDestroy { }) )); + swapGetCL = createEffect(() => this.actions.pipe( + ofType(CLNActions.GET_SWAP_CLN), + mergeMap((action: { type: string, payload: string }) => { + this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'GetSwap', status: APICallStatusEnum.INITIATED } })); + return this.httpClient.get(this.CHILD_API_URL + environment.PEERSWAP_API + '/swap/' + action.payload). + pipe(map((swapRes: ActiveSwap) => { + this.logger.info(swapRes); + this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'GetSwap', status: APICallStatusEnum.COMPLETED } })); + return { + type: CLNActions.UPDATE_SWAP_STATE_CLN, + payload: { swapId: action.payload, state: swapRes.current, type: swapRes.type === 1 ? SwapTypeEnum.SWAP_IN : SwapTypeEnum.SWAP_OUT } + }; + }), catchError((err: any) => { + this.handleErrorWithoutAlert('GetSwap', UI_MESSAGES.NO_SPINNER, 'Getting Swap Failed.', err); + return of({ type: RTLActions.VOID }); + })); + }) + )); + swapsFetchCL = createEffect(() => this.actions.pipe( ofType(CLNActions.FETCH_SWAPS_CLN), mergeMap((action: { type: string, payload: any }) => { @@ -985,7 +1009,7 @@ export class CLNEffects implements OnDestroy { payload: res || [] }; }), catchError((err: any) => { - this.handleErrorWithoutAlert('FetchSwaps', UI_MESSAGES.NO_SPINNER, 'Fetching Swap Requests Failed.', err); + this.handleErrorWithoutAlert('FetchSwapRequests', UI_MESSAGES.NO_SPINNER, 'Fetching Swap Requests Failed.', err); return of({ type: RTLActions.VOID }); })); }) @@ -993,13 +1017,14 @@ export class CLNEffects implements OnDestroy { peerswapOutCL = createEffect(() => this.actions.pipe( ofType(CLNActions.SWAPOUT_CLN), - mergeMap((action: { type: string, payload: { amountSats: number, shortChannelId: string, asset: string } }) => { + mergeMap((action: { type: string, payload: { alias: string, amountSats: number, shortChannelId: string, asset: string } }) => { this.store.dispatch(openSpinner({ payload: UI_MESSAGES.PEERSWAP_SWAPOUT })); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'PeerswapSwapout', status: APICallStatusEnum.INITIATED } })); return this.httpClient.post(this.CHILD_API_URL + environment.PEERSWAP_API + '/swapOut', { amountSats: action.payload.amountSats, shortChannelId: action.payload.shortChannelId, asset: action.payload.asset }).pipe(map((postRes: Swap) => { this.logger.info(postRes); + postRes.alias = action.payload.alias; this.store.dispatch(closeSpinner({ payload: UI_MESSAGES.PEERSWAP_SWAPOUT })); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'PeerswapSwapout', status: APICallStatusEnum.COMPLETED } })); setTimeout(() => { @@ -1008,7 +1033,7 @@ export class CLNEffects implements OnDestroy { data: { type: AlertTypeEnum.INFORMATION, alertTitle: 'Swapout Initiated', - message: postRes.id + message: this.reorderedSwapResponse(postRes) } } })); @@ -1027,13 +1052,14 @@ export class CLNEffects implements OnDestroy { peerswapInCL = createEffect(() => this.actions.pipe( ofType(CLNActions.SWAPIN_CLN), - mergeMap((action: { type: string, payload: { amountSats: number, shortChannelId: string, asset: string } }) => { + mergeMap((action: { type: string, payload: { alias: string, amountSats: number, shortChannelId: string, asset: string } }) => { this.store.dispatch(openSpinner({ payload: UI_MESSAGES.PEERSWAP_SWAPIN })); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'PeerswapSwapin', status: APICallStatusEnum.INITIATED } })); return this.httpClient.post(this.CHILD_API_URL + environment.PEERSWAP_API + '/swapIn', { amountSats: action.payload.amountSats, shortChannelId: action.payload.shortChannelId, asset: action.payload.asset }).pipe(map((postRes: Swap) => { this.logger.info(postRes); + postRes.alias = action.payload.alias; this.store.dispatch(closeSpinner({ payload: UI_MESSAGES.PEERSWAP_SWAPIN })); this.store.dispatch(updateCLAPICallStatus({ payload: { action: 'PeerswapSwapin', status: APICallStatusEnum.COMPLETED } })); setTimeout(() => { @@ -1042,7 +1068,7 @@ export class CLNEffects implements OnDestroy { data: { type: AlertTypeEnum.INFORMATION, alertTitle: 'Swapin Initiated', - message: [{ key: 'id', value: postRes.id, title: 'Swap Id', width: 100, type: DataTypeEnum.STRING }] + message: this.reorderedSwapResponse(postRes) } } })); @@ -1059,6 +1085,30 @@ export class CLNEffects implements OnDestroy { }) )); + reorderedSwapResponse(swapRes: Swap) { + const reorderedSwap = [ + [{ key: 'id', value: swapRes.id, title: 'Swap Id', width: 100, type: DataTypeEnum.STRING }], + [{ key: 'state', value: this.swapStatePipe.transform(swapRes.state || ''), title: 'State', width: 50, type: DataTypeEnum.STRING }, + { key: 'role', value: this.titleCasePipe.transform(swapRes.role), title: 'Role', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'alias', value: swapRes.alias, title: 'Alias', width: 50, type: DataTypeEnum.STRING }, + { key: 'short_channel_id', value: swapRes.short_channel_id, title: 'Short Channel ID', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'amount', value: this.decimalPipe.transform(swapRes.amount), title: 'Amount (Sats)', width: 50, type: DataTypeEnum.STRING }, + { key: 'created_at', value: this.datePipe.transform(new Date(swapRes.created_at || ''), 'dd/MMM/YYYY HH:mm'), title: 'Created At', width: 50, type: DataTypeEnum.STRING }], + [{ key: 'peer_node_id', value: swapRes.peer_node_id, title: 'Peer Node Id', width: 100, type: DataTypeEnum.STRING }], + [{ key: 'initiator_node_id', value: swapRes.initiator_node_id, title: 'Initiator Node Id', width: 100, type: DataTypeEnum.STRING }] + ]; + if (swapRes.opening_tx_id) { + reorderedSwap.push([{ key: 'opening_tx_id', value: swapRes.opening_tx_id, title: 'Opening Transaction Id', width: 100, type: DataTypeEnum.STRING }]); + } + if (swapRes.claim_tx_id) { + reorderedSwap.push([{ key: 'claim_tx_id', value: swapRes.claim_tx_id, title: 'Claim Transaction Id', width: 100, type: DataTypeEnum.STRING }]); + } + if (swapRes.cancel_message) { + reorderedSwap.push([{ key: 'cancel_message', value: swapRes.cancel_message, title: 'Cancel Message', width: 100, type: DataTypeEnum.STRING }]); + } + return reorderedSwap; + } + initializeRemainingData(info: any, landingPage: string) { this.sessionService.setItem('clUnlocked', 'true'); const node_data = { diff --git a/src/app/cln/store/cln.reducers.ts b/src/app/cln/store/cln.reducers.ts index 7f02095c..babbd326 100644 --- a/src/app/cln/store/cln.reducers.ts +++ b/src/app/cln/store/cln.reducers.ts @@ -5,10 +5,10 @@ import { setChildNodeSettingsCL, setFeeRates, setFees, setForwardingHistory, setInfo, setInvoices, setLocalRemoteBalance, setOffers, addOffer, setPayments, setPeers, setUTXOs, updateCLAPICallStatus, updateInvoice, updateOffer, setOfferBookmarks, addUpdateOfferBookmark, removeOfferBookmark, - setSwaps, setSwapPeers, setSwapRequests, addSwapout, addSwapin + setSwaps, setSwapPeers, setSwapRequests, addSwapout, addSwapin, updateSwapState } from './cln.actions'; import { Channel, OfferBookmark, Swap } from '../../shared/models/clnModels'; -import { CLNForwardingEventsStatusEnum, PeerswapTypes } from '../../shared/services/consts-enums-functions'; +import { CLNForwardingEventsStatusEnum, PeerswapTypes, SwapTypeEnum } from '../../shared/services/consts-enums-functions'; export const CLNReducer = createReducer(initCLNState, on(updateCLAPICallStatus, (state, { payload }) => { @@ -221,19 +221,51 @@ export const CLNReducer = createReducer(initCLNState, on(setSwaps, (state, { payload }) => { const swapOutArr: Swap[] = []; const swapInArr: Swap[] = []; - payload.forEach((swap) => { - if (swap.type === PeerswapTypes.SWAP_OUT) { - swapOutArr.push(swap); + const swapCanceledArr: Swap[] = []; + for (let i = (payload.length - 1); i >= 0; i--) { + payload[i].alias = state.peers?.find((peer) => peer.id === payload[i].peer_node_id)?.alias || payload[i].peer_node_id; + if (payload[i].state === 'State_SwapCanceled') { + swapCanceledArr.push(payload[i]); } else { - swapInArr.push(swap); + if (payload[i].type === PeerswapTypes.SWAP_OUT) { + swapOutArr.push(payload[i]); + } else { + swapInArr.push(payload[i]); + } } - }); + } return { ...state, swapOuts: swapOutArr, - swapIns: swapInArr + swapIns: swapInArr, + swapsCanceled: swapCanceledArr }; }), + on(updateSwapState, (state, { payload }) => { + if (payload.type === SwapTypeEnum.SWAP_IN) { + const updatedSwapIns = [...state.swapIns]; + const foundSwapIdx = updatedSwapIns.findIndex((swapIn) => (swapIn.id === payload.swapId)); + if (foundSwapIdx > -1) { + updatedSwapIns[foundSwapIdx].state = payload.state; + } + return { + ...state, + swapIns: updatedSwapIns + }; + } + if (payload.type === SwapTypeEnum.SWAP_OUT) { + const updatedSwapOuts = [...state.swapOuts]; + const foundSwapIdx = updatedSwapOuts.findIndex((swapOut) => (swapOut.id === payload.swapId)); + if (foundSwapIdx > -1) { + updatedSwapOuts[foundSwapIdx].state = payload.state; + } + return { + ...state, + swapOuts: updatedSwapOuts + }; + } + return { ...state }; + }), on(setSwapRequests, (state, { payload }) => ({ ...state, swapRequests: payload diff --git a/src/app/cln/store/cln.selector.ts b/src/app/cln/store/cln.selector.ts index 36cf5dd7..2e84b527 100644 --- a/src/app/cln/store/cln.selector.ts +++ b/src/app/cln/store/cln.selector.ts @@ -27,7 +27,6 @@ export const nodeInfoAndNodeSettingsAndAPIsStatus = createSelector(clnState, (st export const offers = createSelector(clnState, (state: CLNState) => ({ offers: state.offers, apiCallStatus: state.apisCallStatus.FetchOffers })); export const offerBookmarks = createSelector(clnState, (state: CLNState) => ({ offersBookmarks: state.offersBookmarks, apiCallStatus: state.apisCallStatus.FetchOfferBookmarks })); export const getoffer = (bolt12Str) => createSelector(clnState, (state: CLNState) => (state.offers.find((offer: Offer) => offer.bolt12 === bolt12Str))); -export const swapOuts = createSelector(clnState, (state: CLNState) => ({ swapOuts: state.swapOuts, apiCallStatus: state.apisCallStatus.FetchSwaps })); -export const swapIns = createSelector(clnState, (state: CLNState) => ({ swapIns: state.swapIns, apiCallStatus: state.apisCallStatus.FetchSwaps })); +export const swaps = createSelector(clnState, (state: CLNState) => ({ swapOuts: state.swapOuts, swapIns: state.swapIns, swapsCanceled: state.swapsCanceled, apiCallStatus: state.apisCallStatus.FetchSwaps })); export const swapPeers = createSelector(clnState, (state: CLNState) => ({ totalSwapPeers: state.totalSwapPeers, swapPeers: state.swapPeers, apiCallStatus: state.apisCallStatus.FetchSwapPeers })); export const swapRequests = createSelector(clnState, (state: CLNState) => ({ swapRequests: state.swapRequests, apiCallStatus: state.apisCallStatus.FetchSwapRequests })); diff --git a/src/app/cln/store/cln.state.ts b/src/app/cln/store/cln.state.ts index edd51d34..59862528 100644 --- a/src/app/cln/store/cln.state.ts +++ b/src/app/cln/store/cln.state.ts @@ -28,6 +28,7 @@ export interface CLNState { swapPeers: SwapPeerChannelsFlattened[]; swapOuts: Swap[]; swapIns: Swap[]; + swapsCanceled: Swap[]; swapRequests: SwapRequest[]; } @@ -76,5 +77,6 @@ export const initCLNState: CLNState = { swapPeers: [], swapOuts: [], swapIns: [], + swapsCanceled: [], swapRequests: [] }; diff --git a/src/app/eclair/ecl.routing.ts b/src/app/eclair/ecl.routing.ts index 7cfd418d..cc2aff15 100644 --- a/src/app/eclair/ecl.routing.ts +++ b/src/app/eclair/ecl.routing.ts @@ -51,7 +51,7 @@ export const EclRoutes: Routes = [ { path: 'inactive', component: ECLChannelInactiveTableComponent, canActivate: [ECLUnlockedGuard] } ] }, - { path: 'peers', component: ECLPeersComponent, data: { sweepAll: false }, canActivate: [ECLUnlockedGuard] } + { path: 'peers', component: ECLPeersComponent, canActivate: [ECLUnlockedGuard] } ] }, { diff --git a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts index 1d337778..f77509ea 100644 --- a/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts +++ b/src/app/eclair/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts @@ -11,7 +11,7 @@ import { CommonService } from '../../../../../shared/services/common.service'; import { LoggerService } from '../../../../../shared/services/logger.service'; import { ECLChannelOpenTableComponent } from './channel-open-table.component'; -import { mockDataService, mockLoggerService, mockRouter, mockRTLEffects } from '../../../../../shared/test-helpers/mock-services'; +import { mockDataService, mockLoggerService, mockRTLEffects } from '../../../../../shared/test-helpers/mock-services'; import { RTLEffects } from '../../../../../store/rtl.effects'; import { SharedModule } from '../../../../../shared/shared.module'; import { DataService } from '../../../../../shared/services/data.service'; @@ -32,7 +32,6 @@ describe('ECLChannelOpenTableComponent', () => { ], providers: [ CommonService, - { provide: Router, useClass: mockRouter }, { provide: LoggerService, useClass: mockLoggerService }, { provide: DataService, useClass: mockDataService }, { provide: RTLEffects, useClass: mockRTLEffects } diff --git a/src/app/lnd/lnd.routing.ts b/src/app/lnd/lnd.routing.ts index 3559e11e..df7a21fa 100644 --- a/src/app/lnd/lnd.routing.ts +++ b/src/app/lnd/lnd.routing.ts @@ -69,7 +69,7 @@ export const LndRoutes: Routes = [ { path: 'activehtlcs', component: ChannelActiveHTLCsTableComponent, canActivate: [LNDUnlockedGuard] } ] }, - { path: 'peers', component: PeersComponent, data: { sweepAll: false }, canActivate: [LNDUnlockedGuard] } + { path: 'peers', component: PeersComponent, canActivate: [LNDUnlockedGuard] } ] }, { diff --git a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts index 550ebe88..8ed6b54e 100644 --- a/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts +++ b/src/app/lnd/peers-channels/channels/channels-tables/channel-open-table/channel-open-table.component.spec.ts @@ -12,7 +12,7 @@ import { LoopService } from '../../../../../shared/services/loop.service'; import { ChannelOpenTableComponent } from './channel-open-table.component'; import { SharedModule } from '../../../../../shared/shared.module'; -import { mockDataService, mockLoggerService, mockLNDEffects, mockRTLEffects, mockRouter } from '../../../../../shared/test-helpers/mock-services'; +import { mockDataService, mockLoggerService, mockLNDEffects, mockRTLEffects } from '../../../../../shared/test-helpers/mock-services'; import { RTLEffects } from '../../../../../store/rtl.effects'; import { LNDEffects } from '../../../../store/lnd.effects'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -34,7 +34,6 @@ describe('ChannelOpenTableComponent', () => { ], providers: [ CommonService, LoopService, - { provide: Router, useClass: mockRouter }, { provide: LoggerService, useClass: mockLoggerService }, { provide: DataService, useClass: mockDataService }, { provide: RTLEffects, useClass: mockRTLEffects }, diff --git a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html index 98cd659d..b54b19c2 100644 --- a/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html +++ b/src/app/lnd/transactions/invoice-information-modal/invoice-information.component.html @@ -117,7 +117,7 @@ - + {{htlc.chan_id}} {{((+htlc.amt_msat/1000) || 0) | number:getDecimalFormat(htlc)}} diff --git a/src/app/lnd/transactions/invoices/lightning-invoices.component.html b/src/app/lnd/transactions/invoices/lightning-invoices.component.html index 4a627b9d..d971db17 100644 --- a/src/app/lnd/transactions/invoices/lightning-invoices.component.html +++ b/src/app/lnd/transactions/invoices/lightning-invoices.component.html @@ -35,7 +35,7 @@ - + {{(invoice?.creation_date * 1000) | date:'dd/MMM/y HH:mm'}}
diff --git a/src/app/lnd/transactions/lookup-transactions/invoice-lookup/invoice-lookup.component.html b/src/app/lnd/transactions/lookup-transactions/invoice-lookup/invoice-lookup.component.html index fe9db305..bdbe7641 100644 --- a/src/app/lnd/transactions/lookup-transactions/invoice-lookup/invoice-lookup.component.html +++ b/src/app/lnd/transactions/lookup-transactions/invoice-lookup/invoice-lookup.component.html @@ -98,7 +98,7 @@ - + {{htlc.chan_id}} {{((+htlc.amt_msat/1000) || 0) | number:getDecimalFormat(htlc)}} diff --git a/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts b/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts index 735838dc..d685a68e 100644 --- a/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts +++ b/src/app/shared/components/navigation/side-navigation/side-navigation.component.ts @@ -163,9 +163,9 @@ export class SideNavigationComponent implements OnInit, OnDestroy { clonedMenu = JSON.parse(JSON.stringify(MENU_DATA.LNDChildren)); this.navMenus.data = clonedMenu?.filter((navMenuData: any) => { if (navMenuData.children && navMenuData.children.length) { - navMenuData.children = navMenuData.children?.filter((navMenuChild) => ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings?.userPersona) && navMenuChild.link !== '/services/loop' && navMenuChild.link !== '/services/boltz') || - (navMenuChild.link === '/services/loop' && this.settings?.swapServerUrl && this.settings.swapServerUrl.trim() !== '') || - (navMenuChild.link === '/services/boltz' && this.settings?.boltzServerUrl && this.settings.boltzServerUrl.trim() !== '')); + navMenuData.children = navMenuData.children?.filter((navMenuChild) => ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings?.userPersona) && navMenuChild.link !== '/lnd/services/loop' && navMenuChild.link !== '/lnd/services/boltz') || + (navMenuChild.link === '/lnd/services/loop' && this.settings?.swapServerUrl && this.settings.swapServerUrl.trim() !== '') || + (navMenuChild.link === '/lnd/services/boltz' && this.settings?.boltzServerUrl && this.settings.boltzServerUrl.trim() !== '')); return navMenuData.children.length > 0; } return navMenuData.userPersona === UserPersonaEnum.ALL || navMenuData.userPersona === this.settings?.userPersona; @@ -177,8 +177,8 @@ export class SideNavigationComponent implements OnInit, OnDestroy { clonedMenu = JSON.parse(JSON.stringify(MENU_DATA.CLNChildren)); this.navMenus.data = clonedMenu?.filter((navMenuData: any) => { if (navMenuData.children && navMenuData.children.length) { - navMenuData.children = navMenuData.children?.filter((navMenuChild) => ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings?.userPersona) && navMenuChild.link !== '/services/peerswap') || - (navMenuChild.link === '/services/peerswap' && this.settings?.enablePeerswap)); + navMenuData.children = navMenuData.children?.filter((navMenuChild) => ((navMenuChild.userPersona === UserPersonaEnum.ALL || navMenuChild.userPersona === this.settings?.userPersona) && navMenuChild.link !== '/cln/services/peerswap') || + (navMenuChild.link === '/cln/services/peerswap' && this.settings?.enablePeerswap)); return navMenuData.children.length > 0; } return navMenuData.userPersona === UserPersonaEnum.ALL || navMenuData.userPersona === this.settings?.userPersona; diff --git a/src/app/shared/components/node-config/services-settings/peerswap-service-settings/peerswap-service-settings.component.html b/src/app/shared/components/node-config/services-settings/peerswap-service-settings/peerswap-service-settings.component.html index 329f140d..eccb6f53 100644 --- a/src/app/shared/components/node-config/services-settings/peerswap-service-settings/peerswap-service-settings.component.html +++ b/src/app/shared/components/node-config/services-settings/peerswap-service-settings/peerswap-service-settings.component.html @@ -1,7 +1,7 @@
- Please ensure that peerswapd is running and accessible to RTL before enabling this service. Click here to learn more about peerswap. + Please ensure that peerswap plugin is running and accessible to RTL before enabling this service. Click here to learn more about peerswap.
diff --git a/src/app/shared/models/clnModels.ts b/src/app/shared/models/clnModels.ts index 2db30cd1..7f6e33b3 100644 --- a/src/app/shared/models/clnModels.ts +++ b/src/app/shared/models/clnModels.ts @@ -579,6 +579,7 @@ export interface SwapRequest { export interface Swap { id?: string; + alias?: string; asset?: string; created_at?: string; type?: string; diff --git a/src/app/shared/pipes/app.pipe.ts b/src/app/shared/pipes/app.pipe.ts index 01580a3c..3c8b4225 100644 --- a/src/app/shared/pipes/app.pipe.ts +++ b/src/app/shared/pipes/app.pipe.ts @@ -21,3 +21,14 @@ export class CamelCasePipe implements PipeTransform { } } + +@Pipe({ + name: 'swapState' +}) +export class SwapStatePipe implements PipeTransform { + + transform(value: string, args?: any): string { + return value?.replace('State_', '').replace('SwapInSender_', '').replace('SwapOutSender_', '').replace('SwapInReceiver_', '').replace('SwapOutReceiver_', '').replace('_', ' ').replace(/(?:^\w|[A-Z]|\b\w)/g, (word, index) => ' ' + word); + } + +} diff --git a/src/app/shared/services/consts-enums-functions.ts b/src/app/shared/services/consts-enums-functions.ts index a6a7436b..c6564bbe 100644 --- a/src/app/shared/services/consts-enums-functions.ts +++ b/src/app/shared/services/consts-enums-functions.ts @@ -333,11 +333,6 @@ export enum PaymentTypes { KEYSEND = 'KEYSEND' } -export enum PeerswapTypes { - SWAP_OUT = 'swap-out', - SWAP_IN = 'swap-in' -} - export enum ReportBy { FEES = 'FEES', EVENTS = 'EVENTS' @@ -532,6 +527,8 @@ export enum CLNActions { SET_SWAP_PEERS_CLN = 'SET_SWAP_PEERS_CLN', FETCH_SWAP_REQUESTS_CLN = 'FETCH_SWAP_REQUESTS_CLN', SET_SWAP_REQUESTS_CLN = 'SET_SWAP_REQUESTS_CLN', + GET_SWAP_CLN = 'GET_SWAP_CLN', + UPDATE_SWAP_STATE_CLN = 'UPDATE_SWAP_STATE_CLN', SWAPOUT_CLN = 'SWAPOUT_CLN', ADD_SWAPOUT_CLN = 'ADD_SWAPOUT_CLN', SWAPIN_CLN = 'SWAPIN_CLN', @@ -650,3 +647,17 @@ export enum CLNForwardingEventsStatusEnum { FAILED = 'failed', LOCAL_FAILED = 'local_failed' } + +export enum PeerswapTypes { + SWAP_OUT = 'swap-out', + SWAP_IN = 'swap-in' +} + +export enum PeerswapRoles { + SENDER = 'sender', + RECEIVER = 'receiver' +} + +export enum PeerswapStates { + SWAP_CANCELED = 'State_SwapCanceled' +} diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts index 0beec07e..f93e7571 100644 --- a/src/app/shared/shared.module.ts +++ b/src/app/shared/shared.module.ts @@ -85,7 +85,7 @@ import { AutoFocusDirective } from './directive/auto-focus.directive'; import { MonthlyDateDirective, YearlyDateDirective } from './directive/date-formats.directive'; import { MaxValidator } from './directive/max-amount.directive'; import { MinValidator } from './directive/min-amount.directive'; -import { RemoveLeadingZerosPipe, CamelCasePipe } from './pipes/app.pipe'; +import { RemoveLeadingZerosPipe, CamelCasePipe, SwapStatePipe } from './pipes/app.pipe'; const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { suppressScrollX: false, @@ -210,6 +210,7 @@ export const DEFAULT_DATE_FORMAT: MatDateFormats = { YearlyDateDirective, RemoveLeadingZerosPipe, CamelCasePipe, + SwapStatePipe, MaxValidator, MinValidator, AppSettingsComponent, @@ -266,6 +267,7 @@ export const DEFAULT_DATE_FORMAT: MatDateFormats = { MinValidator, RemoveLeadingZerosPipe, CamelCasePipe, + SwapStatePipe, AuthSettingsComponent, TransactionsReportTableComponent, OnChainGeneratedAddressComponent, @@ -286,7 +288,7 @@ export const DEFAULT_DATE_FORMAT: MatDateFormats = { { provide: DateAdapter, useClass: DefaultDateAdapter }, { provide: MAT_DATE_FORMATS, useValue: DEFAULT_DATE_FORMAT }, { provide: OverlayContainer, useClass: ThemeOverlay }, - DecimalPipe, TitleCasePipe, DatePipe + DecimalPipe, TitleCasePipe, DatePipe, SwapStatePipe ] }) export class SharedModule { } diff --git a/src/app/shared/test-helpers/mock-services.ts b/src/app/shared/test-helpers/mock-services.ts index 5bd4e952..2e704db6 100644 --- a/src/app/shared/test-helpers/mock-services.ts +++ b/src/app/shared/test-helpers/mock-services.ts @@ -28,20 +28,6 @@ export class mockHttpClient { } -export class mockRouter { - - getCurrentNavigation() { - return { - extras: { - state: { - filter: 'DummyChannelID4325565432212367867' - } - } - }; - }; - -} - export class mockDataService { private lnImplementation = 'LND';